3ec1af5360aac53b1432556375d32ffc13386561
[gnulib.git] / ChangeLog
1 2011-05-05  Bruno Haible  <bruno@clisp.org>
2
3         tzset: Relicense under LGPL.
4         * modules/tzset (License): Change to LGPL.
5         No agreement needed; it's a no-op.
6
7         strtoimax, strtoumax: Relicense under LGPL.
8         * modules/strtoimax (License): Change to LGPL.
9         * modules/strtoumax (License): Likewise.
10         With permission from Jim Meyering, Paul Eggert:
11         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13
14         getgroups: Relicense under LGPL.
15         * modules/getgroups (License): Change to LGPL.
16         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20
21         nanosleep: Relicense under LGPL.
22         * modules/nanosleep (License): Change to LGPL.
23         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
24         Haible:
25         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
26         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
27         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
28         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
29
30         futimens: Relicense under LGPL.
31         * modules/futimens (License): Change to LGPL.
32         With permission from Eric Blake:
33         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34
35         fflush: Relicense under LGPL.
36         * modules/fflush (License): Change to LGPL.
37         With permission from Eric Blake, Bruno Haible, Jim Meyering:
38         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
39         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
40         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
41
42         tmpfile: Relicense under LGPL.
43         * modules/tmpfile (License): Change to LGPL.
44         With permission from Ben Pfaff:
45         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
46
47         isfinite: Relicense under LGPL.
48         * modules/isfinite (License): Change to LGPL.
49         With permission from Ben Pfaff, Bruno Haible:
50         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
51         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
52
53         acosl..tanl: Relicense under LGPL.
54         * modules/acosl (License): Change to LGPL.
55         * modules/asinl (License): Likewise.
56         * modules/atanl (License): Likewise.
57         * modules/cosl (License): Likewise.
58         * modules/expl (License): Likewise.
59         * modules/logl (License): Likewise.
60         * modules/sinl (License): Likewise.
61         * modules/sqrtl (License): Likewise.
62         * modules/tanl (License): Likewise.
63         Source code originally from glibc and Paolo Bonzini. Agreements:
64         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
65         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
66
67 2011-05-05  Bruno Haible  <bruno@clisp.org>
68
69         signal: Define sighandler_t.
70         * lib/signal.in.h (sighandler_t): New type.
71         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
72         whether sighandler_t is defined.
73         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
74         * modules/signal (Depends-on): Add extensions.
75         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
76         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
77         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
78
79 2011-05-05  Eric Blake  <eblake@redhat.com>
80
81         maint: remove useless REPLACE_*_H macros
82         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
83         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
84         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
85         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
86         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
87         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
88         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
89         * m4/btowc.m4: Update callers.
90         * m4/dirfd.m4: Likewise.
91         * m4/duplocale.m4: Likewise.
92         * m4/fchdir.m4: Likewise.
93         * m4/fdopendir.m4: Likewise.
94         * m4/inet_ntop.m4: Likewise.
95         * m4/inet_pton.m4: Likewise.
96         * m4/ioctl.m4: Likewise.
97         * m4/mbrlen.m4: Likewise.
98         * m4/mbrtowc.m4: Likewise.
99         * m4/mbsinit.m4: Likewise.
100         * m4/mbsnrtowcs.m4: Likewise.
101         * m4/mbsrtowcs.m4: Likewise.
102         * m4/poll.m4: Likewise.
103         * m4/setlocale.m4: Likewise.
104         * m4/wcrtomb.m4: Likewise.
105         * m4/wcsnrtombs.m4: Likewise.
106         * m4/wcsrtombs.m4: Likewise.
107         * m4/wctob.m4: Likewise.
108         * m4/wcwidth.m4: Likewise.
109         * modules/posix_spawn: Likewise.
110         * modules/posix_spawn_file_actions_addclose: Likewise.
111         * modules/posix_spawn_file_actions_adddup2: Likewise.
112         * modules/posix_spawn_file_actions_addopen: Likewise.
113         * modules/posix_spawn_file_actions_destroy: Likewise.
114         * modules/posix_spawn_file_actions_init: Likewise.
115         * modules/posix_spawnattr_destroy: Likewise.
116         * modules/posix_spawnattr_getflags: Likewise.
117         * modules/posix_spawnattr_getpgroup: Likewise.
118         * modules/posix_spawnattr_getschedparam: Likewise.
119         * modules/posix_spawnattr_getschedpolicy: Likewise.
120         * modules/posix_spawnattr_getsigdefault: Likewise.
121         * modules/posix_spawnattr_getsigmask: Likewise.
122         * modules/posix_spawnattr_init: Likewise.
123         * modules/posix_spawnattr_setflags: Likewise.
124         * modules/posix_spawnattr_setpgroup: Likewise.
125         * modules/posix_spawnattr_setschedparam: Likewise.
126         * modules/posix_spawnattr_setschedpolicy: Likewise.
127         * modules/posix_spawnattr_setsigdefault: Likewise.
128         * modules/posix_spawnattr_setsigmask: Likewise.
129         * modules/posix_spawnp: Likewise.
130
131 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
132
133         Add option to do-release-commit-and-tag to specify branch.
134         * build-aux/do-release-commit-and-tag: Add --branch.
135
136 2011-05-03  Bruno Haible  <bruno@clisp.org>
137
138         Avoid unnecessary compilation units, through conditional dependencies.
139         * modules/accept (Depends-on): Add conditions to the dependencies.
140         * modules/acosl (Depends-on): Likewise.
141         * modules/argz (Depends-on): Likewise.
142         * modules/asinl (Depends-on): Likewise.
143         * modules/atanl (Depends-on): Likewise.
144         * modules/atoll (Depends-on): Likewise.
145         * modules/bind (Depends-on): Likewise.
146         * modules/btowc (Depends-on): Likewise.
147         * modules/canonicalize-lgpl (Depends-on): Likewise.
148         * modules/ceil (Depends-on): Likewise.
149         * modules/ceilf (Depends-on): Likewise.
150         * modules/ceill (Depends-on): Likewise.
151         * modules/chdir-long (Depends-on): Likewise.
152         * modules/chown (Depends-on): Likewise.
153         * modules/close (Depends-on): Likewise.
154         * modules/connect (Depends-on): Likewise.
155         * modules/cosl (Depends-on): Likewise.
156         * modules/dirfd (Depends-on): Likewise.
157         * modules/dprintf (Depends-on): Likewise.
158         * modules/dprintf-posix (Depends-on): Likewise.
159         * modules/error (Depends-on): Likewise.
160         * modules/euidaccess (Depends-on): Likewise.
161         * modules/expl (Depends-on): Likewise.
162         * modules/faccessat (Depends-on): Likewise.
163         * modules/fchdir (Depends-on): Likewise.
164         * modules/fclose (Depends-on): Likewise.
165         * modules/fcntl (Depends-on): Likewise.
166         * modules/fdopendir (Depends-on): Likewise.
167         * modules/fflush (Depends-on): Likewise.
168         * modules/floor (Depends-on): Likewise.
169         * modules/floorf (Depends-on): Likewise.
170         * modules/floorl (Depends-on): Likewise.
171         * modules/fnmatch (Depends-on): Likewise.
172         * modules/fopen (Depends-on): Likewise.
173         * modules/fprintf-posix (Depends-on): Likewise.
174         * modules/frexp (Depends-on): Likewise.
175         * modules/frexp-nolibm (Depends-on): Likewise.
176         * modules/frexpl (Depends-on): Likewise.
177         * modules/frexpl-nolibm (Depends-on): Likewise.
178         * modules/fseek (Depends-on): Likewise.
179         * modules/fsusage (Depends-on): Likewise.
180         * modules/ftell (Depends-on): Likewise.
181         * modules/ftello (Depends-on): Likewise.
182         * modules/futimens (Depends-on): Likewise.
183         * modules/getcwd (Depends-on): Likewise.
184         * modules/getcwd-lgpl (Depends-on): Likewise.
185         * modules/getdelim (Depends-on): Likewise.
186         * modules/getdomainname (Depends-on): Likewise.
187         * modules/getgroups (Depends-on): Likewise.
188         * modules/gethostname (Depends-on): Likewise.
189         * modules/getline (Depends-on): Likewise.
190         * modules/getlogin_r (Depends-on): Likewise.
191         * modules/getopt-posix (Depends-on): Likewise.
192         * modules/getpeername (Depends-on): Likewise.
193         * modules/getsockname (Depends-on): Likewise.
194         * modules/getsockopt (Depends-on): Likewise.
195         * modules/getsubopt (Depends-on): Likewise.
196         * modules/getusershell (Depends-on): Likewise.
197         * modules/glob (Depends-on): Likewise.
198         * modules/grantpt (Depends-on): Likewise.
199         * modules/iconv_open (Depends-on): Likewise.
200         * modules/iconv_open-utf (Depends-on): Likewise.
201         * modules/inet_ntop (Depends-on): Likewise.
202         * modules/inet_pton (Depends-on): Likewise.
203         * modules/ioctl (Depends-on): Likewise.
204         * modules/isapipe (Depends-on): Likewise.
205         * modules/isfinite (Depends-on): Likewise.
206         * modules/isinf (Depends-on): Likewise.
207         * modules/lchown (Depends-on): Likewise.
208         * modules/ldexpl (Depends-on): Likewise.
209         * modules/link (Depends-on): Likewise.
210         * modules/linkat (Depends-on): Likewise.
211         * modules/listen (Depends-on): Likewise.
212         * modules/logl (Depends-on): Likewise.
213         * modules/lstat (Depends-on): Likewise.
214         * modules/mbrlen (Depends-on): Likewise.
215         * modules/mbrtowc (Depends-on): Likewise.
216         * modules/mbsinit (Depends-on): Likewise.
217         * modules/mbsnrtowcs (Depends-on): Likewise.
218         * modules/mbsrtowcs (Depends-on): Likewise.
219         * modules/mbtowc (Depends-on): Likewise.
220         * modules/memcmp (Depends-on): Likewise.
221         * modules/mkdir (Depends-on): Likewise.
222         * modules/mkdtemp (Depends-on): Likewise.
223         * modules/mkfifo (Depends-on): Likewise.
224         * modules/mkfifoat (Depends-on): Likewise.
225         * modules/mknod (Depends-on): Likewise.
226         * modules/mkostemp (Depends-on): Likewise.
227         * modules/mkostemps (Depends-on): Likewise.
228         * modules/mkstemp (Depends-on): Likewise.
229         * modules/mkstemps (Depends-on): Likewise.
230         * modules/mktime (Depends-on): Likewise.
231         * modules/nanosleep (Depends-on): Likewise.
232         * modules/open (Depends-on): Likewise.
233         * modules/openat (Depends-on): Likewise.
234         * modules/perror (Depends-on): Likewise.
235         * modules/poll (Depends-on): Likewise.
236         * modules/popen (Depends-on): Likewise.
237         * modules/posix_spawn (Depends-on): Likewise.
238         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
239         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
240         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
241         * modules/posix_spawnp (Depends-on): Likewise.
242         * modules/pread (Depends-on): Likewise.
243         * modules/printf-posix (Depends-on): Likewise.
244         * modules/ptsname (Depends-on): Likewise.
245         * modules/putenv (Depends-on): Likewise.
246         * modules/pwrite (Depends-on): Likewise.
247         * modules/readline (Depends-on): Likewise.
248         * modules/readlink (Depends-on): Likewise.
249         * modules/readlinkat (Depends-on): Likewise.
250         * modules/recv (Depends-on): Likewise.
251         * modules/recvfrom (Depends-on): Likewise.
252         * modules/regex (Depends-on): Likewise.
253         * modules/remove (Depends-on): Likewise.
254         * modules/rename (Depends-on): Likewise.
255         * modules/renameat (Depends-on): Likewise.
256         * modules/rmdir (Depends-on): Likewise.
257         * modules/round (Depends-on): Likewise.
258         * modules/roundf (Depends-on): Likewise.
259         * modules/roundl (Depends-on): Likewise.
260         * modules/rpmatch (Depends-on): Likewise.
261         * modules/select (Depends-on): Likewise.
262         * modules/send (Depends-on): Likewise.
263         * modules/sendto (Depends-on): Likewise.
264         * modules/setenv (Depends-on): Likewise.
265         * modules/setlocale (Depends-on): Likewise.
266         * modules/setsockopt (Depends-on): Likewise.
267         * modules/shutdown (Depends-on): Likewise.
268         * modules/sigaction (Depends-on): Likewise.
269         * modules/signbit (Depends-on): Likewise.
270         * modules/sigprocmask (Depends-on): Likewise.
271         * modules/sinl (Depends-on): Likewise.
272         * modules/sleep (Depends-on): Likewise.
273         * modules/snprintf (Depends-on): Likewise.
274         * modules/snprintf-posix (Depends-on): Likewise.
275         * modules/socket (Depends-on): Likewise.
276         * modules/sprintf-posix (Depends-on): Likewise.
277         * modules/sqrtl (Depends-on): Likewise.
278         * modules/stat (Depends-on): Likewise.
279         * modules/strchrnul (Depends-on): Likewise.
280         * modules/strdup-posix (Depends-on): Likewise.
281         * modules/strerror (Depends-on): Likewise.
282         * modules/strerror_r-posix (Depends-on): Likewise.
283         * modules/strndup (Depends-on): Likewise.
284         * modules/strnlen (Depends-on): Likewise.
285         * modules/strptime (Depends-on): Likewise.
286         * modules/strsep (Depends-on): Likewise.
287         * modules/strsignal (Depends-on): Likewise.
288         * modules/strstr-simple (Depends-on): Likewise.
289         * modules/strtod (Depends-on): Likewise.
290         * modules/strtoimax (Depends-on): Likewise.
291         * modules/strtok_r (Depends-on): Likewise.
292         * modules/strtoumax (Depends-on): Likewise.
293         * modules/symlink (Depends-on): Likewise.
294         * modules/symlinkat (Depends-on): Likewise.
295         * modules/tanl (Depends-on): Likewise.
296         * modules/tcgetsid (Depends-on): Likewise.
297         * modules/tmpfile (Depends-on): Likewise.
298         * modules/trunc (Depends-on): Likewise.
299         * modules/truncf (Depends-on): Likewise.
300         * modules/truncl (Depends-on): Likewise.
301         * modules/uname (Depends-on): Likewise.
302         * modules/unlink (Depends-on): Likewise.
303         * modules/unlockpt (Depends-on): Likewise.
304         * modules/unsetenv (Depends-on): Likewise.
305         * modules/usleep (Depends-on): Likewise.
306         * modules/utimensat (Depends-on): Likewise.
307         * modules/vasprintf (Depends-on): Likewise.
308         * modules/vdprintf (Depends-on): Likewise.
309         * modules/vdprintf-posix (Depends-on): Likewise.
310         * modules/vfprintf-posix (Depends-on): Likewise.
311         * modules/vprintf-posix (Depends-on): Likewise.
312         * modules/vsnprintf (Depends-on): Likewise.
313         * modules/vsnprintf-posix (Depends-on): Likewise.
314         * modules/vsprintf-posix (Depends-on): Likewise.
315         * modules/wcrtomb (Depends-on): Likewise.
316         * modules/wcscasecmp (Depends-on): Likewise.
317         * modules/wcscspn (Depends-on): Likewise.
318         * modules/wcsdup (Depends-on): Likewise.
319         * modules/wcsncasecmp (Depends-on): Likewise.
320         * modules/wcsnrtombs (Depends-on): Likewise.
321         * modules/wcspbrk (Depends-on): Likewise.
322         * modules/wcsrtombs (Depends-on): Likewise.
323         * modules/wcsspn (Depends-on): Likewise.
324         * modules/wcsstr (Depends-on): Likewise.
325         * modules/wcstok (Depends-on): Likewise.
326         * modules/wcswidth (Depends-on): Likewise.
327         * modules/wctob (Depends-on): Likewise.
328         * modules/wctomb (Depends-on): Likewise.
329         * modules/wctype (Depends-on): Likewise.
330         * modules/wcwidth (Depends-on): Likewise.
331         * modules/write (Depends-on): Likewise.
332
333 2011-05-03  Bruno Haible  <bruno@clisp.org>
334
335         Support for conditional dependencies.
336         * doc/gnulib.texi (Module description): Document the syntax of
337         conditional dependencies.
338         * gnulib-tool: New option --conditional-dependencies.
339         (func_usage): Document it.
340         (cond_dependencies): New variable.
341         (func_get_automake_snippet_conditional,
342         func_get_automake_snippet_unconditional): New functions, extracted from
343         func_get_automake_snippet.
344         (func_get_automake_snippet): Use them.
345         (sed_first_32_chars): New variable.
346         (func_module_shellfunc_name): New function.
347         (func_module_shellvar_name): New function.
348         (func_module_conditional_name): New function.
349         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
350         func_cond_module_condition): New functions.
351         (func_modules_transitive_closure): Add support for conditional
352         dependencies.
353         (func_emit_lib_Makefile_am): For a conditional module, enclose the
354         conditional automake snippet in an automake conditional.
355         (func_emit_autoconf_snippets): Emit shell functions that contain the
356         code for conditional modules.
357         (func_import, func_create_testdir): Update specification.
358
359 2011-05-03  Eric Blake  <eblake@redhat.com>
360
361         test-getaddrinfo: report error information
362         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
363
364 2011-05-03  Jim Meyering  <meyering@redhat.com>
365
366         bootstrap: avoid build failure when $GZIP is set
367         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
368         program name.  If defined at all, it is supposed to list gzip options.
369         Reported by Alan Curry in http://debbugs.gnu.org/8609
370
371 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
372
373         readme-release: new module with release instructions
374         * modules/readme-release: New module.
375         * top/README-release: New file, from coreutils, grep, diffutils.
376         * MODULES.html.sh (Support for maintaining and releasing): Add it.
377
378 2011-05-02  Eric Blake  <eblake@redhat.com>
379
380         fflush: also replace fclose when fixing fflush
381         * modules/fflush (Depends-on): Add fclose.
382         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
383         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
384         memstreams with no backing fd.
385         * doc/posix-functions/fclose.texi (fclose): Document the use of
386         fflush module to fix the bug.
387         * tests/test-fclose.c (main): Relax test when fclose is used in
388         isolation.
389
390         fclose: add some tests
391         * modules/fclose-tests: New test module.
392         * tests/test-fclose.c: New file.
393         * doc/posix-functions/fclose.texi (fclose): Document the bug.
394
395         fclose: reduced dependencies
396         * modules/fclose (Depends-on): Switch from fflush/fseeko to
397         simpler lseek.
398         * lib/fclose.c (rpl_fclose): Likewise.
399         Reported by Simon Josefsson.
400
401         exit: drop remaining clients
402         * modules/argmatch (Depends-on): Replace exit with stdlib.
403         * modules/copy-file (Depends-on): Likewise.
404         * modules/execute (Depends-on): Likewise.
405         * modules/exitfail (Depends-on): Likewise.
406         * modules/obstack (Depends-on): Likewise.
407         * modules/pagealign_alloc (Depends-on): Likewise.
408         * modules/pipe-filter-gi (Depends-on): Likewise.
409         * modules/pipe-filter-ii (Depends-on): Likewise.
410         * modules/savewd (Depends-on): Likewise.
411         * modules/spawn-pipe (Depends-on): Likewise.
412         * modules/wait-process (Depends-on): Likewise.
413         * modules/xsetenv (Depends-on): Likewise.
414         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
415         * modules/git-merge-changelog (Depends-on): Likewise.
416         * modules/long-options (Depends-on): Likewise.
417         * modules/pt_chown (Depends-on): Likewise.
418         * modules/sysexits (Depends-on): Likewise.
419
420         freading: relax license from LGPLv3+ to LGPLv2+
421         * modules/freading (License): Relax LGPL version.
422
423 2011-05-02  Bruno Haible  <bruno@clisp.org>
424
425         fchdir: Remove unused dependencies.
426         * modules/fchdir (Depends-on): Remove include_next.
427
428 2011-05-02  Bruno Haible  <bruno@clisp.org>
429
430         gnulib-tool: Refactor.
431         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
432         from func_emit_autoconf_snippets.
433         (func_emit_autoconf_snippets): Use it.
434
435 2011-05-02  Simon Josefsson  <simon@josefsson.org>
436
437         * NEWS: Document removal of 'exit'.
438         * modules/exit: Remove file.
439
440 2011-05-01  Bruno Haible  <bruno@clisp.org>
441
442         Update DEPENDENCIES.
443         * DEPENDENCIES (gettext): Recommend the newest release.
444         Reported by Simon Josefsson.
445
446 2011-05-01  Bruno Haible  <bruno@clisp.org>
447
448         gnulib-tool: Reduce code duplication.
449         * gnulib-tool (func_emit_autoconf_snippets): New function.
450         (func_import, func_create_testdir): Use it.
451
452 2011-04-30  Eric Blake  <eblake@redhat.com>
453
454         fclose: don't fail on non-seekable input stream
455         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
456         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
457         since fflush is allowed to fail in that case.
458
459 2011-04-30  Bruno Haible  <bruno@clisp.org>
460
461         dup3: cleanup
462         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
463
464 2011-04-30  Bruno Haible  <bruno@clisp.org>
465
466         netdb: Make it work in C++ mode.
467         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
468         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
469         module.
470         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
471         gl_MODULE_INDICATOR_FOR_TESTS.
472         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
473         * modules/netdb-c++-tests: New file.
474         * tests/test-netdb-c++.cc: New file.
475
476 2011-04-30  Bruno Haible  <bruno@clisp.org>
477
478         New modules 'vfscanf', 'vscanf'.
479         * modules/vfscanf: New file.
480         * modules/vscanf: New file.
481         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
482         here.
483         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
484         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
485
486 2011-04-30  Bruno Haible  <bruno@clisp.org>
487
488         passfd: Add comments.
489         * lib/passfd.c: Add comments about platforms.
490
491 2011-04-30  Bruno Haible  <bruno@clisp.org>
492
493         sys_uio: Make <sys/uio.h> self-contained.
494         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
495         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
496
497 2011-04-30  Bruno Haible  <bruno@clisp.org>
498
499         sys_socket: Ensure 'struct iovec' definition.
500         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
501         <sys/socket.h>.
502         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
503
504 2011-04-30  Bruno Haible  <bruno@clisp.org>
505
506         sys_uio: Protect definition of 'struct iovec'.
507         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
508         it as a C struct.
509
510 2011-04-30  Bruno Haible  <bruno@clisp.org>
511
512         manywarnings: fix indentation
513         * m4/manywarnings.m4: Indent by 2 spaces consistently.
514
515 2011-04-30  Pádraig Brady <P@draigBrady.com>
516
517         manywarnings: add -Wno-missing-field-initializers if needed.
518         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
519         option if it's needed to allow initialization with { 0, }
520
521 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
522
523         announce-gen: cosmetic improvement
524         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
525
526 2011-04-29  Jim Meyering  <meyering@redhat.com>
527
528         vc-list-files: indent with spaces, not TABs
529         * build-aux/vc-list-files: Convert leading TABs to spaces,
530         to match the style of most other files in gnulib.
531
532         announce-gen: indent with spaces, not TABs
533         * build-aux/announce-gen: Convert all TABs to spaces, to match
534         the style of most other files in gnulib.
535
536 2011-04-29  Eric Blake  <eblake@redhat.com>
537
538         quotearg: avoid uninitialized variable use
539         * lib/quotearg.c (quoting_options_from_style): Initialize
540         remaining fields, and ensure that custom styles are only used via
541         quoting_options rather than quoting_style.
542
543 2011-04-29  Jim Meyering  <meyering@redhat.com>
544
545         maint.mk: remove unused VC-tag variable
546         * top/maint.mk (VC-tag): Remove unused variable.
547
548 2011-04-29  Bruno Haible  <bruno@clisp.org>
549
550         netdb: fix gai_strerror replacements
551         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
552         * modules/netdb: Substitute it.
553
554 2011-04-29  Jim Meyering  <meyering@redhat.com>
555
556         test-getcwd.c: avoid new set-but-not-used warning
557         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
558         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
559         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
560         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
561
562         test-hash.c: avoid a new shadowing warning
563         * tests/test-hash.c (main): Don't shadow "dup".
564
565 2011-04-28  Eric Blake  <eblake@redhat.com>
566
567         getaddrinfo: fix gai_strerror signature
568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
569         and work around mingw with UNICODE defined.
570         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
571         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
572         * modules/netdb (Makefile.am): Substitute it.
573         * lib/netdb.in.h (gai_strerror): Declare replacement.
574         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
575         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
576         the fix.
577
578         getsockopt: avoid compiler warning
579         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
580         Reported by Matthias Bolte.
581
582         tests: drop unused link dependency
583         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
584         * modules/dirent-safer-tests (Makefile.am): Likewise.
585         * modules/fdopendir-tests (Makefile.am): Likewise.
586         * modules/mkfifoat-tests (Makefile.am): Likewise.
587         * modules/openat-safer-tests (Makefile.am): Likewise.
588         * modules/openat-tests (Makefile.am): Likewise.
589         * modules/readlinkat-tests (Makefile.am): Likewise.
590         * modules/symlinkat-tests (Makefile.am): Likewise.
591         * modules/linkat-tests (Makefile.am): Likewise.
592         (Depends-on): Switch to filenamecat-lgpl.
593         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
594         LIBINTL.
595         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
596         * tests/test-linkat.c (main): Don't require xalloc.
597
598         hash, mgetgroups: drop xalloc dependency
599         * lib/hash.c (includes): Adjust includes.
600         * lib/mgetgroups.c (includes): Likewise.
601         (xgetgroups): Move...
602         * lib/xgetgroups.c: ...to new file.
603         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
604         * modules/xgetgroups: New file, split from...
605         * modules/mgetgroups: ...here.
606         (Depends-on): Add xalloc-oversized.
607         * modules/hash (Depends-on): Likewise.
608         * modules/hash-tests (Depends-on): Drop xalloc.
609         (test_hash_LDADD): Drop unused library.
610         * tests/test-hash.c (main): Break xalloc dependency.
611         (includes): Drop unused include.
612
613         xalloc-oversized: new module
614         * modules/xalloc-oversized: New module.
615         * modules/xalloc (Depends-on): Add it.
616         * lib/xalloc.h (xalloc_oversized): Move...
617         * lib/xalloc-oversized.h: ...into new file.
618
619         utimecmp: drop dependency on xmalloc
620         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
621         due to memory pressure.
622         * modules/utimecmp (Depends-on): Drop xalloc.
623
624 2011-04-27  Eric Blake  <eblake@redhat.com>
625
626         getcwd: fix mingw bugs
627         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
628         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
629         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
630
631 2011-04-27  Bruno Haible  <bruno@clisp.org>
632
633         mkstemps: Ensure declaration on MacOS X 10.5.
634         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
635         * doc/glibc-functions/mkstemps.texi: Document header file problem on
636         MacOS X.
637
638 2011-04-27  Bruno Haible  <bruno@clisp.org>
639
640         mkstemp: More documentation.
641         * doc/posix-functions/mkstemp.texi: Document header file problem on
642         MacOS X.
643
644 2011-04-27  Bruno Haible  <bruno@clisp.org>
645
646         mkstemp: Tweak configure message when cross-compiling.
647         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
648         result as a guess.
649
650 2011-04-27  Bruno Haible  <bruno@clisp.org>
651
652         clean-temp: Clarify what it does.
653         * lib/clean-temp.h: Add more comments.
654         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
655         module.
656         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
657         * doc/glibc-functions/mkstemps.texi: Likewise.
658         * doc/glibc-functions/mkostemps.texi: Likewise.
659
660 2011-04-27  Eric Blake  <eblake@redhat.com>
661
662         fchdir: avoid extra chdir and fix test
663         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
664         getcwd-lgpl.
665         * lib/fchdir.c (get_name): Any absolute name will do; it does not
666         have to be canonical.
667         (canonicalize_file_name): Drop unused macro.
668         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
669
670         filenamecat-lgpl: fix licence
671         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
672         when it was first created.
673
674         linkat, renameat: add missing dependency
675         * modules/linkat (Depends-on): Require getcwd-lgpl.
676         * modules/renameat (Depends-on): Likewise.
677
678         tests: reduce dependencies
679         * tests/test-linkat.c (main): Use lighter-weight getcwd.
680         * tests/test-renameat.c (main): Likewise.
681         * modules/linkat-tests (Depends-on): Relax dependency.
682         * modules/renameat-tests (Depends-on): Likewise.
683         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
684         dependency explicit.
685
686         save-cwd: reduce default dependency
687         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
688         * lib/save-cwd.c: Update comments.
689         * NEWS: Document the semantic change.
690
691         getcwd: enhance tests
692         * tests/test-getcwd-lgpl.c: New file, taken from...
693         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
694         repeat long path stress tests from m4 probe.
695         * modules/getcwd-lgpl-tests: New module.
696         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
697         * m4/getcwd-abort-bug.m4: Update comment.
698         * m4/getcwd-path-max.m4: Likewise.
699
700         getcwd-lgpl: new module
701         * modules/getcwd-lgpl: New module.
702         * lib/getcwd-lgpl.c: New file.
703         * doc/posix-functions/getcwd.texi (getcwd): Document it.
704         * MODULES.html.sh (lacking POSIX:2008): Likewise.
705         * modules/getcwd (configure.ac): Set C witness.
706         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
707
708         getcwd: tweak comments
709         * m4/getcwd-abort-bug.m4: Fix comments.
710         * m4/getcwd-path-max.m4: Likewise.
711         * m4/getcwd.m4: Likewise.
712
713 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
714         and Eric Blake  <eblake@redhat.com>
715
716         mkstemp: replace if system version uses wrong permissions
717         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
718         read/write mode bits set in file created by mkstemp.
719         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
720
721 2011-04-27  Eric Blake  <eblake@redhat.com>
722
723         passfd: avoid compiler warning
724         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
725         Reported by Laine Stump.
726
727 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
728
729         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
730         required by the NetBSD (and perhaps other 4.4BSD derived) join.
731
732 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
733         and Eric Blake  <eblake@redhat.com>
734
735         mkstemp: mention clean-temp module
736         * lib/mkstemp.c: Add comment.
737         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
738
739 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
740
741         inttypes: also provide default values for 32-bit tests
742         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
743         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
744
745 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
746
747         strtoumax: remove dependency on strtoimax
748         This is like the strtoull change of yesterday.
749         * modules/strtoumax (Files): Add lib/strtoimax.c.
750         (Depends-on): Remove strtoimax and add verify.
751
752         inttypes-incomplete: new module
753         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
754         all but the PRI* and SCN* parts of gl_INTTYPES_H.
755         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
756         of gl_INTTYPES_H.
757         (gl_INTTYPES_H): Rewrite in terms of these new macros.
758         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
759         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
760         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
761         * modules/strtoumax, modules/xstrtol (Depends-on):
762         Depend on inttypes-incomplete, not inttypes.
763         * modules/inttypes-incomplete: New module, containing the contents
764         of the old modules/inttypes module, except that the Files: section
765         omits m4/inttypes-pri.m4, and the configure.ac section invokes
766         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
767         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
768         (Depends-on): Depend only on inttypes-incomplete.
769         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
770
771         inttypes: omit now-redundant strtoimax and strtoumax work
772         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
773         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
774
775         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
776         This supports apps that need pointers to strtoimax and strtoumax,
777         and ports to HP-UX 11.00 64.bit, which has macros that expand to
778         nonexistent functions.  See
779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
780         et seq.
781         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
782         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
783         a macro.
784         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
785
786 2011-04-25  Simon Josefsson  <simon@josefsson.org>
787
788         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
789
790 2011-04-25  Bruno Haible  <bruno@clisp.org>
791
792         strtol, strtoul: Mark modules as obsolete.
793         * modules/strtol (Status, Notice): New sections.
794         * modules/strtoul (Status, Notice): New sections.
795
796 2011-04-25  Bruno Haible  <bruno@clisp.org>
797
798         strtod: Remove check for strtod, unless supporting old platforms.
799         * modules/strtod-obsolete: New file.
800         * m4/strtod-obsolete.m4: New file.
801         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
802         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
803         * modules/strtod (Depends-on): Add strtod-obsolete.
804         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
805
806 2011-04-25  Bruno Haible  <bruno@clisp.org>
807
808         strcase: Make module obsolete.
809         * modules/strcase (Status, Notice): New sections.
810
811 2011-04-25  Bruno Haible  <bruno@clisp.org>
812
813         dup2: Remove check for dup2, unless supporting old obsolete platforms.
814         * modules/dup2-obsolete: New file.
815         * m4/dup2-obsolete.m4: New file.
816         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
817         gl_FUNC_DUP2_OBSOLETE is not also defined.
818         * modules/dup2 (Depends-on): Add dup2-obsolete.
819         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
820
821 2011-04-25  Bruno Haible  <bruno@clisp.org>
822
823         strnlen: Avoid memchr related link error on old obsolete platforms.
824         * modules/memchr-obsolete: New file.
825         * m4/memchr-obsolete.m4: New file.
826         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
827         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
828         * modules/memchr (Depends-on): Add memchr-obsolete.
829         * modules/strnlen (Depends-on): Likewise.
830         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
831
832 2011-04-25  Jim Meyering  <meyering@redhat.com>
833
834         maint.mk: makefile_at_at_check extend and clean up
835         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
836         in addition to */Makefile.am.
837         Exempt legitimate uses of @VAR@ notation, e.g.,
838         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
839         Remove obsolete coreutils-specific comment.
840         Prompted by discussion here:
841         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
842
843 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
844
845         strtoul: remove dependency on strtol
846         This is so that 'configure' need not check for strtol merely because
847         the application needs strtoul.
848         * modules/strtoul (Files): Add lib/strtol.c.
849         (Depends-on): Remove strtol.
850
851         strtoull: remove dependency on strtoul
852         This is like the strtoll change.
853         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
854         (Depends-on): Remove strtoul.
855
856         strtoll: remove dependency on strtol
857         This is so that 'configure' need not check for strtol merely because
858         the application needs strtoll.
859         * modules/strtoll (Files): Add lib/strtol.c.
860         (Depends-on): Remove strtol.
861
862 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
863
864         inttypes: Move some configure check to module 'imaxdiv'.
865         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
866         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
867         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
868
869 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
870
871         inttypes: Move some configure check to module 'imaxabs'.
872         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
873         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
874         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
875
876 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
877
878         inttypes: Remove configure tests that are not needed since 2009-12-31.
879         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
880         gl_cv_header_working_inttypes_h.
881
882 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
883
884         * modules/strnlen (Depends-on): Remove memchr.
885         The strnlen implementation doesn't need the memchr module's fixes; see
886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
887
888         strtol: remove dependency on wchar
889         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
890         * modules/strtol (Depends-on): Remove wchar.
891
892 2011-04-21  Eric Blake  <eblake@redhat.com>
893
894         passfd: fix test regression on Linux
895         * modules/passfd-tests (configure.ac): Correct socketpair check.
896
897         passfd: speed up configure and drop unused code
898         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
899         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
900         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
901         Instead of probing at configure for unix_scm_rights_bsd44_way,
902         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
903         check to a struct member probe.
904         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
905         (sendfd, recvfd): Update preprocessor checks.
906         * modules/passfd (Files): Reflect rename, and drop unused file.
907         (Depends-on): Drop unused dependency.
908
909         passfd: allow compilation on mingw
910         * modules/sys_socket (Depends-on): Add sys_uio.
911         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
912         iovec and a minimal struct msghdr.
913         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
914         * tests/test-sys_socket.c (main): Enhance test.
915         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
916         guaranteed to provide what we need.
917         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
918         * modules/passfd-tests (Depends-on): Add sys_wait.
919         * tests/test-passfd.c (main): Skip test on mingw, for now.
920         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
921         partial 'struct msghdr' implementation.
922
923         sys_uio: new module
924         * modules/sys_uio: New module.
925         * modules/sys_uio-tests: Likewise.
926         * lib/sys_uio.in.h: New file.
927         * m4/sys_uio_h.m4: Likewise.
928         * tests/test-sys_uio.c: Likewise.
929         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
930         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
931
932 2011-04-20  Jim Meyering  <meyering@redhat.com>
933
934         useless-if-before-free: avoid false-positive
935         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
936         disjunct so that it too requires a terminating ";".  Without that,
937         this script would identify as useless one statement from gcc that
938         was not:
939           if (aligned_ptr)
940             free (((void **) aligned_ptr) [-1]);
941
942 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
943
944         doc: update users.txt.
945         * users.txt: Add barcode.
946
947 2011-04-19  Bruno Haible  <bruno@clisp.org>
948
949         ioctl: Remove link dependency on native Windows.
950         * lib/fd-hook.h: Renamed from lib/close-hook.h.
951         (gl_close_fn, gl_ioctl_fn): New types.
952         (struct fd_hook): Renamed from struct close_hook. Change type of
953         private_close_fn field. Add private_ioctl_fn field.
954         (close_hook_fn): Add parameter for primary close method.
955         (execute_close_hooks, execute_all_close_hooks): Likewise.
956         (ioctl_hook_fn): New type.
957         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
958         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
959         argument.
960         (unregister_fd_hook): Renamed from unregister_close_hook.
961         * lib/fd-hook.c: Renamed from lib/close-hook.c.
962         Don't include <unistd.h>.
963         (close): Remove undef.
964         (anchor): Update.
965         (execute_close_hooks): Add argument for primary close method.
966         (execute_all_close_hooks): Likewise.
967         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
968         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
969         argument. Allow each argument to be NULL.
970         (unregister_fd_hook): Renamed from unregister_close_hook.
971         * lib/close.c (rpl_close): Pass 'close' function pointer to
972         execute_all_close_hooks.
973         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
974         (primary_ioctl): New function.
975         (ioctl): Don't call ioctlsocket here. Instead, call
976         execute_all_ioctl_hooks.
977         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
978         close method.
979         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
980         (fd_sockets_hook): Renamed from close_sockets_hook.
981         (gl_sockets_startup, gl_sockets_cleanup): Update.
982         * modules/fd-hook: Renamed from modules/close-hook. Update.
983         * modules/close (Depends-on): Add fd-hook, remove close-hook.
984         * modules/sockets (Depends-on): Likewise.
985         * modules/ioctl (Depends-on): Add fd-hook.
986         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
987         GNULIB_SOCKET.
988
989 2011-04-19  Bruno Haible  <bruno@clisp.org>
990
991         Move the support of O_NONBLOCK in open() to the 'open' module.
992         * modules/nonblocking (Depends-on): Remove 'open'.
993         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
994         gl_cv_have_open_O_NONBLOCK.
995         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
996         O_NONBLOCK support.
997         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
998
999 2011-04-17  Bruno Haible  <bruno@clisp.org>
1000
1001         pipe2: Simplify code.
1002         * lib/pipe2.c (pipe2): Reduce code duplication.
1003
1004 2011-04-17  Bruno Haible  <bruno@clisp.org>
1005
1006         nonblocking: Add comment.
1007         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1008
1009 2011-04-17  Bruno Haible  <bruno@clisp.org>
1010
1011         nonblocking: Add tests for sockets.
1012         * tests/test-nonblocking-socket.sh: New file.
1013         * tests/test-nonblocking-socket-main.c: New file.
1014         * tests/test-nonblocking-socket-child.c: New file.
1015         * tests/test-nonblocking-socket.h: New file.
1016         * tests/socket-server.h: New file.
1017         * tests/socket-client.h: New file.
1018         * modules/nonblocking-socket-tests: New file.
1019         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1020
1021 2011-04-17  Bruno Haible  <bruno@clisp.org>
1022
1023         nonblocking: Add tests for pipes.
1024         * tests/test-nonblocking-pipe.sh: New file.
1025         * tests/test-nonblocking-pipe-main.c: New file.
1026         * tests/test-nonblocking-pipe-child.c: New file.
1027         * tests/test-nonblocking-pipe.h: New file.
1028         * tests/test-nonblocking-writer.h: New file.
1029         * tests/test-nonblocking-reader.h: New file.
1030         * tests/test-nonblocking-misc.h: New file.
1031         * modules/nonblocking-pipe-tests: New file.
1032         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1033
1034 2011-04-16  Bruno Haible  <bruno@clisp.org>
1035
1036         gettext: Clarify the needed programmer actions.
1037         * modules/gettext (Notice): New field.
1038         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1039
1040 2011-04-16  Bruno Haible  <bruno@clisp.org>
1041
1042         strchrnul: Tweak last commit.
1043         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1044         bug.
1045         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1046         as in _GL_FUNCDECL_SYS.
1047         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1048         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1049
1050 2011-04-15  Eric Blake  <eblake@redhat.com>
1051
1052         strchrnul: work around cygwin bug
1053         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1054         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1056         * modules/string (Makefile.am): Substitute it.
1057         * lib/string.in.h (strchrnul): Use it.
1058
1059 2011-04-15  Bruno Haible  <bruno@clisp.org>
1060
1061         Don't require lib/stdio-write.c when only module 'stdio' is used.
1062         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1063         invocation.
1064         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1065
1066 2011-04-14  Bruno Haible  <bruno@clisp.org>
1067
1068         Support non-blocking pipe I/O in read() on native Windows.
1069         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1070         (read): New declaration.
1071         * lib/read.c: New file.
1072         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1073         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1074         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1075         vscanf): New declarations.
1076         * lib/stdio-read.c: New file.
1077         * m4/read.m4: New file.
1078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1079         REPLACE_READ.
1080         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1081         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1082         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1083         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1084         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1085         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1086         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1087         * modules/read: New file.
1088         * modules/nonblocking (Files): Add lib/stdio-read.c.
1089         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1090         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1091         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1092         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1093         * modules/pread (Depends-on): Add read.
1094         * modules/safe-read (Depends-on): Likewise.
1095         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1096         gets, scanf, vfscanf, vscanf): Verify signatures.
1097         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1098         problem with non-blocking pipes.
1099         * doc/posix-functions/fgetc.texi: Likewise.
1100         * doc/posix-functions/fgets.texi: Likewise.
1101         * doc/posix-functions/fread.texi: Likewise.
1102         * doc/posix-functions/fscanf.texi: Likewise.
1103         * doc/posix-functions/getc.texi: Likewise.
1104         * doc/posix-functions/getchar.texi: Likewise.
1105         * doc/posix-functions/gets.texi: Likewise.
1106         * doc/posix-functions/scanf.texi: Likewise.
1107         * doc/posix-functions/vfscanf.texi: Likewise.
1108         * doc/posix-functions/vscanf.texi: Likewise.
1109
1110 2011-04-14  Bruno Haible  <bruno@clisp.org>
1111
1112         Support non-blocking pipe I/O in write() on native Windows.
1113         * lib/write.c (rpl_write): Split a write request that failed merely
1114         because the byte count was larger than the pipe buffer's size.
1115         * doc/posix-functions/write.texi: Mention the problem with large byte
1116         counts.
1117
1118 2011-04-14  Bruno Haible  <bruno@clisp.org>
1119
1120         wchar: Ensure that wchar_t gets defined on uClibc.
1121         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1122         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1123
1124 2011-04-13  Bruno Haible  <bruno@clisp.org>
1125
1126         safe-write, full-read: Avoid unnecessary compilation units.
1127         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1128         (Depends-on): Remove safe-read. Add ssize_t.
1129         * modules/full-read (Files): Add lib/full-write.c.
1130         (Depends-on): Add full-write.
1131
1132 2011-04-13  Bruno Haible  <bruno@clisp.org>
1133
1134         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1135         * modules/pwrite (Depends-on): Add 'write'.
1136
1137 2011-04-13  Bruno Haible  <bruno@clisp.org>
1138
1139         Support non-blocking pipe I/O in write() on native Windows.
1140         * lib/unistd.in.h (write): Enable replacement also if
1141         GNULIB_UNISTD_H_NONBLOCKING is 1.
1142         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1143         (rpl_write): When failing to write on a non-blocking pipe, change
1144         errno from ENOSPC to EAGAIN.
1145         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1146         putchar, puts, vfprintf, vprintf): Enable replacement also if
1147         GNULIB_STDIO_H_NONBLOCKING is 1.
1148         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1149         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1150         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1151         CALL_WITH_SIGPIPE_EMULATION.
1152         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1153         * m4/nonblocking.m4: New file.
1154         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1155         for non-blocking I/O support.
1156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1157         GNULIB_UNISTD_H_NONBLOCKING.
1158         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1159         required for non-blocking I/O support.
1160         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1161         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1162         lib/stdio-write.c, m4/asm-underscore.m4.
1163         (Depends-on): Add stdio, unistd.
1164         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1165         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1166         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1167         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1168         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1169         problem with non-blocking pipes.
1170         * doc/posix-functions/fputc.texi: Likewise.
1171         * doc/posix-functions/fputs.texi: Likewise.
1172         * doc/posix-functions/fwrite.texi: Likewise.
1173         * doc/posix-functions/printf.texi: Likewise.
1174         * doc/posix-functions/putc.texi: Likewise.
1175         * doc/posix-functions/putchar.texi: Likewise.
1176         * doc/posix-functions/puts.texi: Likewise.
1177         * doc/posix-functions/vfprintf.texi: Likewise.
1178         * doc/posix-functions/vprintf.texi: Likewise.
1179         * doc/posix-functions/write.texi: Likewise.
1180
1181 2011-04-10  Jim Meyering  <meyering@redhat.com>
1182
1183         maint.mk: prohibit doubled words
1184         Detect them also when they're separated by a newline.
1185         There are 3 ways to customize it:
1186           - disable the test on a per file basis, as usual with rules using
1187             $(VC_LIST_EXCEPT)
1188           - replace the default doubled-word-selecting regexp (affects all files)
1189           - ignore a particular file-vs-doubled-word match
1190         I nearly used that last one to ignore the "is is" match in
1191         coreutils' NEWS file, since the text was "ls -is is ..."
1192         To do that, I would have added this line to cfg.mk:
1193           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1194         but it would have ignored any "is is" match in NEWS.
1195         Low probability, but still...
1196         Instead, I changed the text, slightly:
1197           -  ls -is is now consistent with ls -lis in ignoring values returned
1198           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1199         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1200         (prohibit_doubled_word_): Define.
1201         (sc_prohibit_doubled_word): New rule.
1202         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1203
1204 2011-04-10  Jim Meyering  <meyering@redhat.com>
1205
1206         maint: fix doubled-word typo in comment
1207         * m4/gethostname.m4: s/is is/it is/
1208         * m4/getdomainname.m4: Likewise.
1209
1210 2011-04-10  Jim Meyering  <meyering@redhat.com>
1211
1212         maint: remove doubled word: s/it it/it/
1213         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1214
1215 2011-04-10  Jim Meyering  <meyering@redhat.com>
1216
1217         maint.mk: remove useless semicolon and backslash
1218         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1219         semicolon and backslash.
1220
1221 2011-04-10  Bruno Haible  <bruno@clisp.org>
1222
1223         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1224         * modules/stdint-tests (Depends-on): Add wchar.
1225
1226 2011-04-10  Jim Meyering  <meyering@redhat.com>
1227
1228         maint: remove doubled words in comments, e.g., s/a a/a/
1229         * lib/strptime.c (day_of_the_week): s/the the/the/
1230         * tests/test-chown.h (test_chown): s/a a/a/
1231
1232         test-chown.h: correct a cast
1233         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1234         when the destination is a stat.st_gid.
1235
1236 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1237
1238         getaddrinfo: Fix test for sa_len member.
1239         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1240         include <sys/types.h> before <sys/socket.h>.
1241
1242 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1243
1244         maint: change "can not" to "cannot"
1245         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1246         boundaries.
1247
1248 2011-04-09  Jim Meyering  <meyering@redhat.com>
1249
1250         maint: change "a a" to "a"
1251         * tests/test-lchown.h (test_lchown): s/a a/a/
1252
1253         maint.mk: prohibit \<the the\>
1254         * top/maint.mk (sc_prohibit_the_the): New rule.
1255
1256         maint: fix "the the" in comment
1257         * lib/count-one-bits.h: s/the the/the/
1258
1259         maint: change "can not" to "cannot"
1260         But do not change the occurrences in maintain.texi or in
1261         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1262         * doc/gnulib-tool.texi: s/can not/cannot/
1263         * doc/posix-functions/accept.texi (accept): Likewise.
1264         * doc/posix-functions/socket.texi (socket): Likewise.
1265         * lib/mbrtowc.c: Likewise.
1266
1267         maint.mk: prohibit use of "can not"
1268         * top/maint.mk (sc_prohibit_can_not): New rule.
1269         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1270
1271 2011-04-09  Bruno Haible  <bruno@clisp.org>
1272
1273         careadlinkat: Guard against misuse of careadlinkatcwd.
1274         * lib/careadlinkat.c: Include <stdlib.h>.
1275         (careadlinkatcwd): Check that the fd argument is as expected.
1276
1277 2011-04-09  Bruno Haible  <bruno@clisp.org>
1278
1279         careadlinkat: Use common coding style.
1280         * lib/careadlinkat.c: Move gnulib includes after system includes.
1281
1282 2011-04-09  Bruno Haible  <bruno@clisp.org>
1283
1284         careadlinkat: Clarify specification.
1285         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1286         (careadlinkatcwd): Add comment.
1287         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1288
1289 2011-04-09  Bruno Haible  <bruno@clisp.org>
1290
1291         areadlinkat: Avoid link error on many platforms.
1292         * modules/areadlinkat (Depends-on): Add areadlink.
1293
1294 2011-04-09  Bruno Haible  <bruno@clisp.org>
1295
1296         allocator, careadlinkat: Fix double-inclusion guard.
1297         * lib/allocator.h: Fix double-inclusion guard.
1298         * lib/careadlinkat.h: Likewise.
1299
1300 2011-04-09  Bruno Haible  <bruno@clisp.org>
1301
1302         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1303         * lib/relocwrapper.c: Update dependencies hierarchy.
1304         * build-aux/install-reloc: Update list of files to be compiled.
1305         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1306         lib/allocator.[hc].
1307
1308 2011-04-08  Eric Blake  <eblake@redhat.com>
1309
1310         strftime: silence gnulib-tool warning
1311         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1312
1313 2011-04-08  Bruno Haible  <bruno@clisp.org>
1314
1315         verify: Fix syntax error with GCC 4.6 in C++ mode.
1316         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1317         (HAVE_STATIC_ASSERT): New macro.
1318         (verify_true, verify): Use 'static_assert' if it is supported and
1319         '_Static_assert' is not supported.
1320
1321 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1322
1323         allocator: New module.
1324         * modules/allocator, lib/allocator.c: New files.
1325         * lib/allocator.h (stdlib_allocator): New decl.
1326         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1327         Remove.  Do not include <stdlib.h>.
1328         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1329         * modules/careadlinkat (Files): Remove lib/allocator.h.
1330         (Depends-on): Add allocator.
1331
1332         stdlib: let modules use system malloc, realloc
1333         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1334         if !_GL_USE_STDLIB_ALLOC.
1335         (malloc, realloc): Limit this change to a smaller scope.
1336
1337         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1338         (malloc, realloc): Don't #undef; no longer needed.
1339         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1340         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1341         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1342         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1343         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1344         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1345         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1346         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1347
1348         careadlinkat: rename members to avoid problem
1349         * lib/allocator.h (struct allocator): Rename members from
1350         malloc/realloc to allocate/reallocate, to avoid problems if malloc
1351         and realloc are #define'd.  Reported by Eric Blake in
1352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
1353         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
1354
1355 2011-04-08  Eric Blake  <eblake@redhat.com>
1356
1357         nonblocking: reduce dependency
1358         * tests/test-nonblocking.c: Only test sockets when in use.
1359         * modules/nonblocking-tests (Depends-on): Drop socket.
1360         (Makefile.am): Link even if sockets are not present.
1361         * modules/pipe2-tests (Makefile.am): Likewise.
1362         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
1363
1364         pipe2: fix O_NONBLOCK support on mingw
1365         * modules/pipe2 (Depends-on): Add nonblocking.
1366         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
1367         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
1368         * tests/test-nonblocking.c (main): Likewise.
1369         * modules/pipe2-tests (Makefile.am): Avoid link failure.
1370
1371         fcntl-h: fix O_ACCMODE on cygwin
1372         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
1373         * lib/fcntl.in.h (O_ACCMODE): Fix it.
1374
1375         pipe-filter: drop O_NONBLOCK workarounds
1376         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
1377         * modules/pipe-filter-ii (Depends-on): Likewise.
1378         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
1379
1380         nonblocking: provide O_NONBLOCK for mingw
1381         * modules/nonblocking (Depends-on): Add open.
1382         (configure.ac): Set new witness macro.
1383         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
1384         * modules/fcntl-h (Makefile.am): Substitute it.
1385         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
1386         nonblocking module is in use.
1387         * lib/nonblocking.c: Adjust portability test.
1388         * lib/open.c (open): Don't let native open see gnulib flag.
1389         * tests/test-fcntl-h.c (main): Enhance test.
1390         * tests/test-open.h (test_open): Likewise.
1391         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
1392
1393         careadlinkat: fix compilation error on mingw
1394         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
1395         within struct allocator.
1396
1397 2011-04-06  Eric Blake  <eblake@redhat.com>
1398
1399         binary-io: relicense under LGPLv2+
1400         * modules/binary-io (License): Relax to LGPLv2+.
1401         Requested for libvirt, and required by pipe2.
1402
1403 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1404
1405         verify: use _Static_assert if available
1406         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
1407         (verify_true, verify): Use it if available.  This generates better
1408         diagnostics with GCC 4.6.0 and later.
1409
1410 2011-04-05  Bruno Haible  <bruno@clisp.org>
1411
1412         Remove leftover generated .h files after config.status changed.
1413
1414         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
1415         GL_GENERATE_ALLOCA_H.
1416         * modules/alloca-opt (Makefile.am): Remove alloca.h if
1417         GL_GENERATE_ALLOCA_H evaluates to false.
1418
1419         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
1420         GL_GENERATE_ARGZ_H.
1421         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
1422         evaluates to false.
1423
1424         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
1425         GL_GENERATE_BYTESWAP_H.
1426         * modules/byteswap (Makefile.am): Remove byteswap.h if
1427         GL_GENERATE_BYTESWAP_H evaluates to false.
1428
1429         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
1430         GL_GENERATE_ERRNO_H.
1431         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
1432         evaluates to false.
1433
1434         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
1435         GL_GENERATE_FLOAT_H.
1436         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
1437         evaluates to false.
1438
1439         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
1440         GL_GENERATE_FNMATCH_H.
1441         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
1442         GL_GENERATE_FNMATCH_H evaluates to false.
1443
1444         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
1445         GL_GENERATE_GLOB_H.
1446         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
1447         evaluates to false.
1448
1449         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
1450         automake conditional GL_GENERATE_ICONV_H.
1451         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
1452         evaluates to false.
1453
1454         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
1455         GL_GENERATE_NETINET_IN_H.
1456         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
1457         GL_GENERATE_NETINET_IN_H evaluates to false.
1458
1459         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
1460         conditional GL_GENERATE_PTHREAD_H.
1461         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
1462         * modules/pthread (Makefile.am): Remove pthread.h if
1463         GL_GENERATE_PTHREAD_H evaluates to false.
1464
1465         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
1466         GL_GENERATE_SCHED_H.
1467         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
1468         evaluates to false.
1469
1470         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
1471         conditional GL_GENERATE_SELINUX_CONTEXT_H.
1472         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
1473         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
1474
1475         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
1476         GL_GENERATE_STDARG_H.
1477         * modules/stdarg (Makefile.am): Remove stdarg.h if
1478         GL_GENERATE_STDARG_H evaluates to false.
1479
1480         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
1481         GL_GENERATE_STDBOOL_H.
1482         * modules/stdbool (Makefile.am): Remove stdbool.h if
1483         GL_GENERATE_STDBOOL_H evaluates to false.
1484
1485         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
1486         conditional GL_GENERATE_STDDEF_H.
1487         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
1488         * modules/stddef (Makefile.am): Remove stddef.h if
1489         GL_GENERATE_STDDEF_H evaluates to false.
1490
1491         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
1492         GL_GENERATE_STDINT_H.
1493         * modules/stdint (Makefile.am): Remove stdint.h if
1494         GL_GENERATE_STDINT_H evaluates to false.
1495
1496         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
1497         GL_GENERATE_SYSEXITS_H.
1498         * modules/sysexits (Makefile.am): Remove sysexits.h if
1499         GL_GENERATE_SYSEXITS_H evaluates to false.
1500
1501         Reported by Karl Berry and Ralf Wildenhues.
1502
1503 2011-04-05  Bruno Haible  <bruno@clisp.org>
1504
1505         Ensure to rebuild generated .h files when config.status has changed.
1506         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
1507         config.status.
1508         * modules/ctype (Makefile.am): Likewise.
1509         * modules/dirent (Makefile.am): Likewise.
1510         * modules/errno (Makefile.am): Likewise.
1511         * modules/fcntl-h (Makefile.am): Likewise.
1512         * modules/float (Makefile.am): Likewise.
1513         * modules/getopt-posix (Makefile.am): Likewise.
1514         * modules/glob (Makefile.am): Likewise.
1515         * modules/iconv-h (Makefile.am): Likewise.
1516         * modules/inttypes (Makefile.am): Likewise.
1517         * modules/langinfo (Makefile.am): Likewise.
1518         * modules/locale (Makefile.am): Likewise.
1519         * modules/math (Makefile.am): Likewise.
1520         * modules/netdb (Makefile.am): Likewise.
1521         * modules/netinet_in (Makefile.am): Likewise.
1522         * modules/poll-h (Makefile.am): Likewise.
1523         * modules/pthread (Makefile.am): Likewise.
1524         * modules/pty (Makefile.am): Likewise.
1525         * modules/sched (Makefile.am): Likewise.
1526         * modules/search (Makefile.am): Likewise.
1527         * modules/selinux-h (Makefile.am): Likewise.
1528         * modules/signal (Makefile.am): Likewise.
1529         * modules/spawn (Makefile.am): Likewise.
1530         * modules/stdarg (Makefile.am): Likewise.
1531         * modules/stdbool (Makefile.am): Likewise.
1532         * modules/stddef (Makefile.am): Likewise.
1533         * modules/stdint (Makefile.am): Likewise.
1534         * modules/stdio (Makefile.am): Likewise.
1535         * modules/stdlib (Makefile.am): Likewise.
1536         * modules/string (Makefile.am): Likewise.
1537         * modules/strings (Makefile.am): Likewise.
1538         * modules/sys_file (Makefile.am): Likewise.
1539         * modules/sys_ioctl (Makefile.am): Likewise.
1540         * modules/sys_select (Makefile.am): Likewise.
1541         * modules/sys_socket (Makefile.am): Likewise.
1542         * modules/sys_stat (Makefile.am): Likewise.
1543         * modules/sys_time (Makefile.am): Likewise.
1544         * modules/sys_times (Makefile.am): Likewise.
1545         * modules/sys_utsname (Makefile.am): Likewise.
1546         * modules/sys_wait (Makefile.am): Likewise.
1547         * modules/sysexits (Makefile.am): Likewise.
1548         * modules/termios (Makefile.am): Likewise.
1549         * modules/time (Makefile.am): Likewise.
1550         * modules/unistd (Makefile.am): Likewise.
1551         * modules/wchar (Makefile.am): Likewise.
1552         * modules/wctype-h (Makefile.am): Likewise.
1553         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1554
1555 2011-04-05  Bruno Haible  <bruno@clisp.org>
1556
1557         pipe2: Relicense under LGPLv2+.
1558         * modules/pipe2 (License): Change to LGPLv2+.
1559         Requested by Eric Blake, for libvirt.
1560
1561 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1562
1563         bootstrap: compute gnulib_extra_files after updating build_aux
1564         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1565         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1566
1567 2011-04-05  Eric Blake  <eblake@redhat.com>
1568
1569         bootstrap: preserve git whitelist item sorting
1570         * build-aux/bootstrap (sort_patterns): New function.
1571         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1572
1573 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1574
1575         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1576         sc_space_tab check.
1577
1578 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1579
1580         areadlink, areadlinkat: rewrite in terms of careadlinkat
1581         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1582         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1583         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1584         (malloc, realloc): Remove #undefs.
1585         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1586         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1587         readlink, ssize_t, stdint, unistd.
1588         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1589         areadlink, stdint.
1590
1591         careadlinkat: new module
1592         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1593         * modules/careadlinkat: New files, written by me with
1594         a review and feedback from Ben Pfaff in
1595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1596
1597 2011-04-01  Bruno Haible  <bruno@clisp.org>
1598
1599         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1600         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1601         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1602         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1603         Reported by Bruce Korb <bruce.korb@gmail.com>.
1604
1605 2011-04-01  Bruno Haible  <bruno@clisp.org>
1606
1607         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1608         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1609         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1610         * modules/wcpcpy (Depends-on): Add extensions.
1611         * modules/wcpncpy (Depends-on): Likewise.
1612         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1613         systems.
1614         * doc/posix-functions/wcpncpy.texi: Likewise.
1615         * doc/posix-functions/wcwidth.texi: Likewise.
1616
1617 2011-03-31  Eric Blake  <eblake@redhat.com>
1618
1619         nonblocking: fix mingw test failures
1620         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1621         non-blocking flag on regular file.
1622         (get_nonblocking_flag): Set errno on invalid fd.
1623         * tests/test-nonblocking.c (main): Avoid test failure on
1624         directories if fchdir is not active.
1625         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1626
1627 2011-03-31  Bruno Haible  <bruno@clisp.org>
1628
1629         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1630         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1631         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1632         Reported by Simon Josefsson <simon@josefsson.org>.
1633
1634 2011-03-31  Bruno Haible  <bruno@clisp.org>
1635         and Eric Blake  <eblake@redhat.com>
1636
1637         nonblocking: new module
1638         * modules/nonblocking: New module.
1639         * modules/nonblocking-tests: Likewise.
1640         * lib/nonblocking.h: New file.
1641         * lib/nonblocking.c: Likewise.
1642         * tests/test-nonblocking.c: New test.
1643         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1644
1645 2011-03-30  Bruno Haible  <bruno@clisp.org>
1646
1647         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1648         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1649         instead of 'printf' format for GCC >= 4.4.
1650         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1651         (fprintf, printf, vfprintf, vprintf): Declare with
1652         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1653         the system's vfprintf() function.
1654         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1655
1656 2011-03-30  Eric Blake  <eblake@redhat.com>
1657
1658         passfd: fix scoping bug
1659         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1660         before sendmsg/recvmsg.
1661
1662         passfd: standardize coding conventions
1663         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1664         can be learned at compile time.
1665         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1666         ifdefs.
1667         (sendfd, recvfd): Follow gnulib code conventions.
1668
1669         passfd: fix incorrect sendmsg arguments
1670         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1671         incorrect msg_controllen value.
1672         * modules/passfd-tests (Depends-on): Check for alarm.
1673         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1674         Reported by Bastien ROUCARIES.
1675
1676 2011-03-30  Bruno Haible  <bruno@clisp.org>
1677
1678         c-strcasestr: Relicense under LGPLv2+.
1679         * modules/c-strcasestr (License): Change to LGPLv2+.
1680         Requested by Eric Blake, for libvirt.
1681
1682 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1683
1684         * users.txt: Add libidn2.  Fix libtasn1 link.
1685
1686 2011-03-30  Jim Meyering  <meyering@redhat.com>
1687
1688         tests: readlink* ("",... fails with EINVAL on newer kernels
1689         readlink and readlinkat have typically failed with ENOENT for
1690         the invalid, empty file name,  "".  However, with the advent
1691         of linux-2.6.39, they fail with EINVAL.
1692         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1693         when operating on the empty file name.
1694         * tests/test-readlink.h (test_readlink): Likewise.
1695
1696 2011-03-29  Bruno Haible  <bruno@clisp.org>
1697
1698         Relicense some modules under LGPLv2+, for libidn2.
1699         * modules/array-mergesort (License): Change to LGPLv2+.
1700         * modules/c-strcaseeq (License): Likewise.
1701         * modules/striconveh (License): Likewise.
1702         * modules/striconveha (License): Likewise.
1703         * modules/uniconv/base (License): Likewise.
1704         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1705         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1706         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1707         * modules/unictype/base (License): Likewise.
1708         * modules/unictype/bidiclass-of (License): Likewise.
1709         * modules/unictype/category-M (License): Likewise.
1710         * modules/unictype/category-none (License): Likewise.
1711         * modules/unictype/category-of (License): Likewise.
1712         * modules/unictype/category-test (License): Likewise.
1713         * modules/unictype/category-test-withtable (License): Likewise.
1714         * modules/unictype/combining-class (License): Likewise.
1715         * modules/unictype/joiningtype-of (License): Likewise.
1716         * modules/unictype/scripts (License): Likewise.
1717         * modules/uninorm/base (License): Likewise.
1718         * modules/uninorm/canonical-decomposition (License): Likewise.
1719         * modules/uninorm/composition (License): Likewise.
1720         * modules/uninorm/decompose-internal (License): Likewise.
1721         * modules/uninorm/decomposition-table (License): Likewise.
1722         * modules/uninorm/nfc (License): Likewise.
1723         * modules/uninorm/nfd (License): Likewise.
1724         * modules/uninorm/u32-normalize (License): Likewise.
1725         * modules/unistr/base (License): Likewise.
1726         * modules/unistr/u32-cpy (License): Likewise.
1727         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1728         * modules/unistr/u32-to-u8 (License): Likewise.
1729         * modules/unistr/u32-uctomb (License): Likewise.
1730         * modules/unistr/u8-check (License): Likewise.
1731         * modules/unistr/u8-mblen (License): Likewise.
1732         * modules/unistr/u8-mbtouc (License): Likewise.
1733         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1734         * modules/unistr/u8-mbtoucr (License): Likewise.
1735         * modules/unistr/u8-prev (License): Likewise.
1736         * modules/unistr/u8-strlen (License): Likewise.
1737         * modules/unistr/u8-to-u32 (License): Likewise.
1738         * modules/unistr/u8-uctomb (License): Likewise.
1739         * modules/unitypes (License): Likewise.
1740         Requested by Simon Josefsson.
1741
1742 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1743
1744         lib-symbol-visibility: Add a notice.
1745         * modules/lib-symbol-visibility (Notice): New field.
1746
1747 2011-03-29  Bruno Haible  <bruno@clisp.org>
1748
1749         getaddrinfo: Doc fix.
1750         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1751         section "fixed in Gnulib".
1752
1753 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1754
1755         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1756         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1757
1758 2011-03-26  Bruno Haible  <bruno@clisp.org>
1759
1760         unictype/property-byname: Reduce the number of load-time relocations.
1761         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1762         (UC_PROPERTY_INDEX_*): New enumeration values.
1763         (uc_property_byname): Convert an index from the lookup table to an
1764         uc_property_t.
1765         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1766         values.
1767
1768 2011-03-26  Bruno Haible  <bruno@clisp.org>
1769
1770         unictype/property-byname: Allow omitted word separators and aliases.
1771         * lib/unictype/pr_byname.gperf: Add property names without word
1772         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1773         for 'space'.
1774
1775 2011-03-26  Bruno Haible  <bruno@clisp.org>
1776
1777         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1778         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1779         also hyphens to space.
1780         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1781         without spaces.
1782         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1783
1784 2011-03-26  Bruno Haible  <bruno@clisp.org>
1785
1786         unictype/joiningtype-byname: Recognize long names as well.
1787         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1788         a long name.
1789         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1790         unictype/joiningtype_byname.h.
1791         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1792         * lib/unictype/joiningtype_byname.gperf: New file.
1793         * modules/unictype/joiningtype-byname (Files): Add
1794         lib/unictype/joiningtype_byname.gperf.
1795         (Depends-on): Add gperf.
1796         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1797         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1798         long names.
1799
1800         Tests for module 'unictype/joiningtype-longname'.
1801         * modules/unictype/joiningtype-longname-tests: New file.
1802         * tests/unictype/test-joiningtype_longname.c: New file.
1803
1804         New module 'unictype/joiningtype-longname'.
1805         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1806         * lib/unictype/joiningtype_longname.c: New file.
1807         * modules/unictype/joiningtype-longname: New file.
1808         * modules/unictype/joiningtype-all (Depends-on): Add
1809         unictype/joiningtype-longname.
1810
1811 2011-03-26  Bruno Haible  <bruno@clisp.org>
1812
1813         unictype/bidiclass-byname: Recognize long names as well.
1814         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1815         name.
1816         * lib/unictype/bidi_byname.c: Include <string.h>,
1817         unictype/bidi_byname.h.
1818         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1819         * lib/unictype/bidi_byname.gperf: New file.
1820         * modules/unictype/bidiclass-byname (Files): Add
1821         lib/unictype/bidi_byname.gperf.
1822         (Depends-on): Add gperf.
1823         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1824         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1825         long names.
1826
1827         Tests for module 'unictype/bidiclass-longname'.
1828         * modules/unictype/bidiclass-longname-tests: New file.
1829         * tests/unictype/test-bidi_longname.c: New file.
1830
1831         New module 'unictype/bidiclass-longname'.
1832         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1833         * lib/unictype/bidi_longname.c: New file.
1834         * modules/unictype/bidiclass-longname: New file.
1835         * modules/unictype/bidiclass-all (Depends-on): Add
1836         unictype/bidiclass-longname.
1837
1838 2011-03-26  Bruno Haible  <bruno@clisp.org>
1839
1840         unictype/bidi*: Rename modules.
1841         * modules/unictype/bidiclass-all: Renamed from
1842         modules/unictype/bidicategory-all.
1843         * modules/unictype/bidiclass-name: Renamed from
1844         modules/unictype/bidiclass-name.
1845         (Description): Update.
1846         * modules/unictype/bidiclass-name-tests: Renamed from
1847         modules/unictype/bidicategory-name-tests.
1848         * modules/unictype/bidiclass-byname: Renamed from
1849         modules/unictype/bidicategory-byname.
1850         (Description): Update.
1851         * modules/unictype/bidiclass-byname-tests: Renamed from
1852         modules/unictype/bidicategory-byname-tests.
1853         * modules/unictype/bidiclass-of: Renamed from
1854         modules/unictype/bidicategory-of.
1855         (Description): Update.
1856         * modules/unictype/bidiclass-of-tests: Renamed from
1857         modules/unictype/bidicategory-of-tests.
1858         * modules/unictype/bidiclass-test: Renamed from
1859         modules/unictype/bidicategory-test.
1860         (Description): Update.
1861         * modules/unictype/bidiclass-test-tests: Renamed from
1862         modules/unictype/bidicategory-test-tests.
1863         * modules/unictype/bidicategory-all: New file, a simple redirection.
1864         * modules/unictype/bidicategory-name: Likewise.
1865         * modules/unictype/bidicategory-byname: Likewise.
1866         * modules/unictype/bidicategory-of: Likewise.
1867         * modules/unictype/bidicategory-test: Likewise.
1868         * modules/unictype/property-bidi-* (Dependencies): Update.
1869         * lib/unictype/bidi_*.c: Update comment.
1870
1871 2011-03-26  Bruno Haible  <bruno@clisp.org>
1872
1873         unictype/bidi*: Rename functions, part 2.
1874         * modules/unictype/bidicategory-name (configure.ac): Update required
1875         libunistring version.
1876         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1877
1878 2011-03-25  Bruno Haible  <bruno@clisp.org>
1879
1880         New module 'unictype/combining-class-all'.
1881         * modules/unictype/combining-class-all: New file.
1882
1883         Tests for module 'unictype/combining-class-byname'.
1884         * modules/unictype/combining-class-byname-tests: New file.
1885         * tests/unictype/test-combiningclass_byname.c: New file.
1886
1887         New module 'unictype/combining-class-byname'.
1888         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1889         * lib/unictype/combiningclass_byname.c: New file.
1890         * lib/unictype/combiningclass_byname.gperf: New file.
1891         * modules/unictype/combining-class-byname: New file.
1892
1893         Tests for module 'unictype/combining-class-longname'.
1894         * modules/unictype/combining-class-longname-tests: New file.
1895         * tests/unictype/test-combiningclass_longname.c: New file.
1896
1897         New module 'unictype/combining-class-longname'.
1898         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1899         * lib/unictype/combiningclass_longname.c: New file.
1900         * modules/unictype/combining-class-longname: New file.
1901
1902         Tests for module 'unictype/combining-class-name'.
1903         * modules/unictype/combining-class-name-tests: New file.
1904         * tests/unictype/test-combiningclass_name.c: New file.
1905
1906         New module 'unictype/combining-class-name'.
1907         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1908         * lib/unictype/combiningclass_name.c: New file.
1909         * modules/unictype/combining-class-name: New file.
1910
1911 2011-03-25  Bruno Haible  <bruno@clisp.org>
1912
1913         unictype/combining-class: Rename source files.
1914         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1915         of unictype/combining.h.
1916         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1917         Update.
1918         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1919         * modules/unictype/combining-class (Description): Fix.
1920         (Files, Makefile.am): Update.
1921         * tests/unictype/test-combiningclass.c: Renamed from
1922         tests/unictype/test-combining.c.
1923         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1924
1925 2011-03-25  Bruno Haible  <bruno@clisp.org>
1926
1927         unictype: Update list of canonical combining classes.
1928         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1929
1930 2011-03-25  Bruno Haible  <bruno@clisp.org>
1931
1932         unictype/category-byname: Recognize long names as well.
1933         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1934         a long name.
1935         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1936         unictype/categ_byname.h.
1937         (UC_CATEGORY_INDEX_*): New enumeration values.
1938         (uc_general_category_byname): Use uc_general_category_lookup and
1939         convert from index to value.
1940         * lib/unictype/categ_byname.gperf: New file.
1941         * modules/unictype/category-byname (Files): Add
1942         lib/unictype/categ_byname.gperf.
1943         (Depends-on): Add gperf.
1944         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1945         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1946         long names.
1947
1948         Tests for module 'unictype/category-longname'.
1949         * modules/unictype/category-longname-tests: New file.
1950         * tests/unictype/test-categ_longname.c: New file.
1951
1952         New module 'unictype/category-longname'.
1953         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1954         * lib/unictype/categ_longname.c: New file.
1955         * modules/unictype/category-longname: New file.
1956         * modules/unictype/category-all (Depends-on): Add it.
1957
1958 2011-03-25  Bruno Haible  <bruno@clisp.org>
1959
1960         Tests for module 'unictype/category-LC'.
1961         * modules/unictype/category-LC-tests: New file.
1962         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1963
1964         New module 'unictype/category-LC'.
1965         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1966         (UC_CATEGORY_LC): New declaration.
1967         (UC_CASED_LETTER): New macro.
1968         * lib/gen-uni-tables.c (is_category_LC): New function.
1969         (output_categories): Also handle category LC.
1970         (UC_CATEGORY_MASK_LC): New enumeration value.
1971         (general_category_byname): Also handle category LC.
1972         * lib/unictype/categ_LC.c: New file.
1973         * lib/unictype/categ_LC.h: New file, automatically generated.
1974         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1975         category LC.
1976         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1977         * modules/unictype/category-LC: New file.
1978         * modules/unictype/category-byname (Depends-on): Add
1979         unictype/category-LC.
1980         * modules/unictype/category-all (Depends-on): Likewise.
1981
1982 2011-03-25  Eric Blake  <eblake@redhat.com>
1983
1984         xmalloc: revert yesterday's regression
1985         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1986         realloc's underlying behavior (allowing allocation of zero-size
1987         objects, especially if malloc-gnu is also in use).
1988
1989 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1990
1991         maint.mk: add missing version to VC-tag
1992         * top/maint.mk: git tag was missing actual tag name; add it.
1993
1994         valgrind: do leak checking, and exit with code 1 on error (not 0)
1995         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1996         to VALGRIND.
1997
1998 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1999
2000         posix-modules: say what it does.
2001         * posix-modules: Add a line to the --help output saying what it does.
2002
2003 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2004
2005         xmalloc: Do not leak if underlying realloc is C99 compatible.
2006         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2007         This avoids a leak on C99-based systems.  See
2008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2009
2010 2011-03-24  Eric Blake  <eblake@redhat.com>
2011
2012         realloc: document portability problem
2013         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2014         passing 0 size to realloc.
2015
2016 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2017
2018         doc: update users.txt
2019         * users.txt: Add cvsps, tmpwatch
2020
2021 2011-03-23  Matt Rice  <ratmice@gmail.com>
2022
2023         doc: update users.txt
2024         * users.txt: Add gdb.
2025
2026 2011-03-23  Jim Meyering  <meyering@redhat.com>
2027
2028         doc: update users.txt
2029         Looking through matches up to the following URL (there are still
2030         several more pages), I found several projects that use gnulib:
2031         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2032         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2033         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2034
2035 2011-03-22  Bruno Haible  <bruno@clisp.org>
2036
2037         unictype/bidi*: Rename functions.
2038         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2039         uc_bidi_class, uc_is_bidi_class): New declarations.
2040         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2041         uc_bidi_category_byname.
2042         (uc_bidi_category_byname): New function.
2043         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2044         u_bidi_category_name.
2045         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2046         (uc_bidi_category_name): New function.
2047         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2048         uc_bidi_category.
2049         (uc_bidi_category): New function.
2050         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2051         uc_is_bidi_category. Invoke uc_bidi_class.
2052         (uc_is_bidi_category): New function.
2053         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2054         instead of uc_bidi_category_byname.
2055         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2056         instead of uc_bidi_category_name.
2057         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2058         uc_bidi_category.
2059         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2060         instead of uc_is_bidi_category.
2061
2062 2011-03-21  Bruno Haible  <bruno@clisp.org>
2063
2064         New module 'unictype/joininggroup-all'.
2065         * modules/unictype/joininggroup-all: New file.
2066
2067         Tests for module 'unictype/joininggroup-of'.
2068         * modules/unictype/joininggroup-of-tests: New file.
2069         * tests/unictype/test-joininggroup_of.c: New file.
2070         * tests/unictype/test-joininggroup_of.h: New file, automatically
2071         generated by gen-uni-tables.
2072
2073         New module 'unictype/joininggroup-of'.
2074         * modules/unictype/joininggroup-of: New file.
2075         * lib/unictype/joininggroup_of.c: New file.
2076         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2077         gen-uni-tables.
2078
2079         Tests for module 'unictype/joininggroup-byname'.
2080         * modules/unictype/joininggroup-byname-tests: New file.
2081         * tests/unictype/test-joininggroup_byname.c: New file.
2082
2083         New module 'unictype/joininggroup-byname'.
2084         * modules/unictype/joininggroup-byname: New file.
2085         * lib/unictype/joininggroup_byname.c: New file.
2086         * lib/unictype/joininggroup_byname.gperf: New file.
2087
2088         Tests for module 'unictype/joininggroup-name'.
2089         * modules/unictype/joininggroup-name-tests: New file.
2090         * tests/unictype/test-joininggroup_name.c: New file.
2091
2092         New module 'unictype/joininggroup-name'.
2093         * modules/unictype/joininggroup-name: New file.
2094         * lib/unictype/joininggroup_name.c: New file.
2095         * lib/unictype/joininggroup_name.h: New file.
2096
2097         New module 'unictype/joiningtype-all'.
2098         * modules/unictype/joiningtype-all: New file.
2099
2100         Tests for module 'unictype/joiningtype-of'.
2101         * modules/unictype/joiningtype-of-tests: New file.
2102         * tests/unictype/test-joiningtype_of.c: New file.
2103         * tests/unictype/test-joiningtype_of.h: New file, automatically
2104         generated by gen-uni-tables.
2105
2106         New module 'unictype/joiningtype-of'.
2107         * modules/unictype/joiningtype-of: New file.
2108         * lib/unictype/joiningtype_of.c: New file.
2109         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2110         gen-uni-tables.
2111
2112         Tests for module 'unictype/joiningtype-byname'.
2113         * modules/unictype/joiningtype-byname-tests: New file.
2114         * tests/unictype/test-joiningtype_byname.c: New file.
2115
2116         New module 'unictype/joiningtype-byname'.
2117         * modules/unictype/joiningtype-byname: New file.
2118         * lib/unictype/joiningtype_byname.c: New file.
2119
2120         Tests for module 'unictype/joiningtype-name'.
2121         * modules/unictype/joiningtype-name-tests: New file.
2122         * tests/unictype/test-joiningtype_name.c: New file.
2123
2124         New module 'unictype/joiningtype-name'.
2125         * modules/unictype/joiningtype-name: New file.
2126         * lib/unictype/joiningtype_name.c: New file.
2127
2128         unictype: Add support for Arabic shaping properties.
2129         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2130         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2131         declarations.
2132         (UC_JOINING_GROUP_*): New enumeration values.
2133         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2134         declarations.
2135         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2136         (unicode_joining_type): New variable.
2137         (UC_JOINING_GROUP_*): New enumeration values.
2138         (unicode_joining_group): New variable.
2139         (fill_arabicshaping, joining_type_as_c_identifier,
2140         output_joining_type_test, output_joining_type,
2141         joining_group_as_c_identifier, output_joining_group_test,
2142         output_joining_group): New functions.
2143         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2144         fill_arabicshaping and output_joining_type_test, output_joining_type,
2145         output_joining_group_test, output_joining_group.
2146         Reported by Simon Josefsson.
2147
2148 2011-03-21  Jim Meyering  <meyering@redhat.com>
2149
2150         strftime: fix a bug in yesterday's change
2151         * lib/strftime.c (add): Accommodate width's initial value of -1.
2152         Otherwise, nstrftime would copy uninitialized data into
2153         the result buffer.
2154
2155 2011-03-21  Jim Meyering  <meyering@redhat.com>
2156
2157         tests: add strftime-tests module
2158         * tests/test-strftime.c: New file.
2159         * modules/strftime-tests: New module.
2160
2161 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2162
2163         strftime: don't assume a byte count fits in 'int'
2164         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2165         found this problem by static analysis, using gcc -Wstrict-overflow
2166         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2167         on an integer overflow having undefined behavior, but it turns out
2168         that the argument is a size, which might not fit in 'int' anyway,
2169
2170 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2171
2172         stdio: don't require ignore_value around fwrite
2173
2174         This patch works around libc bug 11959
2175         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2176         Without this patch, applications must often write
2177         ignore_value (fwrite (...)) even though the ignore_value is
2178         not helpful here.  It's common to write many objects, using
2179         fwrite/printf/etc., and then use ferror to detect output error.
2180
2181         I considered making this patch optional, but decided against it,
2182         because libc is obviously being inconsistent here: there is no
2183         reason libc should insist that user code must inspect fwrite
2184         return's value without also insisting that it inspect printf's,
2185         putchar's, etc.  If user code wants to have a strict style where
2186         all these functions' values are checked (so that ferror need not
2187         be checked), we could add support for that style in a new gnulib
2188         module, but in the meantime it's better to be consistent and to
2189         support common usage.
2190
2191         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2192         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2193         that we are compiling in checking mode, and if not C++, and
2194         if not already wrapping fwrite for some other reason.
2195         (fwrite): #define to rpl_fwrite if the latter is defined.
2196
2197 2011-03-20  Bruno Haible  <bruno@clisp.org>
2198
2199         verror: Fix compilation error introduced on 2011-02-13.
2200         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2201         instead of __attribute__.
2202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2203
2204 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2205             Bruno Haible  <bruno@clisp.org>
2206
2207         socklen: do not depend on sys_socket
2208         While trying to modify Emacs to use gnulib's socklen module,
2209         I discovered a circular dependency: socklen depends on sys_socket
2210         and vice versa.  Emacs can use socklen, but it does not need
2211         sys_socket because it has its own substitute for sys/socket.h.
2212         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2213         gl_TYPE_SOCKLEN_T.
2214         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2215         gl_PREREQ_SYS_H_SOCKET.
2216         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2217         gl_PREREQ_SYS_H_SOCKET.
2218         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2219         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2220         * modules/socklen (Depends-on): Do not depend on sys_socket.
2221         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2222
2223 2011-03-20  Jim Meyering  <meyering@redhat.com>
2224
2225         maint.mk: sort file names *after* new transformation
2226         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2227         prefix would have led to an unwarranted failure in GNU parted.
2228         Sort after that transformation.
2229
2230 2011-03-19  Jim Meyering  <meyering@redhat.com>
2231
2232         maint.mk: fix po-file syntax-check rule
2233         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2234         Patch by Bruno Haible.
2235
2236 2011-03-19  Bruno Haible  <bruno@clisp.org>
2237
2238         socklen: Update comment.
2239         * m4/socklen.m4: Update comment about platforms.
2240
2241 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2242             Bruno Haible  <bruno@clisp.org>
2243
2244         inet_ntop, inet_pton: Simplify.
2245         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2246         documented to provide socklen_t and we already depend on sys_socket.
2247         * modules/inet_pton (Depends-on): Likewise.
2248         * lib/arpa_inet.in.h: Adjust comment.
2249
2250 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2251             Bruno Haible  <bruno@clisp.org>
2252
2253         netdb: Simplify.
2254         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2255         documented to provide socklen_t and we already depend on sys_socket.
2256         * lib/netdb.in.h: Adjust comment.
2257
2258 2011-03-19  Bruno Haible  <bruno@clisp.org>
2259
2260         sys_socket, netdb: Document problem with socklen_t.
2261         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2262         platforms.
2263         * doc/posix-headers/netdb.texi: Likewise.
2264
2265 2011-03-18  Eric Blake  <eblake@redhat.com>
2266
2267         maint.mk: let po check work in VPATH build
2268         * top/maint.mk (po_file): Allow cfg.mk override.
2269         (sc_po_check): Allow VPATH use.
2270         Reported by Jiri Denemark.
2271
2272 2011-03-16  Jim Meyering  <meyering@redhat.com>
2273
2274         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2275         Before, you would have had to create one .x-sc_ file per rule in order
2276         to exempt offending files.  Now, you may instead use a Make variable --
2277         usually defined in cfg.mk -- whose name identifies the affected rule.
2278         * top/maint.mk (_sc_excl): Define.
2279         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2280         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2281
2282 2011-03-13  Bruno Haible  <bruno@clisp.org>
2283
2284         ignore-value tests: Avoid warnings.
2285         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2286         empty for gcc < 3.4.
2287
2288 2011-03-13  Bruno Haible  <bruno@clisp.org>
2289
2290         passfd: Fix link error on Solaris.
2291         * modules/passfd (Description): Correct.
2292         (Depends-on): Add socketlib.
2293         (Link): New section.
2294         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2295
2296 2011-03-13  Bruno Haible  <bruno@clisp.org>
2297
2298         passfd: Fix link error on AIX 5.2.
2299         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2300
2301 2011-03-13  Bruno Haible  <bruno@clisp.org>
2302
2303         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2304         * lib/sys_socket.in.h: Include <stddef.h>.
2305         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2306         CMSG_FIRSTHDR. Remove unused variable.
2307
2308 2011-03-13  Bruno Haible  <bruno@clisp.org>
2309
2310         passfd: Fix compilation error on OpenBSD.
2311         * lib/passfd.c: Include <sys/uio.h>.
2312
2313 2011-03-13  Bruno Haible  <bruno@clisp.org>
2314
2315         passfd test: Fix warnings.
2316         * tests/test-passfd.c: Include <sys/wait.h>.
2317         (main): Fix typo.
2318
2319 2011-03-13  Bruno Haible  <bruno@clisp.org>
2320
2321         passfd module, part 4, tweaks.
2322         * tests/test-passfd.c: Reorder includes.
2323         (main): Fix perror and printf calls.
2324
2325 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2326
2327         passfd module, part 4.
2328         * modules/passfd-tests: New file.
2329         * tests/test-passfd.c: New file.
2330
2331 2011-03-13  Jim Meyering  <meyering@redhat.com>
2332
2333         Makefile: rely on GNU make; derive syntax-check rule names
2334         Rather than requiring that each sc_ rule be listed as a dependent
2335         of "check", use features of GNU make to derive the list.
2336         * Makefile (syntax-check-rules): Define.
2337         (check): Depend on the new variable, not the hard-coded list.
2338
2339 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2340             Bruno Haible  <bruno@clisp.org>
2341
2342         passfd module, part 3.
2343         * lib/passfd.h (recvfd): Add a flags argument.
2344         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
2345         (recvfd): Add a flags argument.
2346         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
2347         exists.
2348         * modules/passfd (Depends-on): Add cloexec.
2349         Suggested by Eric Blake.
2350
2351 2011-03-13  Bruno Haible  <bruno@clisp.org>
2352
2353         passfd module, part 2, tweaks.
2354         * modules/passfd (Files): Reorder.
2355         (Depends-on): Remove errno.
2356         (Include): Remove <sys/socket.h>, <sys/un.h>.
2357         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
2358         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
2359         specification header. Include <sys/socket.h> always. Don't include
2360         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
2361         (sendfd): Clarify that it sets errno when it fails.
2362         (recvfd): Fix specification.
2363
2364 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2365
2366         passfd module, part 2.
2367         * modules/passfd: New file.
2368         * lib/passfd.h: New file.
2369         * lib/passfd.c: New file.
2370
2371 2011-03-12  Bruno Haible  <bruno@clisp.org>
2372
2373         wcswidth, mbswidth: Avoid integer overflow.
2374         * lib/wcswidth.c: Include <limits.h>.
2375         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
2376         * lib/mbswidth.c: Include <limits.h>.
2377         (mbsnwidth): Avoid 'int' overflow.
2378         Reported by Jim Meyering.
2379
2380 2011-03-12  Bruno Haible  <bruno@clisp.org>
2381
2382         futimens, utimensat: Avoid endless recursion on Solaris 10.
2383         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
2384         Solaris.
2385         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
2386         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
2387
2388 2011-03-11  Jim Meyering  <meyering@redhat.com>
2389
2390         maint.mk: relax a regexp to accommodate other formatting styles
2391         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
2392         between "ngettext" and the following "(".
2393
2394 2011-03-11  Pádraig Brady <P@draigBrady.com>
2395
2396         maint.mk: suppress a false positive warning
2397         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
2398         diagnostics are marked with ngettext.
2399
2400 2011-03-10  Eric Blake  <eblake@redhat.com>
2401
2402         wchar: add explicit dependencies, for Tru64
2403         * modules/mbmemcasecoll (Depends-on): Add wchar.
2404         * modules/mbtowc (Depends-on): Likewise.
2405         * modules/vasnprintf (Depends-on): Likewise.
2406         * modules/unistdio/u-printf-args (Depends-on): Likewise.
2407         * modules/wctomb (Depends-on): Likewise.
2408         Reported by Peter O'Gorman.
2409
2410 2011-03-08  Bruno Haible  <bruno@clisp.org>
2411
2412         passfd module, part 1, tweaks.
2413         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
2414         Improve indentation. Improve AC_MSG_CHECKING messages.
2415         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
2416         gl_SOCKET_FAMILIES.
2417
2418 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2419
2420         passfd module, part 1.
2421         * m4/afunix.m4: New file.
2422         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
2423         sockets.
2424
2425 2011-03-08  Bruno Haible  <bruno@clisp.org>
2426
2427         regex-quote: New API.
2428         * lib/regex-quote.h: Include <stdbool.h>.
2429         (struct regex_quote_spec): New type.
2430         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2431         New declarations.
2432         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2433         'const struct regex_quote_spec *' argument.
2434         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
2435         (pcre_special): New constant.
2436         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2437         New functions.
2438         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2439         'const struct regex_quote_spec *' argument.
2440         * modules/regex-quote (Depends-on): Add stdbool.
2441         * tests/test-regex-quote.c (check): Update for new API. Add test for
2442         anchored results.
2443         * NEWS: Mention the API change.
2444         Reported by Reuben Thomas and Eric Blake.
2445
2446 2011-03-06  Bruno Haible  <bruno@clisp.org>
2447
2448         regex-quote: Fix creation of POSIX extended regular expressions.
2449         * lib/regex-quote.c (ere_special): Add grouping and alternation
2450         operators.
2451
2452 2011-03-05  Bruno Haible  <bruno@clisp.org>
2453
2454         doc: Improve doc regarding autopoint vs. gnulib.
2455         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
2456         disable autopoint while running autoreconf.
2457         Suggested by Ralf Wildenhues.
2458
2459 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2460
2461         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
2462         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
2463
2464 2011-03-03  Bruce Korb  <bkorb@gnu.org>
2465
2466         parse-duration: remove xalloc.h dependency
2467         * lib/parse-duration.c (parse_period): handle NULL return from
2468         strdup instead of calling xstrdup().
2469         * modules/parse-duration: remove "xalloc" dependency
2470
2471 2011-03-03  Matthew Booth  <mbooth@redhat.com>
2472
2473         bootstrap: honor m4_base when running aclocal
2474         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
2475
2476 2011-03-02  Jim Meyering  <meyering@redhat.com>
2477
2478         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
2479         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
2480         on request from Matt Booth.
2481
2482 2011-03-01  Eric Blake  <eblake@redhat.com>
2483
2484         test-link: work on Hurd
2485         * tests/test-link.h (test_link): Hurd rejects linking directories
2486         with EISDIR instead of the POSIX-mandated EPERM.
2487
2488 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2489
2490         stdio: simplify by moving files to printf-posix, sigpipe
2491         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
2492         since this symbol is needed only if printf is replaced.
2493         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
2494         Require gl_ASM_SYMBOL_PREFIX.
2495         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
2496         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
2497         (Depends-on): Add 'raise'.
2498         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
2499         * modules/stdio (Files): Remove lib/stdio-write.c,
2500         m4/asm-underscore.m4.
2501         (Depends-on): Remove 'raise'.
2502
2503         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
2504         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
2505         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
2506         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
2507
2508 2011-02-28  Bruno Haible  <bruno@clisp.org>
2509
2510         localcharset: Assume ANSI C behaviour of free().
2511         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
2512         calling free().
2513         Suggested by Simon Josefsson <simon@josefsson.org>.
2514
2515 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
2516             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
2517             Bruno Haible  <bruno@clisp.org>  (tiny change)
2518
2519         On Cygwin, use /proc file system instead of win32 API.
2520         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
2521         Win32 file names.
2522         (DllMain): Simplify by removing Cygwin specific code.
2523         (find_shared_library_fullname): Use Linux specific implementation also
2524         for Cygwin.
2525         (get_shared_library_fullname): Update accordingly.
2526         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
2527         Win32 file names.
2528         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
2529         Cygwin specific code.
2530
2531 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
2532             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
2533
2534         Fix OpenMP flag detection for various Fortran compilers.
2535         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
2536         OpenMP-conditional compilation construct, to force compile
2537         failure with missing OpenMP flag.
2538         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
2539
2540 2011-02-25  Eric Blake  <eblake@redhat.com>
2541
2542         strstr: expand test coverage
2543         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
2544         compilation.
2545         * tests/test-memmem.c (main): Duplicate tests.
2546         * tests/test-strcasestr.c (main): Likewise.
2547         * tests/test-c-strcasestr.c (main): Likewise.
2548
2549 2011-02-25  Jim Meyering  <meyering@redhat.com>
2550
2551         maint.mk: detect missing-NL-at-EOF, too
2552         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2553         it also detects when a file lacks a newline at EOF.
2554         (require_exactly_one_NL_at_EOF_): Renamed from
2555         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2556         since people may well have .x-sc_... file names tied to the
2557         existing name.  Suggested by Eric Blake.
2558
2559 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2560
2561         dirname: move m4/dos.m4 functionality into lib/dosname.h
2562
2563         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2564         extracts symbols from it, puts them into config.h; but it's much
2565         easier to use the symbols directly.  filename.h already does this,
2566         but it disagrees with dos.m4 in some respects.  This patch
2567         introduces a different include file dosname.h that packages up
2568         dos.m4, and then later we can work on merging filename.h and
2569         dosname.h.  Applications that need only the easy-to-configure
2570         symbols should consider including dosname.h rather than dirname.h.
2571         * NEWS: Mention incompatible changes.
2572         * m4/dos.m4: Remove.
2573         * lib/dosname.h, modules/dosname: New files.
2574         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2575         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2576         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2577         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2578         Include dosname.h, not dirname.h.
2579         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2580         Include dosname.h, for definitions of symbols like ISSLASH
2581         that used to be in config.h.
2582         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2583         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2584         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2585         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2586         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2587         * modules/rmdir (Files): Likewise.
2588         * modules/stat (Files): Likewise.
2589         * modules/unlink (Files): Likewise.
2590         * modules/dirname-lgpl (Depends-on): Add dosname.
2591         * modules/lstat (Depends-on): Likewise.
2592         * modules/openat (Depends-on): Likewise.
2593         * modules/rmdir (Depends-on): Likewise.
2594         * modules/savewd (Depends-on): Likewise.
2595         * modules/stat (Depends-on): Likewise.
2596         * modules/unlink (Depends-on): Likewise.
2597         * modules/openat (Depends-on): Remove dirname-lgpl.
2598         * modules/savewd (Depends-on): Likewise.
2599         * tests/test-dirname.c: Do not use removed symbols like
2600         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2601         the remaining symbols, e.g., ISSLASH ('\\').
2602
2603 2011-02-25  Eric Blake  <eblake@redhat.com>
2604
2605         strstr: revert patches that introduced bug and pessimization
2606         * lib/str-two-way.h: Add another reference.
2607         (two_way_short_needle, two_way_long_needle): Revert changes from
2608         2011-02-24; they pessimize search speed.
2609         (critical_factorization): Partially revert changes from
2610         2010-06-22; they violate the requirement that the left half of the
2611         needle be smaller than the period of the needle.
2612
2613 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2614
2615         filenamecat: remove unnecessary dependency on dirname-lgpl
2616         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2617         is no direct dependency, just an indirect one via filenamecat-lgpl.
2618
2619         remove: remove unnecessary use of m4/dos.m4
2620         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2621         * modules/remove (FILES): Remove m4/dos.m4.
2622
2623         * lib/openat-proc.c: Don't include dirname.h; not needed.
2624
2625         backupfile: remove unnecessary use of m4/dos.m4
2626         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2627         of its symbols are used by the backupfile code.  backupfile.c does
2628         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2629         for the rare case of programs that want all their backup file
2630         names to live within 8+3 limits, and dos.m4 doesn't address that.
2631         * modules/backupfile (Files): Remove m4/dos.m4.
2632
2633 2011-02-24  Jim Meyering  <meyering@redhat.com>
2634
2635         strstr: fix a bug whereby strstr would mistakenly return NULL
2636         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2637         in period calculation.
2638         (two_way_long_needle): Likewise.
2639         The original problem was reported by Mike Stump in
2640         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2641         Ralf Wildenhues provided the short needle and haystack.
2642         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2643         Add a more involved test to trigger the bug in two_way_long_needle.
2644
2645 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2646
2647         gnulib-tool: remove use of bold display in help screen
2648         * gnulib-tool (func_usage): Do not use bold display anymore in the
2649         help screen.  That was just meant to be a temporary emphasis for a
2650         backward-incompatible change.
2651
2652 2011-02-23  Bruno Haible  <bruno@clisp.org>
2653
2654         Fix misindentation of preprocessor directives.
2655         * lib/argp-namefrob.h: Reindent preprocessor directives.
2656         * lib/getopt_int.h (struct _getopt_data): Likewise.
2657         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2658         * lib/vasnprintf.c (decode_long_double): Likewise.
2659         * tests/test-argmatch.c: Insert blank lines, for clarity.
2660         * tests/test-exclude.c: Likewise.
2661
2662 2011-02-22  Bruno Haible  <bruno@clisp.org>
2663
2664         ioctl: Fix for MacOS X in 64-bit mode.
2665         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2666         value.
2667         Suggested by Eric Blake.
2668         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2669
2670 2011-02-22  Jim Meyering  <meyering@redhat.com>
2671
2672         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2673         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2674         in lib/.
2675
2676 2011-02-22  Eric Blake  <eblake@redhat.com>
2677
2678         maint: avoid any CDPATH issue
2679         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2680
2681         maint: adjust cpp indentation for my modules, as well
2682         * Makefile (sc_cpp_indent_check): Add my name.
2683         * lib/fbufmode.c: Filter through cppi.
2684         * lib/fpurge.c: Likewise.
2685         * lib/freadable.c: Likewise.
2686         * lib/freading.c: Likewise.
2687         * lib/fwritable.c: Likewise.
2688         * lib/fwriting.c: Likewise.
2689         * lib/sigaction.c: Likewise.
2690
2691 2011-02-22  Jim Meyering  <meyering@redhat.com>
2692
2693         maint: adjust cpp indentation to reflect nesting depth
2694         I.e., in a block of code that begins with an unnested "#if",
2695         put one space between the "#" in column 1 and following token.
2696         For example,
2697         -#include <sys/vfs.h>
2698         +# include <sys/vfs.h>
2699         Do this only in .c files that are part of a module I maintain.
2700         * lib/linkat.c: Filter through cppi.
2701         * lib/nanosleep.c: Likewise.
2702         * lib/openat.c: Likewise.
2703         * lib/openat-die.c: Likewise.
2704         * lib/dup3.c: Likewise.
2705         * lib/fchownat.c: Likewise.
2706         * lib/flock.c: Likewise.
2707         * lib/fsync.c: Likewise.
2708         * lib/fts.c: Likewise.
2709         * lib/getpass.c: Likewise.
2710         * lib/gettimeofday.c: Likewise.
2711         * lib/userspec.c: Likewise.
2712         * Makefile (sc_cpp_indent_check): New rule, to check this.
2713
2714 2011-02-22  Bruno Haible  <bruno@clisp.org>
2715
2716         New module 'wctomb'.
2717         * lib/stdlib.in.h (wctomb): New declaration.
2718         * lib/wctomb.c: New file.
2719         * lib/wctomb-impl.h: New file.
2720         * m4/wctomb.m4: New file.
2721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2722         REPLACE_WCTOMB.
2723         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2724         REPLACE_WCTOMB.
2725         * modules/wctomb: New file.
2726         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2727         * doc/posix-functions/wctomb.texi: Mention the new module.
2728         * modules/wctob (Depends-on): Add wctomb.
2729
2730 2011-02-22  Bruno Haible  <bruno@clisp.org>
2731
2732         New module 'mbtowc'.
2733         * lib/stdlib.in.h (mbtowc): New declaration.
2734         * lib/mbtowc.c: New file.
2735         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2736         * m4/mbtowc.m4: New file.
2737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2738         REPLACE_MBTOWC.
2739         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2740         REPLACE_MBTOWC.
2741         * modules/mbtowc: New file.
2742         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2743         * doc/posix-functions/mbtowc.texi: Mention the new module.
2744         * modules/btowc (Depends-on): Add mbtowc.
2745
2746 2011-02-22  Bruno Haible  <bruno@clisp.org>
2747
2748         wcrtomb: Add more tests for native Windows platforms.
2749         * tests/test-wcrtomb-w32-1.sh: New file.
2750         * tests/test-wcrtomb-w32-2.sh: New file.
2751         * tests/test-wcrtomb-w32-3.sh: New file.
2752         * tests/test-wcrtomb-w32-4.sh: New file.
2753         * tests/test-wcrtomb-w32-5.sh: New file.
2754         * tests/test-wcrtomb-w32.c: New file.
2755         * modules/wcrtomb-tests (Files): Add them.
2756         (Makefile.am): Arrange to run these tests.
2757         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2758         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2759
2760 2011-02-20  Bruno Haible  <bruno@clisp.org>
2761
2762         wcrtomb: Enhance test.
2763         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2764
2765 2011-02-20  Bruno Haible  <bruno@clisp.org>
2766
2767         mbrtowc: Tiny optimization.
2768         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2769
2770 2011-02-20  Jim Meyering  <meyering@redhat.com>
2771
2772         test-exclude.c: remove unmatched #endif
2773         * tests/test-exclude.c: Remove stray #endif, left over from
2774         the change of a week ago.
2775
2776 2011-02-19  Jim Meyering  <meyering@redhat.com>
2777
2778         git-version-gen: skip "-dirty" check when appropriate
2779         * build-aux/git-version-gen: Don't run any git commands when the
2780         version string comes from .tarball-version.  Prior to this, we
2781         would run git update-index --refresh even from a just-unpacked
2782         tarball directory, and that could affect a .git/ directory in a
2783         parent of the build directory.  Reported by Mike Frysinger.
2784
2785 2011-02-19  Bruno Haible  <bruno@clisp.org>
2786
2787         unictype/property-byname: Reduce the size of the 'data' segment.
2788         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2789
2790 2011-02-19  Bruno Haible  <bruno@clisp.org>
2791
2792         unictype/scripts: Reduce the size of the 'data' segment.
2793         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2794         '%pic'.
2795         * lib/unictype/scripts_byname.gperf: Regenerated.
2796
2797 2011-02-19  Bruno Haible  <bruno@clisp.org>
2798
2799         stdint: Update documentation.
2800         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2801
2802 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2803
2804         stdint: omit redundant check for wchar.h
2805         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2806         always tests whether wchar.h exists, so remove the now-redundant test.
2807
2808 2011-02-18  Bruno Haible  <bruno@clisp.org>
2809
2810         stdint: Cut dependency to module 'wchar'.
2811         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2812         include the necessary prerequisites.
2813         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2814         * modules/stdint (Depends-on): Remove wchar.
2815         (Makefile.am): Substitute HAVE_WCHAR_H.
2816         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2817
2818 2011-02-18  Eric Blake  <eblake@redhat.com>
2819
2820         longlong: skip, rather than fail, on cross-compilation
2821         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2822         when cross-compiling; regression from 2011-02-16.
2823
2824 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2825
2826         * NEWS: Mention 2011-02-08 change to stdlib.
2827
2828 2011-02-17  Bruno Haible  <bruno@clisp.org>
2829
2830         getloadavg: Add comments about platforms.
2831         * m4/getloadavg.m4: Add comment.
2832         * lib/getloadavg.c: Likewise.
2833
2834 2011-02-17  Bruno Haible  <bruno@clisp.org>
2835
2836         getloadavg: Fix link error on Solaris 2.6.
2837         * modules/getloadavg (Link): New section.
2838         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2839         linking test-getloadavg.
2840         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2841         getloadavg.
2842
2843 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2844
2845         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2846         It was 'int', but this doesn't match the IRIX 6.5 manual.
2847         Suggested by Bruno Haible in
2848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2849
2850 2011-02-17  Bruno Haible  <bruno@clisp.org>
2851
2852         havelib: Fix comments.
2853         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2854         change.
2855
2856 2011-02-17  Bruno Haible  <bruno@clisp.org>
2857
2858         havelib: Update config.rpath.
2859         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2860
2861 2011-02-17  Bruno Haible  <bruno@clisp.org>
2862
2863         getloadavg test: Add some plausibility checks.
2864         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2865         is improbable.
2866
2867 2011-02-16  Eric Blake  <eblake@redhat.com>
2868
2869         maintainer-makefile: make syntax-check a no-op from tarballs
2870         * top/maint.mk (no-vc-detected): New rule.
2871         (local-checks-available): Use it to avoid hanging if someone tries
2872         'make syntax-check' from a tarball.  Also append to any non-syntax
2873         checks already defined in cfg.mk.
2874
2875 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2876
2877         longlong: tune, particularly for common case of c99
2878
2879         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2880         or running anything if c99, or if unsigned long long int does not
2881         work.  In either case, we know the answer without further tests.
2882         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2883         it at most once, and use its results for both long long int and
2884         unsigned long long int.  This is more likely to be efficient in
2885         the common case where the program wants to check for both long
2886         long int and unsigned long long int.
2887         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2888         since the answer is already known.
2889
2890 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2891
2892         getloadavg: set errno
2893         * lib/getloadavg.c: Set errno when returning -1.  If no other
2894         error number looks appropriate, set it to ENOSYS if the getloadavg
2895         looks like it can't possibly ever work, ENOTSUP otherwise.
2896         Suggested by Bruno Haible in
2897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2898
2899         getloadavg: trim unused parts and speed up 'configure'
2900         * NEWS: Document this.
2901         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2902         always compiled if getloadavg is absent.
2903         Move test code to ...
2904         * tests/test-getloadavg.c: New file, containing previous
2905         contents of test from lib/getloadavg.c.  It also contains
2906         suggestions by Bruno Haible in
2907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2908         * modules/getloadavg-tests: New file.
2909         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2910         Do tests in the same order as they're needed for getloadavg.c.
2911         Omit setgid-related tests that generate symbols KMEM_GROUP,
2912         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2913         Do only the tests that are needed to see whether the system has
2914         getloadavg, moving the other tests into ...
2915         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2916         NLIST_NAME_UNION; nobody should be using it.  Do not define
2917         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2918         relevant, as the user of this module shouldn't care how getloadavg
2919         is implemented.
2920
2921         getloadavg: omit unused var
2922         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2923
2924 2011-02-15  Jim Meyering  <meyering@redhat.com>
2925
2926         doc: update users.txt
2927         * users.txt: Update iwhd's URL.
2928
2929 2011-02-13  Bruno Haible  <bruno@clisp.org>
2930
2931         Consistent macro naming for macros that use GCC __attribute__.
2932         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2933         _ATTRIBUTE_NONNULL_.
2934         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2935         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2936         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2937         ATTRIBUTE_DEPRECATED.
2938         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2939         ATTRIBUTE_NORETURN.
2940         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2941         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2942         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2943         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2944         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2945         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2946         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2947         ATTRIBUTE_SENTINEL.
2948         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2949         ATTRIBUTE_RETURN_CHECK.
2950         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2951         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2952         ATTRIBUTE_NORETURN.
2953         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2954         Reported by Paul Eggert.
2955
2956 2011-02-13  Bruno Haible  <bruno@clisp.org>
2957
2958         Don't interfere with a program's definition of __attribute__.
2959         * lib/argp.h (__attribute__): Remove definition.
2960         (_GL_ATTRIBUTE_FORMAT): New macro.
2961         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2962         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2963         (_GL_ATTRIBUTE_FORMAT): New macro.
2964         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2965         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2966         GCC 3 or newer.
2967         * lib/error.h (__attribute__): Remove definition.
2968         (_GL_ATTRIBUTE_FORMAT): New macro.
2969         (error, error_at_line): Use it.
2970         * lib/hash.h (__attribute__): Remove definition.
2971         (ATTRIBUTE_WUR): Update definition. Define always.
2972         * lib/openat.h (__attribute__): Remove definition.
2973         (ATTRIBUTE_NORETURN): Update definition. Define always.
2974         * lib/sigpipe-die.h (__attribute__): Remove definition.
2975         (ATTRIBUTE_NORETURN): Update definition. Define always.
2976         * lib/vasnprintf.h (__attribute__): Remove definition.
2977         (_GL_ATTRIBUTE_FORMAT): New macro.
2978         (asnprintf, vasnprintf): Use it.
2979         * lib/xalloc.h (__attribute__): Remove definition.
2980         (ATTRIBUTE_NORETURN): Update definition. Define always.
2981         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2982         * lib/xmemdup0.h (__attribute__): Remove definition.
2983         (ATTRIBUTE_NORETURN): Update definition. Define always.
2984         * lib/xprintf.h (__attribute__): Remove definition.
2985         (_GL_ATTRIBUTE_FORMAT): New macro.
2986         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2987         * lib/xstrtol.h (__attribute__): Remove definition.
2988         (ATTRIBUTE_NORETURN): Update definition. Define always.
2989         * lib/xvasprintf.h (__attribute__): Remove definition.
2990         (_GL_ATTRIBUTE_FORMAT): New macro.
2991         (xasprintf, xvasprintf): Use it.
2992         * tests/test-argmatch.c (__attribute__): Remove definition.
2993         (ATTRIBUTE_NORETURN): Update definition. Define always.
2994         * tests/test-exclude.c (__attribute__): Remove definition.
2995         (ATTRIBUTE_NORETURN): Update definition. Define always.
2996         Reported by Paul Eggert.
2997
2998 2011-02-13  Bruno Haible  <bruno@clisp.org>
2999
3000         mbrtowc: Add more tests for native Windows platforms.
3001         * tests/test-mbrtowc-w32-1.sh: New file.
3002         * tests/test-mbrtowc-w32-2.sh: New file.
3003         * tests/test-mbrtowc-w32-3.sh: New file.
3004         * tests/test-mbrtowc-w32-4.sh: New file.
3005         * tests/test-mbrtowc-w32-5.sh: New file.
3006         * tests/test-mbrtowc-w32.c: New file.
3007         * modules/mbrtowc-tests (Files): Add them.
3008         (Makefile.am): Arrange to run these tests.
3009         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3010         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3011
3012 2011-02-13  Bruno Haible  <bruno@clisp.org>
3013
3014         mbrtowc: Work around native Windows bug.
3015         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3016         guess when no suitable locale for testing was found.
3017         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3018
3019 2011-02-13  Bruno Haible  <bruno@clisp.org>
3020
3021         mbsinit: Work around mingw bug.
3022         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3023         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3024         Windows.
3025         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3026
3027 2011-02-13  Bruno Haible  <bruno@clisp.org>
3028
3029         mbsinit: Don't crash for a NULL argument.
3030         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3031         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3032
3033 2011-02-13  Bruno Haible  <bruno@clisp.org>
3034
3035         Don't interfere with a program's definition of __attribute__.
3036         * lib/stdio.in.h (__attribute__): Remove definition.
3037         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3038         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3039         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3040         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3041         * lib/string.in.h (__attribute__): Remove definition.
3042         Reported by Paul Eggert.
3043
3044 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3045
3046         stdlib: don't get in the way of non-GCC __attribute__
3047         See thread starting at
3048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3049         Revert previous stdlib change, installing the following instead:
3050         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3051         to get in the way of a non-GCC compiler that supports __attribute__.
3052         (_GL_ATTRIBUTE_RETURN): New macro.
3053         (_Exit): Use it instead of __attribute__.
3054
3055 2011-02-12  Bruno Haible  <bruno@clisp.org>
3056
3057         quotearg test: Avoid test failure on mingw.
3058         * tests/test-quotearg.sh: Convert the locale identifier from native
3059         Windows syntax to Unix syntax.
3060
3061 2011-02-12  Bruno Haible  <bruno@clisp.org>
3062
3063         setlocale: Prefer gnulib's override over libintl's override.
3064         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3065         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3066         GNULIB_defined_setlocale is set.
3067
3068 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3069
3070         stdlib: support non-GCC __attribute__
3071
3072         Fix a serious and tricky problem encountered when attempting to
3073         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3074         5.5, but it crashed due to memory corruption on Solaris 10 with
3075         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3076         bits that are otherwise zero.  This tagging is optional inside
3077         Emacs but is preferred and is used when __attribute__ ((__aligned
3078         (8))) works, as it does with both recent-enough GCC and with Sun C
3079         5.11.  However, Sun C 5.11 is not GCC and does not #define
3080         __GNUC__ and __GNUC_MINOR__.
3081
3082         When I added the getloadavg module to Emacs, it brought in
3083         stdlib.in.h, which contained this fragment:
3084
3085            #ifndef __attribute__
3086            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3087            #  define __attribute__(Spec)   /* empty */
3088            # endif
3089            #endif
3090
3091         When files that include <stdlib.h> were compiled with Sun C 5.11,
3092         the above code disabled __attribute__ ((__aligned (8))), which
3093         caused variables to not be properly aligned, which eventually led
3094         to the pointer corruption mentioned above.  (This was a bit hard
3095         to diagnose, unfortunately.)
3096
3097         Several "#define __attribute__(X) /* empty */" code snippets need
3098         to be eradicated from Gnulib to work with non-GCC compilers that
3099         support __attribute__.  The Autoconf way to do this is to test for
3100         each kind of attribute that we want support for, and selectively
3101         enable that in source code.
3102
3103         Fix this problem just for stdlib.h, by adding a test for the
3104         __noreturn__ attribute, and change stdlib.in.h to use that test
3105         when needed.  This technique can be easily generalized to the
3106         other *.in.h files and attributes, and a similar technique can be
3107         used for *.h and *.c files.  This patch is enough to solve the
3108         problem for Emacs + getloadavg, and I thought I'd publish it for
3109         feedback before undertaking further, similar fixes in other
3110         modules.
3111
3112         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3113         because it's not needed for stdlib.h.  It merely substitutes the
3114         value directly into stdlib.h.  We may well need to #define it, or
3115         similar symbols, for other modules, but it's nice to also have an
3116         option to not #define it for applications like Emacs that do not
3117         need it.
3118
3119         * lib/stdlib.in.h (__attribute__): Do not #define.
3120         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3121         be defined only if the _Exit module is also used.
3122         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3124         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3125         platforms.
3126         * modules/_Exit (Files): Add m4/attribute.m4.
3127         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3128         * m4/attribute.m4: New file.
3129
3130 2011-02-12  Bruno Haible  <bruno@clisp.org>
3131
3132         wcsrtombs: Work around bug on native Windows.
3133         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3134         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3135         instead of len.
3136         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3137
3138 2011-02-12  Bruno Haible  <bruno@clisp.org>
3139
3140         mbsrtowcs: Work around bug on native Windows.
3141         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3142         against mingw bug.
3143         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3144
3145 2011-02-12  Bruno Haible  <bruno@clisp.org>
3146
3147         Avoid setlocale bugs in tests.
3148         * modules/btowc (Dependencies): Add setlocale.
3149         * modules/c-strcase (Dependencies): Likewise.
3150         * modules/mbmemcasecmp (Dependencies): Likewise.
3151         * modules/mbmemcasecoll (Dependencies): Likewise.
3152         * modules/mbrtowc (Dependencies): Likewise.
3153         * modules/mbscasecmp (Dependencies): Likewise.
3154         * modules/mbscasestr (Dependencies): Likewise.
3155         * modules/mbschr (Dependencies): Likewise.
3156         * modules/mbscspn (Dependencies): Likewise.
3157         * modules/mbsinit (Dependencies): Likewise.
3158         * modules/mbsncasecmp (Dependencies): Likewise.
3159         * modules/mbsnrtowcs (Dependencies): Likewise.
3160         * modules/mbspbrk (Dependencies): Likewise.
3161         * modules/mbspcasecmp (Dependencies): Likewise.
3162         * modules/mbsrchr (Dependencies): Likewise.
3163         * modules/mbsrtowcs (Dependencies): Likewise.
3164         * modules/mbsspn (Dependencies): Likewise.
3165         * modules/mbsstr (Dependencies): Likewise.
3166         * modules/nl_langinfo (Dependencies): Likewise.
3167         * modules/quotearg (Dependencies): Likewise.
3168         * modules/unicase/locale-language (Dependencies): Likewise.
3169         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3170         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3171         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3172         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3173         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3174         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3175         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3176         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3177         * modules/vasnprintf-posix (Dependencies): Likewise.
3178         * modules/wcrtomb (Dependencies): Likewise.
3179         * modules/wcsnrtombs (Dependencies): Likewise.
3180         * modules/wcsrtombs (Dependencies): Likewise.
3181
3182 2011-02-12  Bruno Haible  <bruno@clisp.org>
3183
3184         setlocale: Workaround native Windows bug.
3185         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3186         succeeds but sets LC_CTYPE to "C", report a failure.
3187         * tests/test-setlocale2.sh: New file.
3188         * tests/test-setlocale2.c: New file.
3189         * modules/setlocale-tests (Files): Add the new files.
3190         (Makefile.am): Enable test-setlocale2.sh test.
3191         * doc/posix-functions/setlocale.texi: Mention workaround.
3192
3193 2011-02-11  Bruno Haible  <bruno@clisp.org>
3194
3195         Tests for module 'setlocale'.
3196         * modules/setlocale-tests: New file.
3197         * tests/test-setlocale1.sh: New file.
3198         * tests/test-setlocale1.c: New file.
3199
3200         New module 'setlocale'.
3201         * lib/locale.in.h (setlocale): New declaration.
3202         * lib/setlocale.c: New file, based on
3203         gettext/gettext-runtime/intl/setlocale.c.
3204         * m4/setlocale.m4: New file.
3205         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3206         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3207         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3208         REPLACE_SETLOCALE.
3209         * modules/setlocale: New file.
3210         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3211         * doc/posix-functions/setlocale.texi: Mention the new module.
3212
3213 2011-02-11  Bruno Haible  <bruno@clisp.org>
3214
3215         Prepare for locale dependent tests on mingw.
3216         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3217         because it has the wrong locale encoding.
3218         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3219         French_France.1252 instead of "fr".
3220         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3221         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3222         because it has the wrong locale encoding.
3223         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3224         native Windows, try Turkish_Turkey.65001.
3225         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3226         Chinese_China.54936.
3227
3228         Prepare for locale dependent tests on mingw.
3229         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3230         differently.
3231         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3232         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3233         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3234         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3235
3236 2011-02-11  Eric Blake  <eblake@redhat.com>
3237
3238         strptime: avoid compiler warnings
3239         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3240         compiler warnings about dead code.
3241         Reported by Daniel P. Berrange.
3242
3243 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3244
3245         doc: update users.txt
3246         * users.txt: Add rcs.
3247
3248 2011-02-10  John W. Eaton  <jwe@gnu.org>
3249
3250         doc: update users.txt
3251         * users.txt: Add octave.
3252
3253 2011-02-10  Jim Meyering  <meyering@redhat.com>
3254
3255         doc: update users.txt
3256         * users.txt: Add iwhd.
3257
3258 2011-02-09  Bruno Haible  <bruno@clisp.org>
3259
3260         gnulib-tool: Make copyright notice adjustment more robust.
3261         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3262         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3263         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3264         License".
3265         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3266
3267 2011-02-06  Bruno Haible  <bruno@clisp.org>
3268
3269         New module 'towctrans'.
3270         * modules/towctrans: New file.
3271         * lib/wctype.in.h (towctrans): New declaration.
3272         * lib/towctrans.c: New file.
3273         * lib/towctrans-impl.h: New file.
3274         * m4/towctrans.m4: New file.
3275         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3276         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3277         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3278         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3279         * doc/posix-functions/towctrans.texi: Mention the new module.
3280
3281 2011-02-06  Bruno Haible  <bruno@clisp.org>
3282
3283         New module 'wctrans'.
3284         * modules/wctrans: New file.
3285         * lib/wctype.in.h (wctrans): New declaration.
3286         * lib/wctrans.c: New file.
3287         * lib/wctrans-impl.h: New file.
3288         * m4/wctrans.m4: New file.
3289         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3290         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3291         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3292         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3293         * doc/posix-functions/wctrans.texi: Mention the new module.
3294
3295 2011-02-06  Bruno Haible  <bruno@clisp.org>
3296
3297         New module 'iswctype'.
3298         * modules/iswctype: New file.
3299         * lib/wctype.in.h (iswctype): New declaration.
3300         * lib/iswctype.c: New file.
3301         * lib/iswctype-impl.h: New file.
3302         * m4/iswctype.m4: New file.
3303         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3304         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3305         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3306         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3307         * doc/posix-functions/iswctype.texi: Mention the new module and the
3308         HP-UX 11.00 problem.
3309
3310 2011-02-06  Bruno Haible  <bruno@clisp.org>
3311
3312         New module 'wctype'.
3313         * modules/wctype: Change to represent the wctype() substitute.
3314         * lib/wctype.in.h (wctype): New declaration.
3315         * lib/wctype.c: New file.
3316         * lib/wctype-impl.h: New file.
3317         * m4/wctype.m4: New file.
3318         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3319         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3320         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3321         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3322         * doc/posix-functions/wctype.texi: Mention the new module and the
3323         HP-UX 11.00 problem.
3324
3325 2011-02-06  Bruno Haible  <bruno@clisp.org>
3326
3327         wctype-h: Ensure wctype_t and wctrans_t are defined.
3328         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3329         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3330         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3331         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3332         HAVE_WCTRANS_T.
3333         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3334
3335 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3336
3337         flock: fix license typo
3338
3339         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3340         omitted.
3341
3342 2011-02-08  Bruno Haible  <bruno@clisp.org>
3343
3344         Split large sed scripts, for HP-UX sed.
3345         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
3346         to avoid HP-UX limit of 99 commands, in the near future.
3347         * modules/stdlib (Makefile.am): Likewise.
3348         * modules/unistd (Makefile.am): Likewise.
3349         * modules/wchar (Makefile.am): Likewise.
3350         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3351         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
3352         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
3353
3354 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3355             Bruno Haible  <bruno@clisp.org>
3356
3357         stdlib: improve random_r modularization
3358         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
3359         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
3360         you also need the random_r module to get this material right.
3361         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
3362         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
3363         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
3364
3365 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3366
3367         stdlib: don't depend on stdint
3368         * lib/stdlib.in.h: Don't include <stdint.h> merely because
3369         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
3370         be independent of whether stdint.h is needed.
3371         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
3372         here, instead of ...
3373         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
3374         struct random_data should be using the random_r module, not just
3375         the stdlib module (which wouldn't make sense: what package needs
3376         just struct random_data without also needing random_r?).
3377         * modules/stdlib (Depends-on): Remove stdint.
3378
3379         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
3380         See the thread rooted at
3381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
3382         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
3383         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
3384         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
3385         __VMS)); previously it was always included (via fcntl--.h).
3386         (getloadavg): Do not use c_strtod.  Instead, approximate it by
3387         hand; this is good enough for load averages.  Also, do not use
3388         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
3389         flags directly if available and don't bother otherwise.  (Packages
3390         that need the extra reliability should use the modules that define
3391         these flags on older platforms that lack them.)
3392         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
3393         fcntl-safer.
3394
3395 2011-02-08  Jim Meyering  <meyering@redhat.com>
3396
3397         di-set.h, ino-map.h: add multiple-inclusion guard
3398         Technically, the guard is required only for ino-map.h, due to its
3399         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
3400         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
3401         * lib/ino-map.h: Likewise.
3402
3403 2011-02-06  Bruno Haible  <bruno@clisp.org>
3404
3405         iswblank: Ensure declaration on glibc systems.
3406         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
3407         * modules/iswblank (Dependencies): Add 'extensions'.
3408         * doc/posix-functions/iswblank.texi: Document the glibc problem.
3409
3410 2011-02-06  Bruno Haible  <bruno@clisp.org>
3411
3412         New module 'iswblank'.
3413         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
3414         * modules/iswblank: New file.
3415         * modules/wctype-h (Files): Remove lib/iswblank.c.
3416         (Makefile.am): Substitute GNULIB_ISWBLANK.
3417         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
3418         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
3419         (gl_WCTYPE_H_DEFAULTS): New macro.
3420         (gl_WCTYPE_H): Require it. Remove iswblank related code.
3421         * modules/iswblank-tests: New file.
3422         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
3423         * tests/test-wctype-h.c (main): Remove iswblank tests.
3424         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
3425         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
3426         of 'wctype-h'.
3427         * NEWS: Mention the change.
3428         * modules/mbchar (Depends-on): Add iswblank.
3429
3430 2011-02-08  Bruno Haible  <bruno@clisp.org>
3431
3432         di-set tests: Refactor.
3433         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
3434         unnecessary includes.
3435         (ASSERT): Remove macro.
3436         (main): Make C90 compliant by avoiding variable declaration after
3437         statement.
3438         * modules/di-set-tests (Files): Add tests/macros.h.
3439
3440 2011-02-08  Bruno Haible  <bruno@clisp.org>
3441
3442         ino-map tests: Refactor.
3443         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
3444         unnecessary includes.
3445         (ASSERT): Remove macro.
3446         (main): Make C90 compliant by avoiding variable declaration after
3447         statement.
3448         * modules/ino-map-tests (Files): Add tests/macros.h.
3449
3450 2011-02-08  Jim Meyering  <meyering@redhat.com>
3451
3452         di-set: add "const" to a cast
3453         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
3454         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
3455
3456 2011-02-06  Bruno Haible  <bruno@clisp.org>
3457
3458         Rename module 'wctype' to 'wctype-h'.
3459         * modules/wctype-h: Renamed from modules/wctype.
3460         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
3461         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
3462         (Files, Depends-on, Makefile.am): Update.
3463         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
3464         (Files, Makefile.am): Update.
3465         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
3466         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
3467         * doc/posix-headers/wctype.texi: Update.
3468         * doc/posix-functions/iswalnum.texi: Update.
3469         * doc/posix-functions/iswalpha.texi: Update.
3470         * doc/posix-functions/iswblank.texi: Update.
3471         * doc/posix-functions/iswcntrl.texi: Update.
3472         * doc/posix-functions/iswdigit.texi: Update.
3473         * doc/posix-functions/iswgraph.texi: Update.
3474         * doc/posix-functions/iswlower.texi: Update.
3475         * doc/posix-functions/iswprint.texi: Update.
3476         * doc/posix-functions/iswpunct.texi: Update.
3477         * doc/posix-functions/iswspace.texi: Update.
3478         * doc/posix-functions/iswupper.texi: Update.
3479         * doc/posix-functions/iswxdigit.texi: Update.
3480         * doc/posix-functions/towlower.texi: Update.
3481         * doc/posix-functions/towupper.texi: Update.
3482         * NEWS: Mention the change.
3483         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
3484         * modules/mbchar (Dependencies): Likewise.
3485         * modules/mbswidth (Dependencies): Likewise.
3486         * modules/quotearg (Dependencies): Likewise.
3487         * modules/regex (Dependencies): Likewise.
3488         * modules/wcscasecmp (Dependencies): Likewise.
3489         * modules/wcsncasecmp (Dependencies): Likewise.
3490         * modules/wcwidth (Dependencies): Likewise.
3491
3492 2011-02-06  Bruno Haible  <bruno@clisp.org>
3493
3494         New module 'wcswidth'.
3495         * modules/wcswidth: New file.
3496         * lib/wchar.in.h (wcswidth): New declaration.
3497         * lib/wcswidth.c: New file.
3498         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
3499         * m4/wcswidth.m4: New file.
3500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
3501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
3502         REPLACE_WCSWIDTH.
3503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
3504         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
3505         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
3506         * doc/posix-functions/wcswidth.texi: Mention the new module.
3507
3508 2011-02-06  Bruno Haible  <bruno@clisp.org>
3509
3510         New module 'wcstok'.
3511         * modules/wcstok: New file.
3512         * lib/wchar.in.h (wcstok): New declaration.
3513         * lib/wcstok.c: New file.
3514         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
3515         * m4/wcstok.m4: New file.
3516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
3517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
3518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
3519         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
3520         * doc/posix-functions/wcstok.texi: Mention the new module.
3521
3522 2011-02-06  Bruno Haible  <bruno@clisp.org>
3523
3524         New module 'wcsstr'.
3525         * modules/wcsstr: New file.
3526         * lib/wchar.in.h (wcsstr): New declaration.
3527         * lib/wcsstr.c: New file.
3528         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
3529         * m4/wcsstr.m4: New file.
3530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
3531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
3532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
3533         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
3534         * doc/posix-functions/wcsstr.texi: Mention the new module.
3535
3536 2011-02-06  Bruno Haible  <bruno@clisp.org>
3537
3538         New module 'wcspbrk'.
3539         * modules/wcspbrk: New file.
3540         * lib/wchar.in.h (wcspbrk): New declaration.
3541         * lib/wcspbrk.c: New file.
3542         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
3543         * m4/wcspbrk.m4: New file.
3544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
3545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
3546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
3547         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
3548         * doc/posix-functions/wcspbrk.texi: Mention the new module.
3549
3550 2011-02-06  Bruno Haible  <bruno@clisp.org>
3551
3552         New module 'wcsspn'.
3553         * modules/wcsspn: New file.
3554         * lib/wchar.in.h (wcsspn): New declaration.
3555         * lib/wcsspn.c: New file.
3556         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3557         * m4/wcsspn.m4: New file.
3558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3561         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3562         * doc/posix-functions/wcsspn.texi: Mention the new module.
3563
3564 2011-02-06  Bruno Haible  <bruno@clisp.org>
3565
3566         New module 'wcscspn'.
3567         * modules/wcscspn: New file.
3568         * lib/wchar.in.h (wcscspn): New declaration.
3569         * lib/wcscspn.c: New file.
3570         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3571         * m4/wcscspn.m4: New file.
3572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3575         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3576         * doc/posix-functions/wcscspn.texi: Mention the new module.
3577
3578 2011-02-06  Bruno Haible  <bruno@clisp.org>
3579
3580         New module 'wcsrchr'.
3581         * modules/wcsrchr: New file.
3582         * lib/wchar.in.h (wcsrchr): New declaration.
3583         * lib/wcsrchr.c: New file.
3584         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3585         * m4/wcsrchr.m4: New file.
3586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3589         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3590         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3591
3592 2011-02-06  Bruno Haible  <bruno@clisp.org>
3593
3594         New module 'wcschr'.
3595         * modules/wcschr: New file.
3596         * lib/wchar.in.h (wcschr): New declaration.
3597         * lib/wcschr.c: New file.
3598         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3599         * m4/wcschr.m4: New file.
3600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3603         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3604         * doc/posix-functions/wcschr.texi: Mention the new module.
3605
3606 2011-02-06  Bruno Haible  <bruno@clisp.org>
3607
3608         New module 'wcsdup'.
3609         * modules/wcsdup: New file.
3610         * lib/wchar.in.h (wcsdup): New declaration.
3611         * lib/wcsdup.c: New file.
3612         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3613         * m4/wcsdup.m4: New file.
3614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3617         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3618         * doc/posix-functions/wcsdup.texi: Mention the new module.
3619
3620 2011-02-06  Bruno Haible  <bruno@clisp.org>
3621
3622         New module 'wcsxfrm'.
3623         * modules/wcsxfrm: New file.
3624         * lib/wchar.in.h (wcsxfrm): New declaration.
3625         * lib/wcsxfrm.c: New file.
3626         * lib/wcsxfrm-impl.h: New file.
3627         * m4/wcsxfrm.m4: New file.
3628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3631         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3632         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3633
3634 2011-02-06  Bruno Haible  <bruno@clisp.org>
3635
3636         New module 'wcscoll'.
3637         * modules/wcscoll: New file.
3638         * lib/wchar.in.h (wcscoll): New declaration.
3639         * lib/wcscoll.c: New file.
3640         * lib/wcscoll-impl.h: New file.
3641         * m4/wcscoll.m4: New file.
3642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3645         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3646         * doc/posix-functions/wcscoll.texi: Mention the new module.
3647
3648 2011-02-06  Bruno Haible  <bruno@clisp.org>
3649
3650         New module 'wcsncasecmp'.
3651         * modules/wcsncasecmp: New file.
3652         * lib/wchar.in.h (wcsncasecmp): New declaration.
3653         * lib/wcsncasecmp.c: New file.
3654         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3655         * m4/wcsncasecmp.m4: New file.
3656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3659         HAVE_WCSNCASECMP.
3660         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3661         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3662
3663 2011-02-06  Bruno Haible  <bruno@clisp.org>
3664
3665         New module 'wcscasecmp'.
3666         * modules/wcscasecmp: New file.
3667         * lib/wchar.in.h (wcscasecmp): New declaration.
3668         * lib/wcscasecmp.c: New file.
3669         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3670         * m4/wcscasecmp.m4: New file.
3671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3674         HAVE_WCSCASECMP.
3675         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3676         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3677
3678 2011-02-05  Bruno Haible  <bruno@clisp.org>
3679
3680         New module 'wcsncmp'.
3681         * modules/wcsncmp: New file.
3682         * lib/wchar.in.h (wcsncmp): New declaration.
3683         * lib/wcsncmp.c: New file.
3684         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3685         * m4/wcsncmp.m4: New file.
3686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3689         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3690         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3691
3692 2011-02-05  Bruno Haible  <bruno@clisp.org>
3693
3694         New module 'wcscmp'.
3695         * modules/wcscmp: New file.
3696         * lib/wchar.in.h (wcscmp): New declaration.
3697         * lib/wcscmp.c: New file.
3698         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3699         * m4/wcscmp.m4: New file.
3700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3703         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3704         * doc/posix-functions/wcscmp.texi: Mention the new module.
3705
3706 2011-02-05  Bruno Haible  <bruno@clisp.org>
3707
3708         New module 'wcsncat'.
3709         * modules/wcsncat: New file.
3710         * lib/wchar.in.h (wcsncat): New declaration.
3711         * lib/wcsncat.c: New file.
3712         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3713         * m4/wcsncat.m4: New file.
3714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3717         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3718         * doc/posix-functions/wcsncat.texi: Mention the new module.
3719
3720 2011-02-05  Bruno Haible  <bruno@clisp.org>
3721
3722         New module 'wcscat'.
3723         * modules/wcscat: New file.
3724         * lib/wchar.in.h (wcscat): New declaration.
3725         * lib/wcscat.c: New file.
3726         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3727         * m4/wcscat.m4: New file.
3728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3731         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3732         * doc/posix-functions/wcscat.texi: Mention the new module.
3733
3734 2011-02-05  Bruno Haible  <bruno@clisp.org>
3735
3736         New module 'wcpncpy'.
3737         * modules/wcpncpy: New file.
3738         * lib/wchar.in.h (wcpncpy): New declaration.
3739         * lib/wcpncpy.c: New file.
3740         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3741         * m4/wcpncpy.m4: New file.
3742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3744         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3745         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3746         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3747
3748 2011-02-05  Bruno Haible  <bruno@clisp.org>
3749
3750         New module 'wcsncpy'.
3751         * modules/wcsncpy: New file.
3752         * lib/wchar.in.h (wcsncpy): New declaration.
3753         * lib/wcsncpy.c: New file.
3754         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3755         * m4/wcsncpy.m4: New file.
3756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3759         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3760         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3761
3762 2011-02-05  Bruno Haible  <bruno@clisp.org>
3763
3764         New module 'wcpcpy'.
3765         * modules/wcpcpy: New file.
3766         * lib/wchar.in.h (wcpcpy): New declaration.
3767         * lib/wcpcpy.c: New file.
3768         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3769         * m4/wcpcpy.m4: New file.
3770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3772         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3773         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3774         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3775
3776 2011-02-05  Bruno Haible  <bruno@clisp.org>
3777
3778         New module 'wcscpy'.
3779         * modules/wcscpy: New file.
3780         * lib/wchar.in.h (wcscpy): New declaration.
3781         * lib/wcscpy.c: New file.
3782         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3783         * m4/wcscpy.m4: New file.
3784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3787         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3788         * doc/posix-functions/wcscpy.texi: Mention the new module.
3789
3790 2011-02-05  Bruno Haible  <bruno@clisp.org>
3791
3792         New module 'wcsnlen'.
3793         * modules/wcsnlen: New file.
3794         * lib/wchar.in.h (wcsnlen): New declaration.
3795         * lib/wcsnlen.c: New file.
3796         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3797         * m4/wcsnlen.m4: New file.
3798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3801         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3802         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3803
3804 2011-02-05  Bruno Haible  <bruno@clisp.org>
3805
3806         New module 'wcslen'.
3807         * modules/wcslen: New file.
3808         * lib/wchar.in.h (wcslen): New declaration.
3809         * lib/wcslen.c: New file.
3810         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3811         * m4/wcslen.m4: New file.
3812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3814         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3815         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3816         * doc/posix-functions/wcslen.texi: Mention the new module.
3817
3818 2011-02-05  Bruno Haible  <bruno@clisp.org>
3819
3820         New module 'wmemset'.
3821         * modules/wmemset: New file.
3822         * lib/wchar.in.h (wmemset): New declaration.
3823         * lib/wmemset.c: New file.
3824         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3825         * m4/wmemset.m4: New file.
3826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3828         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3829         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3830         * doc/posix-functions/wmemset.texi: Mention the new module.
3831
3832 2011-02-05  Bruno Haible  <bruno@clisp.org>
3833
3834         New module 'wmemmove'.
3835         * modules/wmemmove: New file.
3836         * lib/wchar.in.h (wmemmove): New declaration.
3837         * lib/wmemmove.c: New file.
3838         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3839         * m4/wmemmove.m4: New file.
3840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3842         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3843         HAVE_WMEMMOVE.
3844         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3845         * doc/posix-functions/wmemmove.texi: Mention the new module.
3846
3847 2011-02-05  Bruno Haible  <bruno@clisp.org>
3848
3849         New module 'wmemcpy'.
3850         * modules/wmemcpy: New file.
3851         * lib/wchar.in.h (wmemcpy): New declaration.
3852         * lib/wmemcpy.c: New file.
3853         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3854         * m4/wmemcpy.m4: New file.
3855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3857         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3858         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3859         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3860
3861 2011-02-05  Bruno Haible  <bruno@clisp.org>
3862
3863         New module 'wmemcmp'.
3864         * modules/wmemcmp: New file.
3865         * lib/wchar.in.h (wmemcmp): New declaration.
3866         * lib/wmemcmp.c: New file.
3867         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3868         * m4/wmemcmp.m4: New file.
3869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3871         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3872         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3873         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3874
3875 2011-02-07  Jim Meyering  <meyering@redhat.com>
3876
3877         di-set, ino-map: new modules, from coreutils
3878         * lib/di-set.c: New file.
3879         * lib/di-set.h: Likewise.
3880         * lib/ino-map.c: Likewise.
3881         * lib/ino-map.h: Likewise.
3882         * modules/di-set: Likewise.
3883         * modules/di-set-tests: Likewise.
3884         * modules/ino-map: Likewise.
3885         * modules/ino-map-tests: Likewise.
3886         * tests/test-di-set.c: Likewise.
3887         * tests/test-ino-map.c: Likewise.
3888
3889 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3890
3891         getloadavg: merge minor changes from Emacs
3892
3893         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3894         (getloadavg): Use memset, not bzero.
3895
3896         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3897         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3898         clash (bug#86).
3899
3900 2010-11-14  Bruno Haible  <bruno@clisp.org>
3901
3902         Allow multiple gnulib generated replacements to coexist.
3903         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3904         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3905         * lib/langinfo.in.h (nl_item): Likewise.
3906         * lib/math.in.h (_NaN, NAN): Likewise.
3907         * lib/netdb.in.h (struct addrinfo): Likewise.
3908         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3909         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3910         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3911         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3912         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3913         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3914         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3915         pthread_mutexattr_init, pthread_mutexattr_settype,
3916         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3917         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3918         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3919         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3920         * lib/sched.in.h (struct sched_param): Likewise.
3921         * lib/se-selinux.in.h (security_class_t, security_context_t,
3922         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3923         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3924         lsetfilecon, fsetfilecon, security_check_context,
3925         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3926         Likewise.
3927         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3928         Likewise.
3929         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3930         _gl_function_taking_int_returning_void_t, union sigval,
3931         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3932         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3933         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3934         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3935         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3936         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3937         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3938         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3939         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3940         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3941         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3942         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3943         socklen_t, rpl_fd_isset): Likewise.
3944         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3945         * lib/sys_time.in.h (struct timeval): Likewise.
3946         * lib/sys_times.in.h (struct tms): Likewise.
3947         * lib/sys_utsname.in.h (struct utsname):
3948         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3949         * lib/unistd.in.h (getpagesize): Likewise.
3950         * lib/wchar.in.h (mbstate_t): Likewise.
3951         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3952         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3953         towlower, towupper): Likewise.
3954         Reported by Sam Steingold <sds@gnu.org>.
3955
3956 2011-02-05  Eric Blake  <eblake@redhat.com>
3957
3958         unsetenv: work around Haiku issues
3959         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3960         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3961
3962 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3963
3964         libposix: avoid calling error() within libposix
3965         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3966         is defined.
3967
3968 2011-02-05  Eric Blake  <eblake@redhat.com>
3969
3970         strerror_r-posix: port to cygwin
3971         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3972         implementation.
3973         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3974         * tests/test-strerror_r.c (main): Fix test.
3975         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3976         issue.
3977
3978 2011-02-05  Bruno Haible  <bruno@clisp.org>
3979
3980         New module 'wmemchr'.
3981         * modules/wmemchr: New file.
3982         * lib/wchar.in.h (wmemchr): New declaration.
3983         * lib/wmemchr.c: New file.
3984         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3985         * m4/wmemchr.m4: New file.
3986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3988         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3989         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3990         * doc/posix-functions/wmemchr.texi: Mention the new module.
3991
3992 2011-02-04  Eric Blake  <eblake@redhat.com>
3993
3994         fdopendir: detect FreeBSD bug
3995         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3996         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3997
3998 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3999
4000         stdbool: do not define HAVE_STDBOOL_H
4001         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4002         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4003         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4004         imported from the latest Autoconf git.  It was motivated by Emacs,
4005         which uses gnulib but does not need HAVE_STDBOOL_H.
4006
4007 2011-02-04  Bruno Haible  <bruno@clisp.org>
4008
4009         wcsnrtombs: Prepare for new module wwcsnrtombs.
4010         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4011         * lib/wcsnrtombs.c: Include it.
4012         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4013
4014         wcsrtombs: Prepare for new module wwcsrtombs.
4015         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4016         * lib/wcsrtombs.c: Include it.
4017         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4018
4019         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4020         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4021         * lib/mbsnrtowcs.c: Include it.
4022         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4023
4024         mbsrtowcs: Prepare for new module mbsrtowwcs.
4025         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4026         * lib/mbsrtowcs.c: Include it.
4027         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4028
4029 2011-02-04  Bruno Haible  <bruno@clisp.org>
4030
4031         vasnprintf: Reduce use of malloc for small format strings.
4032         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4033         (arguments): Add room for the first 7 arguments.
4034         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4035         (char_directives, u8_directives, u16_directives, u32_directives): Add
4036         room for the first 7 directives.
4037         * lib/printf-parse.c: Include <string.h>.
4038         (PRINTF_PARSE): Change memory handling code so that it uses the first
4039         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4040         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4041         Reported by Pádraig Brady <P@draigbrady.com>.
4042
4043 2011-01-31  Eric Blake  <eblake@redhat.com>
4044
4045         dup2: work around Haiku bug
4046         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4047         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4048         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4049         * tests/test-dup2.c (main): Enhance test.
4050
4051 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4052
4053         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4054         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4055         declared by eglibc 2.11.2.
4056         * lib/stdio.in.h: Likewise.
4057
4058 2011-01-31  Eric Blake  <eblake@redhat.com>
4059
4060         ignore-value: add missing test dependency
4061         * tests/test-ignore-value.c: Revert previous change; stdio.h
4062         provides off_t.
4063         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4064
4065 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4066
4067         mktime: clarify long_int width checking
4068         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4069         the top level, to make it clearer that the assumption about
4070         long_int width is being checked.  See
4071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4072
4073 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4074
4075         ignore-value: Fix self-test.
4076         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4077
4078 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4079
4080         TYPE_MAXIMUM: avoid theoretically undefined behavior
4081         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4082         negative number, which the C Standard says has undefined behavior.
4083         In practice this is not a problem, but might as well do it by the book.
4084         Reported by Rich Felker and Eric Blake; see
4085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4086         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4087         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4088         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4089         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4090         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4091         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4092
4093         mktime: #undef mktime before #defining it
4094         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4095
4096         mktime: systematically normalize tm_isdst comparisons
4097         * lib/mktime.c (isdst_differ): New function.
4098         (__mktime_internal): Use it systematically for all isdst comparisons.
4099         This completes the fix for libc BZ #6723, and removes the need for
4100         normalizing tm_isdst.  See
4101         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4102         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4103
4104         mktime: fix some integer overflow issues and sidestep the rest
4105
4106         This was prompted by a bug report by Benjamin Lindner for MinGW
4107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4108         His bug is due to signed integer overflow (0 - INT_MIN), and I
4109         I scanned through mktime.c looking for other integer overflow
4110         problems, fixing all the bugs I found.
4111
4112         Although the C Standard says the resulting code is still not safe
4113         in the presence of integer overflow, in practice it should be good
4114         enough for all real-world two's-complement implementations, except
4115         for debugging environments that deliberately trap on integer
4116         overflow (e.g., gcc -ftrapv).
4117
4118         * lib/mktime.c (WRAPV): New macro.
4119         (SHR): Also check that long_int and time_t shift right in the
4120         usual way, before using the fast-but-unportable method.
4121         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4122         used.  The code already assumed two's complement, so there's
4123         no need to test for alternatives.  All uses removed.
4124         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4125         the C standard.  Problem reported by Rich Felker in
4126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4127         (twos_complement_arithmetic): Also check long_int and time_t.
4128         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4129         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4130         (__mktime_internal): Avoid integer overflow with unary subtraction
4131         in two instances where -1 - X is an adequate replacement for -X,
4132         since the calculations are approximate.
4133
4134 2011-01-29  Eric Blake  <eblake@redhat.com>
4135
4136         mktime: avoid infinite loop
4137         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4138         type; behavior is still undefined but portable to all known targets.
4139         Reported by Rich Felker.
4140
4141 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4142
4143         rename, unlink, same-inode: Relicense.
4144         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4145         * modules/unlink (License): Likewise.
4146         * modules/same-inode (License): Likewise.
4147
4148 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4149
4150         mktime: avoid problems on NetBSD 5 / i386
4151         * lib/mktime.c (long_int): New type.  This works around a problem
4152         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4153         but time_t is 64 bits, and where I expect the existing code is
4154         wrong in some cases.
4155         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4156         (ydhms_diff): Bring back the compile-time check for wide-enough
4157         year and yday.
4158
4159         mktime: fix misspelling in comment
4160         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4161         This merges all recent glibc changes of importance.
4162
4163 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4164
4165         move-if-change: cope with concurrent mv of identical file.
4166         * build-aux/move-if-change (CMPPROG): Accept environment
4167         variable as an override for `cmp'.
4168         (usage): Document CMPPROG.
4169         Adjust comparison to drop stdout.  Cope with failure of mv if
4170         the target file exists and is identical to the source, for
4171         parallel builds.
4172         Report from H.J. Lu against binutils in PR binutils/12283.
4173
4174 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4175
4176         * users.txt: Mention sharutils.
4177
4178 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4179
4180         * users.txt: Mention OATH Toolkit.
4181
4182 2011-01-27  Bruno Haible  <bruno@clisp.org>
4183
4184         Prepare for supporting FreeBSD 10.
4185         * build-aux/config.libpath: Remove handling of freebsd1*.
4186
4187 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4188
4189         Prepare for supporting FreeBSD 10.
4190         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4191         match FreeBSD 10.0.
4192
4193 2011-01-27  Bruno Haible  <bruno@clisp.org>
4194
4195         vma-iter, get-rusage-as: Add OpenBSD support.
4196         * modules/vma-iter (configure.ac): Test for mquery.
4197         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4198         * lib/vma-iter.c: Include <sys/mman.h>.
4199         (vma_iterate): Add an implementation based on mquery().
4200         * lib/resource-ext.h (get_rusage_as): Update comments.
4201         * lib/get-rusage-as.c: Likewise.
4202         * lib/get-rusage-data.c: Likewise.
4203
4204 2011-01-26  Karl Berry  <karl@gnu.org>
4205
4206         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4207         variables to make it easier to override the makeinfo program used.
4208
4209 2011-01-26  Eric Blake  <eblake@redhat.com>
4210
4211         fcntl: work around Haiku F_DUPFD bugs
4212         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4213         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4214         cloexec bit on duplication.
4215         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4216
4217 2011-01-26  Bruno Haible  <bruno@clisp.org>
4218
4219         Enable memory leak tests on AIX.
4220         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4221         * tests/test-fprintf-posix3.c (main): Likewise.
4222
4223 2011-01-26  Bruno Haible  <bruno@clisp.org>
4224
4225         Tests for module 'get-rusage-data'.
4226         * modules/get-rusage-data-tests: New file.
4227         * tests/test-get-rusage-data.c: New file.
4228
4229         New module 'get-rusage-data'.
4230         * lib/resource-ext.h (get_rusage_data): New declaration.
4231         * lib/get-rusage-data.c: New file.
4232         * modules/get-rusage-data: New file.
4233
4234 2011-01-25  Bruno Haible  <bruno@clisp.org>
4235
4236         get-rusage-as: Allow for easier testing.
4237         * lib/resource-ext.h (get_rusage_as): Add comment.
4238         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4239         (main): New function for interactive testing.
4240
4241 2011-01-25  Bruno Haible  <bruno@clisp.org>
4242
4243         vma-iter: Treat Haiku like BeOS.
4244         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4245         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4246
4247 2011-01-25  Eric Blake  <eblake@redhat.com>
4248
4249         c-stack: fix regression on cygwin when libsigsegv is present
4250         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4251
4252 2011-01-24  Bruno Haible  <bruno@clisp.org>
4253
4254         vma-iter: Avoid empty intervals.
4255         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4256         on an empty interval.
4257
4258 2011-01-24  Jim Meyering  <meyering@redhat.com>
4259
4260         u64: remove unnecessary #include
4261         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4262
4263 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4264
4265         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4266         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4267
4268 2011-01-23  Bruno Haible  <bruno@clisp.org>
4269
4270         New module 'vma-iter'.
4271         * lib/vma-iter.h: New file.
4272         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4273         * modules/vma-iter: New file.
4274         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4275         for get_rusage_as_via_iterator.
4276         (vma_iterate_callback): New function.
4277         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4278         * modules/get-rusage-as (Depends-on): Add vma-iter.
4279
4280 2011-01-23  Bruno Haible  <bruno@clisp.org>
4281
4282         uninorm: Tweak includes.
4283         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4284         Reported by Jim Meyering.
4285
4286 2011-01-23  Bruno Haible  <bruno@clisp.org>
4287
4288         get-rusage-as: Improve on NetBSD.
4289         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4290         /proc, like on FreeBSD.
4291
4292 2011-01-23  Jim Meyering  <meyering@redhat.com>
4293
4294         xreadlink.h: remove unnecessary #include
4295         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4296
4297         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4298         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4299
4300 2011-01-23  Bruno Haible  <bruno@clisp.org>
4301
4302         get-rusage-as: Fix bug.
4303         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4304         original limit when aborting the first loop.
4305
4306 2011-01-23  Bruno Haible  <bruno@clisp.org>
4307
4308         wctype: Ensure valid C syntax.
4309         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4310         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4311
4312 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4313
4314         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4316         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4317         as they are needed only for configure's test case.
4318         This removes two unnecessary symbols from config.h.
4319
4320         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4321         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4323         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4324         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4325         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4326         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4327         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4328         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4329         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4330         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4331         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4332         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4333         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4334         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4335         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4336         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4337         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4338
4339 2011-01-21  Eric Blake  <eblake@redhat.com>
4340
4341         maintainer-makefile: work with older git for submodule check
4342         * top/maint.mk (public-submodule-commit): Rewrite to avoid
4343         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
4344         Reported by Matthias Bolte.
4345
4346         bootstrap: minor portability fixes
4347         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
4348         (usage): Omit leading capital and trailing . on help phrases, per
4349         GNU Coding Standards.
4350         (check_versions, top level): Prefix messages with script name.
4351
4352 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
4353
4354         bootstrap: support --no-git option
4355         * build-aux/bootstrap: Add --no-git option, to be used when
4356         --gnulib-srcdir points to the exact desired checkout.
4357
4358 2011-01-21  Eric Blake  <eblake@redhat.com>
4359
4360         strerror_r-posix: work with glibc 2.13
4361         * lib/strerror_r.c (strerror_r): Fix return type.
4362
4363 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4364             Bruno Haible  <bruno@clisp.org>
4365
4366         uN_strstr: New unit tests.
4367         * modules/unistr/u8-strstr-tests: New file.
4368         * modules/unistr/u16-strstr-tests: New file.
4369         * modules/unistr/u32-strstr-tests: New file.
4370         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
4371         * tests/unistr/test-u8-strstr.c: New file.
4372         * tests/unistr/test-u16-strstr.c: New file.
4373         * tests/unistr/test-u32-strstr.c: New file.
4374
4375 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4376             Bruno Haible  <bruno@clisp.org>
4377
4378         Make uN_strstr functions O(n) worst-case.
4379         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
4380         16-bit and 32-bit unit cases, use the unibyte algorithm from
4381         lib/mbsstr.c.
4382         * lib/unistr/u8-strstr.c: Include <string.h>.
4383         (UNIT_IS_UINT8_T): New macro.
4384         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
4385         (U_STRLEN, U_STRNLEN): New macros.
4386         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
4387         (U_STRLEN, U_STRNLEN): New macros.
4388         * modules/unistr/u8-strstr (Depends-on): Add strstr.
4389         (configure.ac): Update required libunistring version.
4390         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
4391         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
4392         malloca.
4393         (configure.ac): Update required libunistring version.
4394         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
4395         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
4396         malloca.
4397         (configure.ac): Update required libunistring version.
4398
4399 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4400             Bruno Haible  <bruno@clisp.org>
4401
4402         Prepare for faster uN_strstr functions.
4403         * lib/str-kmp.h: Support definable UNITs.
4404         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
4405         needle_len argument.
4406         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
4407         * lib/mbscasestr.c (mbscasestr): Likewise.
4408
4409 2011-01-21  Pádraig Brady <P@draigBrady.com>
4410
4411         malloca-tests: make faster by unsetting MALLOC_PERTURB_
4412         * tests/test-malloca.c (main): Unset the environment variable
4413         to greatly speed up the test.
4414         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
4415         * modules/malloca-tests: Depend on unsetenv.
4416
4417 2011-01-21  Pádraig Brady <P@draigBrady.com>
4418
4419         ignore-value: remove stdint dependency
4420         * lib/ignore-value.h: Remove <stdint.h>
4421         * modules/ignore-value: Remove stdint dependency.
4422
4423 2011-01-21  Jim Meyering  <meyering@redhat.com>
4424
4425         maint.mk: adjust variable name to be consistent with other gl_ vars
4426         * top/maint.mk (gl_public_submodule_commit): Rename the variable
4427         to be lower case.
4428
4429 2011-01-20  Jim Meyering  <meyering@redhat.com>
4430
4431         maint.mk: make "check" depend on public-submodule-commit by default
4432         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
4433
4434 2011-01-20  Bruno Haible  <bruno@clisp.org>
4435
4436         mbfile, mbiter: Complete change from 2008-12-21.
4437         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
4438         * m4/mbiter.m4 (gl_MBITER): Likewise.
4439
4440 2011-01-20  Jim Meyering  <meyering@redhat.com>
4441
4442         init.sh: insert space between each function name and "()"
4443         * tests/init.sh: Make it a little easier to see that a function's
4444         name is "warn_", and not "warn" when looking at the first part of
4445         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
4446
4447 2011-01-20  Jim Meyering  <meyering@redhat.com>
4448
4449         mountlist: clean up code formatting
4450         * lib/mountlist.c (read_file_system_list): Split a long line,
4451         correct bracing style, use NULL in place of "(struct statfs *)0",
4452         don't parenthesize return value, add spaces around "=" and after
4453         ";-in-for-stmt".
4454
4455 2011-01-14  Markus Duft <mduft@gentoo.org>
4456
4457         mountlist: add support for Interix
4458         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
4459         Apply statvfs to all entries of /dev/fs.
4460         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
4461         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
4462
4463 2011-01-20  Jim Meyering  <meyering@redhat.com>
4464
4465         maint.mk: improve the public-submodule-commit rule
4466         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
4467         to suppress printing of its commands... unless V=1.
4468         Add git submodule's --quiet option to suppress printing of e.g.,
4469         "Entering gnulib" output.
4470         "cd" into $(srcdir) before running git submodule.
4471
4472 2011-01-20  Bruno Haible  <bruno@clisp.org>
4473
4474         include_next: Fix bug introduced on 2011-01-18.
4475         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
4476         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
4477         ac_cv_header_... variable if the second argument is not 'check'.
4478         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
4479         gl_NEXT_HEADERS_INTERNAL.
4480
4481 2011-01-20  Bruno Haible  <bruno@clisp.org>
4482
4483         Allow the user to avoid the GNULIB_TEST_* macros.
4484         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
4485         Suggested by Paul Eggert.
4486
4487 2011-01-14  Jim Meyering  <meyering@redhat.com>
4488
4489         bootstrap: avoid failure when there is no .gitmodules file
4490         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
4491         has been assigned to, even when its value is the empty string.
4492         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
4493         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
4494         Reported by John W. Eaton <jwe@gnu.org>.
4495
4496 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4497
4498         assume <ctype.h>, ..., <time.h> exist
4499         For years gnulib has been assuming the existence of the headers
4500         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
4501         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
4502         them, since they don't appear to be needed.
4503         * README (Portability guidelines): Document this.
4504         * lib/flock.c: Assume <fcntl.h> exists.
4505         * lib/regex_internal.h: Assume <locale.h> exists.
4506         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
4507         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
4508         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
4509         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
4510         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
4511         * m4/regex.m4 (gl_REGEX): Likewise.
4512         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
4513         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
4514         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
4515         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
4516         * tests/test-argp.c: Likewise.
4517         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
4518
4519         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
4520         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
4521         AA_APPLE_UNIVERSAL_BUILD.  See
4522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
4523         * NEWS: Document this.
4524
4525 2011-01-19  Eric Blake  <eblake@redhat.com>
4526
4527         c-stack: assume stack overflow if SA_SIGINFO unsupported
4528         * lib/c-stack.c (SIGACTION_WORKS): Rename...
4529         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
4530         sigaction will work.
4531         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
4532         behavior match Linux.
4533         * tests/test-c-stack.c (main): Prefer NULL for pointers.
4534
4535         stdbool-tests: accomodate Haiku
4536         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
4537
4538         binary-io: fix O_TEXT on Haiku
4539         * modules/binary-io (Depends-on): Add fcntl-h.
4540         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
4541         than blindly undefining O_TEXT.
4542         Reported by Scott McCreary.
4543
4544 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4545
4546         include_next: do not check for standard headers like stddef.h
4547
4548         I found this problem when modifying Emacs to use gnulib.
4549         I noticed that it added HAVE_STDDEF_H to config.h, even though
4550         gnulib always assumes <stddef.h> exists as per README and this
4551         symbol is unnecessary.
4552         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4553         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4554         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4555         faster for headers like stddef.h that are known to exist.
4556         (gl_CHECK_NEXT_HEADERS): Use it.
4557         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4558         rather than gl_CHECK_NEXT_HEADERS.
4559         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4560         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4561
4562 2011-01-18  Eric Blake  <eblake@redhat.com>
4563
4564         ansi-c++-opt: skip C++ dependency style if C++ is unused
4565         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4566         tests when we know C++ compilation is not desired.
4567         Reported by Scott McCreary.
4568
4569 2011-01-18  Bruno Haible  <bruno@clisp.org>
4570
4571         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4572         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4573         (main): Perform test also when getrlimit and setrlimit don't exist or
4574         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4575         limiting the address space size using setrlimit, compare the address
4576         space size before and after the the test.
4577         * tests/test-dprintf-posix2.c: Likewise.
4578         * tests/test-fprintf-posix3.sh: Update skip messages.
4579         * tests/test-dprintf-posix2.sh: Likewise.
4580         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4581         * modules/dprintf-posix-tests (Depends-on): Likewise.
4582         Reported by Bruce Korb <bkorb@gnu.org> and
4583         Gary V. Vaughan <gary@gnu.org>.
4584
4585 2011-01-18  Bruno Haible  <bruno@clisp.org>
4586
4587         get-rusage-as: Improvement for Cygwin.
4588         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4589         areas that are merely reserved.
4590
4591 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4592
4593         strftime: remove dependencies on multibyte modules
4594
4595         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4596         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4597         only if __osf__ is defined, and I suspect OSF doesn't need these
4598         other modules.  If my guess is wrong, we'll need to come up with a
4599         variant of strftime that doesn't need the multibyte modules.
4600
4601         I discovered this problem when attempting modify Emacs to use the
4602         strftime module.  With the previous gnulib, this caused Emacs to
4603         need 31 new files, ranging from lib/config.charset to
4604         m4/wint_t.m4.  This was overkill and I expect would be offputting
4605         to the Emacs maintainers.  After this change, only 6 new files are
4606         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4607         stdbool.m4, and tm_gmtoff.m4.
4608
4609         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4610         Suggested by Bruno Haible in
4611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4612         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4613         and do not check for wchar.h.
4614         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4615         (Depends-on): Remove mbrlen, mbsinit, wchar.
4616
4617 2011-01-18  Bruno Haible  <bruno@clisp.org>
4618
4619         Tests for module 'get-rusage-as'.
4620         * modules/get-rusage-as-tests: New file.
4621         * tests/test-get-rusage-as.c: New file.
4622
4623         New module 'get-rusage-as'.
4624         * modules/get-rusage-as: New file.
4625         * lib/resource-ext.h: New file.
4626         * lib/get-rusage-as.c: New file.
4627
4628 2011-01-17  Eric Blake  <eblake@redhat.com>
4629
4630         sigaction: relax license from LGPLv3+ to LGPLv2+
4631         * modules/sigaction (License): Relax to LGPLv2+.
4632
4633 2011-01-14  Bruno Haible  <bruno@clisp.org>
4634
4635         filemode: Make function declarations usable in C++ mode.
4636         * lib/filemode.h: Enclose function declarations in extern "C" block.
4637         Reported by John W. Eaton <jwe@gnu.org>.
4638
4639 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4640
4641         save-cwd: no longer include "xgetcwd.h"
4642         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4643         This avoids a compilation failure in projects that use save-cwd
4644         without also using the xgetcwd module.
4645
4646 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4647
4648         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4649         This is so that a program like Emacs, which needs only dtoastr,
4650         does not have to bother with distributing and compiling ftoastr
4651         and ldtoastr.
4652         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4653         * modules/dtoastr, modules/ldtoastr: New files.
4654         * modules/ftoastr: Now works just for 'float'.
4655         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4656         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4657         dtoastr.c, ldtoastr.c.
4658
4659 2011-01-11  Jim Meyering  <meyering@redhat.com>
4660
4661         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4662         There is no need to work around the lack of the fchdir function,
4663         since gnulib can now provide a replacement when required.
4664         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4665         * modules/save-cwd (Depends-on): Add fchdir.
4666
4667 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4668
4669         openat, save-cwd: avoid xmalloc
4670
4671         This removes a direct (but undocumented) dependency of openat on
4672         xalloc, along with an indirect dependency via save-cwd.  It also
4673         removes a dependency of save-cwd on xgetcwd, and thereby
4674         indirectly on xalloc.  This change causes the openat substitute
4675         to fall back on save_cwd when memory is tight, and for save_cwd to
4676         fail instead of dying when memory is tight, but that's good enough.
4677         Problem and initial idea for fix reported by Bastien Roucaries in
4678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4679
4680         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4681         xalloc.h (for xmalloc).
4682         (openat_proc_name): Use malloc, not xmalloc.
4683         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4684         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4685
4686         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4687         This avoids heap allocation for file names whose lengths are in
4688         the range 512..1023, with the upper bound increasing to at most
4689         4031 depending on the platform's PATH_MAX.  (We do not want
4690         pathmax.h here as it might supply a non-constant PATH_MAX.)
4691         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4692         Perhaps they should be moved to malloca.h?
4693         (OPENAT_BUFFER_SIZE): Use them.
4694
4695 2011-01-10  Bruno Haible  <bruno@clisp.org>
4696
4697         doc: Update users.txt.
4698         * users.txt: Add recutils.
4699
4700 2011-01-09  Karl Berry  <karl@gnu.org>
4701
4702         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4703
4704         * doc/configmake.texi: New file.
4705         * doc/gnulib.texi: Include it.
4706         * modules/configmake: Move documentation from here.
4707
4708 2011-01-09  Bruno Haible  <bruno@clisp.org>
4709
4710         Update to Unicode 6.0.0.
4711         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4712         (get_lbp): Update for Unicode 6.0.0.
4713         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4714         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4715         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4716         U+11001, U+11038..U+11046. Remove U+06DE.
4717         (uc_width): Fix bounds of planes.
4718         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4719         lib/uniwidth/width.c.
4720         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4721         trailing whitespace removed.
4722         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4723         without comments, but with the original copyright notice.
4724         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4725         * lib/unicase/ignorable.h: Likewise.
4726         * lib/unicase/tocasefold.h: Likewise.
4727         * lib/unicase/tolower.h: Likewise.
4728         * lib/unicase/totitle.h: Likewise.
4729         * lib/unicase/toupper.h: Likewise.
4730         * lib/unictype/bidi_of.h: Likewise.
4731         * lib/unictype/blocks.h: Likewise.
4732         * lib/unictype/categ_C.h: Likewise.
4733         * lib/unictype/categ_Cn.h: Likewise.
4734         * lib/unictype/categ_L.h: Likewise.
4735         * lib/unictype/categ_Ll.h: Likewise.
4736         * lib/unictype/categ_Lm.h: Likewise.
4737         * lib/unictype/categ_Lo.h: Likewise.
4738         * lib/unictype/categ_Lu.h: Likewise.
4739         * lib/unictype/categ_M.h: Likewise.
4740         * lib/unictype/categ_Mc.h: Likewise.
4741         * lib/unictype/categ_Me.h: Likewise.
4742         * lib/unictype/categ_Mn.h: Likewise.
4743         * lib/unictype/categ_N.h: Likewise.
4744         * lib/unictype/categ_Nd.h: Likewise.
4745         * lib/unictype/categ_No.h: Likewise.
4746         * lib/unictype/categ_P.h: Likewise.
4747         * lib/unictype/categ_Po.h: Likewise.
4748         * lib/unictype/categ_S.h: Likewise.
4749         * lib/unictype/categ_Sc.h: Likewise.
4750         * lib/unictype/categ_Sk.h: Likewise.
4751         * lib/unictype/categ_Sm.h: Likewise.
4752         * lib/unictype/categ_So.h: Likewise.
4753         * lib/unictype/categ_of.h: Likewise.
4754         * lib/unictype/combining.h: Likewise.
4755         * lib/unictype/ctype_alnum.h: Likewise.
4756         * lib/unictype/ctype_alpha.h: Likewise.
4757         * lib/unictype/ctype_graph.h: Likewise.
4758         * lib/unictype/ctype_lower.h: Likewise.
4759         * lib/unictype/ctype_print.h: Likewise.
4760         * lib/unictype/ctype_punct.h: Likewise.
4761         * lib/unictype/ctype_upper.h: Likewise.
4762         * lib/unictype/decdigit.h: Likewise.
4763         * lib/unictype/digit.h: Likewise.
4764         * lib/unictype/numeric.h: Likewise.
4765         * lib/unictype/pr_alphabetic.h: Likewise.
4766         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4767         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4768         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4769         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4770         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4771         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4772         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4773         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4774         * lib/unictype/pr_case_ignorable.h: Likewise.
4775         * lib/unictype/pr_cased.h: Likewise.
4776         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4777         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4778         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4779         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4780         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4781         * lib/unictype/pr_combining.h: Likewise.
4782         * lib/unictype/pr_composite.h: Likewise.
4783         * lib/unictype/pr_currency_symbol.h: Likewise.
4784         * lib/unictype/pr_decimal_digit.h: Likewise.
4785         * lib/unictype/pr_deprecated.h: Likewise.
4786         * lib/unictype/pr_format_control.h: Likewise.
4787         * lib/unictype/pr_grapheme_base.h: Likewise.
4788         * lib/unictype/pr_grapheme_extend.h: Likewise.
4789         * lib/unictype/pr_grapheme_link.h: Likewise.
4790         * lib/unictype/pr_id_continue.h: Likewise.
4791         * lib/unictype/pr_id_start.h: Likewise.
4792         * lib/unictype/pr_ideographic.h: Likewise.
4793         * lib/unictype/pr_lowercase.h: Likewise.
4794         * lib/unictype/pr_math.h: Likewise.
4795         * lib/unictype/pr_numeric.h: Likewise.
4796         * lib/unictype/pr_other_alphabetic.h: Likewise.
4797         * lib/unictype/pr_other_id_continue.h: Likewise.
4798         * lib/unictype/pr_other_math.h: Likewise.
4799         * lib/unictype/pr_punctuation.h: Likewise.
4800         * lib/unictype/pr_sentence_terminal.h: Likewise.
4801         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4802         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4803         * lib/unictype/pr_unified_ideograph.h: Likewise.
4804         * lib/unictype/pr_uppercase.h: Likewise.
4805         * lib/unictype/pr_xid_continue.h: Likewise.
4806         * lib/unictype/pr_xid_start.h: Likewise.
4807         * lib/unictype/scripts.h: Likewise.
4808         * lib/unictype/scripts_byname.gperf: Likewise.
4809         * lib/unictype/sy_java_ident.h: Likewise.
4810         * lib/unigbrk/gbrkprop.h: Likewise.
4811         * lib/unilbrk/lbrkprop1.h: Likewise.
4812         * lib/unilbrk/lbrkprop2.h: Likewise.
4813         * lib/uninorm/decomposition-table2.h: Likewise.
4814         * lib/uniwbrk/wbrkprop.h: Likewise.
4815         * tests/unicase/test-cased.c: Likewise.
4816         * tests/unicase/test-ignorable.c: Likewise.
4817         * tests/unicase/test-uc_tolower.c: Likewise.
4818         * tests/unicase/test-uc_totitle.c: Likewise.
4819         * tests/unicase/test-uc_toupper.c: Likewise.
4820         * tests/unictype/test-categ_C.c: Likewise.
4821         * tests/unictype/test-categ_Cn.c: Likewise.
4822         * tests/unictype/test-categ_L.c: Likewise.
4823         * tests/unictype/test-categ_Ll.c: Likewise.
4824         * tests/unictype/test-categ_Lm.c: Likewise.
4825         * tests/unictype/test-categ_Lo.c: Likewise.
4826         * tests/unictype/test-categ_Lu.c: Likewise.
4827         * tests/unictype/test-categ_M.c: Likewise.
4828         * tests/unictype/test-categ_Mc.c: Likewise.
4829         * tests/unictype/test-categ_Me.c: Likewise.
4830         * tests/unictype/test-categ_Mn.c: Likewise.
4831         * tests/unictype/test-categ_N.c: Likewise.
4832         * tests/unictype/test-categ_Nd.c: Likewise.
4833         * tests/unictype/test-categ_No.c: Likewise.
4834         * tests/unictype/test-categ_P.c: Likewise.
4835         * tests/unictype/test-categ_Po.c: Likewise.
4836         * tests/unictype/test-categ_S.c: Likewise.
4837         * tests/unictype/test-categ_Sc.c: Likewise.
4838         * tests/unictype/test-categ_Sk.c: Likewise.
4839         * tests/unictype/test-categ_Sm.c: Likewise.
4840         * tests/unictype/test-categ_So.c: Likewise.
4841         * tests/unictype/test-ctype_alnum.c: Likewise.
4842         * tests/unictype/test-ctype_alpha.c: Likewise.
4843         * tests/unictype/test-ctype_graph.c: Likewise.
4844         * tests/unictype/test-ctype_lower.c: Likewise.
4845         * tests/unictype/test-ctype_print.c: Likewise.
4846         * tests/unictype/test-ctype_punct.c: Likewise.
4847         * tests/unictype/test-ctype_upper.c: Likewise.
4848         * tests/unictype/test-decdigit.h: Likewise.
4849         * tests/unictype/test-digit.h: Likewise.
4850         * tests/unictype/test-numeric.h: Likewise.
4851         * tests/unictype/test-pr_alphabetic.c: Likewise.
4852         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4853         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4854         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4855         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4856         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4857         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4858         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4859         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4860         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4861         * tests/unictype/test-pr_cased.c: Likewise.
4862         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4863         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4864         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4865         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4866         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4867         * tests/unictype/test-pr_combining.c: Likewise.
4868         * tests/unictype/test-pr_composite.c: Likewise.
4869         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4870         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4871         * tests/unictype/test-pr_deprecated.c: Likewise.
4872         * tests/unictype/test-pr_format_control.c: Likewise.
4873         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4874         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4875         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4876         * tests/unictype/test-pr_id_continue.c: Likewise.
4877         * tests/unictype/test-pr_id_start.c: Likewise.
4878         * tests/unictype/test-pr_ideographic.c: Likewise.
4879         * tests/unictype/test-pr_lowercase.c: Likewise.
4880         * tests/unictype/test-pr_math.c: Likewise.
4881         * tests/unictype/test-pr_numeric.c: Likewise.
4882         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4883         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4884         * tests/unictype/test-pr_other_math.c: Likewise.
4885         * tests/unictype/test-pr_punctuation.c: Likewise.
4886         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4887         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4888         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4889         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4890         * tests/unictype/test-pr_uppercase.c: Likewise.
4891         * tests/unictype/test-pr_xid_continue.c: Likewise.
4892         * tests/unictype/test-pr_xid_start.c: Likewise.
4893         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4894         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4895         changes.
4896         * lib/unictype/categ_Cc.h: Likewise.
4897         * lib/unictype/categ_Cf.h: Likewise.
4898         * lib/unictype/categ_Co.h: Likewise.
4899         * lib/unictype/categ_Cs.h: Likewise.
4900         * lib/unictype/categ_Lt.h: Likewise.
4901         * lib/unictype/categ_Nl.h: Likewise.
4902         * lib/unictype/categ_Pc.h: Likewise.
4903         * lib/unictype/categ_Pd.h: Likewise.
4904         * lib/unictype/categ_Pe.h: Likewise.
4905         * lib/unictype/categ_Pf.h: Likewise.
4906         * lib/unictype/categ_Pi.h: Likewise.
4907         * lib/unictype/categ_Ps.h: Likewise.
4908         * lib/unictype/categ_Z.h: Likewise.
4909         * lib/unictype/categ_Zl.h: Likewise.
4910         * lib/unictype/categ_Zp.h: Likewise.
4911         * lib/unictype/categ_Zs.h: Likewise.
4912         * lib/unictype/ctype_blank.h: Likewise.
4913         * lib/unictype/ctype_cntrl.h: Likewise.
4914         * lib/unictype/ctype_digit.h: Likewise.
4915         * lib/unictype/ctype_space.h: Likewise.
4916         * lib/unictype/ctype_xdigit.h: Likewise.
4917         * lib/unictype/mirror.h: Likewise.
4918         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4919         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4920         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4921         * lib/unictype/pr_bidi_control.h: Likewise.
4922         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4923         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4924         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4925         * lib/unictype/pr_bidi_pdf.h: Likewise.
4926         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4927         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4928         * lib/unictype/pr_dash.h: Likewise.
4929         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4930         * lib/unictype/pr_diacritic.h: Likewise.
4931         * lib/unictype/pr_extender.h: Likewise.
4932         * lib/unictype/pr_hex_digit.h: Likewise.
4933         * lib/unictype/pr_hyphen.h: Likewise.
4934         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4935         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4936         * lib/unictype/pr_ignorable_control.h: Likewise.
4937         * lib/unictype/pr_iso_control.h: Likewise.
4938         * lib/unictype/pr_join_control.h: Likewise.
4939         * lib/unictype/pr_left_of_pair.h: Likewise.
4940         * lib/unictype/pr_line_separator.h: Likewise.
4941         * lib/unictype/pr_logical_order_exception.h: Likewise.
4942         * lib/unictype/pr_non_break.h: Likewise.
4943         * lib/unictype/pr_not_a_character.h: Likewise.
4944         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4945         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4946         * lib/unictype/pr_other_id_start.h: Likewise.
4947         * lib/unictype/pr_other_lowercase.h: Likewise.
4948         * lib/unictype/pr_other_uppercase.h: Likewise.
4949         * lib/unictype/pr_paired_punctuation.h: Likewise.
4950         * lib/unictype/pr_paragraph_separator.h: Likewise.
4951         * lib/unictype/pr_pattern_syntax.h: Likewise.
4952         * lib/unictype/pr_pattern_white_space.h: Likewise.
4953         * lib/unictype/pr_private_use.h: Likewise.
4954         * lib/unictype/pr_quotation_mark.h: Likewise.
4955         * lib/unictype/pr_radical.h: Likewise.
4956         * lib/unictype/pr_soft_dotted.h: Likewise.
4957         * lib/unictype/pr_space.h: Likewise.
4958         * lib/unictype/pr_titlecase.h: Likewise.
4959         * lib/unictype/pr_variation_selector.h: Likewise.
4960         * lib/unictype/pr_white_space.h: Likewise.
4961         * lib/unictype/pr_zero_width.h: Likewise.
4962         * lib/unictype/sy_c_ident.h: Likewise.
4963         * lib/unictype/sy_c_whitespace.h: Likewise.
4964         * lib/unictype/sy_java_whitespace.h: Likewise.
4965         * lib/uninorm/composition-table.gperf: Likewise.
4966         * lib/uninorm/decomposition-table1.h: Likewise.
4967         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4968         LB8.
4969         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4970         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4971         * modules/unictype/*: Bump version number of expected libunistring
4972         version.
4973
4974 2011-01-09  Bruno Haible  <bruno@clisp.org>
4975
4976         Update to Unicode 5.2.0.
4977         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4978         trailing whitespace removed.
4979
4980 2011-01-09  Bruno Haible  <bruno@clisp.org>
4981
4982         New Unicode character properties, from Unicode 5.2.0.
4983         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4984         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4985         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4986         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4987         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4988         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4989         uc_is_property_cased, uc_is_property_case_ignorable,
4990         uc_is_property_changes_when_lowercased,
4991         uc_is_property_changes_when_uppercased,
4992         uc_is_property_changes_when_titlecased,
4993         uc_is_property_changes_when_casefolded,
4994         uc_is_property_changes_when_casemapped): New declarations.
4995         * lib/unictype/pr_byname.gperf: Add the new properties.
4996         * modules/unictype/property-byname (Depends-on): Depend on the new
4997         properties modules.
4998         * modules/unictype/property-all (Depends-on): Likewise.
4999         * MODULES.html.sh (Unicode string functions): Add
5000         unictype/property-case-ignorable, unictype/property-cased,
5001         unictype/property-changes-when-casefolded,
5002         unictype/property-changes-when-casemapped,
5003         unictype/property-changes-when-lowercased,
5004         unictype/property-changes-when-titlecased,
5005         unictype/property-changes-when-uppercased.
5006
5007         New module 'unictype/property-changes-when-casemapped'.
5008         * modules/unictype/property-changes-when-casemapped: New file.
5009         * lib/unictype/pr_changes_when_casemapped.c: New file.
5010         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5011         generated by gen-uni-tables.
5012         * modules/unictype/property-changes-when-casemapped-tests: New file.
5013         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5014         automatically generated by gen-uni-tables.
5015
5016         New module 'unictype/property-changes-when-casefolded'.
5017         * modules/unictype/property-changes-when-casefolded: New file.
5018         * lib/unictype/pr_changes_when_casefolded.c: New file.
5019         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5020         generated by gen-uni-tables.
5021         * modules/unictype/property-changes-when-casefolded-tests: New file.
5022         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5023         automatically generated by gen-uni-tables.
5024
5025         New module 'unictype/property-changes-when-titlecased'.
5026         * modules/unictype/property-changes-when-titlecased: New file.
5027         * lib/unictype/pr_changes_when_titlecased.c: New file.
5028         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5029         generated by gen-uni-tables.
5030         * modules/unictype/property-changes-when-titlecased-tests: New file.
5031         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5032         automatically generated by gen-uni-tables.
5033
5034         New module 'unictype/property-changes-when-uppercased'.
5035         * modules/unictype/property-changes-when-uppercased: New file.
5036         * lib/unictype/pr_changes_when_uppercased.c: New file.
5037         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5038         generated by gen-uni-tables.
5039         * modules/unictype/property-changes-when-uppercased-tests: New file.
5040         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5041         automatically generated by gen-uni-tables.
5042
5043         New module 'unictype/property-changes-when-lowercased'.
5044         * modules/unictype/property-changes-when-lowercased: New file.
5045         * lib/unictype/pr_changes_when_lowercased.c: New file.
5046         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5047         generated by gen-uni-tables.
5048         * modules/unictype/property-changes-when-lowercased-tests: New file.
5049         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5050         automatically generated by gen-uni-tables.
5051
5052         New module 'unictype/property-case-ignorable'.
5053         * modules/unictype/property-case-ignorable: New file.
5054         * lib/unictype/pr_case_ignorable.c: New file.
5055         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5056         by gen-uni-tables.
5057         * modules/unictype/property-case-ignorable-tests: New file.
5058         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5059         generated by gen-uni-tables.
5060
5061         New module 'unictype/property-cased'.
5062         * modules/unictype/property-cased: New file.
5063         * lib/unictype/pr_cased.c: New file.
5064         * lib/unictype/pr_cased.h: New file, automatically generated by
5065         gen-uni-tables.
5066         * modules/unictype/property-cased-tests: New file.
5067         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5068         gen-uni-tables.
5069
5070 2011-01-09  Bruno Haible  <bruno@clisp.org>
5071
5072         Update to Unicode 5.2.0.
5073         * lib/gen-uni-tables.c (output_predicate, output_category,
5074         output_combclass, output_bidi_category, output_decimal_digit_test,
5075         output_decimal_digit, output_digit_test, output_digit,
5076         output_numeric_test, output_numeric, output_mirror, output_scripts,
5077         output_scripts_byname, output_blocks, output_ident_category): Fix
5078         comment header.
5079         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5080         get_wbp.
5081         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5082         items.
5083         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5084         Changes_When_Lowercased, Changes_When_Uppercased,
5085         Changes_When_Titlecased, Changes_When_Casefolded,
5086         Changes_When_Casemapped.
5087         (is_property_alphabetic, is_property_default_ignorable_code_point):
5088         Update for Unicode 5.2.0.
5089         (is_property_cased, is_property_case_ignorable,
5090         is_property_changes_when_lowercased,
5091         is_property_changes_when_uppercased,
5092         is_property_changes_when_titlecased,
5093         is_property_changes_when_casefolded,
5094         is_property_changes_when_casemapped): New functions.
5095         (output_properties): Output also the properties cased, case_ignorable,
5096         changes_when_lowercased, changes_when_uppercased,
5097         changes_when_titlecased, changes_when_casefolded,
5098         changes_when_casemapped.
5099         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5100         Unicode TR#11 revision 17 -> 19.
5101         (LBP_CP): New enumeration value.
5102         (LBP_*): Adjust values accordingly.
5103         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5104         TR#14 revision 22 -> 24.
5105         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5106         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5107         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5108         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5109         is_WBP_MIDLETTER.
5110         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5111         the code1 and code2 of each composition rule.
5112         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5113         * lib/unicase/ignorable.h: Likewise.
5114         * lib/unicase/tocasefold.h: Likewise.
5115         * lib/unicase/tolower.h: Likewise.
5116         * lib/unicase/totitle.h: Likewise.
5117         * lib/unicase/toupper.h: Likewise.
5118         * lib/unictype/bidi_of.h: Likewise.
5119         * lib/unictype/blocks.h: Likewise.
5120         * lib/unictype/categ_C.h: Likewise.
5121         * lib/unictype/categ_Cf.h: Likewise.
5122         * lib/unictype/categ_Cn.h: Likewise.
5123         * lib/unictype/categ_L.h: Likewise.
5124         * lib/unictype/categ_Ll.h: Likewise.
5125         * lib/unictype/categ_Lm.h: Likewise.
5126         * lib/unictype/categ_Lo.h: Likewise.
5127         * lib/unictype/categ_Lu.h: Likewise.
5128         * lib/unictype/categ_M.h: Likewise.
5129         * lib/unictype/categ_Mc.h: Likewise.
5130         * lib/unictype/categ_Mn.h: Likewise.
5131         * lib/unictype/categ_N.h: Likewise.
5132         * lib/unictype/categ_Nd.h: Likewise.
5133         * lib/unictype/categ_Nl.h: Likewise.
5134         * lib/unictype/categ_No.h: Likewise.
5135         * lib/unictype/categ_P.h: Likewise.
5136         * lib/unictype/categ_Pd.h: Likewise.
5137         * lib/unictype/categ_Po.h: Likewise.
5138         * lib/unictype/categ_S.h: Likewise.
5139         * lib/unictype/categ_Sc.h: Likewise.
5140         * lib/unictype/categ_So.h: Likewise.
5141         * lib/unictype/categ_of.h: Likewise.
5142         * lib/unictype/combining.h: Likewise.
5143         * lib/unictype/ctype_alnum.h: Likewise.
5144         * lib/unictype/ctype_alpha.h: Likewise.
5145         * lib/unictype/ctype_graph.h: Likewise.
5146         * lib/unictype/ctype_lower.h: Likewise.
5147         * lib/unictype/ctype_print.h: Likewise.
5148         * lib/unictype/ctype_punct.h: Likewise.
5149         * lib/unictype/ctype_upper.h: Likewise.
5150         * lib/unictype/decdigit.h: Likewise.
5151         * lib/unictype/digit.h: Likewise.
5152         * lib/unictype/numeric.h: Likewise.
5153         * lib/unictype/pr_alphabetic.h: Likewise.
5154         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5155         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5156         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5157         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5158         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5159         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5160         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5161         * lib/unictype/pr_combining.h: Likewise.
5162         * lib/unictype/pr_composite.h: Likewise.
5163         * lib/unictype/pr_currency_symbol.h: Likewise.
5164         * lib/unictype/pr_dash.h: Likewise.
5165         * lib/unictype/pr_decimal_digit.h: Likewise.
5166         * lib/unictype/pr_deprecated.h: Likewise.
5167         * lib/unictype/pr_diacritic.h: Likewise.
5168         * lib/unictype/pr_extender.h: Likewise.
5169         * lib/unictype/pr_grapheme_base.h: Likewise.
5170         * lib/unictype/pr_grapheme_extend.h: Likewise.
5171         * lib/unictype/pr_grapheme_link.h: Likewise.
5172         * lib/unictype/pr_id_continue.h: Likewise.
5173         * lib/unictype/pr_id_start.h: Likewise.
5174         * lib/unictype/pr_ideographic.h: Likewise.
5175         * lib/unictype/pr_ignorable_control.h: Likewise.
5176         * lib/unictype/pr_logical_order_exception.h: Likewise.
5177         * lib/unictype/pr_lowercase.h: Likewise.
5178         * lib/unictype/pr_numeric.h: Likewise.
5179         * lib/unictype/pr_other_alphabetic.h: Likewise.
5180         * lib/unictype/pr_punctuation.h: Likewise.
5181         * lib/unictype/pr_sentence_terminal.h: Likewise.
5182         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5183         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5184         * lib/unictype/pr_unified_ideograph.h: Likewise.
5185         * lib/unictype/pr_uppercase.h: Likewise.
5186         * lib/unictype/pr_xid_continue.h: Likewise.
5187         * lib/unictype/pr_xid_start.h: Likewise.
5188         * lib/unictype/pr_zero_width.h: Likewise.
5189         * lib/unictype/scripts.h: Likewise.
5190         * lib/unictype/scripts_byname.gperf: Likewise.
5191         * lib/unictype/sy_java_ident.h: Likewise.
5192         * lib/unigbrk/gbrkprop.h: Likewise.
5193         * lib/unilbrk/lbrkprop1.h: Likewise.
5194         * lib/unilbrk/lbrkprop2.h: Likewise.
5195         * lib/unilbrk/lbrktables.h: Likewise.
5196         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5197         LBP_CP. Implement rule LB30.
5198         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5199         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5200         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5201         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5202         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5203         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5204         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5205         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5206         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5207         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5208         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5209         bits instead of 16 bits in the code1 and code2 of each composition
5210         rule.
5211         (uc_composition): Update for Unicode 5.2.0.
5212         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5213         * lib/uninorm/decomposition-table2.h: Likewise.
5214         * lib/uniwbrk/wbrkprop.h: Likewise.
5215         * tests/unicase/test-cased.c: Likewise.
5216         * tests/unicase/test-ignorable.c: Likewise.
5217         * tests/unicase/test-uc_tolower.c: Likewise.
5218         * tests/unicase/test-uc_totitle.c: Likewise.
5219         * tests/unicase/test-uc_toupper.c: Likewise.
5220         * tests/unictype/test-categ_C.c: Likewise.
5221         * tests/unictype/test-categ_Cf.c: Likewise.
5222         * tests/unictype/test-categ_Cn.c: Likewise.
5223         * tests/unictype/test-categ_L.c: Likewise.
5224         * tests/unictype/test-categ_Ll.c: Likewise.
5225         * tests/unictype/test-categ_Lm.c: Likewise.
5226         * tests/unictype/test-categ_Lo.c: Likewise.
5227         * tests/unictype/test-categ_Lu.c: Likewise.
5228         * tests/unictype/test-categ_M.c: Likewise.
5229         * tests/unictype/test-categ_Mc.c: Likewise.
5230         * tests/unictype/test-categ_Mn.c: Likewise.
5231         * tests/unictype/test-categ_N.c: Likewise.
5232         * tests/unictype/test-categ_Nd.c: Likewise.
5233         * tests/unictype/test-categ_Nl.c: Likewise.
5234         * tests/unictype/test-categ_No.c: Likewise.
5235         * tests/unictype/test-categ_P.c: Likewise.
5236         * tests/unictype/test-categ_Pd.c: Likewise.
5237         * tests/unictype/test-categ_Po.c: Likewise.
5238         * tests/unictype/test-categ_S.c: Likewise.
5239         * tests/unictype/test-categ_Sc.c: Likewise.
5240         * tests/unictype/test-categ_So.c: Likewise.
5241         * tests/unictype/test-ctype_alnum.c: Likewise.
5242         * tests/unictype/test-ctype_alpha.c: Likewise.
5243         * tests/unictype/test-ctype_graph.c: Likewise.
5244         * tests/unictype/test-ctype_lower.c: Likewise.
5245         * tests/unictype/test-ctype_print.c: Likewise.
5246         * tests/unictype/test-ctype_punct.c: Likewise.
5247         * tests/unictype/test-ctype_upper.c: Likewise.
5248         * tests/unictype/test-decdigit.h: Likewise.
5249         * tests/unictype/test-digit.h: Likewise.
5250         * tests/unictype/test-numeric.h: Likewise.
5251         * tests/unictype/test-pr_alphabetic.c: Likewise.
5252         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5253         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5254         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5255         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5256         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5257         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5258         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5259         * tests/unictype/test-pr_combining.c: Likewise.
5260         * tests/unictype/test-pr_composite.c: Likewise.
5261         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5262         * tests/unictype/test-pr_dash.c: Likewise.
5263         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5264         * tests/unictype/test-pr_deprecated.c: Likewise.
5265         * tests/unictype/test-pr_diacritic.c: Likewise.
5266         * tests/unictype/test-pr_extender.c: Likewise.
5267         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5268         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5269         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5270         * tests/unictype/test-pr_id_continue.c: Likewise.
5271         * tests/unictype/test-pr_id_start.c: Likewise.
5272         * tests/unictype/test-pr_ideographic.c: Likewise.
5273         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5274         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5275         * tests/unictype/test-pr_lowercase.c: Likewise.
5276         * tests/unictype/test-pr_numeric.c: Likewise.
5277         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5278         * tests/unictype/test-pr_punctuation.c: Likewise.
5279         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5280         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5281         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5282         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5283         * tests/unictype/test-pr_uppercase.c: Likewise.
5284         * tests/unictype/test-pr_xid_continue.c: Likewise.
5285         * tests/unictype/test-pr_xid_start.c: Likewise.
5286         * tests/unictype/test-pr_zero_width.c: Likewise.
5287         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5288         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5289         changed behaviour: line breaking is now disallowed between a letter
5290         or '=' and '('.
5291         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5292         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5293         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5294         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5295         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5296         lib/uniwidth/width.c.
5297         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5298         without comments, but with the original copyright notice.
5299         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5300         changes.
5301         * lib/unictype/categ_Cc.h: Likewise.
5302         * lib/unictype/categ_Co.h: Likewise.
5303         * lib/unictype/categ_Cs.h: Likewise.
5304         * lib/unictype/categ_Lt.h: Likewise.
5305         * lib/unictype/categ_Me.h: Likewise.
5306         * lib/unictype/categ_Pc.h: Likewise.
5307         * lib/unictype/categ_Pe.h: Likewise.
5308         * lib/unictype/categ_Pf.h: Likewise.
5309         * lib/unictype/categ_Pi.h: Likewise.
5310         * lib/unictype/categ_Ps.h: Likewise.
5311         * lib/unictype/categ_Sk.h: Likewise.
5312         * lib/unictype/categ_Sm.h: Likewise.
5313         * lib/unictype/categ_Z.h: Likewise.
5314         * lib/unictype/categ_Zl.h: Likewise.
5315         * lib/unictype/categ_Zp.h: Likewise.
5316         * lib/unictype/categ_Zs.h: Likewise.
5317         * lib/unictype/ctype_blank.h: Likewise.
5318         * lib/unictype/ctype_cntrl.h: Likewise.
5319         * lib/unictype/ctype_digit.h: Likewise.
5320         * lib/unictype/ctype_space.h: Likewise.
5321         * lib/unictype/ctype_xdigit.h: Likewise.
5322         * lib/unictype/mirror.h: Likewise.
5323         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5324         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5325         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5326         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5327         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5328         * lib/unictype/pr_bidi_control.h: Likewise.
5329         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5330         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5331         * lib/unictype/pr_bidi_pdf.h: Likewise.
5332         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5333         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5334         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5335         * lib/unictype/pr_format_control.h: Likewise.
5336         * lib/unictype/pr_hex_digit.h: Likewise.
5337         * lib/unictype/pr_hyphen.h: Likewise.
5338         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5339         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5340         * lib/unictype/pr_iso_control.h: Likewise.
5341         * lib/unictype/pr_join_control.h: Likewise.
5342         * lib/unictype/pr_left_of_pair.h: Likewise.
5343         * lib/unictype/pr_line_separator.h: Likewise.
5344         * lib/unictype/pr_math.h: Likewise.
5345         * lib/unictype/pr_non_break.h: Likewise.
5346         * lib/unictype/pr_not_a_character.h: Likewise.
5347         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5348         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5349         * lib/unictype/pr_other_id_continue.h: Likewise.
5350         * lib/unictype/pr_other_id_start.h: Likewise.
5351         * lib/unictype/pr_other_lowercase.h: Likewise.
5352         * lib/unictype/pr_other_math.h: Likewise.
5353         * lib/unictype/pr_other_uppercase.h: Likewise.
5354         * lib/unictype/pr_paired_punctuation.h: Likewise.
5355         * lib/unictype/pr_paragraph_separator.h: Likewise.
5356         * lib/unictype/pr_pattern_syntax.h: Likewise.
5357         * lib/unictype/pr_pattern_white_space.h: Likewise.
5358         * lib/unictype/pr_private_use.h: Likewise.
5359         * lib/unictype/pr_quotation_mark.h: Likewise.
5360         * lib/unictype/pr_radical.h: Likewise.
5361         * lib/unictype/pr_soft_dotted.h: Likewise.
5362         * lib/unictype/pr_space.h: Likewise.
5363         * lib/unictype/pr_titlecase.h: Likewise.
5364         * lib/unictype/pr_variation_selector.h: Likewise.
5365         * lib/unictype/pr_white_space.h: Likewise.
5366         * lib/unictype/sy_c_ident.h: Likewise.
5367         * lib/unictype/sy_c_whitespace.h: Likewise.
5368         * lib/unictype/sy_java_whitespace.h: Likewise.
5369         * modules/uni*/*: Bump version number of expected libunistring version.
5370         Reported by Simon Josefsson.
5371
5372 2011-01-09  Karl Heuer  <kwzh@gnu.org>
5373
5374         useless-if-before-free: fix typo in --help and make the internal,
5375         automatic version date update process work once again.
5376         --help output contained a NUL character instead of the
5377         backslash-zero that was intended.  Also, the "must lie within
5378         the first 8 lines" line is on line 9, and hence not getting
5379         automatically updated.
5380         * build-aux/useless-if-before-free: Fix the former by adding a
5381         backslash, and the latter by condensing the three lines of what-it-does
5382         to a single line, leaving one line of slack for the future.
5383
5384 2011-01-09  Bruno Haible  <bruno@clisp.org>
5385
5386         uniwidth/width: Fix width of U+1D173..U+1D17A.
5387         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
5388         symbolic_width, output_width_property_test): New functions.
5389         (main): Invoke output_nonspacing_property, output_width_property_test.
5390         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
5391         U+1D173..U+1D17A.
5392         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
5393         1.
5394         * modules/uniwidth/*: Bump version number of expected libunistring
5395         version.
5396         * modules/unilbrk/*: Likewise.
5397
5398 2011-01-08  Bruno Haible  <bruno@clisp.org>
5399
5400         uninorm tests: Preserve copyright of Unicode data file.
5401         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
5402         Mention modifications.
5403
5404 2011-01-08  Bruno Haible  <bruno@clisp.org>
5405
5406         gen-uni-tables: Prepare for Unicode 5.2.0.
5407         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
5408         (debug_output_lbp, output_lbp): Update.
5409
5410 2011-01-08  Bruno Haible  <bruno@clisp.org>
5411
5412         unilbrk: Clarify gen-uni-tables.c code.
5413         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
5414         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
5415         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
5416
5417 2011-01-07  Bruno Haible  <bruno@clisp.org>
5418
5419         strtod: Restore errno when successfully parsing Infinity or NaN.
5420         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
5421         restore the original errno.
5422
5423 2011-01-07  Bruno Haible  <bruno@clisp.org>
5424
5425         remove test: Avoid failure on HP-UX 11.
5426         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
5427
5428 2011-01-07  Bruno Haible  <bruno@clisp.org>
5429
5430         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
5431         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
5432         error code.
5433
5434 2011-01-07  Pádraig Brady <P@draigBrady.com>
5435
5436         ignore-value: fixup comments, and add Eric Blake
5437         as an author since he rewrote the macros.
5438         * lib/ignore-value.h (ignore_value):  State that
5439         we now support aggregates.  Also specify exactly
5440         when the GCC warn_unused_result feature was added.
5441
5442 2011-01-06  Eric Blake  <eblake@redhat.com>
5443
5444         ignore-value: support aggregate types
5445         * lib/ignore-value.h (ignore_value): Provide separate gcc
5446         definition.
5447         * modules/ignore-value-tests: New test module.
5448         * tests/test-ignore-value.c: New test.
5449
5450         maint.mk: improve sc_prohibit_strcmp regex
5451         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
5452         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
5453         definition of STRNEQ.
5454
5455         signal: work around Haiku issue with SIGBUS
5456         * lib/siglist.h: Add comment.
5457         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
5458         strsignal's favoring of SIGSEGV.
5459         * tests/test-signal.c (main): Avoid test failure.
5460         * doc/posix-headers/signal.texi (signal.h): Document the issue.
5461         Reported by Scott McCreary.
5462
5463         maint.mk: add pre-release check to ensure submodule commits are public
5464         * top/maint.mk (public-submodule-commit): New rule.
5465         (submodule-checks): New variable.
5466         (alpha beta stable): Depend on the variable.
5467
5468 2011-01-05  Pádraig Brady <P@draigBrady.com>
5469         and Jim Meyering  <meyering@redhat.com>
5470
5471         ignore-value: make ignore_value more generic; deprecate ignore_ptr
5472         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
5473         (ATTRIBUTE_DEPRECATED): Define.
5474         (_ignore_case): New function.
5475         (ignore_value): New macro, to replace the old function.
5476         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
5477         * modules/ignore-value (Depends-on): Add stdint.
5478
5479 2011-01-04  Eric Blake  <eblake@redhat.com>
5480
5481         doc: regenerate INSTALL
5482         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
5483         @firstparagraphindent support, now that autoconf dropped it.
5484         (INSTALL_PRELUDE): Reinstate old macro.
5485         * doc/install.texi: Resync from autoconf.
5486         * doc/INSTALL: Reflect recent autoconf update.
5487         * doc/INSTALL.ISO: Likewise.
5488         * doc/INSTALL.UTF-8: Likewise.
5489         Reported by Karl Berry.
5490
5491 2011-01-04  Bruce Korb  <address@hidden>
5492
5493         git-version-gen: avoid a sub-shell
5494         * build-aux/git-version-gen: Redirect stderr in `...` via
5495         "exec 2>...", rather than via an added sub-shell.
5496
5497 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
5498
5499         git-version-gen: use (...) rather than sh -c '...'
5500         * build-aux/git-version-gen: Rather than hard-coding a shell's name
5501         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
5502
5503 2011-01-03  Jim Meyering  <meyering@redhat.com>
5504
5505         git-version-gen: convert leading TABs to spaces
5506         * build-aux/git-version-gen: Expand leading TABs.
5507
5508         git-version-gen: handle failed "git rev-list"
5509         * build-aux/git-version-gen: Rather than leaking a "fatal" error
5510         from git and proceeding as if it had succeeded but printed no SHA1
5511         checksums, suppress the diagnostic and handle the failure.
5512         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
5513
5514         git-version-gen: include command name in one more diagnostic
5515         * build-aux/git-version-gen: When the required .tarball-version file
5516         was missing or unreadable, you might see the diagnostic from "cat",
5517         but no trace of the name of the invoking script.  Now, you still see
5518         the diagnostic from cat, but also get one from "git-version-gen: ".
5519         Inspired by a patch from Bruce Korb.
5520
5521         update-copyright: adjust test to match changed code
5522         * tests/test-update-copyright.sh: Change test's expected output
5523         to match new actual output.
5524
5525 2011-01-02  Bruno Haible  <bruno@clisp.org>
5526
5527         getlogin_r: Avoid test failure on HP-UX 11.
5528         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
5529         ERANGE when the second argument is zero.
5530         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
5531         portability problem.
5532
5533 2011-01-02  Bruce Korb  <bkorb@gnu.org>
5534
5535         * build-aux/update-copyright: doc Simon's changes
5536
5537 2011-01-02  Simon Josefsson  <simon@josefsson.org>
5538
5539         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
5540         environment variable.
5541
5542 2011-01-02  Bruno Haible  <bruno@clisp.org>
5543
5544         unigbrk: Avoid gcc warnings.
5545         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
5546         unused variable.
5547         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
5548         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
5549         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
5550         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
5551         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
5552         Change type of first argument to 'const char *'.
5553         (main): Remove unused variable.
5554         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5555         type of first argument to 'const char *'.
5556         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5557         Likewise.
5558         (main): Change type of variable 's'.
5559         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5560         to 'int'.
5561
5562 2011-01-02  Bruno Haible  <bruno@clisp.org>
5563
5564         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5565         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5566         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5567         bug.
5568         * lib/pwrite.c: Undo 2010-12-31 patch.
5569         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5570
5571 2011-01-02  Bruno Haible  <bruno@clisp.org>
5572
5573         pread: Fix test whether it works.
5574         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5575
5576 2011-01-02  Bruno Haible  <bruno@clisp.org>
5577
5578         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5579         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5580         ends in "6". Don't require a specific month name. Try also the locale
5581         names found on HP-UX 11 and Solaris 7.
5582
5583 2011-01-02  Bruno Haible  <bruno@clisp.org>
5584
5585         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5586         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5587         C linkage.
5588         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5589
5590 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5591
5592         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5593         for consistency, since the "cluster" term is not used elsewhere.
5594         * lib/unigbrk.in.h: Update name.
5595         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5596         * lib/unigbrk/u16-grapheme-next.c: Update name.
5597         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5598         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5599         * lib/unigbrk/u32-grapheme-next.c: Update name.
5600         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5601         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5602         * lib/unigbrk/u8-grapheme-next.c: Update name.
5603         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5604         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5605         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5606         Suggested by Bruno Haible.
5607
5608 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5609
5610         Remove module 'u8-grapheme-len' as too redundant with
5611         'u8-grapheme-next'.
5612         * modules/unigbrk/u8-grapheme-len: Delete file.
5613         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5614         * lib/unigbrk.in.h: Remove prototype for deleted function.
5615         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5616         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5617
5618         Remove module 'u16-grapheme-len' as too redundant with
5619         'u16-grapheme-next'.
5620         * modules/unigbrk/u16-grapheme-len: Delete file.
5621         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5622         * lib/unigbrk.in.h: Remove prototype for deleted function.
5623         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5624         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5625
5626         Remove module 'u32-grapheme-len' as too redundant with
5627         'u32-grapheme-next'.
5628         * modules/unigbrk/u32-grapheme-len: Delete file.
5629         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5630         * lib/unigbrk.in.h: Remove prototype for deleted function.
5631         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5632         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5633
5634         Suggested by Bruno Haible.
5635
5636 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5637
5638         * unigbrk.in.h: Fix typo: "ben" => "been".
5639         Reported by Bruno Haible.
5640
5641 2011-01-01  Jim Meyering  <meyering@redhat.com>
5642
5643         maint: update almost all copyright ranges to include 2011
5644         Run the new "make update-copyright" rule.
5645
5646 2011-01-01  Jim Meyering  <meyering@redhat.com>
5647
5648         maint: update-copyright: exempt doc/INSTALL*
5649         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5650         since they are generated.  Suggested by Bruno Haible.
5651
5652 2011-01-01  Jim Meyering  <meyering@redhat.com>
5653
5654         maint: refine the update-copyright rule
5655         * Makefile (update-copyright): Also exclude any file that includes
5656         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5657         code that merely generates the comment.
5658
5659 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5660
5661         New module 'u8-grapheme-len'.
5662         * modules/unigbrk/u8-grapheme-len: New file.
5663         * modules/unigbrk/u8-grapheme-len-tests: New file.
5664         * lib/unigbrk.in.h: Add prototype for new function.
5665         * lib/unigbrk/u8-grapheme-len.c: New file.
5666         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5667
5668         New module 'u16-grapheme-len'.
5669         * modules/unigbrk/u16-grapheme-len: New file.
5670         * modules/unigbrk/u16-grapheme-len-tests: New file.
5671         * lib/unigbrk.in.h: Add prototype for new function.
5672         * lib/unigbrk/u16-grapheme-len.c: New file.
5673         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5674
5675         New module 'u32-grapheme-len'.
5676         * modules/unigbrk/u32-grapheme-len: New file.
5677         * modules/unigbrk/u32-grapheme-len-tests: New file.
5678         * lib/unigbrk.in.h: Add prototype for new function.
5679         * lib/unigbrk/u32-grapheme-len.c: New file.
5680         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5681
5682         New module 'u8-grapheme-next'.
5683         * modules/unigbrk/u8-grapheme-next: New file.
5684         * modules/unigbrk/u8-grapheme-next-tests: New file.
5685         * lib/unigbrk.in.h: Add prototype for new function.
5686         * lib/unigbrk/u8-grapheme-next.c: New file.
5687         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5688
5689         New module 'u16-grapheme-next'.
5690         * modules/unigbrk/u16-grapheme-next: New file.
5691         * modules/unigbrk/u16-grapheme-next-tests: New file.
5692         * lib/unigbrk.in.h: Add prototype for new function.
5693         * lib/unigbrk/u16-grapheme-next.c: New file.
5694         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5695
5696         New module 'u32-grapheme-next'.
5697         * modules/unigbrk/u32-grapheme-next: New file.
5698         * modules/unigbrk/u32-grapheme-next-tests: New file.
5699         * lib/unigbrk.in.h: Add prototype for new function.
5700         * lib/unigbrk/u32-grapheme-next.c: New file.
5701         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5702
5703         New module 'u8-grapheme-prev'.
5704         * modules/unigbrk/u8-grapheme-prev: New file.
5705         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5706         * lib/unigbrk.in.h: Add prototype for new function.
5707         * lib/unigbrk/u8-grapheme-prev.c: New file.
5708         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5709
5710         New module 'u16-grapheme-prev'.
5711         * modules/unigbrk/u16-grapheme-prev: New file.
5712         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5713         * lib/unigbrk.in.h: Add prototype for new function.
5714         * lib/unigbrk/u16-grapheme-prev.c: New file.
5715         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5716
5717         New module 'u32-grapheme-prev'.
5718         * modules/unigbrk/u32-grapheme-prev: New file.
5719         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5720         * lib/unigbrk.in.h: Add prototype for new function.
5721         * lib/unigbrk/u32-grapheme-prev.c: New file.
5722         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5723
5724         New module 'u8-grapheme-breaks'.
5725         * modules/unigbrk/u8-grapheme-breaks: New file.
5726         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5727         * lib/unigbrk.in.h: Add prototype for new function.
5728         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5729         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5730
5731         New module 'u16-grapheme-breaks'.
5732         * modules/unigbrk/u16-grapheme-breaks: New file.
5733         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5734         * lib/unigbrk.in.h: Add prototype for new function.
5735         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5736         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5737
5738         New module 'u32-grapheme-breaks'.
5739         * modules/unigbrk/u32-grapheme-breaks: New file.
5740         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5741         * lib/unigbrk.in.h: Add prototype for new function.
5742         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5743         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5744
5745         New module 'ulc-grapheme-breaks'.
5746         * modules/unigbrk/ulc-grapheme-breaks: New file.
5747         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5748         * m4/locale-ar.m4: New file.
5749         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5750         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5751         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5752
5753 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5754
5755         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5756         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5757         modified how this file was generated before I initially submitted
5758         the module, but failed to regenerate it.  This meant that several
5759         of the level2 entries were wrong.
5760         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5761         Remove the division-by-2 that is folded into the table now that
5762         gbrkprop.h has been regenerated properly.  Now -1 entries are
5763         handled correctly.
5764
5765         New module 'unigbrk/uc-gbrk-prop-tests'.
5766         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5767         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5768         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5769         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5770
5771 2011-01-01  Bruno Haible  <bruno@clisp.org>
5772
5773         Avoid use of hexadecimal escapes.
5774         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5775         instead of hexadecimal escapes.
5776
5777 2011-01-01  Jim Meyering  <meyering@redhat.com>
5778
5779         maint: new rule to update copyright year ranges
5780         * Makefile (update-copyright): New rule.
5781
5782         maint: indent with TABs in Makefile
5783         * Makefile: Expand leading sequences of spaces to TABs
5784
5785         version-etc: update the copyright year it reports
5786         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5787
5788 2010-12-31  Bruno Haible  <bruno@clisp.org>
5789
5790         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5791         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5792         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5793         zero.
5794
5795 2010-12-31  Bruno Haible  <bruno@clisp.org>
5796
5797         pwrite: Work around HP-UX 11.11 bug.
5798         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5799         works and set REPLACE_PWRITE if not.
5800         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5801         function.
5802         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5803
5804 2010-12-31  Bruno Haible  <bruno@clisp.org>
5805
5806         pread: Work around HP-UX 11 bugs.
5807         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5808         and set REPLACE_PREAD if not.
5809         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5810
5811 2010-12-31  Eric Blake  <eblake@redhat.com>
5812
5813         nl_langinfo: fix YESEXPR on Irix 6.5
5814         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5815         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5816         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5817         it.
5818
5819 2010-12-31  Bruno Haible  <bruno@clisp.org>
5820
5821         iconv: Document HP-UX 11 bug.
5822         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5823
5824 2010-12-31  Bruno Haible  <bruno@clisp.org>
5825
5826         ldexpl: Fix link error on HP-UX 11.
5827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5828         LDEXPL_LIBM, using $ISNANL_LIBM.
5829
5830 2010-12-31  Eric Blake  <eblake@redhat.com>
5831
5832         ftello: avoid compilation failure with SunStudio c89
5833         * lib/ftello.c (ftello): Use lseek, not llseek.
5834
5835         tests: avoid failing coreutils tests on cygwin
5836         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5837         (create_exe_shims_): Return 0 when skipping.
5838
5839 2010-12-31  Bruno Haible  <bruno@clisp.org>
5840
5841         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5842         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5843
5844 2010-12-31  Bruno Haible  <bruno@clisp.org>
5845
5846         waitpid: Fix link error in C++ mode.
5847         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5848
5849 2010-12-31  Bruno Haible  <bruno@clisp.org>
5850
5851         isnan: Use GCC built-ins when possible.
5852         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5853         __builtin_isnan.
5854         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5855         (isnan): Define using GCC built-ins for GCC >= 4.0.
5856
5857 2010-12-31  Bruno Haible  <bruno@clisp.org>
5858
5859         isnand: Fix mistake.
5860         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5861         __builtin_isnand.
5862
5863 2010-12-31  Bruno Haible  <bruno@clisp.org>
5864
5865         open: Avoid C++ error on HP-UX 11.
5866         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5867
5868 2010-12-31  Bruno Haible  <bruno@clisp.org>
5869
5870         time_r: Add missing declarations on HP-UX 11.
5871         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5872         instead of HAVE_LOCALTIME_R.
5873         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5874         HAVE_LOCALTIME_R always.
5875         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5876         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5877         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5878         HAVE_LOCALTIME_R.
5879         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5880         * doc/posix-functions/localtime_r.texi: Likewise.
5881
5882 2010-12-29  Eric Blake  <eblake@redhat.com>
5883
5884         mountlist: tweak previous commit
5885         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5886         Reported by Paul Eggert.
5887
5888         mountlist: fix local drive detection on cygwin
5889         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5890         that works for cygwin.
5891
5892 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5893
5894         ftoastr, snprintf: ftoastr + snprintf module
5895         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5896         since the snprintf module now should be good enough here.
5897         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5898         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5899         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5900         GNULIB_SNPRINTF only for the test directory, and the latter
5901         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5902         seems to suffice by itself.
5903
5904 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5905
5906         alloca: one step towards thread-safety
5907         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5908         need for a static variable.  All callers changed.  This does not
5909         make the alloca replacement thread-safe, but it's one step.
5910
5911         tests: minor indenting change
5912         * tests/init.sh: Sync from coreutils housekeeping patch
5913         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5914         to keep lines within 80 columns.
5915
5916 2010-12-28  Jim Meyering  <meyering@redhat.com>
5917
5918         regex: don't infloop on persistent failing calloc
5919         * lib/regexec.c (build_trtable): Return failure indication upon
5920         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5921         In glibc, this was fixed for version 2.13:
5922         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5923
5924 2010-12-28  Bruno Haible  <bruno@clisp.org>
5925             Paul Eggert <eggert@cs.ucla.edu>
5926
5927         linkat: Make implementation robust against system behaviour variations.
5928         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5929         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5930         way, and to -2 if it needs a generic runtime test.
5931         * lib/linkat.c (solaris_optimized_link_immediate,
5932         solaris_optimized_link_follow): New functions.
5933         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5934         (check_same_link): Use it.
5935
5936 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5937
5938         New module 'unigbrk/base'.
5939         * modules/unigbrk/base: New file.
5940         * lib/unigbrk.in.h: New file.
5941
5942         New module 'unigbrk/uc-gbrk-prop'.
5943         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5944         * modules/unigbrk/uc-gbrk-prop: New file.
5945         * lib/unigbrk/gbrkprop.h: New file.
5946         * lib/unigbrk/uc-gbrk-prop.c: New file.
5947
5948         New module 'unigbrk/uc-is-grapheme-break'.
5949         * modules/unigbrk/uc-is-grapheme-break: New file.
5950         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5951         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5952         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5953         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5954         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5955
5956         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5957
5958 2010-12-27  Bruno Haible  <bruno@clisp.org>
5959
5960         linkat test: Avoid failure on Solaris 11 2010-11.
5961         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5962
5963 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5964
5965         utimens: work around glibc rounding bug on more platforms
5966         * lib/utimens.c (fdutimens): Work around rounding bug even if
5967         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5968         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5969
5970 2010-12-27  Bruno Haible  <bruno@clisp.org>
5971
5972         select tests: Improve comments.
5973         * tests/test-select.c (do_select): Add comments.
5974
5975 2010-12-27  Bruno Haible  <bruno@clisp.org>
5976
5977         select tests: Safer way of handling timeout.
5978         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5979         at every invocation.
5980
5981 2010-12-27  Bruno Haible  <bruno@clisp.org>
5982
5983         select tests: Use 'bool' where appropriate.
5984         * tests/test-select.c (connect_to_socket): Change argument type to
5985         'bool'.
5986
5987 2010-12-27  Bruno Haible  <bruno@clisp.org>
5988
5989         select tests: Use existing modules.
5990         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5991         (configure.ac): Don't test for unistd.h.
5992         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5993         declared in <unistd.h>.
5994
5995 2010-12-27  Bruno Haible  <bruno@clisp.org>
5996
5997         mbrtowc: Work around a Solaris 7 bug.
5998         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5999         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6000         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6001         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6002         MBRTOWC_NULL_ARG1_BUG.
6003         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6004         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6005         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6006         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6007
6008 2010-12-27  Jim Meyering  <meyering@redhat.com>
6009
6010         read-file.c: tweak syntax
6011         * lib/read-file.c (fread_file): Remove space after "*" in function
6012         definitions.
6013
6014 2010-12-27  Bruno Haible  <bruno@clisp.org>
6015
6016         times test: Avoid gcc warnings on OSF/1.
6017         * tests/test-times.c (main): Cast printf arguments from clock_t to
6018         'long int'.
6019
6020 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6021
6022         utimens: work around glibc rounding bug on older Linux kernels
6023         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6024         on Linux with a glibc whose utimes might not work, then work
6025         around a longstanding glibc bug involving rounding rather than
6026         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6027         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6028
6029 2010-12-26  Bruno Haible  <bruno@clisp.org>
6030
6031         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6032         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6033         _GL_CXXALIAS_SYS.
6034         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6035
6036 2010-12-26  Bruno Haible  <bruno@clisp.org>
6037
6038         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6039         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6040         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6041         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6042         looking for the declaration.
6043         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6044         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6045         problem.
6046         * doc/posix-functions/inet_pton.texi: Likewise.
6047
6048 2010-12-26  Bruno Haible  <bruno@clisp.org>
6049
6050         arpa_inet: Use the common idioms with C++ support.
6051         * lib/arpa_inet.in.h: Include c++defs.h.
6052         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6053         support.
6054         * modules/arpa_inet (Depends-on): Add c++defs.
6055         (Makefile.am): Substitute the contents of c++defs.h.
6056         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6057         * modules/arpa_inet-c++-tests: New file.
6058         * tests/test-arpa_inet-c++.cc: New file.
6059
6060 2010-12-25  Bruno Haible  <bruno@clisp.org>
6061
6062         Fix more C++ link errors on Solaris 8.
6063         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6064         $(LIB_EACCESS).
6065         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6066         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6067         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6068         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6069         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6070
6071 2010-12-25  Bruno Haible  <bruno@clisp.org>
6072
6073         printf-posix: Fix link error when a non-GCC compiler is used.
6074         * lib/stdio.in.h (printf): When not using GCC, override printf
6075         correctly.
6076         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6077
6078 2010-12-25  Bruno Haible  <bruno@clisp.org>
6079
6080         strerror_r-posix: Update doc.
6081         * doc/posix-functions/strerror_r.texi: Update doc about the return
6082         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6083
6084 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6085
6086         utimens: simplify the logic of the previous change
6087         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6088         This should not affect whether the test succeeds or fails.
6089
6090         utimens: configure better on hosts with NFS clock skew
6091         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6092         uses the clock of the local host.  It might use the clock of the
6093         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6094         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6095
6096 2010-12-25  Bruno Haible  <bruno@clisp.org>
6097
6098         ptsname test: Avoid failure on Solaris.
6099         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6100         open a pseudo-terminal; don't use BSD-style ptys.
6101         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6102
6103 2010-12-25  Bruno Haible  <bruno@clisp.org>
6104
6105         ptsname: Avoid ERANGE failure on some systems.
6106         * lib/ptsname.c (buffer): Increase size.
6107
6108 2010-12-25  Bruno Haible  <bruno@clisp.org>
6109
6110         rename, renameat: Avoid test failures at NFS mounted locations.
6111         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6112         so that subsequent mkdir calls succeed.
6113
6114 2010-12-25  Bruno Haible  <bruno@clisp.org>
6115
6116         iswblank: Fix C++ link error on Solaris 8.
6117         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6118         _GL_FUNCDECL_SYS.
6119
6120 2010-12-25  Bruno Haible  <bruno@clisp.org>
6121
6122         unistd: Fix C++ link error on Solaris 8.
6123         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6124
6125 2010-12-25  Bruno Haible  <bruno@clisp.org>
6126
6127         readlink doc: Mention an old glibc bug.
6128         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6129
6130 2010-12-25  Bruno Haible  <bruno@clisp.org>
6131
6132         fcntl-h: Fix for use of C++ on glibc systems.
6133         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6134         also on glibc systems in C++ mode.
6135         Reported by Gary V. Vaughan <gary@gnu.org>.
6136
6137 2010-12-25  Bruno Haible  <bruno@clisp.org>
6138
6139         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6140         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6141
6142 2010-12-25  Bruno Haible  <bruno@clisp.org>
6143
6144         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6145         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6146         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6147         test whether truncl works according to ISO C 99 with IEC 60559.
6148         * m4/truncl-ieee.m4: New file.
6149         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6150         m4/signbit.m4.
6151         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6152
6153 2010-12-25  Bruno Haible  <bruno@clisp.org>
6154
6155         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6156         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6157         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6158         test whether ceill works according to ISO C 99 with IEC 60559.
6159         * m4/ceill-ieee.m4: New file.
6160         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6161         m4/signbit.m4.
6162         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6163
6164 2010-12-25  Bruno Haible  <bruno@clisp.org>
6165
6166         Ensure all prerequisites of <wchar.h> are included.
6167         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6168         before <wchar.h>.
6169         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6170         gl_MBRLEN_NUL_RETVAL): Likewise.
6171         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6172         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6173         AC_FUNC_MBRTOWC): Likewise.
6174         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6175         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6176         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6177         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6178         Likewise.
6179         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6180         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6181         (gl_WCHAR_H): Improve comments.
6182         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6183
6184 2010-12-25  Bruno Haible  <bruno@clisp.org>
6185
6186         strtok_r: Fix C syntax error in autoconf macro.
6187         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6188         characters in test program.
6189
6190 2010-12-24  Bruno Haible  <bruno@clisp.org>
6191
6192         ceil, trunc, round: Fix gcc warnings.
6193         * lib/ceil.c (MIN): Undefine before redefining.
6194         * lib/trunc.c (MIN): Likewise.
6195         * lib/round.c (MIN): Likewise.
6196         Include <math.h> first.
6197
6198 2010-12-24  Bruno Haible  <bruno@clisp.org>
6199
6200         select tests: Avoid failures on OSF/1 5.1.
6201         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6202         failure of closing the last socket; it may fail with ECONNRESET.
6203
6204 2010-12-24  Eric Blake  <eblake@redhat.com>
6205
6206         stdint: avoid HP-UX 10.20 preprocessor bug
6207         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6208         than #if.
6209         * tests/test-floor2.c (main): Likewise.
6210         Reported by Peter O'Gorman.
6211
6212         pipe: make obsoletion transition easier
6213         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6214         * modules/pipe (Files): Include revived file.
6215         (Include): Drop reference, to mirror getdate's behavior.
6216
6217 2010-12-24  Bruno Haible  <bruno@clisp.org>
6218
6219         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6220         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6221         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6222         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6223
6224 2010-12-24  Bruno Haible  <bruno@clisp.org>
6225
6226         gethostname: Ensure declaration on NonStop Kernel.
6227         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6228         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6229
6230 2010-12-24  Bruno Haible  <bruno@clisp.org>
6231
6232         sys_select: Ensure all necessary types on NonStop Kernel.
6233         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6234         include <sys/time.h>.
6235         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6236         NonStop Kernel.
6237         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6238
6239 2010-12-24  Bruno Haible  <bruno@clisp.org>
6240
6241         sys_select: Remove unneeded include.
6242         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6243         have <sys/select.h>.
6244
6245 2010-12-24  Bruno Haible  <bruno@clisp.org>
6246
6247         gethostname: Provide a fallback for HOST_NAME_MAX.
6248         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6249         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6250         instead.
6251         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6252
6253 2010-12-24  Bruno Haible  <bruno@clisp.org>
6254
6255         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6256         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6257         (SA_RESTART): Likewise.
6258         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6259
6260 2010-12-24  Bruno Haible  <bruno@clisp.org>
6261
6262         signal: Define NSIG.
6263         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6264         * tests/test-signal.c (nsig): New variable.
6265         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6266
6267 2010-12-24  Bruno Haible  <bruno@clisp.org>
6268
6269         rename, renameat: Avoid test failures on OSF/1 5.1.
6270         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6271         alternative error codes.
6272         * tests/test-renameat.c (main): Likewise.
6273
6274 2010-12-24  Bruno Haible  <bruno@clisp.org>
6275
6276         *printf: Detect large precisions bug on Solaris 10/SPARC.
6277         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6278         by Paul Eggert.
6279         * tests/test-snprintf-posix.h (test_function): Add this test code here
6280         too.
6281         * tests/test-sprintf-posix.h (test_function): Likewise.
6282         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6283         * tests/test-vasprintf-posix.c (test_function): Likewise.
6284         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6285         around by gnulib.
6286         * doc/posix-functions/printf.texi: Likewise.
6287         * doc/posix-functions/snprintf.texi: Likewise.
6288         * doc/posix-functions/sprintf.texi: Likewise.
6289         * doc/posix-functions/vfprintf.texi: Likewise.
6290         * doc/posix-functions/vprintf.texi: Likewise.
6291         * doc/posix-functions/vsnprintf.texi: Likewise.
6292         * doc/posix-functions/vsprintf.texi: Likewise.
6293         * doc/posix-functions/dprintf.texi: Undo last commit.
6294         * doc/posix-functions/vdprintf.texi: Likewise.
6295
6296 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6297
6298         tests: port test-fdutimensat.c to Solaris 8
6299         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6300         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6301         On Solaris 8, it fails with errno == ENOSYS, because there is no
6302         futimens (so it can't use the fd), and there is no lutimens (so it
6303         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6304
6305         vsnprintf: make more consistent with snprintf; doc fixes
6306
6307         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6308         the byte count return problem was promoted from the snprintf-posix
6309         to the snprintf module.
6310         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6311         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6312         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6313         * tests/test-snprintf.c (main): Check the byte count returned.
6314         * tests/test-vsnprintf.c (main): Likewise.
6315
6316 2010-12-23  Eric Blake  <eblake@redhat.com>
6317
6318         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6319         * modules/sigpipe (License): Relax license.
6320
6321 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6322
6323         doc: document Solaris printf bug with large float precisions
6324         * doc/posix-functions/dprintf.texi (dprintf):
6325         * doc/posix-functions/fprintf.texi (fprintf):
6326         * doc/posix-functions/printf.texi (printf):
6327         * doc/posix-functions/snprintf.texi (snprintf):
6328         * doc/posix-functions/sprintf.texi (sprintf):
6329         * doc/posix-functions/vdprintf.texi (vdprintf):
6330         * doc/posix-functions/vfprintf.texi (vfprintf):
6331         * doc/posix-functions/vprintf.texi (vprintf):
6332         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6333         * doc/posix-functions/vsprintf.texi (vsprintf):
6334         Mention that these functions mishandle large floating point
6335         precisions on Solaris 10.  The same bug is also present in Solaris
6336         8, and I assume earlier.  This causes "cd gnulib-tests; make
6337         check" to fail on Solaris 8 (and I assume, later) when building
6338         the latest coreutils, in test-vasprintf-posix's call to
6339         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6340         the wide flavors (e.g., wprintf) so this patch just updates the
6341         documentation for the narrow ones.
6342
6343         test-posixtm.c: add two tests
6344         * tests/test-posixtm.c: Add two tests, to highlight the
6345         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
6346         around this bug; this is merely to document it.
6347
6348 2010-12-22  Bruno Haible  <bruno@clisp.org>
6349
6350         getlogin_r: Work around portability problem on OSF/1.
6351         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
6352         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
6353         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
6354         test for a truncated result.
6355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
6356         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
6357         * modules/getlogin_r (Depends-on): Add memchr.
6358         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
6359
6360 2010-12-22  Bruno Haible  <bruno@clisp.org>
6361
6362         ptsname: Avoid test failure on OSF/1 5.1.
6363         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
6364         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
6365         (same_slave): New function.
6366         (main): Use it to compare ptsname's result with the expected file name.
6367
6368 2010-12-22  Bruno Haible  <bruno@clisp.org>
6369
6370         Port extended stdio modules to HP NonStop Kernel.
6371         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
6372         macros.
6373         * lib/fbufmode.c: Update comments.
6374         * lib/fflush.c: Likewise.
6375         * lib/fpurge.c: Likewise.
6376         * lib/freadable.c: Likewise.
6377         * lib/freadahead.c: Likewise.
6378         * lib/freading.c: Likewise.
6379         * lib/freadptr.c: Likewise.
6380         * lib/freadseek.c: Likewise.
6381         * lib/fseeko.c: Likewise.
6382         * lib/fseterr.c: Likewise.
6383         * lib/fwritable.c: Likewise.
6384         * lib/fwriting.c: Likewise.
6385         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6386
6387 2010-12-22  Bruno Haible  <bruno@clisp.org>
6388
6389         ttyname_r: Work around bug on OSF/1 5.1.
6390         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
6391         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
6392         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
6393         present.
6394         * lib/ttyname_r.c (ttyname_r): Update comments.
6395
6396 2010-12-22  Bruno Haible  <bruno@clisp.org>
6397
6398         round: Implement result sign according to IEEE 754.
6399         * lib/round.c (MIN, MINUS_ZERO): New macros.
6400         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
6401         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
6402         * tests/test-round-ieee.c (main): Likewise.
6403         * tests/test-roundl-ieee.c (main): Likewise.
6404
6405         trunc: Implement result sign according to IEEE 754.
6406         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
6407         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
6408         * tests/test-trunc2.c: Include minus-zero.h.
6409         (MINUS_ZERO): New macro.
6410         (trunc_reference): Keep in sync with lib/trunc.c.
6411         * tests/test-truncf2.c: Include minus-zero.h.
6412         (MINUS_ZERO): New macro.
6413         (truncf_reference): Keep in sync with lib/trunc.c.
6414         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
6415         * tests/test-trunc-ieee.c (main): Likewise.
6416         * tests/test-truncl-ieee.c (main): Likewise.
6417
6418         ceil: Implement result sign according to IEEE 754.
6419         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
6420         (FUNC): Return -0.0 for -1 < x < 0.
6421         * tests/test-ceil2.c: Include minus-zero.h.
6422         (MINUS_ZERO): New macro.
6423         (ceil_reference): Keep in sync with lib/ceil.c.
6424         * tests/test-ceilf2.c: Include minus-zero.h.
6425         (MINUS_ZERO): New macro.
6426         (ceilf_reference): Keep in sync with lib/ceil.c.
6427         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
6428         * tests/test-ceil-ieee.c (main): Likewise.
6429         * tests/test-ceill-ieee.c (main): Likewise.
6430
6431         floor: Implement result sign according to IEEE 754.
6432         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
6433         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
6434         * tests/test-floorf2.c (floorf_reference): Likewise.
6435         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
6436         * tests/test-floor-ieee.c (main): Likewise.
6437         * tests/test-floorl-ieee.c (main): Likewise.
6438
6439 2010-12-22  Bruno Haible  <bruno@clisp.org>
6440
6441         getaddrinfo: Update doc.
6442         * doc/posix-functions/gai_strerror.texi: Return type is also different
6443         on AIX and HP-UX.
6444
6445 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6446
6447         getaddrinfo, inet_ntop: Update doc for Solaris.
6448         * doc/posix-functions/gai_strerror.texi: Return type is also an
6449         issue on Solaris 9 and earlier.
6450         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
6451         on Solaris 10 and earlier.
6452
6453 2010-12-21  Bruno Haible  <bruno@clisp.org>
6454
6455         New module 'roundl-ieee'.
6456         * modules/roundl-ieee: New file.
6457         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
6458         test whether roundl works according to ISO C 99 with IEC 60559.
6459         * m4/roundl-ieee.m4: New file.
6460         * modules/roundl-ieee-tests: New file.
6461         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
6462         * tests/test-roundl.c (main): Remove signbit tests.
6463         * modules/roundl-tests (Depends-on): Remove signbit.
6464         * doc/posix-functions/roundl.texi: Mention the new module.
6465
6466 2010-12-21  Bruno Haible  <bruno@clisp.org>
6467
6468         New module 'truncl-ieee'.
6469         * modules/truncl-ieee: New file.
6470         * modules/truncl-ieee-tests: New file.
6471         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
6472         * tests/test-truncl.c (main): Remove signbit tests.
6473         * modules/truncl-tests (Depends-on): Remove signbit.
6474         * doc/posix-functions/truncl.texi: Mention the new module.
6475
6476 2010-12-21  Bruno Haible  <bruno@clisp.org>
6477
6478         New module 'ceill-ieee'.
6479         * modules/ceill-ieee: New file.
6480         * modules/ceill-ieee-tests: New file.
6481         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
6482         * tests/test-ceill.c (main): Remove signbit tests.
6483         * modules/ceill-tests (Depends-on): Remove signbit.
6484         * doc/posix-functions/ceill.texi: Mention the new module.
6485
6486 2010-12-21  Bruno Haible  <bruno@clisp.org>
6487
6488         New module 'floorl-ieee'.
6489         * modules/floorl-ieee: New file.
6490         * modules/floorl-ieee-tests: New file.
6491         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
6492         * tests/test-floorl.c (main): Remove signbit tests.
6493         * modules/floorl-tests (Depends-on): Remove signbit.
6494         * doc/posix-functions/floorl.texi: Mention the new module.
6495
6496 2010-12-21  Bruno Haible  <bruno@clisp.org>
6497
6498         New module 'round-ieee'.
6499         * modules/round-ieee: New file.
6500         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
6501         whether round works according to ISO C 99 with IEC 60559.
6502         * m4/round-ieee.m4: New file.
6503         * modules/round-ieee-tests: New file.
6504         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
6505         * tests/test-round1.c (main): Remove signbit tests.
6506         * modules/round-tests (Depends-on): Remove 'signbit'.
6507         * doc/posix-functions/round.texi: Mention the new module.
6508
6509 2010-12-21  Bruno Haible  <bruno@clisp.org>
6510
6511         New module 'trunc-ieee'.
6512         * modules/trunc-ieee: New file.
6513         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
6514         whether trunc works according to ISO C 99 with IEC 60559.
6515         * m4/trunc-ieee.m4: New file.
6516         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
6517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
6518         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
6519         * modules/trunc-ieee-tests: New file.
6520         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
6521         * tests/test-trunc1.c (main): Remove signbit tests.
6522         * modules/trunc-tests (Depends-on): Remove 'signbit'.
6523         * doc/posix-functions/trunc.texi: Mention the new module.
6524
6525 2010-12-21  Bruno Haible  <bruno@clisp.org>
6526
6527         New module 'ceil-ieee'.
6528         * modules/ceil-ieee: New file.
6529         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
6530         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
6531         ISO C 99 with IEC 60559.
6532         * m4/ceil-ieee.m4: New file.
6533         * modules/ceil (Files): Add lib/ceil.c.
6534         (Depends-on): Add 'float'.
6535         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6536         * lib/math.in.h (ceil): New declaration.
6537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
6538         REPLACE_CEIL.
6539         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
6540         * modules/ceil-ieee-tests: New file.
6541         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
6542         * tests/test-math-c++.cc: Check the signature of 'ceil'.
6543         * doc/posix-functions/ceil.texi: Mention the new module.
6544
6545 2010-12-21  Bruno Haible  <bruno@clisp.org>
6546
6547         New module 'floor-ieee'.
6548         * modules/floor-ieee: New file.
6549         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
6550         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
6551         ISO C 99 with IEC 60559.
6552         * m4/floor-ieee.m4: New file.
6553         * modules/floor (Files): Add lib/floor.c.
6554         (Depends-on): Add 'float'.
6555         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6556         * lib/math.in.h (floor): New declaration.
6557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6558         REPLACE_FLOOR.
6559         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6560         * modules/floor-ieee-tests: New file.
6561         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6562         * tests/test-math-c++.cc: Check the signature of 'floor'.
6563         * doc/posix-functions/floor.texi: Mention the new module.
6564
6565 2010-12-21  Bruno Haible  <bruno@clisp.org>
6566
6567         New module 'roundf-ieee'.
6568         * modules/roundf-ieee: New file.
6569         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6570         test whether roundf works according to ISO C 99 with IEC 60559.
6571         * m4/roundf-ieee.m4: New file.
6572         * modules/roundf-ieee-tests: New file.
6573         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6574         * tests/test-roundf1.c (main): Remove signbit tests.
6575         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6576         * doc/posix-functions/roundf.texi: Mention the new module.
6577
6578 2010-12-21  Bruno Haible  <bruno@clisp.org>
6579
6580         New module 'truncf-ieee'.
6581         * modules/truncf-ieee: New file.
6582         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6583         test whether truncf works according to ISO C 99 with IEC 60559.
6584         * m4/truncf-ieee.m4: New file.
6585         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6587         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6588         * modules/truncf-ieee-tests: New file.
6589         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6590         * tests/test-truncf1.c (main): Remove signbit tests.
6591         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6592         * doc/posix-functions/truncf.texi: Mention the new module.
6593
6594 2010-12-21  Bruno Haible  <bruno@clisp.org>
6595
6596         New module 'ceilf-ieee'.
6597         * modules/ceilf-ieee: New file.
6598         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6599         test whether ceilf works according to ISO C 99 with IEC 60559.
6600         * m4/ceilf-ieee.m4: New file.
6601         * modules/ceilf-ieee-tests: New file.
6602         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6603         * tests/test-ceilf1.c (main): Remove signbit tests.
6604         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6605         * doc/posix-functions/ceilf.texi: Mention the new module.
6606
6607 2010-12-21  Bruno Haible  <bruno@clisp.org>
6608
6609         New module 'floorf-ieee'.
6610         * modules/floorf-ieee: New file.
6611         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6612         test whether floorf works according to ISO C 99 with IEC 60559.
6613         * m4/floorf-ieee.m4: New file.
6614         * modules/floorf-ieee-tests: New file.
6615         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6616         * tests/test-floorf1.c (main): Remove signbit tests.
6617         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6618         * doc/posix-functions/floorf.texi: Mention the new module.
6619
6620 2010-12-21  Bruno Haible  <bruno@clisp.org>
6621
6622         Support for minus zero in autoconf macros.
6623         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6624         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6625         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6626         * tests/minus-zero.h: Update comments.
6627
6628 2010-12-21  Bruno Haible  <bruno@clisp.org>
6629
6630         Tests for module 'ceil'.
6631         * modules/ceil-tests: New file.
6632         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6633         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6634
6635 2010-12-21  Bruno Haible  <bruno@clisp.org>
6636
6637         Tests for module 'floor'.
6638         * modules/floor-tests: New file.
6639         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6640         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6641
6642 2010-12-21  Bruno Haible  <bruno@clisp.org>
6643
6644         math: Fix indentation.
6645         * lib/math.in.h (floorf): Fix indentation.
6646
6647 2010-12-21  Bruno Haible  <bruno@clisp.org>
6648
6649         Fix cross-compilation guesses on Solaris.
6650         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6651         not match "solaris2.10".
6652         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6653         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6654         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6655
6656 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6657
6658         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6659         This fixes a problem observed with the latest coreutils snapshot
6660         that caused a test to fail on Solaris 8.  src/csplit.c's call
6661         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6662         earlier, instead of returning the number of bytes that would have
6663         been generated; this causes csplit to incorrectly report memory
6664         exhaustion.
6665         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6666         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6667         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6668         comments to match.
6669         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6670         Fix typo in matching older versions of Solaris: "solaris2.10"
6671         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6672         only for guessing while cross-compiling.
6673         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6674
6675 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6676
6677         ftoastr: fix comment again
6678         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6679         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6680         Also, simplify example a bit by using flags = 0.
6681
6682 2010-12-20  Bruno Haible  <bruno@clisp.org>
6683
6684         round*, trunc*: Update documentation regarding glibc.
6685         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6686         * doc/posix-functions/round.texi: Likewise.
6687         * doc/posix-functions/roundl.texi: Likewise.
6688         * doc/posix-functions/truncf.texi: Likewise.
6689         * doc/posix-functions/trunc.texi: Likewise.
6690         * doc/posix-functions/truncl.texi: Likewise.
6691
6692 2010-12-20  Bruno Haible  <bruno@clisp.org>
6693
6694         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6695         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6696         * doc/posix-functions/round.texi: Likewise.
6697         * doc/posix-functions/roundl.texi: Likewise.
6698
6699 2010-12-20  Bruno Haible  <bruno@clisp.org>
6700
6701         ttyname_r: Add missing declaration on HP-UX 11.
6702         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6703         HAVE_TTYNAME_R.
6704         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6705         declared. Set HAVE_TTYNAME_R always.
6706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6707         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6708         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6709         HAVE_TTYNAME_R.
6710         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6711
6712 2010-12-20  Bruno Haible  <bruno@clisp.org>
6713
6714         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6715         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6716         * doc/posix-functions/getlogin_r.texi: Likewise.
6717         * tests/test-getlogin.c: Include <errno.h>.
6718         (main): Avoid test failure on HP-UX 11.11.
6719         * tests/test-getlogin_r.c (main): Likewise.
6720
6721 2010-12-20  Bruno Haible  <bruno@clisp.org>
6722
6723         getlogin_r: Add missing declaration on HP-UX 11.
6724         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6725         declared also when it exists as a function.
6726         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6727
6728 2010-12-20  Bruno Haible  <bruno@clisp.org>
6729
6730         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6731         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6732         through wcrtomb.
6733
6734 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6735
6736         ftoastr: fix comment
6737         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6738         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6739
6740 2010-12-19  Bruno Haible  <bruno@clisp.org>
6741
6742         isnan: Ensure it is a macro.
6743         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6744         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6745         Solaris.
6746
6747 2010-12-19  Bruno Haible  <bruno@clisp.org>
6748
6749         ldexpl test: Fix link error on OSF/1 5.1.
6750         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6751
6752 2010-12-19  Bruno Haible  <bruno@clisp.org>
6753
6754         wctype: Make it work in C++ mode on OSF/1 5.1.
6755         * lib/wctype.in.h (iswblank): Declare but not define here.
6756         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6757         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6758         * modules/wctype (Files): Add lib/iswblank.c.
6759
6760 2010-12-19  Bruno Haible  <bruno@clisp.org>
6761
6762         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6763         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6764         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6765
6766 2010-12-19  Bruno Haible  <bruno@clisp.org>
6767
6768         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6769         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6770         _POSIX_PII_SOCKET.
6771         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6772         * doc/posix-functions/recvfrom.texi: Likewise.
6773         * doc/posix-functions/send.texi: Likewise.
6774         * doc/posix-functions/sendto.texi: Likewise.
6775
6776 2010-12-19  Bruno Haible  <bruno@clisp.org>
6777
6778         tcgetsid: Add missing declaration on OSF/1 5.1.
6779         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6780         HAVE_TCGETSID.
6781         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6782         Don't set HAVE_TCGETSID.
6783         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6784         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6785         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6786         HAVE_TCGETSID.
6787         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6788
6789 2010-12-19  Bruno Haible  <bruno@clisp.org>
6790
6791         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6792         * lib/stdio.in.h: During the include_next statement, let recursive
6793         includes of this file include only the system header file.
6794
6795 2010-12-19  Bruno Haible  <bruno@clisp.org>
6796
6797         iconv_open: Fix regression from 2010-12-04.
6798         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6799         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6800
6801 2010-12-19  Bruno Haible  <bruno@clisp.org>
6802
6803         stdbool test: Avoid a gcc warning.
6804         * tests/test-stdbool.c (main): Fail if e1 is false.
6805         Reported by Jim Meyering.
6806
6807 2010-12-19  Jim Meyering  <meyering@redhat.com>
6808
6809         setenv: restore to working order
6810         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6811         mistakenly removed.
6812         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6813         HAVE_SETENV.
6814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6815         HAVE_SETENV.
6816
6817 2010-12-19  Bruno Haible  <bruno@clisp.org>
6818
6819         Document some different function declarations on OSF/1 5.1.
6820         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6821         * doc/posix-functions/inet_ntop.texi: Likewise.
6822         * doc/posix-functions/gethostname.texi: Likewise.
6823         * lib/unistd.in.h (gethostname): Update comment.
6824
6825 2010-12-19  Bruno Haible  <bruno@clisp.org>
6826
6827         doc: Mention vasprintf-posix module.
6828         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6829         the 'vasprintf-posix' module.
6830         * doc/glibc-functions/vasprintf.texi: Likewise.
6831
6832 2010-12-19  Bruno Haible  <bruno@clisp.org>
6833
6834         unsetenv: Add missing declaration on OSF/1 5.1.
6835         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6836         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6837         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6839         not HAVE_UNSETENV.
6840         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6841         HAVE_UNSETENV.
6842         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6843
6844 2010-12-19  Bruno Haible  <bruno@clisp.org>
6845
6846         setenv: Add missing declaration on OSF/1 5.1.
6847         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6848         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6849         declared. Don't set HAVE_SETENV.
6850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6851         not HAVE_SETENV.
6852         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6853         HAVE_SETENV.
6854         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6855
6856 2010-12-19  Bruno Haible  <bruno@clisp.org>
6857
6858         nl_langinfo tests: Avoid gcc warning.
6859         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6860
6861 2010-12-19  Bruno Haible  <bruno@clisp.org>
6862
6863         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6864         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6865         _GL_CXXALIAS_SYS.
6866
6867 2010-12-19  Bruno Haible  <bruno@clisp.org>
6868
6869         stdbool: Relax test.
6870         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6871         address to 'bool' work in static initializer, for compilers other than
6872         GCC.
6873
6874 2010-12-19  Bruno Haible  <bruno@clisp.org>
6875
6876         ftello: Add missing declaration on OSF/1 5.1.
6877         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6878         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6880         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6881         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6882
6883 2010-12-19  Bruno Haible  <bruno@clisp.org>
6884
6885         fseeko: Add missing declaration on OSF/1 5.1.
6886         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6887         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6889         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6890         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6891
6892 2010-12-19  Bruno Haible  <bruno@clisp.org>
6893
6894         fchdir: Add missing declaration on OSF/1 5.1.
6895         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6896         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6898         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6899         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6900
6901 2010-12-19  Bruno Haible  <bruno@clisp.org>
6902
6903         relocatable-prog-wrapper: Separate from relocatable-prog.
6904         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6905         uninstall-relocwrapper rule here.
6906         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6907         Reported by Ian Beckwith <ianb@erislabs.net>.
6908
6909 2010-12-19  Bruno Haible  <bruno@clisp.org>
6910
6911         unistr/u8-mbsnlen: Add missing dependency.
6912         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6913         Reported by Ian Beckwith <ianb@erislabs.net>.
6914
6915 2010-12-19  Bruno Haible  <bruno@clisp.org>
6916
6917         iconv: Make it possible again to use this module without 'iconv-h'.
6918         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6919         if it is not defined.
6920         Reported by Ian Beckwith <ianb@erislabs.net>.
6921
6922 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6923
6924         acl: port to Solaris 8 when copying from tmpfs to ufs
6925         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6926         error number.  Problem observed on Solaris 8 with latest
6927         coreutils, with "mv A B", where A is on a tmpfs file system and B
6928         is on a ufs file system.  This caused coreutils' mv/part-symlink
6929         test to fail.
6930
6931         tests: set fail=0 at start
6932         * tests/init.sh (setup_): Move fail=0 initialization here ...
6933         (mktempd_): ... from here, so that tests can rely on fail being
6934         set to 0 initially.  This fixes a problem in coreutils; see:
6935         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6936
6937 2010-12-18  Bruno Haible  <bruno@clisp.org>
6938
6939         memmem-simple: Stylistic changes.
6940         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6941         Fix preprocessor directive indentation.
6942
6943 2010-12-15  Pádraig Brady <P@draigBrady.com>
6944
6945         memmem, memmem-simple: reorganize and expand empty needle check
6946         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6947         functional checks to memmem-simple so that one has a fully functional
6948         memmem by using just this module.
6949         Restrict the performance only check to the memmem module.
6950         Also expand the empty needle check to ensure the correct
6951         pointer is returned, not just a non NULL pointer.
6952         * doc/glibc-functions/memmem.texi: Rearrange the portability
6953         documentation to correlate with the rearranged checks.
6954         Clarify exactly how the memmem and memmem-simple modules
6955         relate to each other.
6956
6957 2010-12-15  Pádraig Brady <P@draigBrady.com>
6958             Bruno Haible  <bruno@clisp.org>
6959
6960         Improve cross-compilation guesses for uClibc.
6961         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6962         that uClibc does not have the glibc bug.
6963         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6964         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6965
6966 2010-12-14  Eric Blake  <eblake@redhat.com>
6967
6968         configmake: provide fallbacks for oldest supported autotools
6969         * m4/configmake.m4: New file.
6970         * modules/configmake (Files): Ship it.
6971         (configure.ac): Use it to guarantee fallbacks.
6972
6973 2010-12-13  Pádraig Brady <P@draigBrady.com>
6974
6975         read-file: Improve handling of large files
6976         * lib/read-file.c (fread_file): Minimize realloc()s
6977         for regular files, and better manage sizes around SIZE_MAX.
6978
6979 2010-12-13  Eric Blake  <eblake@redhat.com>
6980
6981         cloexec, fcntl: relax license
6982         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6983         consent from all contributors.
6984         * modules/fcntl (License): Likewise.
6985
6986 2010-12-10  Bruno Haible  <bruno@clisp.org>
6987
6988         Tests for module 'pipe-posix'.
6989         * modules/pipe-posix-tests: New file.
6990         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6991
6992 2010-12-10  Bruno Haible  <bruno@clisp.org>
6993
6994         pipe-posix: Make it work in C++ mode.
6995         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6996         (pipe): Use common idiom, not a macro definition.
6997         * lib/pipe.c: New file.
6998         * m4/pipe.m4: New file.
6999         * modules/pipe-posix (Description): Enhance.
7000         (Files): Add lib/pipe.c, m4/pipe.m4.
7001         (configure.ac): Invoke gl_FUNC_PIPE.
7002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7003         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7004         * tests/test-unistd-c++.cc: Check the signature of pipe.
7005
7006 2010-12-10  Bruno Haible  <bruno@clisp.org>
7007
7008         Rename module 'pipe' to 'spawn-pipe'.
7009         * modules/spawn-pipe: New file, renamed from modules/pipe.
7010         (Files, configure.ac, Makefile.am): Update.
7011         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7012         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7013         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7014         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7015         "spawn-pipe.h" instead of "pipe.h".
7016         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7017         to gl_SPAWN_PIPE.
7018         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7019         (Files, Makefile.am): Update.
7020         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7021         Update.
7022         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7023         Include "spawn-pipe.h" instead of "pipe.h".
7024         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7025         * lib/javacomp.c: Likewise.
7026         * lib/javaversion.c: Likewise.
7027         * lib/pipe-filter-gi.c: Likewise.
7028         * lib/pipe-filter-ii.c: Likewise.
7029         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7030         * modules/javacomp (Depends-on): Likewise.
7031         * modules/javaversion (Depends-on): Likewise.
7032         * modules/pipe-filter-gi (Depends-on): Likewise.
7033         * modules/pipe-filter-ii (Depends-on): Likewise.
7034         * MODULES.html.sh (Executing programs): Update.
7035         * NEWS: Mention the change.
7036
7037 2010-12-10  Eric Blake  <eblake@redhat.com>
7038
7039         pipe-posix: new module
7040         * modules/pipe-posix: New file.
7041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7042         (gl_UNISTD_H): Check for declaration.
7043         * modules/unistd (Makefile.am): Substitute it.
7044         * lib/unistd.in.h (pipe): Provide it for mingw.
7045         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7046         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7047
7048 2010-12-07  Bruno Haible  <bruno@clisp.org>
7049
7050         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7051         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7052         u8_strcmp_gnu.
7053         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7054
7055 2010-12-06  Bruno Haible  <bruno@clisp.org>
7056
7057         Update internal documentation.
7058         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7059
7060 2010-12-04  Bruno Haible  <bruno@clisp.org>
7061
7062         Put more information about failed tests into the test return codes.
7063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7064         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7065         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7066         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7067         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7068         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7069         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7070         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7071         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7073         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7074         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7075         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7076         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7077         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7078         returns a bit mask.
7079         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7080         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7081         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7082         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7083         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7084         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7085         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7087         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7088         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7089         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7090         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7091         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7093         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7094         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7095         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7096         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7097         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7098         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7099         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7100         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7101         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7102         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7103         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7104         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7105         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7106         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7107         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7108         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7109         gl_PRINTF_PRECISION): Likewise.
7110         * m4/regex.m4 (gl_REGEX): Likewise.
7111         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7112         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7113         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7114         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7115         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7117         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7118         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7119         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7120         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7121         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7122         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7123         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7124         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7125         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7126         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7127         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7128         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7129         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7130         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7131         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7132         enumerated value.
7133         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7134
7135 2010-12-04  Bruno Haible  <bruno@clisp.org>
7136
7137         Update for Solaris 11 2010-11.
7138         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7139         Express, released in November 2010.
7140
7141 2010-12-04  Bruno Haible  <bruno@clisp.org>
7142
7143         nproc: Relax license.
7144         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7145         and Paul Eggert.
7146         Requested by Ludovic Courtès <ludo@gnu.org>.
7147
7148 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7149
7150         utimecmp: fine-grained src to nearby coarse-grained dest
7151
7152         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7153         and the source is on a file system with higher-resolution time
7154         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7155         not work, and the time stamps are close together, the algorithm to
7156         determine the exact resolution from the read-back mtime was buggy:
7157         it had a "!=" where it should have had an "==".  This bug has been
7158         in the code ever since it was introduced to gnulib.
7159         Problem reported by Dan Jacobson in
7160         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7161
7162 2010-11-30  Bruno Haible  <bruno@clisp.org>
7163
7164         strerror_r-posix: Fix autoconf test.
7165         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7166
7167 2010-11-28  Bruno Haible  <bruno@clisp.org>
7168             Paul Eggert  <eggert@cs.ucla.edu>
7169
7170         Tests for module 'getdomainname'.
7171         * modules/getdomainname-tests: New file.
7172         * tests/test-getdomainname.c: New file, based on
7173         tests/test-gethostname.c.
7174
7175 2010-11-28  Bruno Haible  <bruno@clisp.org>
7176             Paul Eggert  <eggert@cs.ucla.edu>
7177
7178         getdomainname: Use the system function when possible.
7179         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7180         (getdomainname): Replace if needed. Provide the declaration if it is
7181         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7182         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7183         (getdomainname): When the system has getdomainname, call the system
7184         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7185         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7186         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7187         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7188         the function if its second argument is of type 'int' or if it is found
7189         in libnsl.
7190         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7191         <sys/systeminfo.h> and sysinfo().
7192         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7194         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7195         HAVE_GETDOMAINNAME.
7196         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7197         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7198         * doc/glibc-functions/getdomainname.texi: Document the problems with
7199         the getdomainname declaration.
7200
7201 2010-11-28  Bruno Haible  <bruno@clisp.org>
7202
7203         sys_socket: Ensure ss_family field on AIX.
7204         * lib/sys_socket.in.h (ss_family): New macro definition.
7205         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7206         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7207         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7208         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7209         * modules/sys_socket (Makefile.am): Substitute
7210         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7211         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7212
7213 2010-11-27  Bruno Haible  <bruno@clisp.org>
7214
7215         readline: Improve configure output.
7216         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7217         "checking for readline..." result understandable.
7218
7219 2010-11-27  Bruno Haible  <bruno@clisp.org>
7220
7221         *printf-posix: Detect a bug on Solaris 10/x86.
7222         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7223         for floating-point output.
7224         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7225         directive.
7226         * tests/test-snprintf-posix.h (test_function): Likewise.
7227         * tests/test-sprintf-posix.h (test_function): Likewise.
7228         * tests/test-vasprintf-posix.c (test_function): Likewise.
7229         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7230         * doc/posix-functions/printf.texi: Likewise.
7231         * doc/posix-functions/snprintf.texi: Likewise.
7232         * doc/posix-functions/sprintf.texi: Likewise.
7233         * doc/posix-functions/vfprintf.texi: Likewise.
7234         * doc/posix-functions/vprintf.texi: Likewise.
7235         * doc/posix-functions/vsnprintf.texi: Likewise.
7236         * doc/posix-functions/vsprintf.texi: Likewise.
7237         * doc/glibc-functions/obstack_printf.texi: Likewise.
7238         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7239
7240 2010-11-27  Bruno Haible  <bruno@clisp.org>
7241
7242         Fix link error when module libunistring-optional is in use.
7243         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7244         * modules/striconveha-tests (Makefile.am): Likewise.
7245
7246 2010-11-27  Bruno Haible  <bruno@clisp.org>
7247
7248         regex: Mention link dependencies.
7249         * modules/regex (Link): New section.
7250         * modules/rpmatch (Link): Likewise.
7251         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7252
7253 2010-11-27  Bruno Haible  <bruno@clisp.org>
7254
7255         ftoastr: Fix compilation error on Solaris.
7256         * lib/ftoastr.c: Include <config.h>.
7257
7258 2010-11-27  Bruno Haible  <bruno@clisp.org>
7259
7260         getloadavg: Update documentation.
7261         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7262
7263 2010-11-27  Bruno Haible  <bruno@clisp.org>
7264
7265         sys_socket: Fix test whether the functions are declared.
7266         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7267         not <sys/select.h>.
7268
7269 2010-11-27  Bruno Haible  <bruno@clisp.org>
7270
7271         getpass: Make sure to get system declaration on some platforms.
7272         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7273         gl_USE_SYSTEM_EXTENSIONS.
7274         * modules/getpass (Depends-on): Add extensions.
7275
7276 2010-11-26  Bruno Haible  <bruno@clisp.org>
7277
7278         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7279         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7280         'iconv' module is present.
7281         (ICONV_CONST): New macro.
7282         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7283         ICONV_CONST.
7284         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7285         set ICONV_CONST.
7286         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7287         here.
7288         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7289         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7290         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7291         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7292         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7293         present.
7294
7295 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7296
7297         ftoastr: comment fix
7298         * lib/ftoastr.c: "little" -> "little or no" in comment
7299
7300 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7301
7302         stdint: port to GCC 4.3 + OSX + Octave
7303         On this platform, stdint.h is buggy and defines int64_t to long
7304         long int.  The replacement defined it to long int, causing
7305         problems with C++ style name mangling.  Instead, trust the system
7306         definition if INT64_MAX is defined, and likewise for the unsigned
7307         variant.   Problem reported by Jarno Rajahalme in
7308         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7309         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7310         and don't mess with int64_t and INT64_MAX in this case.
7311         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7312
7313 2010-11-24  Bruno Haible  <bruno@clisp.org>
7314
7315         doc: Corrections regarding MacOS X 10.4 and 10.5.
7316         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7317         MacOS X.
7318         Reported by Simon Josefsson.
7319
7320 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7321
7322         Uninstall ".bin" files installed by relocwrapper.
7323         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7324         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7325         unless it is already there.
7326
7327 2010-11-21  Bruno Haible  <bruno@clisp.org>
7328
7329         Update for NetBSD 5.0.
7330         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7331         NetBSD; the test fails on NetBSD 5.0.
7332         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7333         about NetBSD.
7334
7335 2010-11-21  Bruno Haible  <bruno@clisp.org>
7336
7337         Update for HP-UX 11.23 and HP-UX 11.31.
7338         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7339         HP-UX.
7340
7341 2010-11-21  Bruno Haible  <bruno@clisp.org>
7342
7343         Update for MacOS X 10.5.
7344         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7345         MacOS X; the test fails on MacOS X 10.5.8.
7346         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7347         about MacOS X.
7348
7349 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
7350
7351         bootstrap: add bootstrap_sync option.
7352         See discussion at
7353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
7354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
7355         * build-aux/bootstrap: Accept --bootstrap-sync to update
7356         bootstrap if it is not identical to the local gnulib's
7357         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
7358         enable this by default.  Accept --no-bootstrap-sync to disable
7359         it.
7360
7361 2010-11-20  Bruno Haible  <bruno@clisp.org>
7362
7363         Ensure that <features.h> is included before __GLIBC__ is tested.
7364         * lib/printf-parse.h: Include <features.h>.
7365         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
7366         Reported by Mike Frysinger <vapier@gentoo.org>.
7367
7368         Ensure that <features.h> is included before __GLIBC__ is tested.
7369         * lib/wchar.in.h: Include <features.h>.
7370         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
7371         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
7372         Reported by Mike Frysinger <vapier@gentoo.org>.
7373
7374         Ensure that <features.h> is included before __GLIBC__ is tested.
7375         * lib/arpa_inet.in.h: Include <features.h>.
7376         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
7377         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
7378         Reported by Mike Frysinger <vapier@gentoo.org>.
7379
7380         Ensure that <features.h> is included before __GLIBC__ is tested.
7381         * build-aux/link-warning.h: Include <features.h>.
7382         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
7383         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
7384         Reported by Mike Frysinger <vapier@gentoo.org>.
7385
7386         Ensure that <features.h> is included before __GLIBC__ is tested.
7387         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
7388         Reported by Mike Frysinger <vapier@gentoo.org>.
7389
7390 2010-11-20  Bruno Haible  <bruno@clisp.org>
7391
7392         memmem: Fix autoconf test.
7393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
7394
7395 2010-11-20  Bruno Haible  <bruno@clisp.org>
7396
7397         Port to uClibc.
7398         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
7399         * lib/fcntl.in.h: Likewise.
7400         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
7401         * lib/mbrtowc.c (mbrtowc): Likewise.
7402         * lib/relocatable.c (find_shared_library_fullname): Likewise.
7403         * lib/strerror_r.c: Likewise.
7404         * lib/unistr/u8-strnlen.c: Likewise.
7405         * lib/vasnprintf.c (decimal_point_char): Likewise.
7406         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7407         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7408         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7409         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7410         * tests/test-sigaction.c (handler, main): Likewise.
7411         * lib/freading.h: Treat uClibc like a non-glibc platform.
7412         * lib/freading.c: Likewise.
7413         * lib/gettext.h: Likewise.
7414         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
7415         Likewise.
7416         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
7417         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7418         * lib/propername.c (proper_name_utf8): Likewise.
7419         * lib/spawn.in.h: Likewise.
7420         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
7421         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
7422         mem_cd_iconveh_internal): Likewise.
7423         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
7424         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7425         strstr, strcasestr): Likewise.
7426         * lib/unicodeio.c (unicode_to_mb): Likewise.
7427         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
7428         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
7429         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
7430         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
7431         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
7432         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
7433         * lib/unistr/u8-stpncpy.c: Likewise.
7434         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7435         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
7436         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7437         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7438         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7439         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
7440         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
7441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
7442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7443         Likewise.
7444         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7445         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7446         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7448         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7449         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7450         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7451         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7452         * tests/test-getopt.h (OPTIND_MIN): Likewise.
7453         * tests/test-striconveha.c (main): Likewise.
7454         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7455         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
7456         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
7457         * doc/posix-functions/getline.texi: Likewise.
7458         Reported by Mike Frysinger <vapier@gentoo.org>.
7459
7460 2010-11-20  Bruno Haible  <bruno@clisp.org>
7461
7462         nproc: Fix condition.
7463         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
7464         HAVE_PTHREAD_AFFINITY_NP.
7465
7466 2010-11-20  Bruno Haible  <bruno@clisp.org>
7467
7468         Fix a comment.
7469         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
7470
7471 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7472
7473         ftoastr: don't assume snprintf
7474         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
7475         Implement a subset of snprintf here, by using sprintf safely.
7476         * modules/ftoastr (Depends-on): Remove snprintf.
7477
7478 2010-11-19  Jim Meyering  <meyering@redhat.com>
7479
7480         test-rename.h: fix compilation failure
7481         * tests/test-rename.h (test_rename): Add omitted "}".
7482
7483 2010-11-17  Jim Meyering  <meyering@redhat.com>
7484
7485         maint.mk: add a URL discussing the no-@acronym policy
7486         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
7487
7488 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7489
7490         ftoastr: depend on snprintf, improve comments
7491         * lib/ftoastr.c: Also mention Loitsch's draft.
7492         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
7493         needed in the current implementation, but it might simplify
7494         speeding up the code later.
7495         * modules/ftoastr: Depend on snprintf; this improves portability.
7496         Suggested by Bruno Haible in the same email.
7497
7498         ftoastr: port to hosts lacking strtof and strtold
7499         Problem reported by Bruno Haible in
7500         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
7501         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
7502         environment and strtold (and presumably strtof) are not available.
7503         * modules/ftoastr (Files): Add m4/c-strtod.m4.
7504         (configure.ac): Require gl_C99_STRTOLD.
7505
7506 2010-11-18  Bruno Haible  <bruno@clisp.org>
7507
7508         c-strtold: Avoid link error on AIX 7.
7509         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
7510         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
7511         (gl_C_STRTOLD): Test whether strtold_l exists.
7512         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7513
7514 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7515
7516         intprops: new macro INT_BITS_STRLEN_BOUND
7517         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
7518         ftoastr.h.  This exposes an internal of intprops.h that was formerly
7519         not exposed.  Also, it uses a slightly tighter bound than before;
7520         though this makes no practical difference, we might as well be as
7521         tight as we easily can.
7522
7523         ftoastr: new module, for lossless conversion of floats to short strings
7524         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
7525         * modules/ftoastr: New files.
7526
7527 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7528
7529         bootstrap: port to Solaris sed
7530         * build-aux/bootstrap (get_version): Port to Solaris sed.
7531         See Ralf Wildenhues's note in
7532         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
7533
7534 2010-11-14  Jim Meyering  <meyering@redhat.com>
7535
7536         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
7537         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
7538         and move definition closer to sole use.
7539
7540 2010-11-13  Jim Meyering  <meyering@redhat.com>
7541
7542         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
7543         Now we require at least autoconf-2.59, which means the work-around
7544         is no longer needed.
7545         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
7546         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7547         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7548         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
7549         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7550
7551 2010-11-13  Bruno Haible  <bruno@clisp.org>
7552
7553         rename, renameat: Avoid test failures at NFS mounted locations.
7554         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7555         functions.
7556         (test_rename): Use assert_nonexistent.
7557         * tests/test-rename.c: Include <dirent.h>.
7558         * tests/test-renameat.c: Likewise.
7559         Reported by Gary V. Vaughan <gary@gnu.org>.
7560
7561         rename, renameat: Document Linux bug with NFS
7562         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7563         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7564         * doc/posix-functions/renameat.texi: Likewise.
7565         Suggested by Eric Blake.
7566
7567 2010-11-13  Bruno Haible  <bruno@clisp.org>
7568
7569         rename test: Add comments.
7570         * tests/test-rename.h (test_rename): Add structure and comments.
7571
7572 2010-11-13  Eric Blake  <eblake@redhat.com>
7573
7574         maintainer-makefile: cover a few more files
7575         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7576         scripts generated within C files, for libvirt.
7577
7578 2010-11-13  Bruno Haible  <bruno@clisp.org>
7579
7580         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7581         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7582         character, return the number of bytes that belong together, not always
7583         1.
7584         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7585         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7586         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7587         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7588         number of bytes of an invalid character.
7589         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7590         (main): Invoke it.
7591         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7592         results.
7593         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7594         malformed byte sequences.
7595         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7596         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7597         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7598         Reported by Ben Pfaff and Paolo Bonzini.
7599
7600 2010-11-13  Bruno Haible  <bruno@clisp.org>
7601
7602         openat: Work around glibc bug with fchownat() and empty file names.
7603         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7604         (gl_FUNC_FCHOWNAT): Invoke it.
7605         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7606         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7607         Reported by Gary V. Vaughan <gary@gnu.org>.
7608
7609 2010-11-13  Bruno Haible  <bruno@clisp.org>
7610
7611         openat: Ensure autoconf macro ordering.
7612         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7613         gl_USE_SYSTEM_EXTENSIONS.
7614         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7615
7616 2010-11-13  Bruno Haible  <bruno@clisp.org>
7617
7618         Update comments.
7619         * lib/unistr/u8-check.c: Update file name in comments.
7620         * lib/unistr/u8-mblen.c: Likewise.
7621         * lib/unistr/u8-prev.c: Likewise.
7622         * lib/unistr/u8-strmblen.c: Likewise.
7623         * lib/unistr/u8-strmbtouc.c: Likewise.
7624
7625 2010-11-13  Jim Meyering  <meyering@redhat.com>
7626
7627         tests: avoid test failure on Solaris 10 due to lack of PATH export
7628         * tests/test-update-copyright.sh: Don't forget to export PATH.
7629
7630         init.sh: ensure that IFS is defined, just in case...
7631         * tests/init.sh (setup_): Ensure that IFS is defined,
7632         so that saving and restoring it works as expected.  This
7633         appears to be useful at least for an old version of dash
7634         from a long time ago (RH 6).  See here for details:
7635         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7636
7637         maint.mk: tighten "test a == b" check
7638         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7639         test to files that contain something like #!/bin/sh.
7640         Without this, coreutils would get two false positives in
7641         the comments of C source files.
7642
7643 2010-11-12  Eric Blake  <eblake@redhat.com>
7644
7645         bootstrap: fix typo in previous attempt
7646         * build-aux/bootstrap (buildreq): Correct the grouping.
7647         Reported by Paul Eggert.
7648
7649         maintainer-makefile: prohibit test x == x
7650         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7651         Based on a report by Matthias Bolte.
7652
7653         bootstrap: allow FreeBSD gzip
7654         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7655         which has no '.' and goes to stderr.
7656         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7657         Reported by Matthias Bolte.
7658
7659         maintainer-makefile: check for i18n setup
7660         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7661         will likely work.
7662
7663 2010-11-12  Bruno Haible  <bruno@clisp.org>
7664
7665         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7666         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7667         * lib/nanosleep.c (nanosleep): Likewise.
7668
7669 2010-11-11  Bruno Haible  <bruno@clisp.org>
7670
7671         fcntl-h: Fix for use of C++ on glibc systems.
7672         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7673         also on glibc systems in C++ mode.
7674         Reported by Gary V. Vaughan <gary@gnu.org>.
7675
7676 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7677
7678         mknod: avoid false failure with dash
7679         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7680
7681 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7682
7683         unlink: Fix "is it should" typo in diagnostic.
7684         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7685         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7686
7687 2010-11-11  Bruno Haible  <bruno@clisp.org>
7688
7689         Tests for module 'strerror_r-posix'.
7690         * modules/strerror_r-posix-tests: New file.
7691         * tests/test-strerror_r.c: New file.
7692         * tests/test-string-c++.cc: Check the signature of strerror_r.
7693
7694         New module 'strerror_r-posix'.
7695         * lib/string.in.h (strerror_r): New declaration.
7696         * lib/strerror_r.c: New file.
7697         * m4/strerror_r.m4: New file.
7698         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7699         of strerror_r.
7700         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7701         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7702         * modules/strerror_r-posix: New file.
7703         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7704         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7705         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7706         portability problems.
7707
7708 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7709
7710         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7711         line is also considered for output. Quoted function name in shell
7712         command, so temporary files for functions like MyClass::operator()
7713         are removed correctly without errors.
7714
7715 2010-11-09  Bruno Haible  <bruno@clisp.org>
7716
7717         * doc/posix-functions/strerror.texi: List more failing platforms.
7718
7719         * doc/posix-functions/strerror.texi: Add a comment.
7720
7721 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7722
7723         fdopendir: fix bug on MacOS X when low on file descriptors
7724
7725         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7726         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7727         All callers changed.
7728         (fdopendir): Invoke save_cwd at the top level, not after using
7729         multiple dup() calls to use up file descriptors.  Then retry
7730         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7731         less than the maximum number of open file descriptors, because
7732         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7733         on Mac OS X 10.6.4 for tar 1.24
7734         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7735         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7736         and for tar 1.25
7737         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7738
7739 2010-11-07  Bruno Haible  <bruno@clisp.org>
7740
7741         vasnprintf: Support I flag on glibc systems.
7742         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7743         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7744         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7745         snprintf function.
7746         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7747         glibc systems.
7748         * tests/test-vasnprintf-posix3.c: New file.
7749         * modules/vasnprintf-posix-tests (Files): Add it.
7750         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7751
7752 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7753
7754         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7755         * MODULES.html.sh: For compiler warnings, use name
7756         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7757
7758 2010-11-05  Eric Blake  <eblake@redhat.com>
7759
7760         ceil, floor: avoid spurious failure with icc
7761         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7762         [denormals-as-zero] when optimizing without -mieee-fp option.
7763         * tests/test-floorf2.c (floorf_reference): Likewise.
7764         * tests/test-ceilf1.c (dummy): New function.
7765         (main): Use it to outsmart icc's optimization.
7766         * tests/test-floorf1.c (dummy, main): Likewise.
7767
7768         tests: require working signbit
7769         * modules/ceilf-tests (Depends-on): Add signbit.
7770         * modules/ceill-tests (Depends-on): Likewise.
7771         * modules/floorf-tests (Depends-on): Likewise.
7772         * modules/floorl-tests (Depends-on): Likewise.
7773         * modules/round-tests (Depends-on): Likewise.
7774         * modules/roundf-tests (Depends-on): Likewise.
7775         * modules/roundl-tests (Depends-on): Likewise.
7776         * modules/trunc-tests (Depends-on): Likewise.
7777         * modules/truncf-tests (Depends-on): Likewise.
7778         * modules/truncl-tests (Depends-on): Likewise.
7779
7780         strtod: work around icc bug
7781         * lib/strtod.c (minus_zero): Define to working value.
7782         (strtod): Use it to avoid icc bug.
7783
7784         copysign: enhance tests
7785         * modules/copysign-tests (Files): Add minus-zero.h.
7786         * tests/test-copysign.c (main): Also test zeros.
7787
7788 2010-11-04  Eric Blake  <eblake@redhat.com>
7789
7790         ceil, floor, round, trunc: enhance tests of -0
7791         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7792         * tests/test-ceill.c (main): Likewise.
7793         * tests/test-floorf1.c (main): Likewise.
7794         * tests/test-floorl.c (main): Likewise.
7795         * tests/test-round1.c (main): Likewise.
7796         * tests/test-roundf1.c (main): Likewise.
7797         * tests/test-roundl.c (main): Likewise.
7798         * tests/test-trunc1.c (main): Likewise.
7799         * tests/test-truncf1.c (main): Likewise.
7800         * tests/test-truncl.c (main): Likewise.
7801
7802 2010-11-04  Eric Blake  <eblake@redhat.com>
7803
7804         frexp, tests: work around ICC bug with -zero
7805         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7806         works with more compilers.
7807         * tests/minus-zero.h: New file.
7808         * modules/ceilf-tests (Files): Include it.
7809         * modules/ceill-tests (Files): Likewise.
7810         * modules/floorf-tests (Files): Likewise.
7811         * modules/floorl-tests (Files): Likewise.
7812         * modules/frexp-nolibm-tests (Files): Likewise.
7813         * modules/frexp-tests (Files): Likewise.
7814         * modules/frexpl-nolibm-tests (Files): Likewise.
7815         * modules/frexpl-tests (Files): Likewise.
7816         * modules/isnan-tests (Files): Likewise.
7817         * modules/isnand-nolibm-tests (Files): Likewise.
7818         * modules/isnand-tests (Files): Likewise.
7819         * modules/isnanf-nolibm-tests (Files): Likewise.
7820         * modules/isnanf-tests (Files): Likewise.
7821         * modules/isnanl-nolibm-tests (Files): Likewise.
7822         * modules/isnanl-tests (Files): Likewise.
7823         * modules/round-tests (Files): Likewise.
7824         * modules/roundf-tests (Files): Likewise.
7825         * modules/roundl-tests (Files): Likewise.
7826         * modules/ldexpl-tests (Files): Likewise.
7827         * modules/signbit-tests (Files): Likewise.
7828         * modules/snprintf-posix-tests (Files): Likewise.
7829         * modules/sprintf-posix-tests (Files): Likewise.
7830         * modules/strtod-tests (Files): Likewise.
7831         * modules/trunc-tests (Files): Likewise.
7832         * modules/truncf-tests (Files): Likewise.
7833         * modules/truncl-tests (Files): Likewise.
7834         * modules/vsnprintf-posix-tests (Files): Likewise.
7835         * modules/vsprintf-posix-tests (Files): Likewise.
7836         * modules/vasnprintf-posix-tests (Files): Likewise.
7837         * modules/vasprintf-posix-tests (Files): Likewise.
7838         * tests/test-ceilf1.c (main): Use it.
7839         * tests/test-ceill.c (main): Likewise.
7840         * tests/test-floorf1.c (main): Likewise.
7841         * tests/test-floorl.c (main): Likewise.
7842         * tests/test-frexp.c (main): Likewise.
7843         * tests/test-frexpl.c (main): Likewise.
7844         * tests/test-isnan.c (main): Likewise.
7845         * tests/test-isnand.h (main): Likewise.
7846         * tests/test-isnanf.h (main): Likewise.
7847         * tests/test-isnanl.h (main): Likewise.
7848         * tests/test-ldexpl.c (main): Likewise.
7849         * tests/test-round.c (main): Likewise.
7850         * tests/test-roundf.c (main): Likewise.
7851         * tests/test-roundl.c (main): Likewise.
7852         * tests/test-signbit.c (test_signbitf, test_signbitd)
7853         (test_signbitl): Likewise.
7854         * tests/test-snprintf-posix.h (test_function): Likewise.
7855         * tests/test-sprintf-posix.h (test_function): Likewise.
7856         * tests/test-strtod.c (main): Likewise.
7857         * tests/test-trunc1.c (main): Likewise.
7858         * tests/test-truncf1.c (main): Likewise.
7859         * tests/test-truncl.c (main): Likewise.
7860
7861         isnanl: work around icc bug
7862         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7863
7864 2010-11-03  Eric Blake  <eblake@redhat.com>
7865
7866         tests: fix compiler warnings
7867         * tests/test-getopt.h (test_getopt): Fix condition.
7868         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7869         * tests/test-pipe2.c (main): Likewise.
7870         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7871
7872         utimens: fix broken m4 test
7873         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7874
7875 2010-10-28  Bruno Haible  <bruno@clisp.org>
7876
7877         posix_spawn*, getdtablesize: Relax license.
7878         * modules/posix_spawn (License): Change to LGPLv2+.
7879         * modules/posix_spawnp (License): Likewise.
7880         * modules/posix_spawn-internal (License): Likewise.
7881         * modules/posix_spawnattr_init (License): Likewise.
7882         * modules/posix_spawnattr_getflags (License): Likewise.
7883         * modules/posix_spawnattr_setflags (License): Likewise.
7884         * modules/posix_spawnattr_getpgroup (License): Likewise.
7885         * modules/posix_spawnattr_setpgroup (License): Likewise.
7886         * modules/posix_spawnattr_getschedparam (License): Likewise.
7887         * modules/posix_spawnattr_setschedparam (License): Likewise.
7888         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7889         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7890         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7891         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7892         * modules/posix_spawnattr_getsigmask (License): Likewise.
7893         * modules/posix_spawnattr_setsigmask (License): Likewise.
7894         * modules/posix_spawnattr_destroy (License): Likewise.
7895         * modules/posix_spawn_file_actions_init (License): Likewise.
7896         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7897         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7898         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7899         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7900         * modules/getdtablesize (License): Likewise.
7901         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7902
7903 2010-10-26  Bruno Haible  <bruno@clisp.org>
7904
7905         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7906         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7907         Cygwin and mingw.
7908         Suggested by Eric Blake.
7909
7910 2010-10-26  Bruno Haible  <bruno@clisp.org>
7911
7912         stdio: Work around compilation error due to renameat() on Solaris 10.
7913         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7914         * lib/renameat.c: Don't include <unistd.h> here.
7915         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7916         Reported by Paul Eggert and Eric Blake.
7917
7918 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7919
7920         renameat: port to Solaris 10, which declares renameat in unistd.h
7921
7922         * lib/renameat.c: Include unistd.h before stdio.h, because
7923         Solaris 10 declares renameat in unistd.h.  Problem encountered
7924         when building GNU tar 1.24 on Solaris 10.
7925
7926 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7927
7928         fdopendir: fix C89 compilation
7929         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7930         compilers.
7931
7932 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7933
7934         inttostr: simplify by removing unnecessary redundancy
7935         * lib/anytostr.c: Don't include verify.h.
7936         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7937         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7938         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7939         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7940         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7941         Likewise.
7942         * modules/inttostr (Depends-on): Remove 'verify'.
7943
7944 2010-10-23  Bruno Haible  <bruno@clisp.org>
7945
7946         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7947         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7948         Reported by Eric Blake.
7949
7950 2010-10-23  Bruno Haible  <bruno@clisp.org>
7951
7952         Tests: Fix LOCALE_JA on MirBSD 10.
7953         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7954         to an UTF-8 locale.
7955         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7956         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7957         Reported by Eric Blake.
7958
7959 2010-10-21  Bruno Haible  <bruno@clisp.org>
7960
7961         nl_langinfo test: Avoid test failure on NetBSD 5.
7962         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7963         Reported by Eric Blake.
7964
7965 2010-10-21  Eric Blake  <eblake@redhat.com>
7966
7967         c-stack: work around libsigsegv 2.8 bug
7968         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7969         overflow on at least PowerPC64.
7970
7971 2010-10-17  Bruno Haible  <bruno@clisp.org>
7972
7973         userspec: Drop redundant file.
7974         * modules/userspec (Files): Remove lib/inttostr.h.
7975
7976 2010-10-17  Bruno Haible  <bruno@clisp.org>
7977
7978         nl_langinfo tests: Silence some warnings.
7979         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7980         Reported by Jim Meyering.
7981
7982 2010-10-17  Bruno Haible  <bruno@clisp.org>
7983
7984         Make use of GCC's attribute __alloc_size__.
7985         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7986         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7987         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7988         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7989         __alloc_size__.
7990         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7991         Suggested by Jim Meyering.
7992
7993 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7994
7995         bootstrap: anchor .gitignore entries.
7996         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7997         with...
7998         (insert_vc_ignore): ... this new function, which prepends `/' to
7999         all .gitignore entries before passing them to
8000         insert_sorted_if_absent.
8001
8002 2010-10-16  Bruno Haible  <bruno@clisp.org>
8003
8004         nextafter: Fix configure check.
8005         * modules/nextafter (configure.ac): Correct expected prototype.
8006
8007 2010-10-16  Bruno Haible  <bruno@clisp.org>
8008
8009         termios: Update documentation.
8010         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8011
8012 2010-10-16  Bruno Haible  <bruno@clisp.org>
8013
8014         tests: Make them compile with TinyCC.
8015         * tests/test-strstr.c (main): Remove parentheses around array
8016         initializer.
8017
8018 2010-10-15  Eric Blake  <eblake@redhat.com>
8019
8020         ignore-value: make header idempotent
8021         * lib/ignore-value.h: Add double-inclusion guards.
8022         Reported by Stefan Berger.
8023
8024 2010-10-15  Jim Meyering  <meyering@redhat.com>
8025
8026         GNUmakefile: handle "stable" target, not "major"
8027         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8028         lists in maint.mk and announce-gen.  Without this, "make stable"
8029         would fail to ensure that $(VERSION) is up to date.
8030
8031 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8032
8033         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8034         & co.
8035
8036 2010-10-14  Bruno Haible  <bruno@clisp.org>
8037
8038         vasnprintf: Don't set errno to 0.
8039         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8040         block that sets it to 0.
8041         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8042
8043 2010-10-14  Bruno Haible  <bruno@clisp.org>
8044
8045         socketlib: Fix.
8046         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8047         gl_PREREQ_SYS_H_WINSOCK2.
8048         Reported by Ian Beckwith <ianb@erislabs.net>.
8049
8050 2010-10-13  Jim Meyering  <meyering@redhat.com>
8051
8052         test-select-stdin.c: avoid warn_unused_result warnings
8053         * tests/test-select-stdin.c: Include "macros.h".
8054         ASSERT that read and fflush succeed.
8055
8056 2010-10-13  Jim Meyering  <meyering@redhat.com>
8057
8058         git-version-gen: do require git-VC'd files in cwd
8059         * build-aux/git-version-gen: Reject a git version string
8060         if there are no commits associated with the current directory.
8061         This avoids an unlikely false-positive (unrelated dir whose parent
8062         repository also contains a tag matching v*), as pointed out
8063         by Giuseppe Scrivano in
8064         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8065
8066 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8067
8068         argv-iter: omit nonconforming declaration
8069         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8070         enum arg_iter_err declaration, which doesn't conform to C99.
8071         Solaris 10 cc warns about this.
8072
8073 2010-10-13  Eric Blake  <eblake@redhat.com>
8074
8075         termios: fix compilation on mingw
8076         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8077         (gl_TERMIOS_H): Adjust it on mingw.
8078         * modules/termios (Makefile.am): Substitute new key.
8079         * lib/termios.in.h (includes): Make include_next conditional.
8080         * doc/posix-headers/termios.texi (termios.h): Update
8081         documentation.
8082         Reported by Daniel P. Berrange.
8083
8084 2010-10-13  Jim Meyering  <meyering@redhat.com>
8085
8086         git-version-gen: don't require that .git/ be in the current dir
8087         * build-aux/git-version-gen: Adjust this script so that it works
8088         when run from any working directory beneath the top-level .git/-
8089         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8091
8092         test-select: avoid warn_unused_result warnings
8093         * tests/test-select.c: Include "macros.h".
8094         ASSERT that each call to read, write, and pipe succeeds.
8095         While not technically required, also check each "close".
8096         * modules/select-tests (Files): Add tests/macros.h.
8097
8098         test-symlinkat: remove declaration of unused local
8099         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8100
8101         test-inttostr: avoid shadowing warnings
8102         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8103         and use malloc rather than the stack for the same reason as
8104         mentioned in the comment justifying the other allocation.
8105
8106 2010-10-11  Bruno Haible  <bruno@clisp.org>
8107
8108         stdlib: Allow multiple gnulib generated replacements to coexist.
8109         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8110         Reported by Sam Steingold <sds@gnu.org>.
8111
8112 2010-10-11  Jim Meyering  <meyering@redhat.com>
8113
8114         fix a documentation typo
8115         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8116
8117 2010-10-11  Eric Blake  <eblake@redhat.com>
8118
8119         futimens: work around Solaris 11 bug
8120         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8121         * tests/test-futimens.h (test_futimens): Enhance, rather than
8122         weaken test.
8123         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8124
8125 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8126
8127         Indentation.
8128         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8129         higher-level operators more to the left.
8130
8131 2010-10-11  Jim Meyering  <meyering@redhat.com>
8132
8133         test-futimens: avoid unwarranted test failure on Solaris 5.11
8134         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8135         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8136         because it tries to dereference the NULL name argument.
8137
8138 2010-10-11  Bruno Haible  <bruno@clisp.org>
8139
8140         Indentation.
8141         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8142         indentation.
8143
8144 2010-10-11  Jim Meyering  <meyering@redhat.com>
8145
8146         spawn.in.h: make indentation consistent with parentheses
8147         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8148         Make indentation consistent with parentheses.
8149
8150 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8151
8152         Fix mismatched parens in previous commit
8153         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8154         parens.
8155
8156 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8157
8158         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8159
8160         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8161         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8162         * lib/malloca.c: Include "verify.h".
8163         (verify1): Remove, replacing with a verify call.
8164         * lib/relocwrapper.c (verify1): Likewise.
8165         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8166         Likewise.
8167         * modules/malloca (Depends-on): Add 'verify'.
8168         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8169         * modules/vasnprintf (Depends-on): Add 'verify'.
8170         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8171         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8172         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8173         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8174         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8175         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8176         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8177
8178         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8179
8180         Formerly the style was sometimes 2*X - 1, because the C standard
8181         was wrongly thought to disallow ?: in integral constant expressions.
8182         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8183         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8184         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8185         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8186         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8187         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8188         verify that time_t cannot be floating.
8189
8190 2010-10-08  Eric Blake  <eblake@redhat.com>
8191
8192         time: enforce recent POSIX ruling that time_t is integral
8193         * lib/time.in.h (__time_t_must_be_integral): Detect any
8194         problematic systems, allowing the rest of gnulib to assume POSIX.
8195
8196 2010-10-08  Jim Meyering  <meyering@redhat.com>
8197
8198         fdopendir: fix a bug on systems lacking openat and /proc support
8199         OpenBSD 4.7 is one such system.  The most noticeable effect was
8200         failure of any application making nontrivial use of fts: rm, du,
8201         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8202           ./rm: traversal failed: `a': Bad file descriptor
8203         Debugging that, you see that even though FD 6 was closed just
8204         prior to the opendir call in fd_clone_opendir, its resulting
8205         dir->dd_fd was 8, rather than the expected value of 6:
8206
8207         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8208         93                close (fd);
8209         (gdb) n
8210         94                dir = fd_clone_opendir (dupfd);
8211         (gdb) n
8212         95                saved_errno = errno;
8213         (gdb) p dir->dd_fd
8214         $11 = 8
8215
8216         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8217         The problem is that on OpenBSD, fd_clone_opendir has to resort
8218         to using the old-style save/restore CWD mechanism, due to its
8219         lack of openat/proc support, and *that* would steal the FD (6)
8220         that opendir was supposed to use.
8221
8222         The fix is to squirrel away the desired FD so that save_cwd uses a
8223         different one, and then free the dest FD right before calling opendir.
8224         That guarantees opendir will use the required file descriptor.
8225
8226         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8227
8228 2010-10-08  Bruno Haible  <bruno@clisp.org>
8229
8230         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8231         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8232
8233 2010-10-08  Bruno Haible  <bruno@clisp.org>
8234
8235         nanosleep: Make replacement POSIX compliant.
8236         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8237         is out of range.
8238         Reported by Jim Meyering.
8239
8240 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8241
8242         bootstrap: add hook for altering gnulib.mk, for Bison
8243         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8244         the Bison bootstrapping process can rewrite file names and variables
8245         in this file before later parts of 'bootstrap' use the file.
8246         Bison wants to include lib/gnulib.mk from the top-level makefile,
8247         so it needs the file names in this file to be relative to the top
8248         level, not relative to lib; plus it needs variable names to be
8249         rewritten.
8250         (slurp): Use the new function.
8251
8252         bootstrap: reformat for readability
8253         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8254
8255 2010-10-08  Eric Blake  <eblake@redhat.com>
8256
8257         docs: update cygwin progress
8258         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8259         1.7.7.
8260         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8261         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8262         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8263         * doc/posix-functions/carg.texi (carg): Likewise.
8264         * doc/posix-functions/cargf.texi (cargf): Likewise.
8265         * doc/posix-functions/casin.texi (casin): Likewise.
8266         * doc/posix-functions/casinf.texi (casinf): Likewise.
8267         * doc/posix-functions/casinh.texi (casinh): Likewise.
8268         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8269         * doc/posix-functions/catan.texi (catan): Likewise.
8270         * doc/posix-functions/catanf.texi (catanf): Likewise.
8271         * doc/posix-functions/catanh.texi (catanh): Likewise.
8272         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8273         * doc/posix-functions/ccos.texi (ccos): Likewise.
8274         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8275         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8276         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8277         * doc/posix-functions/cexp.texi (cexp): Likewise.
8278         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8279         * doc/posix-functions/cimag.texi (cimag): Likewise.
8280         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8281         * doc/posix-functions/clog.texi (clog): Likewise.
8282         * doc/posix-functions/clogf.texi (clogf): Likewise.
8283         * doc/posix-functions/conj.texi (conj): Likewise.
8284         * doc/posix-functions/conjf.texi (conjf): Likewise.
8285         * doc/posix-functions/cpow.texi (cpow): Likewise.
8286         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8287         * doc/posix-functions/cproj.texi (cproj): Likewise.
8288         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8289         * doc/posix-functions/creal.texi (creal): Likewise.
8290         * doc/posix-functions/crealf.texi (crealf): Likewise.
8291         * doc/posix-functions/csin.texi (csin): Likewise.
8292         * doc/posix-functions/csinf.texi (csinf): Likewise.
8293         * doc/posix-functions/csinh.texi (csinh): Likewise.
8294         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8295         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8296         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8297         * doc/posix-functions/ctan.texi (ctan): Likewise.
8298         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8299         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8300         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8301         * doc/posix-headers/complex.texi (complex.h): Likewise.
8302
8303 2010-10-07  Jim Meyering  <meyering@redhat.com>
8304
8305         parse-datetime: avoid compilation failure on OpenBSD 4.7
8306         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8307         This works around a compilation failure on OpenBSD 4.7:
8308         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8309
8310 2010-10-07  Eric Blake  <eblake@redhat.com>
8311
8312         docs: update cygwin progress
8313         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8314         1.7.6.
8315         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8316         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8317         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8318         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8319         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8320         Likewise.
8321         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8322         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8323         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8324         Likewise.
8325         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8326         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8327         Likewise.
8328         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8329         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8330         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8331         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8332         Likewise.
8333         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8334         Likewise.
8335         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8336
8337         docs: update parse-datetime history
8338         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8339         documentation of this function's history and alternatives.
8340
8341         cygwin: use more robust version check
8342         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
8343         exclude an eventual cygwin 1.9.1.
8344         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8346         (gl_FUNC_STRCASESTR): Likewise.
8347         Reported by Bruno Haible.
8348
8349 2010-10-06  Bruno Haible  <bruno@clisp.org>
8350
8351         string, sys_select: Avoid #including large headers unless necessary.
8352         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
8353         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
8354         OSF/1, BeOS, Haiku.
8355         Reported by Jim Meyering.
8356
8357 2010-10-05  Eric Blake  <eblake@redhat.com>
8358
8359         memmem, strstr, strcasestr: fix bug with long periodic needle
8360         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
8361         periodic needle having false positive.
8362         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
8363         and cygwin 1.7.7.
8364         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
8365         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8366         (gl_FUNC_STRCASESTR): Likewise.
8367         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8368         * tests/test-memmem.c (main): Expose the bug.
8369         * tests/test-strcasestr.c (main): Likewise.
8370         * tests/test-strstr.c (main): Likewise.
8371         * tests/test-c-strcasestr.c (main): Likewise.
8372         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
8373         * doc/posix-functions/strstr.texi (strstr): Likewise.
8374         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8375         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
8376
8377 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8378
8379         parse-datetime: do some more renaming
8380         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
8381         parse_datetime, not get_date.  Mention the renaming.
8382         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
8383         in comments.
8384         * m4/bison.m4: Likewise.
8385
8386 2010-10-05  Eric Blake  <eblake@redhat.com>
8387
8388         parse-datetime: better name than get_date
8389         * NEWS: Reword the deprecation notice.
8390         * modules/get_date: Rename to modules/parse-datetime.
8391         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
8392         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
8393         * lib/get_date.y: Rename to lib/parse-datetime.y.
8394         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
8395         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
8396         * doc/getdate.texi: Provide fallback wrapper.
8397         * lib/getdate.h: Move guts, and wrap...
8398         * lib/parse-datetime.h: ...new file.
8399         * lib/parse-datetime.y (get_date): Rename...
8400         (parse_datetime): ...to this.
8401         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
8402         (gl_PARSE_DATETIME): ...to this.
8403         * doc/posix-functions/getdate.texi (get_date): Provide fallback
8404         documentation.
8405         * modules/getdate (Files): Provide fallback docs and header.
8406         (Notice, Depends-on): Update references.
8407         * tests/test-parse-datetime.c: Likewise.
8408         * DEPENDENCIES: Likewise.
8409         * MODULES.html.sh (Date and time <time.h>): Likewise.
8410         * doc/parse-datetime.texi (Date input formats)
8411         (Authors of parse_datetime): Likewise.
8412         * modules/parse-datetime (Files, configure.ac, Makefile.am)
8413         (Include): Likewise.
8414         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
8415         * gnulib-tool: Likewise.
8416         * m4/bison.m4 (gl_BISON): Likewise.
8417         Suggested by Bruno Haible.
8418
8419 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8420
8421         more ports to Solaris tr, which needs [] around ranges
8422         * gnulib-tool: Solaris tr needs [] around ranges.
8423         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8424         * tests/test-pipe-filter-gi1.c (main): Likewise.
8425         * tests/test-pipe-filter-ii1.c (main): Likewise.
8426
8427 2010-10-05  Eric Blake  <eblake@redhat.com>
8428
8429         bootstrap: fix Solaris regression
8430         * build-aux/bootstrap (check_versions): Solaris tr still needs []
8431         around ranges.
8432         Reported by Pádraig Brady.
8433
8434         bootstrap: work with pkg-config
8435         * build-aux/bootstrap (check_versions): Also transliterate - in
8436         prerequisite name.
8437         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
8438         prerequisites that were already found, to avoid confusion.
8439         Reported by Justin Clift.
8440
8441         faccessat: remove unused wrappers
8442         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
8443         presence of these wrappers dragged in -lgen on Solaris.
8444         Reported by Clemens Brogi; fix suggested by Paul Eggert.
8445
8446 2010-10-05  Jim Meyering  <meyering@redhat.com>
8447
8448         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
8449         * Makefile (sc_pragma_columns): New syntax-check rule.
8450
8451 2010-10-04  Bruno Haible  <bruno@clisp.org>
8452
8453         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
8454         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
8455         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
8456         Reported by Bruce Korb and Eric Blake.
8457
8458 2010-10-04  Bruno Haible  <bruno@clisp.org>
8459
8460         threadlib: Make option --with-libpth-prefix work.
8461         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
8462         use $LIBPTH, not just -lpth.
8463
8464 2010-10-04  Bruno Haible  <bruno@clisp.org>
8465
8466         Avoid line length limitation from HP NonStop system header files.
8467         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
8468         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
8469         * lib/ctype.in.h: Likewise.
8470         * lib/dirent.in.h: Likewise.
8471         * lib/errno.in.h: Likewise.
8472         * lib/fcntl.in.h: Likewise.
8473         * lib/float.in.h: Likewise.
8474         * lib/getopt.in.h: Likewise.
8475         * lib/iconv.in.h: Likewise.
8476         * lib/inttypes.in.h: Likewise.
8477         * lib/langinfo.in.h: Likewise.
8478         * lib/locale.in.h: Likewise.
8479         * lib/math.in.h: Likewise.
8480         * lib/netdb.in.h: Likewise.
8481         * lib/netinet_in.in.h: Likewise.
8482         * lib/poll.in.h: Likewise.
8483         * lib/pthread.in.h: Likewise.
8484         * lib/pty.in.h: Likewise.
8485         * lib/sched.in.h: Likewise.
8486         * lib/se-selinux.in.h: Likewise.
8487         * lib/search.in.h: Likewise.
8488         * lib/signal.in.h: Likewise.
8489         * lib/spawn.in.h: Likewise.
8490         * lib/stdarg.in.h: Likewise.
8491         * lib/stddef.in.h: Likewise.
8492         * lib/stdint.in.h: Likewise.
8493         * lib/stdio.in.h: Likewise.
8494         * lib/stdlib.in.h: Likewise.
8495         * lib/string.in.h: Likewise.
8496         * lib/strings.in.h: Likewise.
8497         * lib/sys_file.in.h: Likewise.
8498         * lib/sys_ioctl.in.h: Likewise.
8499         * lib/sys_select.in.h: Likewise.
8500         * lib/sys_socket.in.h: Likewise.
8501         * lib/sys_stat.in.h: Likewise.
8502         * lib/sys_time.in.h: Likewise.
8503         * lib/sys_times.in.h: Likewise.
8504         * lib/sys_utsname.in.h: Likewise.
8505         * lib/sys_wait.in.h: Likewise.
8506         * lib/sysexits.in.h: Likewise.
8507         * lib/termios.in.h: Likewise.
8508         * lib/time.in.h: Likewise.
8509         * lib/unistd.in.h: Likewise.
8510         * lib/wchar.in.h: Likewise.
8511         * lib/wctype.in.h: Likewise.
8512         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
8513         * modules/ctype (Makefile.am): Likewise.
8514         * modules/dirent (Makefile.am): Likewise.
8515         * modules/errno (Makefile.am): Likewise.
8516         * modules/fcntl-h (Makefile.am): Likewise.
8517         * modules/float (Makefile.am): Likewise.
8518         * modules/getopt-posix (Makefile.am): Likewise.
8519         * modules/iconv-h (Makefile.am): Likewise.
8520         * modules/inttypes (Makefile.am): Likewise.
8521         * modules/langinfo (Makefile.am): Likewise.
8522         * modules/locale (Makefile.am): Likewise.
8523         * modules/math (Makefile.am): Likewise.
8524         * modules/netdb (Makefile.am): Likewise.
8525         * modules/netinet_in (Makefile.am): Likewise.
8526         * modules/poll-h (Makefile.am): Likewise.
8527         * modules/pthread (Makefile.am): Likewise.
8528         * modules/pty (Makefile.am): Likewise.
8529         * modules/sched (Makefile.am): Likewise.
8530         * modules/search (Makefile.am): Likewise.
8531         * modules/selinux-h (Makefile.am): Likewise.
8532         * modules/signal (Makefile.am): Likewise.
8533         * modules/spawn (Makefile.am): Likewise.
8534         * modules/stdarg (Makefile.am): Likewise.
8535         * modules/stddef (Makefile.am): Likewise.
8536         * modules/stdint (Makefile.am): Likewise.
8537         * modules/stdio (Makefile.am): Likewise.
8538         * modules/stdlib (Makefile.am): Likewise.
8539         * modules/string (Makefile.am): Likewise.
8540         * modules/strings (Makefile.am): Likewise.
8541         * modules/sys_file (Makefile.am): Likewise.
8542         * modules/sys_ioctl (Makefile.am): Likewise.
8543         * modules/sys_select (Makefile.am): Likewise.
8544         * modules/sys_socket (Makefile.am): Likewise.
8545         * modules/sys_stat (Makefile.am): Likewise.
8546         * modules/sys_time (Makefile.am): Likewise.
8547         * modules/sys_times (Makefile.am): Likewise.
8548         * modules/sys_utsname (Makefile.am): Likewise.
8549         * modules/sys_wait (Makefile.am): Likewise.
8550         * modules/sysexits (Makefile.am): Likewise.
8551         * modules/termios (Makefile.am): Likewise.
8552         * modules/time (Makefile.am): Likewise.
8553         * modules/unistd (Makefile.am): Likewise.
8554         * modules/wchar (Makefile.am): Likewise.
8555         * modules/wctype (Makefile.am): Likewise.
8556
8557 2010-10-04  Bruno Haible  <bruno@clisp.org>
8558
8559         read-file tests: Avoid a test failure on NonStop Kernel.
8560         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8561         a regular file.
8562         Reported by Joachim Schmitz <schmitz@hp.com>.
8563
8564 2010-10-03  Bruno Haible  <bruno@clisp.org>
8565
8566         gnulib-tool: Fixes for --create-testdir with --libtool.
8567         * gnulib-tool (func_get_automake_snippet): Don't augment
8568         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8569         an executable.
8570         (func_create_testdir): Handle module 'alloca' like func_import.
8571         Reported by Bruce Korb <bruce.korb@gmail.com>.
8572
8573 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8574
8575         Avoid some lines longer than 80 characters.
8576         * lib/stdint.in.h: Break long comment lines.
8577         * lib/math.in.h: Likewise.
8578         (_GL_NUM_UINT_WORDS): New macro, for readability.
8579         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8580         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8581         * lib/stdlib.in.h: Likewise.
8582         * lib/spawn.in.h: Likewise.
8583         * lib/sys_socket.in.h: Update an URL.
8584         * lib/sys_stat.in.h: Break long line.
8585
8586 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8587
8588         Improve pmccabe2html.
8589         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8590         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8591         when the sources change. Remove the line in the HTML about "Used
8592         ranges" (which implied that there might be other unused ranges),
8593         rename "Resume" to "Summary" (easier to understand for more users).
8594         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8595         styles, and some unnecessary blank lines.
8596
8597 2010-10-03  Bruno Haible  <bruno@clisp.org>
8598             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8599
8600         acl: Add support for ACLs on NonStop Kernel.
8601         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8602         Check whether the function aclsort() exists.
8603         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8604         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8605         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8606         (acl_nontrivial [HAVE_ACLSORT]: New function.
8607         (file_has_acl): Implement for NonStop Kernel.
8608         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8609         (qset_acl): Implement for NonStop Kernel.
8610         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8611         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8612         (main): Implement for NonStop Kernel.
8613         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8614         Kernel. Handle this flavor.
8615         * tests/test-set-mode-acl.sh: Likewise.
8616         * tests/test-copy-acl.sh: Likewise.
8617         * tests/test-copy-file.sh: Likewise.
8618
8619 2010-10-03  Bruno Haible  <bruno@clisp.org>
8620
8621         Info about ACLs on NonStop Kernel.
8622         * doc/acl-resources.txt: Add info about NonStop Kernel.
8623         References by Joachim Schmitz <schmitz@hp.com>.
8624
8625 2010-10-02  Bruno Haible  <bruno@clisp.org>
8626
8627         Define missing EDQUOT on NonStop Kernel.
8628         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8629         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8631         missing.
8632         * doc/posix-headers/errno.texi: Mention the NSK bug.
8633         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8634         Reported by Joachim Schmitz <schmitz@hp.com>.
8635
8636 2010-10-02  Bruno Haible  <bruno@clisp.org>
8637
8638         Update doc for POSIX:2008.
8639         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8640         Update URL of POSIX specification.
8641
8642 2010-10-02  Bruno Haible  <bruno@clisp.org>
8643
8644         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8645         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8646         from gnulib, not from Automake.
8647
8648 2010-10-02  Bruno Haible  <bruno@clisp.org>
8649
8650         New module 'system-posix'.
8651         * modules/system-posix: New file.
8652         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8653         module is present.
8654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8655         GNULIB_SYSTEM_POSIX.
8656         * modules/stdlib (Depends-on): Remove sys_wait.
8657         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8658         * doc/posix-functions/system.texi: Mention the new module.
8659         * doc/posix-headers/stdlib.texi: Likewise.
8660         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8661         define test_sys_wait_macros to a no-op.
8662         Reported by Sam Steingold <sds@gnu.org>.
8663
8664 2010-09-30  Bruno Haible  <bruno@clisp.org>
8665
8666         More renaming from 'getdate' to 'get_date'.
8667         * doc/get_date.texi: Renamed from doc/getdate.texi.
8668         * modules/get_date (Files): Update.
8669         * MODULES.html.sh (Date and time <time.h>): Update.
8670         * DEPENDENCIES: Update.
8671         * gnulib-tool: Update comment.
8672         * m4/bison.m4 (gl_BISON): Likewise.
8673         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8674
8675 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8676
8677         bootstrap: support ACLOCAL_FLAGS during aclocal
8678         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8679         can add additional -I dir for third-party .m4 files.
8680
8681 2010-09-30  Eric Blake  <eblake@redhat.com>
8682
8683         bootstrap: use glibtoolize on MacOS
8684         * build-aux/bootstrap (check_versions): Convert libtool into
8685         libtoolize.
8686         (tool search): Move libtool check earlier, and look for
8687         glibtoolize for MacOS.
8688         (gnulib_tool_options): Auto-add --libtool when appropriate.
8689         Reported by Justin Clift.
8690
8691         poll: fix typo that broke test on MacOS
8692         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8693         Reported by Justin Clift.
8694
8695         getdate: rename to get_date
8696         Note: getdate.h is not renamed, to minimize client impact.
8697         * modules/getdate: Mark obsolete.  Move old contents...
8698         * modules/get_date: ...to new module name.
8699         * modules/getdate-tests: Move...
8700         * modules/get_date-tests: ...here.
8701         * m4/getdate.m4: Move...
8702         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8703         * lib/getdate.y: Move...
8704         * lib/get_date.y: ...here.
8705         * tests/test-getdate.c: Move...
8706         * tests/test-get_date.c: ...here.
8707         * doc/posix-functions/getdate.texi (getdate): Update name.
8708         * NEWS: Mention the change.
8709
8710 2010-09-29  Bruno Haible  <bruno@clisp.org>
8711
8712         Separate the module 'waitpid' from the module 'sys_wait'.
8713         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8714         present.
8715         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8716         gl_MODULE_INDICATOR_FOR_TESTS.
8717         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8718         * modules/sys_wait (Depends-on): Remove waitpid.
8719         (Makefile.am): Substitute GNULIB_WAITPID.
8720         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8721         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8722         signature only if the 'waitpid' module is present.
8723         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8724         * NEWS: Mention the change.
8725         * modules/grantpt (Depends-on): Add waitpid.
8726         * modules/wait-process (Depends-on): Likewise.
8727
8728 2010-09-29  Bruno Haible  <bruno@clisp.org>
8729
8730         More tests for module 'sys_wait'.
8731         * modules/sys_wait-c++-tests: New file.
8732         * tests/test-sys_wait-c++.cc: New file.
8733         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8734         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8735
8736 2010-09-29  Bruno Haible  <bruno@clisp.org>
8737
8738         New module 'waitpid'.
8739         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8740         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8741         Don't include <process.h>.
8742         (waitpid): Declare only, using modern idiom.
8743         * m4/waitpid.m4: New file.
8744         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8745         * modules/waitpid: New file.
8746         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8747         (Makefile.am): Update.
8748         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8749
8750 2010-09-28  Bruno Haible  <bruno@clisp.org>
8751
8752         poll: Assume ANSI C.
8753         * lib/poll.c (poll): Use an ANSI C declaration.
8754
8755 2010-09-28  Bruno Haible  <bruno@clisp.org>
8756
8757         poll-h: Create poll.h on all platforms.
8758         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8759         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8760         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8761         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8762         (gl_REPLACE_POLL_H): Don't set POLL_H.
8763         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8764         * modules/poll-h (Depends-on): Add include_next.
8765         (Makefile.am): Create poll.h unconditionally. Substitute also
8766         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8767
8768 2010-09-28  Bruno Haible  <bruno@clisp.org>
8769
8770         Tests for module 'poll-h'.
8771         * modules/poll-h-c++-tests: New file.
8772         * tests/test-poll-h-c++.cc: New file.
8773
8774         Tests for module 'poll-h'.
8775         * modules/poll-h-tests: New file.
8776         * tests/test-poll-h.c: New file.
8777
8778 2010-09-28  Bruno Haible  <bruno@clisp.org>
8779
8780         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8781         * modules/poll-h (Depends-on): Add 'extensions'.
8782
8783 2010-09-28  Bruno Haible  <bruno@clisp.org>
8784
8785         New module 'poll-h'.
8786         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8787         (poll): Use modern idiom.
8788         * modules/poll-h: New file.
8789         * modules/poll (Files): Remove lib/poll.in.h.
8790         (Depends-on): Add poll-h.
8791         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8792         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8793         * m4/poll_h.m4: New file.
8794         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8795         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8796         and invoke gl_REPLACE_POLL_H.
8797         * lib/poll.c: Use common idiom.
8798         * tests/test-poll.c: Likewise.
8799         * doc/posix-headers/poll.texi: Mention the poll-h module.
8800         Suggested by Eric Blake.
8801
8802 2010-09-26  Bruno Haible  <bruno@clisp.org>
8803
8804         sys_wait: Implement WSTOPSIG.
8805         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8806         Reported by Simon Josefsson.
8807
8808 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8809
8810         stdlib, sys_wait: Avoid compilation error on mingw.
8811         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8812
8813 2010-09-26  Bruno Haible  <bruno@clisp.org>
8814
8815         stdlib tests: Avoid code duplication.
8816         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8817         * modules/sys_wait-tests (Files): Likewise.
8818         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8819         * tests/test-stdlib.c: Include test-sys_wait.h.
8820         (main): Invoke test_sys_wait_macros.
8821         * tests/test-sys_wait.c: Include test-sys_wait.h.
8822         (main): Invoke test_sys_wait_macros.
8823
8824 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8825
8826         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8827         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8828         sure Windows sockets are working before calling getaddrinfo.
8829         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8830         * doc/gnulib.texi (Windows sockets): Fix typo.
8831
8832 2010-09-25  Bruno Haible  <bruno@clisp.org>
8833
8834         Tests for module 'regex-quote'.
8835         * modules/regex-quote-tests: New file.
8836         * tests/test-regex-quote.c: New file.
8837
8838         New module 'regex-quote'.
8839         * lib/regex-quote.h: New file.
8840         * lib/regex-quote.c: New file.
8841         * modules/regex-quote: New file.
8842         Suggested by Reuben Thomas <rrt@sc3d.org>.
8843
8844 2010-09-24  Bruno Haible  <bruno@clisp.org>
8845
8846         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8847         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8848
8849 2010-09-23  Bruno Haible  <bruno@clisp.org>
8850
8851         setenv: Relax license.
8852         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8853         Blake.
8854         Requested by Eric Blake.
8855
8856 2010-09-22  Bruno Haible  <bruno@clisp.org>
8857
8858         termios: Relax license.
8859         * modules/termios (License): Change to LGPLv2+.
8860         Requested by Eric Blake.
8861
8862 2010-09-22  Bruno Haible  <bruno@clisp.org>
8863
8864         threadlib: Allow the package to change the default to 'no'.
8865         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8866         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8867         Reported by Paul Eggert.
8868
8869 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8870             Bruno Haible  <bruno@clisp.org>
8871
8872         Fix endless loop in mbmemcasecoll.
8873         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8874         byte.
8875         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8876
8877 2010-09-22  Bruno Haible  <bruno@clisp.org>
8878
8879         Tests for module 'memcoll'.
8880         * modules/memcoll-tests: New file.
8881         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8882
8883         memcoll, xmemcoll: Clarify size vs. length.
8884         * modules/memcoll.c (memcoll0): Clarify specification.
8885         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8886         passed to collate_error.
8887
8888 2010-09-22  Bruno Haible  <bruno@clisp.org>
8889
8890         Tests for module 'memcasecmp'.
8891         * modules/memcasecmp-tests: New file.
8892         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8893
8894 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8895
8896         * lib/pthread.in.h: Add split double-inclusion guard, and include
8897         system <pthread.h> if there is one.  Use @@-style as in other
8898         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8899         pthread.h doesn't.
8900         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8901         (pthread_mutexattr_settype, pthread_mutex_trylock):
8902         New static inline functions, if there's no system <pthread.h>.
8903         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8904         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8905         Approximate with mutexes if the system lacks spinlocks, as in
8906         MacOS.
8907         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8908         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8909         @@-style.  Check for spinlocks separately.
8910         (gl_PTHREAD_DEFAULTS): New macro.
8911         * modules/pthread: Redo to use a more typical style for in.h files.
8912
8913 2010-09-21  Eric Blake  <eblake@redhat.com>
8914
8915         net_if: enhance tests
8916         * tests/test-net_if.c (main): Move signature checks earlier.
8917         Print failures to stderr.
8918         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8919         Document the bug that we do not yet fix.
8920
8921 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8922
8923         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8924         about gnulib, not GSS.
8925
8926 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8927
8928         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8929         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8930         for Emacs.
8931         * build-aux/pmccabe2html: Make Makefile.am example code more
8932         cut-and-paste friendly.
8933
8934 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8935
8936         * tests/test-net_if.c: New file.
8937         * modules/net_if-tests: New file.
8938
8939 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8940
8941         pthread: add pthread_spin_destroy
8942         * lib/pthread.in.h (pthread_spin_destroy): New function.
8943
8944 2010-09-19  Bruno Haible  <bruno@clisp.org>
8945
8946         gnulib-tool: Fix --help output.
8947         * gnulib-tool (func_usage): Fix help message.
8948         Reported by Reuben Thomas <rrt@sc3d.org>.
8949
8950 2010-09-18  Jim Meyering  <meyering@redhat.com>
8951
8952         maint.mk: avoid unexpanded \n in two diagnostics
8953         * top/maint.mk (sc_prohibit_always_true_header_tests):
8954         Don't use a literal \n in a halt=... assignment.  It would not be
8955         expanded, and the two \n bytes would appear in the diagnostic output
8956         rather than the desired newline.  Use halt=$$(printf ... instead.
8957         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8958
8959 2010-09-18  Bruno Haible  <bruno@clisp.org>
8960
8961         netinet_in: Doc tweak.
8962         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8963         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8964
8965 2010-09-18  Jim Meyering  <meyering@redhat.com>
8966
8967         init.sh: correct an outdated comment
8968         * tests/init.sh (create_exe_shims_):  s/function/alias/
8969
8970         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8971         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8972         a file named "*.exe" is removed between the glob expansion and the
8973         processing of that oddly named file.
8974
8975 2010-09-17  Eric Blake  <eblake@redhat.com>
8976
8977         mirbsd: add some more support
8978         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8979         in BSD family.
8980         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8981         devices as OpenBSD.
8982         * m4/host-os.m4 (mirbsd): Add MirBSD.
8983
8984         tests: fix unportable assumption on sys/wait.h
8985         * tests/test-sys_wait.c (main): Relax test.
8986         * tests/test-stdlib.c (main): Likewise.
8987
8988         init.sh: accomodate directory with no .exes
8989         * tests/init.sh: Accomodate directory containing only scripts.
8990
8991         tests: avoid compiler warning
8992         * tests/test-stdlib.c (main): Use the variable.
8993
8994         fdutimens, fdutimensat: update signature, again
8995         * lib/utimens.h (gl_futimens): Delete, and move signature...
8996         (fdutimens): ...here.
8997         (fdutimensat): Rearrange signature.
8998         (lutimensat): Rename variable for clarity.
8999         * lib/fdutimensat.c (fdutimensat): Update signature.
9000         * lib/utimens.c (fdutimens): Likewise.
9001         (gl_futimens): Delete.
9002         (utimens, lutimens): Update callers.
9003         * lib/futimens.c (futimens): Likewise.
9004         * tests/test-fdutimensat.c: Likewise.
9005         * tests/test-utimens.c: Likewise.
9006         * tests/test-futimens.h: Update comment.
9007         * NEWS: Mention this.
9008         Suggested by Paul Eggert.
9009
9010 2010-09-17  Bruno Haible  <bruno@clisp.org>
9011
9012         Take over the maintenance of some older macros from Autoconf.
9013         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9014         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9015         GNU Autoconf.
9016         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9017         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9018
9019 2010-09-17  Eric Blake  <eblake@redhat.com>
9020
9021         fdutimensat: drop atflag validation
9022         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9023         with valid fd, to close a race scenario where futimens is
9024         unsupported and FILE was replaced by a symlink.
9025         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9026         accordingly.
9027         Suggested by Paul Eggert.
9028
9029 2010-09-16  Bruno Haible  <bruno@clisp.org>
9030
9031         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9032         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9033
9034 2010-09-16  Bruno Haible  <bruno@clisp.org>
9035
9036         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9037         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9038         login_tty exists.
9039         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9040
9041 2010-09-16  Bruno Haible  <bruno@clisp.org>
9042
9043         login_tty: Make the replacement code work on BSD systems.
9044         * lib/login_tty.c: Include <sys/ioctl.h>.
9045         (login_tty): Use ioctl TIOCSCTTY when available.
9046         * modules/login_tty (Depends-on): Add sys_ioctl.
9047         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9048
9049 2010-09-16  Bruno Haible  <bruno@clisp.org>
9050
9051         login_tty: Stricter unit test.
9052         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9053         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9054         and tcgetsid() after login_tty.
9055         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9056
9057 2010-09-16  Bruno Haible  <bruno@clisp.org>
9058
9059         New module 'tcgetsid'.
9060         * lib/tcgetsid.c: New file.
9061         * m4/tcgetsid.m4: New file.
9062         * modules/tcgetsid: New file.
9063         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9064         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9065         GNULIB_TCGETSID, HAVE_TCGETSID.
9066         * lib/termios.in.h: Include <sys/types.h>.
9067         (tcgetsid): New declaration.
9068         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9069         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9070         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9071         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9072
9073 2010-09-16  Bruno Haible  <bruno@clisp.org>
9074
9075         Tests for module 'termios'.
9076         * modules/termios-c++-tests: New file.
9077         * modules/termios-tests: New file.
9078         * tests/test-termios-c++.cc: New file.
9079         * tests/test-termios.c: New file.
9080
9081         New module 'termios'.
9082         * modules/termios: New file.
9083         * lib/termios.in.h: New file.
9084         * m4/termios_h.m4: New file.
9085         * doc/posix-headers/termios.texi: Mention the new module.
9086
9087 2010-09-16  Eric Blake  <eblake@redhat.com>
9088
9089         fdutimensat: add an atflag parameter
9090         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9091         * lib/utimens.h (fdutimensat): Update prototype.
9092         * tests/test-fdutimensat.c: Adjust test to match.
9093         * NEWS: Document the change.
9094         Suggested by Paul Eggert.
9095
9096 2010-09-16  Bruno Haible  <bruno@clisp.org>
9097
9098         Fix typos in comments.
9099         * lib/striconveh.h: Fix typo in comment.
9100         * lib/login_tty.c (login_tty): Likewise.
9101
9102 2010-09-15  Bruno Haible  <bruno@clisp.org>
9103
9104         stdlib: clarify MirBSD WEXITSTATUS bug
9105         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9106         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9107
9108 2010-09-15  Eric Blake  <eblake@redhat.com>
9109
9110         stdlib: work around MirBSD WEXITSTATUS bug
9111         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9112         * modules/stdlib (Depends-on): Add sys_wait.
9113         * tests/test-sys_wait.c (main): Enhance test.
9114         * tests/test-stdlib.c (main): Likewise.
9115         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9116
9117         docs: mention MacOS issue with WEXITSTATUS(constant)
9118         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9119         issue.
9120         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9121
9122         strnlen: add tests
9123         * modules/strnlen-tests: New file.
9124         * tests/test-strnlen.c: Likewise.
9125
9126 2010-09-14  Bruno Haible  <bruno@clisp.org>
9127
9128         unistr/base: Avoid link errors when module 'libunistring' is also used.
9129         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9130         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9131         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9132         Declare also when HAVE_LIBUNISTRING is set.
9133         Reported by Pádraig Brady <P@draigbrady.com>.
9134
9135 2010-09-14  Eric Blake  <eblake@redhat.com>
9136
9137         test-rawmemchr: make more robust
9138         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9139         (Depends-on, configure.ac): Add needed prerequisites to use it.
9140         * modules/memchr-tests (Files, Depends-on, configure.ac):
9141         Likewise, to avoid implicit reliance on memchr module prereqs.
9142         * tests/test-memchr.c (main): Ensure proper masking.
9143         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9144         reads.
9145
9146         memchr: detect glibc Alpha bug
9147         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9148         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9149         Alpha.
9150         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9151         * tests/test-memchr.c (main): Enhance test.
9152         Reported by Nelson H. F. Beebe.
9153
9154 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9155
9156         fts, getcwd, glob: audit for dirfd returning -1
9157         * lib/fts.c (opendir): Remove #define; no longer used.
9158         (opendirat): New arg PDIR_FD.  All callers changed.
9159         (fts_build, _opendir2): Use new opendirat to avoid the need for
9160         dirfd, or for checking whether dirfd returns a negative value.
9161         Don't use opendir; always use openat followed by fdopendir.
9162         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9163         it.
9164         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9165         returns -1 here.
9166         * modules/fts (Depends-on): Remove dirfd.
9167         * modules/getcwd (Depends-on): Likewise.
9168
9169 2010-09-13  Eric Blake  <eblake@redhat.com>
9170
9171         float: fix broken MirBSD header
9172         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9173         * doc/posix-headers/float.texi (float.h): Document it.
9174
9175 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9176
9177         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9178         * lib/fts.c (opendirat): New arg extra_flags.
9179         (__opendir2): Use it to avoid following symlinks when opening
9180         a directory, if symlinks are not supposed to be followed.  See
9181         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9182
9183         fdopendir: preserve argument fd before returning
9184         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9185         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9186         (fdopendir): Use them, arranging for FD to be open to the same
9187         directory that it was when it started.  (It might be temporarily
9188         closed while fdopendir is running, so this not thread- or
9189         signal-safe.)  Be careful to do the right thing even when file
9190         descriptors are scarce and dup fails with errno == EMFILE.  See
9191         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9192
9193 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9194
9195         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9196         * NEWS: Document change.
9197         * m4/regex.m4: Disable test for regoff_t size.
9198
9199 2010-09-13  Jim Meyering  <meyering@redhat.com>
9200
9201         fts: don't operate on an invalid file descriptor after failed dup
9202         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9203         negative file descriptor.
9204
9205 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9206
9207         savedir: add streamsavedir, deprecate fdsavedir
9208         * NEWS: Mention deprecation of fdsavedir.
9209         * lib/savedir.c (streamsavedir): New extern function, whose name
9210         ends in "savedir" to be consistent with the others.  This differs
9211         from savedirstream in that it doesn't close its argument.  The
9212         next version of GNU tar will use this instead of fdsavedir, to
9213         avoid some race conditions and conserve file descriptors.
9214         (savedirstream): Reimplement as a wrapper around streamsavedir.
9215         (fdsavedir): Add a comment deprecating this function.  As far as
9216         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9217         * lib/savedir.h (streamsavedir): New decl.
9218         (fdsavedir): Add a comment deprecating this.
9219
9220 2010-09-10  Bruno Haible  <bruno@clisp.org>
9221
9222         langinfo: Fix last commit.
9223         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9224         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9225         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9226
9227 2010-09-10  Bruno Haible  <bruno@clisp.org>
9228
9229         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9230         * lib/progreloc.c (O_EXEC): Define fallback.
9231
9232 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9233
9234         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9235         * NEWS: Document recent changes to fcntl-h.
9236         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9237         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9238         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9239         Similarly for O_SEARCH; this last was already true, but not documented.
9240         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9241         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9242         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9243         Likewise.
9244         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9245         is zero, not whether it is defined.
9246         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9247         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9248         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9249
9250 2010-09-10  Bruno Haible  <bruno@clisp.org>
9251
9252         langinfo, nl_langinfo: Fix for IRIX 5.3.
9253         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9254         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9255         HAVE_LANGINFO_YESEXPR.
9256         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9257         HAVE_LANGINFO_YESEXPR.
9258         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9259         HAVE_LANGINFO_T_FMT_AMPM is 0.
9260         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9261         HAVE_LANGINFO_YESEXPR is 0.
9262         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9263         NOEXPR.
9264         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9265         * doc/posix-functions/nl_langinfo.texi: Likewise.
9266         Reported by Eric Blake.
9267
9268 2010-09-10  Bruno Haible  <bruno@clisp.org>
9269
9270         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9271         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9272         on FreeBSD 8.0 and OpenBSD 4.6.
9273         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9274         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9275         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9276         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9277         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9278         ac_includes_default.
9279         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9280
9281 2010-09-09  Eric Blake  <eblake@redhat.com>
9282
9283         strsignal: work around NetBSD bug
9284         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9285         * lib/string.in.h (includes): Likewise.
9286         * doc/posix-functions/strsignal.texi (strsignal): Document the
9287         bug.
9288         Reported by Nelson H. F. Beebe.
9289
9290         gnulib-tool: work with NetBSD /bin/sh
9291         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9292         (func_get_description, func_get_comment, func_get_status)
9293         (func_get_notice, func_get_applicability, func_get_filelist)
9294         (func_get_dependencies, func_get_autoconf_early_snippet)
9295         (func_get_autoconf_snippet, func_get_automake_snippet)
9296         (func_get_include_directive, func_get_link_directive)
9297         (func_get_license, func_get_maintainer, func_import): Avoid
9298         shell syntax errors from parsing syntax extensions.
9299
9300 2010-09-09  Bruno Haible  <bruno@clisp.org>
9301
9302         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9303         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9304         a reliable way to determine whether the 'alias' command works.
9305
9306 2010-09-08  Jim Meyering  <meyering@redhat.com>
9307
9308         init.sh: penalize a set-x-impaired shell; don't disqualify it
9309         * tests/init.sh: Too many shells corrupt application stderr when
9310         you set -x, so we can't afford to disqualify them, since at least
9311         on Irix-6.5, that would disqualify all bourne shells.
9312         Instead, use a two-pass approach.
9313         On the first pass, try to find a shell that meets the stricter
9314         condition that set -x does not corrupt stderr.
9315         If no shell meets the stricter condition, retest each candidate
9316         shell, but without that extra condition.  Finally, when
9317         VERBOSE=yes is requested and set -x might cause trouble, simply
9318         issue a warning and refrain from enabling debug output.
9319
9320 2010-09-08  Eric Blake  <eblake@redhat.com>
9321
9322         unsetenv: fix OpenBSD bug
9323         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9324         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9325         documentation.
9326         Reported by Jim Meyering.
9327
9328         strtod: work around IRIX 6.5 bug
9329         * lib/strtod.c (strtod): Reparse number on shorter string if
9330         exponent parse was invalid.
9331         * tests/test-strtod.c (main): Add check for "0x1p 2".
9332         Reported by Tom G. Christensen.
9333
9334         getopt: optimize previous patch
9335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9336         empty variable.  Speed up awk script.
9337         Reported by Paolo Bonzini.
9338
9339 2010-09-08  Jim Meyering  <meyering@redhat.com>
9340
9341         test.sh: disqualify shells for which set -x corrupts stderr
9342         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
9343         and OpenBSD 4.7.  They make it so with "set -x", environment settings
9344         appear in stderr output.  For example, this command:
9345             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
9346         prints "P=1" on those two systems:
9347
9348 2010-09-08  Bruno Haible  <bruno@clisp.org>
9349
9350         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9351         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
9352         commands, because some shells ignore redirections when there is an
9353         error in the command lookup.
9354         Reported by Eric Blake.
9355
9356 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
9357
9358         * lib/regex.h: Fix a mention of `regex_compile' (should be
9359         `re_compile_pattern').
9360         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
9361         (re_set_registers): Correct name of parameter in comment.
9362
9363         * doc/regex.texi: Add documentation for missing syntax flags.
9364         Remove commented-out documentation of defunct syntax option
9365         RE_NO_EMPTY_ALTS.
9366         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
9367         Add documentation of re_set_registers.
9368         Document trick to re-use a pattern buffer by setting fastmap manually.
9369         Update documentation of struct re_pattern_buffer per public members.
9370         Uncomment documentation of equivalence class operators and
9371         collating symbol operators, since they are now implemented,
9372         Explain leftmost-longest matching in relation to alternatives.
9373         Tidy documentation of substring matching.
9374         Remove POSIX documentation, which is done better in
9375         glibc, and refer the reader there. Keep BSD API documentation, as
9376         that is not readily available elsewhere.
9377
9378 2010-09-07  Eric Blake  <eblake@redhat.com>
9379
9380         getopt: handle POSIXLY_CORRECT set but not exported
9381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
9382         export state of POSIXLY_CORRECT, due to bash set -o posix.
9383         Reported by Dustin J. Mitchell.
9384
9385 2010-09-05  Bruno Haible  <bruno@clisp.org>
9386
9387         gnulib-tool: Highlight the changed options.
9388         * gnulib-tool (func_usage): Display the --import, --add-import,
9389         --remove-import explanations in bold font.
9390
9391 2010-09-06  Karl Berry  <karl@gnu.org>
9392
9393         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
9394
9395 2010-09-05  Bruno Haible  <bruno@clisp.org>
9396
9397         uniwidth/width: Update comment.
9398         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
9399         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
9400
9401 2010-09-05  Bruno Haible  <bruno@clisp.org>
9402
9403         isinf, isnan: Relax license.
9404         * modules/isinf (License): Change from GPL to LGPL, with consent from
9405         Ben Pfaff.
9406         * modules/isnan (License): Likewise.
9407         Requested by Ludovic Courtès.
9408
9409 2010-09-04  Bruno Haible  <bruno@clisp.org>
9410
9411         gnulib-tool: Help migration from --import to --add-import or --update.
9412         * gnulib-tool: Emit a verbose error message when --import is used
9413         without any module name.
9414
9415 2010-09-04  Bruno Haible  <bruno@clisp.org>
9416
9417         Update doc about gnulib-tool.
9418         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
9419         'gnulib-tool --update' in more detail.
9420         Reported by Eric Blake.
9421
9422 2010-09-04  Bruno Haible  <bruno@clisp.org>
9423
9424         gnulib-tool: Change --import. New options --add/remove-import.
9425         * gnulib-tool: New options --add-import, --remove-import.
9426         (func_usage): Document them.
9427         (have_associative): Define always.
9428         (func_import): In import mode, don't merge the specified settings with
9429         the cached settings. Implement remove-import mode.
9430         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
9431         Explain when to use them versus --import.
9432         (Simple update): Use --add-import instead of --import.
9433         * NEWS: Mention the change.
9434
9435 2010-09-04  Bruno Haible  <bruno@clisp.org>
9436
9437         * doc/gnulib-tool.texi (Initial import): Update paragraph about
9438         separate gnulib.mk.
9439
9440 2010-09-04  Bruno Haible  <bruno@clisp.org>
9441
9442         gnulib-tool: Don't talk about CVS any more.
9443         * gnulib-tool (func_usage, func_import): Write "version control"
9444         instead of CVS.
9445
9446 2010-09-04  Jim Meyering  <meyering@redhat.com>
9447
9448         maint.mk: avoid obscure sc_copyright_check failure in coreutils
9449         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
9450         false positives (whose names may be ill-chosen) when searching
9451         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
9452         would cause a false-positive.
9453
9454         avoid coreutils "make distcheck" failure
9455         Coreutils tests with an absolute build directory name that contains
9456         a space.  Not quoting this directory name caused a failure.
9457         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
9458         * tests/test-vc-list-files-cvs.sh: Likewise.
9459
9460 2010-09-04  Bruno Haible  <bruno@clisp.org>
9461
9462         gnulib-tool: Avoid error when run in a package without Makefile.am.
9463         * gnulib-tool: When collecting the m4dirs in a package that does not
9464         have a Makefile.am, eliminate those directories that contain no
9465         gnulib-cache.m4. Fix expression that counts these directories.
9466
9467 2010-09-04  Bruno Haible  <bruno@clisp.org>
9468
9469         update-copyright test: Improve output when perl is missing or too old.
9470         * tests/test-update-copyright.sh: Move test of Perl version down after
9471         the test whether Perl exists. Provide an explanation relating Perl's
9472         error message to Automake's SKIP: message.
9473
9474 2010-09-04  Bruno Haible  <bruno@clisp.org>
9475
9476         Don't augment PATH in TESTS_ENVIRONMENT.
9477         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
9478         set abs_aux_dir instead of augmenting PATH.
9479         * modules/vc-list-files-tests (Makefile.am): Likewise.
9480         * tests/test-update-copyright.sh: Augment PATH here.
9481         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
9482         path_prepend_.
9483         * tests/test-vc-list-files-git.sh: Likewise.
9484
9485 2010-09-04  Jim Meyering  <meyering@redhat.com>
9486
9487         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
9488         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
9489
9490 2010-09-04  Bruno Haible  <bruno@clisp.org>
9491
9492         strdup: Fix compilation error in C++ mode.
9493         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
9494         the macro.
9495
9496 2010-09-04  Bruno Haible  <bruno@clisp.org>
9497
9498         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
9499         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
9500         macro into a function.
9501         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9502
9503 2010-09-04  Bruno Haible  <bruno@clisp.org>
9504
9505         Set PATH_SEPARATOR the same way autoconf does.
9506         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
9507         the value of PATH_SEPARATOR the same way autoconf-generated configure
9508         scripts do.
9509         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
9510         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9511
9512 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9513
9514         Set PATH_SEPARATOR the same way autoconf does.
9515         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
9516         the same way autoconf-generated configure scripts do.
9517         * posix-modules: Likewise.
9518
9519 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         hash: fix safe_hasher const typo
9522         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
9523         const; otherwise, there is a type error later.
9524
9525 2010-09-02  Jim Meyering  <meyering@redhat.com>
9526
9527         test-update-copyright.sh: require perl 5.8.0
9528         * tests/test-update-copyright.sh: Require 5.8.0,
9529         which Tom G. Christensen has confirmed is adequate,
9530         while 5.6.1 is not.
9531
9532 2010-09-02  Eric Blake  <eblake@redhat.com>
9533
9534         tests: init.sh improvements for re-exec'ing with zsh
9535         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
9536         -vx through shell re-exec.
9537         Reported by Tom G. Christensen.
9538
9539         wctype: fix typo in previous commit
9540         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
9541         Reported by Ludovic Courtès.
9542
9543 2010-09-02  Jim Meyering  <meyering@redhat.com>
9544
9545         test-update-copyright.sh: skip test if Perl is too old
9546         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
9547         Reported by Tom G. Christensen.
9548
9549 2010-09-02  Bruno Haible  <bruno@clisp.org>
9550
9551         wctype: Avoid compilation error on IRIX 6.5.30.
9552         * lib/wctype.in.h (iswblank): Declare with a replacement if
9553         REPLACE_ISWBLANK is set.
9554         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9555         declared. Set REPLACE_ISWBLANK.
9556         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9557         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9558         * doc/posix-headers/wctype.texi: Likewise.
9559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9560
9561 2010-09-01  Bruno Haible  <bruno@clisp.org>
9562
9563         New module 'socketlib'.
9564         * modules/socketlib: New file.
9565         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9566         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9567         * modules/sockets (Depends-on): Add socketlib.
9568         Suggested by Sam Steingold <sds@gnu.org>.
9569
9570 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9571
9572         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9573
9574         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9575         when one needs search access to a directory but not read access.
9576         On systems where it is available, it works in some cases where
9577         O_RDONLY does not, namely on directories that are searchable but
9578         not readable, and which need only to be searchable.  If O_SEARCH
9579         is not available, fall back to the traditional method of using
9580         O_RDONLY.
9581
9582         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9583         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9584         when opening a directory that needs only to be searchable.
9585         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9586         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9587         * lib/openat-proc.c (openat_proc_name): Likewise.
9588         * lib/openat.c (openat_needs_fchdir): Likewise.
9589         * lib/save-cwd.c (save_cwd): Likewise.
9590         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9591
9592 2010-08-28  Bruno Haible  <bruno@clisp.org>
9593
9594         New module 'host-cpu-c-abi'.
9595         * modules/host-cpu-c-abi: New file.
9596         * m4/host-cpu-c-abi.m4: New file, based on part of
9597         clisp/src/m4/general.m4.
9598         Requested by Sam Steingold <sds@gnu.org>.
9599
9600 2010-08-31  Eric Blake  <eblake@redhat.com>
9601         and Jim Meyering  <meyering@redhat.com>
9602
9603         hash: factor, and guard against misbehaving hasher function
9604         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9605         of table->hasher's return value.  Also protect against a hash value
9606         so large that adding it to table->bucket results in a NULL pointer.
9607         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9608         Use it in place of open-coded check-and-abort.
9609
9610 2010-08-30  Bruno Haible  <bruno@clisp.org>
9611
9612         hash: silence spurious clang warning
9613         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9614         Reported by Eric Blake.
9615
9616 2010-08-30  Eric Blake  <eblake@redhat.com>
9617
9618         strstr, memmem, strcasestr: avoid leaked shell message
9619         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9620         FreeBSD.
9621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9622         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9623
9624         tests: silence clang warning
9625         * tests/test-malloca.c (do_allocation): Avoid dead store.
9626
9627 2010-08-29  Bruno Haible  <bruno@clisp.org>
9628
9629         gettext: Fix recent mistake.
9630         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9631
9632 2010-08-29  Bruno Haible  <bruno@clisp.org>
9633
9634         selinux-h: Offer a --without-selinux option.
9635         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9636         --without-selinux was specified, skip all tests and define
9637         HAVE_SELINUX_SELINUX_H to 0.
9638         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9639         set LIB_SELINUX to empty.
9640         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9641         gl_LIBSELINUX. If --without-selinux was specified, replace
9642         selinux/context.h.
9643         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9644
9645 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9646             Bruno Haible  <bruno@clisp.org>
9647
9648         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9649         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9650         of HAVE_REALLOC.
9651         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9652         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9653         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9654         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9655
9656 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9657             Bruno Haible  <bruno@clisp.org>
9658
9659         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9660         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9661         HAVE_CALLOC.
9662         * lib/xmalloc.c: Update accordingly.
9663         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9664         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9665         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9666
9667 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9668             Bruno Haible  <bruno@clisp.org>
9669
9670         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9671         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9672         HAVE_MALLOC.
9673         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9674         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9675         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9676
9677 2010-08-29  Bruno Haible  <bruno@clisp.org>
9678
9679         Update modules list.
9680         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9681         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9682         (String handling <string.h>): Add astrxfrm.
9683         (File system functions): Add readlinkat.
9684
9685 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9686
9687         Tests for module 'realloc-gnu'.
9688         * modules/realloc-gnu-tests: New file.
9689         * tests/test-realloc-gnu.c: New file.
9690
9691         Tests for module 'calloc-gnu'.
9692         * modules/calloc-gnu-tests: New file.
9693         * tests/test-calloc-gnu.c: New file.
9694
9695         Tests for module 'malloc-gnu'.
9696         * modules/malloc-gnu-tests: New file.
9697         * tests/test-malloc-gnu.c: New file.
9698
9699 2010-08-28  Bruno Haible  <bruno@clisp.org>
9700
9701         Rename module 'realloc' -> 'realloc-gnu'.
9702         * modules/realloc-gnu: New file, copied from modules/realloc.
9703         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9704         obsolete.
9705         * modules/mgetgroups (Depends-on): Update.
9706         * doc/posix-functions/realloc.texi: Update.
9707         * NEWS: Mention the change.
9708
9709         Rename module 'calloc' -> 'calloc-gnu'.
9710         * modules/calloc-gnu: New file, copied from modules/calloc.
9711         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9712         obsolete.
9713         * doc/posix-functions/calloc.texi: Update.
9714         * NEWS: Mention the change.
9715
9716         Rename module 'malloc' -> 'malloc-gnu'.
9717         * modules/malloc-gnu: New file, copied from modules/malloc.
9718         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9719         obsolete.
9720         * modules/argp (Depends-on): Update.
9721         * modules/regex (Depends-on): Update.
9722         * doc/posix-functions/malloc.texi: Update.
9723         * NEWS: Mention the change.
9724
9725 2010-08-28  Eric Blake  <eblake@redhat.com>
9726
9727         pread, pwrite: add missing dependency
9728         * modules/pread (Depends-on): Add extensions.
9729         * modules/pwrite (Depends-on): Likewise.
9730
9731 2010-08-28  Bruno Haible  <bruno@clisp.org>
9732
9733         unistr/u*-strchr: Fix tests dependencies.
9734         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9735         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9736         Reported by Ian Beckwith <ianb@erislabs.net>.
9737
9738 2010-08-28  Bruno Haible  <bruno@clisp.org>
9739
9740         read-file: Don't occupy too much unused memory.
9741         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9742
9743 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9744             Eric Blake  <eblake@redhat.com>
9745             Bruno Haible  <bruno@clisp.org>
9746
9747         read-file: Avoid memory reallocations with regular files.
9748         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9749         (fread_file): With regular files, use the remaining length as the
9750         initial buffer size.  Check against overflow.
9751         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9752         sys_stat.
9753
9754 2010-08-28  Bruno Haible  <bruno@clisp.org>
9755
9756         ftello: Relax license.
9757         * modules/ftello (License): Relax to LGPLv2+.
9758         Reported by Eric Blake.
9759
9760 2010-08-28  Bruno Haible  <bruno@clisp.org>
9761
9762         Avoid relocwrapper link errors due to gnulib replacement functions.
9763         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9764         function.
9765         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9766
9767 2010-08-28  Bruno Haible  <bruno@clisp.org>
9768
9769         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9770         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9771         defined.
9772         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9773         Suggested by Eric Blake.
9774
9775 2010-08-28  Bruno Haible  <bruno@clisp.org>
9776
9777         sys_socket, netdb: Ensure socklen_t gets defined.
9778         * modules/sys_socket (Depends-on): Add socklen.
9779         * modules/netdb (Depends-on): Likewise.
9780         * modules/getaddrinfo (Depends-on): Remove socklen.
9781         * modules/getsockopt (Depends-on): Likewise.
9782         * modules/setsockopt (Depends-on): Likewise.
9783         * tests/test-sys_socket.c: Check that socklen_t is defined.
9784         * tests/test-netdb.c: Likewise.
9785         * m4/socklen.m4: Update comments.
9786         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9787
9788 2010-08-27  Eric Blake  <eblake@redhat.com>
9789
9790         login_tty: add missing dependency
9791         * modules/login_tty (Depends-on): Add pty.
9792
9793 2010-08-26  Eric Blake  <eblake@redhat.com>
9794
9795         lib-symbol-versions: fix m4 quoting
9796         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9797         format for AC_LINK_IFELSE.
9798
9799         glob: fix compile test
9800         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9801
9802         btowc: fix missing file
9803         * modules/btowc (Files): Also ship locale-fr.m4.
9804
9805         lseek: fix link test
9806         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9807         AC_LINK_IFELSE.
9808
9809         include_next: silence autoconf 2.68 warning
9810         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9811         AC_COMPILE_IFELSE as special.
9812         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9813         autoconf < 2.68.
9814
9815         acl: fix compilation test
9816         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9817         AC_COMPILE_IFELSE.
9818
9819 2010-08-26  Bruno Haible  <bruno@clisp.org>
9820
9821         Modernize AC_TRY_RUN invocations.
9822         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9823         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9824         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9825         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9826         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9827         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9828         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9829         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9830         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9831         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9832         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9833         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9834         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9835         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9836         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9837         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9838         gl_MBRLEN_NUL_RETVAL): Likewise.
9839         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9840         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9841         Likewise.
9842         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9843         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9844         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9845         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9846         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9847         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9848         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9849         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9850         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9851         Likewise.
9852         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9853         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9854         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9855         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9856         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9857         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9858         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9859         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9860         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9862
9863 2010-08-26  Bruno Haible  <bruno@clisp.org>
9864
9865         Modernize AC_TRY_LINK invocations.
9866         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9867         AC_TRY_LINK.
9868         * m4/argp.m4 (gl_ARGP): Likewise.
9869         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9870         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9871         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9872         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9873         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9874         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9875         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9876         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9877         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9878         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9879         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9880         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9881         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9882         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9883         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9884         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9885         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9886         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9887         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9888         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9889         Likewise.
9890         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9891         Likewise.
9892         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9893         Likewise.
9894         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9895         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9896         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9897         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9898         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9899         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9900         * m4/servent.m4 (gl_SERVENT): Likewise.
9901         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9902         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9903         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9904         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9905         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9906         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9907         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9908         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9909         * modules/tsearch-tests (configure.ac): Likewise.
9910
9911 2010-08-26  Bruno Haible  <bruno@clisp.org>
9912
9913         Modernize AC_TRY_COMPILE invocations.
9914         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9915         AC_TRY_COMPILE.
9916         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9917         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9918         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9919         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9920         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9921         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9922         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9923         * m4/lock.m4 (gl_LOCK): Likewise.
9924         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9925         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9926         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9927         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9928         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9929         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9930         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9931         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9932         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9933         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9934         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9935         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9936         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9937         extraneous semicolon.
9938
9939 2010-08-26  Jim Meyering  <meyering@redhat.com>
9940
9941         stat-time: relax license LGPL
9942         * modules/stat-time (License): Change from GPL to LGPL,
9943         with consent from all contributors, for use in libguile.
9944         Requested by Ludovic Courtès.
9945
9946 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9947
9948         poll: return immediately on POLLHUP.
9949         * lib/poll.c (poll): Always set timeout before wait_timeout is
9950         computed.
9951
9952 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9953
9954         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9955         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9956         rmdir ("dir/.//"), unlinkat.
9957
9958 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9959
9960         stdbool: avoid spurious failure with modern xlc
9961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9962
9963 2010-08-24  Bruno Haible  <bruno@clisp.org>
9964
9965         getloadavg: simplify code
9966         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9967         gl_have_func. Update comments.
9968
9969 2010-08-24  Eric Blake  <eblake@redhat.com>
9970
9971         getloadavg: don't define SVR4 on cygwin
9972         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9973         only define SVR4 when -lkvm is required.
9974         Reported by Yaakov Selkowitz.
9975
9976 2010-08-24  Bruno Haible  <bruno@clisp.org>
9977
9978         priv-set: fix comment
9979         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9980
9981 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9982
9983         priv-set: fix comments
9984         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9985         to match code, as suggested by David Bartley in:
9986         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9987
9988 2010-08-23  Eric Blake  <eblake@redhat.com>
9989
9990         stdbool: avoid rejecting clang
9991         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9992         * tests/test-stdbool.c: Enable more tests if using the system
9993         <stdbool.h> instead of the gnulib replacement.
9994         (main): Move xlc bug test to a runtime test for all compilers.
9995         Reported by Anders Kaseorg.
9996
9997         argz: fix shell quoting issue
9998         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9999         Reported by Charles Wilson.
10000
10001 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10002             Erik Faye-Lund <kusmabite@gmail.com>
10003
10004         poll, select: handle ERROR_BROKEN_PIPE.
10005         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10006         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10007         * lib/select.c (win32_compute_revents): Do not mark a pipe
10008         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10009
10010 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10011
10012         fts: allow compilation with C++
10013         * lib/fts_.h: Specify extern "C" linkage with C++.
10014
10015 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10016
10017         Fix gnulib-tool sed script de-commentation for AIX sed.
10018         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10019         sed.
10020
10021 2010-08-17  Eric Blake  <eblake@redhat.com>
10022
10023         test-stddef: test for (some) offsetof bugs
10024         * tests/test-stddef.c: Enhance test to ensure correct type of
10025         offsetof.
10026         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10027         that we are not fixing at this time.
10028
10029 2010-08-15  Bruno Haible  <bruno@clisp.org>
10030
10031         stpncpy: Allow stpncpy to be defined as a macro.
10032         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10033         if it's already correctly declared.
10034         * lib/string.in.h (stpncpy): Undefine before redefining.
10035         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10036
10037 2010-08-14  Bruno Haible  <bruno@clisp.org>
10038
10039         Rename module 'memxfrm' to 'amemxfrm'.
10040         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10041         (amemxfrm): Renamed from memxfrm.
10042         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10043         (amemxfrm): Renamed from memxfrm.
10044         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10045         * NEWS: Mention the change.
10046         * MODULES.html.sh (String handling <string.h>): Update.
10047         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10048         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10049         * lib/unicase/u16-casexfrm.c: Likewise.
10050         * lib/unicase/u32-casexfrm.c: Likewise.
10051         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10052         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10053         * lib/uninorm/u16-normxfrm.c: Likewise.
10054         * lib/uninorm/u32-normxfrm.c: Likewise.
10055         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10056         memxfrm.
10057         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10058         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10059         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10060         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10061         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10062         Suggested by Paul Eggert.
10063
10064 2010-08-14  Bruno Haible  <bruno@clisp.org>
10065
10066         Tests for module 'astrxfrm'.
10067         * modules/astrxfrm-tests: New file.
10068         * tests/test-astrxfrm.c: New file.
10069
10070         New module 'astrxfrm'.
10071         * lib/astrxfrm.h: New file.
10072         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10073         * modules/astrxfrm: New file.
10074
10075 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10076
10077         regex: Tweak doc.
10078         * doc/regex.texi (Overview): Don't mention regex.c.
10079         (GNU Regular Expression Compiling): Likewise.
10080         (Match-end-of-line Operator): Mention 'not_eol'.
10081
10082 2010-08-14  Brian Gough  <bjg@gnu.org>
10083             Bruno Haible  <bruno@clisp.org>
10084
10085         git-merge-changelog: add doc relating to use with bzr and hg.
10086         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10087
10088 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10089
10090         pthread: fix pthread.h creation for srcdir != builddir
10091         * modules/pthread (Makefile.am): Fix the rule to work also in a
10092         non-srcdir build.
10093
10094 2010-08-13  Karl Berry  <karl@gnu.org>
10095
10096         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10097         * doc/posix-*/*: force line break before @url of POSIX
10098         specifications.
10099         Suggested by Werner Lemberg.
10100
10101 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10102
10103         strtod: fix const diagnostic
10104         * lib/strtod.c (strtod): Don't assign const char * to char *,
10105         as this elicits a warning from GCC when warnings are enabled.
10106
10107 2010-08-10  Pádraig Brady <P@draigbrady.com>
10108         and Eric Blake  <eblake@redhat.com>
10109
10110         copy-acl: ignore ENOTSUP on HP-UX
10111         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10112         so that it is available for HP-UX.
10113         * lib/copy-acl.c (qcopy_acl): Use it.
10114         Reported by Patrick M. Callahan.
10115
10116 2010-08-10  Eric Blake  <eblake@redhat.com>
10117
10118         open, chown: relax license
10119         * modules/open (License): Change to LGPLv2+, with consent by all
10120         authors, for use in augeas.
10121         * modules/chown (License): Likewise.
10122         * modules/lchown (Likewise): Likewise.
10123         Requested by Adam Stokes.
10124
10125 2010-08-09  Karl Berry  <karl@gnu.org>
10126
10127         * build-aux/ar-lib: new file, import from Automake.
10128         * config/srclist.txt: autocheck for updates.
10129
10130 2010-08-09  Eric Blake  <eblake@redhat.com>
10131
10132         readlinkat: adjust client modules
10133         * modules/areadlinkat (Depends-on): Use readlinkat, not
10134         symlinkat.
10135         * modules/areadlinkat-with-size (Depends-on): Likewise.
10136
10137         mknod: be more vocal about danger of running tests as root
10138         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10139         root, since that is just asking for problems.
10140         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10141
10142         readlinkat: split into its own module
10143         * modules/symlinkat: Split readlinkat...
10144         * modules/readlinkat: ...into separate module.
10145         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10146         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10147         * lib/symlinkat.c (readlinkat): Move...
10148         * lib/readlinkat.c: ...into new file.
10149         * modules/symlinkat-tests: Split readlinkat test...
10150         * modules/readlinkat-tests: ...into separate module.
10151         * tests/test-symlinkat.c: Split...
10152         * tests/test-readlinkat.c: ...into new file.
10153         * NEWS: Document the split.
10154         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10155         * lib/unistd.in.h (readlinkat): Likewise.
10156         Suggested by Bruno Haible.
10157
10158 2010-08-08  Bruno Haible  <bruno@clisp.org>
10159
10160         memxfrm: Speed up.
10161         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10162         that usually only one call to strxfrm is necessary for each string
10163         part.
10164         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10165
10166 2010-08-07  Karl Berry  <karl@gnu.org>
10167
10168         * doc/posix-headers/limits.texi,
10169         * doc/posix-functions/malloc.texi,
10170         * doc/posix-functions/strsignal.texi: missing @item.
10171         * doc/ld-version-script.texi: spurious leading i.
10172         * doc/regex.texi (Interval Operators): no commas inside @var.
10173
10174 2010-08-01  Bruno Haible  <bruno@clisp.org>
10175
10176         Integrate the regex documentation.
10177         * doc/gnulib.texi: Define 'cn' index.
10178         (Regular expressions): New a chapter that includes regex.texi and
10179         regexprops-generic.texi.
10180         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10181         syntax.
10182
10183         Whitespace cleanup.
10184         * doc/regex.texi: Remove trailing spaces.
10185
10186         Add regex documentation.
10187         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10188         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10189         Written by Kathy A. Hargreaves and Karl Berry.
10190
10191 2010-08-01  Bruno Haible  <bruno@clisp.org>
10192
10193         link: Update documentation.
10194         * doc/posix-functions/link.texi: Update regarding Solaris.
10195
10196 2010-07-31  Bruno Haible  <bruno@clisp.org>
10197
10198         Update modules list.
10199         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10200         (String handling <string.h>): Add memcmp2, memxfrm.
10201         (Container data structures): Add xlist, xsublist, xoset.
10202         (Core language properties): Add alignof, unused-parameter.
10203         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10204         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10205         (Unibyte characters <ctype.h>): New section.
10206         (String handling <string.h>): New section.
10207         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10208         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10209         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10210         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10211         tan, tanh, tanl, y0, y1, yn.
10212         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10213         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10214         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10215         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10216         unlockpt, vdprintf, vdprintf-posix.
10217         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10218         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10219         xconcat-filename.
10220         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10221         getdtablesize, pipe2, pipe2-safer.
10222         (Security): New section.
10223         (Networking functions): Add accept4.
10224         (Signal handling): Add sigpipe.
10225         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10226         mbmemcasecoll.
10227         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10228         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10229         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10230         pipe-filter-ii.
10231         (Misc): Add argp-version-etc, login_tty, parse-duration.
10232
10233 2010-07-31  Bruno Haible  <bruno@clisp.org>
10234
10235         Improve doc in MODULES.html.
10236         * modules/linkat (Description): Add the word "function".
10237         * modules/mkfifo (Description): Likewise.
10238         * modules/mknod (Description): Likewise.
10239         * modules/remove (Description): Likewise.
10240         * modules/renameat (Description): Likewise.
10241         * modules/stat (Description): Likewise.
10242         * modules/symlink (Description): Likewise.
10243         * modules/unlink (Description): Likewise.
10244
10245 2010-07-31  Bruno Haible  <bruno@clisp.org>
10246
10247         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10248         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10249         option --enable/disable-c++ instead of --enable/disable-cxx.
10250         * NEWS: Mention the change.
10251
10252 2010-07-31  Bruno Haible  <bruno@clisp.org>
10253
10254         readlink, areadlink: Relax test a bit.
10255         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10256         alternative to ENOTDIR.
10257         * tests/test-areadlink.h (test_areadlink): Likewise.
10258         Reported by Rainer Tammer.
10259
10260 2010-07-31  Bruno Haible  <bruno@clisp.org>
10261
10262         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10263         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10264         character, perform the search using U_STRCHR.
10265         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10266         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10267         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10268         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10269         Suggested by Paolo Bonzini.
10270
10271 2010-07-31  Bruno Haible  <bruno@clisp.org>
10272
10273         unistr/u*-strstr: Fix dependencies.
10274         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10275         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10276         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10277
10278 2010-07-31  Bruno Haible  <bruno@clisp.org>
10279
10280         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10281         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10282         the beginning of the loop.
10283         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10284         cases in 'switch' statement.
10285
10286         unistr/u8-strchr: Fix several bugs.
10287         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10288         the string. When not found, return NULL, not a pointer near the end.
10289
10290         More tests for unistr/u8-strchr.
10291         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10292         that the function does not read past the first occurrence of the byte
10293         being searched.
10294         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10295         * tests/unistr/test-u16-strchr.c (main): New function.
10296         * tests/unistr/test-u32-strchr.c (main): New function.
10297
10298 2010-07-31  Bruno Haible  <bruno@clisp.org>
10299
10300         posix-modules: Ignore backup files of documentation files.
10301         * posix-modules: grep only through files named *.texi.
10302
10303 2010-07-31  Bruno Haible  <bruno@clisp.org>
10304
10305         symlinkat: Fix documentation.
10306         * doc/posix-functions/readlinkat.texi: Fix module name.
10307
10308 2010-07-31  Bruno Haible  <bruno@clisp.org>
10309
10310         fchownat: Replace also when chown has the trailing slash bug.
10311         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10312         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10313         introduced on 2010-04-10.
10314         Reported by Rainer Tammer.
10315
10316 2010-07-31  Bruno Haible  <bruno@clisp.org>
10317
10318         linkat: Work around AIX 7.1 bug.
10319         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10320         whether linkat handles trailing slash correctly. If not, replace linkat
10321         and define LINKAT_TRAILING_SLASH_BUG.
10322         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10323         check whether (fd1,file1) points to a directory if file1 or file2 ends
10324         in a slash. Code taken from lib/link.c.
10325         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10326         Reported by Rainer Tammer.
10327
10328 2010-07-31  Bruno Haible  <bruno@clisp.org>
10329
10330         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10331         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10332         This disables an xlc optimization that was causing wrong test results.
10333         Reported by Rainer Tammer.
10334
10335 2010-07-31  Bruno Haible  <bruno@clisp.org>
10336
10337         iconv: Work around AIX 6.1..7.1 bug.
10338         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10339         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10340         cross-compiling, guess no on all versions of AIX.
10341         Reported by Rainer Tammer.
10342
10343 2010-07-31  Bruno Haible  <bruno@clisp.org>
10344
10345         readlink: Relax test a bit.
10346         * tests/test-readlink.h (test_readlink): Allow different errno value
10347         when readlink is called with a file name that ends in / and refers to
10348         a file.
10349         Suggested by Eric Blake.
10350         Reported by Rainer Tammer.
10351
10352 2010-07-31  Bruno Haible  <bruno@clisp.org>
10353
10354         copysign: Does not require -lm on glibc systems.
10355         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
10356         gl_COMMON_DOUBLE_MATHFUNC.
10357         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
10358
10359 2010-07-31  Bruno Haible  <bruno@clisp.org>
10360
10361         duplocale: Work around AIX 7.1 bug.
10362         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
10363         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
10364         * lib/duplocale.c (rpl_duplocale): Update comment.
10365         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
10366         Reported by Rainer Tammer.
10367
10368 2010-07-30  Bruno Haible  <bruno@clisp.org>
10369
10370         dirfd: Avoid link error on AIX 7.1.
10371         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
10372         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
10373         exist, set REPLACE_DIRFD.
10374         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
10375         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
10376         * doc/posix-functions/dirfd.texi: Update.
10377         Reported by Rainer Tammer.
10378
10379 2010-07-30  Eric Blake  <eblake@redhat.com>
10380
10381         strtod: next round of AIX fixes
10382         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
10383         exponent.
10384         * tests/test-strtod.c (main): Enhance tests.
10385         * doc/posix-functions/strtod.texi (strtod): Document next bug.
10386         Reported by Rainer Tammer.
10387
10388         futimens: fix configure check
10389         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
10390         Reported by Bruno Haible.
10391
10392 2010-07-30  Bruno Haible  <bruno@clisp.org>
10393
10394         getline: Update regarding AIX.
10395         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
10396         Reported by Rainer Tammer.
10397
10398 2010-07-30  Bruno Haible  <bruno@clisp.org>
10399
10400         wcwidth: Drop replacement on AIX 7.
10401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
10402         AIX 7.
10403         Reported by Rainer Tammer.
10404
10405 2010-07-30  Bruno Haible  <bruno@clisp.org>
10406
10407         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
10408         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
10409         a 'char *'.
10410         Reported by Rainer Tammer.
10411
10412 2010-07-30  Bruno Haible  <bruno@clisp.org>
10413
10414         unlink: Update regarding AIX.
10415         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
10416         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
10417         Reported by Rainer Tammer.
10418
10419 2010-07-30  Bruno Haible  <bruno@clisp.org>
10420
10421         symlink: Update regarding AIX.
10422         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
10423         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
10424         Reported by Rainer Tammer.
10425
10426 2010-07-30  Bruno Haible  <bruno@clisp.org>
10427
10428         strndup: Update regarding AIX.
10429         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
10430         AIX 7.
10431         Reported by Rainer Tammer.
10432
10433 2010-07-30  Bruno Haible  <bruno@clisp.org>
10434
10435         stat: Update regarding AIX.
10436         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
10437         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
10438         Reported by Rainer Tammer.
10439
10440 2010-07-30  Bruno Haible  <bruno@clisp.org>
10441
10442         truncl: Fix autoconf test.
10443         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
10444         whether truncl works.
10445         Reported by Rainer Tammer.
10446
10447 2010-07-30  Bruno Haible  <bruno@clisp.org>
10448
10449         round: Update regarding AIX.
10450         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
10451         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
10452         Reported by Rainer Tammer.
10453
10454 2010-07-30  Bruno Haible  <bruno@clisp.org>
10455
10456         rename: Update regarding AIX.
10457         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
10458         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
10459         Reported by Rainer Tammer.
10460
10461 2010-07-30  Bruno Haible  <bruno@clisp.org>
10462
10463         printf.m4: Update regarding AIX.
10464         * m4/printf.m4: Update comments regarding AIX.
10465         Reported by Rainer Tammer.
10466
10467 2010-07-30  Bruno Haible  <bruno@clisp.org>
10468
10469         iconv: Update regarding AIX.
10470         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
10471         AIX 7.
10472         Reported by Rainer Tammer.
10473
10474 2010-07-30  Bruno Haible  <bruno@clisp.org>
10475
10476         getopt: Update regarding AIX.
10477         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
10478         no on AIX.
10479         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
10480         Reported by Rainer Tammer.
10481
10482 2010-07-30  Bruno Haible  <bruno@clisp.org>
10483
10484         ldexpl; Update regarding AIX.
10485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
10486         on AIX 7.
10487         Reported by Rainer Tammer.
10488
10489 2010-07-30  Bruno Haible  <bruno@clisp.org>
10490
10491         frexpl: Update regarding AIX.
10492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
10493         on AIX 7.
10494         Reported by Rainer Tammer.
10495
10496 2010-07-30  Bruno Haible  <bruno@clisp.org>
10497
10498         open, fopen: Update regarding AIX.
10499         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
10500         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10501         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
10502         * doc/posix-functions/fopen.texi: Likewise.
10503         Reported by Rainer Tammer.
10504
10505 2010-07-30  Bruno Haible  <bruno@clisp.org>
10506
10507         chown: Update doc regarding AIX.
10508         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
10509         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
10510         Reported by Rainer Tammer.
10511
10512 2010-07-30  Eric Blake  <eblake@redhat.com>
10513
10514         strtod: fix bug in replacement function on AIX
10515         * lib/strtod.c (strtod): Special case broken "0x" parse in
10516         underlying strtod.
10517         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
10518         * doc/posix-functions/strtod.texi (strtod): Likewise.
10519         Reported by Rainer Tammer.
10520
10521 2010-07-30  Bruno Haible  <bruno@clisp.org>
10522
10523         mbrlen: Fix cross-compilation guess for AIX.
10524         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
10525         guess. Leftover from 2008-12-22.
10526
10527 2010-07-30  Bruno Haible  <bruno@clisp.org>
10528
10529         mbrtowc: Fix cross-compilation guess for AIX.
10530         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
10531         guess. Leftover from 2008-12-21.
10532
10533 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
10534
10535         init.sh: work around trap limitation of some shells
10536         * tests/init.sh (setup_): Move exit trap outside of shell function.
10537
10538 2010-07-29  Eric Blake  <eblake@redhat.com>
10539
10540         strtod: aid debugging
10541         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
10542         understanding why strtod is rejected.
10543
10544 2010-07-28  Bruno Haible  <bruno@clisp.org>
10545
10546         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
10547         * lib/unistr/u8-chr.c: Include <string.h>.
10548         * tests/unistr/test-u8-chr.c: Likewise.
10549         * tests/unistr/test-u16-chr.c: Likewise.
10550         * tests/unistr/test-u32-chr.c: Likewise.
10551         * tests/unistr/test-u8-strchr.c: Likewise.
10552         * tests/unistr/test-u16-strchr.c: Likewise.
10553         * tests/unistr/test-u32-strchr.c: Likewise.
10554         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10555         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10556         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10557         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10558
10559 2010-07-28  Bruno Haible  <bruno@clisp.org>
10560
10561         Use spaces for indentation, not tabs.
10562         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10563
10564 2010-07-27  Bruno Haible  <bruno@clisp.org>
10565
10566         mbspcasecmp: Fix function specification.
10567         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10568         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10569         Reported by Eric Blake <eblake@redhat.com>.
10570
10571 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10572
10573         timespec: use cast and not conditional, as truncation isn't possible
10574         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10575         instead of a conditional.  Comment about the situation in more detail.
10576         This undoes most of the 2009-10-29 patch.
10577
10578 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10579
10580         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10581         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10582         * lib/unistr/u8-strchr.c: Likewise.
10583         * modules/unistr/u8-chr: Depend on memchr.
10584
10585         unistr/u*-strchr: add tests
10586         * modules/unistr/u8-strchr-tests: New file.
10587         * modules/unistr/u16-strchr-tests: New file.
10588         * modules/unistr/u32-strchr-tests: New file.
10589         * tests/unistr/test-strchr.h: New file.
10590         * tests/unistr/test-u8-strchr.c: New file.
10591         * tests/unistr/test-u16-strchr.c: New file.
10592         * tests/unistr/test-u32-strchr.c: New file.
10593
10594         unistr/u*-chr: test multibyte sequences more
10595         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10596         test vector.
10597         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10598         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10599         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10600
10601         unistr/u*-chr: test multibyte sequences
10602         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10603
10604         unistr/u*-chr: prepare for multibyte tests
10605         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10606         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10607         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10608         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10609         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10610         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10611
10612 2010-07-18  Bruno Haible  <bruno@clisp.org>
10613
10614         unistr/u8-strchr: Optimize non-ASCII argument case.
10615         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10616         because the first byte often matches anyway.
10617         Reported by Pádraig Brady <P@draigbrady.com>.
10618
10619 2010-07-15  Karl Berry  <karl@gnu.org>
10620
10621         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10622
10623 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10624
10625         getcwd: on Solaris, work better if ancestors are inaccessible
10626         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10627         buffer and size, try again with a large buffer.  This works better
10628         on Solaris, since its getcwd succeeds even if the path to the root
10629         is inaccessible, and this is helpful in common cases such as .zfs
10630         hidden directories.  Problem reported by J Chapman Flack in
10631         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10632         Use system getcwd if it's declared, not merely if it's partly
10633         working; use the partly-working test only to avoid needless effort
10634         if the system getcwd fails.
10635         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10636         comment that was already obsolete and is now even more obsolete.
10637         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10638         now might call strdup.
10639
10640 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10641
10642         pthread: Add enough so that coreutils/src/sort.c compiles.
10643         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10644         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10645         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10646         Include <sys/types.h>, in case it defines pthread_t.
10647         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10648         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10649         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10650         (pthread_rwlockattr_t, pthread_spinlock_t):
10651         New typedefs, if HAVE_PTHREAD_T is not defined.
10652         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10653         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10654         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10655         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10656         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10657         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10658         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10659         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10660         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10661         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10662         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10663         New macros.
10664         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10665         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10666         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10667         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10668         (pthread_spin_unlock): New dummy functions.
10669         (pthread_create): Return EAGAIN; don't set errno.
10670         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10671         require AC_C_INLINE.
10672         * modules/pthread (Depends-on): Add sched, time.
10673         (pthread.h): Use AM_V_GEN.
10674
10675 2010-07-13  Bruno Haible  <bruno@clisp.org>
10676
10677         striconveh: Don't malloc memory if the result buffer is sufficient.
10678         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10679         buffer if its size is sufficient.
10680         Reported by Ludovic Courtès <ludo@gnu.org>.
10681
10682 2010-07-13  Bruno Haible  <bruno@clisp.org>
10683
10684         strtod: Add safety check.
10685         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10686
10687 2010-07-12  Bruno Haible  <bruno@clisp.org>
10688
10689         Unify tests that set gl_cv_func_ldexpl_no_libm.
10690         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10691         gl_FUNC_LDEXPL.
10692         (gl_FUNC_LDEXPL): Invoke it.
10693         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10694
10695 2010-07-12  Bruno Haible  <bruno@clisp.org>
10696
10697         Unify tests that set gl_cv_func_ldexp_no_libm.
10698         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10699         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10700         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10701         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10702         * modules/strtod (Files): Add m4/ldexp.m4.
10703
10704 2010-07-12  Bruno Haible  <bruno@clisp.org>
10705
10706         Unify tests that set gl_cv_func_frexpl_no_libm.
10707         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10708         gl_FUNC_FREXPL_NO_LIBM.
10709         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10710         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10711
10712 2010-07-12  Bruno Haible  <bruno@clisp.org>
10713
10714         Unify tests that set gl_cv_func_frexp_no_libm.
10715         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10716         gl_FUNC_FREXP_NO_LIBM.
10717         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10718         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10719
10720 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10721
10722         memcoll: clarify sizes versus lengths, document better, and tweak perf
10723         * lib/memcoll.c (strcoll_loop, memcoll0):
10724         Improve quality of descriptive comments.  Name variables
10725         consistently as to whether they are lengths (which do not include
10726         terminating null) versus sizes (which do).
10727         * lib/xmemcoll.c (xmemcoll0): Likewise.
10728         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10729         returned when s1size == 0; this is easier to compile and saves
10730         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10731
10732 2010-07-12  Bruno Haible  <bruno@clisp.org>
10733
10734         Tests for module '_Exit'.
10735         * modules/_Exit-tests: New file.
10736         * tests/test-_Exit.sh: New file.
10737         * tests/test-_Exit.c: New file.
10738
10739         New module '_Exit'.
10740         * lib/stdlib.in.h (__attribute__): New macro.
10741         (_Exit): New declaration.
10742         * lib/_Exit.c: New file.
10743         * m4/_Exit.m4: New file.
10744         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10745         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10746         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10747         * modules/_Exit: New file.
10748         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10749         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10750
10751 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10752
10753         strtod: make it more-accurate typically, and don't require libm
10754         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10755         Include limits.h.  Don't include string.h.
10756         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10757         (locale_isspace): New function, so that no casts are needed to
10758         check whether *s is a space.
10759         (ldexp): Provide an unused dummy if not available.
10760         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10761         (strtod): Use them.  This implementation prefers to use the
10762         underlying strtod if available, falling back on our own code
10763         only to fix known bugs.  This is more likely to produce an
10764         accurate result.  Also, it avoids the use of libm functions.
10765         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10766         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10767         was absent, but it caused a test failure with coreutils.
10768         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10769         with libm.
10770         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10771         * modules/strtod-tests (Makefile.am): Likewise.
10772
10773 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10774             Bruno Haible  <bruno@clisp.org>
10775
10776         unistr/u8-strchr: Optimize ASCII argument case.
10777         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10778
10779 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10780
10781         (x)memcoll: minor tweaks
10782         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10783         is after the type that it qualifies.
10784         (memcoll0): Likewise.
10785         * lib/memcoll.h (memcoll0): Likewise.
10786         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10787         * lib/xmemcoll.h (xmemcoll0): Likewise.
10788         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10789         differs from memcoll in that the NUL byte is part of the argument.
10790         Omit the abort-checks, as performance is a real issue here.  Plus,
10791         the checks were wrong anyway (an off-by-one error).  Omit local
10792         variable 'diff', as it's a bit clearer that way.
10793         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10794         no longer needed.
10795
10796 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10797
10798         (x)memcoll: speedup when input is known to be NUL delimited
10799         * lib/memcoll.c: Include stdlib.
10800         (memcoll0) New function.
10801         (strcoll_loop) New function, refactored for use in both memcoll
10802         and memcoll0.
10803         * lib/memcoll.h: Add prototype for memcoll0.
10804         * lib/xmemcoll.c: (xmemcoll0) New function.
10805         (collate_error) New function, refactored for use in both xmemcoll
10806         and xmemcoll0.
10807         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10808         * m4/memcoll.m4: add inline invocation.
10809
10810 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10811
10812         * build-aux/bootstrap: Remove any local translations
10813         from the translation project synchronization directory,
10814         so that local only translations are not distributed.
10815
10816 2010-07-04  Bruno Haible  <bruno@clisp.org>
10817
10818         fsusage: Clarify which code applies to which platforms.
10819         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10820         platform.
10821         * lib/fsusage.c (get_fs_usage): Likewise.
10822
10823 2010-07-04  Bruno Haible  <bruno@clisp.org>
10824
10825         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10826         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10827         Reported by Martin Lambers <marlam@marlam.de>.
10828
10829 2010-07-04  Jim Meyering  <meyering@redhat.com>
10830
10831         hash: once again explicitly disallow insertion of NULL
10832         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10833         inserting a NULL pointer cannot work with these functions.
10834         Add a comment with details.
10835         This reverts part of the 2010-07-01 commit, 5bef1a35
10836         "hash: extend module to deal with non-pointer keys".
10837
10838 2010-07-01  Bruno Haible  <bruno@clisp.org>
10839
10840         stdbool: Update doc.
10841         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10842         Info from Christian Weisgerber <naddy@mips.inka.de>.
10843
10844 2010-07-01  Jim Meyering  <meyering@redhat.com>
10845
10846         hash: extend module to deal with non-pointer keys
10847         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10848         but that allows insertion of non-pointer entries.
10849         Do not disallow an ENTRY value of NULL.
10850         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10851         * lib/hash.h (hash_insert0): Declare.
10852
10853 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10854
10855         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10856         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10857         not present (i.e. with autoconf 2.59 and when using gettextize, not
10858         gnulib), require AC_GNU_SOURCE instead.
10859
10860 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10861
10862         idpriv-drop: Fix tests.
10863         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10864         not to the test-idpriv-droptemp program.
10865
10866 2010-06-29  Bruno Haible  <bruno@clisp.org>
10867
10868         string: Fix syntax error with g++ 2.96.
10869         * lib/string.in.h (__pure__): Remove definition.
10870         (_GL_ATTRIBUTE_PURE): New macro.
10871         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10872         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10873         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10874
10875 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10876
10877         unitypes: Fix bug introduced on 2010-05-18.
10878         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10879
10880 2010-06-22  Eric Blake  <eblake@redhat.com>
10881
10882         memmem: slight optimization
10883         * lib/str-two-way.h (critical_factorization): Update comments.
10884         Reduce work during factorization phase.
10885         Reported by Carlos Bueno <carlos@bueno.org>.
10886
10887 2010-06-21  Bruno Haible  <bruno@clisp.org>
10888
10889         Fix HAVE_CALLOC_POSIX misnomer.
10890         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10891         !HAVE_CALLOC_POSIX.
10892         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10893         HAVE_CALLOC_POSIX.
10894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10895         instead of HAVE_CALLOC_POSIX.
10896         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10897         HAVE_CALLOC_POSIX.
10898
10899         Use modern idiom for calloc() replacement.
10900         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10901         AC_FUNC_CALLOC.
10902         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10903         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10904         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10905         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10906         (gl_REPLACE_CALLOC): New macro.
10907
10908 2010-06-21  Bruno Haible  <bruno@clisp.org>
10909
10910         Fix HAVE_REALLOC_POSIX misnomer.
10911         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10912         !HAVE_REALLOC_POSIX.
10913         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10914         HAVE_REALLOC_POSIX.
10915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10916         instead of HAVE_REALLOC_POSIX.
10917         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10918         HAVE_REALLOC_POSIX.
10919
10920         Use modern idiom for realloc() replacement.
10921         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10922         AC_FUNC_REALLOC.
10923         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10924         Autoconf's AC_FUNC_REALLOC.
10925         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10926         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10927         (gl_REPLACE_REALLOC): New macro.
10928         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10929
10930 2010-06-21  Bruno Haible  <bruno@clisp.org>
10931
10932         Fix HAVE_MALLOC_POSIX misnomer.
10933         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10934         !HAVE_MALLOC_POSIX.
10935         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10936         HAVE_MALLOC_POSIX.
10937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10938         instead of HAVE_MALLOC_POSIX.
10939         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10940         HAVE_MALLOC_POSIX.
10941
10942         Use modern idiom for malloc() replacement.
10943         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10944         AC_FUNC_MALLOC.
10945         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10946         Autoconf's AC_FUNC_MALLOC.
10947         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10948         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10949         (gl_REPLACE_MALLOC): New macro.
10950         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10951
10952 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10953
10954         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10955         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10956         This macro takes 3 arguments, not 4.
10957
10958 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10959
10960         ipv6: fix detection under mingw
10961         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10962         in6_addr.
10963
10964 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10965
10966         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10967         that strtod() works when cross-compiling to a glibc version known
10968         to work.
10969
10970 2010-06-15  Bruno Haible  <bruno@clisp.org>
10971
10972         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10973
10974 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10975
10976         select: Correct timeout.
10977         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10978
10979 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10980
10981         git-version-gen: init shell var to avoid env var influence
10982         * build-aux/git-version-gen (v): Init shell var to empty.
10983
10984 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10985
10986         priv-set: Don't assume that priv.h exists merely because getppriv does.
10987         See Jan Andersen's bug report about AIX 5L in
10988         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10989         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10990         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10991         * lib/priv-set.h: Likewise.
10992         * tests/test-priv-set.c: Likewise.
10993
10994 2010-06-13  Bruno Haible  <bruno@clisp.org>
10995
10996         relocatable: Make it easier to test whether to install wrappers.
10997         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10998         RELOCATABLE_VIA_WRAPPER.
10999
11000 2010-06-13  Bruno Haible  <bruno@clisp.org>
11001
11002         gnulib-tool: Display specified modules and dependencies differently.
11003         * gnulib-tool (func_show_module_list): New function.
11004         (func_import, func_create_testdir): Invoke it.
11005         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11006
11007 2010-06-13  Bruno Haible  <bruno@clisp.org>
11008
11009         gnulib-tool: Align code of func_import and func_create_testdir.
11010         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11011         specified_modules.
11012
11013 2010-06-12  Jim Meyering  <meyering@redhat.com>
11014
11015         test-inttostr: avoid spurious failure on Solaris 9
11016         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11017         to accept "%ju".  Reported by Bruno Haible.
11018
11019 2010-06-11  Jim Meyering  <meyering@redhat.com>
11020
11021         test-sys_socket: mark variables as used more readably
11022         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11023         as "used" explicitly via (void) statement casts.  This is more
11024         readable than using them in an artificial return expression.
11025         Suggestion from Bruno Haible.
11026
11027 2010-06-11  Bruno Haible  <bruno@clisp.org>
11028
11029         Avoid some more warnings from "gcc -Wwrite-strings".
11030         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11031         to 'const char *'.
11032         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11033         * tests/test-c-strcasestr.c (main): Likewise.
11034         * tests/test-mbscasestr1.c (main): Likewise.
11035         * tests/test-mbscasestr2.c (main): Likewise.
11036         * tests/test-memmem.c (main): Likewise.
11037         * tests/test-strstr.c (main): Likewise.
11038         * tests/test-strcasestr.c (main): Likewise.
11039
11040 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11041
11042         init.sh: change framework_failure_ to fail with status 99, not 1
11043         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11044         automake's parallel-tests rule that this is an unexpected failure,
11045         even if the test is listed in XFAIL_TESTS.
11046
11047 2010-06-11  Jim Meyering  <meyering@redhat.com>
11048
11049         test-inttostr: avoid warnings about 4-6KB literal strings
11050         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11051         Include "macros.h", for its definition of ASSERT.
11052         (CK): s/assert/ASSERT/
11053         * modules/inttostr-tests (Files): Add macros.h.
11054
11055         init.sh: don't use $ME_ or skip_ before they are defined
11056         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11057         their first uses.  Also hoist their companions: warn_, fail_,
11058         framework_failure_, $stderr_fileno.  Prompted by a patch from
11059         Stefano Lattarini.
11060
11061         test-sys_socket: avoid set-but-not-used warnings from gcc
11062         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11063         avoid warning about set-but-not-used variables.
11064
11065         test-xvasprintf: avoid 'const' discard warnings
11066         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11067         "const" when assigning from literal strings.
11068         (test_xasprintf): Add "void" in function argument list to placate
11069         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11070
11071         tests: avoid compilation warnings in argmatch and exclude tests...
11072         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11073         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11074         Since it always exits, declare with the "noreturn" attribute.
11075         * tests/test-argmatch.c: Likewise.
11076
11077         tests: avoid 'const' discard warnings in mbsstr tests
11078         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11079         * tests/test-mbsstr2.c (main): Likewise.
11080
11081         test-verify: avoid warning from gcc's -Wmissing-declarations
11082         * tests/test-verify.c (function): Declare to be static.
11083
11084         test-inttostr.c: include <string.h> for use of strcmp
11085         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11086
11087         test-linkat: avoid failed assertion on "other" architectures
11088         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11089         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11090         sparc: https://bugs.launchpad.net/bugs/591968
11091
11092 2010-06-11  Jim Meyering  <meyering@redhat.com>
11093
11094         printf.m4: avoid autoconf's "Expanded Before Required" warning
11095         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11096         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11097         autoconf warning.
11098
11099 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11100
11101         Replacement header templates are now named with ".in", not "_".
11102         * doc/gnulib-intro.texi: Correct.
11103
11104 2010-06-10  Jim Meyering  <meyering@redhat.com>
11105
11106         inttostr-tests: depend on snprintf, not snprintf-posix
11107         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11108         snprintf-posix, to avoid this aclocal failure:
11109           missing file gnulib-tests/vasnprintf.c
11110           configure.ac:45: error: expected source file, required through \
11111           AC_LIBSOURCES, not found
11112
11113 2010-06-10  Jim Meyering  <meyering@redhat.com>
11114
11115         inttostr: add a new function, inttostr, and tests
11116         The namesake function was not available.  The existence of the
11117         template file, inttostr.c makes its addition nontrivial.
11118         * lib/anytostr.c: Rename from inttostr.c.
11119         (anytostr): Rename from inttostr.
11120         * lib/inttostr.c: New file.
11121         * modules/inttostr (Files): Add anytostr.c.
11122         (Makefile.am): Set lib_SOURCES instead of ...
11123         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11124         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11125         * lib/offtostr.c: Likewise.
11126         * lib/uinttostr.c: Likewise.
11127         * lib/umaxtostr.c: Likewise.
11128         * modules/inttostr-tests: New file.
11129         * tests/test-inttostr.c: New file.  Test these functions.
11130
11131 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11132             Bruno Haible  <bruno@clisp.org>
11133
11134         Add "Extending Gnulib" chapter to manual.
11135         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11136         chapter.
11137         (Extending Gnulib): New chapter.
11138         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11139         chapter.
11140
11141 2010-06-09  Bruno Haible  <bruno@clisp.org>
11142
11143         Avoid relocwrapper link errors due to gnulib replacement functions.
11144         * lib/areadlink.c: Use the system's malloc, realloc functions.
11145         (areadlink): Set errno to ENOMEM explicitly.
11146         * modules/areadlink (Depends-on): Remove malloc-posix.
11147         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11148
11149 2010-06-09  Bruno Haible  <bruno@clisp.org>
11150
11151         Avoid relocwrapper link errors due to gnulib replacement functions.
11152         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11153         * lib/malloca.c: Likewise.
11154         * lib/relocatable.c: Likewise.
11155         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11156         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11157         * lib/setenv.c: Use the system's malloc, realloc functions.
11158         * lib/strerror.c: Use the system's sprintf function.
11159         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11160
11161 2010-06-04  Bruno Haible  <bruno@clisp.org>
11162
11163         Prefer documented low-level autoconf macro names.
11164         * m4/lib-link.m4: Use m4_translit instead of translit.
11165         * m4/environ.m4: Likewise.
11166         * m4/mathfunc.m4: Likewise.
11167         * m4/onceonly.m4: Likewise.
11168         * m4/stdint.m4: Likewise.
11169         Suggested by Eric Blake.
11170
11171 2010-06-04  Martin Lambers  <marlam@marlam.de>
11172             Bruno Haible  <bruno@clisp.org>
11173
11174         havelib: Allow library names with '+' characters.
11175         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11176         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11177
11178 2010-06-09  Bruno Haible  <bruno@clisp.org>
11179
11180         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11181         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11182         realloc failed.
11183
11184 2010-06-08  Peter Simons  <simons@cryp.to>
11185
11186         maint.mk: make the news-check rule more configurable
11187         * top/maint.mk (news-check-lines-spec) New variable.
11188         (news-check): Use "sed -n 1,10p" in place of "head".
11189
11190 2010-06-07  Jim Meyering  <meyering@redhat.com>
11191
11192         do-release-commit-and-tag: fix typo in --help
11193         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11194
11195         regex: avoid new dead-code warning with gcc-4.6.0
11196         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11197         if-block containing a while-loop.  It's been unused for at least
11198         5 years.
11199
11200 2010-06-05  Bruno Haible  <bruno@clisp.org>
11201
11202         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11203         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11204
11205 2010-06-04  Bruno Haible  <bruno@clisp.org>
11206
11207         Update to GNU gettext 0.18.1.
11208         * modules/gettext (configure.ac): Require gettext infrastructure from
11209         version 0.18.1.
11210
11211 2010-06-03  Bruno Haible  <bruno@clisp.org>
11212
11213         Don't use AC_LIBOBJ with file names in subdirectories.
11214         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11215         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11216         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11217         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11218         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11219         gl_LIBUNISTRING_LIBSOURCE.
11220         (Makefile.am): Augment lib_SOURCES here, conditionally.
11221         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11222
11223 2010-06-03  Bruno Haible  <bruno@clisp.org>
11224
11225         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11226         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11227         expansion does not end with a newline.
11228         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11229         unnecessary newline.
11230
11231 2010-06-03  Bruno Haible  <bruno@clisp.org>
11232
11233         Reduce dependencies.
11234         * tests/test-quotearg.h: New file, extracted from
11235         tests/test-quotearg.c.
11236         * tests/test-quotearg-simple.c: New file, extracted from
11237         tests/test-quotearg.c.
11238         * tests/test-quotearg.c: Don't include <ctype.h>.
11239         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11240         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11241         use_quote_double_quotes, use_quotearg_colon): Moved to
11242         tests/test-quotearg.h.
11243         (results_g, flag_results, custom_quotes, custom_results): Moved
11244         to tests/test-quotearg-simple.c.
11245         (main): Moved the part that does not depend on gettext to
11246         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11247         performed.
11248         * modules/quotearg-simple: New file.
11249         * modules/quotearg-simple-tests: New file.
11250         * modules/quotearg (Depends-on): Add quotearg-simple.
11251         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11252         (Files): Add tests/test-quotearg.h.
11253         Reported by Paolo Bonzini.
11254
11255 2010-06-03  Bruno Haible  <bruno@clisp.org>
11256
11257         Reduce dependencies.
11258         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11259
11260 2010-06-03  Bruno Haible  <bruno@clisp.org>
11261
11262         time: Undefine more broken macros.
11263         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11264         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11265         Reported by Eric Blake.
11266
11267 2010-06-03  Bruno Haible  <bruno@clisp.org>
11268
11269         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11270         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11271         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11272         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11273         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11274         Reported by Ludovic Courtès <ludo@gnu.org>.
11275
11276 2010-06-02  Eric Blake  <eblake@redhat.com>
11277
11278         time: work with mingw + pthreads-win32 library
11279         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11280         if timespec is defined only in pthread.h.
11281         * modules/time (Makefile.am): Substitute it.
11282         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11283         <pthread.h>, when needed.
11284         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11285         from the library.
11286
11287 2010-05-31  Bruno Haible  <bruno@clisp.org>
11288
11289         Avoid expanding two macros in the wrong order.
11290         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11291         gl_LIBUNISTRING if it is defined.
11292         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11293         autoconf >= 2.64.
11294         Reported by Ludovic Courtès <ludo@gnu.org>.
11295
11296 2010-05-27  Jim Meyering  <meyering@redhat.com>
11297
11298         maint.mk: also prohibit "#undef" of always-defined symbols
11299         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11300         Allow more than one space before the symbol name.
11301         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11302         the regexp uses alternation.
11303
11304 2010-05-26  Eric Blake  <eblake@redhat.com>
11305
11306         maint.mk: avoid echo -e
11307         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11308         Convert all uses of echo -* to printf.
11309         Reported by Matthias Bolte.
11310
11311 2010-05-25  Bruno Haible  <bruno@clisp.org>
11312
11313         Update to GNU gettext 0.18, part 2.
11314         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11315         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11316
11317 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11318
11319         Add missing include in test-pwrite.c.
11320         * tests/test-pwrite.c: Include string.h, for strcmp.
11321
11322 2010-05-24  Bruno Haible  <bruno@clisp.org>
11323
11324         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11325
11326 2010-05-24  Bruno Haible  <bruno@clisp.org>
11327
11328         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11329         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11330         iconveh_error argument.
11331         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11332         U_STRCONV_TO_LOCALE.
11333         * lib/unistr/u16-strcoll.c: Likewise.
11334         * lib/unistr/u32-strcoll.c: Likewise.
11335         * modules/unistr/u8-strcoll (Depends-on): Add
11336         uniconv/u8-strconv-to-enc, localcharset. Remove
11337         uniconv/u8-strconv-to-locale.
11338         (configure.ac): Bump version number.
11339         * modules/unistr/u16-strcoll (Depends-on): Add
11340         uniconv/u16-strconv-to-enc, localcharset. Remove
11341         uniconv/u16-strconv-to-locale.
11342         (configure.ac): Bump version number.
11343         * modules/unistr/u32-strcoll (Depends-on): Add
11344         uniconv/u32-strconv-to-enc, localcharset. Remove
11345         uniconv/u32-strconv-to-locale.
11346         (configure.ac): Bump version number.
11347
11348 2010-05-24  Bruno Haible  <bruno@clisp.org>
11349
11350         Avoid a test failure on NetBSD 5.0.
11351         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
11352         an iconv() bug.
11353
11354 2010-05-24  Bruno Haible  <bruno@clisp.org>
11355
11356         Adjust #include directive style.
11357         * modules/regex (Includes): Recommend to write <regex.h>.
11358
11359 2010-05-24  Bruno Haible  <bruno@clisp.org>
11360
11361         regex: Don't require alloca.
11362         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
11363         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
11364         only inside if (0).
11365
11366 2010-05-23  Jim Meyering  <meyering@redhat.com>
11367
11368         test-renameat.c: include <sys/stat.h>
11369         * tests/test-renameat.c: Include <sys/stat.h>; required for
11370         definition of S_IS* macros.
11371
11372 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
11373
11374         Update maintainer documentation for 'relocatable-prog' module.
11375         * doc/relocatable-maint.texi: Update.
11376         Comments by Bruno Haible.
11377
11378 2010-05-23  Bruno Haible  <bruno@clisp.org>
11379
11380         git-merge-changelog: Enable --split-merged-entry by default.
11381         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
11382         (usage): Don't mention this option any more.
11383         Reported by Ralf Wildenhues.
11384
11385 2010-05-23  Jim Meyering  <meyering@redhat.com>
11386
11387         test-pwrite: do not leave behind a test file named "out"
11388         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
11389         The trivial-looking use of init.sh is really necessary.
11390         It ensures that the temporary file, "out", is created in
11391         a temporary directory, and removed upon termination.
11392         * tests/test-pwrite.sh: Re-add file.
11393         * modules/pwrite-tests: Reference it.
11394
11395 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11396
11397         Fix output redirection buglet in init.sh.
11398         * tests/init.sh: Fix redirection of stderr.
11399
11400 2010-05-20  Simon Josefsson  <simon@josefsson.org>
11401
11402         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
11403
11404 2010-05-17  Simon Josefsson  <simon@josefsson.org>
11405
11406         * modules/valgrind-tests: New file.
11407         * m4/valgrind-tests.m4: New file.
11408         * doc/valgrind-tests.texi: New file.
11409         * doc/gnulib.texi (Running self-tests under valgrind): New
11410         section.
11411
11412 2010-05-19  Bruno Haible  <bruno@clisp.org>
11413
11414         Clean up dead code in recent commit.
11415         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
11416         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
11417         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
11418         Suggested by Paolo Bonzini.
11419
11420 2010-05-19  Bruno Haible  <bruno@clisp.org>
11421
11422         Avoid valgrind error reports from libunistring.
11423         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
11424         * modules/libunistring (Files): Add it.
11425         * modules/libunistring-optional (Files): Likewise.
11426
11427 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
11428             Bruno Haible  <bruno@clisp.org>
11429
11430         New module 'libunistring-optional'.
11431         * modules/libunistring-optional: New file.
11432         * m4/libunistring-base.m4: New file.
11433         * m4/libunistring-optional.m4: New file.
11434         * lib/unicase.in.h: Renamed from lib/unicase.h.
11435         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
11436         * lib/unictype.in.h: Renamed from lib/unictype.h.
11437         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
11438         * lib/uniname.in.h: Renamed from lib/uniname.h.
11439         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
11440         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
11441         * lib/unistr.in.h: Renamed from lib/unistr.h.
11442         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
11443         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
11444         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
11445         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
11446         gl_LIBUNISTRING. If the library was found, determine the installed
11447         version and set LIBUNISTRING_VERSION.
11448         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
11449         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
11450         handle a configuration option --with-included-libunistring.
11451         * modules/libunistring (Files): Add m4/absolute-header.m4.
11452         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
11453         Add m4/libunistring-base.m4.
11454         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11455         (Makefile.am): Build unicase.h from unicase.in.h.
11456         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
11457         Add m4/libunistring-base.m4.
11458         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11459         (Makefile.am): Build uniconv.h from uniconv.in.h.
11460         * modules/unictype/base (Files): Use unictype.in.h instead of
11461         unictype.h. Add m4/libunistring-base.m4.
11462         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11463         (Makefile.am): Build unictype.h from unictype.in.h.
11464         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
11465         Add m4/libunistring-base.m4.
11466         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11467         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
11468         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
11469         Add m4/libunistring-base.m4.
11470         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11471         (Makefile.am): Build uniname.h from uniname.in.h.
11472         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
11473         Add m4/libunistring-base.m4.
11474         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11475         (Makefile.am): Build uninorm.h from uninorm.in.h.
11476         * modules/unistdio/base (Files): Use unistdio.in.h instead of
11477         unistdio.h. Add m4/libunistring-base.m4.
11478         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11479         (Makefile.am): Build unistdio.h from unistdio.in.h.
11480         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
11481         Add m4/libunistring-base.m4.
11482         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11483         (Makefile.am): Build unistr.h from unistr.in.h.
11484         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
11485         Add m4/libunistring-base.m4.
11486         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11487         (Makefile.am): Build unitypes.h from unitypes.in.h.
11488         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
11489         Add m4/libunistring-base.m4.
11490         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11491         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
11492         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
11493         uniwidth.h. Add m4/libunistring-base.m4.
11494         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11495         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
11496         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
11497         instead of augmenting lib_SOURCES.
11498         * modules/unicase/empty-suffix-context: Likewise.
11499         * modules/unicase/locale-language: Likewise.
11500         * modules/unicase/tolower: Likewise.
11501         * modules/unicase/totitle: Likewise.
11502         * modules/unicase/toupper: Likewise.
11503         * modules/unicase/u8-casecmp: Likewise.
11504         * modules/unicase/u8-casecoll: Likewise.
11505         * modules/unicase/u8-casefold: Likewise.
11506         * modules/unicase/u8-casexfrm: Likewise.
11507         * modules/unicase/u8-ct-casefold: Likewise.
11508         * modules/unicase/u8-ct-tolower: Likewise.
11509         * modules/unicase/u8-ct-totitle: Likewise.
11510         * modules/unicase/u8-ct-toupper: Likewise.
11511         * modules/unicase/u8-is-cased: Likewise.
11512         * modules/unicase/u8-is-casefolded: Likewise.
11513         * modules/unicase/u8-is-lowercase: Likewise.
11514         * modules/unicase/u8-is-titlecase: Likewise.
11515         * modules/unicase/u8-is-uppercase: Likewise.
11516         * modules/unicase/u8-prefix-context: Likewise.
11517         * modules/unicase/u8-suffix-context: Likewise.
11518         * modules/unicase/u8-tolower: Likewise.
11519         * modules/unicase/u8-totitle: Likewise.
11520         * modules/unicase/u8-toupper: Likewise.
11521         * modules/unicase/u16-casecmp: Likewise.
11522         * modules/unicase/u16-casecoll: Likewise.
11523         * modules/unicase/u16-casefold: Likewise.
11524         * modules/unicase/u16-casexfrm: Likewise.
11525         * modules/unicase/u16-ct-casefold: Likewise.
11526         * modules/unicase/u16-ct-tolower: Likewise.
11527         * modules/unicase/u16-ct-totitle: Likewise.
11528         * modules/unicase/u16-ct-toupper: Likewise.
11529         * modules/unicase/u16-is-cased: Likewise.
11530         * modules/unicase/u16-is-casefolded: Likewise.
11531         * modules/unicase/u16-is-lowercase: Likewise.
11532         * modules/unicase/u16-is-titlecase: Likewise.
11533         * modules/unicase/u16-is-uppercase: Likewise.
11534         * modules/unicase/u16-prefix-context: Likewise.
11535         * modules/unicase/u16-suffix-context: Likewise.
11536         * modules/unicase/u16-tolower: Likewise.
11537         * modules/unicase/u16-totitle: Likewise.
11538         * modules/unicase/u16-toupper: Likewise.
11539         * modules/unicase/u32-casecmp: Likewise.
11540         * modules/unicase/u32-casecoll: Likewise.
11541         * modules/unicase/u32-casefold: Likewise.
11542         * modules/unicase/u32-casexfrm: Likewise.
11543         * modules/unicase/u32-ct-casefold: Likewise.
11544         * modules/unicase/u32-ct-tolower: Likewise.
11545         * modules/unicase/u32-ct-totitle: Likewise.
11546         * modules/unicase/u32-ct-toupper: Likewise.
11547         * modules/unicase/u32-is-cased: Likewise.
11548         * modules/unicase/u32-is-casefolded: Likewise.
11549         * modules/unicase/u32-is-lowercase: Likewise.
11550         * modules/unicase/u32-is-titlecase: Likewise.
11551         * modules/unicase/u32-is-uppercase: Likewise.
11552         * modules/unicase/u32-prefix-context: Likewise.
11553         * modules/unicase/u32-suffix-context: Likewise.
11554         * modules/unicase/u32-tolower: Likewise.
11555         * modules/unicase/u32-totitle: Likewise.
11556         * modules/unicase/u32-toupper: Likewise.
11557         * modules/unicase/ulc-casecmp: Likewise.
11558         * modules/unicase/ulc-casecoll: Likewise.
11559         * modules/unicase/ulc-casexfrm: Likewise.
11560         * modules/uniconv/u8-conv-from-enc: Likewise.
11561         * modules/uniconv/u8-conv-to-enc: Likewise.
11562         * modules/uniconv/u8-strconv-from-enc: Likewise.
11563         * modules/uniconv/u8-strconv-from-locale: Likewise.
11564         * modules/uniconv/u8-strconv-to-enc: Likewise.
11565         * modules/uniconv/u8-strconv-to-locale: Likewise.
11566         * modules/uniconv/u16-conv-from-enc: Likewise.
11567         * modules/uniconv/u16-conv-to-enc: Likewise.
11568         * modules/uniconv/u16-strconv-from-enc: Likewise.
11569         * modules/uniconv/u16-strconv-from-locale: Likewise.
11570         * modules/uniconv/u16-strconv-to-enc: Likewise.
11571         * modules/uniconv/u16-strconv-to-locale: Likewise.
11572         * modules/uniconv/u32-conv-from-enc: Likewise.
11573         * modules/uniconv/u32-conv-to-enc: Likewise.
11574         * modules/uniconv/u32-strconv-from-enc: Likewise.
11575         * modules/uniconv/u32-strconv-from-locale: Likewise.
11576         * modules/uniconv/u32-strconv-to-enc: Likewise.
11577         * modules/uniconv/u32-strconv-to-locale: Likewise.
11578         * modules/unictype/bidicategory-byname: Likewise.
11579         * modules/unictype/bidicategory-name: Likewise.
11580         * modules/unictype/bidicategory-of: Likewise.
11581         * modules/unictype/bidicategory-test: Likewise.
11582         * modules/unictype/block-list: Likewise.
11583         * modules/unictype/block-test: Likewise.
11584         * modules/unictype/category-C: Likewise.
11585         * modules/unictype/category-Cc: Likewise.
11586         * modules/unictype/category-Cf: Likewise.
11587         * modules/unictype/category-Cn: Likewise.
11588         * modules/unictype/category-Co: Likewise.
11589         * modules/unictype/category-Cs: Likewise.
11590         * modules/unictype/category-L: Likewise.
11591         * modules/unictype/category-Ll: Likewise.
11592         * modules/unictype/category-Lm: Likewise.
11593         * modules/unictype/category-Lo: Likewise.
11594         * modules/unictype/category-Lt: Likewise.
11595         * modules/unictype/category-Lu: Likewise.
11596         * modules/unictype/category-M: Likewise.
11597         * modules/unictype/category-Mc: Likewise.
11598         * modules/unictype/category-Me: Likewise.
11599         * modules/unictype/category-Mn: Likewise.
11600         * modules/unictype/category-N: Likewise.
11601         * modules/unictype/category-Nd: Likewise.
11602         * modules/unictype/category-Nl: Likewise.
11603         * modules/unictype/category-No: Likewise.
11604         * modules/unictype/category-P: Likewise.
11605         * modules/unictype/category-Pc: Likewise.
11606         * modules/unictype/category-Pd: Likewise.
11607         * modules/unictype/category-Pe: Likewise.
11608         * modules/unictype/category-Pf: Likewise.
11609         * modules/unictype/category-Pi: Likewise.
11610         * modules/unictype/category-Po: Likewise.
11611         * modules/unictype/category-Ps: Likewise.
11612         * modules/unictype/category-S: Likewise.
11613         * modules/unictype/category-Sc: Likewise.
11614         * modules/unictype/category-Sk: Likewise.
11615         * modules/unictype/category-Sm: Likewise.
11616         * modules/unictype/category-So: Likewise.
11617         * modules/unictype/category-Z: Likewise.
11618         * modules/unictype/category-Zl: Likewise.
11619         * modules/unictype/category-Zp: Likewise.
11620         * modules/unictype/category-Zs: Likewise.
11621         * modules/unictype/category-and: Likewise.
11622         * modules/unictype/category-and-not: Likewise.
11623         * modules/unictype/category-byname: Likewise.
11624         * modules/unictype/category-name: Likewise.
11625         * modules/unictype/category-none: Likewise.
11626         * modules/unictype/category-of: Likewise.
11627         * modules/unictype/category-or: Likewise.
11628         * modules/unictype/category-test: Likewise.
11629         * modules/unictype/combining-class: Likewise.
11630         * modules/unictype/ctype-alnum: Likewise.
11631         * modules/unictype/ctype-alpha: Likewise.
11632         * modules/unictype/ctype-blank: Likewise.
11633         * modules/unictype/ctype-cntrl: Likewise.
11634         * modules/unictype/ctype-digit: Likewise.
11635         * modules/unictype/ctype-graph: Likewise.
11636         * modules/unictype/ctype-lower: Likewise.
11637         * modules/unictype/ctype-print: Likewise.
11638         * modules/unictype/ctype-punct: Likewise.
11639         * modules/unictype/ctype-space: Likewise.
11640         * modules/unictype/ctype-upper: Likewise.
11641         * modules/unictype/ctype-xdigit: Likewise.
11642         * modules/unictype/decimal-digit: Likewise.
11643         * modules/unictype/digit: Likewise.
11644         * modules/unictype/mirror: Likewise.
11645         * modules/unictype/numeric: Likewise.
11646         * modules/unictype/property-alphabetic: Likewise.
11647         * modules/unictype/property-ascii-hex-digit: Likewise.
11648         * modules/unictype/property-bidi-arabic-digit: Likewise.
11649         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11650         * modules/unictype/property-bidi-block-separator: Likewise.
11651         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11652         * modules/unictype/property-bidi-common-separator: Likewise.
11653         * modules/unictype/property-bidi-control: Likewise.
11654         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11655         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11656         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11657         * modules/unictype/property-bidi-european-digit: Likewise.
11658         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11659         * modules/unictype/property-bidi-left-to-right: Likewise.
11660         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11661         * modules/unictype/property-bidi-other-neutral: Likewise.
11662         * modules/unictype/property-bidi-pdf: Likewise.
11663         * modules/unictype/property-bidi-segment-separator: Likewise.
11664         * modules/unictype/property-bidi-whitespace: Likewise.
11665         * modules/unictype/property-byname: Likewise.
11666         * modules/unictype/property-combining: Likewise.
11667         * modules/unictype/property-composite: Likewise.
11668         * modules/unictype/property-currency-symbol: Likewise.
11669         * modules/unictype/property-dash: Likewise.
11670         * modules/unictype/property-decimal-digit: Likewise.
11671         * modules/unictype/property-default-ignorable-code-point: Likewise.
11672         * modules/unictype/property-deprecated: Likewise.
11673         * modules/unictype/property-diacritic: Likewise.
11674         * modules/unictype/property-extender: Likewise.
11675         * modules/unictype/property-format-control: Likewise.
11676         * modules/unictype/property-grapheme-base: Likewise.
11677         * modules/unictype/property-grapheme-extend: Likewise.
11678         * modules/unictype/property-grapheme-link: Likewise.
11679         * modules/unictype/property-hex-digit: Likewise.
11680         * modules/unictype/property-hyphen: Likewise.
11681         * modules/unictype/property-id-continue: Likewise.
11682         * modules/unictype/property-id-start: Likewise.
11683         * modules/unictype/property-ideographic: Likewise.
11684         * modules/unictype/property-ids-binary-operator: Likewise.
11685         * modules/unictype/property-ids-trinary-operator: Likewise.
11686         * modules/unictype/property-ignorable-control: Likewise.
11687         * modules/unictype/property-iso-control: Likewise.
11688         * modules/unictype/property-join-control: Likewise.
11689         * modules/unictype/property-left-of-pair: Likewise.
11690         * modules/unictype/property-line-separator: Likewise.
11691         * modules/unictype/property-logical-order-exception: Likewise.
11692         * modules/unictype/property-lowercase: Likewise.
11693         * modules/unictype/property-math: Likewise.
11694         * modules/unictype/property-non-break: Likewise.
11695         * modules/unictype/property-not-a-character: Likewise.
11696         * modules/unictype/property-numeric: Likewise.
11697         * modules/unictype/property-other-alphabetic: Likewise.
11698         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11699         * modules/unictype/property-other-grapheme-extend: Likewise.
11700         * modules/unictype/property-other-id-continue: Likewise.
11701         * modules/unictype/property-other-id-start: Likewise.
11702         * modules/unictype/property-other-lowercase: Likewise.
11703         * modules/unictype/property-other-math: Likewise.
11704         * modules/unictype/property-other-uppercase: Likewise.
11705         * modules/unictype/property-paired-punctuation: Likewise.
11706         * modules/unictype/property-paragraph-separator: Likewise.
11707         * modules/unictype/property-pattern-syntax: Likewise.
11708         * modules/unictype/property-pattern-white-space: Likewise.
11709         * modules/unictype/property-private-use: Likewise.
11710         * modules/unictype/property-punctuation: Likewise.
11711         * modules/unictype/property-quotation-mark: Likewise.
11712         * modules/unictype/property-radical: Likewise.
11713         * modules/unictype/property-sentence-terminal: Likewise.
11714         * modules/unictype/property-soft-dotted: Likewise.
11715         * modules/unictype/property-space: Likewise.
11716         * modules/unictype/property-terminal-punctuation: Likewise.
11717         * modules/unictype/property-test: Likewise.
11718         * modules/unictype/property-titlecase: Likewise.
11719         * modules/unictype/property-unassigned-code-value: Likewise.
11720         * modules/unictype/property-unified-ideograph: Likewise.
11721         * modules/unictype/property-uppercase: Likewise.
11722         * modules/unictype/property-variation-selector: Likewise.
11723         * modules/unictype/property-white-space: Likewise.
11724         * modules/unictype/property-xid-continue: Likewise.
11725         * modules/unictype/property-xid-start: Likewise.
11726         * modules/unictype/property-zero-width: Likewise.
11727         * modules/unictype/scripts: Likewise.
11728         * modules/unictype/syntax-c-ident: Likewise.
11729         * modules/unictype/syntax-c-whitespace: Likewise.
11730         * modules/unictype/syntax-java-ident: Likewise.
11731         * modules/unictype/syntax-java-whitespace: Likewise.
11732         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11733         * modules/unilbrk/u8-width-linebreaks: Likewise.
11734         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11735         * modules/unilbrk/u16-width-linebreaks: Likewise.
11736         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11737         * modules/unilbrk/u32-width-linebreaks: Likewise.
11738         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11739         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11740         * modules/uniname/uniname: Likewise.
11741         * modules/uninorm/canonical-decomposition: Likewise.
11742         * modules/uninorm/composition: Likewise.
11743         * modules/uninorm/decomposing-form: Likewise.
11744         * modules/uninorm/decomposition: Likewise.
11745         * modules/uninorm/filter: Likewise.
11746         * modules/uninorm/nfc: Likewise.
11747         * modules/uninorm/nfd: Likewise.
11748         * modules/uninorm/nfkc: Likewise.
11749         * modules/uninorm/nfkd: Likewise.
11750         * modules/uninorm/u8-normalize: Likewise.
11751         * modules/uninorm/u8-normcmp: Likewise.
11752         * modules/uninorm/u8-normcoll: Likewise.
11753         * modules/uninorm/u8-normxfrm: Likewise.
11754         * modules/uninorm/u16-normalize: Likewise.
11755         * modules/uninorm/u16-normcmp: Likewise.
11756         * modules/uninorm/u16-normcoll: Likewise.
11757         * modules/uninorm/u16-normxfrm: Likewise.
11758         * modules/uninorm/u32-normalize: Likewise.
11759         * modules/uninorm/u32-normcmp: Likewise.
11760         * modules/uninorm/u32-normcoll: Likewise.
11761         * modules/uninorm/u32-normxfrm: Likewise.
11762         * modules/unistdio/u8-asnprintf: Likewise.
11763         * modules/unistdio/u8-asprintf: Likewise.
11764         * modules/unistdio/u8-snprintf: Likewise.
11765         * modules/unistdio/u8-sprintf: Likewise.
11766         * modules/unistdio/u8-u8-asnprintf: Likewise.
11767         * modules/unistdio/u8-u8-asprintf: Likewise.
11768         * modules/unistdio/u8-u8-snprintf: Likewise.
11769         * modules/unistdio/u8-u8-sprintf: Likewise.
11770         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11771         * modules/unistdio/u8-u8-vasprintf: Likewise.
11772         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11773         * modules/unistdio/u8-u8-vsprintf: Likewise.
11774         * modules/unistdio/u8-vasnprintf: Likewise.
11775         * modules/unistdio/u8-vasprintf: Likewise.
11776         * modules/unistdio/u8-vsnprintf: Likewise.
11777         * modules/unistdio/u8-vsprintf: Likewise.
11778         * modules/unistdio/u16-asnprintf: Likewise.
11779         * modules/unistdio/u16-asprintf: Likewise.
11780         * modules/unistdio/u16-snprintf: Likewise.
11781         * modules/unistdio/u16-sprintf: Likewise.
11782         * modules/unistdio/u16-u16-asnprintf: Likewise.
11783         * modules/unistdio/u16-u16-asprintf: Likewise.
11784         * modules/unistdio/u16-u16-snprintf: Likewise.
11785         * modules/unistdio/u16-u16-sprintf: Likewise.
11786         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11787         * modules/unistdio/u16-u16-vasprintf: Likewise.
11788         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11789         * modules/unistdio/u16-u16-vsprintf: Likewise.
11790         * modules/unistdio/u16-vasnprintf: Likewise.
11791         * modules/unistdio/u16-vasprintf: Likewise.
11792         * modules/unistdio/u16-vsnprintf: Likewise.
11793         * modules/unistdio/u16-vsprintf: Likewise.
11794         * modules/unistdio/u32-asnprintf: Likewise.
11795         * modules/unistdio/u32-asprintf: Likewise.
11796         * modules/unistdio/u32-snprintf: Likewise.
11797         * modules/unistdio/u32-sprintf: Likewise.
11798         * modules/unistdio/u32-u32-asnprintf: Likewise.
11799         * modules/unistdio/u32-u32-asprintf: Likewise.
11800         * modules/unistdio/u32-u32-snprintf: Likewise.
11801         * modules/unistdio/u32-u32-sprintf: Likewise.
11802         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11803         * modules/unistdio/u32-u32-vasprintf: Likewise.
11804         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11805         * modules/unistdio/u32-u32-vsprintf: Likewise.
11806         * modules/unistdio/u32-vasnprintf: Likewise.
11807         * modules/unistdio/u32-vasprintf: Likewise.
11808         * modules/unistdio/u32-vsnprintf: Likewise.
11809         * modules/unistdio/u32-vsprintf: Likewise.
11810         * modules/unistdio/ulc-asnprintf: Likewise.
11811         * modules/unistdio/ulc-asprintf: Likewise.
11812         * modules/unistdio/ulc-fprintf: Likewise.
11813         * modules/unistdio/ulc-snprintf: Likewise.
11814         * modules/unistdio/ulc-sprintf: Likewise.
11815         * modules/unistdio/ulc-vasnprintf: Likewise.
11816         * modules/unistdio/ulc-vasprintf: Likewise.
11817         * modules/unistdio/ulc-vfprintf: Likewise.
11818         * modules/unistdio/ulc-vsnprintf: Likewise.
11819         * modules/unistdio/ulc-vsprintf: Likewise.
11820         * modules/unistr/u8-check: Likewise.
11821         * modules/unistr/u8-chr: Likewise.
11822         * modules/unistr/u8-cmp: Likewise.
11823         * modules/unistr/u8-cmp2: Likewise.
11824         * modules/unistr/u8-cpy: Likewise.
11825         * modules/unistr/u8-cpy-alloc: Likewise.
11826         * modules/unistr/u8-endswith: Likewise.
11827         * modules/unistr/u8-mblen: Likewise.
11828         * modules/unistr/u8-mbsnlen: Likewise.
11829         * modules/unistr/u8-mbtouc: Likewise.
11830         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11831         * modules/unistr/u8-mbtoucr: Likewise.
11832         * modules/unistr/u8-move: Likewise.
11833         * modules/unistr/u8-next: Likewise.
11834         * modules/unistr/u8-prev: Likewise.
11835         * modules/unistr/u8-set: Likewise.
11836         * modules/unistr/u8-startswith: Likewise.
11837         * modules/unistr/u8-stpcpy: Likewise.
11838         * modules/unistr/u8-stpncpy: Likewise.
11839         * modules/unistr/u8-strcat: Likewise.
11840         * modules/unistr/u8-strchr: Likewise.
11841         * modules/unistr/u8-strcmp: Likewise.
11842         * modules/unistr/u8-strcoll: Likewise.
11843         * modules/unistr/u8-strcpy: Likewise.
11844         * modules/unistr/u8-strcspn: Likewise.
11845         * modules/unistr/u8-strdup: Likewise.
11846         * modules/unistr/u8-strlen: Likewise.
11847         * modules/unistr/u8-strmblen: Likewise.
11848         * modules/unistr/u8-strmbtouc: Likewise.
11849         * modules/unistr/u8-strncat: Likewise.
11850         * modules/unistr/u8-strncmp: Likewise.
11851         * modules/unistr/u8-strncpy: Likewise.
11852         * modules/unistr/u8-strnlen: Likewise.
11853         * modules/unistr/u8-strpbrk: Likewise.
11854         * modules/unistr/u8-strrchr: Likewise.
11855         * modules/unistr/u8-strspn: Likewise.
11856         * modules/unistr/u8-strstr: Likewise.
11857         * modules/unistr/u8-strtok: Likewise.
11858         * modules/unistr/u8-to-u16: Likewise.
11859         * modules/unistr/u8-to-u32: Likewise.
11860         * modules/unistr/u8-uctomb: Likewise.
11861         * modules/unistr/u16-check: Likewise.
11862         * modules/unistr/u16-chr: Likewise.
11863         * modules/unistr/u16-cmp: Likewise.
11864         * modules/unistr/u16-cmp2: Likewise.
11865         * modules/unistr/u16-cpy: Likewise.
11866         * modules/unistr/u16-cpy-alloc: Likewise.
11867         * modules/unistr/u16-endswith: Likewise.
11868         * modules/unistr/u16-mblen: Likewise.
11869         * modules/unistr/u16-mbsnlen: Likewise.
11870         * modules/unistr/u16-mbtouc: Likewise.
11871         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11872         * modules/unistr/u16-mbtoucr: Likewise.
11873         * modules/unistr/u16-move: Likewise.
11874         * modules/unistr/u16-next: Likewise.
11875         * modules/unistr/u16-prev: Likewise.
11876         * modules/unistr/u16-set: Likewise.
11877         * modules/unistr/u16-startswith: Likewise.
11878         * modules/unistr/u16-stpcpy: Likewise.
11879         * modules/unistr/u16-stpncpy: Likewise.
11880         * modules/unistr/u16-strcat: Likewise.
11881         * modules/unistr/u16-strchr: Likewise.
11882         * modules/unistr/u16-strcmp: Likewise.
11883         * modules/unistr/u16-strcoll: Likewise.
11884         * modules/unistr/u16-strcpy: Likewise.
11885         * modules/unistr/u16-strcspn: Likewise.
11886         * modules/unistr/u16-strdup: Likewise.
11887         * modules/unistr/u16-strlen: Likewise.
11888         * modules/unistr/u16-strmblen: Likewise.
11889         * modules/unistr/u16-strmbtouc: Likewise.
11890         * modules/unistr/u16-strncat: Likewise.
11891         * modules/unistr/u16-strncmp: Likewise.
11892         * modules/unistr/u16-strncpy: Likewise.
11893         * modules/unistr/u16-strnlen: Likewise.
11894         * modules/unistr/u16-strpbrk: Likewise.
11895         * modules/unistr/u16-strrchr: Likewise.
11896         * modules/unistr/u16-strspn: Likewise.
11897         * modules/unistr/u16-strstr: Likewise.
11898         * modules/unistr/u16-strtok: Likewise.
11899         * modules/unistr/u16-to-u32: Likewise.
11900         * modules/unistr/u16-to-u8: Likewise.
11901         * modules/unistr/u16-uctomb: Likewise.
11902         * modules/unistr/u32-check: Likewise.
11903         * modules/unistr/u32-chr: Likewise.
11904         * modules/unistr/u32-cmp: Likewise.
11905         * modules/unistr/u32-cmp2: Likewise.
11906         * modules/unistr/u32-cpy: Likewise.
11907         * modules/unistr/u32-cpy-alloc: Likewise.
11908         * modules/unistr/u32-endswith: Likewise.
11909         * modules/unistr/u32-mblen: Likewise.
11910         * modules/unistr/u32-mbsnlen: Likewise.
11911         * modules/unistr/u32-mbtouc: Likewise.
11912         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11913         * modules/unistr/u32-mbtoucr: Likewise.
11914         * modules/unistr/u32-move: Likewise.
11915         * modules/unistr/u32-next: Likewise.
11916         * modules/unistr/u32-prev: Likewise.
11917         * modules/unistr/u32-set: Likewise.
11918         * modules/unistr/u32-startswith: Likewise.
11919         * modules/unistr/u32-stpcpy: Likewise.
11920         * modules/unistr/u32-stpncpy: Likewise.
11921         * modules/unistr/u32-strcat: Likewise.
11922         * modules/unistr/u32-strchr: Likewise.
11923         * modules/unistr/u32-strcmp: Likewise.
11924         * modules/unistr/u32-strcoll: Likewise.
11925         * modules/unistr/u32-strcpy: Likewise.
11926         * modules/unistr/u32-strcspn: Likewise.
11927         * modules/unistr/u32-strdup: Likewise.
11928         * modules/unistr/u32-strlen: Likewise.
11929         * modules/unistr/u32-strmblen: Likewise.
11930         * modules/unistr/u32-strmbtouc: Likewise.
11931         * modules/unistr/u32-strncat: Likewise.
11932         * modules/unistr/u32-strncmp: Likewise.
11933         * modules/unistr/u32-strncpy: Likewise.
11934         * modules/unistr/u32-strnlen: Likewise.
11935         * modules/unistr/u32-strpbrk: Likewise.
11936         * modules/unistr/u32-strrchr: Likewise.
11937         * modules/unistr/u32-strspn: Likewise.
11938         * modules/unistr/u32-strstr: Likewise.
11939         * modules/unistr/u32-strtok: Likewise.
11940         * modules/unistr/u32-to-u16: Likewise.
11941         * modules/unistr/u32-to-u8: Likewise.
11942         * modules/unistr/u32-uctomb: Likewise.
11943         * modules/uniwbrk/u8-wordbreaks: Likewise.
11944         * modules/uniwbrk/u16-wordbreaks: Likewise.
11945         * modules/uniwbrk/u32-wordbreaks: Likewise.
11946         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11947         * modules/uniwbrk/wordbreak-property: Likewise.
11948         * modules/uniwidth/u8-strwidth: Likewise.
11949         * modules/uniwidth/u8-width: Likewise.
11950         * modules/uniwidth/u16-strwidth: Likewise.
11951         * modules/uniwidth/u16-width: Likewise.
11952         * modules/uniwidth/u32-strwidth: Likewise.
11953         * modules/uniwidth/u32-width: Likewise.
11954         * modules/uniwidth/width: Likewise.
11955         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11956         with $(LIBUNISTRING).
11957         * modules/unicase/ignorable-tests: Likewise.
11958         * modules/unicase/locale-language-tests: Likewise.
11959         * modules/unicase/tolower-tests: Likewise.
11960         * modules/unicase/totitle-tests: Likewise.
11961         * modules/unicase/toupper-tests: Likewise.
11962         * modules/unicase/u8-casecmp-tests: Likewise.
11963         * modules/unicase/u8-casecoll-tests: Likewise.
11964         * modules/unicase/u8-casefold-tests: Likewise.
11965         * modules/unicase/u8-is-cased-tests: Likewise.
11966         * modules/unicase/u8-is-casefolded-tests: Likewise.
11967         * modules/unicase/u8-is-lowercase-tests: Likewise.
11968         * modules/unicase/u8-is-titlecase-tests: Likewise.
11969         * modules/unicase/u8-is-uppercase-tests: Likewise.
11970         * modules/unicase/u8-tolower-tests: Likewise.
11971         * modules/unicase/u8-totitle-tests: Likewise.
11972         * modules/unicase/u8-toupper-tests: Likewise.
11973         * modules/unicase/u16-casecmp-tests: Likewise.
11974         * modules/unicase/u16-casecoll-tests: Likewise.
11975         * modules/unicase/u16-casefold-tests: Likewise.
11976         * modules/unicase/u16-is-cased-tests: Likewise.
11977         * modules/unicase/u16-is-casefolded-tests: Likewise.
11978         * modules/unicase/u16-is-lowercase-tests: Likewise.
11979         * modules/unicase/u16-is-titlecase-tests: Likewise.
11980         * modules/unicase/u16-is-uppercase-tests: Likewise.
11981         * modules/unicase/u16-tolower-tests: Likewise.
11982         * modules/unicase/u16-totitle-tests: Likewise.
11983         * modules/unicase/u16-toupper-tests: Likewise.
11984         * modules/unicase/u32-casecmp-tests: Likewise.
11985         * modules/unicase/u32-casecoll-tests: Likewise.
11986         * modules/unicase/u32-casefold-tests: Likewise.
11987         * modules/unicase/u32-is-cased-tests: Likewise.
11988         * modules/unicase/u32-is-casefolded-tests: Likewise.
11989         * modules/unicase/u32-is-lowercase-tests: Likewise.
11990         * modules/unicase/u32-is-titlecase-tests: Likewise.
11991         * modules/unicase/u32-is-uppercase-tests: Likewise.
11992         * modules/unicase/u32-tolower-tests: Likewise.
11993         * modules/unicase/u32-totitle-tests: Likewise.
11994         * modules/unicase/u32-toupper-tests: Likewise.
11995         * modules/unicase/ulc-casecmp-tests: Likewise.
11996         * modules/unicase/ulc-casecoll-tests: Likewise.
11997         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11998         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11999         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12000         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12001         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12002         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12003         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12004         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12005         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12006         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12007         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12008         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12009         * modules/unictype/bidicategory-byname-tests: Likewise.
12010         * modules/unictype/bidicategory-name-tests: Likewise.
12011         * modules/unictype/bidicategory-of-tests: Likewise.
12012         * modules/unictype/bidicategory-test-tests: Likewise.
12013         * modules/unictype/block-list-tests: Likewise.
12014         * modules/unictype/block-of-tests: Likewise.
12015         * modules/unictype/block-test-tests: Likewise.
12016         * modules/unictype/category-C-tests: Likewise.
12017         * modules/unictype/category-Cc-tests: Likewise.
12018         * modules/unictype/category-Cf-tests: Likewise.
12019         * modules/unictype/category-Cn-tests: Likewise.
12020         * modules/unictype/category-Co-tests: Likewise.
12021         * modules/unictype/category-Cs-tests: Likewise.
12022         * modules/unictype/category-L-tests: Likewise.
12023         * modules/unictype/category-Ll-tests: Likewise.
12024         * modules/unictype/category-Lm-tests: Likewise.
12025         * modules/unictype/category-Lo-tests: Likewise.
12026         * modules/unictype/category-Lt-tests: Likewise.
12027         * modules/unictype/category-Lu-tests: Likewise.
12028         * modules/unictype/category-M-tests: Likewise.
12029         * modules/unictype/category-Mc-tests: Likewise.
12030         * modules/unictype/category-Me-tests: Likewise.
12031         * modules/unictype/category-Mn-tests: Likewise.
12032         * modules/unictype/category-N-tests: Likewise.
12033         * modules/unictype/category-Nd-tests: Likewise.
12034         * modules/unictype/category-Nl-tests: Likewise.
12035         * modules/unictype/category-No-tests: Likewise.
12036         * modules/unictype/category-P-tests: Likewise.
12037         * modules/unictype/category-Pc-tests: Likewise.
12038         * modules/unictype/category-Pd-tests: Likewise.
12039         * modules/unictype/category-Pe-tests: Likewise.
12040         * modules/unictype/category-Pf-tests: Likewise.
12041         * modules/unictype/category-Pi-tests: Likewise.
12042         * modules/unictype/category-Po-tests: Likewise.
12043         * modules/unictype/category-Ps-tests: Likewise.
12044         * modules/unictype/category-S-tests: Likewise.
12045         * modules/unictype/category-Sc-tests: Likewise.
12046         * modules/unictype/category-Sk-tests: Likewise.
12047         * modules/unictype/category-Sm-tests: Likewise.
12048         * modules/unictype/category-So-tests: Likewise.
12049         * modules/unictype/category-Z-tests: Likewise.
12050         * modules/unictype/category-Zl-tests: Likewise.
12051         * modules/unictype/category-Zp-tests: Likewise.
12052         * modules/unictype/category-Zs-tests: Likewise.
12053         * modules/unictype/category-and-not-tests: Likewise.
12054         * modules/unictype/category-and-tests: Likewise.
12055         * modules/unictype/category-byname-tests: Likewise.
12056         * modules/unictype/category-name-tests: Likewise.
12057         * modules/unictype/category-none-tests: Likewise.
12058         * modules/unictype/category-of-tests: Likewise.
12059         * modules/unictype/category-or-tests: Likewise.
12060         * modules/unictype/category-test-withtable-tests: Likewise.
12061         * modules/unictype/combining-class-tests: Likewise.
12062         * modules/unictype/ctype-alnum-tests: Likewise.
12063         * modules/unictype/ctype-alpha-tests: Likewise.
12064         * modules/unictype/ctype-blank-tests: Likewise.
12065         * modules/unictype/ctype-cntrl-tests: Likewise.
12066         * modules/unictype/ctype-digit-tests: Likewise.
12067         * modules/unictype/ctype-graph-tests: Likewise.
12068         * modules/unictype/ctype-lower-tests: Likewise.
12069         * modules/unictype/ctype-print-tests: Likewise.
12070         * modules/unictype/ctype-punct-tests: Likewise.
12071         * modules/unictype/ctype-space-tests: Likewise.
12072         * modules/unictype/ctype-upper-tests: Likewise.
12073         * modules/unictype/ctype-xdigit-tests: Likewise.
12074         * modules/unictype/decimal-digit-tests: Likewise.
12075         * modules/unictype/digit-tests: Likewise.
12076         * modules/unictype/mirror-tests: Likewise.
12077         * modules/unictype/numeric-tests: Likewise.
12078         * modules/unictype/property-alphabetic-tests: Likewise.
12079         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12080         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12081         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12082         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12083         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12084         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12085         * modules/unictype/property-bidi-control-tests: Likewise.
12086         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12087         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12088         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12089         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12090         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12091         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12092         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12093         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12094         * modules/unictype/property-bidi-pdf-tests: Likewise.
12095         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12096         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12097         * modules/unictype/property-byname-tests: Likewise.
12098         * modules/unictype/property-combining-tests: Likewise.
12099         * modules/unictype/property-composite-tests: Likewise.
12100         * modules/unictype/property-currency-symbol-tests: Likewise.
12101         * modules/unictype/property-dash-tests: Likewise.
12102         * modules/unictype/property-decimal-digit-tests: Likewise.
12103         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12104         * modules/unictype/property-deprecated-tests: Likewise.
12105         * modules/unictype/property-diacritic-tests: Likewise.
12106         * modules/unictype/property-extender-tests: Likewise.
12107         * modules/unictype/property-format-control-tests: Likewise.
12108         * modules/unictype/property-grapheme-base-tests: Likewise.
12109         * modules/unictype/property-grapheme-extend-tests: Likewise.
12110         * modules/unictype/property-grapheme-link-tests: Likewise.
12111         * modules/unictype/property-hex-digit-tests: Likewise.
12112         * modules/unictype/property-hyphen-tests: Likewise.
12113         * modules/unictype/property-id-continue-tests: Likewise.
12114         * modules/unictype/property-id-start-tests: Likewise.
12115         * modules/unictype/property-ideographic-tests: Likewise.
12116         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12117         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12118         * modules/unictype/property-ignorable-control-tests: Likewise.
12119         * modules/unictype/property-iso-control-tests: Likewise.
12120         * modules/unictype/property-join-control-tests: Likewise.
12121         * modules/unictype/property-left-of-pair-tests: Likewise.
12122         * modules/unictype/property-line-separator-tests: Likewise.
12123         * modules/unictype/property-logical-order-exception-tests: Likewise.
12124         * modules/unictype/property-lowercase-tests: Likewise.
12125         * modules/unictype/property-math-tests: Likewise.
12126         * modules/unictype/property-non-break-tests: Likewise.
12127         * modules/unictype/property-not-a-character-tests: Likewise.
12128         * modules/unictype/property-numeric-tests: Likewise.
12129         * modules/unictype/property-other-alphabetic-tests: Likewise.
12130         * modules/unictype/property-other-default-ignorable-code-point-tests:
12131         Likewise.
12132         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12133         * modules/unictype/property-other-id-continue-tests: Likewise.
12134         * modules/unictype/property-other-id-start-tests: Likewise.
12135         * modules/unictype/property-other-lowercase-tests: Likewise.
12136         * modules/unictype/property-other-math-tests: Likewise.
12137         * modules/unictype/property-other-uppercase-tests: Likewise.
12138         * modules/unictype/property-paired-punctuation-tests: Likewise.
12139         * modules/unictype/property-paragraph-separator-tests: Likewise.
12140         * modules/unictype/property-pattern-syntax-tests: Likewise.
12141         * modules/unictype/property-pattern-white-space-tests: Likewise.
12142         * modules/unictype/property-private-use-tests: Likewise.
12143         * modules/unictype/property-punctuation-tests: Likewise.
12144         * modules/unictype/property-quotation-mark-tests: Likewise.
12145         * modules/unictype/property-radical-tests: Likewise.
12146         * modules/unictype/property-sentence-terminal-tests: Likewise.
12147         * modules/unictype/property-soft-dotted-tests: Likewise.
12148         * modules/unictype/property-space-tests: Likewise.
12149         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12150         * modules/unictype/property-test-tests: Likewise.
12151         * modules/unictype/property-titlecase-tests: Likewise.
12152         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12153         * modules/unictype/property-unified-ideograph-tests: Likewise.
12154         * modules/unictype/property-uppercase-tests: Likewise.
12155         * modules/unictype/property-variation-selector-tests: Likewise.
12156         * modules/unictype/property-white-space-tests: Likewise.
12157         * modules/unictype/property-xid-continue-tests: Likewise.
12158         * modules/unictype/property-xid-start-tests: Likewise.
12159         * modules/unictype/property-zero-width-tests: Likewise.
12160         * modules/unictype/scripts-tests: Likewise.
12161         * modules/unictype/syntax-c-ident-tests: Likewise.
12162         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12163         * modules/unictype/syntax-java-ident-tests: Likewise.
12164         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12165         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12166         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12167         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12168         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12169         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12170         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12171         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12172         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12173         * modules/uniname/uniname-tests: Likewise.
12174         * modules/uninorm/canonical-decomposition-tests: Likewise.
12175         * modules/uninorm/compat-decomposition-tests: Likewise.
12176         * modules/uninorm/composition-tests: Likewise.
12177         * modules/uninorm/decomposing-form-tests: Likewise.
12178         * modules/uninorm/decomposition-tests: Likewise.
12179         * modules/uninorm/filter-tests: Likewise.
12180         * modules/uninorm/nfc-tests: Likewise.
12181         * modules/uninorm/nfd-tests: Likewise.
12182         * modules/uninorm/nfkc-tests: Likewise.
12183         * modules/uninorm/nfkd-tests: Likewise.
12184         * modules/uninorm/u8-normcmp-tests: Likewise.
12185         * modules/uninorm/u8-normcoll-tests: Likewise.
12186         * modules/uninorm/u16-normcmp-tests: Likewise.
12187         * modules/uninorm/u16-normcoll-tests: Likewise.
12188         * modules/uninorm/u32-normcmp-tests: Likewise.
12189         * modules/uninorm/u32-normcoll-tests: Likewise.
12190         * modules/unistdio/u8-asnprintf-tests: Likewise.
12191         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12192         * modules/unistdio/u8-vasprintf-tests: Likewise.
12193         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12194         * modules/unistdio/u8-vsprintf-tests: Likewise.
12195         * modules/unistdio/u16-asnprintf-tests: Likewise.
12196         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12197         * modules/unistdio/u16-vasprintf-tests: Likewise.
12198         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12199         * modules/unistdio/u16-vsprintf-tests: Likewise.
12200         * modules/unistdio/u32-asnprintf-tests: Likewise.
12201         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12202         * modules/unistdio/u32-vasprintf-tests: Likewise.
12203         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12204         * modules/unistdio/u32-vsprintf-tests: Likewise.
12205         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12206         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12207         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12208         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12209         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12210         * modules/unistr/u8-check-tests: Likewise.
12211         * modules/unistr/u8-chr-tests: Likewise.
12212         * modules/unistr/u8-cmp-tests: Likewise.
12213         * modules/unistr/u8-cmp2-tests: Likewise.
12214         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12215         * modules/unistr/u8-cpy-tests: Likewise.
12216         * modules/unistr/u8-mblen-tests: Likewise.
12217         * modules/unistr/u8-mbsnlen-tests: Likewise.
12218         * modules/unistr/u8-mbtouc-tests: Likewise.
12219         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12220         * modules/unistr/u8-mbtoucr-tests: Likewise.
12221         * modules/unistr/u8-move-tests: Likewise.
12222         * modules/unistr/u8-next-tests: Likewise.
12223         * modules/unistr/u8-prev-tests: Likewise.
12224         * modules/unistr/u8-set-tests: Likewise.
12225         * modules/unistr/u8-stpcpy-tests: Likewise.
12226         * modules/unistr/u8-stpncpy-tests: Likewise.
12227         * modules/unistr/u8-strcat-tests: Likewise.
12228         * modules/unistr/u8-strcmp-tests: Likewise.
12229         * modules/unistr/u8-strcoll-tests: Likewise.
12230         * modules/unistr/u8-strcpy-tests: Likewise.
12231         * modules/unistr/u8-strdup-tests: Likewise.
12232         * modules/unistr/u8-strlen-tests: Likewise.
12233         * modules/unistr/u8-strmblen-tests: Likewise.
12234         * modules/unistr/u8-strmbtouc-tests: Likewise.
12235         * modules/unistr/u8-strncat-tests: Likewise.
12236         * modules/unistr/u8-strncmp-tests: Likewise.
12237         * modules/unistr/u8-strncpy-tests: Likewise.
12238         * modules/unistr/u8-strnlen-tests: Likewise.
12239         * modules/unistr/u8-to-u16-tests: Likewise.
12240         * modules/unistr/u8-to-u32-tests: Likewise.
12241         * modules/unistr/u8-uctomb-tests: Likewise.
12242         * modules/unistr/u16-check-tests: Likewise.
12243         * modules/unistr/u16-chr-tests: Likewise.
12244         * modules/unistr/u16-cmp-tests: Likewise.
12245         * modules/unistr/u16-cmp2-tests: Likewise.
12246         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12247         * modules/unistr/u16-cpy-tests: Likewise.
12248         * modules/unistr/u16-mblen-tests: Likewise.
12249         * modules/unistr/u16-mbsnlen-tests: Likewise.
12250         * modules/unistr/u16-mbtouc-tests: Likewise.
12251         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12252         * modules/unistr/u16-mbtoucr-tests: Likewise.
12253         * modules/unistr/u16-move-tests: Likewise.
12254         * modules/unistr/u16-next-tests: Likewise.
12255         * modules/unistr/u16-prev-tests: Likewise.
12256         * modules/unistr/u16-set-tests: Likewise.
12257         * modules/unistr/u16-stpcpy-tests: Likewise.
12258         * modules/unistr/u16-stpncpy-tests: Likewise.
12259         * modules/unistr/u16-strcat-tests: Likewise.
12260         * modules/unistr/u16-strcmp-tests: Likewise.
12261         * modules/unistr/u16-strcoll-tests: Likewise.
12262         * modules/unistr/u16-strcpy-tests: Likewise.
12263         * modules/unistr/u16-strdup-tests: Likewise.
12264         * modules/unistr/u16-strlen-tests: Likewise.
12265         * modules/unistr/u16-strmblen-tests: Likewise.
12266         * modules/unistr/u16-strmbtouc-tests: Likewise.
12267         * modules/unistr/u16-strncat-tests: Likewise.
12268         * modules/unistr/u16-strncmp-tests: Likewise.
12269         * modules/unistr/u16-strncpy-tests: Likewise.
12270         * modules/unistr/u16-strnlen-tests: Likewise.
12271         * modules/unistr/u16-to-u32-tests: Likewise.
12272         * modules/unistr/u16-to-u8-tests: Likewise.
12273         * modules/unistr/u16-uctomb-tests: Likewise.
12274         * modules/unistr/u32-check-tests: Likewise.
12275         * modules/unistr/u32-chr-tests: Likewise.
12276         * modules/unistr/u32-cmp-tests: Likewise.
12277         * modules/unistr/u32-cmp2-tests: Likewise.
12278         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12279         * modules/unistr/u32-cpy-tests: Likewise.
12280         * modules/unistr/u32-mblen-tests: Likewise.
12281         * modules/unistr/u32-mbsnlen-tests: Likewise.
12282         * modules/unistr/u32-mbtouc-tests: Likewise.
12283         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12284         * modules/unistr/u32-mbtoucr-tests: Likewise.
12285         * modules/unistr/u32-move-tests: Likewise.
12286         * modules/unistr/u32-next-tests: Likewise.
12287         * modules/unistr/u32-prev-tests: Likewise.
12288         * modules/unistr/u32-set-tests: Likewise.
12289         * modules/unistr/u32-stpcpy-tests: Likewise.
12290         * modules/unistr/u32-stpncpy-tests: Likewise.
12291         * modules/unistr/u32-strcat-tests: Likewise.
12292         * modules/unistr/u32-strcmp-tests: Likewise.
12293         * modules/unistr/u32-strcoll-tests: Likewise.
12294         * modules/unistr/u32-strcpy-tests: Likewise.
12295         * modules/unistr/u32-strdup-tests: Likewise.
12296         * modules/unistr/u32-strlen-tests: Likewise.
12297         * modules/unistr/u32-strmblen-tests: Likewise.
12298         * modules/unistr/u32-strmbtouc-tests: Likewise.
12299         * modules/unistr/u32-strncat-tests: Likewise.
12300         * modules/unistr/u32-strncmp-tests: Likewise.
12301         * modules/unistr/u32-strncpy-tests: Likewise.
12302         * modules/unistr/u32-strnlen-tests: Likewise.
12303         * modules/unistr/u32-to-u16-tests: Likewise.
12304         * modules/unistr/u32-to-u8-tests: Likewise.
12305         * modules/unistr/u32-uctomb-tests: Likewise.
12306         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12307         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12308         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12309         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12310         * modules/uniwidth/u8-strwidth-tests: Likewise.
12311         * modules/uniwidth/u8-width-tests: Likewise.
12312         * modules/uniwidth/u16-strwidth-tests: Likewise.
12313         * modules/uniwidth/u16-width-tests: Likewise.
12314         * modules/uniwidth/u32-strwidth-tests: Likewise.
12315         * modules/uniwidth/u32-width-tests: Likewise.
12316         * modules/uniwidth/width-tests: Likewise.
12317
12318 2010-05-18  Richard Jones  <rjones@redhat.com>
12319
12320         doc: users.txt: list hivex
12321         * users.txt: Add hivex.
12322
12323 2010-05-18  Richard Jones  <rjones@redhat.com>
12324
12325         doc: users.txt: list febootstrap
12326         * users.txt: Add febootstrap.
12327
12328 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12329
12330         bootstrap: fix an error when gnulib is not used as a git submodule
12331         * build-aux/bootstrap (gnulib_path): If its length is zero then
12332         assign "gnulib" to it.
12333         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12334
12335 2010-05-16  Bruno Haible  <bruno@clisp.org>
12336
12337         Avoid autoconf warnings about AM_ICONV.
12338         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12339         2.64.
12340
12341 2010-05-16  Bruno Haible  <bruno@clisp.org>
12342
12343         absolute-header: Make the macro usable in more situations.
12344         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
12345         from gl_ABSOLUTE_HEADER.
12346         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
12347
12348 2010-05-16  James Youngman  <jay@gnu.org>
12349
12350         doc: update users.txt
12351         * users.txt: Add CSSC.
12352
12353 2010-05-16  Jim Meyering  <meyering@redhat.com>
12354
12355         init.sh: fix an error in the previous change; add more comments
12356         * tests/init.sh: Compare exit code in loop against 9, not 2.
12357         Patch by Bruno Haible.
12358         Make the two tests more similar by adding an empty "then" clause.
12359         Add comments.
12360
12361         init.sh: avoid unnecessary shell re-exec
12362         * tests/init.sh: Improve the re-exec-required check to first test the
12363         current shell.  If it passes the test, do not search for a shell that
12364         does pass, and do not re-exec.  This test is particularly contorted to
12365         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
12366         of $(...) evokes a syntax error and causes immediate shell exit with
12367         status 2.  Bruno Haible reported that the re-exec made it impossible
12368         to single-step through any init.sh-using script.
12369
12370 2010-05-16  Bruno Haible  <bruno@clisp.org>
12371
12372         Fix collision between gnulib's and libintl's printf replacements.
12373         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
12374         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
12375         (printf): When using GNU C, map the __printf__ function to rpl_printf
12376         via __asm__. When not using GNU C, define rpl_printf instead of
12377         __printf__.
12378         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
12379         commit.
12380         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
12381         commit.
12382         * m4/asm-underscore.m4: New file.
12383         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
12384         * modules/stdio (Files): Add m4/asm-underscore.m4.
12385         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
12386         Reported by Ben Pfaff.
12387
12388 2010-05-16  Bruno Haible  <bruno@clisp.org>
12389
12390         verify: Avoid skipping the test on openSUSE 11.0.
12391         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
12392
12393 2010-05-13  Bruno Haible  <bruno@clisp.org>
12394
12395         Avoid useless warnings from G++.
12396         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
12397         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
12398         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12399
12400 2010-05-11  Jim Meyering  <meyering@redhat.com>
12401
12402         maint.mk: tweak preceding change
12403         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
12404         regexps tighter by anchoring at EOL, and make the new group "shy"
12405         for slightly decreased overhead.
12406
12407 2010-05-11  Eric Blake  <eblake@redhat.com>
12408
12409         maint.mk: gnulib doesn't guarantee NSIG
12410         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
12411
12412 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12413
12414         test-pwrite.c: Remove unused variable declaration.
12415         * tests/test-pwrite.c (main): Remove read_buf declaration.
12416
12417         Remove useless test-pwrite.sh file.
12418         * tests/test-pwrite.sh: Delete file.
12419         * modules/pwrite-tests: Remove references.
12420         Reported by Bruno Haible.
12421
12422 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12423
12424         init.sh: fix a typo
12425         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
12426
12427 2010-05-10  Jim Meyering  <meyering@redhat.com>
12428
12429         maint.mk: avoid using a temporary file in the always-defined-macros check
12430         * top/maint.mk (.re-defmac): Remove rule.
12431         (gl_trap_): Remove definition.
12432         (sc_prohibit_always-defined_macros): Rewrite not to create and
12433         depend on a temporary file.  Instead, depend on GNU grep's ability
12434         to read a list of regular expressions from stdin when given "-f -".
12435
12436 2010-05-09  Bruno Haible  <bruno@clisp.org>
12437
12438         Update to GNU gettext 0.18, part 1.
12439         * m4/gettext.m4: Update to GNU gettext 0.18.
12440         * m4/intl.m4: Likewise.
12441         * m4/po.m4: Likewise.
12442         * modules/gettext (Files): Add m4/fcntl-o.m4.
12443         (configure.ac): Require gettext infrastructure from version 0.18.
12444
12445 2010-05-09  Jim Meyering  <meyering@redhat.com>
12446
12447         init.sh: enable MALLOC_PERTURB_
12448         * tests/init.sh: Enable glibc's malloc-perturbing option.
12449
12450         maint.mk: improve sc_cross_check_PATH_usage_in_tests
12451         With my recent change in init.sh from the two-line form:
12452             -#   : ${srcdir=.}
12453             -#   . "$srcdir/init.sh"; path_prepend_ .
12454             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
12455         I noticed that using the one-line form would cause this test
12456         to fail with a false-positive, or to stop working altogether,
12457         depending on whether help-version changed or all the tests did.
12458         * top/maint.mk (_hv_regex): Remove this definition.
12459         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
12460         (_hv_regex_strong): Use a stronger regex to check for conformance.
12461         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
12462         Give a separate diagnostic for lack of conforming use.
12463
12464         maint.mk: prohibit definition of symbols defined by gnulib
12465         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
12466         definition of symbols defined by gnulib.
12467
12468 2010-05-09  Bruno Haible  <bruno@clisp.org>
12469
12470         acl: Avoid test failure on Cygwin-hosted mingw.
12471         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
12472
12473 2010-05-09  Bruno Haible  <bruno@clisp.org>
12474
12475         error: Use system's fcntl function.
12476         * lib/error.c (fcntl): Undefine.
12477
12478 2010-05-09  Jim Meyering  <meyering@redhat.com>
12479
12480         verify: adjust formatting to be more consistent
12481         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
12482         argument-list '('s, and after one comma.
12483
12484 2010-05-09  Bruno Haible  <bruno@clisp.org>
12485
12486         error: More reliable output on mingw.
12487         * lib/error.c: Include <windows.h>.
12488         (is_open): New function.
12489         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
12490         defined.
12491
12492 2010-05-09  Bruno Haible  <bruno@clisp.org>
12493
12494         vasnprintf: Fix syntax errors in libintl build on mingw.
12495         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
12496         pad_ourselves and prec_ourselves after use.
12497
12498 2010-05-08  Bruno Haible  <bruno@clisp.org>
12499
12500         * lib/config.charset: Update comments for Cygwin 1.7.
12501         * lib/localcharset.c: Likewise.
12502
12503 2010-05-07  Jim Meyering  <meyering@redhat.com>
12504
12505         init.sh: improve comments
12506         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
12507         . "${srcdir=.}/init.sh"; path_prepend_ .
12508         Add a note about path_prepend_ and the alternative of using
12509         TESTS_ENVIRONMENT.
12510
12511 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12512
12513         exclude: Unescape hashed patterns in wildcard mode.
12514         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
12515         to the hash list.
12516         * tests/test-exclude8.sh: New test case.
12517         * modules/exclude-tests: Add new test.
12518
12519 2010-05-05  Eric Blake  <eblake@redhat.com>
12520
12521         verify: automate tests
12522         * modules/verify-tests: New module.
12523         * tests/test-verify.sh: New file.
12524         * tests/test-verify.c: Guard each negative test with a unique id.
12525         Also avoid warning about unused left hand of comma expressions.
12526
12527 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12528
12529         Further improvements to verify.h, suggested by Eric Blake.
12530         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
12531         the GL_* versions, to avoid collision with OpenGL.
12532         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
12533         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
12534         than testing merely whether it's defined.
12535
12536         Modify verify.h to pacify gcc -Wredundant_decls.
12537         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
12538         These use the prefix "GL_" since they're likely to be useful elsewhere.
12539         We may need to break them out into a different .h file.
12540         (__COUNTER__): Define to 0 if the compiler doesn't support it.
12541         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
12542         of verify_function__.
12543
12544 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12545
12546         Tests for module pwrite.
12547         * modules/pwrite-tests: New file.
12548         * tests/test-pwrite.sh: New file.
12549         * tests/test-pwrite.c: New file.
12550
12551         New module pwrite.
12552         * lib/unistd.in.h (pwrite): New declaration.
12553         * lib/pwrite.c: New file, from glibc with modifications.
12554         * m4/pwrite.m4: New file.
12555         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12556         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12557         REPLACE_PWRITE.
12558         * modules/pwrite: New file.
12559         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12560         REPLACE_PWRITE.
12561         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12562         * doc/posix-functions/pwrite.texi: Mention the new module.
12563
12564 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12565
12566         pread: Update documentation.
12567         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12568
12569 2010-05-04  Eric Blake  <eblake@redhat.com>
12570
12571         docs: update cygwin progress
12572         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12573         this bug.
12574         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12575         Added in cygwin 1.7.2.
12576         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12577         Likewise.
12578         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12579         Likewise.
12580         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12581         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12582         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12583         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12584         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12585         Mention nproc module.
12586         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12587         bug in cygwin 1.7.5 addition.
12588         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12589         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12590         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12591         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12592         1.7.5.
12593         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12594         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12595         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12596         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12597         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12598         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12599         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12600         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12601         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12602         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12603         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12604         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12605         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12606         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12607         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12608         Likewise.
12609         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12610         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12611         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12612         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12613         Likewise.
12614         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12615         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12616         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12617         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12618         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12619         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12620         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12621         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12622         Likewise.
12623         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12624         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12625         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12626         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12627         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12628         Likewise.
12629         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12630         Likewise.
12631         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12632         Likewise.
12633         * doc/glibc-functions/xdrrec_endofrecord.texi
12634         (xdrrec_endofrecord): Likewise.
12635         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12636         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12637         Likewise.
12638         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12639         Likewise.
12640
12641 2010-05-04  Jim Meyering  <meyering@redhat.com>
12642
12643         gendocs.sh: make its "-s FILE" option more useful
12644         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12645         $PACKAGE to reflect the probably-different basename of "FILE".
12646
12647 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12648
12649         bootstrap: don't ignore download_po_files failure
12650         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12651         failure.
12652
12653 2010-05-03  Jim Meyering  <meyering@redhat.com>
12654
12655         maint.mk: allow to pass options to gendocs.sh
12656         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12657         (gendocs_options_): New overridable variable.
12658
12659         gnu-web-doc-update: don't ignore configure or build failure
12660         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12661
12662         announce-gen: backslash-escape '@'s in --help output
12663         * build-aux/announce-gen: Fix syntax errors.
12664
12665         maint.mk, announce-gen: allow project-specific announcement mail headers
12666         * top/maint.mk (translation_project_): Define default.
12667         (announcement_Cc_, announcement_mail_headers_): Likewise.
12668         (announcement): Invoke announce-gen with new --mail-headers option.
12669         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12670
12671         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12672         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12673         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12674         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12675         line in the "err2" output file when running "make check" in verbose
12676         mode (i.e., with set -x enabled).
12677
12678 2010-05-03  Bruno Haible  <bruno@clisp.org>
12679
12680         wctob: Fix for weird platforms.
12681         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12682         argument value.
12683
12684 2010-05-03  Jim Meyering  <meyering@redhat.com>
12685
12686         maint.mk: prohibit unwarranted use of <strings.h>
12687         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12688         strings.h in a file that does not also use strcasecmp, strncasecmp,
12689         ffs or ffsll.
12690
12691         maint.mk: remove obsolete comments
12692         * top/maint.mk: Remove stale, commented-out rules.
12693
12694 2010-05-02  Bruno Haible  <bruno@clisp.org>
12695
12696         wcwidth: Declare also when it's aliased.
12697         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12698         macro.
12699
12700 2010-05-02  Bruno Haible  <bruno@clisp.org>
12701
12702         Fix regression from 2010-04-25.
12703         * gnulib-tool (func_modules_transitive_closure): Check the status of
12704         all modules, not only of the tests that are of the form foo-tests where
12705         foo is a module.
12706
12707 2010-05-02  Bruno Haible  <bruno@clisp.org>
12708
12709         wctob: Work around nasty Cygwin 1.7.2 bug.
12710         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12711         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12712
12713 2010-05-01  Bruno Haible  <bruno@clisp.org>
12714
12715         fpurge: Sharper test.
12716         * tests/test-fpurge.c (main): Add one more ftell check.
12717         * modules/fpurge-tests (Depends-on): Add ftell.
12718         Suggested by Eric Blake.
12719
12720 2010-05-01  Bruno Haible  <bruno@clisp.org>
12721
12722         ftello: Another test.
12723         * tests/test-ftello3.c: New file.
12724         * modules/ftello-tests (Files): Add it.
12725         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12726         MOSTLYCLEANFILES.
12727
12728         ftell: Another test.
12729         * tests/test-ftell3.c: New file.
12730         * modules/ftell-tests (Files): Add it.
12731         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12732         MOSTLYCLEANFILES.
12733
12734 2010-05-01  Bruno Haible  <bruno@clisp.org>
12735
12736         ftell, ftello: Work around Solaris bug.
12737         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12738         * lib/ftello.c: Include stdio-impl.h.
12739         (ftello): On Solaris, when _IOWRT is set, compute the result without
12740         looking at _IOREAD.
12741         * modules/ftello (Files): Add lib/stdio-impl.h.
12742         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12743         * doc/posix-functions/ftello.texi: Likewise.
12744         Reported by Eric Blake.
12745
12746 2010-05-01  Bruno Haible  <bruno@clisp.org>
12747
12748         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12749         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12750         the _IOWRT flag is also set.
12751
12752 2010-05-01  Bruno Haible  <bruno@clisp.org>
12753
12754         Fix doc about a HP-UX stdio bug.
12755         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12756         * doc/posix-functions/ftello.texi: Likewise.
12757
12758 2010-05-01  Bruno Haible  <bruno@clisp.org>
12759
12760         lseek test: Fix failure on Solaris.
12761         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12762         output.
12763
12764 2010-04-30  Jim Meyering  <meyering@redhat.com>
12765
12766         bootstrap: don't ignore failure to generate po*/Makevars
12767         * build-aux/bootstrap (with_gettext): Don't ignore failure
12768         to create po/Makevars or runtime-po/Makevars.
12769
12770 2010-04-29  Eric Blake  <eblake@redhat.com>
12771
12772         headers: relax license to LGPLv2+
12773         * modules/fcntl-h (License): Relax license.
12774         * modules/getopt-posix (License): Likewise.
12775         * modules/locale (License): Likewise.
12776         * modules/math (License): Likewise.
12777         * modules/pty (License): Likewise.
12778         * modules/sched (License): Likewise.
12779         * modules/search (License): Likewise.
12780         * modules/spawn (License): Likewise.
12781         * modules/stdarg (License): Likewise.
12782         * modules/sysexits (License): Likewise.
12783
12784 2010-04-29  Jim Meyering  <meyering@redhat.com>
12785
12786         inttypes: relax license to LGPLv2+
12787         * modules/inttypes (License): Relax license.
12788
12789 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12790
12791         * top/maint.mk (indent): Run twice to produce idempotent results.
12792
12793 2010-04-28  Bruno Haible  <bruno@clisp.org>
12794
12795         getdate: Generate getdate.c in the source directory.
12796         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12797         MOSTLYCLEANFILES.
12798         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12799
12800 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12801
12802         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12803         is not declared as a const *; avoid warnings in that case.
12804
12805 2010-04-28  Eric Blake  <eblake@redhat.com>
12806
12807         canonicalize-lgpl: avoid compiler warning
12808         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12809         declaration' / 'extraneous semicolon' warning with some compilers.
12810         Reported by Andreas Gruenbacher.
12811
12812 2010-04-28  Jim Meyering  <meyering@redhat.com>
12813
12814         init.sh: ensure a more reliable exit status when exiting via trap
12815         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12816         Inspired by patches from Dmitry V. Levin.
12817         Also trap on signal 3 (SIGQUIT).
12818
12819 2010-04-27  Bruno Haible  <bruno@clisp.org>
12820
12821         Update doc about utimes().
12822         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12823         'utimens' module.
12824         Reported by Andreas Gruenbacher <agruen@suse.de>.
12825
12826 2010-04-27  Eric Blake  <eblake@redhat.com>
12827
12828         full-read, full-write: relax license
12829         * modules/full-read (License): Drop to LGPLv2+.
12830         * modules/full-write (License): Likewise.
12831         * modules/safe-read (License): Likewise.
12832         * modules/safe-write (License): Likewise.
12833
12834         pthread: mention library for linking
12835         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12836
12837 2010-04-27  Jim Meyering  <meyering@redhat.com>
12838
12839         maint.mk: fix a bug introduced in last change
12840         * top/maint.mk (gl_assured_headers_): Now that all names are on
12841         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12842         is not anchored to end of word, it should be adequate.
12843
12844         maint.mk: avoid side-effect in latest syntax-check
12845         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12846         to run commands via $(shell...), and hence to incur cost only when
12847         the new rule is actually run.
12848
12849         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12850         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12851         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12852         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12853         (gl_assured_headers_, az_, AZ_): Define.
12854         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12855
12856 2010-04-26  Jim Meyering  <jim@meyering.net>
12857             Bruno Haible  <bruno@clisp.org>
12858
12859         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12860         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12861         Prompted by an exchange with Gilles Espinasse.
12862
12863 2010-04-26  Jim Meyering  <meyering@redhat.com>
12864
12865         git-version-gen: aesthetic tweak
12866         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12867         so that the command remains on a single line.
12868
12869 2010-04-26  Eric Blake  <eblake@redhat.com>
12870
12871         git-version-gen: allow use on EBCDIC hosts
12872         * build-aux/git-version-gen (dirty): Use literal rather than tying
12873         ourselves to ascii.
12874         Reported by Steve Goetze.
12875
12876 2010-04-25  Bruno Haible  <bruno@clisp.org>
12877
12878         netdb: Add support for GNULIB_POSIXCHECK.
12879         * lib/netdb.in.h: Include warn-on-use.h.
12880         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12881         functions are used when GNULIB_POSIXCHECK is defined and the
12882         getaddrinfo module is not in use.
12883         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12884         freeaddrinfo, gai_strerror, getnameinfo are declared.
12885         * modules/netdb (Depends-on): Add warn-on-use.
12886         (Makefile.am): Include warn-on-use.h in netdb.h.
12887
12888 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12889
12890         build: avoid "make check" failure without .git/ directory
12891         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12892         there is no .git/ directory.
12893
12894 2010-04-25  Bruno Haible  <bruno@clisp.org>
12895
12896         ptsname: Fix misuse of ttyname_r.
12897         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12898         of errno.
12899
12900 2010-04-25  Bruno Haible  <bruno@clisp.org>
12901
12902         ttyname_r: Make it work on Solaris 10.
12903         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12904         if the system function has the POSIX declaration. Test whether the
12905         function fails if the buffer is less than 128 bytes large.
12906         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12907         system's ttyname_r function. Provide a reasonably large buffer.
12908         * modules/ttyname_r (Depends-on): Add extensions.
12909         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12910
12911 2010-04-25  Bruno Haible  <bruno@clisp.org>
12912
12913         Use the 'extensions' module for some more functions on Solaris.
12914         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12915         module.
12916         * doc/posix-functions/ctime_r.texi: Likewise.
12917         * doc/posix-functions/getgrgid_r.texi: Likewise.
12918         * doc/posix-functions/getgrnam_r.texi: Likewise.
12919         * doc/posix-functions/getpwnam_r.texi: Likewise.
12920         * doc/posix-functions/getpwuid_r.texi: Likewise.
12921         * doc/posix-functions/readdir_r.texi: Likewise.
12922         * doc/posix-functions/sigwait.texi: Likewise.
12923         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12924         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12925
12926 2010-04-25  Bruno Haible  <bruno@clisp.org>
12927
12928         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12929         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12930         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12931         * lib/ttyname_r.c: Include <limits.h>.
12932         (ttyname_r): Define using the system's ttyname_r function, if it exists
12933         and not on Solaris.
12934         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12935         set.
12936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12937         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12938         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12939         Reported by Simon Josefsson.
12940
12941 2010-04-25  Bruno Haible  <bruno@clisp.org>
12942
12943         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12944         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12945         * doc/posix-functions/ctime_r.texi: Likewise.
12946         * doc/posix-functions/getgrgid_r.texi: Likewise.
12947         * doc/posix-functions/getgrnam_r.texi: Likewise.
12948         * doc/posix-functions/getlogin_r.texi: Likewise.
12949         * doc/posix-functions/getpwnam_r.texi: Likewise.
12950         * doc/posix-functions/getpwuid_r.texi: Likewise.
12951         * doc/posix-functions/readdir_r.texi: Likewise.
12952         * doc/posix-functions/sigwait.texi: Likewise.
12953         * doc/posix-functions/ttyname_r.texi: Likewise.
12954         Reported by Simon Josefsson.
12955
12956 2010-04-25  Bruno Haible  <bruno@clisp.org>
12957
12958         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12959         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12960         also to --create-testdir.
12961         (func_acceptable): Don't consider the status of *-tests modules here.
12962         (func_modules_transitive_closure): Consider it here, before including a
12963         test module.
12964         (func_import, func_create_testdir): Set inc_all_direct_tests,
12965         inc_all_indirect_tests.
12966         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12967         --create-testdir and --create-megatestdir.
12968
12969 2010-04-25  Bruno Haible  <bruno@clisp.org>
12970
12971         gnulib-tool: Add --without-*-tests options.
12972         * gnulib-tool (func_usage): Document the --without-*-tests options.
12973         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12974         excl_unportable_tests): New variables.
12975         Fail if they are specified with --import or --update.
12976         (func_acceptable): Respect the excl_*_tests variables.
12977         (func_import): Set the excl_*_tests variables to empty.
12978
12979 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12980             Bruno Haible  <bruno@clisp.org>
12981
12982         Work around a MacOS X 10.4 bug with openpty.
12983         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12984         * tests/test-openpty.c (main): Close the master side explicitly.
12985
12986 2010-04-25  Bruno Haible  <bruno@clisp.org>
12987
12988         strnlen: Fix a C++ test error on MacOS X and Solaris.
12989         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12990         the function is not declared.
12991         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12992         Simon Josefsson.
12993
12994 2010-04-24  Bruno Haible  <bruno@clisp.org>
12995
12996         Avoid a gcc warning.
12997         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12998         of correct type for %08lx directive.
12999         Reported by Eric Blake.
13000
13001 2010-04-24  Bruno Haible  <bruno@clisp.org>
13002
13003         vasnprintf: Correct errno value in case of out-of-memory.
13004         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13005         or sprintf. Use the errno value from SNPRINTF or sprintf.
13006         Reported by Ian Beckwith <ianb@erislabs.net>.
13007
13008 2010-04-24  Bruno Haible  <bruno@clisp.org>
13009
13010         ansi-c++-opt: Find correct compiler when cross-compiling.
13011         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13012         AC_CHECK_PROGS.
13013         Reported by Simon Josefsson.
13014
13015 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13016
13017         vc-list-files: Add support for subversion
13018         * build-aux/vc-list-files: Use "svn list" to generate the list of
13019         files controlled by subversion.
13020
13021 2010-04-23  Jim Meyering  <meyering@redhat.com>
13022
13023         vc-list-files tests: convert to use init.sh
13024         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13025         path_prepend_.
13026         Use Exit, not exit.
13027         Use skip_ rather than open coding it.
13028         Remove trap set-up and compare definitions.
13029         * tests/test-vc-list-files-git.sh: Likewise.
13030         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13031
13032 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13033
13034         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13035         backup files.
13036
13037 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13038
13039         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13040
13041 2010-04-20  Eric Blake  <eblake@redhat.com>
13042
13043         tests: be robust to ignored SIGPIPE
13044         * tests/test-select-in.sh: Consume all output.
13045         * tests/test-lseek.sh: Check correct exit status, while avoiding
13046         EPIPE.
13047
13048 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13049             Bruno Haible  <bruno@clisp.org>
13050
13051         visibility: Don't use -fvisibility if it leads to a warning.
13052         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13053         yes, don't pretend that visibility works if it leads to a warning.
13054         Reported by Mike Gran <spk121@yahoo.com>.
13055
13056 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13057
13058         * build-aux/bootstrap: Use "git -h" for testing for supported options
13059         instead of "git --help".  The short-form option only shows a summary,
13060         and doesn't layout the full man page.  Grep for the full option name
13061         in the summary, too.
13062
13063 2010-04-19  Bruno Haible  <bruno@clisp.org>
13064
13065         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13066         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13067         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13068         mention of RELOCATABLE_STRIP.
13069         Reported by Sylvain Beucler <beuc@beuc.net>.
13070
13071 2010-04-19  Bruno Haible  <bruno@clisp.org>
13072
13073         * lib/diffseq.h: Fix typo in comment.
13074         Reported by Eric Blake.
13075
13076 2010-04-19  Bruno Haible  <bruno@clisp.org>
13077
13078         ioctl: Move autoconf macro to a .m4 file.
13079         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13080         * modules/ioctl (Files): Add it.
13081         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13082         Reported by Ian Beckwith <ianb@erislabs.net>.
13083
13084 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13085             Bruno Haible  <bruno@clisp.org>
13086
13087         diffseq: Accommodate use-case with abstract arrays.
13088         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13089         is not defined.
13090         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13091         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13092
13093 2010-04-18  Bruno Haible  <bruno@clisp.org>
13094
13095         * doc/posix-headers/stdbool.texi: More precise wording.
13096
13097 2010-04-17  Jim Meyering  <meyering@redhat.com>
13098
13099         maint.mk: use gnu-style indentation in an embedded perl script
13100         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13101         Rename variable: s/two/last_two_bytes/
13102
13103 2010-04-16  Eric Blake  <eblake@redhat.com>
13104
13105         test-stdbool: skip test that fails with Solaris CC
13106         * tests/test-stdbool.c (f): Skip test that causes compilation
13107         error under buggy C++ compiler.
13108         * lib/stdbool.in.h: Document the limitation.
13109         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13110
13111         setenv: allow compilation with C++
13112         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13113         register keyword.
13114
13115         stdint: allow test to pass with C++
13116         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13117
13118         getopt: allow compilation with C++
13119         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13120         struct.
13121         * lib/getopt.c (_getopt_internal_r): Use correct type.
13122         Reported by Dagobert Michelson, via Joel E. Denny.
13123
13124 2010-04-16  Bruno Haible  <bruno@clisp.org>
13125
13126         Override netdb.h always.
13127         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13128         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13129         Reported by Ludovic Courtès <ludo@gnu.org>.
13130
13131 2010-04-15  Bruno Haible  <bruno@clisp.org>
13132
13133         openpty: Fix mistake from 2010-03-21.
13134         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13135         Reported by Simon Josefsson.
13136
13137 2010-04-15  Eric Blake  <eblake@redhat.com>
13138
13139         test-forkpty: fix expected signature
13140         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13141         Reported by Simon Josefsson.
13142
13143 2010-04-15  Jim Meyering  <meyering@redhat.com>
13144
13145         maint.mk: texinfo_suffix_re_: correct the default regexp
13146         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13147
13148         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13149         make it configurable via texinfo_suffix_re_.
13150
13151 2010-04-14  Eric Blake  <eblake@redhat.com>
13152
13153         strtok_r: relax license to LGPLv2+
13154         * modules/strtok_r (License): Relax license.
13155         Reported by Matthias Bolte.
13156
13157 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13158
13159         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13160         version 1.4.4 by default instead of requiring the libgcrypt
13161         version used during build.  This makes it possible to use the
13162         application with older but still binary compatible libgcrypt
13163         versions.
13164
13165 2010-04-13  Eric Blake  <eblake@redhat.com>
13166
13167         getopt-gnu: match recent glibc fixes and posix ruling
13168         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13169         '+' handling, when requesting extensions.
13170         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13171         'W;' handling.
13172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13173         * doc/posix-functions/getopt.texi (getopt): Document this.
13174         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13175         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13176         Likewise.
13177
13178         getopt: merge bug fixes from glibc
13179         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13180         diagnostics.  Honor '+:' correctly.  Reject ';'.
13181
13182         getopt-posix: detect MacOS bug
13183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13184         optind when missing a required argument.
13185         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13186         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13187         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13188         Likewise.
13189
13190         getopt-posix: avoid spurious failure on Solaris
13191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13192         an indicator that setting optind=1 is sufficient for reset.
13193
13194         getopt-posix: avoid spurious failure on FreeBSD
13195         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13196         in POSIX mode, since the m4 test uses it.
13197
13198         gnulib-tool: silence warning on BSD sh
13199         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13200
13201 2010-04-13  Jim Meyering  <meyering@redhat.com>
13202
13203         doc: users.txt: GNU patch now uses gnulib
13204         * users.txt: Add patch.
13205
13206 2010-04-12  Jim Meyering  <meyering@redhat.com>
13207
13208         maint.mk: generate more concise timing data for syntax-check rules
13209         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13210         " done" from each line that reports a syntax-check test duration.
13211
13212 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13213
13214         git-version-gen: use "git update-index..." rather than "git status"
13215         * build-aux/git-version-gen: Use git update-index --refresh, not
13216         "git status".  With some versions of git, "git status" would fail
13217         to update the index and result in an unwarranted "-dirty" suffix.
13218
13219 2010-04-11  Jim Meyering  <meyering@redhat.com>
13220
13221         openat: correct formatting (no semantic change)
13222         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13223         Suggested by Bruno Haible.
13224
13225 2010-04-11  Bruno Haible  <bruno@clisp.org>
13226
13227         Stricter declaration checking in testdirs.
13228         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13229         If for_tests is true, augment AM_CPPFLAGS to define
13230         GNULIB_STRICT_CHECKING.
13231         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13232         GNULIB_STRICT_CHECKING is defined, verify that the function is
13233         declared.
13234
13235 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13236             Bruno Haible  <bruno@clisp.org>
13237
13238         libunistring: Improve configure output.
13239         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13240         Don't say "consider installing GNU libunistring" when checking again
13241         with libiconv.
13242
13243 2010-04-11  Bruno Haible  <bruno@clisp.org>
13244
13245         libunistring: Correct value of $LTLIBUNISTRING.
13246         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13247         correct the value of $LTLIBUNISTRING.
13248
13249 2010-04-11  Bruno Haible  <bruno@clisp.org>
13250
13251         havelib: Add static libraries to LIBS in the right order.
13252         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13253         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13254
13255 2010-04-11  Bruno Haible  <bruno@clisp.org>
13256
13257         libunistring: Detect libunistring also when it depends on libiconv.
13258         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13259         the second AC_LIB_HAVE_LINKFLAGS invocation.
13260
13261 2010-04-11  James Youngman  <jay@gnu.org>
13262
13263         close-stream: declare local scalars to be "const"
13264         * lib/close-stream.c (close_stream): Make boolean variables const
13265         to document the fact that we set but do not change them.
13266
13267 2010-04-11  Bruno Haible  <bruno@clisp.org>
13268
13269         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13270
13271 2010-04-11  Jim Meyering  <meyering@redhat.com>
13272
13273         maint.mk: don't include dist-check.mk
13274         * top/maint.mk: Remove bogus include directive.
13275
13276         maint.mk: improve empty-line-at-EOF check
13277         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13278         solution, rather than tail+Perl-based one.  The latter would read
13279         a few kilobytes from the end of each file, and did not handle empty
13280         files properly.
13281
13282         maint.mk: print the elapsed time for each syntax-check rule
13283         * top/maint.mk (sc_m_rules_): Save start time in a file.
13284         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13285         (local-check): Interpose the .z rules
13286
13287 2010-04-11  Jim Meyering  <meyering@redhat.com>
13288
13289         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13290         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13291         empty file with one that ends in an empty line.
13292
13293 2010-04-10  Bruno Haible  <bruno@clisp.org>
13294
13295         mkdir: Make it work on mingw64.
13296         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13297         * lib/mkdir.c: Update comment.
13298         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
13299
13300 2010-04-10  Bruno Haible  <bruno@clisp.org>
13301
13302         Don't override improved macro from newer autoconf.
13303         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13304         autoconf >= 2.62.
13305         Reported by Joel E. Denny <jdenny@clemson.edu>.
13306
13307 2010-04-10  Jim Meyering  <meyering@redhat.com>
13308
13309         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13310         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13311
13312         maint.mk: correct a diagnostic
13313         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13314         in diagnostic; now use $prohibit.
13315
13316 2010-04-10  Bruno Haible  <address@hidden>
13317
13318         fchownat: Fix a C++ test error on Solaris 8.
13319         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13320         the function does not exist.
13321
13322 2010-04-10  Bruno Haible  <bruno@clisp.org>
13323
13324         vasnprintf: Add more tests.
13325         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13326         (test_function): Test converting an invalid wide string.
13327
13328         vasnprintf: Correct handling of unconvertible wide string arguments.
13329         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13330         VASNPRINTF.
13331         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13332         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13333         smaller than the expected maximum need for the directive. Set errno to
13334         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13335         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13337         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13338         * modules/vasnprintf (Files): Add m4/printf.m4.
13339         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13340
13341 2010-04-10  Bruno Haible  <bruno@clisp.org>
13342
13343         vasnprintf: Fix crash in %ls directive.
13344         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
13345         string is passed as argument to %ls, with no precision and no width.
13346         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13347
13348 2010-04-10  Bruno Haible  <bruno@clisp.org>
13349
13350         vasnprintf: Fix multiple test failures on mingw.
13351         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
13352         _snprintf, or snwprintf, not _snwprintf.
13353
13354 2010-04-10  Bruno Haible  <bruno@clisp.org>
13355
13356         write: Fix a C++ test error on mingw.
13357         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
13358
13359 2010-04-10  Bruno Haible  <bruno@clisp.org>
13360
13361         vasnprintf test: Reduce code duplication.
13362         * tests/test-vasnprintf.c (test_function): New function, extracted from
13363         test_vasnprintf.
13364         (test_vasnprintf, test_asnprintf): Invoke it.
13365
13366 2010-04-10  Bruno Haible  <bruno@clisp.org>
13367
13368         strnlen: Fix warning in C++ mode on MacOS X.
13369         * lib/string.in.h (strnlen): Use the modern idiom.
13370         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
13371         defining strnlen as a macro already in <config.h>.
13372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13373         REPLACE_STRNLEN.
13374         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
13375         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13376
13377 2010-04-08  James Youngman  <jay@gnu.org>
13378
13379         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
13380         the example.
13381
13382 2010-04-09  Jim Meyering  <meyering@redhat.com>
13383
13384         maint.mk: print better diagnostic when there is no $(_hv_file)
13385         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
13386         announce that when $(_hv_file) (aka help-version) does not exist.
13387
13388         init.sh: run tr in the "C" locale to avoid multibyte interpretation
13389         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
13390         not try to interpret its random input bytes.  Jarno Rajahalme reported
13391         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
13392         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
13393         (mktempd_): Likewise, just in case.
13394
13395         ftruncate: add two years to projected module removal date: 2012
13396         * m4/ftruncate.m4: Adjust comments.
13397
13398         ftruncate: mark module as obsolete; even MinGW provides it, now
13399         * modules/ftruncate (Status): Obsolete.
13400         (Notice): Say that.
13401         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
13402         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
13403
13404 2010-04-08  Bruno Haible  <bruno@clisp.org>
13405
13406         Fix side effects from tests-related modules.
13407         * modules/dprintf-posix (Comment): New section.
13408         * modules/fprintf-posix (Comment): Likewise.
13409         * modules/obstack-printf-posix (Comment): Likewise.
13410         * modules/printf-posix (Comment): Likewise.
13411         * modules/snprintf-posix (Comment): Likewise.
13412         * modules/sprintf-posix (Comment): Likewise.
13413         * modules/vasnprintf-posix (Comment): Likewise.
13414         * modules/vasprintf-posix (Comment): Likewise.
13415         * modules/vdprintf-posix (Comment): Likewise.
13416         * modules/vfprintf-posix (Comment): Likewise.
13417         * modules/vprintf-posix (Comment): Likewise.
13418         * modules/vsnprintf-posix (Comment): Likewise.
13419         * modules/vsprintf-posix (Comment): Likewise.
13420         * modules/xprintf-posix (Comment): Likewise.
13421         * modules/xvasprintf-posix (Comment): Likewise.
13422         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
13423         * modules/floorf-tests (Depends-on): Likewise.
13424         * modules/round-tests (Depends-on): Likewise.
13425         * modules/roundf-tests (Depends-on): Likewise.
13426         * modules/trunc-tests (Depends-on): Likewise.
13427         * modules/truncf-tests (Depends-on): Likewise.
13428         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
13429         'fprintf-posix' module is not present.
13430         * tests/test-floorf2.c (check): Likewise.
13431         * tests/test-trunc2.c (check): Likewise.
13432         * tests/test-truncf2.c (check): Likewise.
13433         * tests/test-round2.c (equal): Likewise.
13434         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13435
13436 2010-04-07  Karl Berry  <karl@gnu.org>
13437
13438         * config/srclist.txt,
13439         * config/srclistvars.sh,
13440         * config/srclist-update: doc fixes.
13441
13442 2010-04-07  Jim Meyering  <meyering@redhat.com>
13443
13444         maint.mk: add a PATH crosschecking syntax-check rule
13445         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
13446         Useful if you use a test like the one in help-version (coreutils,
13447         diffutils, grep, gzip) that ensures $(VERSION) matches what is
13448         printed by prog --version.
13449
13450 2010-04-06  Bruno Haible  <bruno@clisp.org>
13451
13452         Fix link error on mingw.
13453         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
13454         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
13455
13456 2010-04-06  Bruno Haible  <bruno@clisp.org>
13457
13458         Assume rmdir exists.
13459         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
13460
13461 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
13462
13463         doc: update users.txt
13464         * users.txt: Add gcal.
13465
13466 2010-04-06  Jim Meyering  <meyering@redhat.com>
13467
13468         init.sh: simply unset TMPDIR rather than risking env -i
13469         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
13470         although it probably works fine on all Unix-based systems, some
13471         systems (Cygwin?) cannot tolerate a totally cleared environment.
13472         Suggestion from Eric Blake.
13473
13474 2010-04-06  Jim Meyering  <meyering@redhat.com>
13475
13476         init.sh: portability fix: use env's POSIX-specified -i option not -u
13477         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
13478         than unportable env -u.  Solaris 5.11's env lacks support for -u.
13479
13480 2010-04-05  Bruno Haible  <bruno@clisp.org>
13481
13482         btowc: Work around Cygwin 1.7.2 bug.
13483         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
13484         does not map NUL to 0.
13485         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
13486
13487 2010-04-05  Bruno Haible  <bruno@clisp.org>
13488
13489         Make the multithread modules work on Cygwin 1.7.2.
13490         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
13491         imported symbols can be declared weak, so that it returns "no" on
13492         Cygwin 1.7.2.
13493
13494 2010-04-05  Bruno Haible  <bruno@clisp.org>
13495
13496         Use the module 'strncat'.
13497         * modules/unistr/u8-strncat (Depends-on): Add strncat.
13498
13499         Tests for module 'strncat'.
13500         * modules/strncat-tests: New file.
13501         * tests/test-strncat.c: New file.
13502
13503         New module 'strncat'.
13504         * lib/string.in.h (strncat): New declaration.
13505         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
13506         * m4/strncat.m4: New file, based on m4/memchr.m4.
13507         * modules/strncat: New file.
13508         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
13509         is declared.
13510         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
13511         REPLACE_STRNCAT.
13512         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
13513         REPLACE_STRNCAT.
13514         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
13515         module.
13516         * tests/test-string-c++.cc: Check signature of strncat.
13517
13518 2010-04-05  Jim Meyering  <meyering@redhat.com>
13519
13520         xstrtoumax-tests: convert to use init.sh
13521         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
13522         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13523         Use Exit, not exit.
13524         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13525
13526         xstrtoimax-tests: convert to use init.sh
13527         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
13528         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13529         Use Exit, not exit.
13530         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13531
13532 2010-04-05  Bruno Haible  <bruno@clisp.org>
13533
13534         sys_socket: Avoid #define replacements in C++ mode.
13535         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
13536         warning to the function if possible, rather than #defining the symbol
13537         to a dysfunctional alias.
13538
13539 2010-04-05  Bruno Haible  <bruno@clisp.org>
13540
13541         fseeko: Fix C++ test error on mingw.
13542         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
13543         gl_FUNC_FSEEKO.
13544         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
13545         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
13546         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
13547         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
13548
13549 2010-04-05  Bruno Haible  <bruno@clisp.org>
13550
13551         duplocale: Improve test output.
13552         * tests/test-duplocale.c (main): Print reason for skipped test.
13553
13554 2010-04-05  Bruno Haible  <bruno@clisp.org>
13555
13556         Assume rmdir exists.
13557         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13558         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13559
13560 2010-04-05  Bruno Haible  <bruno@clisp.org>
13561
13562         Fix link error on Solaris 8 with cc.
13563         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13564
13565 2010-04-05  Bruno Haible  <bruno@clisp.org>
13566
13567         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13568         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13569
13570 2010-04-05  Bruno Haible  <bruno@clisp.org>
13571
13572         vasprintf: Update documentation.
13573         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13574
13575 2010-04-05  Bruno Haible  <bruno@clisp.org>
13576
13577         ptsname: Improve test.
13578         * tests/test-ptsname.c (main): Also try the various master names of BSD
13579         systems.
13580
13581 2010-04-05  Bruno Haible  <bruno@clisp.org>
13582
13583         memchr: Avoid a possible C++ test error.
13584         * lib/string.in.h (memchr): Provide declaration if function is missing.
13585         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13586         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13588         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13589
13590 2010-04-05  Bruno Haible  <bruno@clisp.org>
13591
13592         strtok_r: Improve idiom.
13593         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13594         AC_LIBOBJ is used.
13595
13596 2010-04-05  Bruno Haible  <bruno@clisp.org>
13597
13598         strdup: Improve idiom.
13599         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13600         AC_LIBOBJ is used.
13601         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13602         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13603         when AC_LIBOBJ is used.
13604
13605 2010-04-05  Bruno Haible  <bruno@clisp.org>
13606
13607         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13608         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13609         don't set REPLACE_MBSINIT to 1.
13610         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13611         don't set REPLACE_MBRTOWC to 1.
13612         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13613         exist, don't set REPLACE_MBSRTOWCS to 1.
13614         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13615         exist, don't set REPLACE_MBSNRTOWCS to 1.
13616         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13617         don't set REPLACE_WCRTOMB to 1.
13618         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13619         exist, don't set REPLACE_WCSRTOMBS to 1.
13620         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13621         exist, don't set REPLACE_WCSNRTOMBS to 1.
13622
13623 2010-04-05  Bruno Haible  <bruno@clisp.org>
13624
13625         ldexpl: Improve idiom.
13626         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13627         make sure to set HAVE_DECL_LDEXPL to 0.
13628
13629 2010-04-05  Jim Meyering  <meyering@redhat.com>
13630
13631         xstrtol-tests: convert to use init.sh
13632         * modules/xstrtol-tests (Files): Add tests/init.sh.
13633         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13634         Use Exit, not exit.
13635         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13636
13637         atexit-tests: convert to use init.sh
13638         * modules/atexit-tests (Files): Add tests/init.sh.
13639         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13640         Use Exit, not exit.
13641         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13642
13643         init.sh: fix typo
13644         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13645
13646         init.sh: make it easier for a test script to write to the tty, ...
13647         when using automake's parallel-tests mode.
13648         * tests/init.sh (stderr_fileno_): Define overridable variable.
13649         (warn_): New function, to use it.
13650         (fail_, skip_, framework_failure_): Use warn_.
13651
13652 2010-04-04  Bruno Haible  <bruno@clisp.org>
13653
13654         btowc: Avoid warning.
13655         * lib/btowc.c: Include <stdlib.h>.
13656         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13657
13658 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13659             Bruno Haible  <bruno@clisp.org>
13660
13661         wchar: Port to NetBSD 1.5.
13662         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13663         * lib/wctype.in.h (WEOF): Likewise.
13664
13665 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13666             Bruno Haible  <bruno@clisp.org>
13667
13668         Port extended stdio to NetBSD 1.5.
13669         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13670         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13671         older.
13672
13673 2010-04-04  Bruno Haible  <bruno@clisp.org>
13674
13675         string: Remove unused substitution.
13676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13677         HAVE_DECL_STRERROR.
13678         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13679
13680 2010-04-04  Bruno Haible  <bruno@clisp.org>
13681
13682         strtod: Avoid a possible C++ test error.
13683         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13684         set REPLACE_STRTOD.
13685
13686 2010-04-04  Bruno Haible  <bruno@clisp.org>
13687
13688         strerror: Update documentation.
13689         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13690
13691 2010-04-04  Bruno Haible  <bruno@clisp.org>
13692
13693         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13694         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13695         _GL_CXXALIAS_SYS_CAST.
13696
13697 2010-04-04  Bruno Haible  <bruno@clisp.org>
13698
13699         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13700         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13701         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13702         REPLACE_FREXPL to 1.
13703         * doc/posix-functions/frexpl.texi: Update documentation.
13704
13705 2010-04-04  Bruno Haible  <bruno@clisp.org>
13706
13707         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13708         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13709
13710 2010-04-04  Bruno Haible  <bruno@clisp.org>
13711
13712         Implement nanosleep for native Windows.
13713         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13714
13715 2010-04-04  Bruno Haible  <bruno@clisp.org>
13716
13717         math: Fix some C++ test errors on Solaris 8.
13718         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13719
13720 2010-04-04  Bruno Haible  <bruno@clisp.org>
13721
13722         math: Fix some C++ test errors on Cygwin.
13723         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13724         truncl): Provide declaration if the system does not have it.
13725         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13726         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13727         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13728         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13729         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13730         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13731         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13732         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13733         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13734         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13735         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13736         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13737         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13738         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13739         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13740         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13742         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13743         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13744         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13745         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13746         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13747
13748 2010-04-04  Bruno Haible  <bruno@clisp.org>
13749
13750         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13751         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13752         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13753         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13754         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13755         * m4/isinf.m4 (gl_ISINF): Likewise.
13756         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13757
13758 2010-04-04  Bruno Haible  <bruno@clisp.org>
13759
13760         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13761         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13762
13763 2010-04-04  Bruno Haible  <bruno@clisp.org>
13764
13765         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13766         * modules/tmpfile (configure.ac): Update.
13767
13768         tmpfile: Fix C++ test error on mingw.
13769         * lib/stdio.in.h (tmpfile): New declaration.
13770         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13771         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13772         * modules/tmpfile (Depends-on): Add stdio.
13773         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13774         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13775         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13776         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13777         REPLACE_TMPFILE.
13778         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13779
13780 2010-04-04  Bruno Haible  <bruno@clisp.org>
13781
13782         ioctl: Fix C++ test error on mingw.
13783         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13784         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13785         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13786
13787 2010-04-03  Bruno Haible  <bruno@clisp.org>
13788
13789         wcwidth: Fix C++ test error on mingw.
13790         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13792         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13793
13794 2010-04-03  Bruno Haible  <bruno@clisp.org>
13795
13796         nanosleep: Fix C++ test error on mingw.
13797         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13798         * lib/time.in.h (nanosleep): Use modern idiom.
13799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13800         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13801         REPLACE_NANOSLEEP to 1.
13802         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13803         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13804
13805 2010-04-03  Bruno Haible  <bruno@clisp.org>
13806
13807         strptime: Fix C++ test error on mingw.
13808         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13809         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13810         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13811         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13812         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13813         not REPLACE_STRPTIME.
13814         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13815         REPLACE_STRPTIME.
13816
13817 2010-04-03  Bruno Haible  <bruno@clisp.org>
13818
13819         timegm: Fix C++ test error on mingw.
13820         * lib/time.in.h (timegm): Use modern idiom.
13821         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13822         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13823         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13824         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13825
13826 2010-04-03  Bruno Haible  <bruno@clisp.org>
13827
13828         timegm: Assume declaration if function exists.
13829         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13830         if it exists. Don't clobber ac_cv_func_timegm.
13831
13832 2010-04-03  Bruno Haible  <bruno@clisp.org>
13833
13834         time_r: Fix C++ test error on mingw.
13835         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13836         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13837         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13838         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13839         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13840
13841 2010-04-03  Bruno Haible  <bruno@clisp.org>
13842
13843         time_r: Minor updates.
13844         * modules/time_r (Description): Mention the provided functions.
13845         * lib/time_r.c: Don't include <string.h>.
13846         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13847         * doc/posix-functions/localtime_r.texi: Likewise.
13848
13849 2010-04-03  Bruno Haible  <bruno@clisp.org>
13850
13851         time: Fix regression introduced on 2010-03-08.
13852         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13853         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13854
13855 2010-04-03  Jim Meyering  <meyering@redhat.com>
13856
13857         maint.mk: don't silently disable project-specific syntax-check rules
13858         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13859         that they need to convert their project-specific syntax-check rules
13860         to use the new _sc_search_regexp.
13861
13862 2010-04-03  Bruno Haible  <bruno@clisp.org>
13863
13864         fchdir: Fix regression introduced on 2010-03-08.
13865         * lib/unistd.in.h (fchdir): Fix declaration.
13866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13868         REPLACE_FCHDIR.
13869         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13870         REPLACE_FCHDIR.
13871
13872 2010-04-03  Bruno Haible  <bruno@clisp.org>
13873
13874         getpagesize: Fix C++ test error on mingw.
13875         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13876         system does not declare the function.
13877         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13878         declared.
13879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13880         HAVE_DECL_GETPAGESIZE.
13881         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13882
13883 2010-04-03  Bruno Haible  <bruno@clisp.org>
13884
13885         stdio: Make C++ tests work on mingw.
13886         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13887         does not declare the function.
13888
13889 2010-04-03  Bruno Haible  <bruno@clisp.org>
13890
13891         ftello: Fix C++ test error on mingw.
13892         * lib/stdio.in.h (ftello): Use modern idiom.
13893         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13894         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13895         is missing and that it needs to be replaced.
13896         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13898         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13899
13900 2010-04-03  Bruno Haible  <bruno@clisp.org>
13901
13902         fseeko: Fix C++ test error on mingw.
13903         * lib/stdio.in.h (fseeko): Use modern idiom.
13904         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13905         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13906         is missing and that it needs to be replaced.
13907         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13909         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13910
13911 2010-04-03  Bruno Haible  <bruno@clisp.org>
13912
13913         mkstemp: Fix C++ test error on mingw.
13914         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13915         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13916         function is missing and that it needs to be replaced.
13917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13918         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13919
13920 2010-04-03  Bruno Haible  <bruno@clisp.org>
13921
13922         stpncpy: Fix C++ test error on mingw.
13923         * lib/string.in.h (stpncpy): Use modern idiom.
13924         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13925         function is missing and that it needs to be replaced.
13926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13927         REPLACE_STPNCPY.
13928         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13929
13930 2010-04-03  Bruno Haible  <bruno@clisp.org>
13931
13932         sys_stat: Fix C++ test error on mingw.
13933         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13934         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13935
13936 2010-04-03  Bruno Haible  <bruno@clisp.org>
13937
13938         pty: Update doc.
13939         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13940
13941 2010-04-03  Bruno Haible  <bruno@clisp.org>
13942
13943         unistd: Fix C++ test error on mingw.
13944         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13945
13946 2010-04-03  Bruno Haible  <bruno@clisp.org>
13947
13948         Update doc regarding mingw.
13949         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13950         * doc/glibc-functions/login_tty.texi: Likewise.
13951         * doc/glibc-functions/forkpty.texi: Likewise.
13952
13953 2010-04-03  Bruno Haible  <bruno@clisp.org>
13954
13955         stdlib: Avoid compilation failure of c-strtold on mingw.
13956         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13957
13958 2010-04-03  Bruno Haible  <bruno@clisp.org>
13959
13960         locale: Make C++ tests work on Cygwin and mingw.
13961         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13962         cannot provide the function.
13963         Reported by Simon Josefsson.
13964
13965 2010-04-03  Bruno Haible  <bruno@clisp.org>
13966
13967         localename: Port to MacOS X 10.6.
13968         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13969         memory layout of the locales in MacOS X 10.6 as well.
13970         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13971
13972 2010-04-02  Bruno Haible  <bruno@clisp.org>
13973
13974         gnulib-tool: Ensure that long-running tests are executed last.
13975         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13976         running tests after the one for the other tests.
13977
13978 2010-04-02  Bruno Haible  <bruno@clisp.org>
13979
13980         gnulib-tool: Ensure the tests in the main directory are executed first.
13981         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13982         start with the current directory.
13983
13984 2010-04-02  Bruno Haible  <bruno@clisp.org>
13985
13986         Tests for module 'havelib', moved here from GNU gettext.
13987         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13988         modifications.
13989         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13990         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13991         with modifications.
13992         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13993         modifications.
13994         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13995         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13996         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13997         with modifications.
13998         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13999         with modifications.
14000         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14001         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14002         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14003         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14004         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14005         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14006         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14007         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14008         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14009         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14010         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14011         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14012         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14013         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14014         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14015         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14016         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14017         with modifications.
14018         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14019         with modifications.
14020         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14021         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14022         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14023         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14024         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14025         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14026         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14027         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14028         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14029         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14030         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14031         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14032         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14033         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14034         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14035         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14036         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14037         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14038         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14039         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14040         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14041         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14042         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14043         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14044         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14045         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14046         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14047         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14048         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14049         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14050         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14051         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14052         * tests/havelib/rpathx/rpathx.c: New file, from
14053         gettext/autoconf-lib-link.
14054         * tests/havelib/rpathx/Makefile.am: New file, from
14055         gettext/autoconf-lib-link.
14056         * tests/havelib/rpathx/configure.ac: New file, from
14057         gettext/autoconf-lib-link with modifications.
14058         * tests/havelib/rpathy/rpathy.c: New file, from
14059         gettext/autoconf-lib-link.
14060         * tests/havelib/rpathy/Makefile.am: New file, from
14061         gettext/autoconf-lib-link.
14062         * tests/havelib/rpathy/configure.ac: New file, from
14063         gettext/autoconf-lib-link with modifications.
14064         * tests/havelib/rpathz/rpathz.c: New file, from
14065         gettext/autoconf-lib-link.
14066         * tests/havelib/rpathz/Makefile.am: New file, from
14067         gettext/autoconf-lib-link.
14068         * tests/havelib/rpathz/configure.ac: New file, from
14069         gettext/autoconf-lib-link with modifications.
14070         * tests/havelib/rpathlx/usex.c: New file, from
14071         gettext/autoconf-lib-link.
14072         * tests/havelib/rpathlx/Makefile.am: New file, from
14073         gettext/autoconf-lib-link.
14074         * tests/havelib/rpathlx/configure.ac: New file, from
14075         gettext/autoconf-lib-link with modifications.
14076         * tests/havelib/rpathly/usey.c: New file, from
14077         gettext/autoconf-lib-link.
14078         * tests/havelib/rpathly/Makefile.am: New file, from
14079         gettext/autoconf-lib-link.
14080         * tests/havelib/rpathly/configure.ac: New file, from
14081         gettext/autoconf-lib-link with modifications.
14082         * tests/havelib/rpathlz/usez.c: New file, from
14083         gettext/autoconf-lib-link.
14084         * tests/havelib/rpathlz/Makefile.am: New file, from
14085         gettext/autoconf-lib-link.
14086         * tests/havelib/rpathlz/configure.ac: New file, from
14087         gettext/autoconf-lib-link with modifications.
14088         * tests/havelib/rpathlyx/usey.c: New file, from
14089         gettext/autoconf-lib-link.
14090         * tests/havelib/rpathlyx/Makefile.am: New file, from
14091         gettext/autoconf-lib-link.
14092         * tests/havelib/rpathlyx/configure.ac: New file, from
14093         gettext/autoconf-lib-link with modifications.
14094         * tests/havelib/rpathlzyx/usez.c: New file, from
14095         gettext/autoconf-lib-link.
14096         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14097         gettext/autoconf-lib-link.
14098         * tests/havelib/rpathlzyx/configure.ac: New file, from
14099         gettext/autoconf-lib-link with modifications.
14100         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14101         with modifications.
14102
14103 2010-04-02  Bruno Haible  <bruno@clisp.org>
14104
14105         gnulib-tool: Create distributed built sources also for the tests.
14106         * gnulib-tool (func_create_testdir): Also generate distributed built
14107         sources in the tests directory.
14108
14109 2010-04-02  Bruno Haible  <bruno@clisp.org>
14110
14111         gnulib-tool: Obey user's environment variables.
14112         * gnulib-tool (func_create_testdir): When creating built sources,
14113         respect the environment variables for autoconf, automake, etc. given by
14114         the user.
14115
14116 2010-04-02  Bruno Haible  <bruno@clisp.org>
14117
14118         gnulib-tool: Provide the value of --m4-base to modules.
14119         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14120         of gl_m4_base.
14121
14122 2010-04-02  Eric Blake  <eblake@redhat.com>
14123
14124         maint.mk: fix some fallout
14125         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14126         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14127
14128 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14129
14130         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14131         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14132         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14133         (sc_cast_of_x_alloc_return_value): Likewise.
14134         (sc_cast_of_alloca_return_value): Likewise.
14135         (sc_space_tab): Likewise.
14136         (sc_prohibit_atoi_atof): Likewise.
14137         (sc_prohibit_magic_number_exit): Likewise.
14138         (sc_error_exit_success): Likewise.
14139         (sc_file_system): Likewise.
14140         (sc_prohibit_have_config_h): Likewise.
14141         (sc_require_config_h): Likewise.
14142         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14143         (sc_obsolete_symbols): Likewise.
14144         (sc_changelog): Likewise.
14145         (sc_program_name): Likewise.
14146         (sc_the_the): Likewise.
14147         (sc_trailing_blank): Likewise.
14148         (sc_two_space_separator_in_usage): Likewise.
14149         (sc_useless_cpp_parens): Likewise.
14150         (sc_GPL_version): Likewise.
14151         (sc_GFDL_version): Likewise.
14152         (sc_texinfo_acronym): Likewise.
14153         (sc_prohibit_cvs_keyword): Likewise.
14154         (sc_prohibit_stat_st_blocks): Likewise.
14155         (sc_prohibit_S_IS_definition): Likewise.
14156         (sc_redundant_const): Likewise.
14157         (sc_makefile_TAB_only_indentation): Likewise.
14158         (sc_m4_quote_check): Likewise.
14159         (sc_makefile_path_separator_check): Likewise.
14160         (sc_copyright_check): Likewise.
14161         (sc_Wundef_boolean): Likewise.
14162         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14163
14164         maint.mk: match 0 or more whitespace-before-function-call '('
14165         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14166         that have zero or two-and-more spaces between the function name
14167         and the open parenthesis.
14168         (sc_error_message_warn_fatal): Likewise.
14169         (sc_error_message_uppercase): Likewise.
14170         (sc_error_message_period): Likewise.
14171
14172 2010-03-31  Eric Blake  <eblake@redhat.com>
14173
14174         maint.mk: check for [ as well as test
14175         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14176         Based on a libvirt report by Matthias Bolte.
14177
14178         gnumakefile: don't squelch _version output
14179         * top/GNUmakefile (_version): Create one-shot dependency rather
14180         than using $(shell) when version must be regenerated.
14181         (_autoreconf): Run verbosely, by default.
14182
14183         sys_time: avoid compiler warnings
14184         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14185         unconditional, fixing regression from 2010-03-29.
14186         Reported by Simon Josefsson.
14187
14188 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14189
14190         maint.mk: s/_header_without_use/_sc_header_without_use/
14191         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14192         (sc_prohibit_assert_without_use): Use the new name.
14193         (sc_prohibit_close_stream_without_use): Likewise.
14194         (sc_prohibit_getopt_without_use): Likewise.
14195         (sc_prohibit_quotearg_without_use): Likewise.
14196         (sc_prohibit_quote_without_use): Likewise.
14197         (sc_prohibit_long_options_without_use): Likewise.
14198         (sc_prohibit_inttostr_without_use): Likewise.
14199         (sc_prohibit_ignore_value_without_use): Likewise.
14200         (sc_prohibit_error_without_use): Likewise.
14201         (sc_prohibit_xalloc_without_use): Likewise.
14202         (sc_prohibit_hash_without_use): Likewise.
14203         (sc_prohibit_hash_pjw_without_use): Likewise.
14204         (sc_prohibit_safe_read_without_use): Likewise.
14205         (sc_prohibit_argmatch_without_use): Likewise.
14206         (sc_prohibit_canonicalize_without_use): Likewise.
14207         (sc_prohibit_root_dev_ino_without_use): Likewise.
14208         (sc_prohibit_openat_without_use): Likewise.
14209         (sc_prohibit_c_ctype_without_use): Likewise.
14210         (sc_prohibit_signal_without_use): Likewise.
14211         (sc_prohibit_intprops_without_use): Likewise.
14212
14213 2010-03-30  Eric Blake  <eblake@redhat.com>
14214
14215         maint: improve module indicators
14216         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14217         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14218         columns, and avoid extra macro expansion.
14219
14220         fdopendir: work around FreeBSD bug
14221         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14222         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14223         * modules/dirent (Makefile.am): Substitute it.
14224         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14225         declaration.
14226         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14227         fix.
14228         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14229
14230 2010-03-29  Bruno Haible  <bruno@clisp.org>
14231
14232         Emit #pragma system_header after the inclusion guard, not before.
14233         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14234         guard that spans the entire file, not before. This enables an
14235         optimization in GCC's preprocessor.
14236         * lib/ctype.in.h: Likewise.
14237         * lib/dirent.in.h: Likewise.
14238         * lib/errno.in.h: Likewise.
14239         * lib/float.in.h: Likewise.
14240         * lib/getopt.in.h: Likewise.
14241         * lib/iconv.in.h: Likewise.
14242         * lib/langinfo.in.h: Likewise.
14243         * lib/locale.in.h: Likewise.
14244         * lib/math.in.h: Likewise.
14245         * lib/netdb.in.h: Likewise.
14246         * lib/netinet_in.in.h: Likewise.
14247         * lib/pty.in.h: Likewise.
14248         * lib/sched.in.h: Likewise.
14249         * lib/se-selinux.in.h: Likewise.
14250         * lib/search.in.h: Likewise.
14251         * lib/spawn.in.h: Likewise.
14252         * lib/stdarg.in.h: Likewise.
14253         * lib/stdint.in.h: Likewise.
14254         * lib/string.in.h: Likewise.
14255         * lib/strings.in.h: Likewise.
14256         * lib/sys_file.in.h: Likewise.
14257         * lib/sys_ioctl.in.h: Likewise.
14258         * lib/sys_time.in.h: Likewise.
14259         * lib/sys_times.in.h: Likewise.
14260         * lib/sys_utsname.in.h: Likewise.
14261         * lib/sys_wait.in.h: Likewise.
14262         * lib/sysexits.in.h: Likewise.
14263         * lib/wctype.in.h: Likewise.
14264
14265 2010-03-28  James Youngman  <jay@gnu.org>
14266
14267         save-cwd: don't leak a file descriptor when the caller execs.
14268         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14269         saved file descriptor.
14270         * modules/save-cwd (Depends-on): Depend on cloexec.
14271
14272 2010-03-29  Bruno Haible  <bruno@clisp.org>
14273
14274         Remove vestiges of fts-lgpl module.
14275         * lib/fts_.h: Assume GNULIB_FTS is 1.
14276         * lib/fts.c: Likewise.
14277         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14278
14279 2010-03-28  Bruno Haible  <bruno@clisp.org>
14280
14281         Fix definition of tests witness macro.
14282         * gnulib-tool (func_import): Fix definition of witness macro.
14283
14284 2010-03-28  Bruno Haible  <bruno@clisp.org>
14285
14286         Fix ioctl's protoype on glibc systems.
14287         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14288         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14289         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14290         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14291         signature. If not, arrange to replace the ioctl function.
14292         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14293         REPLACE_IOCTL.
14294         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14295         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14296         Reported by Ludovic Courtès <ludo@gnu.org>.
14297
14298 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14299
14300         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14301         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14302         made it so grep -r --include=GLOB* ... did not work.
14303
14304 2010-03-26  Jim Meyering  <meyering@redhat.com>
14305             Eric Blake  <eblake@redhat.com>
14306
14307         maint.mk: prohibit use of test's -o and -a operators
14308         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14309
14310 2010-03-28  Bruno Haible  <bruno@clisp.org>
14311
14312         Remove unused GNULIB_XYZ macro definitions.
14313         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14314         invocation.
14315
14316 2010-03-28  Bruno Haible  <bruno@clisp.org>
14317
14318         Mark privileged tests modules.
14319         * modules/idpriv-drop-tests (Status): New section.
14320         * modules/idpriv-droptemp-tests (Status): New section.
14321
14322 2010-03-28  Bruno Haible  <bruno@clisp.org>
14323
14324         Split C++ tests into separate tests modules.
14325         * modules/dirent-c++-tests: New file, extracted from
14326         modules/dirent-tests.
14327         * modules/dirent-tests: Depend on it.
14328         * modules/fcntl-h-c++-tests: New file, extracted from
14329         modules/fcntl-h-tests.
14330         * modules/fcntl-h-tests: Depend on it.
14331         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14332         * modules/glob-tests: Depend on it.
14333         * modules/iconv-h-c++-tests: New file, extracted from
14334         modules/iconv-h-tests.
14335         * modules/iconv-h-tests: Depend on it.
14336         * modules/langinfo-c++-tests: New file, extracted from
14337         modules/langinfo-tests.
14338         * modules/langinfo-tests: Depend on it.
14339         * modules/locale-c++-tests: New file, extracted from
14340         modules/locale-tests.
14341         * modules/locale-tests: Depend on it.
14342         * modules/math-c++-tests: New file, extracted from modules/math-tests.
14343         * modules/math-tests: Depend on it.
14344         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
14345         * modules/pty-tests: Depend on it.
14346         * modules/search-c++-tests: New file, extracted from
14347         modules/search-tests.
14348         * modules/search-tests: Depend on it.
14349         * modules/signal-c++-tests: New file, extracted from
14350         modules/signal-tests.
14351         * modules/signal-tests: Depend on it.
14352         * modules/spawn-c++-tests: New file, extracted from
14353         modules/spawn-tests.
14354         * modules/spawn-tests: Depend on it.
14355         * modules/stdio-c++-tests: New file, extracted from
14356         modules/stdio-tests.
14357         * modules/stdio-tests: Depend on it.
14358         * modules/stdlib-c++-tests: New file, extracted from
14359         modules/stdlib-tests.
14360         * modules/stdlib-tests: Depend on it.
14361         * modules/string-c++-tests: New file, extracted from
14362         modules/string-tests.
14363         * modules/string-tests: Depend on it.
14364         * modules/sys_ioctl-c++-tests: New file, extracted from
14365         modules/sys_ioctl-tests.
14366         * modules/sys_ioctl-tests: Depend on it.
14367         * modules/sys_select-c++-tests: New file, extracted from
14368         modules/sys_select-tests.
14369         * modules/sys_select-tests: Depend on it.
14370         * modules/sys_socket-c++-tests: New file, extracted from
14371         modules/sys_socket-tests.
14372         * modules/sys_socket-tests: Depend on it.
14373         * modules/sys_stat-c++-tests: New file, extracted from
14374         modules/sys_stat-tests.
14375         * modules/sys_stat-tests: Depend on it.
14376         * modules/sys_time-c++-tests: New file, extracted from
14377         modules/sys_time-tests.
14378         * modules/sys_time-tests: Depend on it.
14379         * modules/time-c++-tests: New file, extracted from modules/time-tests.
14380         * modules/time-tests: Depend on it.
14381         * modules/unistd-c++-tests: New file, extracted from
14382         modules/unistd-tests.
14383         * modules/unistd-tests: Depend on it.
14384         * modules/wchar-c++-tests: New file, extracted from
14385         modules/wchar-tests.
14386         * modules/wchar-tests: Depend on it.
14387         * modules/wctype-c++-tests: New file, extracted from
14388         modules/wctype-tests.
14389         * modules/wctype-tests: Depend on it.
14390         Reported by Simon Josefsson.
14391
14392 2010-03-28  Bruno Haible  <bruno@clisp.org>
14393
14394         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
14395         * gnulib-tool (func_exists_module): New function, extracted from
14396         func_verify_module.
14397         (func_verify_module): Use it.
14398         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
14399         'foo' only if 'foo' exists.
14400         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
14401         module.
14402
14403 2010-03-28  Bruno Haible  <bruno@clisp.org>
14404
14405         gnulib-tool: Add support for special categories of tests.
14406         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
14407         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
14408         (func_usage): Document them.
14409         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
14410         inc_unportable_tests, inc_all_tests): New variables.
14411         (func_acceptable): Consider these variables.
14412         (func_modules_transitive_closure): Make it work when the 'Status' field
14413         consists of multiple words.
14414         (func_import): Store and restore the values of inc_cxx_tests,
14415         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
14416         inc_all_tests in gnulib-comp.m4.
14417         (func_create_testdir): Set inc_all_tests to true.
14418         * doc/gnulib.texi (Extra tests modules): New section.
14419         Suggested by Jim Meyering.
14420
14421 2010-03-28  Bruno Haible  <bruno@clisp.org>
14422
14423         ansi-c++-opt: Allow turning off the C++ build by default.
14424         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
14425         gl_CXX_CHOICE_DEFAULT_NO is defined.
14426         Requested by Eric Blake.
14427
14428 2010-03-28  Bruno Haible  <bruno@clisp.org>
14429
14430         unistd: Avoid #define replacements in C++ mode.
14431         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14432         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14433         setsockopt, shutdown, select): In C++, attach a warning to the function
14434         if possible, rather than #defining the symbol to a dysfunctional alias.
14435         Reported by John W. Eaton <jwe@gnu.org>.
14436
14437 2010-03-28  Bruno Haible  <bruno@clisp.org>
14438
14439         Fix link errors on mingw.
14440         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
14441         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
14442         $(LIBSOCKET).
14443         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
14444         $(LIBSOCKET).
14445
14446 2010-03-28  Bruno Haible  <bruno@clisp.org>
14447             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14448
14449         lib-ignore: Determine different options for different compilers.
14450         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
14451         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
14452         Add comments.
14453         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
14454         * NEWS: Mention the change.
14455
14456 2010-03-27  Bruno Haible  <bruno@clisp.org>
14457
14458         Remove unused GNULIB_XYZ macro definitions.
14459         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14460         * modules/fseek (configure.ac): Likewise.
14461         * modules/ioctl (configure.ac): Likewise.
14462         * modules/open (configure.ac): Likewise.
14463         * modules/stdlib-safer (configure.ac): Likewise.
14464
14465 2010-03-27  Bruno Haible  <bruno@clisp.org>
14466
14467         Add a remark about certain modules.
14468         * modules/malloc (Comment): New section.
14469         * modules/realloc (Comment): Likewise.
14470         * modules/sigpipe (Comment): Likewise.
14471
14472 2010-03-27  Bruno Haible  <bruno@clisp.org>
14473
14474         Resolve conflict between the two kinds of module indicators.
14475         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
14476         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
14477         * modules/canonicalize (configure.ac): Invoke
14478         gl_MODULE_INDICATOR_FOR_TESTS.
14479         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
14480         GNULIB_XYZ.
14481         * tests/test-dirent-c++.cc: Likewise.
14482         * tests/test-dirent-safer.c: Likewise.
14483         * tests/test-dup2.c: Likewise.
14484         * tests/test-fchdir.c: Likewise.
14485         * tests/test-fcntl-h-c++.cc: Likewise.
14486         * tests/test-getopt.c: Likewise.
14487         * tests/test-getopt.h: Likewise.
14488         * tests/test-langinfo-c++.cc: Likewise.
14489         * tests/test-locale-c++.cc: Likewise.
14490         * tests/test-math-c++.cc: Likewise.
14491         * tests/test-pty-c++.cc: Likewise.
14492         * tests/test-search-c++.cc: Likewise.
14493         * tests/test-signal-c++.cc: Likewise.
14494         * tests/test-spawn-c++.cc: Likewise.
14495         * tests/test-stdio-c++.cc: Likewise.
14496         * tests/test-stdlib-c++.cc: Likewise.
14497         * tests/test-string-c++.cc: Likewise.
14498         * tests/test-sys_ioctl-c++.cc: Likewise.
14499         * tests/test-sys_select-c++.cc: Likewise.
14500         * tests/test-sys_socket-c++.cc: Likewise.
14501         * tests/test-sys_stat-c++.cc: Likewise.
14502         * tests/test-sys_time-c++.cc: Likewise.
14503         * tests/test-time-c++.cc: Likewise.
14504         * tests/test-unistd-c++.cc: Likewise.
14505         * tests/test-wchar-c++.cc: Likewise.
14506         * tests/uninorm/test-u8-nfc.c: Likewise.
14507         * tests/uninorm/test-u8-nfd.c: Likewise.
14508         * tests/uninorm/test-u8-nfkc.c: Likewise.
14509         * tests/uninorm/test-u8-nfkd.c: Likewise.
14510         * tests/uninorm/test-u16-nfc.c: Likewise.
14511         * tests/uninorm/test-u16-nfd.c: Likewise.
14512         * tests/uninorm/test-u16-nfkc.c: Likewise.
14513         * tests/uninorm/test-u16-nfkd.c: Likewise.
14514         * tests/uninorm/test-u32-nfc.c: Likewise.
14515         * tests/uninorm/test-u32-nfc-big.c: Likewise.
14516         * tests/uninorm/test-u32-nfd.c: Likewise.
14517         * tests/uninorm/test-u32-nfd-big.c: Likewise.
14518         * tests/uninorm/test-u32-nfkc.c: Likewise.
14519         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
14520         * tests/uninorm/test-u32-nfkd.c: Likewise.
14521         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
14522         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14523
14524 2010-03-27  Bruno Haible  <bruno@clisp.org>
14525
14526         Distinguish two kinds of module indicators.
14527         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
14528         gl_MODULE_INDICATOR.
14529         (gl_MODULE_INDICATOR): New macro.
14530         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14531         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
14532         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14533         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14534         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14535         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14536         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14537         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14538         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14539         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14540         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14541         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14542         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14543         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14544         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14545         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14546         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14547         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14548         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14549         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14550         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14551         * modules/cloexec (configure.ac): Likewise.
14552         * modules/getopt-gnu (configure.ac): Likewise.
14553         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14554         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14555         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14556         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14557
14558 2010-03-27  Bruno Haible  <bruno@clisp.org>
14559
14560         New module description field 'Comment'.
14561         * gnulib-tool: New option --extract-comment.
14562         (func_usage): Document it.
14563         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14564         (func_get_comment): New function.
14565         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14566
14567 2010-03-27  Bruno Haible  <bruno@clisp.org>
14568
14569         Addendum to 2010-02-07 commit.
14570         * gnulib-tool (func_usage): Document --extract-applicability option.
14571
14572 2010-03-27  Bruno Haible  <bruno@clisp.org>
14573
14574         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14575         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14576         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14577         rather than link errors.
14578
14579 2010-03-27  Bruno Haible  <bruno@clisp.org>
14580
14581         Avoid side effects from tests-related modules on the compilation of lib.
14582         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14583         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14584         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14585         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14586         macro.
14587         (func_import): Define a witness macro. Assign it a value that depends
14588         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14589         tests-related modules.
14590         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14591         Reported by Jim Meyering.
14592
14593 2010-03-27  Bruno Haible  <bruno@clisp.org>
14594
14595         Factorize common .m4 code.
14596         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14597         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14598         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14599         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14600         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14601         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14602         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14603         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14604         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14605         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14606         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14607         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14608         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14609         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14610         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14611         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14612         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14613         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14614         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14615         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14616         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14617         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14618         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14619         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14620         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14621         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14622         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14623         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14624         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14625         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14626         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14627         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14628
14629 2010-03-27  Bruno Haible  <bruno@clisp.org>
14630
14631         Fix a compilation error on Cygwin with g++ >= 4.3.
14632         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14633         if it is undefined or if we alias it to chmod.
14634         (lstat): Don't warn about the use of this function if it is undefined
14635         or if we alias it to stat.
14636         Reported by Simon Josefsson.
14637
14638 2010-03-27  Bruno Haible  <bruno@clisp.org>
14639
14640         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14641         * modules/getlogin (configure.ac): Update.
14642
14643         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14644         * modules/getlogin_r (configure.ac): Update.
14645
14646         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14647         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14648         * modules/inet_ntop (configure.ac): Update.
14649
14650         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14651         * modules/inet_pton (configure.ac): Update.
14652
14653         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14654         * modules/mbslen (configure.ac): Update.
14655
14656         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14657         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14658         * modules/forkpty (configure.ac): Update.
14659         * modules/openpty (configure.ac): Update.
14660
14661 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14662
14663         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14664         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14665
14666 2010-03-25  Eric Blake  <eblake@redhat.com>
14667
14668         maint: use pragma consistently across replacement headers
14669         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14670         * lib/dirent.in.h (system_header): Likewise.
14671         * lib/errno.in.h (system_header): Likewise.
14672         * lib/float.in.h (system_header): Likewise.
14673         * lib/getopt.in.h (system_header): Likewise.
14674         * lib/iconv.in.h (system_header): Likewise.
14675         * lib/inttypes.in.h (system_header): Likewise.
14676         * lib/langinfo.in.h (system_header): Likewise.
14677         * lib/locale.in.h (system_header): Likewise.
14678         * lib/math.in.h (system_header): Likewise.
14679         * lib/netdb.in.h (system_header): Likewise.
14680         * lib/netinet_in.in.h (system_header): Likewise.
14681         * lib/pty.in.h (system_header): Likewise.
14682         * lib/sched.in.h (system_header): Likewise.
14683         * lib/se-selinux.in.h (system_header): Likewise.
14684         * lib/search.in.h (system_header): Likewise.
14685         * lib/spawn.in.h (system_header): Likewise.
14686         * lib/stdarg.in.h (system_header): Likewise.
14687         * lib/stdint.in.h (system_header): Likewise.
14688         * lib/string.in.h (system_header): Likewise.
14689         * lib/strings.in.h (system_header): Likewise.
14690         * lib/sys_file.in.h (system_header): Likewise.
14691         * lib/sys_ioctl.in.h (system_header): Likewise.
14692         * lib/sys_socket.in.h (system_header): Likewise.
14693         * lib/sys_times.in.h (system_header): Likewise.
14694         * lib/sys_utsname.in.h (system_header): Likewise.
14695         * lib/sys_wait.in.h (system_header): Likewise.
14696         * lib/sysexits.in.h (system_header): Likewise.
14697         * lib/unistd.in.h (system_header): Likewise.
14698         * lib/wctype.in.h (system_header): Likewise.
14699
14700         arpa/inet: fix mingw compilation warning
14701         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14702         Reported by Matthew Bolte.
14703
14704 2010-03-25  Bruno Haible  <bruno@clisp.org>
14705
14706         Avoid collision between gnulib wrapper and libintl wrapper.
14707         * lib/printf.c (printf): Don't define if a printf wrapper is already
14708         defined in intl/printf.c.
14709         Reported by Michel Boaventura <michel@michelboaventura.com>.
14710
14711 2010-03-25  Bruno Haible  <bruno@clisp.org>
14712
14713         Use ANSI C.
14714         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14715
14716 2010-03-25  Bruno Haible  <bruno@clisp.org>
14717
14718         Minor formatting changes.
14719         * lib/acosl.c: Insert space before function argument list.
14720         * lib/argz.c: Likewise.
14721         * lib/asinl.c: Likewise.
14722         * lib/expl.c: Likewise.
14723         * lib/gen-uni-tables.c: Likewise.
14724         * lib/gettext.h: Likewise.
14725         * lib/glthread/lock.h: Likewise.
14726         * lib/tanl.c: Likewise.
14727         * lib/uniname/uniname.c: Likewise.
14728         * tests/test-idpriv-drop.c: Likewise.
14729         * tests/test-idpriv-droptemp.c: Likewise.
14730         * tests/test-lock.c: Likewise.
14731         * tests/test-tls.c: Likewise.
14732         * lib/argp-help.c: Insert space before function-like macro argument
14733         list.
14734         * lib/memcmp.c: Likewise.
14735         * tests/test-base64.c: Likewise.
14736         * lib/localename.c: Insert space before sizeof's argument list.
14737         * lib/safe-alloc.h: Likewise.
14738         * lib/file-set.h: Insert space before macro argument list.
14739         * tests/test-argp.c: Likewise.
14740         * lib/argp-namefrob.h: Insert space before function parameter list.
14741         * lib/getaddrinfo.c: Likewise.
14742         * lib/netdb.in.h: Likewise.
14743         * lib/parse-duration.h: Likewise.
14744         * lib/parse-duration.c: Likewise.
14745         * lib/poll.c: Likewise.
14746         * lib/select.c: Likewise.
14747         * lib/trim.h: Likewise.
14748         * tests/test-usleep.c: Likewise.
14749         * lib/ldexpl.c: Insert space before function parameter list and before
14750         function argument list.
14751         * lib/logl.c: Likewise.
14752         * lib/sqrtl.c: Likewise.
14753         * lib/trim.c: Likewise.
14754         * lib/cosl.c: Use GNU style indentation. Insert space before function
14755         argument list.
14756         * lib/sinl.c: Likewise.
14757         * lib/tsearch.c: Insert space after 'for'.
14758         Reported by Jim Meyering.
14759
14760 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14761
14762         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14763         config header before grepping, as it's not present before
14764         autoreconf/configure are run.  Reported by Simon Josefsson.
14765
14766 2010-03-23  Bruno Haible  <bruno@clisp.org>
14767
14768         pt_chown: Make it work with automake < 1.11.
14769         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14770         Reported by Simon Josefsson.
14771
14772 2010-03-23  Bruno Haible  <bruno@clisp.org>
14773
14774         pt_chown: Don't depend on GPLed modules.
14775         * lib/pt_chown.c: Don't include idpriv.h.
14776         (main): Don't drop privileges.
14777         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14778         Reported by Simon Josefsson.
14779
14780 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14781
14782         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14783         suggestions from karl@freefriends.org (Karl Berry).
14784
14785 2010-03-22  Eric Blake  <eblake@redhat.com>
14786
14787         gethostname: further tweaks
14788         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14789         are overriding gethostname.
14790         Suggested by Bruno Haible.
14791
14792 2010-03-21  Bruno Haible  <bruno@clisp.org>
14793
14794         Fix comments.
14795         * lib/forkpty.c (rpl_forkpty): Fix comment.
14796         * lib/openpty.c (rpl_openpty): Likewise.
14797         Reported by Eric Blake.
14798
14799 2010-03-22  Eric Blake  <eblake@redhat.com>
14800
14801         gethostname: fix build on mingw
14802         * lib/unistd.in.h (includes): Work around fact that mingw
14803         <winsock2.h> re-includes <unistd.h>, by avoiding any
14804         redeclarations if we are being included by <winsock2.h>.
14805         Reported by Matthias Bolte.
14806
14807 2010-03-21  Bruno Haible  <bruno@clisp.org>
14808
14809         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14810         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14811         modifications.
14812         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14813         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14814         provide the replacement.
14815         * modules/forkpty (Depends-on): Add openpty, login_tty.
14816         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14817         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14818         * doc/glibc-functions/forkpty.texi: More supported platforms.
14819         * config/srclist.txt: Add forkpty.c (commented).
14820
14821 2010-03-21  Bruno Haible  <bruno@clisp.org>
14822
14823         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14824         (Makefile.am): Verify that PTY_LIB is defined.
14825
14826         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14827
14828 2010-03-21  Bruno Haible  <bruno@clisp.org>
14829
14830         Tests for module 'login_tty'.
14831         * modules/login_tty-tests: New file.
14832         * tests/test-login_tty.c: New file.
14833
14834         New module 'login_tty'.
14835         * lib/login_tty.c: New file.
14836         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14837         * modules/login_tty: New file.
14838         * doc/glibc-functions/login_tty.texi: Mention the new module.
14839
14840 2010-03-21  Bruno Haible  <bruno@clisp.org>
14841
14842         login_tty: Documentation.
14843         * doc/glibc-functions/login_tty.texi: New file.
14844         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14845
14846 2010-03-21  Bruno Haible  <bruno@clisp.org>
14847
14848         pty: Consistent macro naming.
14849         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14850         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14851         * modules/pty (configure.ac): Update.
14852
14853 2010-03-21  Bruno Haible  <bruno@clisp.org>
14854
14855         Tests for openpty: Make stricter.
14856         * tests/test-openpty.c (main): Add test of canonical processing and
14857         erase.
14858         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14859
14860         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14861         * lib/openpty.c (openpty): New replacement function.
14862         * lib/pty.in.h: Include <termios.h>.
14863         (openpty): Update declaration. Add comments.
14864         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14865         is not declared, arrange to provide the replacement. Check for _getpty
14866         and posix_openpt.
14867         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14868         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14869         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14870         * modules/pty-tests (test_pty_c___LDADD): New variable.
14871         * doc/glibc-functions/openpty.texi: More supported platforms.
14872
14873 2010-03-21  Bruno Haible  <bruno@clisp.org>
14874
14875         setenv: Tweaks.
14876         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14877         the test program.
14878         * doc/posix-functions/setenv.texi: Update platforms list.
14879
14880 2010-03-21  Bruno Haible  <bruno@clisp.org>
14881
14882         New module 'unlockpt'.
14883         * lib/unlockpt.c: New file, from glibc with modifications.
14884         * m4/unlockpt.m4: New file.
14885         * modules/unlockpt: New file.
14886         * lib/stdlib.in.h (unlockpt): New declaration.
14887         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14888         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14889         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14890         HAVE_UNLOCKPT.
14891         * doc/posix-functions/unlockpt.texi: Mention the new module.
14892         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14893         * config/srclist.txt: Add unlockpt.c (commented).
14894
14895 2010-03-21  Jim Meyering  <meyering@redhat.com>
14896
14897         maint.mk: prohibit inclusion of "intprops.h" without use
14898         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14899
14900 2010-03-21  Bruno Haible  <bruno@clisp.org>
14901
14902         New module 'grantpt'.
14903         * lib/grantpt.c: New file, from glibc with modifications.
14904         * m4/grantpt.m4: New file.
14905         * modules/grantpt: New file.
14906         * lib/stdlib.in.h (grantpt): New declaration.
14907         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14908         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14909         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14910         HAVE_GRANTPT.
14911         * doc/posix-functions/grantpt.texi: Mention the new module.
14912         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14913         * config/srclist.txt: Add grantpt.c (commented).
14914
14915 2010-03-21  Bruno Haible  <bruno@clisp.org>
14916
14917         New module 'pt_chown'.
14918         * lib/pt_chown.c: New file, from glibc with modifications.
14919         * lib/pty-private.h: New file, from glibc with modifications.
14920         * modules/pt_chown: New file.
14921         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14922
14923 2010-03-21  Bruno Haible  <bruno@clisp.org>
14924
14925         Tests for module 'ptsname'.
14926         * modules/ptsname-tests: New file.
14927         * tests/test-ptsname.c: New file.
14928
14929         New module 'ptsname'.
14930         * lib/ptsname.c: New file, from glibc with modifications.
14931         * m4/ptsname.m4: New file.
14932         * modules/ptsname: New file.
14933         * lib/stdlib.in.h (ptsname): New declaration.
14934         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14935         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14936         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14937         HAVE_PTSNAME.
14938         * doc/posix-functions/ptsname.texi: Mention the new module.
14939         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14940         * config/srclist.txt: Add ptsname.c (commented).
14941
14942 2010-03-21  Bruno Haible  <bruno@clisp.org>
14943
14944         Tests for module 'ttyname_r'.
14945         * modules/ttyname_r-tests: New file.
14946         * tests/test-ttyname_r.c: New file.
14947
14948         New module 'ttyname_r'.
14949         * lib/ttyname_r.c: New file.
14950         * m4/ttyname_r.m4: New file.
14951         * modules/ttyname_r: New file.
14952         * lib/unistd.in.h (ttyname_r): New declaration.
14953         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14954         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14955         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14956         HAVE_TTYNAME_R.
14957         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14958         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14959
14960 2010-03-20  Bruno Haible  <bruno@clisp.org>
14961
14962         signal: Undefine macro definitions in C++ mode.
14963         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14964         sigfillset): Undefine macro definitions from the system header in C++
14965         mode.
14966         Reported by John W. Eaton <jwe@gnu.org>.
14967
14968 2010-03-20  Bruno Haible  <bruno@clisp.org>
14969
14970         Ensure no #include statements inside extern "C" { ... }.
14971         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14972         contain #include statements.
14973         * lib/time.in.h: Likewise.
14974
14975 2010-03-20  Bruno Haible  <bruno@clisp.org>
14976
14977         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14978         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14979         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14980         Reported by John W. Eaton <jwe@gnu.org>.
14981
14982 2010-03-20  Bruno Haible  <bruno@clisp.org>
14983
14984         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14985         Reported by Jim Meyering.
14986
14987 2010-03-20  Bruno Haible  <bruno@clisp.org>
14988
14989         pipe: Set errno upon failure.
14990         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14991         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14992         errno value in error message.
14993
14994 2010-03-20  Bruno Haible  <bruno@clisp.org>
14995             Jim Meyering  <meyering@redhat.com>
14996
14997         lchown: Avoid "unused variable" warning.
14998         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14999
15000 2010-03-20  Bruno Haible  <bruno@clisp.org>
15001
15002         Work around unlink() bug on MacOS X 10.5.6.
15003         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15004         attempting to unlink a parent directory.
15005         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15006         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15007         activate for the replacement function.
15008         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15009
15010 2010-03-20  Bruno Haible  <bruno@clisp.org>
15011
15012         Fix link errors on Solaris 8.
15013         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15014         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15015
15016 2010-03-19  Jim Meyering  <meyering@redhat.com>
15017
15018         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15019         The _LIBC implementation of build_range_exp correctly honors the
15020         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15021         However, the non-_LIBC implementation would ignore that syntax-bit
15022         flag and return REG_ERANGE unconditionally.
15023         This change makes it honor that flag.
15024         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15025         Make two pointer parameters "const".
15026         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15027         (parse_bracket_exp): Update caller.
15028
15029         regex.m4: correct the reversed range endpoint ([b-a]) test
15030         * m4/regex.m4: When requiring that [b-a] evoke failure,
15031         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15032         test pass once again for x86-based systems.
15033
15034 2010-03-19  Bruno Haible  <bruno@clisp.org>
15035
15036         scandir: Fix link error on Solaris 8.
15037         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15038         macros.
15039
15040 2010-03-19  Bruno Haible  <bruno@clisp.org>
15041
15042         getusershell: Fix documentation.
15043         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15044         module.
15045         * doc/glibc-functions/setusershell.texi: Likewise.
15046
15047         getusershell: Provide declaration, missing on Solaris 9.
15048         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15049         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15050         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15051         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15053         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15054         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15055         HAVE_GETUSERSHELL.
15056         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15057
15058 2010-03-19  Bruno Haible  <bruno@clisp.org>
15059
15060         wctype: Provide iswblank function.
15061         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15062         exists and is fine.
15063         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15064         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15065         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15066         * doc/posix-functions/iswblank.texi: Update.
15067
15068 2010-03-19  Bruno Haible  <bruno@clisp.org>
15069
15070         Tests of module 'pty' in C++ mode.
15071         * modules/pty-tests: New file.
15072         * tests/test-pty-c++.cc: New file.
15073         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15074
15075 2010-03-19  Eric Blake  <eblake@redhat.com>
15076
15077         logb: fix documentation
15078         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15079         1.5 declaration bug.
15080
15081         forkpty, openpty: prefer glibc's const-safe prototype
15082         * lib/forkpty.c (rpl_forkpty): New file.
15083         * lib/openpty.c (rpl_openpty): Likewise.
15084         * modules/forkpty (Files): Distribute it.
15085         * modules/openpty (Files): Likewise.
15086         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15087         check...
15088         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15089         replacement for for non-const BSD signature.
15090         * modules/pty (Makefile.am): Substitute witnesses.
15091         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15092         * tests/test-forkpty.c: Update signature check.
15093         * tests/test-openpty.c: Likewise.
15094         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15095         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15096
15097         forkpty, openpty: split functions into new modules
15098         * modules/pty (Makefile.am): Substitute new witnesses.
15099         (Libraries): Move library detection...
15100         * modules/forkpty: ...into new module.
15101         * modules/openpty: Another new module.
15102         * modules/pty-tests: Rename and split...
15103         * modules/forkpty-tests: ...to this...
15104         * modules/openpty-tests: ...and this.
15105         * tests/test-pty.c: Rename and split...
15106         * tests/test-forkpty.c: ...to this...
15107         * tests/test-openpty.c: ...and this.
15108         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15109         (gl_PTY): Split library searching...
15110         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15111         (gl_FORKPTY, gl_OPENPTY): New macros.
15112         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15113         * NEWS: Mention the split.
15114         * MODULES.html.sh (Misc): Document the modules.
15115         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15116         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15117
15118         pty: improve replacement header
15119         * lib/pty.in.h: New file.
15120         * modules/pty (Files): Ship it.
15121         (Makefile.am): Always build replacement.
15122         * m4/pty.m4: Rename...
15123         * m4/pty_h.m4: ...to this.
15124         (gl_PTY): Modernize setting of witness macros; update check of
15125         forkpty to take proper advantage of cache.
15126         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15127
15128         getopt: avoid compiler warning
15129         * lib/getopt.c (attribute_hidden): Remove unused macro.
15130
15131 2010-03-18  Bruno Haible  <bruno@clisp.org>
15132
15133         Fix link errors on Solaris 8.
15134         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15135         * modules/search-tests (test_search_c___LDADD): Likewise.
15136         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15137         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15138         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15139         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15140         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15141         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15142         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15143
15144 2010-03-18  Bruno Haible  <bruno@clisp.org>
15145
15146         Fix bug introduced on 2010-03-14.
15147         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15148         (gl_SPAWN_H): Require it.
15149         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15150         Reported by Simon Josefsson.
15151
15152 2010-03-18  Bruno Haible  <bruno@clisp.org>
15153
15154         Fix typo introduced on 2009-12-31.
15155         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15156         posix_spawn_file_actions_adddup2.
15157
15158 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15159         and Eric Blake  <eblake@redhat.com>
15160
15161         test-vc-list-files-git: make more robust
15162         * tests/test-vc-list-files-git.sh: Unset problematic environment
15163         variables.  Chain commands together.
15164
15165 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15166
15167         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15168         `AC_CHECK_DECL' invocation.
15169
15170 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15171
15172         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15173         appears before executable statements. Suggested by Petr Sumbera
15174         <Petr.Sumbera@Sun.COM>.
15175
15176 2010-03-14  Bruno Haible  <bruno@clisp.org>
15177
15178         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15179         portability problems. Instead use a simpler test.
15180         (main): Check that invalid arguments are rejected only on Linux.
15181
15182 2010-03-14  Bruno Haible  <bruno@clisp.org>
15183
15184         Fix bug introduced on 2009-12-31.
15185         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15186         gl_PREREQ_SYS_H_WINSOCK2 always.
15187         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15188         SYS_SOCKET_H variable.
15189         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15190         Update comments.
15191         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15192         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15193         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15194         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15195         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15196
15197 2010-03-14  Bruno Haible  <bruno@clisp.org>
15198
15199         Fix values returned by sinl, cosl.
15200         * lib/trigl.h: Add specification comments.
15201         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15202         that combines the values from the precomputed table with the values of
15203         the Chebyshev polynomials.
15204
15205 2010-03-14  Bruno Haible  <bruno@clisp.org>
15206
15207         Fix compilation error when modules 'posix_spawn[p]' are not used.
15208         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15209         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15210
15211 2010-03-14  Bruno Haible  <bruno@clisp.org>
15212
15213         Fix compilation error on mingw when module 'time_r' is not used.
15214         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15215         is 1.
15216         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15217         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15218         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15219         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15220
15221 2010-03-14  Bruno Haible  <bruno@clisp.org>
15222
15223         Fix compilation error with Sun C.
15224         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15225         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15226         instead of GCC specific ULONG_LONG_MAX.
15227         * lib/xstrtoll.c: Likewise.
15228         * lib/xstrtoull.c: Likewise.
15229
15230 2010-03-13  Bruno Haible  <bruno@clisp.org>
15231
15232         Allow the user to disable C++ code and tests.
15233         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15234         (gl_PROG_ANSI_CXX): Require it.
15235
15236 2010-03-13  Bruno Haible  <bruno@clisp.org>
15237
15238         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15239         cases.
15240
15241 2010-03-13  Bruno Haible  <bruno@clisp.org>
15242
15243         Test that gnulib does not break the standard C++ headers.
15244         * tests/test-locale-c++2.cc: New file.
15245         * modules/locale-tests (Files): Add it.
15246         (Makefile.am): Compile it for test-locale-c++.
15247         * tests/test-math-c++2.cc: New file.
15248         * modules/math-tests (Files): Add it.
15249         (Makefile.am): Compile it for test-math-c++.
15250         * tests/test-signal-c++2.cc: New file.
15251         * modules/signal-tests (Files): Add it.
15252         (Makefile.am): Compile it for test-signal-c++.
15253         * tests/test-stdio-c++2.cc: New file.
15254         * modules/stdio-tests (Files): Add it.
15255         (Makefile.am): Compile it for test-stdio-c++.
15256         * tests/test-stdlib-c++2.cc: New file.
15257         * modules/stdlib-tests (Files): Add it.
15258         (Makefile.am): Compile it for test-stdlib-c++.
15259         * tests/test-string-c++2.cc: New file.
15260         * modules/string-tests (Files): Add it.
15261         (Makefile.am): Compile it for test-string-c++.
15262         * tests/test-time-c++2.cc: New file.
15263         * modules/time-tests (Files): Add it.
15264         (Makefile.am): Compile it for test-time-c++.
15265         Reported by John W. Eaton <jwe@gnu.org>.
15266
15267 2010-03-13  Bruno Haible  <bruno@clisp.org>
15268
15269         * gnulib-tool (func_usage): Clarify which options are available for
15270         --create-testdir and --create-megatestdir.
15271
15272 2010-03-13  Bruno Haible  <bruno@clisp.org>
15273
15274         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15275         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15276         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15277         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15278         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15279         when appropriate.
15280         Reported by Jim Meyering.
15281
15282 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15283
15284         * gnulib-tool (func_import): Explain origin of code.
15285
15286 2010-03-12  Bruno Haible  <bruno@clisp.org>
15287
15288         Fix problem with automake's definition of CXXLINK.
15289         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15290         Reported by Simon Josefsson and Ludovic Courtès.
15291
15292 2010-03-12  Bruno Haible  <bruno@clisp.org>
15293
15294         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15295         stable releases.
15296
15297 2010-03-11  Bruno Haible  <bruno@clisp.org>
15298
15299         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15300         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15301         whether the system provides one variant or multiple variants of the
15302         function.
15303         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15304         C++ compilers.
15305         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15306         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15307         Reported by Jim Meyering.
15308
15309 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15310
15311         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15312
15313 2010-03-08  Bruno Haible  <bruno@clisp.org>
15314
15315         gnulib-tool: Add support for --libtool in --create-testdir.
15316         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15317         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15318
15319 2010-03-08  Eric Blake  <eblake@redhat.com>
15320
15321         gnulib-tool.texi: mention possibility of git submodule
15322         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15323         submodules.
15324         * doc/.gitignore: Ignore another generated file.
15325
15326 2010-03-08  Karl Berry  <karl@gnu.org>
15327
15328         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15329         of committing gnulib files while skipping others.
15330
15331 2010-03-07  Bruno Haible  <bruno@clisp.org>
15332
15333         Tests of module 'wctype' in C++ mode.
15334         * tests/test-wctype-c++.cc: New file.
15335         * modules/wctype-tests (Files): Add it and tests/signature.h.
15336         (Depends-on): Add ansi-c++-opt.
15337         (Makefile.am): Arrange to compile and run test-wctype-c++.
15338
15339         Tests of module 'wchar' in C++ mode.
15340         * tests/test-wchar-c++.cc: New file.
15341         * modules/wchar-tests (Files): Add it and tests/signature.h.
15342         (Depends-on): Add ansi-c++-opt.
15343         (Makefile.am): Arrange to compile and run test-wchar-c++.
15344         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
15345         gl_MODULE_INDICATOR.
15346
15347         Tests of module 'unistd' in C++ mode.
15348         * tests/test-unistd-c++.cc: New file.
15349         * modules/unistd-tests (Files): Add it and tests/signature.h.
15350         (Depends-on): Add ansi-c++-opt.
15351         (Makefile.am): Arrange to compile and run test-unistd-c++.
15352         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
15353         gl_MODULE_INDICATOR.
15354
15355         Tests of module 'time' in C++ mode.
15356         * tests/test-time-c++.cc: New file.
15357         * modules/time-tests (Files): Add it and tests/signature.h.
15358         (Depends-on): Add ansi-c++-opt.
15359         (Makefile.am): Arrange to compile and run test-time-c++.
15360         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15361
15362         Tests of module 'sys_time' in C++ mode.
15363         * tests/test-sys_time-c++.cc: New file.
15364         * modules/sys_time-tests (Files): Add it and tests/signature.h.
15365         (Depends-on): Add ansi-c++-opt.
15366         (Makefile.am): Arrange to compile and run test-sys_time-c++.
15367         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
15368         gl_MODULE_INDICATOR.
15369
15370         Tests of module 'sys_stat' in C++ mode.
15371         * tests/test-sys_stat-c++.cc: New file.
15372         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
15373         (Depends-on): Add ansi-c++-opt.
15374         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
15375         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
15376         gl_MODULE_INDICATOR.
15377
15378         Tests of module 'sys_socket' in C++ mode.
15379         * tests/test-sys_socket-c++.cc: New file.
15380         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
15381         (Depends-on): Add ansi-c++-opt.
15382         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
15383         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
15384         gl_MODULE_INDICATOR.
15385
15386         Tests of module 'sys_select' in C++ mode.
15387         * tests/test-sys_select-c++.cc: New file.
15388         * modules/sys_select-tests (Files): Add it and tests/signature.h.
15389         (Depends-on): Add ansi-c++-opt.
15390         (Makefile.am): Arrange to compile and run test-sys_select-c++.
15391         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
15392         gl_MODULE_INDICATOR.
15393
15394         Tests of module 'sys_ioctl' in C++ mode.
15395         * tests/test-sys_ioctl-c++.cc: New file.
15396         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
15397         (Depends-on): Add ansi-c++-opt.
15398         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
15399         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
15400         gl_MODULE_INDICATOR.
15401
15402         Tests of module 'string' in C++ mode.
15403         * tests/test-string-c++.cc: New file.
15404         * modules/string-tests (Files): Add it and tests/signature.h.
15405         (Depends-on): Add ansi-c++-opt.
15406         (Makefile.am): Arrange to compile and run test-string-c++.
15407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
15408         gl_MODULE_INDICATOR.
15409
15410         Tests of module 'stdlib' in C++ mode.
15411         * tests/test-stdlib-c++.cc: New file.
15412         * modules/stdlib-tests (Files): Add it and tests/signature.h.
15413         (Depends-on): Add ansi-c++-opt.
15414         (Makefile.am): Arrange to compile and run test-stdlib-c++.
15415         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
15416         gl_MODULE_INDICATOR.
15417
15418         Tests of module 'stdio' in C++ mode.
15419         * tests/test-stdio-c++.cc: New file.
15420         * modules/stdio-tests (Files): Add it and tests/signature.h.
15421         (Depends-on): Add ansi-c++-opt.
15422         (Makefile.am): Arrange to compile and run test-stdio-c++.
15423         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
15424         gl_MODULE_INDICATOR.
15425
15426         Tests of module 'spawn' in C++ mode.
15427         * tests/test-spawn-c++.cc: New file.
15428         * modules/spawn-tests (Files): Add it and tests/signature.h.
15429         (Depends-on): Add ansi-c++-opt.
15430         (Makefile.am): Arrange to compile and run test-spawn-c++.
15431         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
15432         gl_MODULE_INDICATOR.
15433
15434         Tests of module 'signal' in C++ mode.
15435         * tests/test-signal-c++.cc: New file.
15436         * modules/signal-tests (Files): Add it and tests/signature.h.
15437         (Depends-on): Add ansi-c++-opt.
15438         (Makefile.am): Arrange to compile and run test-signal-c++.
15439         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
15440         gl_MODULE_INDICATOR.
15441
15442         Tests of module 'search' in C++ mode.
15443         * tests/test-search-c++.cc: New file.
15444         * modules/search-tests (Files): Add it and tests/signature.h.
15445         (Depends-on): Add ansi-c++-opt.
15446         (Makefile.am): Arrange to compile and run test-search-c++.
15447         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
15448         gl_MODULE_INDICATOR.
15449
15450         Tests of module 'math' in C++ mode.
15451         * tests/test-math-c++.cc: New file.
15452         * modules/math-tests (Files): Add it and tests/signature.h.
15453         (Depends-on): Add ansi-c++-opt.
15454         (Makefile.am): Arrange to compile and run test-math-c++.
15455         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15456
15457         Tests of module 'locale' in C++ mode.
15458         * tests/test-locale-c++.cc: New file.
15459         * modules/locale-tests (Files): Add it and tests/signature.h.
15460         (Depends-on): Add ansi-c++-opt.
15461         (Makefile.am): Arrange to compile and run test-locale-c++.
15462         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
15463         gl_MODULE_INDICATOR.
15464
15465         Tests of module 'langinfo' in C++ mode.
15466         * tests/test-langinfo-c++.cc: New file.
15467         * modules/langinfo-tests (Files): Add it and tests/signature.h.
15468         (Depends-on): Add ansi-c++-opt.
15469         (Makefile.am): Arrange to compile and run test-langinfo-c++.
15470         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
15471         gl_MODULE_INDICATOR.
15472
15473         Tests of module 'iconv-h' in C++ mode.
15474         * tests/test-iconv-h-c++.cc: New file.
15475         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
15476         (Depends-on): Add ansi-c++-opt.
15477         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
15478
15479         Tests of module 'glob' in C++ mode.
15480         * tests/test-glob-c++.cc: New file.
15481         * modules/glob-tests (Files): Add it.
15482         (Depends-on): Add ansi-c++-opt.
15483         (Makefile.am): Arrange to compile and run test-glob-c++.
15484
15485         Tests of module 'fcntl-h' in C++ mode.
15486         * tests/test-fcntl-h-c++.cc: New file.
15487         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
15488         (Depends-on): Add ansi-c++-opt.
15489         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
15490         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
15491         gl_MODULE_INDICATOR.
15492
15493         Tests of module 'dirent' in C++ mode.
15494         * tests/test-dirent-c++.cc: New file.
15495         * modules/dirent-tests (Files): Add it and tests/signature.h.
15496         (Depends-on): Add ansi-c++-opt.
15497         (Makefile.am): Arrange to compile and run test-dirent-c++.
15498         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15499         gl_MODULE_INDICATOR.
15500
15501         New module 'ansi-c++-opt'.
15502         * modules/ansi-c++-opt: New file.
15503         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
15504
15505         Document C++ namespace mode.
15506         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
15507
15508         wctype: Avoid #define replacements in C++ mode.
15509         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
15510         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
15511         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
15512         In C++, define a namespaced alias symbol.
15513         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
15514         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
15515         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
15516         rule.
15517
15518         wchar: Avoid #define replacements in C++ mode.
15519         * lib/wchar.in.h: Include c++defs.h.
15520         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
15521         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
15522         symbol.
15523         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
15524         * modules/wchar (Depends-on): Add c++defs.
15525         (Makefile.am): Update wchar.h rule.
15526
15527         unistd: Avoid #define replacements in C++ mode.
15528         * lib/unistd.in.h: Include c++defs.h.
15529         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
15530         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
15531         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
15532         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
15533         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
15534         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
15535         symbol.
15536         (environ): Update.
15537         * modules/unistd (Depends-on): Add c++defs.
15538         (Makefile.am): Update unistd.h rule.
15539
15540         time: Avoid #define replacements in C++ mode.
15541         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
15542         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
15543         define a namespaced alias symbol.
15544         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
15545         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
15546         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
15547         * modules/time (Depends-on): Add c++defs, warn-on-use.
15548         (Makefile.am): Update time.h rule.
15549         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15550         * modules/nanosleep (configure.ac): Likewise.
15551         * modules/strptime (configure.ac): Likewise.
15552         * modules/timegm (configure.ac): Likewise.
15553
15554         sys_time: Avoid #define replacements in C++ mode.
15555         * lib/sys_time.in.h: Include c++defs.h.
15556         (gettimeofday): In C++, define a namespaced alias symbol.
15557         * modules/sys_time (Depends-on): Add c++defs.
15558         (Makefile.am): Update sys/time.h rule.
15559
15560         sys_stat: Avoid #define replacements in C++ mode.
15561         * lib/sys_stat.in.h: Include c++defs.h.
15562         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15563         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15564         namespaced alias symbol.
15565         In C++, define a namespaced alias symbol.
15566         * modules/sys_stat (Depends-on): Add c++defs.
15567         (Makefile.am): Update sys/stat.h rule.
15568
15569         sys_socket: Avoid #define replacements in C++ mode.
15570         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15571         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15572         definitions also when the system has a <sys/socket.h>.
15573         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15574         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15575         In C++, define a namespaced alias symbol.
15576         * modules/sys_socket (Depends-on): Add c++defs.
15577         (Makefile.am): Update sys/socket.h rule.
15578
15579         sys_select: Avoid #define replacements in C++ mode.
15580         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15581         definitions also when the system has a <sys/select.h>.
15582         (select): In C++, define a namespaced alias symbol.
15583         * modules/sys_select (Depends-on): Add c++defs.
15584         (Makefile.am): Update sys/select.h rule.
15585
15586         sys_ioctl: Avoid #define replacements in C++ mode.
15587         * lib/sys_ioctl.in.h: Include c++defs.h.
15588         (ioctl): In C++, define a namespaced alias symbol.
15589         * modules/sys_ioctl (Depends-on): Add c++defs.
15590         (Makefile.am): Update sys/ioctl.h rule.
15591
15592         string: Avoid #define replacements in C++ mode.
15593         * lib/string.in.h: Include c++defs.h.
15594         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15595         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15596         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15597         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15598         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15599         * modules/string (Depends-on): Add c++defs.
15600         (Makefile.am): Update string.h rule.
15601
15602         stdlib: Avoid #define replacements in C++ mode.
15603         * lib/stdlib.in.h: Include c++defs.h.
15604         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15605         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15606         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15607         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15608         symbol.
15609         * modules/stdlib (Depends-on): Add c++defs.
15610         (Makefile.am): Update stdlib.h rule.
15611
15612         stdio: Avoid #define replacements in C++ mode.
15613         * lib/stdio.in.h: Include c++defs.h.
15614         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15615         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15616         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15617         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15618         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15619         namespaced alias symbol.
15620         * modules/stdio (Depends-on): Add c++defs.
15621         (Makefile.am): Update stdio.h rule.
15622
15623         spawn: Avoid #define replacements in C++ mode.
15624         * lib/spawn.in.h: Include c++defs.h.
15625         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15626         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15627         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15628         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15629         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15630         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15631         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15632         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15633         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15634         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15635         In C++, define a namespaced alias symbol.
15636         * modules/spawn (Depends-on): Add c++defs.
15637         (Makefile.am): Update spawn.h rule.
15638
15639         signal: Avoid #define replacements in C++ mode.
15640         * lib/signal.in.h: Include c++defs.h.
15641         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15642         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15643         namespaced alias symbol.
15644         * modules/signal (Depends-on): Add c++defs.
15645         (Makefile.am): Update signal.h rule.
15646
15647         search: Avoid #define replacements in C++ mode.
15648         * lib/search.in.h: Include c++defs.h.
15649         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15650         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15651         symbol.
15652         * modules/search (Depends-on): Add c++defs.
15653         (Makefile.am): Update search.h rule.
15654
15655         math: Avoid #define replacements in C++ mode.
15656         * lib/math.in.h: Include c++defs.h.
15657         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15658         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15659         trunc, truncl): In C++, define a namespaced alias symbol.
15660         * modules/math (Depends-on): Add c++defs.
15661         (Makefile.am): Update math.h rule.
15662
15663         locale: Avoid #define replacements in C++ mode.
15664         * lib/locale.in.h: Include c++defs.h.
15665         (duplocale): In C++, define a namespaced alias symbol.
15666         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15667         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15668         * modules/locale (Depends-on): Add c++defs.
15669         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15670
15671         langinfo: Avoid #define replacements in C++ mode.
15672         * lib/langinfo.in.h: Include c++defs.h.
15673         (nl_langinfo): In C++, define a namespaced alias symbol.
15674         * modules/langinfo (Depends-on): Add c++defs.
15675         (Makefile.am): Update langinfo.h rule.
15676
15677         iconv-h: Avoid #define replacements in C++ mode.
15678         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15679         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15680         symbol.
15681         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15682         whenever iconv is present.
15683         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15684         (Makefile.am): Update iconv.h rule.
15685
15686         glob: Avoid #define replacements in C++ mode.
15687         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15688         (_gl_glob_errfunc_fn): New type.
15689         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15690         symbol.
15691         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15692         (Makefile.am): Update glob.h rule.
15693
15694         fcntl-h: Avoid #define replacements in C++ mode.
15695         * lib/fcntl.in.h: Include c++defs.h.
15696         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15697         * modules/fcntl-h (Depends-on): Add c++defs.
15698         (Makefile.am): Update fcntl.h rule.
15699
15700         dirent: Avoid #define replacements in C++ mode.
15701         * lib/dirent.in.h: Include c++defs.h.
15702         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15703         namespaced alias symbol.
15704         (dirfd): Update declaration.
15705         * modules/dirent (Depends-on): Add c++defs.
15706         (Makefile.am): Update dirent.h rule.
15707
15708         ctype: Make it usable in C++ code.
15709         * lib/ctype.in.h: Include c++defs.h.
15710         (isblank): Declare as extern "C".
15711         * modules/ctype (Depends-on): Add c++defs.
15712         (Makefile.am): Update ctype.h rule.
15713
15714         New module 'c++defs'.
15715         * modules/c++defs: New file.
15716         * build-aux/c++defs.h: New file.
15717         Reported by John W. Eaton <jwe@gnu.org>.
15718
15719 2010-03-07  Bruno Haible  <bruno@clisp.org>
15720
15721         logb: Provide missing declaration for Cygwin.
15722         * lib/math.in.h (logb): New declaration.
15723         * m4/logb.m4: New file.
15724         * modules/logb (Files): Add m4/logb.m4.
15725         (Depends-on): Add math.
15726         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15727         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15729         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15730         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15731
15732 2010-03-07  Bruno Haible  <bruno@clisp.org>
15733
15734         Fix test-cond link error.
15735         * tests/test-cond.c: Include <stdio.h>.
15736
15737 2010-03-07  Bruno Haible  <bruno@clisp.org>
15738
15739         Fix test-dirent-safer link error.
15740         * modules/dirent-safer-tests (Makefile.am): Define
15741         test_dirent_safer_LDADD.
15742
15743 2010-03-07  Bruno Haible  <bruno@clisp.org>
15744
15745         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15746         among default module list.
15747
15748 2010-03-07  Bruno Haible  <bruno@clisp.org>
15749
15750         Fix link error on platforms with GNU libiconv.
15751         * modules/unistr/u8-strcoll-tests (Makefile): Define
15752         test_u8_strcoll_LDADD.
15753         * modules/unistr/u16-strcoll-tests (Makefile): Define
15754         test_u16_strcoll_LDADD.
15755         * modules/unistr/u32-strcoll-tests (Makefile): Define
15756         test_u32_strcoll_LDADD.
15757
15758 2010-03-07  Bruno Haible  <bruno@clisp.org>
15759
15760         Use POSIX declarations for socket functions.
15761         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15762         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15763         rpl_sendto): Change declaration to match POSIX.
15764         * lib/connect.c (rpl_connect): Likewise.
15765         * lib/accept.c (rpl_accept): Likewise.
15766         * lib/bind.c (rpl_bind): Likewise.
15767         * lib/getpeername.c (rpl_getpeername): Likewise.
15768         * lib/getsockname.c (rpl_getsockname): Likewise.
15769         * lib/recv.c (rpl_recv): Likewise.
15770         * lib/send.c (rpl_send): Likewise.
15771         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15772         * lib/sendto.c (rpl_sendto): Likewise.
15773
15774 2010-03-06  Bruno Haible  <bruno@clisp.org>
15775
15776         Clarify access, euidaccess, faccessat.
15777         * doc/posix-functions/faccessat.texi: Mention security problem under
15778         "Other problems", not "Portability problems".
15779         * doc/posix-functions/access.texi: Likewise. Mention a related security
15780         problem.
15781         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15782         * lib/euidaccess.c: Add comments about platforms.
15783         * lib/unistd.in.h (access, euidaccess): Add warnings.
15784
15785 2010-03-07  Bruno Haible  <bruno@clisp.org>
15786
15787         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15788         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15789         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15790         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15791         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15792         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15793         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15794         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15795         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15796         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15797         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15798         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15799         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15800         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15801         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15802         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15803         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15804         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15805         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15806         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15807         Likewise.
15808         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15809         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15810         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15811         Likewise.
15812         * tests/test-spawn.c (main): Make it work when
15813         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15814
15815 2010-03-07  Bruno Haible  <bruno@clisp.org>
15816
15817         Fix incorrect Makefile.am generation in German locale.
15818         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15819         Execute sed command with character range in C locale.
15820
15821 2010-03-06  Bruno Haible  <bruno@clisp.org>
15822
15823         Tests for module 'iconv-h'.
15824         * modules/iconv-h-tests: New file.
15825         * tests/test-iconv-h.c: New file.
15826
15827         New module 'iconv-h'.
15828         * modules/iconv-h: New file.
15829         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15830         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15831         (configure.ac): Remove gl_ICONV_H.
15832         (Makefile.am): Remove rule for iconv.h.
15833
15834 2010-03-06  Bruno Haible  <bruno@clisp.org>
15835
15836         More consistent naming of *.m4 files.
15837         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15838         * modules/wctype (Files): Update.
15839
15840         More consistent naming of *.m4 files.
15841         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15842         * modules/wchar (Files): Update.
15843
15844 2010-03-06  Jim Meyering  <meyering@redhat.com>
15845
15846         euidaccess: relax license to LGPLv2+
15847         * modules/euidaccess (License): Relax to LGPLv2+.
15848
15849 2010-03-06  Bruno Haible  <bruno@clisp.org>
15850
15851         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15852         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15853         (Makefile.am): Augment lib_SOURCES instead.
15854
15855 2010-03-04  Jim Meyering  <meyering@redhat.com>
15856
15857         utime: remove obsolete module
15858         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15859         unnecessary for years, and has been marked as obsolete for 10 months.
15860         * modules/utime: Remove file.
15861         * lib/utime.c: Remove file.
15862         * m4/utime.m4: Remove file.
15863         * m4/utimes-null.m4: Remove file.
15864         * doc/posix-functions/utime.texi (utime): Remove reference to
15865         the module.  Move the sole "fixed by gnulib" item into the
15866         "problems not fixed by Gnulib" list.
15867         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15868
15869 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15870
15871         * modules/exit (License): Relax license to LGPLv2+.
15872         (Status): Mark as obsolete.
15873         * NEWS: Mention deprecated 'exit' module.
15874         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15875         of now obsolete 'exit'.
15876
15877 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15878
15879         fts-lgpl: remove unused module
15880         * modules/fts-lgpl: Remove.
15881         * MODULES.html.sh (func_all_modules): Adjust.
15882         * check-module (find_included_lib_files): Adjust.
15883         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15884
15885 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15886
15887         copy-acl: enhance Solaris ACL error handling
15888         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15889         * lib/set-mode-acl.c (qset_acl): Likewise.
15890
15891 2010-03-02  Bruno Haible  <bruno@clisp.org>
15892
15893         spawn: Don't override the system defined values on FreeBSD 8.
15894         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15895         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15896         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15897         if HAVE_POSIX_SPAWN is 1.
15898         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15899
15900 2010-03-01  Bruno Haible  <bruno@clisp.org>
15901
15902         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15903         regarding Automake.
15904
15905 2010-02-25  Bruno Haible  <bruno@clisp.org>
15906
15907         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15908         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15909         setting, not afterwards.
15910         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15911
15912 2010-02-24  Eric Blake  <eblake@redhat.com>
15913
15914         bootstrap, git-version-gen: use timestamp
15915         * build-aux/git-version-gen (scriptversion): Force UTC.
15916         * build-aux/bootstrap (scriptversion): New variable.
15917
15918         bootstrap: allow older git
15919         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15920         older than 1.6.4.  Requested by the libvirt project.
15921
15922 2010-02-23  Eric Blake  <eblake@redhat.com>
15923
15924         warn-on-use: work with old autoconf
15925         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15926         AS_VAR semantics of autoconf 2.60.
15927         Reported by Bruno Haible.
15928
15929         bootstrap: improve some comments
15930         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15931         clarification comments.
15932
15933         gettimeofday: provide correct function
15934         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15935         when replacement is declared, otherwise provide gettimeofday.
15936         Reported by Michael Goffioul.
15937
15938 2010-02-23  Jim Meyering  <meyering@redhat.com>
15939
15940         lib-ignore: relax license to "unlimited", not LGPLv2+
15941         * modules/lib-ignore (License): Relax to "unlimited".
15942
15943 2010-02-23  Jim Meyering  <meyering@redhat.com>
15944
15945         lib-ignore: relax license to LGPLv2+
15946         * modules/lib-ignore (License): Relax to LGPLv2+.
15947
15948 2010-02-22  Eric Blake  <eblake@redhat.com>
15949
15950         lseek: avoid bash 3.2 broken pipe bug
15951         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15952         warning from bash 3.2.
15953         Reported by Ben Pfaff, with analysis from Bruno Haible.
15954
15955         bootstrap: support non-FSF copyright holder
15956         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15957         bootstrap.conf override of COPYRIGHT_HOLDER.
15958         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15959
15960         bootstrap: interoperate with gettext 0.14.1
15961         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15962
15963         bootstrap: allow for alternate submodule location
15964         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15965         hardcoding submodule location.
15966         (gnulib_mk): Allow direct use of Makefile.am.
15967
15968         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15969         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15970         rather than reconfiguring where the submodule points.
15971
15972         gettimeofday: restore support for platforms that lack function
15973         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15974         replacement if function is missing.
15975         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15976         * modules/sys_time (Makefile.am): Substitute it.
15977         * lib/sys_time.in.h (gettimeofday): Check it.
15978         Reported by Michael Goffioul.
15979
15980 2010-02-21  Bruno Haible  <bruno@clisp.org>
15981
15982         * lib/stdio.in.h (obstack_printf): Fix typo.
15983
15984 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15985
15986         vc-list-files: use bzr ls's -R option
15987         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15988         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15989
15990 2010-02-21  Jim Meyering  <meyering@redhat.com>
15991
15992         init.sh: fix EXEEXT shims to work also for names like test-prog
15993         * tests/init.sh: Re-exec a better shell, when needed.
15994         If the current shell lacks support for posix $(...), an init.sh-using
15995         test will now try to find a shell that supports that.  If EXEEXT is
15996         nonempty, we also require support for hyphen-in-alias-name and shell
15997         substitutions like ${var#glob}.  Failure to find such a shell results
15998         in a skipped test.
15999
16000 2010-02-21  Bruno Haible  <bruno@clisp.org>
16001
16002         Really work around around "broken pipe" error message from bash 3.2.
16003         * gnulib-tool (func_reset_sigpipe): Remove function.
16004         (echo): In bash 3.2, define to a function that uses printf.
16005         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16006
16007 2010-02-20  Bruno Haible  <bruno@clisp.org>
16008
16009         Restore support for automake 1.9.6 with autoconf 2.61.
16010         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16011         Reported by James Youngman <jay@gnu.org>.
16012
16013 2010-02-20  Bruno Haible  <bruno@clisp.org>
16014
16015         Improve *printf warning condition.
16016         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16017         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16018         and the function is overridden due to SIGPIPE emulation.
16019
16020 2010-02-20  Bruno Haible  <bruno@clisp.org>
16021
16022         * lib/stdio.in.h: Tweak comments.
16023
16024 2010-02-19  Bruno Haible  <bruno@clisp.org>
16025
16026         Make it easier to find modules. New gnulib-tool option '--find'.
16027         * gnulib-tool: New option --find.
16028         (func_usage): Document it.
16029         (func_sanitize_modulelist): New function, extracted from
16030         func_all_modules.
16031         (func_all_modules): Invoke it.
16032         * doc/gnulib-tool.texi (Which modules?): New node.
16033
16034 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16035
16036         * lib/sys_select.in.h: Provide select replacement even if
16037         sys/select.h exists on a system, for Interix.
16038
16039 2010-02-18  Jim Meyering  <meyering@redhat.com>
16040
16041         init.sh: don't use $(...) just yet
16042         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16043         to accommodate e.g., Solaris' /bin/sh.
16044
16045 2010-02-17  Bruno Haible  <bruno@clisp.org>
16046
16047         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16048         Reported by Ludovic Courtès <ludo@gnu.org>.
16049
16050 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16051
16052         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16053         linking with -lintl.
16054
16055 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16056
16057         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16058         if not provided by the system's netdb.h.  Reported by
16059         ludo@gnu.org (Ludovic Courtès).
16060
16061 2010-02-15  Jim Meyering  <meyering@redhat.com>
16062
16063         init.sh: improve portability and efficiency
16064         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16065         "dummy" in a for loop.
16066         Use '!', not '^' to select the complement of a character set used
16067         in a "case" statement.
16068         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16069         Suggestions from Eric Blake.
16070
16071         init.sh: automatically accommodate programs with the .exe suffix
16072         Automatically arrange for an invocation of "prog" to execute the
16073         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16074         may use the simpler "prog", yet still work when built on a system
16075         that requires specifying the added suffix.
16076         Do this by constructing a function named "prog" that invokes
16077         "prog.exe" for each .exe file in selected directories.
16078         * tests/init.sh (find_exe_basenames_): New function.
16079         (create_exe_shim_functions_): New function.
16080         (path_prepend_): Use it.
16081
16082         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16083         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16084         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16085
16086 2010-02-14  Jim Meyering  <meyering@redhat.com>
16087
16088         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16089         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16090         (sc_prohibit_hash_pjw_without_use): New rule.
16091
16092         maint.mk: allow the default upload destination dir to be overridden
16093         * top/maint.mk (upload_dest_dir_): Define with a default that
16094         preserves the status quo.
16095         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16096         Reported by Peter Simons.
16097
16098         maint.mk: prohibit inclusion of "hash.h" without_use
16099         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16100
16101 2010-02-10  Jim Meyering  <meyering@redhat.com>
16102
16103         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16104         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16105
16106 2010-02-09  Eric Blake  <ebb9@byu.net>
16107         and Bruno Haible  <bruno@clisp.org>
16108
16109         obstack-printf-posix: ensure declaration
16110         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16111         extracted from gl_FUNC_OBSTACK_PRINTF.
16112         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16113         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16114         Likewise.
16115         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16116         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16117         0.
16118
16119 2010-02-08  Bruno Haible  <bruno@clisp.org>
16120
16121         gnulib-tool: Fix typo in 2010-02-07 commit.
16122         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16123         Reported by Eric Blake.
16124
16125 2010-02-07  Bruno Haible  <bruno@clisp.org>
16126
16127         gnulib-tool: Fix up caching patches.
16128         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16129         option --no-cache. Use associative arrays when supported by the shell.
16130         (sed_comments): New variable.
16131         (modcache): Renamed from do_cache.
16132         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16133         abbreviate unnecessarily.
16134         (have_associative): New variable.
16135         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16136         way also for ksh and zsh.
16137         (func_init_sed_convert_to_cache_statements): New function, extracted
16138         from func_cache_lookup_module. Add support for associative arrays.
16139         Don't set the c_MODULE_cached variable here. Ignore all lines before
16140         the first field header. Remove only the final newline, not all trailing
16141         newlines. Support empty fields correctly. Limit the use of 'eval' to
16142         assignments.
16143         (func_get_description, func_get_status, func_get_notice,
16144         func_get_applicability, func_get_filelist, func_get_dependencies,
16145         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16146         func_get_automake_snippet, func_get_include_directive,
16147         func_get_link_directive, func_get_license, func_get_maintainer):
16148         Update documentation. List the unoptimized code first. Add support for
16149         associative arrays. Limit the use of 'eval' to assignments.
16150         (func_get_applicability): Undo stylistic pessimisations.
16151         (func_get_automake_snippet, func_get_include_directive): Reduce code
16152         duplication.
16153         (func_modules_transitive_closure, func_modules_add_dummy,
16154         func_modules_notice, func_modules_to_filelist, func_add_file,
16155         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16156         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16157         func_create_testdir, func_create_megatestdir): Update documentation.
16158
16159 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16160
16161         * gnulib-tool (func_cache_lookup_module): Store the module name
16162         belonging to the cache variable; error out if two different
16163         module names map to the same cache variable name.
16164
16165 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16166
16167         gnulib-tool: Make caching optional.
16168         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16169         Update matching short versions of --no-changelog.
16170         (func_usage): Update.
16171         (sed_extract_cache_prog): Renamed from ...
16172         (sed_extract_prog): ... this; revert to old extraction script.
16173         (func_get_description, func_get_status)
16174         (func_get_notice, func_get_applicability, func_get_filelist)
16175         (func_get_dependencies, func_get_autoconf_early_snippet)
16176         (func_get_autoconf_snippet, func_get_automake_snippet)
16177         (func_get_include_directive, func_get_link_directive)
16178         (func_get_license, func_get_maintainer): If $do_cache is false,
16179         use old, non-caching extraction scripts.
16180         Suggestion by Bruno Haible.
16181
16182 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16183
16184         gnulib-tool: cache module metainformation.
16185         * gnulib-tool (sed_extract_prog): Match newline before each
16186         header, and rewrite header to a shell variable suffix.
16187         (func_cache_var, func_cache_lookup_module): New functions,
16188         to turn a module name into a cache variable prefix, and to
16189         look up and cache module metainformation.
16190         (func_get_description, func_get_status)
16191         (func_get_notice, func_get_applicability, func_get_filelist)
16192         (func_get_dependencies, func_get_autoconf_early_snippet)
16193         (func_get_autoconf_snippet, func_get_automake_snippet)
16194         (func_get_include_directive, func_get_link_directive)
16195         (func_get_license, func_get_maintainer): Use
16196         func_cache_lookup_module.
16197
16198 2010-02-07  Bruno Haible  <bruno@clisp.org>
16199
16200         fnctl: Fix missing dependency.
16201         * modules/fcntl (Depends-on): Add getdtablesize.
16202         Reported by John W. Eaton <jwe@gnu.org>.
16203
16204 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16205
16206         Argp: fix recognition of short alias options.
16207
16208         * lib/argp-parse.c (convert_options): Fix improper use of
16209         `|' between character values.
16210         * tests/test-argp.c (group1_option): New alias option
16211         --read (-r).
16212         (group1_parser): Special handling for 'r'.
16213         (test15): New test case.
16214         (test_fun): Add test15.
16215         * tests/test-argp-2.sh: Update expected --help and --usage
16216         outputs.
16217
16218 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16219
16220         * tests/test-argp.c: Fix indentation.
16221
16222 2010-02-04  Eric Blake  <ebb9@byu.net>
16223
16224         gettimeofday: expose type of second argument
16225         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16226         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16227         * tests/test-gettimeofday.c: Use it to silence warning.
16228         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16229         the issue.
16230
16231 2010-02-03  Jim Meyering  <meyering@redhat.com>
16232
16233         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16234         * lib/regcomp.c (TYPE_SIGNED): Define.
16235         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16236
16237         regcomp.c: avoid a new -Wshadow warning
16238         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16239
16240 2010-02-01  Jim Meyering  <meyering@redhat.com>
16241
16242         removing useless parentheses in cpp #define directives
16243         For motivation, see commit c0221df4, "define STREQ(a,b)
16244         consistently, removing useless parentheses"
16245         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16246         * lib/mountlist.c (MNT_IGNORE): Likewise.
16247         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16248
16249 2010-02-01  Eric Blake  <ebb9@byu.net>
16250
16251         sys_time: use link-warning
16252         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16253         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16254         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16255         * modules/sys_time (Depends-on): Add warn-on-use.
16256         (Makefile.am): Always build replacement.
16257         (configure.ac): Update substitutions.
16258         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16259         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16260         bother with SYS_TIME_H.
16261         * modules/gettimeofday (configure.ac): Declare indicator.
16262         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16263         in use.
16264
16265         closein-tests: silence compiler warning
16266         * tests/test-closein.c (main): Ignore fread result.
16267         * modules/closein-tests (Depends-on): Add ignore-value.
16268
16269         tests: silence warning about system return
16270         * tests/test-areadlink-with-size.c (main): Ignore system result.
16271         * tests/test-areadlink.c (main): Likewise.
16272         * tests/test-areadlinkat-with-size.c (main): Likewise.
16273         * tests/test-areadlinkat.c (main): Likewise.
16274         * tests/test-canonicalize-lgpl.c (main): Likewise.
16275         * tests/test-canonicalize.c (main): Likewise.
16276         * tests/test-chown.c (main): Likewise.
16277         * tests/test-fchownat.c (main): Likewise.
16278         * tests/test-fdutimensat.c (main): Likewise.
16279         * tests/test-fstatat.c (main): Likewise.
16280         * tests/test-futimens.c (main): Likewise.
16281         * tests/test-lchown.c (main): Likewise.
16282         * tests/test-link.c (main): Likewise.
16283         * tests/test-linkat.c (main): Likewise.
16284         * tests/test-lstat.c (main): Likewise.
16285         * tests/test-mkdir.c (main): Likewise.
16286         * tests/test-mkdirat.c (main): Likewise.
16287         * tests/test-mkfifo.c (main): Likewise.
16288         * tests/test-mkfifoat.c (main): Likewise.
16289         * tests/test-mknod.c (main): Likewise.
16290         * tests/test-readlink.c (main): Likewise.
16291         * tests/test-remove.c (main): Likewise.
16292         * tests/test-rename.c (main): Likewise.
16293         * tests/test-renameat.c (main): Likewise.
16294         * tests/test-rmdir.c (main): Likewise.
16295         * tests/test-symlink.c (main): Likewise.
16296         * tests/test-symlinkat.c (main): Likewise.
16297         * tests/test-unlink.c (main): Likewise.
16298         * tests/test-unlinkat.c (main): Likewise.
16299         * tests/test-utimens.c (main): Likewise.
16300         * tests/test-utimensat.c (main): Likewise.
16301         * modules/areadlink-tests (Depends-on): Add ignore-value.
16302         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16303         * modules/areadlinkat-tests (Depends-on): Likewise.
16304         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16305         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16306         * modules/canonicalize-tests (Depends-on): Likewise.
16307         * modules/chown-tests (Depends-on): Likewise.
16308         * modules/fdutimensat-tests (Depends-on): Likewise.
16309         * modules/futimens-tests (Depends-on): Likewise.
16310         * modules/lchown-tests (Depends-on): Likewise.
16311         * modules/link-tests (Depends-on): Likewise.
16312         * modules/linkat-tests (Depends-on): Likewise.
16313         * modules/lstat-tests (Depends-on): Likewise.
16314         * modules/mkdir-tests (Depends-on): Likewise.
16315         * modules/mkfifo-tests (Depends-on): Likewise.
16316         * modules/mkfifoat-tests (Depends-on): Likewise.
16317         * modules/mknod-tests (Depends-on): Likewise.
16318         * modules/openat-tests (Depends-on): Likewise.
16319         * modules/readlink-tests (Depends-on): Likewise.
16320         * modules/remove-tests (Depends-on): Likewise.
16321         * modules/rename-tests (Depends-on): Likewise.
16322         * modules/renameat-tests (Depends-on): Likewise.
16323         * modules/rmdir-tests (Depends-on): Likewise.
16324         * modules/symlink-tests (Depends-on): Likewise.
16325         * modules/symlinkat-tests (Depends-on): Likewise.
16326         * modules/unlink-tests (Depends-on): Likewise.
16327         * modules/utimens-tests (Depends-on): Likewise.
16328         * modules/utimensat-tests (Depends-on): Likewise.
16329
16330 2010-01-31  Bruno Haible  <bruno@clisp.org>
16331
16332         Perform the same test for many <math.h> functions.
16333         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16334         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16335         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16336         of gl_MATHFUNC.
16337         * modules/acos (configure.ac): Likewise.
16338         * modules/asin (configure.ac): Likewise.
16339         * modules/atan (configure.ac): Likewise.
16340         * modules/atan2 (configure.ac): Likewise.
16341         * modules/cbrt (configure.ac): Likewise.
16342         * modules/copysign (configure.ac): Likewise.
16343         * modules/cos (configure.ac): Likewise.
16344         * modules/cosh (configure.ac): Likewise.
16345         * modules/erf (configure.ac): Likewise.
16346         * modules/erfc (configure.ac): Likewise.
16347         * modules/exp (configure.ac): Likewise.
16348         * modules/fmod (configure.ac): Likewise.
16349         * modules/hypot (configure.ac): Likewise.
16350         * modules/j0 (configure.ac): Likewise.
16351         * modules/j1 (configure.ac): Likewise.
16352         * modules/jn (configure.ac): Likewise.
16353         * modules/lgamma (configure.ac): Likewise.
16354         * modules/log (configure.ac): Likewise.
16355         * modules/log10 (configure.ac): Likewise.
16356         * modules/log1p (configure.ac): Likewise.
16357         * modules/pow (configure.ac): Likewise.
16358         * modules/remainder (configure.ac): Likewise.
16359         * modules/sin (configure.ac): Likewise.
16360         * modules/sinh (configure.ac): Likewise.
16361         * modules/tan (configure.ac): Likewise.
16362         * modules/tanh (configure.ac): Likewise.
16363         * modules/y0 (configure.ac): Likewise.
16364         * modules/y1 (configure.ac): Likewise.
16365         * modules/yn (configure.ac): Likewise.
16366         Suggested by Paolo Bonzini.
16367
16368 2010-01-31  Bruno Haible  <bruno@clisp.org>
16369
16370         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
16371
16372 2010-01-31  Bruno Haible  <bruno@clisp.org>
16373
16374         Work around getdelim() bug on FreeBSD 8.0.
16375         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
16376         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
16377         not work.
16378         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
16379         is 1.
16380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
16381         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
16382         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
16383         a non-zero size.
16384         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
16385
16386 2010-01-31  Bruno Haible  <bruno@clisp.org>
16387
16388         Work around getline() bug on FreeBSD 8.0.
16389         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
16390         and a non-zero size.
16391         * tests/test-getline.c (main): Likewise.
16392         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
16393         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
16394
16395 2010-01-28  Eric Blake  <ebb9@byu.net>
16396
16397         regex: fix build failure
16398         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
16399         platforms.
16400
16401 2010-01-28  Jim Meyering  <meyering@redhat.com>
16402
16403         regex: do not ignore memory allocation failure
16404         * lib/regex_internal.c (create_cd_newstate): Detect
16405         re_node_set_init_copy failure.   Extracted from glibc commit
16406         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16407
16408         regex: sync more white-space changes from libc
16409         * lib/regex_internal.c: White-space only changes.
16410         * lib/regexec.c: Likewise.
16411
16412         regex: add many uses of __attribute_warn_unused_result__
16413         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
16414         * lib/regexec.c: Likewise.
16415         Extracted from a messy glibc commit.
16416
16417         regcomp.c: spelling and merge-artifact from glibc
16418         * lib/regcomp.c: Merge remainder of glibc's
16419         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16420
16421         regcomp.c: sync white-space changes from glibc
16422         * lib/regcomp.c: Merge to accommodate white space
16423         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16424
16425         regcomp.c: do not ignore internal return values
16426         * lib/regcomp.c: Do not ignore internal return values.
16427         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
16428         but without its white-space changes and spelling fixes.
16429
16430         regex_internal.h: define __attribute_warn_unused_result__
16431         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
16432
16433         maint: add a syntax-check rule to check for vulnerable Makefile.in
16434         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
16435
16436 2010-01-27  Jim Meyering  <meyering@redhat.com>
16437
16438         ncftpput-ftp: clean up spaces
16439         * build-aux/ncftpput-ftp: Make Copyright line consistent.
16440         Remove trailing blanks.
16441
16442 2010-01-27  Simon Josefsson  <simon@josefsson.org>
16443
16444         * build-aux/git-version-gen: Fix copyright statement.
16445         * build-aux/gnupload: Likewise.
16446         * tests/test-arcfour.c: Likewise.
16447         * tests/test-arctwo.c: Likewise.
16448         * tests/test-count-one-bits.c: Likewise.
16449         * tests/test-crc.c: Likewise.
16450         * tests/test-des.c: Likewise.
16451         * tests/test-gc-arcfour.c: Likewise.
16452         * tests/test-gc-arctwo.c: Likewise.
16453         * tests/test-gc-des.c: Likewise.
16454         * tests/test-gc-hmac-md5.c: Likewise.
16455         * tests/test-gc-hmac-sha1.c: Likewise.
16456         * tests/test-gc-md2.c: Likewise.
16457         * tests/test-gc-md4.c: Likewise.
16458         * tests/test-gc-md5.c: Likewise.
16459         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16460         * tests/test-gc-rijndael.c: Likewise.
16461         * tests/test-gc-sha1.c: Likewise.
16462         * tests/test-gc.c: Likewise.
16463         * tests/test-gethostname.c: Likewise.
16464         * tests/test-gettimeofday.c: Likewise.
16465         * tests/test-hash.c: Likewise.
16466         * tests/test-hmac-md5.c: Likewise.
16467         * tests/test-hmac-sha1.c: Likewise.
16468         * tests/test-md2.c: Likewise.
16469         * tests/test-md4.c: Likewise.
16470         * tests/test-md5.c: Likewise.
16471         * tests/test-memchr.c: Likewise.
16472         * tests/test-memchr2.c: Likewise.
16473         * tests/test-memcmp.c: Likewise.
16474         * tests/test-memmem.c: Likewise.
16475         * tests/test-memrchr.c: Likewise.
16476         * tests/test-rawmemchr.c: Likewise.
16477         * tests/test-read-file.c: Likewise.
16478         * tests/test-rijndael.c: Likewise.
16479         * tests/test-sockets.c: Likewise.
16480         * tests/test-strchrnul.c: Likewise.
16481         * tests/test-strstr.c: Likewise.
16482         * tests/test-strtod.c: Likewise.
16483         * build-aux/ncftpput-ftp: Likewise.
16484
16485 2010-01-26  Eric Blake  <ebb9@byu.net>
16486
16487         ignore-value: update recommended header name
16488         * modules/ignore-value (Include): Only use <> for headers that
16489         exist in glibc.
16490
16491 2010-01-26  Jim Meyering  <meyering@redhat.com>
16492
16493         test-userspec.c: avoid compiler warnings
16494         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
16495         and "initialization discards qualifiers..." warnings.
16496         Put the first "uid" in its own scope, and make char* members "const".
16497
16498 2010-01-25  Bruno Haible  <bruno@clisp.org>
16499
16500         gnulib-tool: Make warning diagnostics consistent.
16501         * gnulib-tool (func_warning): New function.
16502         Use it everywhere where gnulib-tool produces output to stderr and it is
16503         not a fatal error.
16504
16505 2010-01-25  Bruno Haible  <bruno@clisp.org>
16506
16507         Fix test dependencies.
16508         * modules/xstrtol-tests (Depends-on): Add inttypes.
16509         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
16510
16511 2010-01-25 Pádraig Brady <P@draigBrady.com>
16512
16513         syntax-check: detect incorrect boolean macro values in config.h
16514         * modules/maintainer-makefile (configure.ac): Parameterize the location
16515         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
16516         The logic is from Eric Blake and the location indicated by Jim Meyering.
16517         Note the more natural CONFIG_HEADER name is prohibited by automake
16518         for backwards compatibility reasons.
16519         * top/maint.mk (sc_Wundef_boolean): New rule.
16520
16521 2010-01-25  Jim Meyering  <meyering@redhat.com>
16522
16523         bootstrap: detect MacOS 10.6's shasum, too
16524         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
16525         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
16526
16527 2010-01-23  Jim Meyering  <meyering@redhat.com>
16528
16529         xstrtoll: new module
16530         * modules/xstrtoll: New file.
16531         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
16532         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
16533         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
16534         ./configure fails if you use this module and lack "long long".
16535         * modules/xstrtoll-tests: New module.
16536         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
16537         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
16538         new init.sh-based test framework.
16539
16540 2010-01-24  Bruno Haible  <bruno@clisp.org>
16541
16542         Tests for module 'yn'.
16543         * modules/yn-tests: New file.
16544         * tests/test-yn.c: New file.
16545
16546         Tests for module 'y1'.
16547         * modules/y1-tests: New file.
16548         * tests/test-y1.c: New file.
16549
16550         Tests for module 'y0'.
16551         * modules/y0-tests: New file.
16552         * tests/test-y0.c: New file.
16553
16554         Tests for module 'tanh'.
16555         * modules/tanh-tests: New file.
16556         * tests/test-tanh.c: New file.
16557
16558         Tests for module 'tan'.
16559         * modules/tan-tests: New file.
16560         * tests/test-tan.c: New file.
16561
16562         Tests for module 'sqrt'.
16563         * modules/sqrt-tests: New file.
16564         * tests/test-sqrt.c: New file.
16565
16566         Tests for module 'sinh'.
16567         * modules/sinh-tests: New file.
16568         * tests/test-sinh.c: New file.
16569
16570         Tests for module 'sin'.
16571         * modules/sin-tests: New file.
16572         * tests/test-sin.c: New file.
16573
16574         Tests for module 'rint'.
16575         * modules/rint-tests: New file.
16576         * tests/test-rint.c: New file.
16577
16578         Tests for module 'remainder'.
16579         * modules/remainder-tests: New file.
16580         * tests/test-remainder.c: New file.
16581
16582         Tests for module 'pow'.
16583         * modules/pow-tests: New file.
16584         * tests/test-pow.c: New file.
16585
16586         Tests for module 'nextafter'.
16587         * modules/nextafter-tests: New file.
16588         * tests/test-nextafter.c: New file.
16589
16590         Tests for module 'modf'.
16591         * modules/modf-tests: New file.
16592         * tests/test-modf.c: New file.
16593
16594         Tests for module 'logb'.
16595         * modules/logb-tests: New file.
16596         * tests/test-logb.c: New file.
16597
16598         Tests for module 'log1p'.
16599         * modules/log1p-tests: New file.
16600         * tests/test-log1p.c: New file.
16601
16602         Tests for module 'log10'.
16603         * modules/log10-tests: New file.
16604         * tests/test-log10.c: New file.
16605
16606         Tests for module 'log'.
16607         * modules/log-tests: New file.
16608         * tests/test-log.c: New file.
16609
16610         Tests for module 'lgamma'.
16611         * modules/lgamma-tests: New file.
16612         * tests/test-lgamma.c: New file.
16613
16614         Tests for module 'ldexp'.
16615         * modules/ldexp-tests: New file.
16616         * tests/test-ldexp.c: New file.
16617
16618         Tests for module 'jn'.
16619         * modules/jn-tests: New file.
16620         * tests/test-jn.c: New file.
16621
16622         Tests for module 'j1'.
16623         * modules/j1-tests: New file.
16624         * tests/test-j1.c: New file.
16625
16626         Tests for module 'j0'.
16627         * modules/j0-tests: New file.
16628         * tests/test-j0.c: New file.
16629
16630         Tests for module 'hypot'.
16631         * modules/hypot-tests: New file.
16632         * tests/test-hypot.c: New file.
16633
16634         Tests for module 'fmod'.
16635         * modules/fmod-tests: New file.
16636         * tests/test-fmod.c: New file.
16637
16638         Tests for module 'fabs'.
16639         * modules/fabs-tests: New file.
16640         * tests/test-fabs.c: New file.
16641
16642         Tests for module 'exp'.
16643         * modules/exp-tests: New file.
16644         * tests/test-exp.c: New file.
16645
16646         Tests for module 'erfc'.
16647         * modules/erfc-tests: New file.
16648         * tests/test-erfc.c: New file.
16649
16650         Tests for module 'erf'.
16651         * modules/erf-tests: New file.
16652         * tests/test-erf.c: New file.
16653
16654         Tests for module 'cosh'.
16655         * modules/cosh-tests: New file.
16656         * tests/test-cosh.c: New file.
16657
16658         Tests for module 'cos'.
16659         * modules/cos-tests: New file.
16660         * tests/test-cos.c: New file.
16661
16662         Tests for module 'copysign'.
16663         * modules/copysign-tests: New file.
16664         * tests/test-copysign.c: New file.
16665
16666         Tests for module 'cbrt'.
16667         * modules/cbrt-tests: New file.
16668         * tests/test-cbrt.c: New file.
16669
16670         Tests for module 'atan2'.
16671         * modules/atan2-tests: New file.
16672         * tests/test-atan2.c: New file.
16673
16674         Tests for module 'atan'.
16675         * modules/atan-tests: New file.
16676         * tests/test-atan.c: New file.
16677
16678         Tests for module 'asin'.
16679         * modules/asin-tests: New file.
16680         * tests/test-asin.c: New file.
16681
16682         Tests for module 'acos'.
16683         * modules/acos-tests: New file.
16684         * tests/test-acos.c: New file.
16685
16686 2010-01-24  Bruno Haible  <bruno@clisp.org>
16687
16688         Fix tests for common <math.h> functions.
16689         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16690         code snippet that references the function pointer, rather than merely
16691         calling the function. Substitute the FUNC_LIBM variable.
16692         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16693         * modules/acos (configure.ac): Likewise.
16694         * modules/asin (configure.ac): Likewise.
16695         * modules/atan (configure.ac): Likewise.
16696         * modules/atan2 (configure.ac): Likewise.
16697         * modules/cbrt (configure.ac): Likewise.
16698         * modules/copysign (configure.ac): Likewise.
16699         * modules/cos (configure.ac): Likewise.
16700         * modules/cosh (configure.ac): Likewise.
16701         * modules/erf (configure.ac): Likewise.
16702         * modules/erfc (configure.ac): Likewise.
16703         * modules/exp (configure.ac): Likewise.
16704         * modules/fabs (configure.ac): Likewise.
16705         * modules/fmod (configure.ac): Likewise.
16706         * modules/hypot (configure.ac): Likewise.
16707         * modules/j0 (configure.ac): Likewise.
16708         * modules/j1 (configure.ac): Likewise.
16709         * modules/jn (configure.ac): Likewise.
16710         * modules/ldexp (configure.ac): Likewise.
16711         * modules/lgamma (configure.ac): Likewise.
16712         * modules/log (configure.ac): Likewise.
16713         * modules/log10 (configure.ac): Likewise.
16714         * modules/log1p (configure.ac): Likewise.
16715         * modules/logb (configure.ac): Likewise.
16716         * modules/modf (configure.ac): Likewise.
16717         * modules/nextafter (configure.ac): Likewise.
16718         * modules/pow (configure.ac): Likewise.
16719         * modules/remainder (configure.ac): Likewise.
16720         * modules/rint (configure.ac): Likewise.
16721         * modules/sin (configure.ac): Likewise.
16722         * modules/sinh (configure.ac): Likewise.
16723         * modules/tan (configure.ac): Likewise.
16724         * modules/tanh (configure.ac): Likewise.
16725         * modules/y0 (configure.ac): Likewise.
16726         * modules/y1 (configure.ac): Likewise.
16727         * modules/yn (configure.ac): Likewise.
16728
16729 2010-01-24  Bruno Haible  <bruno@clisp.org>
16730
16731         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16732         * tests/test-acosl.c (x): New variable.
16733         (main): Store argument in x and fetch it from x.
16734         * tests/test-asinl.c (x): New variable.
16735         (main): Store argument in x and fetch it from x.
16736         * tests/test-atanl.c (x): New variable.
16737         (main): Store argument in x and fetch it from x.
16738         * tests/test-cosl.c (x): New variable.
16739         (main): Store argument in x and fetch it from x.
16740         * tests/test-expl.c (x): New variable.
16741         (main): Store argument in x and fetch it from x.
16742         * tests/test-logl.c (x): New variable.
16743         (main): Store argument in x and fetch it from x.
16744         * tests/test-sinl.c (x): New variable.
16745         (main): Store argument in x and fetch it from x.
16746         * tests/test-sqrtl.c (x): New variable.
16747         (main): Store argument in x and fetch it from x.
16748         * tests/test-tanl.c (x): New variable.
16749         (main): Store argument in x and fetch it from x.
16750
16751 2010-01-24  Bruno Haible  <bruno@clisp.org>
16752
16753         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16754         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16755         assignments to the initial TESTS_ENVIRONMENT.
16756         * doc/gnulib.texi (Unit test modules): Document it.
16757         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16758         TESTS_ENVIRONMENT.
16759         * modules/btowc-tests (Makefile.am): Likewise.
16760         * modules/c-stack-tests (Makefile.am): Likewise.
16761         * modules/c-strcase-tests (Makefile.am): Likewise.
16762         * modules/copy-file-tests (Makefile.am): Likewise.
16763         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16764         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16765         * modules/mbrtowc-tests (Makefile.am): Likewise.
16766         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16767         * modules/mbscasestr-tests (Makefile.am): Likewise.
16768         * modules/mbschr-tests (Makefile.am): Likewise.
16769         * modules/mbscspn-tests (Makefile.am): Likewise.
16770         * modules/mbsinit-tests (Makefile.am): Likewise.
16771         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16772         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16773         * modules/mbspbrk-tests (Makefile.am): Likewise.
16774         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16775         * modules/mbsrchr-tests (Makefile.am): Likewise.
16776         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16777         * modules/mbsspn-tests (Makefile.am): Likewise.
16778         * modules/mbsstr-tests (Makefile.am): Likewise.
16779         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16780         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16781         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16782         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16783         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16784         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16785         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16786         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16787         * modules/wcrtomb-tests (Makefile.am): Likewise.
16788         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16789         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16790         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16791         assignments from TESTS_ENVIRONMENT.
16792         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16793         augmentation.
16794         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16795         * modules/atexit-tests (Makefile.am): Likewise.
16796         * modules/binary-io-tests (Makefile.am): Likewise.
16797         * modules/closein-tests (Makefile.am): Likewise.
16798         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16799         * modules/exclude-tests (Makefile.am): Likewise.
16800         * modules/fflush-tests (Makefile.am): Likewise.
16801         * modules/fpending-tests (Makefile.am): Likewise.
16802         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16803         * modules/freadahead-tests (Makefile.am): Likewise.
16804         * modules/freadptr-tests (Makefile.am): Likewise.
16805         * modules/freadseek-tests (Makefile.am): Likewise.
16806         * modules/fseek-tests (Makefile.am): Likewise.
16807         * modules/fseeko-tests (Makefile.am): Likewise.
16808         * modules/ftell-tests (Makefile.am): Likewise.
16809         * modules/ftello-tests (Makefile.am): Likewise.
16810         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16811         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16812         * modules/lseek-tests (Makefile.am): Likewise.
16813         * modules/parse-duration-tests (Makefile.am): Likewise.
16814         * modules/perror-tests (Makefile.am): Likewise.
16815         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16816         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16817         * modules/pipe-tests (Makefile.am): Likewise.
16818         * modules/pread-tests (Makefile.am): Likewise.
16819         * modules/printf-posix-tests (Makefile.am): Likewise.
16820         * modules/select-tests (Makefile.am): Likewise.
16821         * modules/sigpipe-tests (Makefile.am): Likewise.
16822         * modules/tsearch-tests (Makefile.am): Likewise.
16823         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16824         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16825         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16826         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16827         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16828         * modules/version-etc-tests (Makefile.am): Likewise.
16829         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16830         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16831         * modules/xalloc-die-tests (Makefile.am): Likewise.
16832         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16833         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16834         * modules/xstrtol-tests (Makefile.am): Likewise.
16835         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16836         * modules/yesno-tests (Makefile.am): Likewise.
16837         Suggested by Jim Meyering.
16838
16839 2010-01-24  Bruno Haible  <bruno@clisp.org>
16840
16841         More documentation.
16842         * doc/gnulib.texi (Writing modules): New chapter.
16843         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16844         the new chapter.
16845
16846 2010-01-24  Jim Meyering  <meyering@redhat.com>
16847
16848         maint.mk: do not prepend "./" after filtering
16849         * top/maint.mk (_prepend_srcdir_prefix): New variable
16850         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16851         "./" when $(srcdir) is ".".
16852
16853         define STREQ(a,b) consistently, removing useless parentheses
16854         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16855         since the only risk is that "a" or "b" contains an unparenthesized
16856         comma, but if either did that, STREQ would have 3 or more arguments.
16857         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16858         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16859         * lib/hash-triple.c (STREQ): Likewise.
16860         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16861         * lib/getugroups.c (STREQ): Likewise.
16862
16863 2010-01-23  Jim Meyering  <meyering@redhat.com>
16864
16865         maint.mk: fix syntax-check in a non-srcdir build directory
16866         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16867         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16868
16869 2010-01-22  Jim Meyering  <meyering@redhat.com>
16870
16871         userspec: add unit tests
16872         * tests/test-userspec.c: New file.
16873         * modules/userspec-tests: Likewise.
16874
16875 2010-01-21  Jim Meyering  <meyering@redhat.com>
16876
16877         maint.mk: handle source file names containing "." robustly
16878         * top/maint.mk (_dot_escaped_srcdir): Define.
16879         (VC_LIST): Use it in LHS of sed substitution.
16880
16881 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16882
16883         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16884         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16885         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16886         from a non-srcdir build.
16887
16888 2010-01-20  Eric Blake  <ebb9@byu.net>
16889
16890         warn-on-use: use instead of link-warning
16891         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16892         * modules/unistd (Depends-on, Makefile.am): Likewise.
16893         * modules/arpa_inet (Depends-on): Replace link-warning with
16894         warn-on-use.
16895         (Makefile.am): Update rules accordingly.
16896         * modules/ctype (Depends-on, Makefile.am): Likewise.
16897         * modules/dirent (Depends-on, Makefile.am): Likewise.
16898         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16899         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16900         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16901         * modules/locale (Depends-on, Makefile.am): Likewise.
16902         * modules/math (Depends-on, Makefile.am): Likewise.
16903         * modules/search (Depends-on, Makefile.am): Likewise.
16904         * modules/signal (Depends-on, Makefile.am): Likewise.
16905         * modules/spawn (Depends-on, Makefile.am): Likewise.
16906         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16907         * modules/string (Depends-on, Makefile.am): Likewise.
16908         * modules/strings (Depends-on, Makefile.am): Likewise.
16909         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16910         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16911         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16912         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16913         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16914         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16915         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16916         * modules/wchar (Depends-on, Makefile.am): Likewise.
16917         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16918         should be poisoned.
16919         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16920         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16921         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16922         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16923         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16924         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16925         * m4/math_h.m4 (gl_MATH_H): Likewise.
16926         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16927         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16928         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16929         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16930         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16931         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16932         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16933         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16934         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16935         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16936         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16938         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16939         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16940         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16941         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16942         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16943         GL_LINK_WARNING.
16944         * lib/ctype.in.h: Likewise.
16945         * lib/dirent.in.h: Likewise.
16946         * lib/fcntl.in.h: Likewise.
16947         * lib/inttypes.in.h: Likewise.
16948         * lib/langinfo.in.h: Likewise.
16949         * lib/locale.in.h: Likewise.
16950         * lib/math.in.h: Likewise.
16951         * lib/search.in.h: Likewise.
16952         * lib/signal.in.h: Likewise.
16953         * lib/spawn.in.h: Likewise.
16954         * lib/stdio.in.h: Likewise.
16955         * lib/stdlib.in.h: Likewise.
16956         * lib/string.in.h: Likewise.
16957         * lib/strings.in.h: Likewise.
16958         * lib/sys_file.in.h: Likewise.
16959         * lib/sys_ioctl.in.h: Likewise.
16960         * lib/sys_select.in.h: Likewise.
16961         * lib/sys_socket.in.h: Likewise.
16962         * lib/sys_stat.in.h: Likewise.
16963         * lib/sys_times.in.h: Likewise.
16964         * lib/sys_utsname.in.h: Likewise.
16965         * lib/unistd.in.h: Likewise.
16966         * lib/wchar.in.h: Likewise.
16967
16968 2010-01-20  Bruno Haible  <bruno@clisp.org>
16969
16970         Avoid duplicate -lm.
16971         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16972         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16973         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16974         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16975         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16976         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16977         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16978         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16979         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16980         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16981         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16982         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16983         Reported by Paolo Bonzini.
16984
16985 2010-01-19  Bruno Haible  <bruno@clisp.org>
16986
16987         langinfo, nl_langinfo: Relicense under LGPLv2+.
16988         * modules/langinfo (License): Change to LGPLv2+.
16989         * modules/nl_langinfo (License): Likewise.
16990         Patch by David Lutterkort <lutter@redhat.com>.
16991
16992 2010-01-19  Bruno Haible  <bruno@clisp.org>
16993
16994         Avoid compilation error with cc on OSF/1 5.1.
16995         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16996         statement, not before.
16997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16998
16999 2010-01-18  Bruno Haible  <bruno@clisp.org>
17000
17001         Avoid a link error due to the __printf__ symbol.
17002         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17003         and 2.6.x.
17004         (__format__, __printf__): Remove definitions.
17005         * lib/argp-fmtstream.h: Likewise.
17006         * lib/argp.h: Likewise.
17007         * lib/error.h: Likewise.
17008         * lib/vasnprintf.h: Likewise.
17009         * lib/xprintf.h: Likewise.
17010         * lib/xvasprintf.h: Likewise.
17011         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17012
17013 2010-01-18  Bruno Haible  <bruno@clisp.org>
17014
17015         Tests for module 'tanl'.
17016         * modules/tanl-tests: New file.
17017         * tests/test-tanl.c: New file.
17018
17019         Tests for module 'sqrtl'.
17020         * modules/sqrtl-tests: New file.
17021         * tests/test-sqrtl.c: New file.
17022
17023         Tests for module 'sinl'.
17024         * modules/sinl-tests: New file.
17025         * tests/test-sinl.c: New file.
17026
17027         Tests for module 'logl'.
17028         * modules/logl-tests: New file.
17029         * tests/test-logl.c: New file.
17030
17031         Tests for module 'expl'.
17032         * modules/expl-tests: New file.
17033         * tests/test-expl.c: New file.
17034
17035         Tests for module 'cosl'.
17036         * modules/cosl-tests: New file.
17037         * tests/test-cosl.c: New file.
17038
17039         Tests for module 'atanl'.
17040         * modules/atanl-tests: New file.
17041         * tests/test-atanl.c: New file.
17042
17043         Tests for module 'asinl'.
17044         * modules/asinl-tests: New file.
17045         * tests/test-asinl.c: New file.
17046
17047         Tests for module 'acosl'.
17048         * modules/acosl-tests: New file.
17049         * tests/test-acosl.c: New file.
17050
17051         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17052         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17053         tanl): Use the standard gnulib idiom.
17054         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17055         * lib/sinl.c: Likewise.
17056         * lib/tanl.c: Don't include trigl.c.
17057         (kernel_tanl): Make static.
17058         * lib/sincosl.c: Include trigl.h first.
17059         * lib/trigl.c: Likewise.
17060         * m4/acosl.m4: New file.
17061         * m4/asinl.m4: New file.
17062         * m4/atanl.m4: New file.
17063         * m4/cosl.m4: New file.
17064         * m4/expl.m4: New file.
17065         * m4/logl.m4: New file.
17066         * m4/sinl.m4: New file.
17067         * m4/sqrtl.m4: New file.
17068         * m4/tanl.m4: New file.
17069         * m4/mathl.m4: Remove file.
17070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17071         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17072         Don't initialize GNULIB_MATHL.
17073         * modules/acosl: New file.
17074         * modules/asinl: New file.
17075         * modules/atanl: New file.
17076         * modules/cosl: New file.
17077         * modules/expl: New file.
17078         * modules/logl: New file.
17079         * modules/sinl: New file.
17080         * modules/sqrtl: New file.
17081         * modules/tanl: New file.
17082         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17083         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17084         substitute GNULIB_MATHL.
17085         * modules/mathl: Rewritten.
17086         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17087         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17088         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17089         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17090         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17091         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17092         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17093         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17094         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17095
17096 2010-01-18  Bruno Haible  <bruno@clisp.org>
17097
17098         sqrt: Make gl_FUNC_SQRT requirable.
17099         * m4/sqrt.m4: New file.
17100         * modules/sqrt (Files): Add it.
17101         (configure.ac): Invoke gl_FUNC_SQRT.
17102
17103 2010-01-18  Bruno Haible  <bruno@clisp.org>
17104
17105         New modules for common <math.h> functions.
17106         * m4/mathfunc.m4: New file.
17107         * modules/acos: New file.
17108         * modules/asin: New file.
17109         * modules/atan: New file.
17110         * modules/atan2: New file.
17111         * modules/cbrt: New file.
17112         * modules/copysign: New file.
17113         * modules/cos: New file.
17114         * modules/cosh: New file.
17115         * modules/erf: New file.
17116         * modules/erfc: New file.
17117         * modules/exp: New file.
17118         * modules/fabs: New file.
17119         * modules/fmod: New file.
17120         * modules/hypot: New file.
17121         * modules/j0: New file.
17122         * modules/j1: New file.
17123         * modules/jn: New file.
17124         * modules/ldexp: New file.
17125         * modules/lgamma: New file.
17126         * modules/log: New file.
17127         * modules/log10: New file.
17128         * modules/log1p: New file.
17129         * modules/logb: New file.
17130         * modules/modf: New file.
17131         * modules/nextafter: New file.
17132         * modules/pow: New file.
17133         * modules/remainder: New file.
17134         * modules/rint: New file.
17135         * modules/sin: New file.
17136         * modules/sinh: New file.
17137         * modules/sqrt: New file.
17138         * modules/tan: New file.
17139         * modules/tanh: New file.
17140         * modules/y0: New file.
17141         * modules/y1: New file.
17142         * modules/yn: New file.
17143         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17144         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17145         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17146         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17147         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17148         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17149         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17150         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17151         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17152         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17153         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17154         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17155         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17156         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17157         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17158         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17159         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17160         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17161         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17162         * doc/posix-functions/log.texi: Mention the 'log' module.
17163         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17164         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17165         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17166         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17167         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17168         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17169         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17170         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17171         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17172         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17173         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17174         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17175         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17176         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17177         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17178         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17179
17180 2010-01-18  Jim Meyering  <meyering@redhat.com>
17181
17182         ignore-value: relax license to LGPLv2+
17183         * modules/ignore-value (License): Relax to LGPLv2+.
17184
17185         getdate: don't leak when TZ contains two or more '"'s
17186         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17187         double quote in TZ after the first one.
17188
17189         readtokens: do not leak internal token_lengths buffer
17190         * lib/readtokens.c (readtokens): Free the local, lengths,
17191         when the supplied "token_lengths" parameter is NULL.
17192
17193 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17194
17195         Fix a couple of missing LIBTHREAD link failures on AIX.
17196         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17197         $(LIBTHREAD).
17198         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17199
17200         Link test-poll against INET_PTON_LIB.
17201         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17202         for inet_pton on Solaris 10.
17203
17204 2010-01-17  Bruno Haible  <bruno@clisp.org>
17205
17206         unistdio/*-sprintf: Fix typo in module description.
17207         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17208         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17209         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17210         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17211         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17212         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17213         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17215
17216 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17217
17218         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17219         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17220         variables in shell case patterns, for AIX and HP-UX ksh.
17221
17222         Split large sed scripts, for HP-UX sed.
17223         * modules/stdio: Split sed scripts around 50 sed commands,
17224         to avoid HP-UX limit of 99 commands, in the near future.
17225         * modules/string: Likewise.
17226         * modules/unistd: Likewise.
17227
17228         gnulib-tool: avoid writing in the current directory.
17229         * gnulib-tool (func_emit_lib_Makefile_am)
17230         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17231         not in the current directory, so concurrent gnulib-tool
17232         instances do not interfere.
17233
17234 2010-01-16  Jim Meyering  <meyering@redhat.com>
17235
17236         doc: update users.txt
17237         * users.txt: Add grep.
17238         (diffutils, gzip): Update URLs.
17239
17240 2010-01-12  Bruno Haible  <bruno@clisp.org>
17241
17242         posix_spawn: Avoid test failure on Cygwin.
17243         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17244         characters.
17245         Reported by Simon Josefsson.
17246
17247 2010-01-12  Bruno Haible  <bruno@clisp.org>
17248
17249         * tests/test-cond.c (main): When skipping the test, show the reason.
17250
17251 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17252
17253         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17254
17255 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17256
17257         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17258         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17259
17260 2010-01-12  Eric Blake  <ebb9@byu.net>
17261
17262         build: guarantee AS_VAR_IF
17263         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17264         (gl_AS_VAR_IF): Move...
17265         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17266         Reported by Simon Josefsson.
17267
17268 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17269
17270         * lib/stdio.in.h: Fix typo.
17271
17272 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17273
17274         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17275         libgpg-error.
17276
17277 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17278
17279         * tests/test-xalloc-die.sh: Use $EXEEXT.
17280
17281 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17282             Bruno Haible  <bruno@clisp.org>
17283
17284         getlogin, getlogin_r: Avoid test failure.
17285         * tests/test-getlogin.c: Include <stdio.h>.
17286         (main): Skip the test when the function fails because stdin is not a
17287         tty.
17288         * tests/test-getlogin_r.c: Include <stdio.h>.
17289         (main): Skip the test when the function fails because stdin is not a
17290         tty.
17291
17292 2010-01-11  Eric Blake  <ebb9@byu.net>
17293
17294         tests: avoid more large file warnings
17295         * tests/test-fflush.c: Avoid warning about ftell use.
17296         * tests/test-fseek.c: Avoid warning about fseek use.
17297
17298 2010-01-10  Bruno Haible  <bruno@clisp.org>
17299
17300         nproc: Work better on Linux when /proc and /sys are not mounted.
17301         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17302         as lower bound when, on glibc/Linux systems,
17303         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17304         Suggested by Pádraig Brady <P@draigbrady.com>.
17305         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17306
17307         nproc: Refactor.
17308         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17309         extracted from num_processors.
17310         (num_processors): Call it.
17311
17312 2010-01-11  Jim Meyering  <meyering@redhat.com>
17313
17314         utimecmp: avoid new warning from upcoming gcc-4.5.0
17315         * lib/utimecmp.c (BILLION): Define using #define rather than an
17316         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17317
17318 2010-01-11  Eric Blake  <ebb9@byu.net>
17319
17320         math: add portability warnings for classification macros
17321         * modules/math (Depends-on): Add warn-on-use.
17322         (Makefile.am): Provide new substitutions.
17323         * m4/math_h.m4 (gl_MATH_H): Require inline.
17324         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17325         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17326         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17327         implement warnings.
17328
17329         unistd: warn on use of environ without module
17330         * modules/unistd (Depends-on): Add warn-on-use.
17331         (Makefile.am): Provide new substitutions.
17332         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17333         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17334
17335         stdio: warn on suspicious uses
17336         * modules/stdio (Depends-on): Add warn-on-use.
17337         (Makefile.am): Provide new substitutions.
17338         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17339         fseeko.
17340         * lib/stdio.in.h (gets): Always warn on use.
17341         (fseek, ftell): Adjust when warnings are issued, and honor
17342         _GL_NO_LARGE_FILES as a way to silence the warning.
17343         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
17344         any warning about large file offsets.
17345         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
17346         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
17347         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
17348         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
17349         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
17350         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
17351         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
17352         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
17353
17354         warn-on-use: new module
17355         * modules/warn-on-use: New file.
17356         * build-aux/warn-on-use.h: Likewise.
17357         * m4/warn-on-use.m4: Likewise.
17358         * MODULES.html.sh (Support for building): Mention it.
17359
17360 2010-01-10  Bruno Haible  <bruno@clisp.org>
17361
17362         Tests for module 'unistr/u32-strdup'.
17363         * modules/unistr/u32-strdup-tests: New file.
17364         * tests/unistr/test-u32-strdup.c: New file.
17365
17366         Tests for module 'unistr/u16-strdup'.
17367         * modules/unistr/u16-strdup-tests: New file.
17368         * tests/unistr/test-u16-strdup.c: New file.
17369
17370         Tests for module 'unistr/u8-strdup'.
17371         * modules/unistr/u8-strdup-tests: New file.
17372         * tests/unistr/test-u8-strdup.c: New file.
17373         * tests/unistr/test-strdup.h: New file.
17374
17375         Tests for module 'unistr/u32-strncmp'.
17376         * modules/unistr/u32-strncmp-tests: New file.
17377         * tests/unistr/test-u32-strncmp.c: New file.
17378
17379         Tests for module 'unistr/u16-strncmp'.
17380         * modules/unistr/u16-strncmp-tests: New file.
17381         * tests/unistr/test-u16-strncmp.c: New file.
17382
17383         Tests for module 'unistr/u8-strncmp'.
17384         * modules/unistr/u8-strncmp-tests: New file.
17385         * tests/unistr/test-u8-strncmp.c: New file.
17386         * tests/unistr/test-strncmp.h: New file.
17387
17388         Tests for module 'unistr/u32-strcoll'.
17389         * modules/unistr/u32-strcoll-tests: New file.
17390         * tests/unistr/test-u32-strcoll.c: New file.
17391
17392         Tests for module 'unistr/u16-strcoll'.
17393         * modules/unistr/u16-strcoll-tests: New file.
17394         * tests/unistr/test-u16-strcoll.c: New file.
17395
17396         Tests for module 'unistr/u8-strcoll'.
17397         * modules/unistr/u8-strcoll-tests: New file.
17398         * tests/unistr/test-u8-strcoll.c: New file.
17399
17400         Tests for module 'unistr/u32-strcmp'.
17401         * modules/unistr/u32-strcmp-tests: New file.
17402         * tests/unistr/test-u32-strcmp.c: New file.
17403         * tests/unistr/test-u32-strcmp.h: New file.
17404
17405         Tests for module 'unistr/u16-strcmp'.
17406         * modules/unistr/u16-strcmp-tests: New file.
17407         * tests/unistr/test-u16-strcmp.c: New file.
17408         * tests/unistr/test-u16-strcmp.h: New file.
17409
17410         Tests for module 'unistr/u8-strcmp'.
17411         * modules/unistr/u8-strcmp-tests: New file.
17412         * tests/unistr/test-u8-strcmp.c: New file.
17413         * tests/unistr/test-u8-strcmp.h: New file.
17414         * tests/unistr/test-strcmp.h: New file.
17415
17416         Tests for module 'unistr/u32-strncat'.
17417         * modules/unistr/u32-strncat-tests: New file.
17418         * tests/unistr/test-u32-strncat.c: New file.
17419
17420         Tests for module 'unistr/u16-strncat'.
17421         * modules/unistr/u16-strncat-tests: New file.
17422         * tests/unistr/test-u16-strncat.c: New file.
17423
17424         Tests for module 'unistr/u8-strncat'.
17425         * modules/unistr/u8-strncat-tests: New file.
17426         * tests/unistr/test-u8-strncat.c: New file.
17427         * tests/unistr/test-strncat.h: New file.
17428
17429         Tests for module 'unistr/u32-strcat'.
17430         * modules/unistr/u32-strcat-tests: New file.
17431         * tests/unistr/test-u32-strcat.c: New file.
17432
17433         Tests for module 'unistr/u16-strcat'.
17434         * modules/unistr/u16-strcat-tests: New file.
17435         * tests/unistr/test-u16-strcat.c: New file.
17436
17437         Tests for module 'unistr/u8-strcat'.
17438         * modules/unistr/u8-strcat-tests: New file.
17439         * tests/unistr/test-u8-strcat.c: New file.
17440         * tests/unistr/test-strcat.h: New file.
17441
17442         Tests for module 'unistr/u32-stpncpy'.
17443         * modules/unistr/u32-stpncpy-tests: New file.
17444         * tests/unistr/test-u32-stpncpy.c: New file.
17445
17446         Tests for module 'unistr/u16-stpncpy'.
17447         * modules/unistr/u16-stpncpy-tests: New file.
17448         * tests/unistr/test-u16-stpncpy.c: New file.
17449
17450         Tests for module 'unistr/u8-stpncpy'.
17451         * modules/unistr/u8-stpncpy-tests: New file.
17452         * tests/unistr/test-u8-stpncpy.c: New file.
17453         * tests/unistr/test-stpncpy.h: New file.
17454
17455         Tests for module 'unistr/u32-strncpy'.
17456         * modules/unistr/u32-strncpy-tests: New file.
17457         * tests/unistr/test-u32-strncpy.c: New file.
17458
17459         Tests for module 'unistr/u16-strncpy'.
17460         * modules/unistr/u16-strncpy-tests: New file.
17461         * tests/unistr/test-u16-strncpy.c: New file.
17462
17463         Tests for module 'unistr/u8-strncpy'.
17464         * modules/unistr/u8-strncpy-tests: New file.
17465         * tests/unistr/test-u8-strncpy.c: New file.
17466         * tests/unistr/test-strncpy.h: New file.
17467
17468         Tests for module 'unistr/u32-stpcpy'.
17469         * modules/unistr/u32-stpcpy-tests: New file.
17470         * tests/unistr/test-u32-stpcpy.c: New file.
17471
17472         Tests for module 'unistr/u16-stpcpy'.
17473         * modules/unistr/u16-stpcpy-tests: New file.
17474         * tests/unistr/test-u16-stpcpy.c: New file.
17475
17476         Tests for module 'unistr/u8-stpcpy'.
17477         * modules/unistr/u8-stpcpy-tests: New file.
17478         * tests/unistr/test-u8-stpcpy.c: New file.
17479         * tests/unistr/test-stpcpy.h: New file.
17480
17481         Tests for module 'unistr/u32-strcpy'.
17482         * modules/unistr/u32-strcpy-tests: New file.
17483         * tests/unistr/test-u32-strcpy.c: New file.
17484
17485         Tests for module 'unistr/u16-strcpy'.
17486         * modules/unistr/u16-strcpy-tests: New file.
17487         * tests/unistr/test-u16-strcpy.c: New file.
17488
17489         Tests for module 'unistr/u8-strcpy'.
17490         * modules/unistr/u8-strcpy-tests: New file.
17491         * tests/unistr/test-u8-strcpy.c: New file.
17492         * tests/unistr/test-strcpy.h: New file.
17493
17494         Tests for module 'unistr/u32-strnlen'.
17495         * modules/unistr/u32-strnlen-tests: New file.
17496         * tests/unistr/test-u32-strnlen.c: New file.
17497
17498         Tests for module 'unistr/u16-strnlen'.
17499         * modules/unistr/u16-strnlen-tests: New file.
17500         * tests/unistr/test-u16-strnlen.c: New file.
17501
17502         Tests for module 'unistr/u8-strnlen'.
17503         * modules/unistr/u8-strnlen-tests: New file.
17504         * tests/unistr/test-u8-strnlen.c: New file.
17505         * tests/unistr/test-strnlen.h: New file.
17506
17507         Tests for module 'unistr/u32-strlen'.
17508         * modules/unistr/u32-strlen-tests: New file.
17509         * tests/unistr/test-u32-strlen.c: New file.
17510
17511         Tests for module 'unistr/u16-strlen'.
17512         * modules/unistr/u16-strlen-tests: New file.
17513         * tests/unistr/test-u16-strlen.c: New file.
17514
17515         Tests for module 'unistr/u8-strlen'.
17516         * modules/unistr/u8-strlen-tests: New file.
17517         * tests/unistr/test-u8-strlen.c: New file.
17518
17519         Tests for module 'unistr/u32-prev'.
17520         * modules/unistr/u32-prev-tests: New file.
17521         * tests/unistr/test-u32-prev.c: New file.
17522
17523         Tests for module 'unistr/u16-prev'.
17524         * modules/unistr/u16-prev-tests: New file.
17525         * tests/unistr/test-u16-prev.c: New file.
17526
17527         Tests for module 'unistr/u8-prev'.
17528         * modules/unistr/u8-prev-tests: New file.
17529         * tests/unistr/test-u8-prev.c: New file.
17530
17531         Tests for module 'unistr/u32-next'.
17532         * modules/unistr/u32-next-tests: New file.
17533         * tests/unistr/test-u32-next.c: New file.
17534
17535         Tests for module 'unistr/u16-next'.
17536         * modules/unistr/u16-next-tests: New file.
17537         * tests/unistr/test-u16-next.c: New file.
17538
17539         Tests for module 'unistr/u8-next'.
17540         * modules/unistr/u8-next-tests: New file.
17541         * tests/unistr/test-u8-next.c: New file.
17542
17543         Tests for module 'unistr/u32-strmbtouc'.
17544         * modules/unistr/u32-strmbtouc-tests: New file.
17545         * tests/unistr/test-u32-strmbtouc.c: New file.
17546
17547         Tests for module 'unistr/u16-strmbtouc'.
17548         * modules/unistr/u16-strmbtouc-tests: New file.
17549         * tests/unistr/test-u16-strmbtouc.c: New file.
17550
17551         Tests for module 'unistr/u8-strmbtouc'.
17552         * modules/unistr/u8-strmbtouc-tests: New file.
17553         * tests/unistr/test-u8-strmbtouc.c: New file.
17554
17555         Tests for module 'unistr/u32-strmblen'.
17556         * modules/unistr/u32-strmblen-tests: New file.
17557         * tests/unistr/test-u32-strmblen.c: New file.
17558
17559         Tests for module 'unistr/u16-strmblen'.
17560         * modules/unistr/u16-strmblen-tests: New file.
17561         * tests/unistr/test-u16-strmblen.c: New file.
17562
17563         Tests for module 'unistr/u8-strmblen'.
17564         * modules/unistr/u8-strmblen-tests: New file.
17565         * tests/unistr/test-u8-strmblen.c: New file.
17566
17567         Tests for module 'unistr/u32-cpy-alloc'.
17568         * modules/unistr/u32-cpy-alloc-tests: New file.
17569         * tests/unistr/test-u32-cpy-alloc.c: New file.
17570
17571         Tests for module 'unistr/u16-cpy-alloc'.
17572         * modules/unistr/u16-cpy-alloc-tests: New file.
17573         * tests/unistr/test-u16-cpy-alloc.c: New file.
17574
17575         Tests for module 'unistr/u8-cpy-alloc'.
17576         * modules/unistr/u8-cpy-alloc-tests: New file.
17577         * tests/unistr/test-u8-cpy-alloc.c: New file.
17578         * tests/unistr/test-cpy-alloc.h: New file.
17579
17580         Tests for module 'unistr/u32-mbsnlen'.
17581         * modules/unistr/u32-mbsnlen-tests: New file.
17582         * tests/unistr/test-u32-mbsnlen.c: New file.
17583
17584         Tests for module 'unistr/u16-mbsnlen'.
17585         * modules/unistr/u16-mbsnlen-tests: New file.
17586         * tests/unistr/test-u16-mbsnlen.c: New file.
17587
17588         Tests for module 'unistr/u8-mbsnlen'.
17589         * modules/unistr/u8-mbsnlen-tests: New file.
17590         * tests/unistr/test-u8-mbsnlen.c: New file.
17591
17592         Tests for module 'unistr/u32-chr'.
17593         * modules/unistr/u32-chr-tests: New file.
17594         * tests/unistr/test-u32-chr.c: New file.
17595
17596         Tests for module 'unistr/u16-chr'.
17597         * modules/unistr/u16-chr-tests: New file.
17598         * tests/unistr/test-u16-chr.c: New file.
17599
17600         Tests for module 'unistr/u8-chr'.
17601         * modules/unistr/u8-chr-tests: New file.
17602         * tests/unistr/test-u8-chr.c: New file.
17603         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17604
17605         Tests for module 'unistr/u32-cmp2'.
17606         * modules/unistr/u32-cmp2-tests: New file.
17607         * tests/unistr/test-u32-cmp2.c: New file.
17608
17609         Tests for module 'unistr/u16-cmp2'.
17610         * modules/unistr/u16-cmp2-tests: New file.
17611         * tests/unistr/test-u16-cmp2.c: New file.
17612
17613         Tests for module 'unistr/u8-cmp2'.
17614         * modules/unistr/u8-cmp2-tests: New file.
17615         * tests/unistr/test-u8-cmp2.c: New file.
17616         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17617
17618         Tests for module 'unistr/u32-cmp'.
17619         * modules/unistr/u32-cmp-tests: New file.
17620         * tests/unistr/test-u32-cmp.c: New file.
17621
17622         Tests for module 'unistr/u16-cmp'.
17623         * modules/unistr/u16-cmp-tests: New file.
17624         * tests/unistr/test-u16-cmp.c: New file.
17625
17626         Tests for module 'unistr/u8-cmp'.
17627         * modules/unistr/u8-cmp-tests: New file.
17628         * tests/unistr/test-u8-cmp.c: New file.
17629         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17630
17631         Tests for module 'unistr/u32-set'.
17632         * modules/unistr/u32-set-tests: New file.
17633         * tests/unistr/test-u32-set.c: New file.
17634
17635         Tests for module 'unistr/u16-set'.
17636         * modules/unistr/u16-set-tests: New file.
17637         * tests/unistr/test-u16-set.c: New file.
17638
17639         Tests for module 'unistr/u8-set'.
17640         * modules/unistr/u8-set-tests: New file.
17641         * tests/unistr/test-u8-set.c: New file.
17642         * tests/unistr/test-set.h: New file.
17643
17644         Tests for module 'unistr/u32-move'.
17645         * modules/unistr/u32-move-tests: New file.
17646         * tests/unistr/test-u32-move.c: New file.
17647
17648         Tests for module 'unistr/u16-move'.
17649         * modules/unistr/u16-move-tests: New file.
17650         * tests/unistr/test-u16-move.c: New file.
17651
17652         Tests for module 'unistr/u8-move'.
17653         * modules/unistr/u8-move-tests: New file.
17654         * tests/unistr/test-u8-move.c: New file.
17655         * tests/unistr/test-move.h: New file.
17656
17657         Tests for module 'unistr/u32-cpy'.
17658         * modules/unistr/u32-cpy-tests: New file.
17659         * tests/unistr/test-u32-cpy.c: New file.
17660
17661         Tests for module 'unistr/u16-cpy'.
17662         * modules/unistr/u16-cpy-tests: New file.
17663         * tests/unistr/test-u16-cpy.c: New file.
17664
17665         Tests for module 'unistr/u8-cpy'.
17666         * modules/unistr/u8-cpy-tests: New file.
17667         * tests/unistr/test-u8-cpy.c: New file.
17668         * tests/unistr/test-cpy.h: New file.
17669
17670 2010-01-09  Bruno Haible  <bruno@clisp.org>
17671
17672         Tests for module 'unistr/u32-uctomb'.
17673         * modules/unistr/u32-uctomb-tests: New file.
17674         * tests/unistr/test-u32-uctomb.c: New file.
17675
17676         Tests for module 'unistr/u16-uctomb'.
17677         * modules/unistr/u16-uctomb-tests: New file.
17678         * tests/unistr/test-u16-uctomb.c: New file.
17679
17680         Tests for module 'unistr/u8-uctomb'.
17681         * modules/unistr/u8-uctomb-tests: New file.
17682         * tests/unistr/test-u8-uctomb.c: New file.
17683
17684         Tests for module 'unistr/u32-mbtoucr'.
17685         * modules/unistr/u32-mbtoucr-tests: New file.
17686         * tests/unistr/test-u32-mbtoucr.c: New file.
17687
17688         Tests for module 'unistr/u16-mbtoucr'.
17689         * modules/unistr/u16-mbtoucr-tests: New file.
17690         * tests/unistr/test-u16-mbtoucr.c: New file.
17691
17692         Tests for module 'unistr/u8-mbtoucr'.
17693         * modules/unistr/u8-mbtoucr-tests: New file.
17694         * tests/unistr/test-u8-mbtoucr.c: New file.
17695
17696         Tests for module 'unistr/u32-mbtouc'.
17697         * modules/unistr/u32-mbtouc-tests: New file.
17698         * tests/unistr/test-u32-mbtouc.c: New file.
17699
17700         Tests for module 'unistr/u16-mbtouc'.
17701         * modules/unistr/u16-mbtouc-tests: New file.
17702         * tests/unistr/test-u16-mbtouc.c: New file.
17703
17704         Tests for module 'unistr/u8-mbtouc'.
17705         * modules/unistr/u8-mbtouc-tests: New file.
17706         * tests/unistr/test-u8-mbtouc.c: New file.
17707
17708         Tests for module 'unistr/u32-mbtouc-unsafe'.
17709         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17710         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17711         * tests/unistr/test-u32-mbtouc.h: New file.
17712
17713         Tests for module 'unistr/u16-mbtouc-unsafe'.
17714         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17715         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17716         * tests/unistr/test-u16-mbtouc.h: New file.
17717
17718         Tests for module 'unistr/u8-mbtouc-unsafe'.
17719         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17720         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17721         * tests/unistr/test-u8-mbtouc.h: New file.
17722
17723         Tests for module 'unistr/u32-mblen'.
17724         * modules/unistr/u32-mblen-tests: New file.
17725         * tests/unistr/test-u32-mblen.c: New file.
17726
17727         Tests for module 'unistr/u16-mblen'.
17728         * modules/unistr/u16-mblen-tests: New file.
17729         * tests/unistr/test-u16-mblen.c: New file.
17730
17731         Tests for module 'unistr/u8-mblen'.
17732         * modules/unistr/u8-mblen-tests: New file.
17733         * tests/unistr/test-u8-mblen.c: New file.
17734
17735         Tests for module 'unistr/u32-to-u16'.
17736         * modules/unistr/u32-to-u16-tests: New file.
17737         * tests/unistr/test-u32-to-u16.c: New file.
17738
17739         Tests for module 'unistr/u32-to-u8'.
17740         * modules/unistr/u32-to-u8-tests: New file.
17741         * tests/unistr/test-u32-to-u8.c: New file.
17742
17743         Tests for module 'unistr/u16-to-u32'.
17744         * modules/unistr/u16-to-u32-tests: New file.
17745         * tests/unistr/test-u16-to-u32.c: New file.
17746
17747         Tests for module 'unistr/u16-to-u8'.
17748         * modules/unistr/u16-to-u8-tests: New file.
17749         * tests/unistr/test-u16-to-u8.c: New file.
17750
17751         Tests for module 'unistr/u8-to-u32'.
17752         * modules/unistr/u8-to-u32-tests: New file.
17753         * tests/unistr/test-u8-to-u32.c: New file.
17754
17755         Tests for module 'unistr/u8-to-u16'.
17756         * modules/unistr/u8-to-u16-tests: New file.
17757         * tests/unistr/test-u8-to-u16.c: New file.
17758
17759         Tests for module 'unistr/u32-check'.
17760         * modules/unistr/u32-check-tests: New file.
17761         * tests/unistr/test-u32-check.c: New file.
17762
17763         Tests for module 'unistr/u16-check'.
17764         * modules/unistr/u16-check-tests: New file.
17765         * tests/unistr/test-u16-check.c: New file.
17766
17767         Tests for module 'unistr/u8-check'.
17768         * modules/unistr/u8-check-tests: New file.
17769         * tests/unistr/test-u8-check.c: New file.
17770
17771         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17772         (category_equals): New function.
17773         (main): Add more tests.
17774         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17775
17776         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17777
17778 2010-01-10  Bruno Haible  <bruno@clisp.org>
17779
17780         unistr/u*-strcoll: Try harder to distinguish different strings.
17781         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17782         compare s1 and s2 to see if they are different.
17783
17784 2010-01-10  Bruno Haible  <bruno@clisp.org>
17785
17786         unistr/u*-stpncpy: Fix the return value.
17787         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17788         description of the return value consistent with stpncpy in glibc.
17789         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17790         written non-NUL unit.
17791
17792 2010-01-10  Bruno Haible  <bruno@clisp.org>
17793
17794         unistr/u*-next: Add missing dependencies.
17795         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17796         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17797         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17798
17799 2010-01-10  Bruno Haible  <bruno@clisp.org>
17800
17801         unistr/u8-mbsnlen: Fix return value for incomplete character.
17802         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17803         u8_mblen.
17804         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17805         Remove unistr/u8-mblen.
17806         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17807         u16_mblen.
17808         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17809         Remove unistr/u16-mblen.
17810
17811 2010-01-10  Bruno Haible  <bruno@clisp.org>
17812
17813         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17814         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17815         Reported by Brian Gough <bjg@gnu.org> and
17816         Chris Clayton <chris2553@googlemail.com> via
17817         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17818
17819 2010-01-09  Bruno Haible  <bruno@clisp.org>
17820
17821         unistr/u16-to-u32: Reject invalid input.
17822         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17823         u16_mbtouc.
17824         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17825         Remove unistr/u16-mbtouc.
17826
17827         unistr/u16-to-u8: Reject invalid input.
17828         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17829         u16_mbtouc.
17830         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17831         Remove unistr/u16-mbtouc.
17832
17833         unistr/u8-to-u32: Reject invalid input.
17834         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17835         u8_mbtouc.
17836         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17837         Remove unistr/u8-mbtouc.
17838
17839         unistr/u8-to-u16: Reject invalid input.
17840         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17841         u8_mbtouc.
17842         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17843         Remove unistr/u8-mbtouc.
17844
17845 2010-01-09  Bruno Haible  <bruno@clisp.org>
17846
17847         Tests for module 'getlogin'.
17848         * modules/getlogin-tests: New file.
17849         * tests/test-getlogin.c: New file.
17850
17851         New module 'getlogin'.
17852         * lib/unistd.in.h (getlogin): New declaration.
17853         * lib/getlogin.c: New file.
17854         * m4/getlogin.m4: New file.
17855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17856         HAVE_GETLOGIN.
17857         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17858         HAVE_GETLOGIN.
17859         * modules/getlogin: New file.
17860         * doc/posix-functions/getlogin.texi: Mention the new module.
17861         Reported by John W. Eaton <jwe@gnu.org>.
17862
17863 2010-01-09  Bruno Haible  <bruno@clisp.org>
17864
17865         getlogin_r: Support for native Windows.
17866         * lib/getlogin_r.c: Include <windows.h>
17867         (getlogin_r): Implement for native Windows.
17868         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17869         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17870         via John W. Eaton <jwe@gnu.org>.
17871
17872 2010-01-09  Bruno Haible  <bruno@clisp.org>
17873
17874         getlogin_r: Small fixes.
17875         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17876         succeeds.
17877         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17878         before testing whether getlogin_r is declared. No need to set
17879         HAVE_DECL_GETLOGIN_R to 1.
17880         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17881
17882 2010-01-09  Bruno Haible  <bruno@clisp.org>
17883
17884         * lib/unistd.in.h (getlogin_r): Add comment.
17885
17886 2010-01-09  Bruno Haible  <bruno@clisp.org>
17887
17888         Tests for module 'getlogin_r'.
17889         * modules/getlogin_r-tests: New file.
17890         * tests/test-getlogin_r.c: New file.
17891
17892 2010-01-09  Jim Meyering  <meyering@redhat.com>
17893
17894         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17895         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17896         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17897
17898 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17899
17900         * lib/dup2.c (rpl_dup2): Improve comment.
17901
17902 2010-01-08  Eric Blake  <ebb9@byu.net>
17903
17904         maint.mk: allow packages to add makefile @@ exceptions
17905         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17906         (sc_makefile_check): Rename...
17907         (sc_makefile_at_at_check): ...to this, and use hook.
17908
17909         dup2: work around mingw bug
17910         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17911         Reported by Simon Josefsson.
17912
17913 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17914
17915         glob: Fix C++ compilation.
17916         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17917         C++.
17918
17919 2010-01-07  Bruno Haible  <bruno@clisp.org>
17920
17921         Fix indentation of wctype.in.h, broken since 2007-01-06.
17922         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17923
17924 2010-01-07  Bruno Haible  <bruno@clisp.org>
17925
17926         mbslen: Avoid collision with system function.
17927         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17928         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17929         * m4/mbslen.m4: New file.
17930         * modules/mbslen (Files): Add it.
17931         (configure.ac): Invoke gl_MBSLEN.
17932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17933         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17934         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17935         via Ian Beckwith <ianb@erislabs.net>.
17936
17937 2010-01-07  Bruno Haible  <bruno@clisp.org>
17938
17939         dirent: Document the last fix.
17940         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17941
17942 2010-01-07  Bruno Haible  <bruno@clisp.org>
17943
17944         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17945         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17946         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17947         va_list are defined.
17948         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17949         Reported by Eric Blake.
17950
17951 2010-01-07  Bruno Haible  <bruno@clisp.org>
17952
17953         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17954         * modules/xlist (Depends-on): Add 'list',
17955         * modules/xoset (Depends-on): Add 'oset'.
17956         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17957
17958 2010-01-07  Bruno Haible  <bruno@clisp.org>
17959
17960         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17961         * doc/posix-functions/strncasecmp.texi: Likewise.
17962
17963 2010-01-07  Bruno Haible  <bruno@clisp.org>
17964
17965         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17966
17967 2010-01-07  John W. Eaton  <jwe@octave.org>
17968
17969         wctype: allow C++ use
17970         * lib/wctype.in.h: Add extern "C" block for C++.
17971
17972 2010-01-06  Eric Blake  <ebb9@byu.net>
17973
17974         maint.mk: detect incorrect GFDL usage
17975         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17976
17977 2010-01-06  Jim Meyering  <meyering@redhat.com>
17978         and Eric Blake  <ebb9@byu.net>
17979
17980         maint.mk: ignore multi-line copyright in NEWS
17981         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17982
17983 2010-01-06  Eric Blake  <ebb9@byu.net>
17984
17985         select: add missing dependency
17986         * modules/select-tests (Depends-on): Move sockets dependency...
17987         * modules/select (Depends-on): ...here.
17988         Reported by Ian Beckwith.
17989
17990         doc: regenerate INSTALL
17991         * doc/INSTALL: Reflect recent autoconf update.
17992         * doc/INSTALL.ISO: Likewise.
17993         * doc/INSTALL.UTF-8: Likewise.
17994
17995         pread: fix compilation on glibc
17996         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17997         Reported by Ralf Wildenhues.
17998
17999         dirent: fix test failure
18000         * lib/dirent.in.h (includes): Guarantee ino_t.
18001         Reported by Ralf Wildenhues.
18002
18003 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18004
18005         linkat, renameat: avoid bad free
18006         * lib/at-func2.c (at_func2): Fix typo.
18007         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18008
18009 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18010
18011         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18012         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18013         to avoid failure of symlink test later.
18014
18015 2010-01-06  Eric Blake  <ebb9@byu.net>
18016
18017         stdio, unistd: guarantee ssize_t
18018         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18019         2008 are exposed when needed.
18020         * lib/stdio.in.h (includes): Likewise.
18021         Reported by Ralf Wildenhues.
18022
18023 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18024
18025         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18026         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18027         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18028
18029 2010-01-06  Jim Meyering  <meyering@redhat.com>
18030
18031         readtokens: this module *does* require xalloc.h
18032         It uses only functions that were omitted by the old syntax-check rule.
18033         * lib/readtokens.c: Include "xalloc.h" once again.
18034         * modules/readtokens (Depends-on): Add xalloc.
18035         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18036
18037 2010-01-05  Eric Blake  <ebb9@byu.net>
18038
18039         maint: support 'make announcement' from a VPATH build
18040         * top/maint.mk (announcement): Look for correct NEWS file.
18041
18042 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18043
18044         utimens (fdutimens): ignore a negative FD, per contract
18045         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18046         when we have a valid file descriptor.  Otherwise, using a brand
18047         new glibc (with just-patched futimens that now fails with EBADF)
18048         would cause this function to fail with ENOSYS.
18049         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18050         See also http://bugzilla.redhat.com/552320.
18051
18052 2010-01-05  Eric Blake  <ebb9@byu.net>
18053
18054         strcase: document what it provides
18055         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18056         gnulib module.
18057         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18058         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18059
18060 2010-01-05  Jim Meyering  <meyering@redhat.com>
18061
18062         maint: remove useless inclusions of "xalloc.h"
18063         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18064         * lib/readtokens.c: Likewise.
18065         * lib/same.c: Likewise.
18066         * modules/getloadavg (Depends-on): Remove xalloc.
18067         * modules/readtokens: Likewise.
18068         * modules/same: Likewise.
18069
18070         maint.mk: include 4 more function names in alloca.h-checking regexp
18071         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18072         regexp.  Before, we would give a false-positive (saying alloca.h
18073         is included unnecessarily) when the only uses involved omitted symbols.
18074
18075         xalloc.h: use consistent formatting
18076         * lib/xalloc.h: Move declarations to start in the first column.
18077
18078 2010-01-05  Eric Blake  <ebb9@byu.net>
18079
18080         mkdir: avoid xalloc
18081         * lib/mkdir.c (includes): Drop unused header.
18082         Reported by John W. Eaton.
18083
18084 2010-01-04  Jim Meyering  <meyering@redhat.com>
18085
18086         nl_langinfo: avoid configure-time syntax error
18087         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18088         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18089         the empty string.  Don't let that provoke a shell syntax error.
18090
18091         regcomp, regexec, fnmatch: avoid array bounds read error
18092         * lib/regcomp.c (build_equiv_class): From glibc:
18093         Use only the low 24 bits of a findidx return value as an index
18094         into the weights array.  Patch by Ulrich Drepper:
18095         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18096         * lib/regexec.c (check_node_accept_bytes): Likewise.
18097         * lib/fnmatch_loop.c (FCT): Likewise.
18098
18099         regcomp: skip collseq lookup when there are no rules
18100         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18101         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18102
18103         regcomp: recognize ill-formed { } expressions
18104         * lib/regcomp.c (parse_dup_op): From glibc:
18105         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18106
18107         regcomp: fix typo in comment
18108         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18109         s/satisfy/satisfies/.
18110
18111         regcomp: sync from glibc: remove dead store
18112         * lib/regcomp.c (duplicate_node_closure): Remove useless
18113         search_duplicated_node call and dead store.
18114
18115         regcomp: sync from glibc; always use nl_langinfo
18116         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18117         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18118         * modules/regex (Depends-on): Add nl_langinfo.
18119
18120 2010-01-04  Eric Blake  <ebb9@byu.net>
18121
18122         fdopendir: fix configure test
18123         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18124
18125 2010-01-01  Bruno Haible  <bruno@clisp.org>
18126
18127         wchar: Remove unused configure check.
18128         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18129
18130 2010-01-01  Eric Blake  <ebb9@byu.net>
18131
18132         headers: make check of system header explicit
18133         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18134         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18135         ourselves.
18136         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18137         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18138         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18139         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18140         internals.
18141         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18142         missing.
18143         Suggested by Bruno Haible.
18144
18145 2010-01-01  Jim Meyering  <meyering@redhat.com>
18146
18147         ChangeLog: tweak to eliminate unnecessary copyright line
18148         * ChangeLog: Remove a copyright line that was mistakenly updated
18149         by today's update-copyright run.  Reported by Eric Blake.
18150
18151         test-update-copyright: don't let envvar setting cause test failure
18152         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18153
18154 2010-01-01  Bruno Haible  <bruno@clisp.org>
18155
18156         localename: Avoid gcc warning.
18157         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18158         function if it is not used.
18159
18160 2010-01-01  Jim Meyering  <meyering@redhat.com>
18161
18162         update nearly all FSF copyright year lists to include 2010
18163         Use the same procedure as for 2009, outlined in
18164         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18165
18166         version-etc: set COPYRIGHT_YEAR to 2010
18167         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18168
18169 2009-12-31  Eric Blake  <ebb9@byu.net>
18170
18171         doc: correct availability of cygwin 1.5.x getopt
18172         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18173         variables.
18174         * doc/posix-functions/opterr.texi (opterr): Likewise.
18175         * doc/posix-functions/optind.texi (optind): Likewise.
18176         * doc/posix-functions/optopt.texi (optopt): Likewise.
18177         * doc/posix-functions/tzname.texi (tzname): Likewise.
18178
18179         openat: update maintainer
18180         * modules/openat (Maintainer): Add myself.
18181
18182         utimens: avoid shadowing warning
18183         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18184         buffers into one, to avoid shadowing, as well as avoiding a
18185         redundant stat.
18186         Reported by Jim Meyering.
18187
18188         test-dup2: avoid compiler warning
18189         * tests/test-dup2.c (is_inheritable): Only define if used.
18190
18191 2010-01-01  Bruno Haible  <bruno@clisp.org>
18192
18193         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18194         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18195         defined, use wctomb instead of wcrtomb.
18196
18197 2010-01-01  Bruno Haible  <bruno@clisp.org>
18198
18199         iconv: Reject native Solaris iconv.
18200         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18201         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18202
18203 2009-12-31  Bruno Haible  <bruno@clisp.org>
18204
18205         * tests/test-signal.c (main): Remove test of 'SIG'.
18206
18207 2009-12-31  Bruno Haible  <bruno@clisp.org>
18208
18209         spawn: Fix incomplete fix.
18210         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18211         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18212         warnings for GNULIB_POSIXCHECK again.
18213         Reported by Eric Blake.
18214
18215 2009-12-31  Bruno Haible  <bruno@clisp.org>
18216
18217         Avoid namespace pollution on glibc systems.
18218         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18219         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18220         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18221         glibc systems.
18222
18223 2009-12-31  Bruno Haible  <bruno@clisp.org>
18224
18225         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18226         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18227         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18228         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18229         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18230         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18231         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18232
18233 2009-12-31  Bruno Haible  <bruno@clisp.org>
18234
18235         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18236         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18237         afterwards.
18238
18239 2009-12-31  Bruno Haible  <bruno@clisp.org>
18240
18241         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18242         SYS_UTSNAME_H.
18243
18244 2009-12-31  Bruno Haible  <bruno@clisp.org>
18245
18246         spawn: Fix misapplied patch.
18247         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18248         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18249         warnings for GNULIB_POSIXCHECK.
18250
18251 2009-12-31  Bruno Haible  <bruno@clisp.org>
18252
18253         times: Update after sys_times changed.
18254         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18255         * modules/times (Files): Add it.
18256         (configure.ac): Invoke gl_FUNC_TIMES.
18257
18258 2009-12-31  Bruno Haible  <bruno@clisp.org>
18259
18260         Use AC_C_INLINE where necessary.
18261         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18262         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18263         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18264         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18265         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18266         * m4/mbiter.m4 (gl_MBITER): Likewise.
18267         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18268         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18269         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18270         * modules/u64 (configure.ac): Likewise.
18271
18272 2009-12-31  Bruno Haible  <bruno@clisp.org>
18273
18274         Use AC_C_INLINE instead of module 'inline' where possible.
18275         * modules/inline (Description): Clarify purpose.
18276         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18277         * modules/count-one-bits (Depends-on): Remove inline.
18278         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18279         * modules/openat (Depends-on): Remove inline.
18280         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18281         instead of depending on module 'inline'.
18282         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18283         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18284         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18285         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18286         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18287         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18288         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18289         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18290         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18291         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18292         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18293         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18294         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18295         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18296         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18297         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18298         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18299         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18300         Likewise.
18301         * modules/unictype/property-ascii-hex-digit (Depends-on,
18302         configure.ac): Likewise.
18303         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18304         configure.ac): Likewise.
18305         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18306         configure.ac): Likewise.
18307         * modules/unictype/property-bidi-block-separator (Depends-on,
18308         configure.ac): Likewise.
18309         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18310         configure.ac): Likewise.
18311         * modules/unictype/property-bidi-common-separator (Depends-on,
18312         configure.ac): Likewise.
18313         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18314         Likewise.
18315         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18316         configure.ac): Likewise.
18317         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18318         configure.ac): Likewise.
18319         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18320         configure.ac): Likewise.
18321         * modules/unictype/property-bidi-european-digit (Depends-on,
18322         configure.ac): Likewise.
18323         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18324         configure.ac): Likewise.
18325         * modules/unictype/property-bidi-left-to-right (Depends-on,
18326         configure.ac): Likewise.
18327         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18328         configure.ac): Likewise.
18329         * modules/unictype/property-bidi-other-neutral (Depends-on,
18330         configure.ac): Likewise.
18331         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18332         Likewise.
18333         * modules/unictype/property-bidi-segment-separator (Depends-on,
18334         configure.ac): Likewise.
18335         * modules/unictype/property-bidi-whitespace (Depends-on,
18336         configure.ac): Likewise.
18337         * modules/unictype/property-combining (Depends-on, configure.ac):
18338         Likewise.
18339         * modules/unictype/property-composite (Depends-on, configure.ac):
18340         Likewise.
18341         * modules/unictype/property-currency-symbol (Depends-on,
18342         configure.ac): Likewise.
18343         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
18344         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
18345         Likewise.
18346         * modules/unictype/property-default-ignorable-code-point (Depends-on,
18347         configure.ac): Likewise.
18348         * modules/unictype/property-deprecated (Depends-on, configure.ac):
18349         Likewise.
18350         * modules/unictype/property-diacritic (Depends-on, configure.ac):
18351         Likewise.
18352         * modules/unictype/property-extender (Depends-on, configure.ac):
18353         Likewise.
18354         * modules/unictype/property-format-control (Depends-on, configure.ac):
18355         Likewise.
18356         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
18357         Likewise.
18358         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
18359         Likewise.
18360         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
18361         Likewise.
18362         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
18363         Likewise.
18364         * modules/unictype/property-hyphen (Depends-on, configure.ac):
18365         Likewise.
18366         * modules/unictype/property-id-continue (Depends-on, configure.ac):
18367         Likewise.
18368         * modules/unictype/property-id-start (Depends-on, configure.ac):
18369         Likewise.
18370         * modules/unictype/property-ideographic (Depends-on, configure.ac):
18371         Likewise.
18372         * modules/unictype/property-ids-binary-operator (Depends-on,
18373         configure.ac): Likewise.
18374         * modules/unictype/property-ids-trinary-operator (Depends-on,
18375         configure.ac): Likewise.
18376         * modules/unictype/property-ignorable-control (Depends-on,
18377         configure.ac): Likewise.
18378         * modules/unictype/property-iso-control (Depends-on, configure.ac):
18379         Likewise.
18380         * modules/unictype/property-join-control (Depends-on, configure.ac):
18381         Likewise.
18382         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
18383         Likewise.
18384         * modules/unictype/property-line-separator (Depends-on, configure.ac):
18385         Likewise.
18386         * modules/unictype/property-logical-order-exception (Depends-on,
18387         configure.ac): Likewise.
18388         * modules/unictype/property-lowercase (Depends-on, configure.ac):
18389         Likewise.
18390         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
18391         * modules/unictype/property-non-break (Depends-on, configure.ac):
18392         Likewise.
18393         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
18394         Likewise.
18395         * modules/unictype/property-numeric (Depends-on, configure.ac):
18396         Likewise.
18397         * modules/unictype/property-other-alphabetic (Depends-on,
18398         configure.ac): Likewise.
18399         * modules/unictype/property-other-default-ignorable-code-point
18400         (Depends-on, configure.ac): Likewise.
18401         * modules/unictype/property-other-grapheme-extend (Depends-on,
18402         configure.ac): Likewise.
18403         * modules/unictype/property-other-id-continue (Depends-on,
18404         configure.ac): Likewise.
18405         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
18406         Likewise.
18407         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
18408         Likewise.
18409         * modules/unictype/property-other-math (Depends-on, configure.ac):
18410         Likewise.
18411         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
18412         Likewise.
18413         * modules/unictype/property-paired-punctuation (Depends-on,
18414         configure.ac): Likewise.
18415         * modules/unictype/property-paragraph-separator (Depends-on,
18416         configure.ac): Likewise.
18417         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
18418         Likewise.
18419         * modules/unictype/property-pattern-white-space (Depends-on,
18420         configure.ac): Likewise.
18421         * modules/unictype/property-private-use (Depends-on, configure.ac):
18422         Likewise.
18423         * modules/unictype/property-punctuation (Depends-on, configure.ac):
18424         Likewise.
18425         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
18426         Likewise.
18427         * modules/unictype/property-radical (Depends-on, configure.ac):
18428         Likewise.
18429         * modules/unictype/property-sentence-terminal (Depends-on,
18430         configure.ac): Likewise.
18431         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
18432         Likewise.
18433         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
18434         * modules/unictype/property-terminal-punctuation (Depends-on,
18435         configure.ac): Likewise.
18436         * modules/unictype/property-titlecase (Depends-on, configure.ac):
18437         Likewise.
18438         * modules/unictype/property-unassigned-code-value (Depends-on,
18439         configure.ac): Likewise.
18440         * modules/unictype/property-unified-ideograph (Depends-on,
18441         configure.ac): Likewise.
18442         * modules/unictype/property-uppercase (Depends-on, configure.ac):
18443         Likewise.
18444         * modules/unictype/property-variation-selector (Depends-on,
18445         configure.ac): Likewise.
18446         * modules/unictype/property-white-space (Depends-on, configure.ac):
18447         Likewise.
18448         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
18449         Likewise.
18450         * modules/unictype/property-xid-start (Depends-on, configure.ac):
18451         Likewise.
18452         * modules/unictype/property-zero-width (Depends-on, configure.ac):
18453         Likewise.
18454         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
18455         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
18456         Likewise.
18457
18458 2009-12-31  Bruno Haible  <bruno@clisp.org>
18459
18460         Remove unnecessary AC_C_INLINE invocation.
18461         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
18462         since 2009-08-21.
18463
18464 2009-12-31  Jim Meyering  <meyering@redhat.com>
18465
18466         maint.mk: don't require explicit gpg_key_ID in cfg.mk
18467         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
18468         With this change, we can all remove the gpg_key_ID = ... definition
18469         from our respective cfg.mk files.
18470
18471         maint.mk: create announcement template in ~/, not in /tmp
18472         * top/maint.mk (emit_upload_commands): Adjust.
18473         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
18474         Remove temporary file, .ci-msg.
18475
18476 2009-12-31  Eric Blake  <ebb9@byu.net>
18477
18478         link-warning: always build headers with link warnings
18479         * modules/arpa_inet (Makefile.am): Always build replacement
18480         header.
18481         * modules/ctype (Makefile.am): Likewise.
18482         * modules/dirent (Makefile.am): Likewise.
18483         * modules/inttypes (Makefile.am): Likewise.
18484         * modules/langinfo (Makefile.am): Likewise.
18485         * modules/locale (Makefile.am): Likewise.
18486         * modules/spawn (Makefile.am): Likewise.
18487         * modules/sys_file (Makefile.am): Likewise.
18488         * modules/sys_ioctl (Makefile.am): Likewise.
18489         * modules/sys_select (Makefile.am): Likewise.
18490         * modules/sys_socket (Makefile.am): Likewise.
18491         * modules/sys_times (Makefile.am): Likewise.
18492         * modules/sys_utsname (Makefile.am): Likewise.
18493         * modules/sys_wait (Makefile.am): Likewise.
18494         * modules/wchar (Makefile.am): Likewise.
18495         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
18496         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
18497         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
18498         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
18499         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
18500         Likewise.
18501         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18502         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18503         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
18504         Likewise.
18505         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
18506         Likewise.
18507         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18508         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
18509         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
18510         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18511         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18512         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18513         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18514         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
18515         (gl_WCHAR_H_DEFAULTS): Likewise.
18516
18517 2009-12-31  Eric Blake  <ebb9@byu.net>
18518
18519         signal, spawn: use link warnings
18520         * lib/signal.in.h (sigset_t): Make unconditional.
18521         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
18522         (sigpending, sigprocmask, sigaction): Add link warnings.
18523         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
18524         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
18525         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
18526         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
18527         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
18528         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
18529         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
18530         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
18531         (posix_spawn_file_actions_destroy)
18532         (posix_spawn_file_actions_addopen)
18533         (posix_spawn_file_actions_addclose)
18534         (posix_spawn_file_actions_adddup2): Likewise.
18535         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
18536         * tests/test-signal.c (main): Enhance test.
18537
18538         spawn: improve wrapper support
18539         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
18540         (gl_SPAWN_H_DEFAULTS): New defaults.
18541         * modules/spawn (Makefile.am): Substitute them.
18542         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
18543         Only declare if missing or broken.
18544
18545         sys_times, sys_utsname: use include_next
18546         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
18547         header.
18548         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
18549         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18550         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18551         * modules/sys_times (Depends-on): Add include_next.
18552         (Makefile.am): Substitute additional values.
18553         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18554         * lib/sys_times.in.h (includes): Include native header, if
18555         available.
18556         * lib/sys_utsname.in.h (includes): Likewise.
18557         * tests/test-sys_times.c (main): Enhance test.
18558
18559         fdutimensat: revert prior patch
18560         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18561         utimens.h.
18562         Reported by Bruno Haible.
18563
18564 2009-12-30  Eric Blake  <ebb9@byu.net>
18565
18566         sys_wait: drop link-warning dependency
18567         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18568         link-warning efforts.
18569         * lib/sys_wait.in.h: Likewise.
18570
18571         fdutimensat: remove bogus dependency
18572         * modules/fdutimensat (Depends-on): Drop inline.
18573
18574         unistd: fix typo
18575         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18576
18577 2009-12-30  Bruno Haible  <bruno@clisp.org>
18578
18579         Fix compilation error with Solaris cc.
18580         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18581         * lib/unicase/u16-is-invariant.c: Likewise.
18582         * lib/unicase/u32-is-invariant.c: Likewise.
18583         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18584
18585 2009-12-30  Bruno Haible  <bruno@clisp.org>
18586
18587         Fix test crash.
18588         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18589         locales.
18590         Reported by Simon Josefsson <simon@josefsson.org>.
18591
18592 2009-12-30  Bruno Haible  <bruno@clisp.org>
18593
18594         Fix compilation error on most platforms.
18595         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18596         Reported by Simon Josefsson <simon@josefsson.org>
18597         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18598
18599 2009-12-30  Eric Blake  <ebb9@byu.net>
18600
18601         futimens, utimensat: work around ntfs-3g bug
18602         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18603         a ctime bug is present, and expand workaround to cover ntfs-3g.
18604         * lib/utimens.c (fdutimens, lutimens): Likewise.
18605         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18606         (validate_timespec): Adjust return value.
18607         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18608         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18609         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18610
18611 2009-12-29  Eric Blake  <ebb9@byu.net>
18612
18613         link-warning: make usage consistent
18614         * modules/ctype (Depends-on): Add link-warning.
18615         (Makefile.am): Update rules accordingly.
18616         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18617         * modules/locale (Depends-on, Makefile.am): Likewise.
18618         * modules/sys_file (Makefile.am): Likewise.
18619         * modules/getopt-posix (Makefile.am): Delete unused link warning
18620         efforts.
18621         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18622         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18623         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18624         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18625
18626         stdio: remove unused variables
18627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18628         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18629         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18630
18631         tests: test more substitute headers
18632         * modules/ctype-tests: New file.
18633         * modules/dirent-tests: Likewise.
18634         * modules/spawn-tests: Likewise.
18635         * modules/sys_file-tests: Likewise.
18636         * modules/sys_ioctl-tests: Likewise.
18637         * modules/sys_wait-tests: Likewise.
18638         * tests/test-ctype.c: Likewise.
18639         * tests/test-dirent.c: Likewise.
18640         * tests/test-spawn.c: Likewise.
18641         * tests/test-sys_file.c: Likewise.
18642         * tests/test-sys_ioctl.c: Likewise.
18643         * tests/test-sys_wait.c: Likewise.
18644         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18645         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18646         whether or not flock is in use.
18647
18648         tests: remove License section from module
18649         * modules/arpa_inet-tests: Remove unneeded section.
18650         * modules/byteswap-tests: Likewise.
18651         * modules/ceilf-tests: Likewise.
18652         * modules/ceill-tests: Likewise.
18653         * modules/crypto/des-tests: Likewise.
18654         * modules/crypto/gc-arcfour-tests: Likewise.
18655         * modules/crypto/gc-arctwo-tests: Likewise.
18656         * modules/crypto/gc-des-tests: Likewise.
18657         * modules/crypto/gc-hmac-md5-tests: Likewise.
18658         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18659         * modules/crypto/gc-md2-tests: Likewise.
18660         * modules/crypto/gc-md4-tests: Likewise.
18661         * modules/crypto/gc-md5-tests: Likewise.
18662         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18663         * modules/crypto/gc-rijndael-tests: Likewise.
18664         * modules/crypto/gc-sha1-tests: Likewise.
18665         * modules/crypto/gc-tests: Likewise.
18666         * modules/crypto/md2-tests: Likewise.
18667         * modules/crypto/md4-tests: Likewise.
18668         * modules/fcntl-h-tests: Likewise.
18669         * modules/floorf-tests: Likewise.
18670         * modules/floorl-tests: Likewise.
18671         * modules/frexp-nolibm-tests: Likewise.
18672         * modules/frexp-tests: Likewise.
18673         * modules/frexpl-nolibm-tests: Likewise.
18674         * modules/frexpl-tests: Likewise.
18675         * modules/getaddrinfo-tests: Likewise.
18676         * modules/inttypes-tests: Likewise.
18677         * modules/isfinite-tests: Likewise.
18678         * modules/isinf-tests: Likewise.
18679         * modules/ldexpl-tests: Likewise.
18680         * modules/locale-tests: Likewise.
18681         * modules/math-tests: Likewise.
18682         * modules/netdb-tests: Likewise.
18683         * modules/netinet_in-tests: Likewise.
18684         * modules/printf-frexp-tests: Likewise.
18685         * modules/printf-frexpl-tests: Likewise.
18686         * modules/priv-set-tests: Likewise.
18687         * modules/random_r-tests: Likewise.
18688         * modules/round-tests: Likewise.
18689         * modules/roundf-tests: Likewise.
18690         * modules/roundl-tests: Likewise.
18691         * modules/search-tests: Likewise.
18692         * modules/select-tests: Likewise.
18693         * modules/signal-tests: Likewise.
18694         * modules/stdbool-tests: Likewise.
18695         * modules/stddef-tests: Likewise.
18696         * modules/stdint-tests: Likewise.
18697         * modules/stdio-tests: Likewise.
18698         * modules/stdlib-tests: Likewise.
18699         * modules/string-tests: Likewise.
18700         * modules/strings-tests: Likewise.
18701         * modules/sys_select-tests: Likewise.
18702         * modules/sys_socket-tests: Likewise.
18703         * modules/sys_stat-tests: Likewise.
18704         * modules/sys_time-tests: Likewise.
18705         * modules/sys_utsname-tests: Likewise.
18706         * modules/sysexits-tests: Likewise.
18707         * modules/time-tests: Likewise.
18708         * modules/trunc-tests: Likewise.
18709         * modules/truncf-tests: Likewise.
18710         * modules/truncl-tests: Likewise.
18711         * modules/tsearch-tests: Likewise.
18712         * modules/unistd-tests: Likewise.
18713         * modules/wchar-tests: Likewise.
18714         * modules/wctype-tests: Likewise.
18715
18716         tests: fix license on several tests
18717         * tests/test-des.c: Update to GPLv3+.
18718         * tests/test-flock.c: Likewise.
18719         * tests/test-fsync.c: Likewise.
18720         * tests/test-futimens.h: Likewise.
18721         * tests/test-gc-arcfour.c: Likewise.
18722         * tests/test-gc-arctwo.c: Likewise.
18723         * tests/test-gc-des.c: Likewise.
18724         * tests/test-gc-hmac-md5.c: Likewise.
18725         * tests/test-gc-hmac-sha1.c: Likewise.
18726         * tests/test-gc-md2.c: Likewise.
18727         * tests/test-gc-md4.c: Likewise.
18728         * tests/test-gc-md5.c: Likewise.
18729         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18730         * tests/test-gc-rijndael.c: Likewise.
18731         * tests/test-gc-sha1.c: Likewise.
18732         * tests/test-gc.c: Likewise.
18733         * tests/test-getcwd.c: Likewise.
18734         * tests/test-link.c: Likewise.
18735         * tests/test-link.h: Likewise.
18736         * tests/test-lutimens.h: Likewise.
18737         * tests/test-md2.c: Likewise.
18738         * tests/test-md4.c: Likewise.
18739         * tests/test-mkdir.h: Likewise.
18740         * tests/test-rename.c: Likewise.
18741         * tests/test-rename.h: Likewise.
18742         * tests/test-safe-alloc.c: Likewise.
18743         * tests/test-utimens-common.h: Likewise.
18744         * tests/test-utimens.h: Likewise.
18745
18746         maint: sync license texts
18747         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18748         * doc/gpl-3.0.texi: Revert copyright year update.
18749         * doc/lgpl-3.0.texi: Likewise.
18750
18751 2009-12-29  Jim Meyering  <meyering@redhat.com>
18752
18753         update nearly all FSF copyright year lists to include 2009
18754         The files named by the following are exempted:
18755             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18756               test -f "$dst" && { echo "$dst"; continue; }
18757               test -d "$dst" || continue
18758               echo "$dst"/$(basename "$src")
18759             done > exempt
18760             git ls-files tests/unictype >> exempt
18761         In the remaining files, convert to all-interval notation if
18762         - there is already at least one year interval like 2000-2003
18763         - the file is maintained by me
18764         - the file is in lib/uni*/, where that style already prevails
18765         Otherwise, use update-copyright's default.
18766
18767 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18768         and Eric Blake  <ebb9@byu.net>
18769
18770         tests: don't require debug system() to pass
18771         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18772         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18773         * tests/test-unlink.h (test_unlink_func): Likewise.
18774         * tests/test-fstatat.c (main): ...into callers.
18775         * tests/test-lstat.c (main): Likewise.
18776         * tests/test-rmdir.c (main): Likewise.
18777         * tests/test-unlink.c (main): Likewise.
18778         * tests/test-unlinkat.c (main): Likewise.
18779         * tests/test-areadlink-with-size.c (main): Don't require a
18780         debug-only system call to pass, aiding cross-testing to mingw.
18781         * tests/test-areadlink.c (main): Likewise.
18782         * tests/test-areadlinkat-with-size.c (main): Likewise.
18783         * tests/test-areadlinkat.c (main): Likewise.
18784         * tests/test-canonicalize-lgpl.c (main): Likewise.
18785         * tests/test-canonicalize.c (main): Likewise.
18786         * tests/test-chown.c (main): Likewise.
18787         * tests/test-fchownat.c (main): Likewise.
18788         * tests/test-lchown.c (main): Likewise.
18789         * tests/test-fdutimensat.c (main): Likewise.
18790         * tests/test-futimens.c (main): Likewise.
18791         * tests/test-link.c (main): Likewise.
18792         * tests/test-linkat.c (main): Likewise.
18793         * tests/test-mkdir.c (main): Likewise.
18794         * tests/test-mkdirat.c (main): Likewise.
18795         * tests/test-mkfifo.c (main): Likewise.
18796         * tests/test-mkfifoat.c (main): Likewise.
18797         * tests/test-mknod.c (main): Likewise.
18798         * tests/test-readlink.c (main): Likewise.
18799         * tests/test-remove.c (main): Likewise.
18800         * tests/test-rename.c (main): Likewise.
18801         * tests/test-renameat.c (main): Likewise.
18802         * tests/test-symlink.c (main): Likewise.
18803         * tests/test-symlinkat.c (main): Likewise.
18804         * tests/test-utimens.c (main): Likewise.
18805         * tests/test-utimensat.c (main): Likewise.
18806
18807 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18808
18809         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18810         on $(UNUSED_PARAMETER_H) to avoid build failure.
18811
18812 2009-12-28  Jim Meyering  <meyering@redhat.com>
18813
18814         update-copyright: you may specify a max. line length other than 72
18815         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18816
18817         maint: use consistent FSF copyright line syntax
18818         * lib/posixtm.c: Add missing comma in FSF copyright line.
18819         * lib/posixtm.h: Likewise.
18820         * lib/getugroups.c: Add missing ", Inc.".
18821
18822         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18823         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18824         FSF copyright line.  Remove trailing blanks.
18825
18826 2009-12-28  Eric Blake  <ebb9@byu.net>
18827
18828         test-dup2: reduce dependencies
18829         * modules/cloexec (Configure.ac): Set witness.
18830         * modules/dup2-tests (Depends-on): Drop cloexec.
18831         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18832         not present.
18833         Suggested by Bruno Haible.
18834
18835 2009-12-26  Bruno Haible  <bruno@clisp.org>
18836
18837         Remove an unneeded dependency.
18838         * modules/fseterr (Depends-on): Remove dup2.
18839
18840 2009-12-26  Eric Blake  <ebb9@byu.net>
18841
18842         tests: use macros.h in more places
18843         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18844         (ASSERT_STREAM): Provide default of stderr.
18845         * tests/test-dirent-safer.c: Include macros.h, using alternate
18846         stream for assertions.
18847         * tests/test-dup-safer.c: Likewise.
18848         * tests/test-freopen-safer.c: Likewise.
18849         * tests/test-getopt.c: Likewise.
18850         * tests/test-openat-safer.c: Likewise.
18851         * tests/test-pipe.c: Likewise.
18852         * tests/test-popen-safer.c: Likewise.
18853         * modules/dirent-safer-tests (Files): Include macros.h.
18854         * modules/unistd-safer-tests (Files): Likewise.
18855         * modules/freopen-safer-tests (Files): Likewise.
18856         * modules/getopt-posix-tests (Files): Likewise.
18857         * modules/openat-safer-tests (Files): Likewise.
18858         * modules/pipe-tests (Files): Likewise.
18859
18860 2009-12-26  Bruno Haible  <bruno@clisp.org>
18861
18862         javacomp: Portability fix.
18863         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18864         that it also works on Solaris.
18865
18866 2009-12-26  Bruno Haible  <bruno@clisp.org>
18867
18868         localename: Fix storage allocation of gl_locale_name_thread's result.
18869         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18870         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18871         all platforms that have 'uselocale'.
18872         (gl_locale_name_thread_unsafe): New function, extracted from
18873         gl_locale_name_thread.
18874         (gl_locale_name_thread): Call struniq on all platforms that have
18875         'uselocale'.
18876         * tests/test-localename.c (test_locale_name_thread): Check that the
18877         resulting strings are permanently allocated.
18878         * modules/localename-tests (Depends-on): Add strdup.
18879
18880 2009-12-26  Bruno Haible  <bruno@clisp.org>
18881
18882         * tests/test-localename.c (categories): Fill in the strings.
18883
18884 2009-12-26  Jim Meyering  <meyering@redhat.com>
18885
18886         isdir: complete the removal of m4/isdir.m4
18887         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18888
18889         isdir: clean up, since at least grep still uses it
18890         * lib/isdir.c: Include "isdir.h".
18891         (S_ISDIR): Remove now-unneeded definition.
18892         * modules/isdir (Files): Add lib/isdir.h.
18893         * lib/isdir.h: New file, with declaration.
18894         * m4/isdir.m4: Remove file -- unneeded.
18895
18896 2009-12-25  Bruno Haible  <bruno@clisp.org>
18897
18898         selinux-h: Make generated .h files standalone.
18899         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18900         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18901         * lib/se-selinux.in.h: Likewise.
18902         * modules/selinux-h (Depends-on): Add unused-parameter.
18903         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18904         selinux/selinux.h and selinux/context.h.
18905         Suggested by Eric Blake.
18906
18907 2009-12-25  Bruno Haible  <bruno@clisp.org>
18908
18909         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18910         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18911         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18912         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18913         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18914
18915 2009-12-24  Bruno Haible  <bruno@clisp.org>
18916
18917         openat: Fix warning.
18918         * lib/openat-proc.c: Include <unistd.h>.
18919
18920 2009-12-24  Bruno Haible  <bruno@clisp.org>
18921
18922         New module 'unused-parameter'.
18923         * build-aux/unused-parameter.h: New file, extracted from earlier
18924         gnulib-common.m4.
18925         * modules/unused-parameter: New file.
18926         * lib/unistr.h: Include unused-parameter.h.
18927         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18928         _GL_UNUSED.
18929         * modules/unistr/base (Depends-on): Add unused-parameter.
18930
18931 2009-12-24  Bruno Haible  <bruno@clisp.org>
18932
18933         Add missing dependencies to 'extensions' module.
18934         * m4/extensions.m4: Add comment.
18935         * modules/accept4 (Depends-on): Add extensions.
18936         * modules/dup3 (Depends-on): Likewise.
18937         * modules/fcntl (Depends-on): Likewise.
18938         * modules/futimens (Depends-on): Likewise.
18939         * modules/mknod (Depends-on): Likewise.
18940         * modules/pipe2 (Depends-on): Likewise.
18941         * modules/stat-time (Depends-on): Likewise.
18942         * modules/strcasestr-simple (Depends-on): Likewise.
18943         * modules/strsignal (Depends-on): Likewise.
18944         * modules/utimensat (Depends-on): Likewise.
18945         * modules/localcharset (Depends-on): Likewise. Needed because of
18946         gl_FCNTL_O_FLAGS.
18947         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18948         AC_TYPE_MBSTATE_T.
18949         * modules/wcsnrtombs (Depends-on): Likewise.
18950         * modules/wcsrtombs (Depends-on): Likewise.
18951
18952 2009-12-24  Bruno Haible  <bruno@clisp.org>
18953
18954         binary-io: Avoid gcc warning due to SET_BINARY.
18955         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18956         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18957
18958 2009-12-24  Bruno Haible  <bruno@clisp.org>
18959
18960         Avoid future namespace pollution on glibc systems.
18961         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18962         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18963         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18964         glibc systems.
18965
18966 2009-12-24  Bruno Haible  <bruno@clisp.org>
18967
18968         Refactor common macros used in tests.
18969         * tests/macros.h: New file.
18970         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18971         and/or <stdlib.h>, if appropriate.
18972         (ASSERT, SIZEOF): Remove macros.
18973         * tests/test-areadlink-with-size.c: Likewise.
18974         * tests/test-areadlinkat.c: Likewise.
18975         * tests/test-areadlinkat-with-size.c: Likewise.
18976         * tests/test-argmatch.c: Likewise.
18977         * tests/test-argv-iter.c: Likewise.
18978         * tests/test-array-mergesort.c: Likewise.
18979         * tests/test-array_list.c: Likewise.
18980         * tests/test-array_oset.c: Likewise.
18981         * tests/test-avltree_list.c: Likewise.
18982         * tests/test-avltree_oset.c: Likewise.
18983         * tests/test-avltreehash_list.c: Likewise.
18984         * tests/test-base64.c: Likewise.
18985         * tests/test-binary-io.c: Likewise.
18986         * tests/test-bitrotate.c: Likewise.
18987         * tests/test-btowc.c: Likewise.
18988         * tests/test-byteswap.c: Likewise.
18989         * tests/test-c-ctype.c: Likewise.
18990         * tests/test-c-stack.c: Likewise.
18991         * tests/test-c-strcasecmp.c: Likewise.
18992         * tests/test-c-strcasestr.c: Likewise.
18993         * tests/test-c-strncasecmp.c: Likewise.
18994         * tests/test-c-strstr.c: Likewise.
18995         * tests/test-canonicalize-lgpl.c: Likewise.
18996         * tests/test-canonicalize.c: Likewise.
18997         * tests/test-carray_list.c: Likewise.
18998         * tests/test-ceilf1.c: Likewise.
18999         * tests/test-ceilf2.c: Likewise.
19000         * tests/test-ceill.c: Likewise.
19001         * tests/test-chown.c: Likewise.
19002         * tests/test-cloexec.c: Likewise.
19003         * tests/test-copy-acl.c: Likewise.
19004         * tests/test-copy-file.c: Likewise.
19005         * tests/test-count-one-bits.c: Likewise.
19006         * tests/test-dprintf-posix.c: Likewise.
19007         * tests/test-dup2.c: Likewise.
19008         * tests/test-dup3.c: Likewise.
19009         * tests/test-duplocale.c: Likewise.
19010         * tests/test-fbufmode.c: Likewise.
19011         * tests/test-fchdir.c: Likewise.
19012         * tests/test-fchownat.c: Likewise.
19013         * tests/test-fcntl-safer.c: Likewise.
19014         * tests/test-fcntl.c: Likewise.
19015         * tests/test-fdopendir.c: Likewise.
19016         * tests/test-fdutimensat.c: Likewise.
19017         * tests/test-fflush2.c: Likewise.
19018         * tests/test-file-has-acl.c: Likewise.
19019         * tests/test-filevercmp.c: Likewise.
19020         * tests/test-flock.c: Likewise.
19021         * tests/test-floorf1.c: Likewise.
19022         * tests/test-floorf2.c: Likewise.
19023         * tests/test-floorl.c: Likewise.
19024         * tests/test-fnmatch.c: Likewise.
19025         * tests/test-fopen.h: Likewise.
19026         * tests/test-fpending.c: Likewise.
19027         * tests/test-fprintf-posix.c: Likewise.
19028         * tests/test-fpurge.c: Likewise.
19029         * tests/test-freadable.c: Likewise.
19030         * tests/test-freadahead.c: Likewise.
19031         * tests/test-freading.c: Likewise.
19032         * tests/test-freadptr.c: Likewise.
19033         * tests/test-freadptr2.c: Likewise.
19034         * tests/test-freadseek.c: Likewise.
19035         * tests/test-freopen.c: Likewise.
19036         * tests/test-frexp.c: Likewise.
19037         * tests/test-frexpl.c: Likewise.
19038         * tests/test-fseek.c: Likewise.
19039         * tests/test-fseeko.c: Likewise.
19040         * tests/test-fstatat.c: Likewise.
19041         * tests/test-fstrcmp.c: Likewise.
19042         * tests/test-fsync.c: Likewise.
19043         * tests/test-ftell.c: Likewise.
19044         * tests/test-ftello.c: Likewise.
19045         * tests/test-func.c: Likewise.
19046         * tests/test-futimens.c: Likewise.
19047         * tests/test-fwritable.c: Likewise.
19048         * tests/test-fwriting.c: Likewise.
19049         * tests/test-getcwd.c: Likewise.
19050         * tests/test-getdate.c: Likewise.
19051         * tests/test-getdelim.c: Likewise.
19052         * tests/test-getdtablesize.c: Likewise.
19053         * tests/test-getgroups.c: Likewise.
19054         * tests/test-getline.c: Likewise.
19055         * tests/test-getndelim2.c: Likewise.
19056         * tests/test-glob.c: Likewise.
19057         * tests/test-hash.c: Likewise.
19058         * tests/test-i-ring.c: Likewise.
19059         * tests/test-iconv-utf.c: Likewise.
19060         * tests/test-iconv.c: Likewise.
19061         * tests/test-idpriv-drop.c: Likewise.
19062         * tests/test-idpriv-droptemp.c: Likewise.
19063         * tests/test-inet_ntop.c: Likewise.
19064         * tests/test-inet_pton.c: Likewise.
19065         * tests/test-isblank.c: Likewise.
19066         * tests/test-isfinite.c: Likewise.
19067         * tests/test-isinf.c: Likewise.
19068         * tests/test-isnan.c: Likewise.
19069         * tests/test-isnand.h: Likewise.
19070         * tests/test-isnanf.h: Likewise.
19071         * tests/test-isnanl.h: Likewise.
19072         * tests/test-lchown.c: Likewise.
19073         * tests/test-ldexpl.c: Likewise.
19074         * tests/test-link.c: Likewise.
19075         * tests/test-linkat.c: Likewise.
19076         * tests/test-linked_list.c: Likewise.
19077         * tests/test-linkedhash_list.c: Likewise.
19078         * tests/test-localename.c: Likewise.
19079         * tests/test-lseek.c: Likewise.
19080         * tests/test-lstat.c: Likewise.
19081         * tests/test-mbmemcasecmp.c: Likewise.
19082         * tests/test-mbmemcasecoll.c: Likewise.
19083         * tests/test-mbrtowc.c: Likewise.
19084         * tests/test-mbscasecmp.c: Likewise.
19085         * tests/test-mbscasestr1.c: Likewise.
19086         * tests/test-mbscasestr2.c: Likewise.
19087         * tests/test-mbscasestr3.c: Likewise.
19088         * tests/test-mbscasestr4.c: Likewise.
19089         * tests/test-mbschr.c: Likewise.
19090         * tests/test-mbscspn.c: Likewise.
19091         * tests/test-mbsinit.c: Likewise.
19092         * tests/test-mbsncasecmp.c: Likewise.
19093         * tests/test-mbsnrtowcs.c: Likewise.
19094         * tests/test-mbspbrk.c: Likewise.
19095         * tests/test-mbspcasecmp.c: Likewise.
19096         * tests/test-mbsrchr.c: Likewise.
19097         * tests/test-mbsrtowcs.c: Likewise.
19098         * tests/test-mbsspn.c: Likewise.
19099         * tests/test-mbsstr1.c: Likewise.
19100         * tests/test-mbsstr2.c: Likewise.
19101         * tests/test-mbsstr3.c: Likewise.
19102         * tests/test-memchr.c: Likewise.
19103         * tests/test-memchr2.c: Likewise.
19104         * tests/test-memcmp.c: Likewise.
19105         * tests/test-memmem.c: Likewise.
19106         * tests/test-memrchr.c: Likewise.
19107         * tests/test-mkdir.c: Likewise.
19108         * tests/test-mkdirat.c: Likewise.
19109         * tests/test-mkfifo.c: Likewise.
19110         * tests/test-mkfifoat.c: Likewise.
19111         * tests/test-mknod.c: Likewise.
19112         * tests/test-nanosleep.c: Likewise.
19113         * tests/test-nl_langinfo.c: Likewise.
19114         * tests/test-obstack-printf.c: Likewise.
19115         * tests/test-open.c: Likewise.
19116         * tests/test-openat.c: Likewise.
19117         * tests/test-pipe-filter-gi1.c: Likewise.
19118         * tests/test-pipe-filter-gi2-main.c: Likewise.
19119         * tests/test-pipe-filter-ii1.c: Likewise.
19120         * tests/test-pipe-filter-ii2-main.c: Likewise.
19121         * tests/test-pipe2.c: Likewise.
19122         * tests/test-popen.h: Likewise.
19123         * tests/test-posixtm.c: Likewise.
19124         * tests/test-pread.c: Likewise.
19125         * tests/test-printf-frexp.c: Likewise.
19126         * tests/test-printf-frexpl.c: Likewise.
19127         * tests/test-printf-posix.c: Likewise.
19128         * tests/test-priv-set.c: Likewise.
19129         * tests/test-quotearg.c: Likewise.
19130         * tests/test-random_r.c: Likewise.
19131         * tests/test-rawmemchr.c: Likewise.
19132         * tests/test-rbtree_list.c: Likewise.
19133         * tests/test-rbtree_oset.c: Likewise.
19134         * tests/test-rbtreehash_list.c: Likewise.
19135         * tests/test-readlink.c: Likewise.
19136         * tests/test-remove.c: Likewise.
19137         * tests/test-rename.c: Likewise.
19138         * tests/test-renameat.c: Likewise.
19139         * tests/test-rmdir.c: Likewise.
19140         * tests/test-round1.c: Likewise.
19141         * tests/test-roundf1.c: Likewise.
19142         * tests/test-roundl.c: Likewise.
19143         * tests/test-safe-alloc.c: Likewise.
19144         * tests/test-sameacls.c: Likewise.
19145         * tests/test-set-mode-acl.c: Likewise.
19146         * tests/test-setenv.c: Likewise.
19147         * tests/test-sigaction.c: Likewise.
19148         * tests/test-signbit.c: Likewise.
19149         * tests/test-sleep.c: Likewise.
19150         * tests/test-snprintf-posix.c: Likewise.
19151         * tests/test-snprintf.c: Likewise.
19152         * tests/test-sprintf-posix.c: Likewise.
19153         * tests/test-stat-time.c: Likewise.
19154         * tests/test-stat.c: Likewise.
19155         * tests/test-strcasestr.c: Likewise.
19156         * tests/test-strchrnul.c: Likewise.
19157         * tests/test-strerror.c: Likewise.
19158         * tests/test-striconv.c: Likewise.
19159         * tests/test-striconveh.c: Likewise.
19160         * tests/test-striconveha.c: Likewise.
19161         * tests/test-strsignal.c: Likewise.
19162         * tests/test-strstr.c: Likewise.
19163         * tests/test-strtod.c: Likewise.
19164         * tests/test-strverscmp.c: Likewise.
19165         * tests/test-symlink.c: Likewise.
19166         * tests/test-symlinkat.c: Likewise.
19167         * tests/test-trunc1.c: Likewise.
19168         * tests/test-trunc2.c: Likewise.
19169         * tests/test-truncf1.c: Likewise.
19170         * tests/test-truncf2.c: Likewise.
19171         * tests/test-truncl.c: Likewise.
19172         * tests/test-uname.c: Likewise.
19173         * tests/test-unlink.c: Likewise.
19174         * tests/test-unlinkat.c: Likewise.
19175         * tests/test-unsetenv.c: Likewise.
19176         * tests/test-usleep.c: Likewise.
19177         * tests/test-utimens.c: Likewise.
19178         * tests/test-utimensat.c: Likewise.
19179         * tests/test-vasnprintf-posix.c: Likewise.
19180         * tests/test-vasnprintf-posix2.c: Likewise.
19181         * tests/test-vasnprintf.c: Likewise.
19182         * tests/test-vasprintf-posix.c: Likewise.
19183         * tests/test-vasprintf.c: Likewise.
19184         * tests/test-vdprintf-posix.c: Likewise.
19185         * tests/test-vfprintf-posix.c: Likewise.
19186         * tests/test-vprintf-posix.c: Likewise.
19187         * tests/test-vsnprintf-posix.c: Likewise.
19188         * tests/test-vsnprintf.c: Likewise.
19189         * tests/test-vsprintf-posix.c: Likewise.
19190         * tests/test-wcrtomb.c: Likewise.
19191         * tests/test-wcsnrtombs.c: Likewise.
19192         * tests/test-wcsrtombs.c: Likewise.
19193         * tests/test-wctype.c: Likewise.
19194         * tests/test-wcwidth.c: Likewise.
19195         * tests/test-xfprintf-posix.c: Likewise.
19196         * tests/test-xmemdup0.c: Likewise.
19197         * tests/test-xprintf-posix.c: Likewise.
19198         * tests/test-xvasprintf.c: Likewise.
19199         * tests/unicase/test-locale-language.c: Likewise.
19200         * tests/unicase/test-mapping-part1.h: Likewise.
19201         * tests/unicase/test-predicate-part1.h: Likewise.
19202         * tests/unicase/test-u8-casecmp.c: Likewise.
19203         * tests/unicase/test-u8-casecoll.c: Likewise.
19204         * tests/unicase/test-u8-casefold.c: Likewise.
19205         * tests/unicase/test-u8-is-cased.c: Likewise.
19206         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19207         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19208         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19209         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19210         * tests/unicase/test-u8-tolower.c: Likewise.
19211         * tests/unicase/test-u8-totitle.c: Likewise.
19212         * tests/unicase/test-u8-toupper.c: Likewise.
19213         * tests/unicase/test-u16-casecmp.c: Likewise.
19214         * tests/unicase/test-u16-casecoll.c: Likewise.
19215         * tests/unicase/test-u16-casefold.c: Likewise.
19216         * tests/unicase/test-u16-is-cased.c: Likewise.
19217         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19218         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19219         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19220         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19221         * tests/unicase/test-u16-tolower.c: Likewise.
19222         * tests/unicase/test-u16-totitle.c: Likewise.
19223         * tests/unicase/test-u16-toupper.c: Likewise.
19224         * tests/unicase/test-u32-casecmp.c: Likewise.
19225         * tests/unicase/test-u32-casecoll.c: Likewise.
19226         * tests/unicase/test-u32-casefold.c: Likewise.
19227         * tests/unicase/test-u32-is-cased.c: Likewise.
19228         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19229         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19230         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19231         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19232         * tests/unicase/test-u32-tolower.c: Likewise.
19233         * tests/unicase/test-u32-totitle.c: Likewise.
19234         * tests/unicase/test-u32-toupper.c: Likewise.
19235         * tests/unicase/test-ulc-casecmp.c: Likewise.
19236         * tests/unicase/test-ulc-casecoll.c: Likewise.
19237         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19238         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19239         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19240         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19241         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19242         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19243         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19244         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19245         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19246         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19247         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19248         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19249         * tests/unictype/test-bidi_byname.c: Likewise.
19250         * tests/unictype/test-bidi_name.c: Likewise.
19251         * tests/unictype/test-bidi_of.c: Likewise.
19252         * tests/unictype/test-bidi_test.c: Likewise.
19253         * tests/unictype/test-block_list.c: Likewise.
19254         * tests/unictype/test-block_of.c: Likewise.
19255         * tests/unictype/test-block_test.c: Likewise.
19256         * tests/unictype/test-categ_and.c: Likewise.
19257         * tests/unictype/test-categ_and_not.c: Likewise.
19258         * tests/unictype/test-categ_byname.c: Likewise.
19259         * tests/unictype/test-categ_name.c: Likewise.
19260         * tests/unictype/test-categ_none.c: Likewise.
19261         * tests/unictype/test-categ_of.c: Likewise.
19262         * tests/unictype/test-categ_or.c: Likewise.
19263         * tests/unictype/test-categ_test_withtable.c: Likewise.
19264         * tests/unictype/test-combining.c: Likewise.
19265         * tests/unictype/test-decdigit.c: Likewise.
19266         * tests/unictype/test-digit.c: Likewise.
19267         * tests/unictype/test-mirror.c: Likewise.
19268         * tests/unictype/test-numeric.c: Likewise.
19269         * tests/unictype/test-pr_byname.c: Likewise.
19270         * tests/unictype/test-pr_test.c: Likewise.
19271         * tests/unictype/test-predicate-part1.h: Likewise.
19272         * tests/unictype/test-scripts.c: Likewise.
19273         * tests/unictype/test-sy_c_ident.c: Likewise.
19274         * tests/unictype/test-sy_java_ident.c: Likewise.
19275         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19276         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19277         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19278         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19279         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19280         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19281         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19282         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19283         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19284         * tests/uninorm/test-compat-decomposition.c: Likewise.
19285         * tests/uninorm/test-composition.c: Likewise.
19286         * tests/uninorm/test-decomposing-form.c: Likewise.
19287         * tests/uninorm/test-decomposition.c: Likewise.
19288         * tests/uninorm/test-u8-nfc.c: Likewise.
19289         * tests/uninorm/test-u8-nfd.c: Likewise.
19290         * tests/uninorm/test-u8-nfkc.c: Likewise.
19291         * tests/uninorm/test-u8-nfkd.c: Likewise.
19292         * tests/uninorm/test-u8-normcmp.c: Likewise.
19293         * tests/uninorm/test-u8-normcoll.c: Likewise.
19294         * tests/uninorm/test-u16-nfc.c: Likewise.
19295         * tests/uninorm/test-u16-nfd.c: Likewise.
19296         * tests/uninorm/test-u16-nfkc.c: Likewise.
19297         * tests/uninorm/test-u16-nfkd.c: Likewise.
19298         * tests/uninorm/test-u16-normcmp.c: Likewise.
19299         * tests/uninorm/test-u16-normcoll.c: Likewise.
19300         * tests/uninorm/test-u32-nfc.c: Likewise.
19301         * tests/uninorm/test-u32-nfd.c: Likewise.
19302         * tests/uninorm/test-u32-nfkc.c: Likewise.
19303         * tests/uninorm/test-u32-nfkd.c: Likewise.
19304         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19305         * tests/uninorm/test-u32-normcmp.c: Likewise.
19306         * tests/uninorm/test-u32-normcoll.c: Likewise.
19307         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19308         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19309         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19310         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19311         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19312         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19313         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19314         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19315         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19316         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19317         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19318         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19319         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19320         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19321         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19322         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19323         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19324         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19325         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19326         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19327         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19328         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19329         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19330         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19331         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19332         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19333         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19334         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19335         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19336         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19337         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19338         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19339         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19340         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19341         * tests/uniwidth/test-u8-width.c: Likewise.
19342         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19343         * tests/uniwidth/test-u16-width.c: Likewise.
19344         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19345         * tests/uniwidth/test-u32-width.c: Likewise.
19346         * tests/uniwidth/test-uc_width.c: Likewise.
19347         * tests/uniwidth/test-uc_width2.c: Likewise.
19348         * modules/acl-tests (Files): Add tests/macros.h.
19349         * modules/areadlink-tests (Files): Likewise.
19350         * modules/areadlink-with-size-tests (Files): Likewise.
19351         * modules/areadlinkat-tests (Files): Likewise.
19352         * modules/areadlinkat-with-size-tests (Files): Likewise.
19353         * modules/argmatch-tests (Files): Likewise.
19354         * modules/argv-iter-tests (Files): Likewise.
19355         * modules/array-list-tests (Files): Likewise.
19356         * modules/array-mergesort-tests (Files): Likewise.
19357         * modules/array-oset-tests (Files): Likewise.
19358         * modules/avltree-list-tests (Files): Likewise.
19359         * modules/avltree-oset-tests (Files): Likewise.
19360         * modules/avltreehash-list-tests (Files): Likewise.
19361         * modules/base64-tests (Files): Likewise.
19362         * modules/binary-io-tests (Files): Likewise.
19363         * modules/bitrotate-tests (Files): Likewise.
19364         * modules/btowc-tests (Files): Likewise.
19365         * modules/byteswap-tests (Files): Likewise.
19366         * modules/c-ctype-tests (Files): Likewise.
19367         * modules/c-stack-tests (Files): Likewise.
19368         * modules/c-strcase-tests (Files): Likewise.
19369         * modules/c-strcasestr-tests (Files): Likewise.
19370         * modules/c-strstr-tests (Files): Likewise.
19371         * modules/canonicalize-lgpl-tests (Files): Likewise.
19372         * modules/canonicalize-tests (Files): Likewise.
19373         * modules/carray-list-tests (Files): Likewise.
19374         * modules/ceilf-tests (Files): Likewise.
19375         * modules/ceill-tests (Files): Likewise.
19376         * modules/chown-tests (Files): Likewise.
19377         * modules/cloexec-tests (Files): Likewise.
19378         * modules/copy-file-tests (Files): Likewise.
19379         * modules/count-one-bits-tests (Files): Likewise.
19380         * modules/dprintf-posix-tests (Files): Likewise.
19381         * modules/dup2-tests (Files): Likewise.
19382         * modules/dup3-tests (Files): Likewise.
19383         * modules/duplocale-tests (Files): Likewise.
19384         * modules/fbufmode-tests (Files): Likewise.
19385         * modules/fchdir-tests (Files): Likewise.
19386         * modules/fcntl-safer-tests (Files): Likewise.
19387         * modules/fcntl-tests (Files): Likewise.
19388         * modules/fdopendir-tests (Files): Likewise.
19389         * modules/fdutimensat-tests (Files): Likewise.
19390         * modules/fflush-tests (Files): Likewise.
19391         * modules/filevercmp-tests (Files): Likewise.
19392         * modules/flock-tests (Files): Likewise.
19393         * modules/floorf-tests (Files): Likewise.
19394         * modules/floorl-tests (Files): Likewise.
19395         * modules/fnmatch-tests (Files): Likewise.
19396         * modules/fopen-safer-tests (Files): Likewise.
19397         * modules/fopen-tests (Files): Likewise.
19398         * modules/fpending-tests (Files): Likewise.
19399         * modules/fprintf-posix-tests (Files): Likewise.
19400         * modules/fpurge-tests (Files): Likewise.
19401         * modules/freadable-tests (Files): Likewise.
19402         * modules/freadahead-tests (Files): Likewise.
19403         * modules/freading-tests (Files): Likewise.
19404         * modules/freadptr-tests (Files): Likewise.
19405         * modules/freadseek-tests (Files): Likewise.
19406         * modules/freopen-tests (Files): Likewise.
19407         * modules/frexp-nolibm-tests (Files): Likewise.
19408         * modules/frexp-tests (Files): Likewise.
19409         * modules/frexpl-nolibm-tests (Files): Likewise.
19410         * modules/frexpl-tests (Files): Likewise.
19411         * modules/fseek-tests (Files): Likewise.
19412         * modules/fseeko-tests (Files): Likewise.
19413         * modules/fstrcmp-tests (Files): Likewise.
19414         * modules/fsync-tests (Files): Likewise.
19415         * modules/ftell-tests (Files): Likewise.
19416         * modules/ftello-tests (Files): Likewise.
19417         * modules/func-tests (Files): Likewise.
19418         * modules/futimens-tests (Files): Likewise.
19419         * modules/fwritable-tests (Files): Likewise.
19420         * modules/fwriting-tests (Files): Likewise.
19421         * modules/getcwd-tests (Files): Likewise.
19422         * modules/getdate-tests (Files): Likewise.
19423         * modules/getdelim-tests (Files): Likewise.
19424         * modules/getdtablesize-tests (Files): Likewise.
19425         * modules/getgroups-tests (Files): Likewise.
19426         * modules/getline-tests (Files): Likewise.
19427         * modules/getndelim2-tests (Files): Likewise.
19428         * modules/glob-tests (Files): Likewise.
19429         * modules/hash-tests (Files): Likewise.
19430         * modules/i-ring-tests (Files): Likewise.
19431         * modules/iconv-tests (Files): Likewise.
19432         * modules/iconv_open-utf-tests (Files): Likewise.
19433         * modules/idpriv-drop-tests (Files): Likewise.
19434         * modules/idpriv-droptemp-tests (Files): Likewise.
19435         * modules/inet_ntop-tests (Files): Likewise.
19436         * modules/inet_pton-tests (Files): Likewise.
19437         * modules/isblank-tests (Files): Likewise.
19438         * modules/isfinite-tests (Files): Likewise.
19439         * modules/isinf-tests (Files): Likewise.
19440         * modules/isnan-tests (Files): Likewise.
19441         * modules/isnand-nolibm-tests (Files): Likewise.
19442         * modules/isnand-tests (Files): Likewise.
19443         * modules/isnanf-nolibm-tests (Files): Likewise.
19444         * modules/isnanf-tests (Files): Likewise.
19445         * modules/isnanl-nolibm-tests (Files): Likewise.
19446         * modules/isnanl-tests (Files): Likewise.
19447         * modules/lchown-tests (Files): Likewise.
19448         * modules/ldexpl-tests (Files): Likewise.
19449         * modules/link-tests (Files): Likewise.
19450         * modules/linkat-tests (Files): Likewise.
19451         * modules/linked-list-tests (Files): Likewise.
19452         * modules/linkedhash-list-tests (Files): Likewise.
19453         * modules/localename-tests (Files): Likewise.
19454         * modules/lseek-tests (Files): Likewise.
19455         * modules/lstat-tests (Files): Likewise.
19456         * modules/mbmemcasecmp-tests (Files): Likewise.
19457         * modules/mbmemcasecoll-tests (Files): Likewise.
19458         * modules/mbrtowc-tests (Files): Likewise.
19459         * modules/mbscasecmp-tests (Files): Likewise.
19460         * modules/mbscasestr-tests (Files): Likewise.
19461         * modules/mbschr-tests (Files): Likewise.
19462         * modules/mbscspn-tests (Files): Likewise.
19463         * modules/mbsinit-tests (Files): Likewise.
19464         * modules/mbsncasecmp-tests (Files): Likewise.
19465         * modules/mbsnrtowcs-tests (Files): Likewise.
19466         * modules/mbspbrk-tests (Files): Likewise.
19467         * modules/mbspcasecmp-tests (Files): Likewise.
19468         * modules/mbsrchr-tests (Files): Likewise.
19469         * modules/mbsrtowcs-tests (Files): Likewise.
19470         * modules/mbsspn-tests (Files): Likewise.
19471         * modules/mbsstr-tests (Files): Likewise.
19472         * modules/memchr-tests (Files): Likewise.
19473         * modules/memchr2-tests (Files): Likewise.
19474         * modules/memcmp-tests (Files): Likewise.
19475         * modules/memmem-tests (Files): Likewise.
19476         * modules/memrchr-tests (Files): Likewise.
19477         * modules/mkdir-tests (Files): Likewise.
19478         * modules/mkfifo-tests (Files): Likewise.
19479         * modules/mkfifoat-tests (Files): Likewise.
19480         * modules/mknod-tests (Files): Likewise.
19481         * modules/nanosleep-tests (Files): Likewise.
19482         * modules/nl_langinfo-tests (Files): Likewise.
19483         * modules/obstack-printf-tests (Files): Likewise.
19484         * modules/open-tests (Files): Likewise.
19485         * modules/openat-tests (Files): Likewise.
19486         * modules/pipe-filter-gi-tests (Files): Likewise.
19487         * modules/pipe-filter-ii-tests (Files): Likewise.
19488         * modules/pipe2-tests (Files): Likewise.
19489         * modules/popen-safer-tests (Files): Likewise.
19490         * modules/popen-tests (Files): Likewise.
19491         * modules/posixtm-tests (Files): Likewise.
19492         * modules/pread-tests (Files): Likewise.
19493         * modules/printf-frexp-tests (Files): Likewise.
19494         * modules/printf-frexpl-tests (Files): Likewise.
19495         * modules/printf-posix-tests (Files): Likewise.
19496         * modules/priv-set-tests (Files): Likewise.
19497         * modules/quotearg-tests (Files): Likewise.
19498         * modules/random_r-tests (Files): Likewise.
19499         * modules/rawmemchr-tests (Files): Likewise.
19500         * modules/rbtree-list-tests (Files): Likewise.
19501         * modules/rbtree-oset-tests (Files): Likewise.
19502         * modules/rbtreehash-list-tests (Files): Likewise.
19503         * modules/readlink-tests (Files): Likewise.
19504         * modules/remove-tests (Files): Likewise.
19505         * modules/rename-tests (Files): Likewise.
19506         * modules/renameat-tests (Files): Likewise.
19507         * modules/rmdir-tests (Files): Likewise.
19508         * modules/round-tests (Files): Likewise.
19509         * modules/roundf-tests (Files): Likewise.
19510         * modules/roundl-tests (Files): Likewise.
19511         * modules/safe-alloc-tests (Files): Likewise.
19512         * modules/setenv-tests (Files): Likewise.
19513         * modules/sigaction-tests (Files): Likewise.
19514         * modules/signbit-tests (Files): Likewise.
19515         * modules/sleep-tests (Files): Likewise.
19516         * modules/snprintf-posix-tests (Files): Likewise.
19517         * modules/snprintf-tests (Files): Likewise.
19518         * modules/sprintf-posix-tests (Files): Likewise.
19519         * modules/stat-tests (Files): Likewise.
19520         * modules/stat-time-tests (Files): Likewise.
19521         * modules/strcasestr-tests (Files): Likewise.
19522         * modules/strchrnul-tests (Files): Likewise.
19523         * modules/strerror-tests (Files): Likewise.
19524         * modules/striconv-tests (Files): Likewise.
19525         * modules/striconveh-tests (Files): Likewise.
19526         * modules/striconveha-tests (Files): Likewise.
19527         * modules/strsignal-tests (Files): Likewise.
19528         * modules/strstr-tests (Files): Likewise.
19529         * modules/strtod-tests (Files): Likewise.
19530         * modules/strverscmp-tests (Files): Likewise.
19531         * modules/symlink-tests (Files): Likewise.
19532         * modules/symlinkat-tests (Files): Likewise.
19533         * modules/trunc-tests (Files): Likewise.
19534         * modules/truncf-tests (Files): Likewise.
19535         * modules/truncl-tests (Files): Likewise.
19536         * modules/uname-tests (Files): Likewise.
19537         * modules/unicase/cased-tests (Files): Likewise.
19538         * modules/unicase/ignorable-tests (Files): Likewise.
19539         * modules/unicase/locale-language-tests (Files): Likewise.
19540         * modules/unicase/tolower-tests (Files): Likewise.
19541         * modules/unicase/totitle-tests (Files): Likewise.
19542         * modules/unicase/toupper-tests (Files): Likewise.
19543         * modules/unicase/u8-casecmp-tests (Files): Likewise.
19544         * modules/unicase/u8-casecoll-tests (Files): Likewise.
19545         * modules/unicase/u8-casefold-tests (Files): Likewise.
19546         * modules/unicase/u8-is-cased-tests (Files): Likewise.
19547         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
19548         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
19549         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
19550         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
19551         * modules/unicase/u8-tolower-tests (Files): Likewise.
19552         * modules/unicase/u8-totitle-tests (Files): Likewise.
19553         * modules/unicase/u8-toupper-tests (Files): Likewise.
19554         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19555         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19556         * modules/unicase/u16-casefold-tests (Files): Likewise.
19557         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19558         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19559         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19560         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19561         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19562         * modules/unicase/u16-tolower-tests (Files): Likewise.
19563         * modules/unicase/u16-totitle-tests (Files): Likewise.
19564         * modules/unicase/u16-toupper-tests (Files): Likewise.
19565         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19566         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19567         * modules/unicase/u32-casefold-tests (Files): Likewise.
19568         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19569         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19570         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19571         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19572         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19573         * modules/unicase/u32-tolower-tests (Files): Likewise.
19574         * modules/unicase/u32-totitle-tests (Files): Likewise.
19575         * modules/unicase/u32-toupper-tests (Files): Likewise.
19576         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19577         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19578         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19579         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19580         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19581         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19582         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19583         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19584         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19585         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19586         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19587         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19588         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19589         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19590         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19591         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19592         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19593         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19594         * modules/unictype/block-list-tests (Files): Likewise.
19595         * modules/unictype/block-of-tests (Files): Likewise.
19596         * modules/unictype/block-test-tests (Files): Likewise.
19597         * modules/unictype/category-C-tests (Files): Likewise.
19598         * modules/unictype/category-Cc-tests (Files): Likewise.
19599         * modules/unictype/category-Cf-tests (Files): Likewise.
19600         * modules/unictype/category-Cn-tests (Files): Likewise.
19601         * modules/unictype/category-Co-tests (Files): Likewise.
19602         * modules/unictype/category-Cs-tests (Files): Likewise.
19603         * modules/unictype/category-L-tests (Files): Likewise.
19604         * modules/unictype/category-Ll-tests (Files): Likewise.
19605         * modules/unictype/category-Lm-tests (Files): Likewise.
19606         * modules/unictype/category-Lo-tests (Files): Likewise.
19607         * modules/unictype/category-Lt-tests (Files): Likewise.
19608         * modules/unictype/category-Lu-tests (Files): Likewise.
19609         * modules/unictype/category-M-tests (Files): Likewise.
19610         * modules/unictype/category-Mc-tests (Files): Likewise.
19611         * modules/unictype/category-Me-tests (Files): Likewise.
19612         * modules/unictype/category-Mn-tests (Files): Likewise.
19613         * modules/unictype/category-N-tests (Files): Likewise.
19614         * modules/unictype/category-Nd-tests (Files): Likewise.
19615         * modules/unictype/category-Nl-tests (Files): Likewise.
19616         * modules/unictype/category-No-tests (Files): Likewise.
19617         * modules/unictype/category-P-tests (Files): Likewise.
19618         * modules/unictype/category-Pc-tests (Files): Likewise.
19619         * modules/unictype/category-Pd-tests (Files): Likewise.
19620         * modules/unictype/category-Pe-tests (Files): Likewise.
19621         * modules/unictype/category-Pf-tests (Files): Likewise.
19622         * modules/unictype/category-Pi-tests (Files): Likewise.
19623         * modules/unictype/category-Po-tests (Files): Likewise.
19624         * modules/unictype/category-Ps-tests (Files): Likewise.
19625         * modules/unictype/category-S-tests (Files): Likewise.
19626         * modules/unictype/category-Sc-tests (Files): Likewise.
19627         * modules/unictype/category-Sk-tests (Files): Likewise.
19628         * modules/unictype/category-Sm-tests (Files): Likewise.
19629         * modules/unictype/category-So-tests (Files): Likewise.
19630         * modules/unictype/category-Z-tests (Files): Likewise.
19631         * modules/unictype/category-Zl-tests (Files): Likewise.
19632         * modules/unictype/category-Zp-tests (Files): Likewise.
19633         * modules/unictype/category-Zs-tests (Files): Likewise.
19634         * modules/unictype/category-and-not-tests (Files): Likewise.
19635         * modules/unictype/category-and-tests (Files): Likewise.
19636         * modules/unictype/category-byname-tests (Files): Likewise.
19637         * modules/unictype/category-name-tests (Files): Likewise.
19638         * modules/unictype/category-none-tests (Files): Likewise.
19639         * modules/unictype/category-of-tests (Files): Likewise.
19640         * modules/unictype/category-or-tests (Files): Likewise.
19641         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19642         * modules/unictype/combining-class-tests (Files): Likewise.
19643         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19644         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19645         * modules/unictype/ctype-blank-tests (Files): Likewise.
19646         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19647         * modules/unictype/ctype-digit-tests (Files): Likewise.
19648         * modules/unictype/ctype-graph-tests (Files): Likewise.
19649         * modules/unictype/ctype-lower-tests (Files): Likewise.
19650         * modules/unictype/ctype-print-tests (Files): Likewise.
19651         * modules/unictype/ctype-punct-tests (Files): Likewise.
19652         * modules/unictype/ctype-space-tests (Files): Likewise.
19653         * modules/unictype/ctype-upper-tests (Files): Likewise.
19654         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19655         * modules/unictype/decimal-digit-tests (Files): Likewise.
19656         * modules/unictype/digit-tests (Files): Likewise.
19657         * modules/unictype/mirror-tests (Files): Likewise.
19658         * modules/unictype/numeric-tests (Files): Likewise.
19659         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19660         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19661         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19662         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19663         Likewise.
19664         * modules/unictype/property-bidi-block-separator-tests (Files):
19665         Likewise.
19666         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19667         Likewise.
19668         * modules/unictype/property-bidi-common-separator-tests (Files):
19669         Likewise.
19670         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19671         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19672         Likewise.
19673         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19674         Likewise.
19675         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19676         Likewise.
19677         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19678         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19679         Likewise.
19680         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19681         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19682         Likewise.
19683         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19684         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19685         * modules/unictype/property-bidi-segment-separator-tests (Files):
19686         Likewise.
19687         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19688         * modules/unictype/property-byname-tests (Files): Likewise.
19689         * modules/unictype/property-combining-tests (Files): Likewise.
19690         * modules/unictype/property-composite-tests (Files): Likewise.
19691         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19692         * modules/unictype/property-dash-tests (Files): Likewise.
19693         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19694         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19695         Likewise.
19696         * modules/unictype/property-deprecated-tests (Files): Likewise.
19697         * modules/unictype/property-diacritic-tests (Files): Likewise.
19698         * modules/unictype/property-extender-tests (Files): Likewise.
19699         * modules/unictype/property-format-control-tests (Files): Likewise.
19700         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19701         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19702         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19703         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19704         * modules/unictype/property-hyphen-tests (Files): Likewise.
19705         * modules/unictype/property-id-continue-tests (Files): Likewise.
19706         * modules/unictype/property-id-start-tests (Files): Likewise.
19707         * modules/unictype/property-ideographic-tests (Files): Likewise.
19708         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19709         * modules/unictype/property-ids-trinary-operator-tests (Files):
19710         Likewise.
19711         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19712         * modules/unictype/property-iso-control-tests (Files): Likewise.
19713         * modules/unictype/property-join-control-tests (Files): Likewise.
19714         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19715         * modules/unictype/property-line-separator-tests (Files): Likewise.
19716         * modules/unictype/property-logical-order-exception-tests (Files):
19717         Likewise.
19718         * modules/unictype/property-lowercase-tests (Files): Likewise.
19719         * modules/unictype/property-math-tests (Files): Likewise.
19720         * modules/unictype/property-non-break-tests (Files): Likewise.
19721         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19722         * modules/unictype/property-numeric-tests (Files): Likewise.
19723         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19724         * modules/unictype/property-other-default-ignorable-code-point-tests
19725         (Files): Likewise.
19726         * modules/unictype/property-other-grapheme-extend-tests (Files):
19727         Likewise.
19728         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19729         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19730         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19731         * modules/unictype/property-other-math-tests (Files): Likewise.
19732         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19733         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19734         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19735         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19736         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19737         * modules/unictype/property-private-use-tests (Files): Likewise.
19738         * modules/unictype/property-punctuation-tests (Files): Likewise.
19739         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19740         * modules/unictype/property-radical-tests (Files): Likewise.
19741         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19742         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19743         * modules/unictype/property-space-tests (Files): Likewise.
19744         * modules/unictype/property-terminal-punctuation-tests (Files):
19745         Likewise.
19746         * modules/unictype/property-test-tests (Files): Likewise.
19747         * modules/unictype/property-titlecase-tests (Files): Likewise.
19748         * modules/unictype/property-unassigned-code-value-tests (Files):
19749         Likewise.
19750         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19751         * modules/unictype/property-uppercase-tests (Files): Likewise.
19752         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19753         * modules/unictype/property-white-space-tests (Files): Likewise.
19754         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19755         * modules/unictype/property-xid-start-tests (Files): Likewise.
19756         * modules/unictype/property-zero-width-tests (Files): Likewise.
19757         * modules/unictype/scripts-tests (Files): Likewise.
19758         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19759         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19760         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19761         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19762         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19763         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19764         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19765         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19766         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19767         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19768         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19769         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19770         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19771         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19772         * modules/uninorm/composition-tests (Files): Likewise.
19773         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19774         * modules/uninorm/decomposition-tests (Files): Likewise.
19775         * modules/uninorm/filter-tests (Files): Likewise.
19776         * modules/uninorm/nfc-tests (Files): Likewise.
19777         * modules/uninorm/nfd-tests (Files): Likewise.
19778         * modules/uninorm/nfkc-tests (Files): Likewise.
19779         * modules/uninorm/nfkd-tests (Files): Likewise.
19780         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19781         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19782         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19783         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19784         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19785         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19786         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19787         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19788         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19789         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19790         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19791         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19792         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19793         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19794         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19795         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19796         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19797         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19798         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19799         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19800         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19801         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19802         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19803         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19804         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19805         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19806         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19807         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19808         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19809         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19810         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19811         * modules/uniwidth/u8-width-tests (Files): Likewise.
19812         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19813         * modules/uniwidth/u16-width-tests (Files): Likewise.
19814         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19815         * modules/uniwidth/u32-width-tests (Files): Likewise.
19816         * modules/uniwidth/width-tests (Files): Likewise.
19817         * modules/unlink-tests (Files): Likewise.
19818         * modules/unsetenv-tests (Files): Likewise.
19819         * modules/usleep-tests (Files): Likewise.
19820         * modules/utimens-tests (Files): Likewise.
19821         * modules/utimensat-tests (Files): Likewise.
19822         * modules/vasnprintf-posix-tests (Files): Likewise.
19823         * modules/vasnprintf-tests (Files): Likewise.
19824         * modules/vasprintf-posix-tests (Files): Likewise.
19825         * modules/vasprintf-tests (Files): Likewise.
19826         * modules/vdprintf-posix-tests (Files): Likewise.
19827         * modules/vfprintf-posix-tests (Files): Likewise.
19828         * modules/vprintf-posix-tests (Files): Likewise.
19829         * modules/vsnprintf-posix-tests (Files): Likewise.
19830         * modules/vsnprintf-tests (Files): Likewise.
19831         * modules/vsprintf-posix-tests (Files): Likewise.
19832         * modules/wcrtomb-tests (Files): Likewise.
19833         * modules/wcsnrtombs-tests (Files): Likewise.
19834         * modules/wcsrtombs-tests (Files): Likewise.
19835         * modules/wctype-tests (Files): Likewise.
19836         * modules/wcwidth-tests (Files): Likewise.
19837         * modules/xmemdup0-tests (Files): Likewise.
19838         * modules/xprintf-posix-tests (Files): Likewise.
19839         * modules/xvasprintf-tests (Files): Likewise.
19840
19841 2009-12-24  Eric Blake  <ebb9@byu.net>
19842
19843         test-nanosleep: fix typo
19844         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19845         patch.
19846         Reported by Bruno Haible.
19847
19848 2009-12-24  Bruno Haible  <bruno@clisp.org>
19849
19850         Reduce namespace pollution on glibc systems.
19851         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19852         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19853         systems.
19854         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19855         <getopt.h> on glibc systems.
19856         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19857         systems.
19858         * lib/fcntl.c: Include <unistd.h> here instead.
19859
19860 2009-12-24  Bruno Haible  <bruno@clisp.org>
19861
19862         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19863
19864 2009-12-24  Eric Blake  <ebb9@byu.net>
19865
19866         tests: add signature checks
19867         * tests/signature.h (SIGNATURE_CHECK): New file.
19868         * modules/atexit-tests (Files): Use it.
19869         * modules/btowc-tests (Files): Likewise.
19870         * modules/canonicalize-lgpl-tests (Files): Likewise.
19871         * modules/ceilf-tests (Files): Likewise.
19872         * modules/ceill-tests (Files): Likewise.
19873         * modules/chown-tests (Files): Likewise.
19874         * modules/dprintf-posix-tests (Files): Likewise.
19875         * modules/dup2-tests (Files): Likewise.
19876         * modules/dup3-tests (Files): Likewise.
19877         * modules/duplocale-tests (Files): Likewise.
19878         * modules/fchdir-tests (Files): Likewise.
19879         * modules/fcntl-tests (Files): Likewise.
19880         * modules/fdopendir-tests (Files): Likewise.
19881         * modules/fflush-tests (Files): Likewise.
19882         * modules/flock-tests (Files): Likewise.
19883         * modules/floorf-tests (Files): Likewise.
19884         * modules/floorl-tests (Files): Likewise.
19885         * modules/fnmatch-tests (Files): Likewise.
19886         * modules/fopen-tests (Files): Likewise.
19887         * modules/fprintf-posix-tests (Files): Likewise.
19888         * modules/freopen-tests (Files): Likewise.
19889         * modules/frexp-nolibm-tests (Files): Likewise.
19890         * modules/frexp-tests (Files): Likewise.
19891         * modules/frexpl-nolibm-tests (Files): Likewise.
19892         * modules/frexpl-tests (Files): Likewise.
19893         * modules/fseek-tests (Files): Likewise.
19894         * modules/fseeko-tests (Files): Likewise.
19895         * modules/fsync-tests (Files): Likewise.
19896         * modules/ftell-tests (Files): Likewise.
19897         * modules/ftello-tests (Files): Likewise.
19898         * modules/futimens-tests (Files): Likewise.
19899         * modules/getaddrinfo-tests (Files): Likewise.
19900         * modules/getcwd-tests (Files): Likewise.
19901         * modules/getdelim-tests (Files): Likewise.
19902         * modules/getdtablesize-tests (Files): Likewise.
19903         * modules/getgroups-tests (Files): Likewise.
19904         * modules/gethostname-tests (Files): Likewise.
19905         * modules/getline-tests (Files): Likewise.
19906         * modules/getopt-posix-tests (Files): Likewise.
19907         * modules/gettimeofday-tests (Files): Likewise.
19908         * modules/glob-tests (Files): Likewise.
19909         * modules/iconv-tests (Files): Likewise.
19910         * modules/inet_ntop-tests (Files): Likewise.
19911         * modules/inet_pton-tests (Files): Likewise.
19912         * modules/isblank-tests (Files): Likewise.
19913         * modules/lchown-tests (Files): Likewise.
19914         * modules/ldexpl-tests (Files): Likewise.
19915         * modules/link-tests (Files): Likewise.
19916         * modules/linkat-tests (Files): Likewise.
19917         * modules/lseek-tests (Files): Likewise.
19918         * modules/lstat-tests (Files): Likewise.
19919         * modules/mbrtowc-tests (Files): Likewise.
19920         * modules/mbsinit-tests (Files): Likewise.
19921         * modules/mbsnrtowcs-tests (Files): Likewise.
19922         * modules/mbsrtowcs-tests (Files): Likewise.
19923         * modules/memchr-tests (Files): Likewise.
19924         * modules/memcmp-tests (Files): Likewise.
19925         * modules/memmem-tests (Files): Likewise.
19926         * modules/memrchr-tests (Files): Likewise.
19927         * modules/mkdir-tests (Files): Likewise.
19928         * modules/mkfifo-tests (Files): Likewise.
19929         * modules/mkfifoat-tests (Files): Likewise.
19930         * modules/mknod-tests (Files): Likewise.
19931         * modules/nanosleep-tests (Files): Likewise.
19932         * modules/nl_langinfo-tests (Files): Likewise.
19933         * modules/obstack-printf-tests (Files): Likewise.
19934         * modules/open-tests (Files): Likewise.
19935         * modules/openat-tests (Files): Likewise.
19936         * modules/perror-tests (Files): Likewise.
19937         * modules/pipe2-tests (Files): Likewise.
19938         * modules/poll-tests (Files): Likewise.
19939         * modules/popen-tests (Files): Likewise.
19940         * modules/posix_spawn-tests (Files): Likewise.
19941         * modules/posix_spawnp-tests (Files): Likewise.
19942         * modules/pread-tests (Files): Likewise.
19943         * modules/printf-posix-tests (Files): Likewise.
19944         * modules/pty-tests (Files): Likewise.
19945         * modules/random_r-tests (Files): Likewise.
19946         * modules/rawmemchr-tests (Files): Likewise.
19947         * modules/readlink-tests (Files): Likewise.
19948         * modules/remove-tests (Files): Likewise.
19949         * modules/rename-tests (Files): Likewise.
19950         * modules/renameat-tests (Files): Likewise.
19951         * modules/rmdir-tests (Files): Likewise.
19952         * modules/round-tests (Files): Likewise.
19953         * modules/roundf-tests (Files): Likewise.
19954         * modules/roundl-tests (Files): Likewise.
19955         * modules/select-tests (Files): Likewise.
19956         * modules/setenv-tests (Files): Likewise.
19957         * modules/sigaction-tests (Files): Likewise.
19958         * modules/sleep-tests (Files): Likewise.
19959         * modules/snprintf-posix-tests (Files): Likewise.
19960         * modules/snprintf-tests (Files): Likewise.
19961         * modules/sprintf-posix-tests (Files): Likewise.
19962         * modules/stat-tests (Files): Likewise.
19963         * modules/strcasestr-tests (Files): Likewise.
19964         * modules/strchrnul-tests (Files): Likewise.
19965         * modules/strerror-tests (Files): Likewise.
19966         * modules/strsignal-tests (Files): Likewise.
19967         * modules/strstr-tests (Files): Likewise.
19968         * modules/strtod-tests (Files): Likewise.
19969         * modules/strverscmp-tests (Files): Likewise.
19970         * modules/symlink-tests (Files): Likewise.
19971         * modules/symlinkat-tests (Files): Likewise.
19972         * modules/times-tests (Files): Likewise.
19973         * modules/trunc-tests (Files): Likewise.
19974         * modules/truncf-tests (Files): Likewise.
19975         * modules/truncl-tests (Files): Likewise.
19976         * modules/tsearch-tests (Files): Likewise.
19977         * modules/uname-tests (Files): Likewise.
19978         * modules/unlink-tests (Files): Likewise.
19979         * modules/unsetenv-tests (Files): Likewise.
19980         * modules/usleep-tests (Files): Likewise.
19981         * modules/utimensat-tests (Files): Likewise.
19982         * modules/vasprintf-tests (Files): Likewise.
19983         * modules/vdprintf-posix-tests (Files): Likewise.
19984         * modules/vfprintf-posix-tests (Files): Likewise.
19985         * modules/vprintf-posix-tests (Files): Likewise.
19986         * modules/vsnprintf-posix-tests (Files): Likewise.
19987         * modules/vsnprintf-tests (Files): Likewise.
19988         * modules/vsprintf-posix-tests (Files): Likewise.
19989         * modules/wcrtomb-tests (Files): Likewise.
19990         * modules/wcsnrtombs-tests (Files): Likewise.
19991         * modules/wcsrtombs-tests (Files): Likewise.
19992         * modules/wcwidth-tests (Files): Likewise.
19993         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19994         * tests/test-isinf.c (isinf): Likewise.
19995         * tests/test-isnan.c (isnan): Likewise.
19996         * tests/test-signbit.c (signbit): Likewise.
19997         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19998         declaration, either as macro or with correct signature.
19999         (select): Ensure function under test is declared with correct
20000         signature in correct header.
20001         * tests/test-atexit.c (atexit): Likewise.
20002         * tests/test-btowc.c (btowc): Likewise.
20003         * tests/test-canonicalize-lgpl.c (realpath)
20004         (canonicalize_file_name): Likewise.
20005         * tests/test-ceilf1.c (ceilf): Likewise.
20006         * tests/test-ceill.c (ceill): Likewise.
20007         * tests/test-chown.c (chown): Likewise.
20008         * tests/test-dprintf-posix.c (dprintf): Likewise.
20009         * tests/test-dup2.c (dup2): Likewise.
20010         * tests/test-dup3.c (dup3): Likewise.
20011         * tests/test-duplocale.c (duplocale): Likewise.
20012         * tests/test-fchdir.c (fchdir): Likewise.
20013         * tests/test-fchownat.c (fchownat): Likewise.
20014         * tests/test-fcntl.c (fcntl): Likewise.
20015         * tests/test-fdopendir.c (fdopendir): Likewise.
20016         * tests/test-fflush.c (fflush): Likewise.
20017         * tests/test-flock.c (flock): Likewise.
20018         * tests/test-floorf1.c (floorf): Likewise.
20019         * tests/test-floorl.c (floorl): Likewise.
20020         * tests/test-fnmatch.c (fnmatch): Likewise.
20021         * tests/test-fopen.c (fopen): Likewise.
20022         * tests/test-fprintf-posix.c (fprintf): Likewise.
20023         * tests/test-freopen.c (freopen): Likewise.
20024         * tests/test-frexp.c (frexp): Likewise.
20025         * tests/test-frexpl.c (frexpl): Likewise.
20026         * tests/test-fseek.c (fseek): Likewise.
20027         * tests/test-fseeko.c (fseeko): Likewise.
20028         * tests/test-fstatat.c (fstatat): Likewise.
20029         * tests/test-fsync.c (fsync): Likewise.
20030         * tests/test-ftell.c (ftell): Likewise.
20031         * tests/test-ftello.c (ftello): Likewise.
20032         * tests/test-futimens.c (futimens): Likewise.
20033         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20034         (gai_strerror): Likewise.
20035         * tests/test-getcwd.c (getcwd): Likewise.
20036         * tests/test-getdelim.c (getdelim): Likewise.
20037         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20038         * tests/test-getgroups.c (getgroups): Likewise.
20039         * tests/test-gethostname.c (gethostname): Likewise.
20040         * tests/test-getline.c (getline): Likewise.
20041         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20042         Likewise.
20043         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20044         * tests/test-glob.c (glob, globfree): Likewise.
20045         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20046         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20047         * tests/test-inet_pton.c (inet_pton): Likewise.
20048         * tests/test-isblank.c (isblank): Likewise.
20049         * tests/test-lchown.c (lchown): Likewise.
20050         * tests/test-ldexpl.c (ldexpl): Likewise.
20051         * tests/test-link.c (link): Likewise.
20052         * tests/test-linkat.c (linkat): Likewise.
20053         * tests/test-lseek.c (lseek): Likewise.
20054         * tests/test-lstat.c (lstat): Likewise.
20055         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20056         * tests/test-mbsinit.c (mbsinit): Likewise.
20057         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20058         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20059         * tests/test-memchr.c (memchr): Likewise.
20060         * tests/test-memcmp.c (memcmp): Likewise.
20061         * tests/test-memmem.c (memmem): Likewise.
20062         * tests/test-memrchr.c (memrchr): Likewise.
20063         * tests/test-mkdir.c (mkdir): Likewise.
20064         * tests/test-mkdirat.c (mkdirat): Likewise.
20065         * tests/test-mkfifo.c (mkfifo): Likewise.
20066         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20067         * tests/test-mknod.c (mknod): Likewise.
20068         * tests/test-nanosleep.c (nanosleep): Likewise.
20069         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20070         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20071         Likewise.
20072         * tests/test-open.c (open): Likewise.
20073         * tests/test-openat.c (openat): Likewise.
20074         * tests/test-perror.c (perror): Likewise.
20075         * tests/test-pipe2.c (pipe2): Likewise.
20076         * tests/test-poll.c (poll): Likewise.
20077         * tests/test-popen.c (popen, pclose): Likewise.
20078         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20079         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20080         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20081         (posix_spawn_file_actions_destroy)
20082         (posix_spawn_file_actions_addclose)
20083         (posix_spawn_file_actions_addopen)
20084         (posix_spawn_file_actions_adddup2): Likewise.
20085         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20086         * tests/test-pread.c (pread): Likewise.
20087         * tests/test-printf-posix.c (printf): Likewise.
20088         * tests/test-pty.c (openpty, forkpty): Likewise.
20089         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20090         (random_r): Likewise.
20091         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20092         * tests/test-readlink.c (readlink): Likewise.
20093         * tests/test-remove.c (remove): Likewise.
20094         * tests/test-rename.c (rename): Likewise.
20095         * tests/test-renameat.c (renameat): Likewise.
20096         * tests/test-rmdir.c (rmdir): Likewise.
20097         * tests/test-round1.c (round): Likewise.
20098         * tests/test-roundf1.c (roundf): Likewise.
20099         * tests/test-roundl.c (roundl): Likewise.
20100         * tests/test-setenv.c (setenv): Likewise.
20101         * tests/test-sigaction.c (sigaction): Likewise.
20102         * tests/test-sleep.c (sleep): Likewise.
20103         * tests/test-snprintf.c (snprintf): Likewise.
20104         * tests/test-sprintf-posix.c (sprintf): Likewise.
20105         * tests/test-stat.c (stat): Likewise.
20106         * tests/test-stpncpy.c (stpncpy): Likewise.
20107         * tests/test-strcasestr.c (strcasestr): Likewise.
20108         * tests/test-strchrnul.c (strchrnul): Likewise.
20109         * tests/test-strerror.c (strerror): Likewise.
20110         * tests/test-strsignal.c (strsignal): Likewise.
20111         * tests/test-strstr.c (strstr): Likewise.
20112         * tests/test-strtod.c (strtod): Likewise.
20113         * tests/test-strverscmp.c (strverscmp): Likewise.
20114         * tests/test-symlink.c (symlink): Likewise.
20115         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20116         * tests/test-times.c (times): Likewise.
20117         * tests/test-trunc1.c (trunc): Likewise.
20118         * tests/test-truncf1.c (truncf): Likewise.
20119         * tests/test-truncl.c (truncl): Likewise.
20120         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20121         Likewise.
20122         * tests/test-uname.c (uname): Likewise.
20123         * tests/test-unlink.c (unlink): Likewise.
20124         * tests/test-unlinkat.c (unlinkat): Likewise.
20125         * tests/test-unsetenv.c (unsetenv): Likewise.
20126         * tests/test-usleep.c (usleep): Likewise.
20127         * tests/test-utimensat.c (utimensat): Likewise.
20128         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20129         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20130         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20131         * tests/test-vprintf-posix.c (vprintf): Likewise.
20132         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20133         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20134         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20135         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20136         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20137         * tests/test-wcwidth.c (wcwidth): Likewise.
20138
20139         build: pull in conditional headers during GNULIB_POSIXCHECK
20140         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20141         definitions from any conditionally-included headers.
20142         * lib/stdlib.in.h (includes): Likewise.
20143         * lib/unistd.in.h (includes): Likewise.
20144
20145 2009-12-24  Bruno Haible  <bruno@clisp.org>
20146
20147         * tests/test-argv-iter.c: Include header file being tested immediately
20148         after config.h.
20149         * tests/test-base64.c: Likewise.
20150         * tests/test-flock.c: Likewise.
20151         * tests/test-fsync.c: Likewise.
20152         * tests/test-getdate.c: Likewise.
20153         * tests/test-getndelim2.c: Likewise.
20154         * tests/test-isfinite.c: Likewise.
20155         * tests/test-isinf.c: Likewise.
20156         * tests/test-strerror.c: Likewise.
20157         * tests/test-strsignal.c: Likewise.
20158
20159 2009-12-23  Eric Blake  <ebb9@byu.net>
20160
20161         unistd: work around cygwin bug
20162         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20163         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20164         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20165
20166 2009-12-23  Bruno Haible  <bruno@clisp.org>
20167
20168         localename: More tests.
20169         * tests/test-localename.c (SIZEOF): New macro.
20170         (categories): New variable.
20171         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20172         test_locale_name_default): Add test w.r.t. thread locale.
20173         (test_locale_name_thread): New function.
20174         (main): Invoke it.
20175
20176         localename: Make aware of thread locale.
20177         * lib/localename.h (gl_locale_name_thread): New declaration.
20178         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20179         behaviour with respect to thread locale.
20180         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20181         <langinfo.h>, glthread/lock.h.
20182         (SIZE_BITS): New macro.
20183         (string_hash): New function.
20184         (struct hash_node): New type.
20185         (HASH_TABLE_SIZE): New macro.
20186         (struniq_hash_table, struniq_lock): New variables.
20187         (struniq): New function.
20188         (gl_locale_name_thread): New function.
20189         (gl_locale_name): Invoke it.
20190         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20191         * modules/localename (Depends-on): Add lock.
20192         Reported by Mike Gran <spk121@yahoo.com>.
20193
20194 2009-12-23  Eric Blake  <ebb9@byu.net>
20195
20196         va-args: new module
20197         * modules/va-args: New file.
20198         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20199         * MODULES.html.sh (Core language properties): Mention it.
20200
20201         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20202         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20203         named alias for __attribute__((__unused__)).
20204         * lib/chown.c: Update client.
20205         * lib/fchmodat.c: Likewise.
20206         * lib/fts.c: Likewise.
20207         * lib/getdate.y: Likewise.
20208         * lib/getgroups.c: Likewise.
20209         * lib/getopt.c: Likewise.
20210         * lib/getugroups.c: Likewise.
20211         * lib/mkdir.c: Likewise.
20212         * lib/mkfifo.c: Likewise.
20213         * lib/mkfifoat.c: Likewise.
20214         * lib/mknod.c: Likewise.
20215         * lib/mknodat.c: Likewise.
20216         * lib/readlink.c: Likewise.
20217         * lib/se-context.in.h: Likewise.
20218         * lib/se-selinux.in.h: Likewise.
20219         * lib/sockets.c: Likewise.
20220         * lib/symlink.c: Likewise.
20221         * lib/symlinkat.c: Likewise.
20222         * lib/unicodeio.c: Likewise.
20223         * lib/unistr.h: Likewise.
20224         * tests/test-areadlink.c: Likewise.
20225         * tests/test-areadlinkat.c: Likewise.
20226         * tests/test-filenamecat.c: Likewise.
20227         * tests/test-fseeko.c: Likewise.
20228         * tests/test-ftello.c: Likewise.
20229         * tests/test-getdate.c: Likewise.
20230         * tests/test-getgroups.c: Likewise.
20231         * tests/test-gethostname.c: Likewise.
20232         * tests/test-quotearg.c: Likewise.
20233         * tests/test-version-etc.c: Likewise.
20234         * tests/test-xalloc-die.c: Likewise.
20235         * tests/test-xfprintf-posix.c: Likewise.
20236         * tests/test-xprintf-posix.c: Likewise.
20237         * tests/test-xvasprintf.c: Likewise.
20238
20239         tests: avoid compiler warnings
20240         * tests/test-fcntl.c (main): Delete unused parameters.
20241         * tests/test-freopen-safer.c (main): Likewise.
20242         * tests/test-xalloc-die.c (main): Mark unused parameters.
20243         * tests/test-fseeko.c (main): Likewise.
20244         * tests/test-ftello.c (main): Likewise.
20245         * tests/test-nanosleep.c (main): Avoid declaration warning.
20246         * tests/test-sleep.c (main): Likewise.
20247         * tests/test-unsetenv.c (main): Silence warning about string
20248         literal.
20249         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20250
20251 2009-12-23  Bruno Haible  <bruno@clisp.org>
20252
20253         * tests/test-localename.c (test_locale_name): New function, extracted
20254         from main. Also test mixed situations.
20255         (test_locale_name_posix, test_locale_name_environ,
20256         test_locale_name_default): New functions.
20257         (main): Invoke them all.
20258         * modules/localename-tests (configure.ac): Test for newlocale.
20259
20260 2009-12-23  Bruno Haible  <bruno@clisp.org>
20261
20262         unistd: Ensure getcwd gets declared before being overridden.
20263         * lib/unistd.in.h: Conditionally include <io.h>.
20264
20265 2009-12-22  Bruno Haible  <bruno@clisp.org>
20266
20267         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20268         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20269         (gl_WCHAR_H): Invoke it.
20270         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20271         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20272         Reported by Karl Berry <karl@freefriends.org>.
20273
20274 2009-12-22  Eric Blake  <ebb9@byu.net>
20275
20276         math, unistd: avoid redundant includes
20277         * lib/math.in.h (isnan): No need to re-include <math.h>.
20278         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20279
20280         getsubopt: work around cygwin bug
20281         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20282         avoid conflicting with system getsubopt.
20283         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20284         bug.
20285
20286         getopt: synchronize from glibc
20287         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20288         parameter order.  Adjust all callers.
20289         (_getopt_internal_r, main): Adjust quoting in error messages.
20290         Drop considerations for outdated POSIX 1003.2 error message.
20291         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20292         callers.
20293         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20294
20295         test-getopt: test stderr behavior
20296         * modules/getopt-posix-tests (Depends-on): Add dup2.
20297         * tests/test-getopt.c (ASSERT): Avoid stderr.
20298         (main): Move stderr to a temporary file.
20299         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20300         Instead, add parameter to inform caller if output occurred.
20301         (test_getopt): Adjust all existing tests to expect silence, and
20302         add new tests of leading ":".
20303         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20304         glibc shortcomings with leading "-:" or "+:" in optstring.
20305         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20306         Likewise.
20307         * doc/posix-functions/getopt.texi (getopt): Likewise.
20308
20309         test-getopt: enhance test
20310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20311         supports optind=0.
20312         * tests/test-getopt.c (OPTIND_MIN): Move...
20313         * tests/test-getopt.h (OPTIND_MIN): ...here.
20314         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20315         Require that optind=0 works, since modern BSD supports it in
20316         addition to optreset, and since coreutils expects it.
20317         (test_getopt_long_only): New test.
20318         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20319         glibc shortcomings with 'W;', and enforcement of optind=0.
20320         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20321         Likewise.
20322
20323 2009-12-21  Bruno Haible  <bruno@clisp.org>
20324
20325         localename: Improvements for MacOS X and Cygwin.
20326         * lib/localename.h (gl_locale_name_environ): New declaration.
20327         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20328         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20329         (gl_locale_name_posix): Invoke it.
20330         (gl_locale_name_default): Add comments. Use Windows native API also on
20331         Cygwin.
20332
20333 2009-12-21  Bruno Haible  <bruno@clisp.org>
20334
20335         Update list of Win32 locale ids.
20336         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20337         (LANG_SAMI): Renamed from LANG_SAAMI.
20338         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20339         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20340         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
20341         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
20342         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
20343         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
20344         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
20345         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
20346         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
20347         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
20348         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
20349         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
20350         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
20351         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
20352         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
20353         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
20354         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
20355         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
20356         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
20357         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
20358         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
20359         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
20360         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
20361         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
20362         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
20363         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
20364         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
20365         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
20366         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
20367         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
20368         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
20369         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
20370         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
20371         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
20372         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
20373         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
20374         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
20375         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
20376         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
20377         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
20378         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
20379         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
20380         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
20381         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
20382         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
20383         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
20384         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
20385         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
20386         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
20387         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
20388         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
20389         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
20390         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
20391         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
20392         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
20393         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
20394         Add more languages and countries for Sami, Sorbian. Add more countries
20395         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
20396         for Pashto. Change country for Syriac, Tswana.
20397
20398 2009-12-21  Eric Blake  <ebb9@byu.net>
20399
20400         test-utimens: avoid spurious failure
20401         * tests/test-chown.h (nap): Factor...
20402         * tests/nap.h: ...into new file.
20403         * tests/test-lchown.h (nap): Avoid duplication.
20404         * tests/test-utimens-common.h (nap): Use shared implementation,
20405         necessary on file systems with 1-second resolution.
20406         * modules/chown-tests (Files): Include new file.
20407         * modules/fdutimensat-tests (Files): Likewise.
20408         * modules/futimens-tests (Files): Likewise.
20409         * modules/lchown-tests (Files): Likewise.
20410         * modules/openat-tests (Files): Likewise.
20411         * modules/utimens-tests (Files): Likewise.
20412         * modules/utimensat-tests (Files): Likewise.
20413
20414 2009-12-19  Eric Blake  <ebb9@byu.net>
20415
20416         futimens, utimensat: work around Linux bug
20417         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
20418         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20419         * lib/utimensat.c (rpl_utimensat): Work around it.
20420         * lib/futimens.c (rpl_futimens): Adjust comment.
20421
20422         utimens: work around Linux ctime bug
20423         * lib/utimens.c (detect_ctime_bug): New helper function.
20424         (update_timespec): Differentiate between workaround needed for
20425         this bug vs. what is needed for systems that lack utimensat.
20426         (fdutimens, lutimens): Work around bug.
20427
20428         utimens: check for ctime update
20429         * tests/test-utimens-common.h (check_ctime): Define.
20430         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
20431         * tests/test-futimens.h (test_futimens): Likewise.
20432         * tests/test-lutimens.h (test_lutimens): Likewise.
20433         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20434         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20435
20436 2009-12-19  Bruno Haible  <bruno@clisp.org>
20437
20438         dprintf-posix: Check against memory leak fixed on 2009-12-15.
20439         * tests/test-dprintf-posix2.sh: New file.
20440         * tests/test-dprintf-posix2.c: New file.
20441         * modules/dprintf-posix-tests (Files): Add them.
20442         (configure.ac): Check for getrlimit and setrlimit.
20443         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20444
20445 2009-12-19  Bruno Haible  <bruno@clisp.org>
20446
20447         fprintf-posix: Check against memory leak fixed on 2009-12-15.
20448         * tests/test-fprintf-posix3.sh: New file.
20449         * tests/test-fprintf-posix3.c: New file.
20450         * modules/fprintf-posix-tests (Files): Add them.
20451         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20452
20453 2009-12-19  Eric Blake  <ebb9@byu.net>
20454
20455         dirfd: fix prototype
20456         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
20457         * lib/dirfd.c (dirfd): Likewise.
20458
20459         canonicalize: reduce memory usage
20460         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
20461         allocation to size.
20462         Reported by Solar Designer <solar@openwall.com>.
20463
20464 2009-12-19  Bruno Haible  <bruno@clisp.org>
20465
20466         New module attribute 'Applicability'.
20467         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
20468         * gnulib-tool: New option --extract-applicability.
20469         (func_usage): Document it.
20470         (sed_extract_prog): Recognize it.
20471         (func_get_applicability): New function.
20472         (func_import): Generalize handling of 'link-warning' module.
20473         * modules/link-warning (Applicability): New section.
20474         * modules/arg-nonnull (Applicability): New section.
20475         Repoted by Simon Josefsson <simon@josefsson.org>.
20476
20477 2009-12-19  Bruno Haible  <bruno@clisp.org>
20478
20479         fflush: tweak
20480         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
20481         * lib/fseeko.c (rpl_fseeko): Likewise.
20482
20483 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
20484
20485         * lib/gl_list.h: Fix typo in comment.
20486
20487 2009-12-16  Eric Blake  <ebb9@byu.net>
20488
20489         fcntl: use to simplify other modules
20490         * modules/cloexec (Depends-on): Add fcntl.
20491         * modules/fchdir (Depends-on): Likewise.
20492         * modules/fd-safer-flag (Depends-on): Likewise.
20493         * modules/unistd-safer (Depends-on): Likewise.
20494         * modules/dup3 (configure.ac): Set module indicator.
20495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
20496         missing.
20497         * lib/fchdir.c (_gl_register_dup): Fix comment.
20498         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
20499         * lib/dup-safer.c (dup_safer): Likewise.
20500         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
20501         * lib/dup3.c (dup3): Likewise.
20502         * tests/test-fchdir.c (main): Enhance test.
20503         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
20504
20505         fcntl: port portions of fcntl to mingw
20506         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
20507         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
20508         replacement for mingw.
20509         * modules/fcntl (Description): Update.
20510         (Depends-on): Add dup2.
20511         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
20512         * modules/fcntl-h (Makefile.am): Substitute it.
20513         * lib/fcntl.in.h (fcntl): Update declaration.
20514         (F_DUPFD, F_GETFD): New macros, when needed.
20515         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20516         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
20517         * tests/test-fcntl.c (check_flags, main): Enhance test for items
20518         we now guarantee.
20519
20520         fcntl: work around cygwin bug in F_DUPFD
20521         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
20522         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
20523         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
20524         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
20525         * doc/posix-functions/fcntl.texi (fcntl): Document it.
20526
20527         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
20528         * modules/fcntl (Files): List new files.
20529         (configure.ac): Run a test.
20530         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
20531         * lib/fcntl.c (rpl_fcntl): Likewise.
20532         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
20533         (gl_FCNTL_H): Always replace fcntl.h.
20534         * modules/fcntl-h (Makefile.am): Substitute witnesses.
20535         * lib/fcntl.in.h (fcntl): Declare replacement.
20536         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
20537         needed, plus a witness.
20538         * doc/posix-functions/fcntl.texi (fcntl): Document this.
20539         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20540         * tests/test-fcntl.c: New file.
20541         * modules/fcntl-tests: Likewise.
20542
20543         binary-io: avoid potential compilation warning
20544         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
20545         directives.
20546
20547         fflush: avoid compilation error on NetBSD
20548         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
20549         between off_t and fpos_t, since the latter is sometimes a struct.
20550         * lib/fseeko.c (rpl_fseeko): Likewise.
20551         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20552
20553 2009-12-15  Eric Blake  <ebb9@byu.net>
20554
20555         fcntl-h, stdio, sys_ioctl: fix declarations
20556         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20557         function must not take arguments.
20558         * lib/sys_ioctl.in.h (ioctl): Likewise.
20559         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20560         (open): Add a link warning.
20561
20562 2009-12-15  Jim Meyering  <meyering@redhat.com>
20563
20564         areadlink, areadlink-with-size: relax license to LGPLv2+
20565         * modules/areadlink (License): Relax to LGPLv2+.
20566         * modules/areadlink-with-size (License): Likewise.
20567
20568 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20569             Bruno Haible  <bruno@clisp.org>
20570
20571         *printf: Fix memory leak.
20572         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20573         * lib/vfprintf.c (vfprintf): Likewise.
20574         * lib/dprintf.c (dprintf): Likewise.
20575         * lib/vdprintf.c (vdprintf): Likewise.
20576
20577 2009-12-14  Eric Blake  <ebb9@byu.net>
20578
20579         accept4: adjust module dependencies
20580         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20581
20582         utimens: one more try at avoiding compiler warning
20583         * lib/utimens.c (lutimens): Lower scope of result.
20584
20585 2009-12-13  Bruno Haible  <bruno@clisp.org>
20586
20587         Move the malloc checking from module 'list' to new module 'xlist'.
20588         * modules/xlist: New file.
20589         * lib/gl_xlist.h: New file.
20590         * lib/gl_xlist.c: New file.
20591         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20592         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20593         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20594         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20595         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20596         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20597         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20598         gl_sortedlist_nx_add): New declarations.
20599         (struct gl_list_implementation): Rename and change methods accordingly.
20600         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20601         (gl_list_nx_create): Renamed from gl_list_create.
20602         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20603         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20604         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20605         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20606         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20607         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20608         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20609         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20610         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20611         gl_list_create_empty.
20612         (gl_list_nx_create): Renamed from gl_list_create.
20613         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20614         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20615         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20616         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20617         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20618         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20619         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20620         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20621         * lib/gl_array_list.c: Don't include xalloc.h.
20622         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20623         NULL upon out-of-memory.
20624         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20625         out-of-memory.
20626         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20627         Change return type to 'int'.
20628         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20629         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20630         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20631         upon out-of-memory.
20632         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20633         upon out-of-memory.
20634         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20635         upon out-of-memory.
20636         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20637         upon out-of-memory.
20638         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20639         out-of-memory.
20640         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20641         Update.
20642         (gl_array_list_implementation): Update.
20643         * lib/gl_carray_list.c: Don't include xalloc.h.
20644         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20645         Return NULL upon out-of-memory.
20646         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20647         out-of-memory.
20648         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20649         Change return type to 'int'.
20650         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20651         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20652         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20653         upon out-of-memory.
20654         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20655         upon out-of-memory.
20656         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20657         out-of-memory.
20658         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20659         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20660         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20661         Update.
20662         (gl_carray_list_implementation): Update.
20663         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20664         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20665         gl_linked_create_empty. Return NULL upon out-of-memory.
20666         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20667         out-of-memory.
20668         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20669         Change return type to 'int'. Return -1 upon out-of-memory.
20670         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20671         out-of-memory.
20672         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20673         upon out-of-memory.
20674         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20675         upon out-of-memory.
20676         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20677         NULL upon out-of-memory.
20678         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20679         upon out-of-memory.
20680         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20681         out-of-memory.
20682         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20683         Update.
20684         * lib/gl_linked_list.c: Don't include xalloc.h.
20685         (gl_linked_list_implementation): Update.
20686         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20687         (add_to_bucket): Change return type to 'int'.
20688         (gl_linkedhash_list_implementation): Update.
20689         * lib/gl_anytree_list1.h (free_subtree): New function.
20690         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20691         gl_tree_create_empty. Return NULL upon out-of-memory.
20692         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20693         Change return type to 'int'. Return -1 upon out-of-memory.
20694         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20695         out-of-memory.
20696         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20697         (gl_tree_remove_node): New function, moved here from
20698         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20699         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20700         Update.
20701         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20702         malloc, not xmalloc. Return NULL upon out-of-memory.
20703         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20704         out-of-memory.
20705         (gl_tree_remove_node_from_tree): New function, extracted from
20706         gl_tree_remove_node.
20707         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20708         upon out-of-memory.
20709         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20710         out-of-memory.
20711         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20712         upon out-of-memory.
20713         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20714         upon out-of-memory.
20715         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20716         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20717         not xmalloc. Return NULL upon out-of-memory.
20718         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20719         out-of-memory.
20720         (gl_tree_remove_node_from_tree): New function, extracted from
20721         gl_tree_remove_node.
20722         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20723         upon out-of-memory.
20724         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20725         out-of-memory.
20726         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20727         upon out-of-memory.
20728         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20729         upon out-of-memory.
20730         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20731         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20732         gl_anytree_list1.h before gl_anyavltree_list2.h.
20733         (gl_avltree_list_implementation): Update.
20734         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20735         gl_anytree_list1.h before gl_anyavltree_list2.h.
20736         (gl_rbtree_list_implementation): Update.
20737         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20738         Change return type to 'int'. Return -1 upon out-of-memory. Use
20739         __builtin_expect.
20740         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20741         (gl_avltreehash_list_implementation): Update.
20742         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20743         (gl_rbtreehash_list_implementation): Update.
20744         * modules/array-list (Depends-on): Remove xalloc.
20745         * modules/carray-list (Depends-on): Likewise.
20746         * modules/linked-list (Depends-on): Likewise.
20747         * modules/linkedhash-list (Depends-on): Likewise.
20748         * modules/avltree-list (Depends-on): Likewise.
20749         * modules/rbtree-list (Depends-on): Likewise.
20750         * modules/avltreehash-list (Depends-on): Likewise.
20751         * modules/rbtreehash-list (Depends-on): Likewise.
20752
20753         * modules/xsublist: New file.
20754         * lib/gl_xsublist.h: New file.
20755         * lib/gl_xsublist.c: New file.
20756         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20757         (gl_sublist_nx_create): New declaration.
20758         * lib/gl_sublist.c: Don't include xalloc.h.
20759         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20760         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20761         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20762         Change return type to 'int'. Return -1 upon out-of-memory.
20763         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20764         upon out-of-memory.
20765         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20766         NULL upon out-of-memory.
20767         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20768         upon out-of-memory.
20769         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20770         NULL upon out-of-memory.
20771         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20772         NULL upon out-of-memory.
20773         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20774         upon out-of-memory.
20775         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20776         (gl_sublist_list_implementation): Update.
20777         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20778         upon out-of-memory.
20779         * modules/sublist (Depends-on): Remove xalloc.
20780
20781         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20782         * tests/test-carray_list.c: Likewise.
20783         * tests/test-linked_list.c: Likewise.
20784         * tests/test-linkedhash_list.c: Likewise.
20785         * tests/test-avltree_list.c: Likewise.
20786         * tests/test-rbtree_list.c: Likewise.
20787         * tests/test-avltreehash_list.c: Likewise.
20788         * tests/test-rbtreehash_list.c: Likewise.
20789         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20790         * modules/carray-list-tests (Makefile.am): Likewise.
20791         * modules/linked-list-tests (Makefile.am): Likewise.
20792         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20793         * modules/avltree-list-tests (Makefile.am): Likewise.
20794         * modules/rbtree-list-tests (Makefile.am): Likewise.
20795         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20796         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20797
20798         * NEWS: Mention the changes.
20799
20800         * lib/clean-temp.c: Include gl_xlist.h.
20801         * modules/clean-temp (Depends-on): Add xlist.
20802
20803         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20804         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20805
20806         * tests/test-array_oset.c: Include gl_xlist.h.
20807         * modules/array-oset-tests (Depends-on): Add xlist.
20808
20809         Reported by José E. Marchesi <jemarch@gnu.org>.
20810
20811 2009-12-13  Bruno Haible  <bruno@clisp.org>
20812
20813         Move the malloc checking from module 'oset' to new module 'xoset'.
20814         * modules/xoset: New file.
20815         * lib/gl_xoset.h: New file.
20816         * lib/gl_xoset.c: New file.
20817         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20818         declarations.
20819         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20820         (struct gl_oset_implementation): Rename and change methods accordingly.
20821         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20822         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20823         'int'. Mark as __warn_unused_result__.
20824         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20825         gl_oset_create_empty.
20826         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20827         'int'.
20828         * lib/gl_array_oset.c: Don't include xalloc.h.
20829         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20830         malloc, not xmalloc.
20831         (grow): Change return type to 'int'. Don't call xalloc_die.
20832         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20833         to 'int'.
20834         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20835         'int'.
20836         (gl_array_oset_implementation): Update.
20837         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20838         gl_tree_create_empty.
20839         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20840         'int'.
20841         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20842         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20843         xmalloc.
20844         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20845         not xmalloc.
20846         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20847         xmalloc.
20848         (gl_avltree_oset_implementation): Update.
20849         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20850         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20851         xmalloc.
20852         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20853         not xmalloc.
20854         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20855         xmalloc.
20856         (gl_rbtree_oset_implementation): Update.
20857         * modules/array-oset (Depends-on): Remove xalloc.
20858         * modules/avltree-oset (Depends-on): Likewise.
20859         * modules/rbtree-oset (Depends-on): Likewise.
20860         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20861         * tests/test-avltree_oset.c: Likewise.
20862         * tests/test-rbtree_oset.c: Likewise.
20863         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20864         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20865         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20866         * NEWS: Mention the change.
20867
20868 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20869
20870         maint.mk: allow a project to override release-prep commands
20871         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20872         commands into a new rule.
20873         (release-prep): New rule.
20874         (release-prep-hook): New overridable variable.
20875
20876 2009-12-13  Bruno Haible  <bruno@clisp.org>
20877
20878         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20879
20880 2009-12-13  Jim Meyering  <meyering@redhat.com>
20881
20882         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20883         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20884
20885 2009-12-12  Bruno Haible  <bruno@clisp.org>
20886
20887         duplocale: Tweak.
20888         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20889
20890 2009-12-12  Karl Berry  <karl@gnu.org>
20891
20892         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20893
20894 2009-12-12  Bruno Haible  <bruno@clisp.org>
20895
20896         * m4/po.m4: Undo incorrect untabification.
20897
20898 2009-12-12  Bruno Haible  <bruno@clisp.org>
20899
20900         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20901         * modules/c-strtod (Depends-on): Add locale.
20902         * modules/c-strtold (Depends-on): Likewise.
20903
20904 2009-12-12  Bruno Haible  <bruno@clisp.org>
20905
20906         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20907
20908 2009-12-11  Eric Blake  <ebb9@byu.net>
20909
20910         setenv: relax requirement in light of POSIX ruling
20911         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20912         not NULL.
20913         * tests/test-setenv.c (main): Relax test.
20914         * tests/test-unsetenv.c (main): Likewise.
20915         * doc/posix-functions/setenv.texi (setenv): Document this.
20916         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20917
20918 2009-12-11  Bruno Haible  <bruno@clisp.org>
20919
20920         New module 'fd-safer-flag'.
20921         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20922         * lib/dup-safer.c (dup_safer_flag): Remove function.
20923         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20924         * lib/fd-safer.c (fd_safer_flag): Remove function.
20925         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20926         * modules/cloexec (configure.ac): Drop indicator macro.
20927         * modules/fd-safer-flag: New file.
20928         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20929         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20930         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20931
20932 2009-12-11  Bruno Haible  <bruno@clisp.org>
20933
20934         Tests for module 'nl_langinfo'.
20935         * modules/nl_langinfo-tests: New file.
20936         * tests/test-nl_langinfo.sh: New file.
20937         * tests/test-nl_langinfo.c: New file.
20938
20939         New module 'nl_langinfo'.
20940         * lib/nl_langinfo.c: New file.
20941         * m4/nl_langinfo.m4: New file.
20942         * modules/nl_langinfo: New file.
20943         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20944
20945 2009-12-11  Bruno Haible  <bruno@clisp.org>
20946
20947         Tests for module 'langinfo'.
20948         * modules/langinfo-tests: New file.
20949         * tests/test-langinfo.c: New file.
20950
20951         New module 'langinfo'.
20952         * lib/langinfo.in.h: New file.
20953         * m4/langinfo_h.m4: New file.
20954         * modules/langinfo: New file.
20955         * doc/posix-headers/langinfo.texi: Mention the new module.
20956
20957 2009-12-11  Bruno Haible  <bruno@clisp.org>
20958
20959         * lib/config.charset: Untabify.
20960
20961 2009-12-11  Bruno Haible  <bruno@clisp.org>
20962
20963         * modules/unistd-safer (configure.ac): Drop indicator macro.
20964
20965 2009-12-11  Bruno Haible  <bruno@clisp.org>
20966
20967         Move pipe2-safer code to its own file.
20968         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20969         * lib/pipe-safer.c (pipe2_safer): Remove function.
20970         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20971         (Makefile.am): Add it to lib_SOURCES.
20972
20973 2009-12-10  Bruno Haible  <bruno@clisp.org>
20974
20975         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20976
20977 2009-12-10  Bruno Haible  <bruno@clisp.org>
20978
20979         Declare which arguments expect non-NULL values, for GCC and clang.
20980         * build-aux/arg-nonnull.h: New file.
20981         * modules/arg-nonnull: New file.
20982         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20983         (inet_ntop, inet_pton): Use it.
20984         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20985         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20986         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20987         (open, openat): Use it.
20988         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20989         (fnmatch): Use it.
20990         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20991         (getopt, getopt_long, getopt_long_only): Use it.
20992         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20993         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20994         Use it.
20995         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20996         (iconv_open): Use it.
20997         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20998         (strtoimax, strtoumax): Use it.
20999         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21000         (duplocale): Use it.
21001         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21002         (frexp, frexpl): Use it.
21003         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21004         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21005         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21006         (tsearch, tfind, tdelete, twalk): Use it.
21007         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21008         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21009         sigpending): Use it.
21010         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21011         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21012         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21013         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21014         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21015         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21016         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21017         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21018         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21019         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21020         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21021         Use it.
21022         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21023         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21024         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21025         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21026         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21027         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21028         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21029         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21030         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21031         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21032         strtoull, unsetenv): Use it.
21033         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21034         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21035         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21036         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21037         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21038         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21039         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21040         (strcasecmp, strncasecmp): Use it.
21041         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21042         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21043         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21044         rpl_setsockopt): Use it.
21045         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21046         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21047         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21048         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21049         (gettimeofday): Use it.
21050         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21051         (times): Use it.
21052         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21053         (uname): Use it.
21054         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21055         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21056         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21057         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21058         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21059         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21060         unlinkat, write): Use it.
21061         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21062         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21063         * lib/argv-iter.h: Include arg-nonnull.h.
21064         (_ATTRIBUTE_NONNULL_): Remove macro.
21065         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21066         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21067         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21068         optimization.
21069         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21070         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21071         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21072         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21073         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21074         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21075         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21076         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21077         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21078         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21079         * modules/dirent (Depends-on): Add arg-nonnull.
21080         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21081         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21082         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21083         * modules/fnmatch (Depends-on): Add arg-nonnull.
21084         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21085         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21086         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21087         * modules/glob (Depends-on): Add arg-nonnull.
21088         (Makefile.am): Insert arg-nonnull.h into glob.h.
21089         * modules/iconv_open (Depends-on): Add arg-nonnull.
21090         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21091         * modules/inttypes (Depends-on): Add arg-nonnull.
21092         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21093         * modules/locale (Depends-on): Add arg-nonnull.
21094         (Makefile.am): Insert arg-nonnull.h into locale.h.
21095         * modules/math (Depends-on): Add arg-nonnull.
21096         (Makefile.am): Insert arg-nonnull.h into math.h.
21097         * modules/netdb (Depends-on): Add arg-nonnull.
21098         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21099         * modules/search (Depends-on): Add arg-nonnull.
21100         (Makefile.am): Insert arg-nonnull.h into search.h.
21101         * modules/signal (Depends-on): Add arg-nonnull.
21102         (Makefile.am): Insert arg-nonnull.h into signal.h.
21103         * modules/spawn (Depends-on): Add arg-nonnull.
21104         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21105         * modules/stdio (Depends-on): Add arg-nonnull.
21106         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21107         * modules/stdlib (Depends-on): Add arg-nonnull.
21108         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21109         * modules/string (Depends-on): Add arg-nonnull.
21110         (Makefile.am): Insert arg-nonnull.h into string.h.
21111         * modules/strings (Depends-on): Add arg-nonnull.
21112         (Makefile.am): Insert arg-nonnull.h into strings.h.
21113         * modules/sys_socket (Depends-on): Add arg-nonnull.
21114         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21115         * modules/sys_stat (Depends-on): Add arg-nonnull.
21116         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21117         * modules/sys_time (Depends-on): Add arg-nonnull.
21118         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21119         * modules/sys_times (Depends-on): Add arg-nonnull.
21120         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21121         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21122         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21123         * modules/time (Depends-on): Add arg-nonnull.
21124         (Makefile.am): Insert arg-nonnull.h into time.h.
21125         * modules/unistd (Depends-on): Add arg-nonnull.
21126         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21127         * modules/wchar (Depends-on): Add arg-nonnull.
21128         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21129         * modules/argv-iter (Depends-on): Add arg-nonnull.
21130         * tests/test-canonicalize.c (null_ptr): New function.
21131         (main): Use it.
21132         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21133         (main): Use it.
21134         * tests/test-memmem.c (null_ptr): New function.
21135         (main): Use it.
21136         Reported by Jim Meyering.
21137
21138 2009-12-10  Bruno Haible  <bruno@clisp.org>
21139
21140         Use spaces for indentation, not tabs.
21141         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21142         * m4/*.m4: Untabify.
21143         * build-aux/*.h: Untabify.
21144         * tests/**/*.[hc]: Untabify.
21145         * README: New section "Indent with spaces, not TABs", based on
21146         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21147         * NEWS: Mention the change.
21148
21149 2009-12-10  Bruno Haible  <bruno@clisp.org>
21150
21151         pty test: Fix link error.
21152         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21153         test_pty_LDADD.
21154
21155 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21156
21157         * modules/pty: New file.
21158         * modules/pty-tests: New file.
21159         * m4/pty.m4: New file.
21160         * tests/test-pty.c: New file.
21161         * doc/glibc-headers/pty.texi: Modified.
21162         * doc/glibc-functions/forkpty.texi: Modified.
21163         * doc/glibc-functions/openpty.texi: Modified.
21164
21165 2009-12-10  Bruno Haible  <bruno@clisp.org>
21166
21167         Avoid syntax error in C++ mode.
21168         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21169
21170 2009-12-10  Bruno Haible  <bruno@clisp.org>
21171
21172         Use sed with option -e.
21173         * gnulib-tool (func_version, func_emit_copyright_notice,
21174         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21175         option -e to sed.
21176         * modules/link-warning (Makefile.am): Likewise.
21177
21178 2009-12-10  Jim Meyering  <meyering@redhat.com>
21179
21180         mgetgroups: do not write bytes beyond end of malloc'd buffer
21181         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21182         username, we call getgroups with a one-element-shorter buffer,
21183         but still told it the length was original, max_n_groups.
21184
21185 2009-12-09  Eric Blake  <ebb9@byu.net>
21186
21187         cloexec: relax license
21188         * modules/cloexec (Maintainer): Add myself.
21189         (License): Use LGPL, not GPL.
21190
21191         link-warning: optimize generation
21192         * modules/link-warning (Makefile.am): Reduce process usage.
21193
21194 2009-12-09  Bruno Haible  <bruno@clisp.org>
21195
21196         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21197         workaround was added on 2009-11-17.
21198
21199 2009-12-09  Jim Meyering  <meyering@redhat.com>
21200             Bruno Haible  <bruno@clisp.org>
21201
21202         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21203         * modules/link-warning (Makefile.am): Make the comment-removing sed
21204         command more robust in the face of bootstrap-prepended comment lines.
21205
21206 2009-12-09  Bruno Haible  <bruno@clisp.org>
21207
21208         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21209         most one group.
21210
21211 2009-12-09  Simon Josefsson <simon@josefsson.org>
21212             Bruno Haible  <bruno@clisp.org>
21213
21214         * build-aux/link-warning.h: Add copyright notice.
21215         * modules/link-warning (Makefile.am): Generate link-warning.h from
21216         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21217         * NEWS: Mention change in link-warning module.
21218         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21219         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21220         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21221         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21222         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21223         * modules/math (Makefile.am): Add dependency to math.h.
21224         * modules/search (Makefile.am): Add dependency to search.h.
21225         * modules/signal (Makefile.am): Add dependency to signal.h.
21226         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21227         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21228         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21229         * modules/string (Makefile.am): Add dependency to string.h.
21230         * modules/strings (Makefile.am): Add dependency to strings.h.
21231         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21232         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21233         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21234         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21235         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21236         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21237         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21238         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21239         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21240
21241 2009-12-09  Bruno Haible  <bruno@clisp.org>
21242
21243         fchdir: Optimize away rpl_fstat when possible.
21244         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21245         REPLACE_OPEN_DIRECTORY.
21246         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21247
21248 2009-12-09  Bruno Haible  <bruno@clisp.org>
21249
21250         * lib/fchdir.c: Update comment.
21251
21252 2009-12-09  Bruno Haible  <bruno@clisp.org>
21253
21254         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21255
21256 2009-12-08  Eric Blake  <ebb9@byu.net>
21257
21258         fchdir: avoid memory leak on re-registration.
21259         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21260
21261 2009-12-08  Jim Meyering  <meyering@redhat.com>
21262
21263         init.sh: avoid Solaris 10 /bin/sh portability problem
21264         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21265         sourced script:
21266           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21267           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21268           bar
21269         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21270         and two tests used that idiom.
21271         * tests/init.sh: Update suggested usage comments.
21272         (path_prepend_): New function, to be used in place
21273         of the --src-path=DIR option.
21274         (setup_): Move PATH-prepending code into path_prepend_.
21275         * tests/test-pread.sh: Adapt to new usage.
21276         * tests/test-xalloc-die.sh: Likewise.
21277
21278 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21279
21280         * doc/gnulib.texi (Glibc pty.h): Add.
21281         * doc/glibc-functions/forkpty.texi: Add.
21282         * doc/glibc-functions/openpty.texi: Add.
21283         Suggested by Bruno Haible.
21284
21285 2009-12-08  Eric Blake  <ebb9@byu.net>
21286
21287         fchdir: fix logic bugs
21288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21289         * tests/test-fchdir.c (main): Enhance test.
21290         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21291         is in use.
21292
21293         dup2: fix logic bugs
21294         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21295         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21296         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21297         exists.
21298         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21299
21300 2009-12-07  Eric Blake  <ebb9@byu.net>
21301
21302         unlink: fix m4 detection
21303         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21304
21305         unistd-safer: add unit test
21306         * modules/unistd-safer-tests: New file.
21307         * tests/test-dup-safer.c: Likewise.
21308         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21309         * tests/test-dup2.c (setmode): Likewise.
21310         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21311
21312         cloexec: preserve text vs. binary across dup_cloexec
21313         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21314         mode.
21315         * modules/dup2-tests (Depends-on): Add binary-io.
21316         * modules/cloexec-tests (Depends-on): Likewise.
21317         * tests/test-dup2.c (setmode, is_mode): New helpers.
21318         (main): Add tests that translation mode is preserved.
21319         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21320         Reported by Bruno Haible.
21321
21322         mgetgroups: reduce duplicate listings
21323         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21324         resulting array.
21325         * tests/test-chown.h (test_chown): Simplify client.
21326         * tests/test-lchown.h (test_lchown): Likewise.
21327
21328 2009-12-06  Bruno Haible  <bruno@clisp.org>
21329
21330         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21331         value.
21332
21333 2009-12-06  Bruno Haible  <bruno@clisp.org>
21334
21335         * lib/progname.c: Include stdio.h, stdlib.h.
21336         (set_program_name): Reject a NULL argument.
21337
21338 2009-12-05  Eric Blake  <ebb9@byu.net>
21339
21340         pipe2-safer: new module
21341         * modules/pipe2-safer: New file.
21342         * lib/unistd-safer.h (pipe2_safer): New prototype.
21343         * lib/unistd--.h (pipe2): New wrapper.
21344         * lib/pipe-safer.c (pipe2_safer): New function.
21345         * modules/pipe (Depends-on): Add pipe2-safer.
21346         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
21347
21348         stdlib-safer: preserve cloexec flag for mkostemp[s]
21349         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
21350         fd_safer_flag.
21351
21352         unistd-safer: allow preservation of cloexec status via flag
21353         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
21354         prototypes.
21355         * lib/dup-safer.c (dup_safer_flag): New function.
21356         * lib/fd-safer.c (fd_safer_flag): Likewise.
21357         * modules/cloexec (configure.ac): Set witness.
21358
21359         test-dup2: enhance test
21360         * modules/dup2-tests (Depends-on): Add cloexec.
21361         * tests/test-dup2.c (main): Enhance test.
21362
21363         cloexec: add dup_cloexec
21364         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
21365         header and comments.
21366         * lib/cloexec.c (set_cloexec_flag): Add comments.
21367         (dup_cloexec): New function, with mingw implementation borrowed
21368         from...
21369         * lib/w32spawn.h (dup_noinherit): ...here.
21370         * modules/execute (Depends-on): Add cloexec.
21371         * modules/pipe (Depends-on): Likewise.
21372         * modules/cloexec (Depends-on): Add dup2.
21373         * modules/cloexec-tests (Files): New file.
21374         * tests/test-cloexec.c: Likewise.
21375
21376         test-xalloc-die: fix test for mingw
21377         * modules/xalloc-die-tests (Files): Add tests/init.sh.
21378         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
21379         directory and .exe suffix off argv[0] output.
21380
21381         test-fseeko: fix test for mingw
21382         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
21383         than undefining fseek, so test will pass on mingw.
21384
21385 2009-12-05  Bruno Haible  <bruno@clisp.org>
21386
21387         * lib/progname.h (set_program_name): Clarify specification.
21388         * lib/progname.c (set_program_name): Likewise.
21389         Reported by Jim Meyering.
21390
21391 2009-12-05  Jim Meyering  <meyering@redhat.com>
21392
21393         maint.mk: backslash-escape parens in default regexp
21394         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
21395         backslash-escape the literal parentheses.
21396
21397         maint.mk: news-date-check: use grep -E
21398         * top/maint.mk (today): Define a Make variable, not a...
21399         (news-date-check): ...shell variable.
21400         (news-date-regexp): Use the Make variable.
21401         Use grep's -E option.  Change the failing diagnostic to mention
21402         the variable, $(news-date-regexp).
21403
21404 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
21405
21406         maintainer-makefile: allow customization of NEWS entry format
21407         * top/maint.mk (news-date-regexp): New overridable variable.
21408         (news-date-check): Use it.
21409
21410 2009-12-04  Eric Blake  <ebb9@byu.net>
21411
21412         mgetgroups: add xgetgroups, and avoid ENOSYS failures
21413         * lib/mgetgroups.h (xgetgroups): New prototype.
21414         * lib/mgetgroups.c (xgetgroups): New wrapper.
21415         (mgetgroups): Handle ENOSYS.
21416         * modules/mgetgroups (Depends-on): Add realloc.
21417         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
21418
21419         mgetgroups: avoid argument promotion issues with -1
21420         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
21421         for invalid gid_t.
21422         * tests/test-chown.h (getegid, test_chown): Likewise.
21423         * tests/test-lchown.h (getegid, test_lchown): Likewise.
21424
21425 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
21426
21427         exclude: Fix header file problems.
21428         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
21429
21430 2009-12-01  Jim Meyering  <meyering@redhat.com>
21431
21432         fts: fts_open: do not let an empty string cause immediate failure
21433         This is required in support of GNU rm, for which the command
21434         "rm A '' B" must process and remove both A and B, in spite of
21435         the empty string argument.
21436         * lib/fts.c (fts_open): Do not let the presence of an empty string
21437         cause fts_open to fail immediately.  Most fts-using tools must be
21438         able to process all arguments, in order, and can be expected to
21439         diagnose such arguments themselves.
21440
21441 2009-11-30  Eric Blake  <ebb9@byu.net>
21442
21443         utimens: fix compilation error
21444         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
21445         Declare variable at right scope.
21446
21447 2009-11-29  Jim Meyering  <meyering@redhat.com>
21448
21449         bootstrap: handle perl-5.11's changed --version output
21450         * build-aux/bootstrap (get_version): Handle perl separately,
21451         since perl-5.11's --version output is different.
21452
21453 2009-11-28  Jim Meyering  <meyering@redhat.com>
21454
21455         userspec: depend on the inttostr module, too
21456         * modules/userspec (Depends-on): Add inttostr.
21457
21458         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
21459         * lib/userspec.c (parse_with_separator): Do not accept a user ID
21460         number of MAXUID when it evaluates to (uid_t) -1.
21461         Likewise for group ID.  Reported by Matt McCutchen in
21462         <http://savannah.gnu.org/bugs/?28113>
21463
21464         userspec: reformat to use spaces, not TABs
21465         * lib/userspec.c: Expand TABs to spaces.
21466         Add Emacs' "indent-tabs-mode: nil" hint.
21467
21468 2009-11-27  Eric Blake  <ebb9@byu.net>
21469
21470         getopt-gnu: flush out another BSD bug
21471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
21472         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
21473         flush out BSD bug.
21474         * tests/test-getopt.h (test_getopt): End lists with NULL.
21475         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21476         (test_getopt_long_posix): Enhance test.
21477         * modules/getopt-posix-tests (Depends-on): Add stdbool.
21478         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
21479         getopt-gnu.
21480         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21481         Likewise.
21482
21483 2009-11-27  Simon Josefsson  <simon@josefsson.org>
21484
21485         * modules/idpriv-droptemp-tests (Notice): Fix text.
21486
21487 2009-11-27  Jim Meyering  <meyering@redhat.com>
21488
21489         test-xalloc-die: avoid spurious failure due to libtool argv difference
21490         In a libtool-enabled project, this test would fail due to a difference
21491         in the emitted program name, e.g.,
21492         -test-xalloc-die: memory exhausted
21493         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
21494         Use program to avoid that.
21495         * modules/xalloc-die-tests (Depends-on): Add progname.
21496         * tests/test-xalloc-die.c: Include progname.h".
21497         (program_name): Remove decl.
21498         (main): Call set_program_name.
21499         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
21500
21501 2009-11-26  Richard Jones  <rjones@redhat.com>
21502
21503         w32sock: leave win32 error in place.
21504         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
21505
21506 2009-11-26  Eric Blake  <ebb9@byu.net>
21507
21508         init.sh: suggest to use skip_ and fail_ functions in comments
21509         * tests/init.sh: Add a sentence.
21510
21511 2009-11-25  Bruno Haible  <bruno@clisp.org>
21512
21513         init.sh: add documentation in comments
21514         * tests/init.sh: Add some developer and user documentation.
21515
21516 2009-11-26  Jim Meyering  <meyering@redhat.com>
21517
21518         init.sh: accommodate even those who specify bogus srcdir manually
21519         * tests/init.sh: Normally, srcdir is guaranteed by automake and
21520         configure-time tests to be sanitized, so that there is no need to
21521         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
21522         (with no double quotes) suffices.  However, since tests may be
21523         invoked manually, and since you may explicitly set srcdir to the
21524         name of a directory containing spaces, do quote its uses here.
21525         * tests/test-pread.sh: Likewise.
21526         Suggested by Bruno Haible.
21527
21528         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
21529         * tests/test-pread.sh: Write no data into the pipe, because
21530         test-pread actually reads none.  This avoids a diagnostic,
21531         "bash: echo: write error: Broken pipe", that arises in the unusual
21532         event something is ignoring SIGPIPE, and might be interpreted
21533         as some sort of failure.  Reported by Bruno Haible.
21534
21535 2009-11-25  Jim Meyering  <meyering@redhat.com>
21536
21537         test-pread: cover failure with ESPIPE and EINVAL
21538         * tests/test-pread.c (main): Test for failure, too.
21539         * tests/test-pread.sh: Invoke with stdin on a pipe.
21540         Suggested by Eric Blake.
21541
21542         pread: improvement and fix
21543         * modules/pread (Depends-on): Depend on lseek, for portability to
21544         e.g., mingw.  Suggested by Eric Blake.
21545         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
21546
21547         unistd.in.h: correct declaration of pread
21548         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
21549         Reported by Richard W.M. Jones.
21550
21551         test-pread.sh: distribute the test script
21552         * modules/pread-tests (Files): Include test-pread.sh.
21553
21554         test-pread.sh: clean up
21555         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21556         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21557         That is unnecessary, since it's always ".".
21558         Suggestion from Eric Blake.
21559
21560         test-pread.sh: make executable
21561         * tests/test-pread.sh: Set executable bit.
21562         Reported by Eric Blake.
21563
21564         correct typo in test-pread.sh
21565         * tests/test-pread.sh: Add #! line.
21566
21567         test pread
21568         * tests/test-pread.c: New file.
21569         * tests/test-pread.sh: Likewise.
21570         * modules/pread-tests: Likewise.
21571
21572         pread: new module
21573         * modules/pread: New file.
21574         * lib/unistd.in.h (pread): Define/declare.
21575         * lib/pread.c (pread): New file.
21576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21577         * modules/unistd (Makefile.am): Substitute witnesses.
21578         * doc/posix-functions/pread.texi (pread): Update.
21579         * MODULES.html.sh: Add pread.
21580
21581 2009-11-25  Jim Meyering  <meyering@redhat.com>
21582
21583         tests/init.sh: new file to be used via most *.sh tests
21584         * tests/init.sh: New file.
21585
21586 2009-11-25  Eric Blake  <ebb9@byu.net>
21587
21588         utimens: work around older Linux failure with symlinks
21589         * lib/utimens.c (lutimensat_works_really): New variable.
21590         (fdutimens, lutimens): Use it to manage kernels that support
21591         nanosecond times on files, but not on symlinks.
21592         Reported by OndÅ™ej Vašík.
21593
21594         utimes: fix configure grammar
21595         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21596
21597 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21598
21599         regex: Fix fastmap for multibyte character ranges.
21600         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21601         characters when a multibyte character range is included.
21602
21603 2009-11-22  Andy Wingo  <wingo@pobox.com>
21604
21605         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21606         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21607
21608 2009-11-24  Bruno Haible  <bruno@clisp.org>
21609
21610         doc: Most *_l functions exist in MacOS X 10.5.
21611         * doc/posix-functions/duplocale.texi: Update platforms list.
21612         * doc/posix-functions/freelocale.texi: Likewise.
21613         * doc/posix-functions/newlocale.texi: Likewise.
21614         * doc/posix-functions/uselocale.texi: Likewise.
21615         * doc/posix-functions/isalnum_l.texi: Likewise.
21616         * doc/posix-functions/isalpha_l.texi: Likewise.
21617         * doc/posix-functions/isblank_l.texi: Likewise.
21618         * doc/posix-functions/iscntrl_l.texi: Likewise.
21619         * doc/posix-functions/isdigit_l.texi: Likewise.
21620         * doc/posix-functions/isgraph_l.texi: Likewise.
21621         * doc/posix-functions/islower_l.texi: Likewise.
21622         * doc/posix-functions/isprint_l.texi: Likewise.
21623         * doc/posix-functions/ispunct_l.texi: Likewise.
21624         * doc/posix-functions/isspace_l.texi: Likewise.
21625         * doc/posix-functions/isupper_l.texi: Likewise.
21626         * doc/posix-functions/iswalnum_l.texi: Likewise.
21627         * doc/posix-functions/iswalpha_l.texi: Likewise.
21628         * doc/posix-functions/iswblank_l.texi: Likewise.
21629         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21630         * doc/posix-functions/iswctype_l.texi: Likewise.
21631         * doc/posix-functions/iswdigit_l.texi: Likewise.
21632         * doc/posix-functions/iswgraph_l.texi: Likewise.
21633         * doc/posix-functions/iswlower_l.texi: Likewise.
21634         * doc/posix-functions/iswprint_l.texi: Likewise.
21635         * doc/posix-functions/iswpunct_l.texi: Likewise.
21636         * doc/posix-functions/iswspace_l.texi: Likewise.
21637         * doc/posix-functions/iswupper_l.texi: Likewise.
21638         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21639         * doc/posix-functions/isxdigit_l.texi: Likewise.
21640         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21641         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21642         * doc/posix-functions/strcoll_l.texi: Likewise.
21643         * doc/posix-functions/strfmon_l.texi: Likewise.
21644         * doc/posix-functions/strftime_l.texi: Likewise.
21645         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21646         * doc/posix-functions/strxfrm_l.texi: Likewise.
21647         * doc/posix-functions/tolower_l.texi: Likewise.
21648         * doc/posix-functions/toupper_l.texi: Likewise.
21649         * doc/posix-functions/towctrans_l.texi: Likewise.
21650         * doc/posix-functions/towlower_l.texi: Likewise.
21651         * doc/posix-functions/towupper_l.texi: Likewise.
21652         * doc/posix-functions/wcscoll_l.texi: Likewise.
21653         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21654         * doc/posix-functions/wctrans_l.texi: Likewise.
21655         * doc/posix-functions/wctype_l.texi: Likewise.
21656         * doc/glibc-functions/strptime_l.texi: Likewise.
21657         * doc/glibc-functions/strtod_l.texi: Likewise.
21658         * doc/glibc-functions/strtof_l.texi: Likewise.
21659         * doc/glibc-functions/strtol_l.texi: Likewise.
21660         * doc/glibc-functions/strtold_l.texi: Likewise.
21661         * doc/glibc-functions/strtoll_l.texi: Likewise.
21662         * doc/glibc-functions/strtoul_l.texi: Likewise.
21663         * doc/glibc-functions/strtoull_l.texi: Likewise.
21664         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21665         * doc/glibc-functions/wcstod_l.texi: Likewise.
21666         * doc/glibc-functions/wcstof_l.texi: Likewise.
21667         * doc/glibc-functions/wcstol_l.texi: Likewise.
21668         * doc/glibc-functions/wcstold_l.texi: Likewise.
21669         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21670         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21671         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21672
21673 2009-11-24  Bruno Haible  <bruno@clisp.org>
21674
21675         duplocale: Fix logic bug.
21676         * lib/duplocale.c: Don't include <langinfo.h>.
21677         (_NL_LOCALE_NAME): Remove macro.
21678         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21679         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21680
21681 2009-11-23  Jim Meyering  <meyering@redhat.com>
21682
21683         test-update-copyright: don't hard-code /usr/bin/perl
21684         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21685         perl to print the current year.  Gilles Espinasse reported that
21686         the replaced use of perl was hard-coded as /usr/bin/perl.
21687
21688 2009-11-23  Bruno Haible  <bruno@clisp.org>
21689
21690         duplocale: Add support for glibc 2.3.x.
21691         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21692
21693 2009-11-22  Bruno Haible  <bruno@clisp.org>
21694
21695         vasnprintf: Tiny optimization.
21696         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21697         MacOS X.
21698
21699 2009-11-22  Bruno Haible  <bruno@clisp.org>
21700
21701         Tests for module 'duplocale'.
21702         * modules/duplocale-tests: New file.
21703         * tests/test-duplocale.c: New file.
21704
21705         New module 'duplocale'.
21706         * m4/duplocale.m4: New file.
21707         * lib/locale.in.h (duplocale): New declaration.
21708         * lib/duplocale.c: New file.
21709         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21710         gl_LOCALE_H_DEFAULTS): New macros.
21711         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21712         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21713         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21714         REPLACE_DUPLOCALE.
21715         * modules/duplocale: New file.
21716         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21717
21718 2009-11-22  Bruno Haible  <bruno@clisp.org>
21719
21720         * modules/locale-tests (configure.ac): Test for newlocale function.
21721         * tests/test-locale.c: When the system has extended locale functions,
21722         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21723
21724         locale: Make locale_t available when possible.
21725         * lib/locale.in.h: Include <xlocale.h> when it exists.
21726         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21727         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21728         * modules/locale (Depends-on): Add extensions.
21729         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21730         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21731
21732 2009-11-22  Bruno Haible  <bruno@clisp.org>
21733
21734         Add comments.
21735         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21736         invocation.
21737         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21738         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21739         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21740
21741 2009-11-22  Bruno Haible  <bruno@clisp.org>
21742
21743         error: account for the possibility of freopen (stdout).
21744         * lib/error.c: Include <unistd.h>.
21745         (flush_stdout): New function, extracted from error and error_at_line.
21746         Determine stdout's fd dynamically.
21747         (error, error_at_line): Invoke flush_stdout.
21748         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21749         * modules/error (Depends-on): Add unistd.
21750
21751 2009-11-22  Bruno Haible  <bruno@clisp.org>
21752
21753         diffseq: Add comment.
21754         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21755
21756 2009-11-22  Jim Meyering  <meyering@redhat.com>
21757
21758         c-stack: avoid defining an unused static function
21759         * lib/c-stack.c (find_stack_direction): Do not define this function
21760         when it will not be used.
21761
21762         diffseq: avoid spurious gcc warnings
21763         * lib/diffseq.h (IF_LINT2): Define.
21764         (compareseq): Use it to initialize two members of "part".
21765         This avoids two used-uninitialized warnings.
21766
21767 2009-11-21  Jim Meyering  <meyering@redhat.com>
21768
21769         c-stack: avoid "ignoring return value of `write'" warning
21770         * lib/c-stack.c: Include "ignore-value.h".
21771         (die): Explicitly ignore each write return value.
21772         * modules/c-stack (Depends-on): Add ignore-value.
21773
21774 2009-11-21  Bruno Haible  <bruno@clisp.org>
21775
21776         diffseq: reduce scope of variable 'best'.
21777         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21778         variable, earlier used for two different purposes.
21779
21780 2009-11-21  Jim Meyering  <meyering@redhat.com>
21781
21782         diffseq: remove useless assignment to "best"
21783         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21784         assignment.  At that point "best" is already guaranteed to be zero.
21785
21786 2009-11-20  Eric Blake  <ebb9@byu.net>
21787
21788         build: mention ftp redirector in release announcements
21789         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21790         values that used to come from cfg.mk; mention FTP redirect URL.
21791         * build-aux/announce-gen: Mention the mirror list.
21792         Suggested by Karl Berry.
21793
21794         nanosleep: improve port to mingw
21795         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21797         LIB_NANOSLEEP, but only when needed.
21798         * modules/select (Link): Document LIBSOCKET.
21799         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21800         enough.
21801
21802         nanosleep: work around cygwin bug
21803         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21804         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21805         bug.
21806         (getnow): Delete, not needed.
21807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21808         LIB_CLOCK_GETTIME.
21809         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21810         clock-time, gettime.
21811         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21812         bug.
21813         * modules/nanosleep-tests: New test.
21814         * tests/test-nanosleep.c: New file.
21815
21816         sleep: work around cygwin bug
21817         * lib/sleep.c (rpl_sleep): Work around the bug.
21818         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21819         (gl_PREREQ_SLEEP): Delete unused macro.
21820         * modules/sleep (Depends-on): Add verify.
21821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21822         * modules/unistd (Makefile.am): Substitute witness.
21823         * lib/unistd.in.h (sleep): Update prototype.
21824         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21825         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21826         * modules/sleep-tests (Depends-on): Check for alarm.
21827
21828 2009-11-20  Jim Meyering  <meyering@redhat.com>
21829
21830         maint.mk: improve sc_prohibit_magic_number_exit
21831         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21832         so it does not match uses like System.exit(1).
21833         Add comments showing how to correct all offenders.
21834
21835 2009-11-19  Eric Blake  <ebb9@byu.net>
21836
21837         xalloc-die-tests: add missing library
21838         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21839
21840         test-xvasprintf: silence compiler warnings
21841         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21842         empty string from gcc.
21843
21844 2009-11-19  Jim Meyering  <meyering@redhat.com>
21845
21846         xfreopen: new module, from coreutils
21847         * modules/xfreopen: New module.
21848         * lib/xfreopen.c: New file.
21849         * lib/xfreopen.h: New file.
21850         * MODULES.html.sh (File stream based Input/Output"): Add it.
21851
21852 2009-11-19  Eric Blake  <ebb9@byu.net>
21853
21854         manywarnings: depend on warnings
21855         * modules/manywarnings (Depends-on): Add warnings.
21856
21857         build: avoid compiler warnings
21858         * lib/select.c (rpl_select): Delete unused variable.
21859         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21860
21861 2009-11-18  Eric Blake  <ebb9@byu.net>
21862
21863         tests: avoid false negative with --with-packager
21864         * tests/test-version-etc.sh: Discard packager information.
21865         * tests/test-argp-version-etc-1.sh: Likewise.
21866         Reported by Mike Frysinger.
21867
21868         utimens: fix regression on Solaris
21869         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21870         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21871         can only change fd timestamps via futimesat.  Instead, use an
21872         additional witness macro to avoid BSD bug.
21873         Reported by Jim Meyering.
21874
21875 2009-11-17  Eric Blake  <ebb9@byu.net>
21876
21877         usleep: use it to simplify tests
21878         * modules/stat-time-tests (Depends-on): Add usleep.
21879         (configure.ac): Drop usleep check.
21880         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21881         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21882         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21883         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21884         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21885         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21886         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21887         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21888         Likewise.
21889         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21890         * tests/test-lchown.h (nap): Likewise.
21891         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21892         * tests/test-stat-time.c (nap): Likewise.
21893         * tests/test-utimens-common.h (nap): Update comments.
21894
21895         usleep: new module
21896         * modules/usleep: New file.
21897         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21898         * lib/usleep.c (usleep): Likewise.
21899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21900         * modules/unistd (Makefile.am): Substitute witnesses.
21901         * lib/unistd.in.h (usleep): Add declaration.
21902         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21903         * MODULES.html.sh (Date and time): Likewise.
21904         * modules/usleep-tests (Depends-on): New test.
21905         * tests/test-usleep.c: New file.
21906
21907         chown: work around OpenBSD bug
21908         * lib/chown.c (rpl_chown): Work around the bug.
21909         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21910         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21911         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21912         * modules/chown (Depends-on): Add stdbool.
21913         * modules/lchown (Depends-on): Likewise.
21914         * doc/posix-functions/chown.texi (chown): Document the bug.
21915         * doc/posix-functions/lchown.texi (lchown): Likewise.
21916         * tests/test-lchown.h (test_chown): Relax test.
21917
21918         mkstemp: avoid conflict with C++ keyword template
21919         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21920         * lib/mkostemp.c (mkostemp): Likewise.
21921         * lib/mkostemps.c (mkostemps): Likewise.
21922         * lib/mkstemp.c (mkstemp): Likewise.
21923         * lib/mkstemps.c (mkstemps): Likewise.
21924
21925         xalloc-die-tests: optimize
21926         * tests/test-xalloc-die.sh: Reduce number of processes.
21927
21928 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21929
21930         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21931         patch from ludo@gnu.org (Ludovic Courtès).
21932
21933 2009-11-17  Jim Meyering  <meyering@redhat.com>
21934
21935         version-etc: use proper license string
21936         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21937         * modules/version-etc-fsf: Likewise.
21938
21939 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21940
21941         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21942         printed to stdout.  Deal with EOL differences.
21943
21944 2009-11-17  Eric Blake  <ebb9@byu.net>
21945
21946         unsetenv: work around Solaris bug
21947         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21948         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21949         Reported by Jim Meyering.
21950
21951         vasnprintf: avoid compiler warnings
21952         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21953         variables.
21954         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21955
21956 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21957
21958         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21959         settings since xalloc-die is no longer the self test,
21960         xalloc-die.sh is.
21961
21962 2009-11-17  Jim Meyering  <meyering@redhat.com>
21963
21964         test-xalloc-die.sh: make the code agree with the commit log
21965         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21966         at the end, just in case you happen to have a test-xalloc-die
21967         program in some other PATH directory.
21968
21969         test-xalloc-die.sh: fix a portability bug
21970         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21971         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21972         Otherwise, argv[0] (as often seen in diagnostics) would be too
21973         system-dependent, sometimes with, and sometimes without the leading "./".
21974
21975         version-etc-fsf: relax license to LGPLv3+
21976         * modules/version-etc-fsf (License): Relax license.
21977
21978 2009-11-16  Eric Blake  <ebb9@byu.net>
21979
21980         xalloc-die-tests: avoid printing null pointer
21981         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21982         shell script.
21983         * tests/test-xalloc-die.c (program_name): Declare.
21984         * tests/test-xalloc-die.sh (tmpfiles): New file.
21985
21986         setenv, unsetenv: work around various bugs
21987         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21988         (setenv) [HAVE_SETENV]: Work around bugs.
21989         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21990         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21991         for bugs.
21992         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21993         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21995         * modules/stdlib (Makefile.am): Update substitutions.
21996         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21997         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21998         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21999         * modules/setenv-tests: New test.
22000         * modules/unsetenv-tests: Likewise.
22001         * tests/test-setenv.c: New file.
22002         * tests/test-unsetenv.c: Likewise.
22003
22004 2009-11-16  Jim Meyering  <meyering@redhat.com>
22005
22006         version-etc: relax license to LGPLv3+
22007         * modules/version-etc (License): Relax license.
22008
22009         better AC_REQUIRE expanded-before-required-warning avoidance
22010         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22011         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22012         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22013         which is no longer needed.
22014
22015 2009-11-16  Eric Blake  <ebb9@byu.net>
22016
22017         test-freading: clean up temporary file
22018         * tests/test-freading.c (main): Remove file on success, and use
22019         ASSERT more liberally.
22020         Reported by Jim Meyering.
22021
22022 2009-11-16  Jim Meyering  <meyering@redhat.com>
22023
22024         avoid new AC_REQUIRE expanded-before-required warnings
22025         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22026         merely using it.
22027         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22028         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22029
22030 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22031
22032         * tests/test-xalloc-die.c: New file.
22033         * modules/xalloc-die-tests: New file.
22034         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22035         XFAIL_TESTS so it can be appended by modules.
22036
22037 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22038
22039         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22040         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22041
22042 2009-11-14  Eric Blake  <ebb9@byu.net>
22043
22044         fnmatch: avoid compiler warning
22045         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22046         to silence compiler warning about mismatch signedness in ?:.
22047         Reported by Robert Millan.
22048
22049         intprops: add double-inclusion guard
22050         * lib/intprops.h: Allow idempotent includes.
22051         Suggested by Bruce Korb.
22052
22053         openat: detect Solaris fchownat bug
22054         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22055         penalizing glibc chownat when only lchownat is broken.
22056         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22057         trailing slash bugs.
22058         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22059         * modules/openat-tests (Files): Include more files.
22060         (Depends-on): Add mgetgroups, sleep, stat-time.
22061         (configure.ac): Add additional checks.
22062         (Makefile.am): Build new test.
22063         * tests/test-fchownat.c: New file.
22064
22065         lchown: detect Solaris and FreeBSD bug
22066         * lib/lchown.c (rpl_lchown): Work around bug.
22067         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22069         * modules/unistd (Makefile.am): Populate it.
22070         * lib/unistd.in.h (lchown): Update declaration.
22071         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22072         * modules/lchown-tests: New file.
22073         * tests/test-lchown.h (test_lchown): Likewise.
22074         * tests/test-lchown.c (main): Likewise.
22075
22076         chown: detect Solaris and FreeBSD bug
22077         * lib/chown.c (rpl_chown): Work around bug.
22078         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22079         (gl_PREREQ_CHOWN): Delete.
22080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22081         * modules/unistd (Makefile.am): Populate it.
22082         * lib/unistd.in.h (chown): Update declaration.
22083         * lib/lchown.c (chown): Update client.
22084         * modules/lchown (Depends-on): Add lstat.
22085         * doc/posix-functions/chown.texi (chown): Document the bug.
22086         * doc/posix-functions/getgroups.texi (getgroups): Document
22087         getgroups pitfall.
22088         * modules/chown-tests: New file.
22089         * tests/test-chown.h (test_chown): Likewise.
22090         * tests/test-chown.c (main): Likewise.
22091
22092 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22093
22094         gnulib-tool: correctly detect absence of m4 directories
22095         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22096
22097 2009-11-14  Jim Meyering  <meyering@redhat.com>
22098
22099         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22100         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22101
22102 2009-11-14  John W. Eaton  <jwe@gnu.org>
22103
22104         strftime.h: wrap funtion declaration in extern "C" block
22105         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22106
22107 2009-11-13  Eric Blake  <ebb9@byu.net>
22108
22109         getgroups: avoid compiler warning
22110         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22111
22112         getgroups: work around FreeBSD bug
22113         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22114         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22115         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22116         * tests/test-getgroups.c (main): Fix buffer overrun.
22117
22118         getgroups: avoid compilation failure
22119         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22120         * modules/getgroups (Depends-on): Add stdint.
22121
22122 2009-11-13  Jim Meyering  <meyering@redhat.com>
22123
22124         test-getgroups: avoid compilation failure
22125         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22126
22127 2009-11-13  Eric Blake  <ebb9@byu.net>
22128
22129         mgetgroups: new module, taken from coreutils
22130         * modules/mgetgroups: New file.
22131         * lib/mgetgroups.h: Likewise.
22132         * lib/mgetgroups.c (mgetgroups): Likewise.
22133         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22134         * MODULES.html.sh (Users and groups): Mention it.
22135
22136         getgroups: don't expose GETGROUPS_T to user
22137         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22138         an element at a time if GETGROUPS_T is wrong size.
22139         * lib/getugroups.h (getugroups): Change signature.
22140         * lib/unistd.in.h (getgroups): Likewise.
22141         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22142         signature needs fixing.
22143         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22144         AC_TYPE_GETGROUPS.
22145         * modules/group-member (Depends-on): Add getgroups.
22146         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22147         (group_member): Rely on getgroups replacement.
22148         * lib/getugroups.c (getugroups): Use gid_t.
22149         * tests/test-getgroups.c (main): Likewise.
22150         * NEWS: Mention the signature change.
22151         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22152         problem with signature.
22153         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22154         GETGROUPS_T is still useful for setgroups.
22155
22156         getgroups, getugroups: provide stubs for mingw
22157         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22158         * lib/getugroups.c (getugroups): Likewise.
22159         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22160         function.  Modernize replacement scheme.
22161         (gl_PREREQ_GETGROUPS): Delete.
22162         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22163         * modules/getgroups (configure.ac): Declare witness.
22164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22165         * modules/unistd (Depends-on): Substitute witness.
22166         * lib/unistd.in.h (getgroups): Declare replacement.
22167
22168         getgroups: avoid calling exit
22169         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22170         drop xalloc.
22171         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22172         dependencies.
22173         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22174         exiting, in the rare case of malloc failure.
22175
22176         getgroups: fix logic error
22177         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22178         has more than 20 groups.
22179         * modules/getgroups-tests: New test.
22180         * tests/test-getgroups.c: New file.
22181
22182 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22183
22184         * tests/test-base64.c: Improve.
22185
22186 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22187
22188         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22189         Blake <ebb9@byu.net>.
22190
22191 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22192
22193         * tests/test-xvasprintf.c: Add %s%s related checks.
22194
22195 2009-11-12  Eric Blake  <ebb9@byu.net>
22196
22197         version-etc: match standards.texi style
22198         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22199         and use <> only for URLs.
22200
22201 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22202
22203         fts: do not fail on a submount during traversal
22204         * lib/fts.c (fts_build): Read the stat info again after opening
22205         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22206         Original report at http://bugzilla.redhat.com/501848.
22207
22208 2009-11-12  Jim Meyering  <meyering@redhat.com>
22209
22210         bootstrap: sync from coreutils
22211         * build-aux/bootstrap (bootstrap_epilogue): New function.
22212         Use git_modules_config in one more place.  This make bootstrap's
22213         --gnulib-srcdir option more useful for testing.
22214
22215         bootstrap: generalize autoheader check
22216         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22217         AC_CONFIG_HEADERS.
22218
22219 2009-11-11  Eric Blake  <ebb9@byu.net>
22220
22221         mkfifoat: use new modules for Solaris and BSD bugs
22222         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22223         * lib/mkfifoat.c (mknodat): Split...
22224         * lib/mknodat.c (mknodat): ...into new file.
22225         * modules/mkfifoat (Files): Ship new file.
22226         (Depends-on): Add mkfifo, mknod.
22227         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22228         (Depends-on): Add symlink.
22229         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22230         redundant with test_mkfifo.h.
22231         (do_mkfifoat, do_mknodat): New helpers.
22232
22233         mknod: new module
22234         * modules/mknod: New file.
22235         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22236         * lib/mknod.c (mknod): Likewise.
22237         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22238         defaults.
22239         * modules/sys_stat (Makefile.am): Substitute them.
22240         * lib/sys_stat.in.h (mknod): Declare replacement.
22241         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22242         Document it.
22243         * doc/posix-functions/mknod.texi (mknod): Likewise.
22244         * modules/mknod-tests: New test.
22245         * tests/test-mknod.c: Likewise.
22246
22247         mkfifo: new module
22248         * modules/mkfifo: New file.
22249         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22250         * lib/mkfifo.c (mkfifo): Likewise.
22251         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22252         defaults.
22253         * modules/sys_stat (Makefile.am): Substitute them.
22254         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22255         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22256         Document it.
22257         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22258         * modules/mkfifo-tests: New test.
22259         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22260         from test-mkfifoat.c.
22261         * tests/test-mkfifo.c: New file.
22262
22263         readlink: detect FreeBSD bug
22264         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22265         slash on symlink.
22266         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22267         * tests/test-readlink.h (test_readlink): Enhance test.
22268
22269         symlink: detect FreeBSD bug
22270         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22271         slash on symlink.
22272         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22273         * tests/test-symlink.h (test_symlink): Enhance test.
22274
22275 2009-11-10  Eric Blake  <ebb9@byu.net>
22276
22277         link: detect FreeBSD bug
22278         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22279         symlink.
22280         * doc/posix-functions/link.texi (link): Document the bug.
22281         * tests/test-link.h (test_link): Enhance test.
22282         * tests/test-linkat.c (main): Update caller.
22283
22284         unlink, remove: detect FreeBSD bug
22285         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22286         slash on symlink.
22287         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22288         * doc/posix-functions/remove.texi (remove): Likewise.
22289         * tests/test-unlink.h (test_unlink): Enhance test.
22290         * tests/test-remove.c (main): Likewise.
22291
22292 2009-11-09  Eric Blake  <ebb9@byu.net>
22293
22294         rename: detect FreeBSD bug
22295         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22296         slash on symlink.
22297         * modules/renameat-tests (Depends-on): Add filenamecat.
22298         * tests/test-rename.h (test_rename): Allow one more errno.
22299         * tests/test-renameat.c (main): Likewise.
22300         * doc/posix-functions/rename.texi (rename): Document the bug.
22301
22302         open: detect FreeBSD bug
22303         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22304         symlink.
22305         * doc/posix-functions/open.texi (open): Document the bug.
22306         * doc/posix-functions/utimes.texi (utimes): Likewise.
22307         * tests/test-open.h (test_open): Add parameters, and test symlink
22308         handling.
22309         * tests/test-open.c (main): Adjust caller.
22310         * tests/test-fcntl-safer.c (main): Likewise.
22311         * modules/open-tests (Depends-on): Add stdbool, symlink.
22312         * modules/fcntl-safer-tests (Depends-on): Likewise.
22313         * tests/test-openat.c (main): Add test-open tests.
22314
22315         stat: detect FreeBSD bug
22316         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22317         symlink.
22318         * doc/posix-functions/stat.texi (stat): Document the bug.
22319         * tests/test-stat.h (test_stat_func): Add argument.
22320         * tests/test-stat.c (main): Adjust caller.
22321         * tests/test-fstatat.c (main): Likewise.
22322         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22323         Reported by Jim Meyering.
22324
22325 2009-11-09  James Youngman  <jay@gnu.org>
22326
22327         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22328         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22329
22330 2009-11-08  Jim Meyering  <meyering@redhat.com>
22331
22332         utimens: remove invalid futimesat call
22333         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22334         It used the file descriptor of the target file as the DIR_FD
22335         parameter and NULL as the file name.  That caused failure with
22336         errno == EFAULT on FreeBSD-8.0-rc2
22337
22338 2009-11-07  Eric Blake  <ebb9@byu.net>
22339
22340         fflush, freadseek: use fseeko, not fseek
22341         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
22342         (clear_ungetc_buffer): Avoid potential problems on large files.
22343         * lib/freadseek.c (freadseek): Likewise.
22344         * modules/freadseek (Depends-on): Add fseeko.
22345         * modules/fseek (configure.ac): Set a witness.
22346         * tests/test-fflush.c (main): Use fseeko.
22347         * tests/test-fpurge.c (fseek): Disable link warning.
22348         * tests/test-freadable.c (fseek): Likewise.
22349         * tests/test-freading.c (fseek): Likewise.
22350         * tests/test-fseeko.c (fseek): Likewise.
22351         * tests/test-ftell.c (fseek): Likewise.
22352         * tests/test-ftello.c (fseek): Likewise.
22353         * tests/test-fwritable.c (fseek): Likewise.
22354         * tests/test-fwriting.c (fseek): Likewise.
22355
22356 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22357
22358         * modules/memchr (Depends-on): Drop getpagesize dependency.
22359
22360 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22361
22362         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
22363         Reported by Ludovic Courtès.
22364         * build-aux/pmccabe2html: Improve example usage.
22365         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
22366
22367 2009-11-06  Jim Meyering  <meyering@redhat.com>
22368
22369         do-release-commit-and-tag: New module.
22370         Automate the release-commit and tag process.
22371         * build-aux/do-release-commit-and-tag: New script, from coreutils.
22372         * modules/do-release-commit-and-tag: New file.
22373         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22374
22375 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22376
22377         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
22378         because test-select.c uses inet_pton.
22379
22380 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22381
22382         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
22383         GETADDRINFO_LIB.  Bump serial number.
22384         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
22385         Suggested by Eric Blake <ebb9@byu.net>.
22386
22387 2009-11-05  Eric Blake  <ebb9@byu.net>
22388
22389         strtod: detect darwin bug
22390         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
22391         Reported by Leo Davis.
22392
22393         freopen-safer: new module
22394         * modules/freopen-safer: New module.
22395         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
22396         * lib/freopen-safer.c (freopen_safer): New file.
22397         * lib/stdio-safer.h (freopen_safer): New declaration.
22398         * lib/stdio--.h (freopen): New override.
22399         * MODULES.html.sh (File stream based Input/Output): Mention it.
22400         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
22401         freopen-safer module.
22402         * doc/posix-functions/stderr.texi (stderr): Likewise.
22403         * doc/posix-functions/stdin.texi (stdin): Likewise.
22404         * doc/posix-functions/stdout.texi (stdout): Likewise.
22405         * modules/freopen-safer-tests: New test.
22406         * tests/test-reopen-safer.c: New file.
22407
22408 2009-11-05  Jim Meyering  <meyering@redhat.com>
22409
22410         maint.mk: Prohibit inclusion of "close-stream.h" without use.
22411         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22412
22413 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22414
22415         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
22416
22417 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22418
22419         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
22420
22421 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22422
22423         Fix link error.
22424         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22425         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22426
22427 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22428
22429         * tests/test-func.c: Also test value of __func__.
22430
22431 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22432
22433         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
22434         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
22435
22436 2009-11-05  Bruno Haible  <bruno@clisp.org>
22437
22438         Fix link error.
22439         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22440         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22441         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
22442
22443 2009-11-05  Bruno Haible  <bruno@clisp.org>
22444
22445         Tests for module 'inet_pton'.
22446         * modules/inet_pton-tests: New file.
22447         * tests/test-inet_pton.c: New file.
22448
22449 2009-11-05  Bruno Haible  <bruno@clisp.org>
22450
22451         Tests for module 'inet_ntop'.
22452         * modules/inet_ntop-tests: New file.
22453         * tests/test-inet_ntop.c: New file.
22454
22455 2009-11-04  Eric Blake  <ebb9@byu.net>
22456
22457         stdlib-safer: wrap all mkstemp variants
22458         * modules/mkostemp (configure.ac): Set witness.
22459         * modules/mkostemps (configure.ac): Likewise.
22460         * modules/mkstemps (configure.ac): Likewise.
22461         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
22462         (mkstemps_safer): Wrap more functions.
22463         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
22464         wrapping.
22465         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
22466         (mkstemps_safer): Implement the wrappers.
22467
22468         mkstemps, mkostemps: new modules
22469         * modules/mkostemps: New module.
22470         * modules/mkstemps: Likewise.
22471         * lib/mkostemps.c (mkostemps): New file.
22472         * lib/mkstemps.c (mkstemps): Likewise.
22473         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
22474         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
22475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
22476         * modules/stdlib (Makefile.am): Substitute them.
22477         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
22478         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
22479         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22480         * doc/gnulib.texi (Glibc stdlib.h): Include them.
22481         * MODULES.html.sh (File system functions): Mention them.
22482
22483         tempname: resync from glibc
22484         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
22485         same values for __GT_FILE as glibc.  Abort even when assertions
22486         are disabled.
22487         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
22488         match its value otherwise.  Allow idempotent inclusion.
22489         * lib/mkdtemp.c (mkdtemp): Adjust caller.
22490         * lib/mkostemp.c (mkostemp): Likewise.
22491         * lib/mkstemp.c (mkstemp): Likewise.
22492         * lib/tmpfile.c (tmpfile): Likewise.
22493         * NEWS: Document this.
22494
22495         utimens: fix use of futimens on older Linux
22496         * lib/utimens.c (fdutimens): Use updated, rather than original,
22497         timespec to avoid bug in older Linux kernel.
22498         Reported by Simon Josefsson.
22499
22500 2009-11-04  Bruno Haible  <bruno@clisp.org>
22501
22502         Make num_processors more flexible and consistent.
22503         * lib/nproc.h (enum nproc_query): New type.
22504         (num_processors): Add a 'query' argument.
22505         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
22506         (num_processors): Add a 'query' argument. Test the value of the
22507         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
22508         mingw, count the number of CPUs available for the current process.
22509         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
22510         Check for sched_getaffinity and sched_getaffinity_np.
22511         * modules/nproc (Depends-on): Add c-ctype, extensions.
22512         * NEWS: Mention the change.
22513
22514 2009-11-03  Bruno Haible  <bruno@clisp.org>
22515
22516         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
22517
22518 2009-11-03  Jim Meyering  <meyering@redhat.com>
22519
22520         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
22521         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
22522         if it is defined.
22523
22524 2009-11-02  Eric Blake  <ebb9@byu.net>
22525
22526         mktime, timegm: share common declaration
22527         * lib/mktime-internal.h: New file.
22528         * lib/mktime.c: Use it rather than open-coding a declaration.
22529         * lib/timegm.c: Likewise.
22530         * modules/mktime (Files): Ship it.
22531         * modules/timegm (Files): Likewise.
22532         Suggested by Bruno Haible.
22533
22534         test-update-copyright: update test to match script changes
22535         * tests/test-update-copyright.sh: Avoid hard-coding perl
22536         location.  Don't update *.bak created by earlier runs.
22537
22538 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22539             Simon Josefsson  <simon@josefsson.org>
22540             Bruno Haible  <bruno@clisp.org>
22541
22542         Fix link error on Solaris 8.
22543         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
22544         also in libnsl. Define also INET_PTON_LIB.
22545         * modules/inet_pton (Link): New section.
22546
22547 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22548             Bruno Haible  <bruno@clisp.org>
22549
22550         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
22551         * modules/inet_ntop (Link): New section.
22552         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22553
22554 2009-11-02  Eric Blake  <ebb9@byu.net>
22555
22556         maint: avoid compiler warnings in m4 macros
22557         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22558         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22559
22560 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22561
22562         * m4/pmccabe2html.m4: Remove file.
22563         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22564         function.  Change maintainer.
22565         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22566         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22567         Courtès).
22568
22569 2009-10-31  Eric Blake  <ebb9@byu.net>
22570
22571         fseeko: fix m4 regression
22572         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22573         regression from 2009-10-27.
22574         Reported by Ralf Wildenhues.
22575
22576 2009-10-31  Jim Meyering  <meyering@redhat.com>
22577
22578         inttostr: aesthetics and improved (compile-time) safety
22579         Define inttype_is_signed rather than inttype_is_unsigned,
22580         since the sole use is via "#if inttype_is_signed".
22581         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22582         inttype_is_unsigned.
22583         * lib/offtostr.c (inttype_is_signed): Likewise.
22584         * lib/uinttostr.c (inttype_is_signed): Likewise.
22585         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22586         * lib/inttostr.c (inttostr): Use verify to cross-check the
22587         inttype_is_signed value and the signedness of the actual type.
22588         * modules/inttostr (Depends-on): Add verify.
22589
22590 2009-10-30  Eric Blake  <ebb9@byu.net>
22591
22592         build: avoid compiler warnings
22593         * lib/fchmodat.c (lchmod): Mark unused variables.
22594         * lib/getopt.c (_getopt_initialize): Likewise.
22595         * lib/mktime.c (__mktime_internal): Provide prototype.
22596         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22597         older gcc that do not understand #pragma GCC diagnostic.
22598         * lib/uinttostr.c (inttype_is_unsigned): Define.
22599         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22600
22601 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22602
22603         stat: fix compilation on AIX
22604         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22605         only see struct stat64.
22606
22607 2009-10-30  Eric Blake  <ebb9@byu.net>
22608
22609         exclude: make more robust
22610         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22611         rather than masking a coding bug.
22612         Suggested by Bruno Haible.
22613
22614 2009-10-30  Jim Meyering  <meyering@redhat.com>
22615
22616         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22617         Rather than putting #!/usr/bin/perl on the first line,
22618         start with a variant of what's recommended by "man perlrun" that
22619         invokes the first "perl" program from your shell's search path.
22620         * build-aux/gitlog-to-changelog: Replace #!... as above.
22621         Add a "Local Variables" perl mode setting.
22622         Prompted by a patch from Ludovic Courtès.
22623         Improved by Eric Blake.
22624         * build-aux/useless-if-before-free: Likewise.
22625         * build-aux/announce-gen: Likewise.
22626         * build-aux/update-copyright: Likewise.
22627
22628 2009-10-29  Eric Blake  <ebb9@byu.net>
22629
22630         filenamecat-lgpl: adjust clients
22631         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22632         filenamecat.
22633         * modules/renameat (Depends-on): Likewise.
22634
22635         filenamecat: split into filenamecat-lgpl
22636         * modules/filenamecat-lgpl: New module.
22637         * modules/filenamecat (Files): Move library-safe files into
22638         filenamecat-lgpl.
22639         (Depends-on): Add filenamecat-lgpl.
22640         (configure.ac): Declare witness.
22641         * lib/filenamecat.h (file_name_concat): Only declare when using
22642         GPL module.
22643         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22644         Move...
22645         * lib/filenamecat-lgpl.c: ...into new file.
22646         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22647         (gl_FILE_NAME_CONCAT): Use it.
22648         * MODULES.html.sh (File system functions): Mention new module.
22649
22650         argp: avoid memory leak
22651         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22652         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22653         base_name, since the latter malloc()s and can call exit().
22654         Leak introduced 2006-07-03.
22655
22656         dirname-lgpl: adjust clients that don't need full dirname
22657         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22658         * modules/filenamecat (Depends-on): Likewise.
22659         * modules/linkat (Depends-on): Likewise.
22660         * modules/mkancesdirs (Depends-on): Likewise.
22661         * modules/mkdir (Depends-on): Likewise.
22662         * modules/openat (Depends-on): Likewise.
22663         * modules/savewd (Depends-on): Likewise.
22664         * modules/rename (Depends-on): Likewise.
22665         (License): Relax license.
22666         * modules/mkdir-tests (Depends-on): Drop progname.
22667         (Makefile.am): Delete unneeded LDADD.
22668         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22669
22670         dirname: split into dirname-lgpl
22671         * modules/dirname-lgpl: New module.
22672         * modules/dirname (Files): Move library-safe files into
22673         dirname-lgpl.
22674         (Depends-on): Add dirname-lgpl.
22675         (configure.ac): Declare witness.
22676         * modules/double-slash-root (License): Relax license.
22677         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22678         module.
22679         * lib/dirname.c (dir_len, mdir_name): Move...
22680         * lib/dirname-lgpl.c: ...into new file.
22681         * lib/basename.c (last_component, base_len): Move...
22682         * lib/basename-lgpl.c: ...into new file.
22683         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22684         (gl_DIRNAME): Use it.
22685         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22686         Mention new module.
22687         * modules/dirname-tests (Depends-on): Add progname.
22688         * tests/test-dirname.c (program_name): Delete.
22689
22690         mkdir: make safe for libraries
22691         * modules/mkdir (Depends-on): Drop xalloc.
22692         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22693         exit.
22694
22695         tests: avoid some compiler warnings
22696         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22697         literals.
22698         * tests/test-memchr.c (main): Avoid type mismatch.
22699         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22700         * tests/test-base64.c (main): Likewise.
22701         * tests/test-getdelim.c (main): Likewise.
22702         * tests/test-gethostname.c (main): Likewise.
22703         * tests/test-getline.c (main): Likewise.
22704         * tests/test-netinet_in.c (main): Likewise.
22705         * tests/test-select.c (open_server_socket, main): Likewise.
22706         * tests/test-select-stdin.c (main): Likewise.
22707         * tests/test-sockets.c (main): Likewise.
22708         * tests/test-strsignal.c (main): Likewise.
22709         * tests/test-sys_select.c (main): Likewise.
22710         * tests/test-sys_socket.c (main): Likewise.
22711         * tests/test-u64.c (main): Likewise.
22712         * tests/test-xfprintf-posix.c (main): Likewise.
22713         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22714
22715         sockets: avoid compiler warning
22716         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22717
22718         maint: detect usage(1) and other suspicious exits
22719         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22720
22721 2009-10-29  Jim Meyering  <meyering@redhat.com>
22722
22723         timespec: long-to-int truncation could make timespec_cmp malfunction
22724         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22725         a multiple of 2^32 nanoseconds as no difference.
22726
22727 2009-10-28  Jim Meyering  <meyering@redhat.com>
22728
22729         fprintftime: wrap macro code argument in "do {...} while(0)"
22730         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22731         cpy macro must be a statement that can be followed by a semicolon.
22732         Now that the else clause contains a comment and is hence longer
22733         than one line, I require curly braces.  That in turn requires
22734         that we wrap this code block in the standard do...while(0).
22735
22736         fprintftime: remove stray semicolon from previous change
22737         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22738
22739         fprintftime: avoid a warning about ignored fwrite return value
22740         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22741         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22742         that is unsafe.
22743         * modules/fprintftime (Depends-on): Add ignore-value.
22744
22745         exclude: avoid an unwarranted warning
22746         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22747
22748 2009-10-27  Eric Blake  <ebb9@byu.net>
22749
22750         fseek: avoid compilation failure when fflush is replaced
22751         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22752         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22753         module is in use.
22754         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22755         module is not in use; since REPLACE_FSEEK worked otherwise.
22756         (GNULIB_FTELLO): Likewise for ftell.
22757         Reported by Ian Beckwith and others.
22758
22759 2009-10-27  Bruno Haible  <bruno@clisp.org>
22760
22761         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22762         Reported by Jim Meyering.
22763
22764 2009-10-27  Jim Meyering  <jim@meyering.net>
22765             Bruno Haible  <bruno@clisp.org>
22766
22767         Avoid warning despite dropping the return value of fwrite.
22768         * lib/unicodeio.c: Include ignore-value.h.
22769         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22770         * modules/unicodeio (Depends-on): Add ignore-value.
22771
22772 2009-10-26  Eric Blake  <ebb9@byu.net>
22773
22774         areadlinkat: fix fallback path
22775         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22776         pointer and zero.
22777
22778 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22779
22780         Use a better IO block size for modern systems
22781         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22782         * lib/md2.c: Likewise.
22783         * lib/md4.c: Likewise.
22784         * lib/md5.c: Likewise.
22785         * lib/sha1.c: Likewise.
22786         * lib/sha256.c: Likewise.
22787         * lib/sha512.c: Likewise.
22788
22789 2009-10-22  Eric Blake  <ebb9@byu.net>
22790
22791         tests: avoid several compiler warnings
22792         * tests/test-getcwd.c (main): Avoid buffer underflow.
22793         * tests/test-getdate.c (main): String literals are not safe with
22794         putenv, so use setenv.  Declare unused argument.
22795         * modules/getdate-tests (Depends-on): Add setenv.
22796         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22797         problems with string literals in char *.
22798         * tests/test-hash.c (main): Avoid shadowing declaration.
22799         (insert_new): Treat string literals as char const *.
22800         * tests/test-getopt.h (test_getopt): Likewise.
22801         (getopt_loop): Alter types to minimize casting elsewhere.
22802         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22803         (test_getopt_long_posix): Likewise.
22804         (do_getopt_long): Add wrapper to minimize casting.
22805         * tests/test-atexit.c (clear_temp_file): Use void.
22806         * tests/test-areadlink-with-size.c (main): Declare unused
22807         arguments.
22808         * tests/test-areadlink.c (main): Likewise.
22809         * tests/test-areadlinkat-with-size.c (main): Likewise.
22810         * tests/test-areadlinkat.c (main): Likewise.
22811         * tests/test-canonicalize-lgpl.c (main): Likewise.
22812         * tests/test-canonicalize.c (main): Likewise.
22813         * tests/test-dirent-safer.c (main): Likewise.
22814         * tests/test-dirname.c (main): Likewise.
22815         * tests/test-dup2.c (main): Likewise.
22816         * tests/test-fchdir.c (main): Likewise.
22817         * tests/test-fcntl-h.c (main): Likewise.
22818         * tests/test-fcntl-safer.c (main): Likewise.
22819         * tests/test-fdopendir.c (main): Likewise.
22820         * tests/test-fdutimensat.c (main): Likewise.
22821         * tests/test-fflush.c (main): Likewise.
22822         * tests/test-filenamecat.c (main): Likewise.
22823         * tests/test-filevercmp.c (main): Likewise.
22824         * tests/test-fopen-safer.c (main): Likewise.
22825         * tests/test-fopen.c (main): Likewise.
22826         * tests/test-fpending.c (main): Likewise.
22827         * tests/test-fpurge.c (main): Likewise.
22828         * tests/test-freading.c (main): Likewise.
22829         * tests/test-fstatat.c (main): Likewise.
22830         * tests/test-fsync.c (main): Likewise.
22831         * tests/test-futimens.c (main): Likewise.
22832         * tests/test-getndelim2.c (main): Likewise.
22833         * tests/test-gettimeofday.c (main): Likewise.
22834         * tests/test-getopt.c (main): Likewise.
22835         * tests/test-i-ring.c (main): Likewise.
22836         * tests/test-inttypes.c (main): Likewise.
22837         * tests/test-link.c (main): Likewise.
22838         * tests/test-lstat.c (main): Likewise.
22839         * tests/test-math.c (main): Likewise.
22840         * tests/test-md5.c (main): Likewise.
22841         * tests/test-memchr2.c (main): Likewise.
22842         * tests/test-memrchr.c (main): Likewise.
22843         * tests/test-mkdir.c (main): Likewise.
22844         * tests/test-mkdirat.c (main): Likewise.
22845         * tests/test-mkfifoat.c (main): Likewise.
22846         * tests/test-open.c (main): Likewise.
22847         * tests/test-openat-safer.c (main): Likewise.
22848         * tests/test-openat.c (main): Likewise.
22849         * tests/test-quotearg.c (main): Likewise.
22850         * tests/test-rawmemchr.c (main): Likewise.
22851         * tests/test-readlink.c (main): Likewise.
22852         * tests/test-remove.c (main): Likewise.
22853         * tests/test-rename.c (main): Likewise.
22854         * tests/test-renameat.c (main): Likewise.
22855         * tests/test-rmdir.c (main): Likewise.
22856         * tests/test-sha1.c (main): Likewise.
22857         * tests/test-signal.c (main): Likewise.
22858         * tests/test-sigaction.c (main): Likewise.
22859         * tests/test-stat.c (main): Likewise.
22860         * tests/test-stat-time.c (main): Likewise.
22861         * tests/test-stddef.c (main): Likewise.
22862         * tests/test-stdint.c (main): Likewise.
22863         * tests/test-stdio.c (main): Likewise.
22864         * tests/test-stdlib.c (main): Likewise.
22865         * tests/test-strchrnul.c (main): Likewise.
22866         * tests/test-strerror.c (main): Likewise.
22867         * tests/test-string.c (main): Likewise.
22868         * tests/test-strtod.c (main): Likewise.
22869         * tests/test-strverscmp.c (main): Likewise.
22870         * tests/test-symlink.c (main): Likewise.
22871         * tests/test-symlinkat.c (main): Likewise.
22872         * tests/test-sys_stat.c (main): Likewise.
22873         * tests/test-sys_time.c (main): Likewise.
22874         * tests/test-time.c (main): Likewise.
22875         * tests/test-unistd.c (main): Likewise.
22876         * tests/test-unlink.c (main): Likewise.
22877         * tests/test-unlinkat.c (main): Likewise.
22878         * tests/test-utimens.c (main): Likewise.
22879         * tests/test-utimensat.c (main): Likewise.
22880         * tests/test-version-etc.c (main): Likewise.
22881         * tests/test-wchar.c (main): Likewise.
22882         * tests/test-wctype.c (main): Likewise.
22883         * tests/test-xprintf-posix.c (main): Likewise.
22884         * tests/test-posixtm.c (main): Likewise.
22885         (STREQ): Delete unused macro.
22886         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22887         shadowed variables.
22888         * tests/test-memchr.c (main): Likewise.
22889
22890 2009-10-21  Eric Blake  <ebb9@byu.net>
22891
22892         areadlinkat: avoid failure on older glibc
22893         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22894         rather than mis-comparing 0 against FUNC_RESULT of char*.
22895
22896 2009-10-21  Bruno Haible  <bruno@clisp.org>
22897
22898         * modules/stpncpy (License): Relicense under LGPLv2+.
22899         Reported by David Lutterkort <lutter@redhat.com>.
22900
22901 2009-10-20  Eric Blake  <ebb9@byu.net>
22902
22903         utimensat: work around Solaris 9 bug
22904         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22905         has trailing slash bugs.
22906         * tests/test-lutimens.h (test_lutimens): Enhance test.
22907         * tests/test-utimens.h (test_utimens): Likewise.
22908         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22909         * doc/posix-functions/utimes.texi (utimes): Likewise.
22910         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22911         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22912         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22913         * doc/posix-functions/futimens.texi (futimens): Likewise.
22914
22915         fdutimensat: new module
22916         * modules/fdutimensat: New file.
22917         * lib/fdutimensat.c (fdutimensat): Likewise.
22918         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22919         * MODULES.html.sh (File system functions): Mention module.
22920         * modules/fdutimensat-tests: New test.
22921         * tests/test-fdutimensat.c: Likewise.
22922
22923         doc: regenerate INSTALL
22924         * doc/INSTALL: Reflect recent autoconf update.
22925         * doc/INSTALL.ISO: Likewise.
22926         * doc/INSTALL.UTF-8: Likewise.
22927
22928 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22929
22930         acl: warn if ACL support is not detected
22931         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22932
22933 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22934
22935         * lib/nproc.h: Add extern "C" block for C++.
22936
22937 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22938             Bruno Haible  <bruno@clisp.org>
22939
22940         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22941         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22942         * doc/posix-functions/isalpha.texi: Likewise.
22943         * doc/posix-functions/isblank.texi: Likewise.
22944         * doc/posix-functions/iscntrl.texi: Likewise.
22945         * doc/posix-functions/isdigit.texi: Likewise.
22946         * doc/posix-functions/isgraph.texi: Likewise.
22947         * doc/posix-functions/islower.texi: Likewise.
22948         * doc/posix-functions/isprint.texi: Likewise.
22949         * doc/posix-functions/ispunct.texi: Likewise.
22950         * doc/posix-functions/isspace.texi: Likewise.
22951         * doc/posix-functions/isupper.texi: Likewise.
22952         * doc/posix-functions/isxdigit.texi: Likewise.
22953
22954 2009-10-18  Bruno Haible  <bruno@clisp.org>
22955
22956         Tests for module 'isblank'.
22957         * modules/isblank-tests: New file.
22958         * tests/test-isblank.c: New file.
22959
22960         New module 'isblank'.
22961         * lib/isblank.c: New file.
22962         * m4/isblank.m4: New file.
22963         * modules/isblank: New file.
22964         * doc/posix-functions/isblank.texi: Mention the new module.
22965
22966 2009-10-18  Bruno Haible  <bruno@clisp.org>
22967
22968         New module 'ctype'.
22969         * lib/ctype.in.h: New file.
22970         * m4/ctype.m4: New file.
22971         * modules/ctype: New file.
22972         * doc/posix-headers/ctype.texi: Mention the new module.
22973
22974 2009-10-18  Jim Meyering  <meyering@redhat.com>
22975
22976         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22977         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22978         right after its initialization, rather than farther down.
22979         Keeping these in close proximity makes it easier to ensure
22980         that each such variable is initialized.  E.g.,
22981
22982             LIB_CLOCK_GETTIME=
22983             AC_SUBST([LIB_CLOCK_GETTIME])
22984
22985         This change also increments these serial numbers.
22986         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22987         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22989
22990 2009-10-18  Bruno Haible  <bruno@clisp.org>
22991
22992         Don't let environment variables perturb build.
22993         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22994         (gl_PREREQ_GETHRXTIME): ... not here.
22995
22996 2009-10-18  Bruno Haible  <bruno@clisp.org>
22997
22998         Avoid symlink attack in localcharset module.
22999         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23000         (O_NOFOLLOW): Define fallback.
23001         (get_charset_aliases): Don't open the file if it is a symbolic link.
23002         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23003         gl_FCNTL_H.
23004         (gl_FCNTL_H): Require it.
23005         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23006         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23007         Reported by Fergal Glynn <fglynn@veracode.com>.
23008
23009 2009-10-18  Bruno Haible  <bruno@clisp.org>
23010
23011         Implement nproc for mingw.
23012         * lib/nproc.c: Include <windows.h>
23013         (num_processors): On native Windows platforms, try GetSystemInfo.
23014
23015 2009-10-18  Bruno Haible  <bruno@clisp.org>
23016
23017         Implement nproc for IRIX.
23018         * lib/nproc.c: Include <sys/sysmp.h>.
23019         (num_processors): On IRIX systems, try sysmp.
23020         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23021
23022 2009-10-18  Bruno Haible  <bruno@clisp.org>
23023
23024         Implement nproc for HP-UX.
23025         * lib/nproc.c: Include <sys/pstat.h>
23026         (num_processors): On HP-UX systems, try pstat_getdynamic.
23027         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23028         pstat_getdynamic.
23029
23030 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23031             Bruno Haible  <bruno@clisp.org>
23032
23033         Implement nproc for NetBSD, OpenBSD.
23034         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23035         (ARRAY_SIZE): New macro.
23036         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23037         * m4/nproc.m4: New file.
23038         * modules/nproc (Files): Add m4/nproc.m4.
23039         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23040         (Makefile.am): Instead, augment lib_SOURCES.
23041
23042 2009-10-18  Bruno Haible  <bruno@clisp.org>
23043
23044         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23045         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23046         sys/param.h.
23047
23048 2009-10-16  Eric Blake  <ebb9@byu.net>
23049
23050         utimensat: new module
23051         * modules/utimensat: New file.
23052         * lib/utimensat.c (utimensat): Likewise.
23053         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23054         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23055         so we can work around Linux bugs.
23056         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23057         * modules/sys_stat (Makefile.am): Substitute them.
23058         * lib/sys_stat.in.h (utimensat): Declare it.
23059         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23060         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23061         * modules/utimensat-tests: New test.
23062         * tests/test-utimensat.c: Likewise.
23063
23064         utimens: let lutimens work on non-symlinks
23065         * lib/utimens.c (lutimens): Fall back to utimens rather than
23066         failing with ENOSYS, when file is not a symlink.
23067         (utimens): Reduce redirection.
23068         * tests/test-lutimens.h (test_lutimens): Update test to cover
23069         non-symlinks.
23070         * tests/test-utimens.h (test_utimens): Update test to cover
23071         symlinks.
23072         * tests/test-utimens.c (main): Update caller.
23073
23074         utimens: cache whether utimensat syscall works
23075         * lib/utimens.c (utimensat_works_really): New cache variable.
23076         (fdutimens, lutimens): Use it to avoid failing syscall.
23077
23078         test-stat-time, test-utimens: improve portability
23079         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23080         ext4 on alpha, and for cygwin.
23081         * tests/test-utimens-common.h: New file.
23082         (nap): Factor delays into single function.
23083         * tests/test-lutimens.h (test_lutimens): Use new header.
23084         * tests/test-futimens.h (test_futimens): Likewise.
23085         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23086         timestamps to occur from same machine, as was done previously for
23087         test_utimens.
23088         * modules/utimens-tests (Files): Ship new file.
23089         * modules/futimens-tests (Files): Likewise.
23090         Reported in part by Jim Meyering.
23091
23092         sys_stat: sort replacement declarations
23093         * lib/sys_stat.in.h: Sort declarations.
23094         * lib/futimens.c (futimens): Fix typo.
23095
23096 2009-10-15  Jim Meyering  <meyering@redhat.com>
23097
23098         don't let environment settings perturb build
23099         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23100         could cause a configure-time and/or build-time malfunction.
23101         Typically, a configure-time function-in-library test is performed
23102         via code like this:
23103
23104           LIB_VAR=
23105           AC_SUBST([LIB_VAR])
23106           prefix_saved_LIBS=$LIBS
23107             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23108                        [test "$ac_cv_search_FUNC" = "none required" ||
23109                         LIB_VAR=$ac_cv_search_FUNC])
23110           LIBS=$prefix_saved_LIBS
23111
23112         However, in each of the files affected by this change, the LIB_VAR=
23113         initialization was omitted.  Thus, when set in the environment, its
23114         value would propagate into generated Makefiles when FUNC is not found
23115         in LIB_NAME.
23116         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23117         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23119
23120 2009-10-14  Eric Blake  <ebb9@byu.net>
23121
23122         fchdir: avoid infinite recursion in mingw
23123         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23124         recursing.
23125
23126         test-stat-time: port to mingw
23127         * tests/test-stat-time.c (force_unlink): Return a value.
23128         (test_ctime) [W32]: Fix compilation error.
23129         (nap): Don't call usleep with too large an argument.  Use
23130         force_unlink.
23131         * doc/pastposix-functions/usleep.texi (usleep): Document the
23132         portability issue.
23133
23134 2009-10-13  Jim Meyering  <meyering@redhat.com>
23135
23136         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23137         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23138         * modules/pipe-filter-ii: Likewise.
23139         * modules/sys_socket-tests: Likewise.
23140         * modules/tsearch-tests: Likewise.
23141         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23142         (check): Depend on it.
23143
23144 2009-10-12  Eric Blake  <ebb9@byu.net>
23145
23146         utimens-tests: port to NFS file systems
23147         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23148         comparisons to avoid spurious failures from timestamp drift
23149         between NFS machines.
23150
23151 2009-10-12  Eric Blake  <ebb9@byu.net>
23152
23153         stat-time-tests: minor cleanups
23154         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23155         * tests/test-stat-time.c (nap): Separate assignment from call.
23156         Suggested by Paolo Bonzini and Bruno Haible.
23157
23158         sys_stat: guarantee struct timespec
23159         * lib/sys_stat.in.h (includes): Always include <time.h>
23160         * modules/sys_stat (Depends-on): Add time.
23161         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23162         mode_t permission values.
23163         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23164         get at subsecond timestamps.
23165
23166 2009-10-10  Eric Blake  <ebb9@byu.net>
23167
23168         futimens: new module
23169         * modules/futimens: New file.
23170         * lib/futimens.c (futimens): Likewise.
23171         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23172         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23173         we can work around Linux bugs.
23174         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23175         * modules/sys_stat (Makefile.am): Substitute them.
23176         * lib/sys_stat.in.h (futimens): Declare it.
23177         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23178         * doc/posix-functions/futimens.texi (futimens): Likewise.
23179         * modules/futimens-tests: New test.
23180         * tests/test-futimens.c: Likewise.
23181
23182         utimens: introduce fdutimens
23183         * lib/utimens.h (fdutimens): New prototype.
23184         * lib/utimens.c (gl_futimens): Move guts...
23185         (fdutimens): ...to new interface.
23186         * tests/test-utimens.c (do_fdutimens): Use it.
23187
23188         utimens: add UTIME_NOW and UTIME_OMIT support
23189         * lib/utimens.c (validate_timespec, update_timespec): New helper
23190         functions.
23191         (gl_futimens, lutimens): Use them.
23192         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23193         stdbool, sys_stat.
23194         (Link): Mention resulting library dependency.
23195         * modules/utimecmp (Link): Likewise.
23196         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23197         (Makefile.am): Pick up library dependency.
23198         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23199         definition.
23200         * tests/test-sys_stat.c: Test the definitions.
23201         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23202         * NEWS: Document library dependency.
23203
23204         utimecmp: support symlink timestamps
23205         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23206         hashing when possible.  Use pathconf when available.
23207         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23208         * modules/utimecmp (Depends-on): Add lstat.
23209
23210         utimens: add lutimens interface
23211         * lib/utimens.c (lutimens): New function.
23212         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23213         * lib/utimens.h (lutimens): Declare new interface.
23214         * tests/test-utimens.c (main): Enhance test.
23215         * tests/test-lutimens.h (test_lutimens): New file.
23216         * modules/utimens-tests (Files): Distribute it.
23217         (Depends-on): Add symlink.
23218         (configure.ac): Check for usleep.
23219
23220         utimens: validate futimens usage
23221         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23222         fewer syscalls on failure later on.  Avoid compiler warning on
23223         mingw.
23224         * modules/utimens (Depends-on): Add dup2.
23225
23226         utimens: add test
23227         * modules/utimens-tests: New test.
23228         * tests/test-utimens.h: New file.
23229         * tests/test-futimens.h: Likewise.
23230         * tests/test-utimens.c: Likewise.
23231
23232         doc: mention timestamp portability issues
23233         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23234         instead.
23235         * doc/posix-functions/utime.texi (utime): Likewise.
23236         * doc/posix-functions/utimes.texi (utimes): Likewise.
23237         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23238         instead.
23239         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23240         module.
23241         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23242         Mention weakness with symlink timestamps.
23243         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23244         to utimensat/futimens instead.
23245         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23246
23247         test-dup2: enhance test
23248         * tests/test-dup2.c (main): Also check AT_FDCWD.
23249
23250         test-stat-time: avoid more spurious failures
23251         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23252         xfs; and avoid race if the two timestamps cross quantization edge.
23253
23254         relocatable: prefer 'file system' over 'filesystem'
23255         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23256         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23257         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23258         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23259         * lib/relocatable.c (compute_curr_prefix): Likewise.
23260
23261 2009-10-10  Jim Meyering  <meyering@redhat.com>
23262
23263         stat-time-tests: check for the usleep function
23264         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23265
23266 2009-10-10  Bruno Haible  <bruno@clisp.org>
23267
23268         * modules/xnanosleep: Put the Link section after the Include section.
23269
23270 2009-10-09  Eric Blake  <ebb9@byu.net>
23271
23272         dup2: work around FreeBSD 6.1 bug
23273         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23274         * doc/posix-functions/dup2.texi (dup2): Document it.
23275         Reported by Nelson H. F. Beebe and Jim Meyering.
23276
23277         test-stat-time: port to buggy NFS clients
23278         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23279         (test_ctime): Also skip test if mtime and ctime are skewed.
23280
23281         maint: prefer 'file system' over 'filesystem'
23282         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23283         * doc/posix-functions/lstat.texi (lstat): Likewise.
23284         * lib/file-has-acl.c (file_has_acl): Likewise.
23285         * lib/fwriteerror.c [TEST]: Likewise.
23286         * tests/test-areadlink.h (test_areadlink): Likewise.
23287         * tests/test-areadlinkat-with-size.c (main): Likewise.
23288         * tests/test-areadlinkat.c (main): Likewise.
23289         * tests/test-canonicalize-lgpl.c (main): Likewise.
23290         * tests/test-canonicalize.c (main): Likewise.
23291         * tests/test-fstatat.c (main): Likewise.
23292         * tests/test-linkat.c (main): Likewise.
23293         * tests/test-lstat.h (test_lstat_func): Likewise.
23294         * tests/test-mkdir.h (test_mkdir): Likewise.
23295         * tests/test-readlink.h (test_readlink): Likewise.
23296         * tests/test-remove.c (main): Likewise.
23297         * tests/test-rename.h (test_rename): Likewise.
23298         * tests/test-renameat.c (main): Likewise.
23299         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23300         * tests/test-symlink.h (test_symlink): Likewise.
23301         * tests/test-symlinkat.c (main): Likewise.
23302         * tests/test-unlink.h (test_unlink_func): Likewise.
23303         * tests/test-unlinkat.c (main): Likewise.
23304
23305         maint: make realtime library usage explicit
23306         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23307         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23308         * modules/settime (Link): Likewise.
23309         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23310
23311         test-stat-time: speed up execution
23312         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23313         warning on mingw.
23314         (nap): New helper function.
23315         (prepare_test): Use it to reduce sleep time.
23316         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23317         execution.
23318         * modules/stat-time-tests (configure.ac): Check for usleep.
23319
23320 2009-10-09  Jim Meyering  <meyering@redhat.com>
23321
23322         selinux-h: always use getfilecon wrappers
23323         * lib/getfilecon.c: New file.
23324         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23325         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23326         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23327         (fgetfilecon): Provide a stub.
23328         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23329         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23330         file unconditionally.
23331         When <selinux/selinux.h> is found, arrange to use wrappers.
23332         * modules/selinux-h (Files): Add getfilecon.c.
23333         (Makefile.am): Substitute include-next-related bits
23334         into the now-always-generated selinux/selinux.h file.
23335         * doc/glibc-functions/lgetfilecon.texi: New file.
23336         * doc/glibc-functions/fgetfilecon.texi: New file.
23337         * doc/glibc-functions/getfilecon.texi: New file.
23338         * doc/glibc-functions/getfilecon-desc.texi: New file.
23339         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23340         which to pull in the new files.
23341         * MODULES.html.sh (Misc): Add selinux-h.
23342
23343 2009-10-08  Jim Meyering  <meyering@redhat.com>
23344
23345         unistd: fix comment typo
23346         * lib/unistd.in.h (euidaccess): Fix a comment typo.
23347
23348 2009-10-08  Eric Blake  <ebb9@byu.net>
23349
23350         areadlink: use SIZE_MAX consistently
23351         * modules/areadlink (Depends-on): Add stdint.
23352         * modules/areadlink-with-size (Depends-on): Likewise.
23353         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
23354         gives NULL; drop sys/types, since unistd gives size_t; and add
23355         stdint for SIZE_MAX.
23356         (SIZE_MAX): Rely on headers.
23357         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
23358         and add stdint.
23359         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
23360         (SIZE_MAX): Likewise.
23361         (INITIAL_BUF_SIZE): Turn into enum.
23362         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
23363
23364 2009-10-08  Jim Meyering  <meyering@redhat.com>
23365
23366         areadlinkat: avoid compilation failure
23367         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
23368         Fix typo in comment.
23369
23370 2009-10-07  Eric Blake  <ebb9@byu.net>
23371
23372         areadlinkat-with-size: new module
23373         * modules/areadlinkat-with-size: New module.
23374         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
23375         * lib/areadlink.h (areadlinkat): Declare it.
23376         * MODULES.html.sh (File system functions): Mention it.
23377         * modules/areadlinkat-with-size-tests: New test.
23378         * tests/test-areadlinkat-with-size.c: New file.
23379
23380         xreadlinkat: new module
23381         * modules/xreadlinkat: New module.
23382         * lib/xreadlinkat.c (xreadlinkat): New file.
23383         * lib/xreadlink.h (xreadlinkat): Declare it.
23384         * MODULES.html.sh (File system functions): Mention it.
23385
23386         areadlinkat: new module
23387         * lib/at-func.c (FUNC_FAIL): New define.
23388         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
23389         * modules/areadlinkat: New module.
23390         * lib/linkat.c (areadlinkat): Move...
23391         * lib/areadlinkat.c (areadlinkat): ...to new file.
23392         * lib/areadlink.h (areadlinkat): Declare it.
23393         * modules/linkat (Depends-on): Add areadlinkat.
23394         * MODULES.html.sh (File system functions): Mention it.
23395         * modules/areadlinkat-tests: New test.
23396         * tests/test-areadlinkat.c: New file.
23397
23398         areadlink, areadlink-with-size: add tests
23399         * modules/areadlink-tests: New test.
23400         * modules/areadlink-with-size-tests: Likewise.
23401         * tests/test-areadlink.h: New file.
23402         * tests/test-areadlink.c: Likewise.
23403         * tests/test-areadlink-with-size.c: Likewise.
23404
23405         maint: minor cleanups
23406         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
23407         _UNUSED_PARAMETER_ instead.
23408         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
23409         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
23410         * modules/linkat-tests (Files): Distribute test-link.h.
23411
23412         openat, utimens: whitespace cleanup
23413         * lib/openat.c: Prefer space throughout, rather than mix of 8
23414         spaces vs. tabs.
23415         * lib/at-func.c: Likewise.
23416         * lib/utimens.c: Likewise.
23417
23418         openat: avoid using wrong fd
23419         * lib/openat.c (openat_permissive): Reject user's fd if saving the
23420         working directory chooses same fd.
23421         * lib/at-func.c (AT_FUNC_NAME): Likewise.
23422
23423         mkdir, mkdirat: fix cygwin 1.5.x bug
23424         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
23425         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
23426         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
23427         bug.
23428         (gl_PREREQ_MKDIR): Delete unused macro.
23429         * modules/mkdir (Files): Track file rename.
23430         (configure.ac): Update macro name.
23431         * modules/openat (Depends-on): Add mkdir.
23432         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
23433
23434         mkdir, mkdirat: add tests
23435         * modules/mkdir-tests: New test.
23436         * tests/test-mkdir.h: New file.
23437         * tests/test-mkdir.c: Likewise.
23438         * tests/test-mkdirat.c: Likewise.
23439         * modules/openat-tests (Files): Add new files.
23440         (Makefile.am): Run new test.
23441
23442 2009-10-06  Eric Blake  <ebb9@byu.net>
23443
23444         doc: tweak *at function documentation
23445         * doc/posix-functions/faccessat.texi (faccessat): Mention
23446         known issue with replacement.
23447         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
23448         * doc/posix-functions/linkat.texi (linkat): Likewise.
23449         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23450         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23451         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23452         * doc/posix-functions/renameat.texi (renameat): Likewise.
23453         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23454
23455         openat: fix GNU/Hurd bug in unlinkat
23456         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
23457         broken.
23458         * doc/posix-functions/unlink.texi (unlink): Document this.
23459         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
23460
23461         fdopendir: fix GNU/Hurd bug
23462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
23463         allowing non-directory fds.
23464         * lib/fdopendir.c (rpl_fdopendir): Work around it.
23465         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23466         * modules/dirent (Makefile.am): Substitute it.
23467         * lib/dirent.in.h (fdopendir): Declare replacement.
23468         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
23469         * tests/test-fdopendir.c (main): Test something other than
23470         /dev/null, since on Hurd that behaves like a directory.
23471
23472         test-symlink: port to GNU/Hurd
23473         * tests/test-symlink.h (test_symlink): Relax expected errno.
23474
23475         doc: tweak more cygwin information
23476         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
23477         now compatible with glibc.
23478         * doc/posix-functions/getopt.texi (getopt): Likewise.
23479
23480         getopt-gnu: add another test
23481         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
23482         guarantee behavior relied on by m4.
23483         * tests/test-getopt.c (main): Use it.
23484         * modules/getopt-posix-tests (Depends-on): Add setenv.
23485         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
23486
23487         getopt: fix compilation on darwin
23488         * lib/getopt.in.h (includes): Leave breadcrumbs during system
23489         include.
23490         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
23491         Reported by Ludovic Courtès.
23492
23493 2009-10-06  Bruno Haible  <bruno@clisp.org>
23494
23495         * modules/size_max (Description): Discourage its use.
23496         Reported by Simon Josefsson.
23497
23498 2009-10-06  Jim Meyering  <meyering@redhat.com>
23499
23500         linkat: avoid compilation failure
23501         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
23502
23503 2009-10-05  Eric Blake  <ebb9@byu.net>
23504
23505         linkat: support Linux 2.6.17
23506         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
23507         linkat on Linux, but allow cache variable override.
23508         * lib/linkat.c (rpl_linkat): Define override.
23509         * modules/linkat (Depends-on): Add symlinkat.
23510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
23511         * modules/unistd (Makefile.am): Substitute it.
23512         * lib/unistd.in.h (linkat): Declare replacement.
23513         Reported by Pádraig Brady.
23514
23515         quotearg: port test to systems with C.UTF-8 locale
23516         * tests/test-quotearg.c (struct result_strings): Add another
23517         member, differentiating between C.ASCII and C.UTF-8 handling.
23518         (compare_strings): Add parameter.
23519         (main): Adjust all callers.
23520
23521         getopt: avoid clash with FreeBSD _getopt_internal
23522         * lib/getopt.in.h (_getopt_internal): Override the name.
23523         * lib/getopt_int.h (includes): Pick up any overrides.
23524         Reported by Reuben Thomas.
23525
23526         hash: allow C89 compilation
23527         * lib/hash.c (check_tuning): Move declaration before statement.
23528         Reported by Reuben Thomas.
23529
23530 2009-10-05  Karl Berry  <karl@gnu.org>
23531
23532         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
23533
23534 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
23535             Bruno Haible  <bruno@clisp.org>
23536
23537         * lib/uname.c (uname): Use a table-driven algorithm to compute
23538         Windows NT versions.
23539
23540 2009-10-04  Bruno Haible  <bruno@clisp.org>
23541
23542         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
23543         program_invocation_short_name.
23544         * modules/progname (configure.ac): Test for presence of
23545         program_invocation_short_name.
23546         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23547
23548 2009-10-04  Bruno Haible  <bruno@clisp.org>
23549
23550         * lib/progname.c (set_program_name): Fix comment.
23551         Reported by Jim Meyering.
23552
23553 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23554             Bruno Haible  <bruno@clisp.org>
23555
23556         * lib/uname.c: Include <string.h>.
23557         (uname): Do only one call to GetVersionEx in the common case.
23558
23559 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23560             Bruno Haible  <bruno@clisp.org>
23561
23562         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23563         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23564         (uname): Add support for Windows CE and various non-x86 CPU types.
23565
23566 2009-10-03  Bruno Haible  <bruno@clisp.org>
23567
23568         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23569         invocation to tests/configure.ac.
23570         Reported by Ian Beckwith <ianb@erislabs.net>.
23571
23572 2009-10-02  Eric Blake  <ebb9@byu.net>
23573
23574         fchdir: avoid compiler warning
23575         * lib/fchdir.c (canonicalize_file_name)
23576         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23577
23578         test-open: support mingw errno values
23579         * tests/test-open.h (test_open): Relax test.
23580         * tests/test-fopen.h (test_fopen): Likewise.
23581         * tests/test-openat-safer.c (main): Likewise.
23582
23583         open: fix opening directory on mingw
23584         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23585
23586         test-open: on GNU/Hurd, /dev/null is a directory
23587         * tests/test-fopen.h (main): Rename...
23588         (test_fopen): ...to this.  Use a guaranteed non-directory when
23589         confirming open behavior on trailing slash.
23590         * tests/test-openat-safer.c (main): Likewise.
23591         * tests/test-open.h (main): Likewise....
23592         (test_open): ...to this.
23593         * tests/test-fopen.c (main): Adjust caller.
23594         * tests/test-fopen-safer.c (main): Likewise.
23595         * tests/test-open.c (main): Likewise.
23596         * tests/test-fcntl-safer.c (main): Likewise.
23597         Reported by Samuel Thibault.
23598
23599         rename, fchdir: don't ignore chdir failure
23600         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23601         * lib/rename.c (rpl_rename) [W32]: Likewise.
23602         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23603         an empty destination directory if source cannot be renamed,
23604         although there is still possibility for failure.
23605         * doc/posix-functions/rename.texi (rename): Document the race.
23606         Reported by Jim Meyering.
23607
23608         maint: cleanup whitespace in recent commits
23609         * lib/rename.c (rpl_rename): Remove tabs.
23610         * tests/test-link.h (test_link): Likewise.
23611         * lib/fchdir.c (get_name): Likewise.
23612         Reported by Jim Meyering.
23613
23614 2009-10-02  Ben Pfaff  <blp@gnu.org>
23615
23616         relocatable-prog-wrapper: Add missing dependency on
23617         double-slash-root.
23618         * modules/relocatable-prog-wrapper: Add dependency.
23619         Reported by Ian Beckwith <ianb@erislabs.net>.
23620
23621 2009-10-02  Eric Blake  <ebb9@byu.net>
23622
23623         renameat: fix Solaris bugs
23624         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23625         needed fixing.
23626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23627         * modules/stdio (Makefile.am): Substitute it.
23628         * lib/stdio.in.h (renameat): Declare replacement.
23629         * lib/renameat.c (rpl_renameat): Implement fix.
23630
23631         renameat: new module
23632         * modules/renameat: New file.
23633         * lib/renameat.c (renameat): Likewise.
23634         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23636         * modules/stdio (Makefile.am): Substitute them.
23637         * lib/stdio.in.h (renameat): Declare it.
23638         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23639         * doc/posix-functions/renameat.texi (renameat): Likewise.
23640         * modules/renameat-tests: New test.
23641         * tests/test-renameat.c: Likewise.
23642
23643         rename: fix mingw bugs
23644         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23645         directory overwrite bugs.
23646
23647         rename: fix another cygwin 1.5 bug
23648         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23649         checks.
23650         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23651         unnecessary cygwin workarounds.  Also work around bug with moving
23652         full directory onto an empty one.
23653         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23654
23655         rename-dest-slash: merge into rename module
23656         * modules/rename-dest-slash (Status): Mark obsolete.
23657         (Depends-on): Add rename.
23658         (Files): Let rename do it all.
23659         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23660         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23661         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23662         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23663         * lib/rename.c (rpl_rename): Update comments.
23664
23665         rename: fix cygwin 1.5.x bugs
23666         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23667         * lib/rename.c (rpl_rename): Work around them.
23668         * modules/rename (Depends-on): Add same-inode.
23669
23670         rename: fix Solaris 10 bug
23671         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23672         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23673         was the only bug.
23674
23675         rename: fix Solaris 9 bug
23676         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23677         on non-directory.  Avoid calling exit.
23678         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23679         strdup.
23680         * modules/rename-tests (Depends-on): Drop lstat.
23681         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23682         (gl_PREREQ_RENAME): Delete unused macro.
23683
23684         rename-dest-slash: fix NetBSD bug
23685         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23686         links.
23687         * modules/rename-dest-slash (Depends-on): Add same-inode.
23688
23689         rename-tests: new test, exposes several platform bugs
23690         * modules/rename-tests: New file.
23691         * tests/test-rename.h: Likewise.
23692         * tests/test-rename.c: Likewise.
23693         * doc/posix-functions/rename.texi (rename): Improve documentation,
23694         including bugs that will eventually be fixed in gnulib.
23695
23696 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23697
23698         * lib/uname.c: Include <stdlib.h>
23699         (uname): Assume version info is available.
23700
23701 2009-10-02  Jim Meyering  <meyering@redhat.com>
23702
23703         gnu-web-doc-update: correct --help output
23704         * build-aux/gnu-web-doc-update: Make --help output relevant.
23705
23706         gnu-web-doc-update: add standard options
23707         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23708
23709         gnu-web-doc-update: New module.
23710         Use this script to automatically update the on-line web documentation
23711         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23712         * modules/gnu-web-doc-update: New file, from coreutils.
23713         * build-aux/gnu-web-doc-update: New script.
23714
23715 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23716
23717         link: LoadLibrary is not needed.
23718         * lib/link.c: Use GetModuleHandle.
23719
23720 2009-10-01  Eric Blake  <ebb9@byu.net>
23721
23722         getopt: bump serial number
23723         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23724         change.
23725
23726         tests: tighten link, rmdir, and remove tests
23727         * tests/test-link.h (includes): No need to use <config.h> here.
23728         Clean up if directory hard link was created, otherwise test for
23729         trailing '.'.
23730         * tests/test-linkat.c (main): Simplify.
23731         * tests/test-remove.c (main): Enhance test for trailing '.'.
23732         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23733
23734 2009-10-01  Jim Meyering  <meyering@redhat.com>
23735
23736         maint.mk: requiring "make major" was annoying, for a "minor" release.
23737         What is intended is "stable", to contrast with alpha and beta,
23738         so require "make stable", not "make major".
23739         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23740         (get_tool_versions): Likewise.
23741         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23742
23743 2009-09-30  Ben Pfaff  <blp@gnu.org>
23744
23745         Fix broken build of replacement for Windows tmpfile().
23746         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23747         flags argument added along with the 'mkostemp' module.
23748
23749 2009-09-28  Bruno Haible  <bruno@clisp.org>
23750
23751         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23752         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23753         to 'remove_elt'.
23754         (gl_list_remove): Update.
23755         * lib/gl_list.c (gl_list_remove): Update.
23756         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23757         to 'remove_elt'.
23758         (gl_oset_remove): Update.
23759         * lib/gl_list.c (gl_oset_remove): Update.
23760         Reported by Eric Blake.
23761
23762 2009-09-28  Eric Blake  <ebb9@byu.net>
23763
23764         doc: mention yet more cygwin 1.7 status
23765         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23766         cygwin.
23767         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23768         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23769
23770         argp: fix test failure
23771         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23772         that are not upper-case.  Pass correct range to tolower.
23773
23774 2009-09-27  Jim Meyering  <meyering@redhat.com>
23775
23776         test-yesno: work around sparc-dash here-document infelicity
23777         Without this change, the literal \177 byte in a here document
23778         would make dash 0.5.5.1-3 access uninitialized memory.
23779         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23780         Instead, use a marker, "@", and filter through tr to create the desired
23781         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23782
23783 2009-09-27  Bruno Haible  <bruno@clisp.org>
23784
23785         Disable untested support for new flavours of ACLs on AIX.
23786         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23787         progress.
23788         * lib/set-mode-acl.c (qset_acl): Likewise.
23789
23790 2008-12-07  Bruno Haible  <bruno@clisp.org>
23791
23792         Add support for new flavours of ACLs on AIX. (Untested.)
23793         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23794         (file_has_acl): Add support for newer AIX.
23795         * lib/set-mode-acl.c (qset_acl): Likewise.
23796         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23797         Rainer Tammer <tammer@tammer.net>.
23798
23799 2009-09-26  Eric Blake  <ebb9@byu.net>
23800
23801         argp: fix compilation of getopt
23802         * lib/getopt.in.h (includes): Use different guard than glibc.
23803         Reported by Sergey Poznyakoff.
23804
23805         doc: mention more cygwin 1.7 status
23806         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23807         bug.
23808         * doc/posix-functions/execl.texi (execl): Likewise.
23809         * doc/posix-functions/execle.texi (execle): Likewise.
23810         * doc/posix-functions/execlp.texi (execlp): Likewise.
23811         * doc/posix-functions/execv.texi (execv): Likewise.
23812         * doc/posix-functions/execve.texi (execve): Likewise.
23813         * doc/posix-functions/execvp.texi (execvp): Likewise.
23814         * doc/glibc-functions/canonicalize_file_name.texi
23815         (canonicalize_file_name): Cygwin 1.7 now provides this.
23816         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23817         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23818         on AT_SYMLINK_NOFOLLOW.
23819
23820 2009-09-24  Eric Blake  <ebb9@byu.net>
23821
23822         test-linkat: make test more robust
23823         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23824
23825         getopt: fix inclusion guards for cygwin
23826         * modules/getopt-posix (Depends-on): Add include-next.
23827         (Makefile.am): Substitute more items in replacement header.
23828         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23829         <getopt.h>.
23830         * lib/getopt.in.h (includes): Use split inclusion guard, and
23831         prefer <getopt.h> over include <unistd.h> when one is present.
23832         (option): Also override name of 'struct option'.
23833
23834         same-inode: revert prior change; it is not yet ready
23835         * NEWS: Undo mention of this change.
23836         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23837         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23838         * lib/cycle-check.c (cycle_check): Likewise.
23839         * lib/same.c (same_name): Likewise.
23840         * lib/at-func2.c (at_func2): Likewise.
23841
23842 2009-09-23  Eric Blake  <ebb9@byu.net>
23843
23844         linkat: new module
23845         * modules/linkat: New file.
23846         * lib/at-func2.c (at_func2): Likewise.
23847         * lib/linkat.c (linkat): Likewise.
23848         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23849         * lib/openat-priv.h (at_func2): Add declaration.
23850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23851         * modules/unistd (Makefile.am): Substitute them.
23852         * lib/unistd.in.h (linkat): Declare it.
23853         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23854         * doc/posix-functions/linkat.texi (linkat): Likewise.
23855         * doc/posix-functions/link.texi (link): Tweak wording.
23856         * tests/test-link.c (main): Move guts...
23857         * tests/test-link.h (test_link): ...into new file.
23858         * modules/linkat-tests: New test.
23859         * tests/test-linkat.c: Likewise.
23860         * modules/link-tests (Files): Ship new file.
23861         (Depends-on): Add stdbool.
23862
23863         dirname: add library-safe mdir_name
23864         * lib/dirname.h (mdir_name): New prototype.
23865         * lib/dirname.c (dir_name): Move guts...
23866         (mdir_name): ...to new function that avoids xalloc_die.
23867
23868         fchdir: another mingw fix
23869         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23870         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23871         on mingw (where it has not yet been ported), and make it optional
23872         elsewhere.
23873         (_gl_register_fd): Use it.
23874
23875         same-inode: make SAME_INODE tri-state, to port to mingw
23876         * NEWS: Mention this change.
23877         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23878         st_ino always being 0.
23879         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23880         * lib/cycle-check.c (cycle_check): Likewise.
23881         * lib/same.c (same_name): Likewise.
23882
23883         lstat: avoid mingw compilation error
23884         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23885         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23886         lstat ourselves.
23887         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23888         was adequate.
23889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23890         the checks for lstat.
23891         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23892
23893         link: fix test failure on Solaris 9
23894         * lib/link.c (rpl_link): Don't assume link will catch bogus
23895         trailing slash on source.
23896
23897         test-symlinkat: enhance test
23898         * tests/test-readlink.c (main): Move guts...
23899         * tests/test-readlink.h (test_readlink): ...into new file.
23900         * tests/test-symlink.c (main): Move guts...
23901         * tests/test-symlink.h (test_symlink): ...into new file.
23902         * tests/test-symlinkat.c (main): Use new files for further
23903         coverage.
23904         (do_symlink, do_readlink): New helper functions.
23905         * modules/symlink-tests (Files): Ship new file.
23906         (Depends-on): Add stdbool.
23907         * modules/readlink-tests (Files): Ship new file.
23908         (Depends-on): Add stdbool.
23909         * modules/symlinkat-tests (Files): Use new files.
23910
23911 2009-09-23  Eric Blake  <ebb9@byu.net>
23912
23913         readlink: document portability issue with symlink length
23914         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23915         systems have bogus st_size on symlinks, and mention the
23916         areadlink-with-size module.
23917         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23918         * doc/posix-functions/readlink.texi (readlink): Mention the
23919         areadlink module, and ERANGE failure.
23920         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23921         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23922
23923         readlink: fix Solaris 9 bug with trailing slash
23924         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23925         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23926         * doc/posix-functions/readlink.texi (readlink): Document this.
23927         * modules/readlink-tests: New test.
23928         * tests/test-readlink.c: Likewise.
23929
23930         readlink: fix cygwin 1.5.x bug with return type
23931         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23932         * lib/unistd.in.h (readlink): Use ssize_t.
23933         * lib/readlink.c (readlink): Likewise.
23934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23935         * modules/unistd (Makefile.am): Substitute it.
23936         * lib/unistd.in.h (readlink): Declare replacement.
23937         * doc/posix-functions/readlink.texi (readlink): Document this.
23938
23939         symlink: use throughout gnulib
23940         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23941         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23942         symlink is not used.
23943         * modules/symlinkat (Depends-on): Add symlink.
23944         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23945         * modules/canonicalize-tests (Depends-on): Likewise.
23946         * modules/lstat-tests (Depends-on): Likewise.
23947         * modules/openat-tests (Depends-on): Likewise.
23948         * modules/remove-tests (Depends-on): Likewise.
23949         * modules/rmdir-tests (Depends-on): Likewise.
23950         * modules/unlink-tests (Depends-on): Likewise.
23951         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23952         * tests/test-canonicalize.c (symlink): Likewise.
23953         * tests/test-fstatat.c (symlink): Likewise.
23954         * tests/test-lstat.c (symlink): Likewise.
23955         * tests/test-remove.c (symlink): Likewise.
23956         * tests/test-rmdir.c (symlink): Likewise.
23957         * tests/test-unlink.c (symlink): Likewise.
23958         * tests/test-unlinkat.c (symlink): Likewise.
23959
23960         symlink: new module, for Solaris 9 bug
23961         * modules/symlink: New file.
23962         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23963         * lib/symlink.c: Likewise.
23964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23965         * modules/unistd (Makefile.am): Substitute them.
23966         * lib/unistd.in.h (symlink): Declare replacement.
23967         * MODULES.html.sh (File system functions): Mention it.
23968         * doc/posix-functions/symlink.texi (symlink): Likewise.
23969         * modules/symlink-tests: New test.
23970         * tests/test-symlink.c: Likewise.
23971
23972 2009-09-23  Bruno Haible  <bruno@clisp.org>
23973
23974         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23975         when needed.
23976         Test case: gnulib-tool --import --with-tests atexit inttypes.
23977         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23978
23979 2009-09-23  Bruno Haible  <bruno@clisp.org>
23980
23981         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23982         subcommand, not in a subshell.
23983
23984 2009-09-22  Eric Blake  <ebb9@byu.net>
23985
23986         unistd: sort replacement declarations
23987         * lib/unistd.in.h: Sort declarations.
23988
23989         open, openat: minor optimization
23990         * lib/open.c (open): If open succeeded, len is non-zero.
23991         * lib/openat.c (rpl_openat): Likewise.
23992
23993         link-follow: ensure correct result
23994         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23995         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23996         distinguish between possible failures.
23997
23998 2009-09-21  Eric Blake  <ebb9@byu.net>
23999
24000         fts: avoid compiler warning
24001         * lib/fts.c (dirent_inode_sort_may_be_useful)
24002         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24003
24004 2009-09-19  Bruno Haible  <bruno@clisp.org>
24005
24006         * lib/progreloc.c (canonicalize_file_name): New declaration.
24007
24008 2009-09-19  Eric Blake  <ebb9@byu.net>
24009
24010         link: fix quoting
24011         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24012
24013         openat: fix openat bugs on Solaris 9
24014         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24015         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24016         * modules/openat (Depends-on): Add open.
24017         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24018         * modules/fcntl-h (Makefile.am): Substitute it.
24019         * lib/fcntl.in.h (openat): Declare replacement.
24020         * doc/posix-functions/openat.texi (openat): Document this.
24021
24022         openat: move fstatat and unlinkat into correct files
24023         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24024         compiled.
24025         * lib/openat.c (fstatat, unlinkat): Move...
24026         * lib/fstatat.c (fstatat): ...into correct files.
24027         * lib/unlinkat.c (unlinkat): Likewise.
24028
24029         openat: fix unlinkat bugs on Solaris 9
24030         * lib/unlinkat.c (unlinkat): New file.
24031         * modules/openat (Depends-on): Add unlink.
24032         (Files): Distribute it.
24033         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24034         trailing slash behavior is broken.
24035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24036         * modules/unistd (Makefile.am): Substitute it.
24037         * lib/unistd.in.h (unlinkat): Declare replacement.
24038         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24039
24040         openat: fix fstatat bugs on Solaris 9
24041         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24042         stat.
24043         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24044
24045         test-unlinkat: enhance test, to expose Solaris 9 bug
24046         * tests/test-unlink.c (main): Factor guts...
24047         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24048         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24049         * tests/test-rmdir.c (main): Adjust caller.
24050         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24051         (unlinker): New helper function.
24052         (rmdirat): Enhance check.
24053         * modules/rmdir-tests (Depends-on): Add stdbool.
24054         * modules/unlink-tests (Depends-on): Likewise.
24055         (Files): Add test-unlink.h.
24056         * modules/openat-tests (Files): Likewise.
24057         (Depends-on): Add unlinkdir.
24058
24059         test-fstatat: new test, to expose Solaris 9 bugs
24060         * tests/test-stat.c (main): Factor guts...
24061         * tests/test-stat.h (test_stat_func): ...into new file.
24062         * tests/test-lstat.c (main): Factor guts...
24063         * tests/test-lstat.h (test_lstat_func): ...into new file.
24064         * tests/test-fstatat.c: New file.
24065         * modules/stat-tests (Files): Add test-stat.h.
24066         * modules/lstat-tests (Files): Add test-lstat.h.
24067         (Depends-on): Add stdbool.
24068         * modules/openat-tests (Depends-on): Add pathmax.
24069         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24070         (Makefile.am): Run new test.
24071
24072         remove: new module, for mingw and Solaris 9 bugs
24073         * modules/remove: New file.
24074         * lib/remove.c: Likewise.
24075         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24077         * modules/stdio (Makefile.am): Use them.
24078         * lib/stdio.in.h (remove): Declare replacement.
24079         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24080         * doc/posix-functions/remove.texi (remove): Likewise.
24081         * modules/remove-tests: New test.
24082         * tests/test-remove.c: Likewise.
24083
24084         unlink: new module, for Solaris 9 bug
24085         * modules/unlink: New file.
24086         * lib/unlink.c: Likewise.
24087         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24089         * modules/unistd (Makefile.am): Use them.
24090         * lib/unistd.in.h (stat): Declare replacement.
24091         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24092         * doc/posix-functions/unlink.texi (unlink): Likewise.
24093         * modules/unlink-tests: New test.
24094         * tests/test-unlink.c: Likewise.
24095
24096         lstat: fix Solaris 9 bug
24097         * lib/lstat.c (lstat): Also check for trailing slash on
24098         non-symlink, non-directories.  Use stat module to simplify logic.
24099         * doc/posix-functions/lstat.texi (lstat): Document it.
24100         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24101         (configure.ac): Check for symlink.
24102         * tests/test-lstat.c (main): Add more tests.
24103
24104         stat: add as dependency to other modules
24105         * modules/chown (Depends-on): Add stat.
24106         * modules/euidaccess (Depends-on): Likewise.
24107         * modules/fchdir (Depends-on): Likewise.
24108         * modules/isdir (Depends-on): Likewise.
24109         * modules/link (Depends-on): Likewise.
24110         * modules/lstat (Depends-on): Likewise.
24111         * modules/mkdir-p (Depends-on): Likewise.
24112         * modules/modechange (Depends-on): Likewise.
24113         * modules/open (Depends-on): Likewise.
24114         * modules/readlink (Depends-on): Likewise.
24115         * modules/same (Depends-on): Likewise.
24116
24117         stat: fix Solaris 9 bug
24118         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24119         slash.
24120         * lib/stat.c (rpl_stat): Work around it.
24121         * doc/posix-functions/stat.texi (stat): Update documentation.
24122
24123         stat: new module, for mingw bug
24124         * modules/stat: New file.
24125         * lib/stat.c: Likewise.
24126         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24127         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24128         * modules/sys_stat (Makefile.am): Use them.
24129         * lib/sys_stat.in.h (stat): Declare replacement.
24130         * lib/openat.c (fstatat): Deal with lstat and stat being function
24131         macros.
24132         * modules/openat (Depends-on): Add inline.
24133         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24134         * doc/posix-functions/stat.texi (stat): Likewise.
24135         * modules/stat-tests: New test.
24136         * tests/test-stat.c: Likewise.
24137
24138 2009-09-19  Jim Meyering  <meyering@redhat.com>
24139
24140         syntax-check: detect unnecessary inclusion of canonicalize.h
24141         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24142
24143 2009-09-19  Eric Blake  <ebb9@byu.net>
24144
24145         canonicalize-lgpl: adjust clients to use correct header
24146         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24147         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24148         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24149         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24150         * lib/progreloc.c (includes): Likewise.
24151
24152 2009-09-19  Jim Meyering  <meyering@redhat.com>
24153
24154         test-posixtm.c: correct a comment
24155         * tests/test-posixtm.c: Correct first-line comment.
24156         Spotted by Eric Blake.
24157
24158 2009-09-16  Jim Meyering  <meyering@redhat.com>
24159
24160         posixtm-tests: make T const-correct; add a test case
24161         * tests/test-posixtm.c (T): Declare const.
24162         Add a test for -(2^31+1).
24163         Remove useless can-succeed-only-in-2002 test.
24164
24165         posixtm-tests: adjust the sole failing test
24166         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24167         expected output matches what mktime now produces.  Cross-checked via
24168         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24169
24170         posixtm: move #ifdef'd tests into a new module
24171         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24172         * tests/test-posixtm.c: ... this new file.
24173         * modules/posixtm-tests: New module.
24174
24175 2009-09-19  Eric Blake  <ebb9@byu.net>
24176
24177         openat: simplify use of at-func.c
24178         * lib/at-func.c (includes): Include prerequisites here, to
24179         simplify requirements on client files.
24180         * lib/openat-priv.h: Add double-inclusion guard.
24181         * lib/faccessat.c (includes): Simplify.
24182         * lib/fchmodat.c (includes): Likewise.
24183         * lib/fchownat.c (includes): Likewise.
24184         * lib/mkdirat.c (includes): Likewise.
24185         * lib/mkfifoat.c (includes): Likewise.
24186         * lib/symlinkat.c (includes): Likewise.
24187
24188         openat: allow return of fd 0
24189         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24190         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24191         unistd-safer.
24192         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24193         <fcntl.h>; this module does not leak fds.
24194         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24195         must be allowed to return 0, leaving openat_safer to add the
24196         safety.
24197         (openat_permissive): Avoid writing to just-opened fd 2 if
24198         restoring the current directory fails.
24199         * lib/openat-die.c (openat_restore_fail): Add comment.
24200         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24201         (save_cwd): Guarantee safe fd, but without use of open_safer.
24202         * tests/test-openat.c: New test.
24203         * modules/openat-tests (Files, Makefile.am): Distribute and build
24204         new file.
24205
24206         relocatable-prog-wrapper: fix build
24207         * modules/relocatable-prog-wrapper (Files): Update name of
24208         canonicalize m4 file, broken on 2009-09-17.
24209         Reported by emad hajjar <aleppos@hotmail.com>.
24210
24211 2009-09-19  Bruno Haible  <bruno@clisp.org>
24212
24213         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24214         * lib/safe-alloc.c: Likewise.
24215         Reported by Ian Beckwith <ianb@erislabs.net>.
24216
24217 2009-09-18  Bruno Haible  <bruno@clisp.org>
24218
24219         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24220         Reported by <erobles@sensacd.com.mx>.
24221
24222 2009-09-17  Eric Blake  <ebb9@byu.net>
24223
24224         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24225         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24226         slashes when checking if last component is missing.
24227         * tests/test-canonicalize.c (main): Test this.
24228
24229         canonicalize, canonicalize-lgpl: honor // if distinct from /
24230         * modules/canonicalize (Files): Add double-slash-root.m4.
24231         * modules/canonicalize-lgpl (Files): Likewise.
24232         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24233         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24234         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24235         fallback definition.
24236         (canonicalize_filename_mode): Use it to protect //.
24237         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24238         (__realpath): Likewise.
24239         * tests/test-canonicalize.c (main): Test this.
24240         * tests/test-canonicalize-lgpl.c (main): Likewise.
24241         * modules/canonicalize-tests (Depends-on): Add same-inode.
24242         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24243
24244         canonicalize-lgpl: fix glibc bug with trailing slash
24245         * m4/canonicalize-lgpl.m4: Move contents...
24246         * m4/canonicalize.m4: ...here.
24247         (gl_CANONICALIZE_LGPL): Factor realpath check...
24248         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24249         glibc 2.3.5 bug, fixed 2005-04-27.
24250         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24251         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24252         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24253         * modules/canonicalize-lgpl (Files): Manage file rename.
24254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24255         * modules/stdlib (Makefile.am): Substitute witness.
24256         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24257         is needed.
24258         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24259         replacement is required.
24260         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24261         * doc/glibc-functions/canonicalize_file_name.texi
24262         (canonicalize_file_name): Document this.
24263         * doc/posix-functions/realpath.texi (realpath): Likewise.
24264
24265         canonicalize-lgpl: reject non-directory with trailing slash
24266         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24267         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24268         catches failures in glibc 2.3.5.
24269         * tests/test-canonicalize.c (main): Likewise.
24270
24271         canonicalize-lgpl: use native realpath if it works
24272         * lib/canonicalize-lgpl.c (realpath): Guard with
24273         FUNC_REALPATH_WORKS.
24274         * lib/stdlib.in.h (realpath): Make declaration optional based on
24275         HAVE_REALPATH.
24276         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24277         native realpath works.
24278         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24279         * modules/stdlib (Makefile.am): Substitute witness.
24280
24281         canonicalize, canonicalize-lgpl: use <stdlib.h>
24282         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24283         (Include): Mention <stdlib.h>.
24284         (configure.ac): Mention functions we provide.
24285         * modules/canonicalize (configure.ac): Likewise.
24286         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24287         realpath if canonicalize_file_name is missing.
24288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24289         * modules/stdlib (Makefile.am): Substitute witnesses.
24290         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24291         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24292         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24293         * NEWS: Document this.
24294         * doc/glibc-functions/canonicalize_file_name.texi
24295         (canonicalize_file_name): Likewise.
24296         * doc/posix-functions/realpath.texi (realpath): Likewise.
24297         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24298
24299         test-canonicalize: consolidate into single C program
24300         * tests/test-canonicalize.sh: Delete; move setup into...
24301         * tests/test-canonicalize.c (main): ...the program, making it
24302         easier to run in debugger.  Add some tests.
24303         * modules/canonicalize-tests (Files): Remove unused file.
24304         (Depends-on): Add progname.
24305         (configure.ac, Makefile.am): Simplify.
24306
24307         test-canonicalize-lgpl: consolidate into single C program
24308         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24309         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24310         easier to run in debugger.  Add some tests.
24311         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24312         (configure.ac, Makefile.am): Simplify.
24313
24314         canonicalize: avoid resolvepath
24315         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24316         unnecessary checks.
24317         * lib/canonicalize.c (includes): Simplify.
24318         (canonicalize_file_name): Drop resolvepath implementation.
24319         * modules/canonicalize (Depends-on): Drop filenamecat.
24320
24321         canonicalize: don't lose errno
24322         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24323         over calls to free.
24324
24325         canonicalize: simplify errno handling
24326         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24327         assignment.
24328
24329         canonicalize, canonicalize-lgpl: update module dependencies
24330         * modules/canonicalize (Depends-on): Add extensions, lstat,
24331         pathmax, stdlib.
24332         (Files): Drop pathmax.h.
24333         (configure.ac): Adjust macro name.
24334         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24335         lstat, stdlib, sys_stat.
24336         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24337         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24338         extensions.
24339         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24340         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
24341         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
24342         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
24343         declaration, if available.
24344         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
24345         we can rely on the readlink module.
24346         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
24347         (includes): Use <unistd.h> unconditionally.
24348
24349 2009-09-17  Eric Blake  <ebb9@byu.net>
24350
24351         maint: make Include sections of modules consistent
24352         * modules/alloca: Use only header name; no need to list #include.
24353         * modules/alloca-opt: Likewise.
24354         * modules/arpa_inet: Likewise.
24355         * modules/canon-host: Likewise.
24356         * modules/configmake: Likewise.
24357         * modules/dirent: Likewise.
24358         * modules/eealloc: Likewise.
24359         * modules/environ: Likewise.
24360         * modules/fchdir: Likewise.
24361         * modules/fcntl: Likewise.
24362         * modules/fcntl-h: Likewise.
24363         * modules/gethrxtime: Likewise.
24364         * modules/gettime: Likewise.
24365         * modules/ignore-value: Likewise.
24366         * modules/inet_ntop: Likewise.
24367         * modules/inet_pton: Likewise.
24368         * modules/inttypes: Likewise.
24369         * modules/isnand-nolibm: Likewise.
24370         * modules/isnanf-nolibm: Likewise.
24371         * modules/mbchar: Likewise.
24372         * modules/mbfile: Likewise.
24373         * modules/mbiter: Likewise.
24374         * modules/mbuiter: Likewise.
24375         * modules/netdb: Likewise.
24376         * modules/netinet_in: Likewise.
24377         * modules/nproc: Likewise.
24378         * modules/pagealign_alloc: Likewise.
24379         * modules/poll: Likewise.
24380         * modules/printf-frexp: Likewise.
24381         * modules/pthread: Likewise.
24382         * modules/putenv: Likewise.
24383         * modules/random_r: Likewise.
24384         * modules/relocatable-prog: Likewise.
24385         * modules/search: Likewise.
24386         * modules/select: Likewise.
24387         * modules/selinux-h: Likewise.
24388         * modules/settime: Likewise.
24389         * modules/signal: Likewise.
24390         * modules/size_max: Likewise.
24391         * modules/socklen: Likewise.
24392         * modules/ssize_t: Likewise.
24393         * modules/stdarg: Likewise.
24394         * modules/stdbool: Likewise.
24395         * modules/stddef: Likewise.
24396         * modules/stdint: Likewise.
24397         * modules/stdio: Likewise.
24398         * modules/stdlib: Likewise.
24399         * modules/string: Likewise.
24400         * modules/strings: Likewise.
24401         * modules/sys_file: Likewise.
24402         * modules/sys_ioctl: Likewise.
24403         * modules/sys_select: Likewise.
24404         * modules/sys_socket: Likewise.
24405         * modules/sys_stat: Likewise.
24406         * modules/sys_time: Likewise.
24407         * modules/sys_times: Likewise.
24408         * modules/sys_utsname: Likewise.
24409         * modules/sys_wait: Likewise.
24410         * modules/sysexits: Likewise.
24411         * modules/time: Likewise.
24412         * modules/times: Likewise.
24413         * modules/tmpfile: Likewise.
24414         * modules/trim: Likewise.
24415         * modules/unistd: Likewise.
24416         * modules/wchar: Likewise.
24417         * modules/wctype: Likewise.
24418
24419 2009-09-17  Bruno Haible  <bruno@clisp.org>
24420
24421         Make getdate.y compile on QNX and NetBSD 5 / i386.
24422         * m4/getdate.m4 (gl_GETDATE): Conditionally define
24423         TIME_T_FITS_IN_LONG_INT.
24424         * lib/getdate.y (long_time_t): New type.
24425         (relative_time): Change type of 'seconds' field to long_time_t.
24426         (get_date): Update types of local variables. Check against overflow
24427         during conversion from long_time_t to time_t.
24428         Reported by Matt Kraai <kraai@ftbfs.org>
24429         and Hasso Tepper <hasso@netbsd.org>.
24430
24431 2009-09-17  Bruno Haible  <bruno@clisp.org>
24432
24433         * modules/COPYING: Update copyright years.
24434         * modules/README: Likeiwse.
24435         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
24436         Reported by Ian Beckwith <ianb@erislabs.net>.
24437
24438 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24439
24440         * users.txt: Update references for gnuit package.
24441
24442 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24443
24444         * m4/getdelim.m4: Fix typo in copyright line.
24445
24446 2009-09-17  Bruno Haible  <bruno@clisp.org>
24447
24448         * lib/atoll.c: Use the standard header with GPL copyright.
24449         * lib/argz.in.h: Likewise.
24450         * lib/glob.c: Likewise.
24451         * lib/glob-libc.h: Likewise.
24452         * lib/random_r.c: Likewise.
24453         * lib/siglist.h: Likewise.
24454         * lib/strsignal.c: Likewise.
24455         Reported by Ian Beckwith <ianb@erislabs.net>.
24456
24457 2009-09-17  Eric Blake  <ebb9@byu.net>
24458
24459         rmdir: ensure correct dependency order
24460         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
24461
24462 2009-09-17  Bruno Haible  <bruno@clisp.org>
24463
24464         Disable assertion that fails on NetBSD 5 / i386.
24465         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
24466         Reported by Sam Steingold <sds@gnu.org>
24467         and Hasso Tepper <hasso@netbsd.org>.
24468
24469 2009-09-16  Eric Blake  <ebb9@byu.net>
24470
24471         unlinkdir: port to mingw
24472         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
24473         on which no one can unlink a directory.
24474
24475         stdlib: sort witness names
24476         * modules/stdlib (Makefile.am): Sort replacements.
24477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24478         * lib/stdlib.in.h: Likewise.
24479
24480         parse-duration-tests: avoid link failure
24481         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
24482         LIBINTL.
24483         Reported by Tom G. Christensen.
24484
24485         openat-tests: ensure unlinkat behaves like rmdir
24486         * tests/test-rmdir.c (main): Factor guts...
24487         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
24488         * modules/rmdir-tests (Files): Ship new file.
24489         * modules/openat-tests: New test.
24490         * tests/test-unlinkat.c: Likewise.
24491
24492         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
24493         * modules/rmdir-errno (Status, Notice): Now obsolete.
24494
24495         rmdir: work around cygwin 1.5.x and mingw bugs
24496         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
24497         * lib/rmdir.c (rmdir): Work around it.
24498         * modules/rmdir (Status, Notice): No longer obsolete.
24499         (Files): Add dos.m4.
24500         (Depends-on): Add unistd.
24501         (configure.ac): Set witnesses.
24502         (License): Relax to LGPLv2+.
24503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
24504         * modules/unistd (Makefile.am): Substitute witnesses.
24505         * lib/unistd.in.h (rmdir): Declare replacement.
24506         * doc/posix-functions/rmdir.texi (rmdir): Document this.
24507         * modules/rmdir-tests: New tests.
24508         * tests/test-rmdir.c: Likewise.
24509
24510 2009-09-15  Eric Blake  <ebb9@byu.net>
24511
24512         fchdir: improve use of replacement functions
24513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
24514         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
24515         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
24516         REPLACE_CLOSEDIR.
24517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
24518         * modules/sys_stat (Makefile.am): Substitute correct witness.
24519         * modules/dirent (Makefile.am): Likewise.
24520         * modules/unistd (Makefile.am): Likewise.
24521         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
24522         * lib/unistd.in.h (dup): Likewise.
24523         * lib/sys_stat.in.h (fstat): Likewise.
24524
24525         maint: ignore gnulib-tool temp files
24526         * .gitignore: Ignore files created during gnulib-tool --test.
24527
24528 2009-09-13  Jim Meyering  <meyering@redhat.com>
24529
24530         posixtm: don't reject a time that specify "60" as the number of seconds
24531         * lib/posixtm.c (posixtime): The code to reject invalid dates
24532         would also reject a time specified with the .60 suffix.
24533         But POSIX allows that, in order to accommodate leap seconds.
24534         So don't reject it.
24535         (main): Adjust tests accordingly.
24536         * modules/posixtm (Depends-on): Add stpcpy.
24537
24538 2009-09-11  Jim Meyering  <meyering@redhat.com>
24539
24540         announce-gen: include [$release_type] in emitted Subject:
24541         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
24542         e.g., [stable] in the emitted Subject: line.
24543
24544 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24545
24546         Remove obsolete macros from several modules.
24547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
24548         obsolete Autoconf macros with their modern counterparts.
24549         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
24550         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
24551         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24552         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24553         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24554         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24555         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24556         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24557         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24558         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24559         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24560         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24561         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24562         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24563         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24564         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24565         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24566         * m4/time_r.m4 (gl_TIME_R): Likewise.
24567         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24568         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24569         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24570
24571         Fix copyright header in build-aux scripts.
24572         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24573         recommendation.
24574         * build-aux/ncftpput-ftp: Likewise.
24575         * build-aux/update-copyright: Likewise.
24576
24577 2009-09-09  Eric Blake  <ebb9@byu.net>
24578
24579         test-link: allow Linux choice of errno
24580         * tests/test-link.c (main): Relax test for alternate error.
24581
24582         strndup: fix improper m4 caching
24583         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24584         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24585         (gl_PREREQ_STRNDUP): Delete.
24586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24587         * modules/string (Makefile.am): Substitute it.
24588         * lib/string.in.h (strndup): Modernize prototype.
24589
24590         getcwd: port to mingw
24591         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24592         different from the POSIX assumptions made throughout the getcwd
24593         module; fortunately, the mingw getcwd does not need replacement.
24594         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24595         * modules/getcwd-tests: New test.
24596         * tests/test-getcwd.c: Likewise.
24597
24598         link: fix platform bugs
24599         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24600         * lib/link.c (link): Work around them.  Fix related mingw bug.
24601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24602         * modules/unistd (Makefile.am): Substitute it.
24603         * lib/unistd.in.h (link): Declare replacement.
24604         * doc/posix-functions/link.texi (link): Document this.
24605         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24606
24607         test-link: consolidate into single C program, test more cases
24608         * tests/test-link.sh: Delete.
24609         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24610         at least Cygwin and Solaris.
24611         * modules/link-tests (Files): Remove unused file.
24612         (Depends-on): Add errno, sys_stat.
24613         (Makefile.am): Simplify.
24614
24615 2009-09-08  Bruno Haible  <bruno@clisp.org>
24616
24617         Work around towlower, towupper bug on mingw.
24618         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24619         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24620         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24621         * doc/posix-functions/towupper.texi: Likewise.
24622         Reported by Eric Blake.
24623
24624 2009-09-08  Jim Meyering  <meyering@redhat.com>
24625
24626         build: don't try to run autoheader if we don't use it
24627         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24628         is not used in configure.ac.
24629
24630 2009-09-08  Eric Blake  <ebb9@byu.net>
24631
24632         euidaccess: fix compilation error
24633         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24634
24635         rawmemchr: relax license
24636         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24637         okay.
24638         Reported by Jim Meyering.
24639
24640         mkfifoat: new module
24641         * modules/mkfifoat: New file.
24642         * lib/mkfifoat.c: Likewise.
24643         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24644         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24645         * modules/sys_stat (Makefile.am): Use them.
24646         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24647         * MODULES.html.sh (File system functions): Mention module.
24648         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24649         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24650         * modules/mkfifoat-tests: New test.
24651         * tests/test-mkfifoat.c: Likewise.
24652
24653         strchrnul: relax license
24654         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24655         okay.
24656         Reported by Jim Meyering.
24657
24658 2009-09-08  Eric Blake  <ebb9@byu.net>
24659
24660         fstatat: fix compilation on Solaris
24661         * lib/fstatat.c (includes): Add fcntl.h.
24662         Reported by Pádraig Brady.
24663
24664 2009-09-07  Eric Blake  <ebb9@byu.net>
24665
24666         rename: modernize replacement
24667         * modules/rename (Depends-on): Add stdio.
24668         (configure.ac): Declare witness.
24669         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24670         stdio take care of replacement.
24671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24672         * modules/stdio (Makefile.am): Substitute them.
24673         * lib/stdio.in.h (rename): Declare replacement.
24674         * lib/rename.c (includes): Allow cross-compilation to non-windows
24675         machines.
24676         * doc/posix-functions/rename.texi (rename): Improve
24677         documentation.
24678
24679         stdio: sort witness names
24680         * modules/stdio (Makefile.am): Sort replacements.
24681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24682         * lib/stdio.in.h: Likewise.
24683
24684         getcwd: minor cleanups
24685         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24686         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24687
24688         openat: provide more convenience names
24689         * modules/faccessat (configure.ac): Add C witness.
24690         * lib/unistd.in.h (readlinkat): Fix typo.
24691         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24692         convenience wrappers.
24693         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24694         wrappers in syntax checks.
24695
24696 2009-09-06  Eric Blake  <ebb9@byu.net>
24697
24698         doc: fix comments in recent patches
24699         * lib/faccessat.c: Mention correct function.
24700         * lib/fchmodat.c: Likewise.
24701         * lib/fchownat.c: Likewise.
24702         * lib/symlinkat.c: Likewise.
24703         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24704         constants.
24705
24706         faccessat, symlinkat: continue cleanup of previous patch
24707         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24708         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24709         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24711         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24712         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24713         set.
24714
24715 2009-09-06  Bruno Haible  <bruno@clisp.org>
24716
24717         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24718         (fstatat): Declare if GNULIB_FSTATAT is set.
24719         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24720         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24721         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24722         * modules/fcntl-h (Files): Remove m4/openat.m4.
24723         * modules/sys_stat (Files): Remove m4/openat.m4.
24724         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24725         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24726         * modules/unistd (Files): Remove m4/openat.m4.
24727         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24728         GNULIB_OPENAT.
24729         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24730         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24731         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24732         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24733         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24734         gl_OPENAT_DEFAULTS.
24735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24736         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24737         Don't require gl_OPENAT_DEFAULTS.
24738         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24739         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24740         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24741         (gl_OPENAT_DEFAULTS): Remove macro.
24742
24743 2009-09-06  Bruno Haible  <bruno@clisp.org>
24744
24745         * modules/openat (configure.ac): Remove unneeded witness.
24746
24747 2009-09-06  Bruno Haible  <bruno@clisp.org>
24748
24749         Set errno to ENOSYS when a function is entirely unsupported.
24750         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24751         EOPNOTSUPP.
24752         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24753         * modules/chown (Depends-on): Remove errno.
24754
24755 2009-09-06  Bruno Haible  <bruno@clisp.org>
24756
24757         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24758
24759 2009-09-06  Bruno Haible  <bruno@clisp.org>
24760
24761         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24762
24763 2009-09-06  Ben Pfaff  <blp@gnu.org>
24764             Bruno Haible  <bruno@clisp.org>
24765
24766         Work around a glibc bug in strtok_r.
24767         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24768         Undefine if UNDEFINE_STRTOK_R is set.
24769         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24770         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24771         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24772         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24773         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24774         UNDEFINE_STRTOK_R.
24775         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24776
24777 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24778
24779         exclude: minor fix
24780         * lib/exclude.c: Include wctype.h
24781
24782 2009-09-06  Akim Demaille  <demaille@gostai.com>
24783
24784         bootstrap: improve error message
24785         * build-aux/bootstrap (find_tool): Upon failure, report the list
24786         of candidates.
24787         Honor the initial value of the envvar.
24788
24789 2009-09-05  Eric Blake  <ebb9@byu.net>
24790
24791         symlinkat: new module
24792         * modules/symlinkat: New file.
24793         * lib/symlinkat.c: Likewise.
24794         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24796         * modules/unistd (Makefile.am): Use them.
24797         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24798         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24799         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24800         * MODULES.html.sh (File system functions): Mention module.
24801         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24802         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24803         * modules/symlinkat-tests: New test.
24804         * tests/test-symlinkat.c: Likewise.
24805
24806         test-openat-safer: add more checks
24807         * tests/test-openat-safer.c (main): Check more code paths.
24808
24809 2009-09-05  Jim Meyering  <meyering@redhat.com>
24810
24811         syntax-check: detect unnecessary inclusion of openat.h
24812         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24813
24814 2009-09-05  Bruno Haible  <bruno@clisp.org>
24815
24816         Support towlower, towupper.
24817         * doc/posix-functions/towlower.texi: Mention module wctype.
24818         * doc/posix-functions/towupper.texi: Likewise.
24819         * lib/wctype.in.h (towlower, towupper): New functions.
24820         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24821         (ASSERT): New macro.
24822         (e): New variable.
24823         (main): Test also towlower, towupper. Test WEOF argument.
24824         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24825
24826 2009-09-05  Bruno Haible  <bruno@clisp.org>
24827
24828         Fix conversion behaviour when the input is invalid.
24829         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24830         mark occurring in first pass of indirect conversion.
24831         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24832         input.
24833         Found by clang's static analyzer.
24834
24835 2009-09-05  Bruno Haible  <bruno@clisp.org>
24836
24837         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24838         where direct conversion is possible.
24839
24840 2009-09-04  Eric Blake  <ebb9@byu.net>
24841
24842         openat: fail with ENOENT on empty name
24843         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24844         buffer.
24845
24846         link-follow: fix logic bug in prior patch
24847         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24848         reversed sense of yes and no in prior patch.  Avoid confusing
24849         compilation failure with desired semantics.
24850
24851         link-follow: accomodate mingw and cross-compilation
24852         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24853         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24854         cross-compilation results to -1, to make linkat easier to
24855         implement when cross-compiling.  Trivially support mingw.
24856         * modules/link-follow (configure.ac): Call new name.
24857         * NEWS: Mention this.
24858
24859 2009-09-03  Eric Blake  <ebb9@byu.net>
24860
24861         faccessat: compile replacement
24862         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24863         needed.
24864
24865         fts: fix compilation error
24866         * lib/fts.c (includes): Re-add "openat.h", for
24867         openat_needs_fchdir.
24868
24869         faccessat: new module
24870         * modules/faccessat: New file.
24871         * lib/faccessat.c: Likewise.
24872         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24874         * modules/unistd (Makefile.am): Use it.
24875         * lib/unistd.in.h (faccessat): Declare it.
24876         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24877         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24878         * MODULES.html.sh (File system functions): Mention it.
24879         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24880         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24881
24882         euidaccess: prefer POSIX over non-standard implementation
24883         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24884         * lib/euidaccess.c (euidaccess): Use it if available.
24885
24886         openat: make template easier to use
24887         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24888         AT_FUNC_F2 to be undefined.
24889         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24890         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24891         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24892         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24893         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24894         Likewise.
24895         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24896         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24897         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24898         Likewise.
24899
24900         openat: declare in POSIX headers
24901         * NEWS: Mention this.
24902         * modules/openat (configure.ac): Declare witnesses.
24903         (Depends-on): Add fcntl-h, sys_stat, unistd.
24904         (Include): Mention correct headers.
24905         * modules/fcntl-h (Depends-on): Add link-warning.
24906         (Files): Add openat.m4.
24907         (Makefile.am): Substitute witnesses.
24908         * modules/sys_stat (Files, Makefile.am): Likewise.
24909         * modules/unistd (Files, Makefile.am): Likewise.
24910         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24911         (gl_OPENAT_DEFAULTS): New macro.
24912         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24914         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24915         (SYS_STAT_H): Remove unused variable.
24916         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24917         * lib/fcntl--.h (includes): Remove unneeded header.
24918         * lib/openat-safer.c (includes): Likewise.
24919         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24920         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24921         appropriate headers.
24922         (__OPENAT_PREFIX): Delete.
24923         * lib/fcntl.in.h (openat): Provide declaration.
24924         (AT_FDCWD): Fix Solaris bug.
24925         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24926         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24927         * lib/fchmodat.c (includes):  Adjust to find declaration.
24928         * lib/fchownat.c (includes): Likewise.
24929         * lib/mkdirat.c (includes): Likewise.
24930         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24931         still visible.
24932
24933 2009-09-02  Eric Blake  <ebb9@byu.net>
24934
24935         errno: use consistently
24936         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24937         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24938         * lib/canonicalize.c (ELOOP): Likewise.
24939         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24940         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24941         * lib/lchown.c (EOPNOTSUPP): Likewise.
24942         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24943         * lib/savewd.c (ESTALE): Likewise.
24944         * lib/settime.c (ENOSYS): Likewise.
24945         * lib/utimens.c (ENOSYS): Likewise.
24946         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24947         * lib/chdir-safer.c (ELOOP): Likewise.
24948         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24949         * modules/c-stack (Depends-on): Add errno.
24950         * modules/canonicalize (Depends-on): Likewise.
24951         * modules/chdir-safer (Depends-on): Likewise.
24952         * modules/fdopendir (Depends-on): Likewise.
24953         * modules/inet_ntop (Depends-on): Likewise.
24954         * modules/inet_pton (Depends-on): Likewise.
24955         * modules/lchown (Depends-on): Likewise.
24956         * modules/openat (Depends-on): Likewise.
24957         * modules/savewd (Depends-on): Likewise.
24958         * modules/settime (Depends-on): Likewise.
24959         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24960
24961         fts: avoid leaking fds
24962         * modules/fts (Depends-on): Add cloexec.
24963         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24964         flag.
24965
24966         fts: make directory fds more robust
24967         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24968         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24969
24970         backupfile, chdir-long, fts, savedir: make safer
24971         * lib/backupfile.c (includes): Use "dirent--.h", since
24972         numbered_backup can write to stderr during readdir.
24973         * lib/savedir.c (includes): Likewise.
24974         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24975         emulation can write to stderr on failure.
24976         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24977         * lib/getcwd.c: Document why opendir_safer is unused.
24978         * lib/glob.c: Likewise.
24979         * lib/scandir.c: Likewise.
24980         * lib/openat-proc.c: Likewise, for open_safer.
24981         * modules/backupfile (Depends-on): Add dirent-safer.
24982         * modules/savedir (Depends-on): Likewise.
24983         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24984         * modules/chdir-long (Depends-on): Add openat-safer.
24985
24986         openat-safer: new module
24987         * modules/openat-safer: New file.
24988         * lib/openat-safer.c: Likewise.
24989         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24990         * lib/fcntl-safer.h (openat_safer): Declare.
24991         * lib/fcntl--.h (openat): Override.
24992         * MODULES.html.sh (File descriptor based I/O): Mention it.
24993         * lib/openat.h: Add double-inclusion guards.
24994         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24995         "fcntl--.h", so we can implement openat.
24996         * modules/openat-safer-tests: New test.
24997         * tests/test-openat-safer.c: New file.
24998
24999         dirent-safer: new module
25000         * modules/dirent-safer: New file.
25001         * lib/dirent--.h: Likewise.
25002         * lib/dirent-safer.h: Likewise.
25003         * lib/opendir-safer.c: Likewise.
25004         * m4/dirent-safer.m4: Likewise.
25005         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25006         * modules/dirent-safer-tests: New test.
25007         * tests/test-dirent-safer.c: New file.
25008         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25009
25010         fdopendir: optimize on mingw
25011         * lib/unistd.in.h (_gl_directory_name): New prototype.
25012         * lib/fchdir.c (_gl_directory_name): Implement it.
25013         (fchdir): Use it to simplify implementation.
25014         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25015         fchdir, when available, to avoid calling [f]chdir().
25016
25017         fdopendir: split into its own module
25018         * lib/openat.c (fdopendir): Move...
25019         * lib/fdopendir.c: ...into new file.
25020         * modules/fdopendir: New module.
25021         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25022         * modules/openat (Depends-on): Add fdopendir.
25023         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25024         fdopendir here.
25025         * modules/savedir (Depends-on): Only need fdopendir, not full
25026         openat.
25027         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25028         * lib/openat.h (fdopendir): Drop prototype.
25029         * lib/dirent.in.h (fdopendir): Provide prototype.
25030         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25031         * modules/dirent (Makefile.am): Substitute them.
25032         * MODULES.html.sh (File system functions): Mention it.
25033         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25034         * modules/fdopendir-tests: New file.
25035         * tests/test-fdopendir.c: Likewise.
25036
25037         fchdir: use more consistent macro convention
25038         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25039         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25040         REPLACE_FCHDIR, rather than relying on config.h macros.
25041         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25042         inside a single make-time REPLACE_FCHDIR block, rather than using
25043         the config.h FCHDIR_REPLACEMENT.
25044         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25045         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25046         Manage fstat replacement.
25047         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25048         REPLACE_FCHDIR.
25049         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25050         (Makefile.am): Substitute REPLACE_FCHDIR.
25051         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25052         FCHDIR_REPLACEMENT.
25053         * lib/dup-safer.c (dup_safer): Likewise.
25054         * lib/dup2.c (rpl_dup2): Likewise.
25055         * lib/dup3.c (rpl_dup3): Likewise.
25056         * lib/open.c (rpl_open): Likewise.
25057
25058         fchdir: simplify error handling, and support dup3
25059         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25060         stdbool, malloc-posix, realloc-posix.
25061         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25062         (ensure_dirs_slot): Return false on allocation failure.
25063         (rpl_dup2): Delete.
25064         (_gl_register_dup): New function.
25065         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25066         (_gl_register_fd): Close fd on allocation failure.
25067         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25068         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25069         prototype.
25070         (rpl_dup2_fchdir): Delete prototype.
25071         * lib/open.c (open): Update caller.
25072         * lib/dup2.c (dup2): Track fchdir metadata.
25073         * lib/dup3.c (dup3): Likewise.
25074         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25076
25077 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25078
25079         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25080         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25081         don't pass arguments to AC_OUTPUT.
25082
25083 2009-09-02  Bruno Haible  <bruno@clisp.org>
25084
25085         * modules/mkdtemp (License): Relicense under LGPLv2+.
25086         Reported by Paolo Bonzini.
25087
25088 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25089
25090         Replace uses of obsolete autoconf macros in Jim's modules.
25091         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25092         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25093         can evoke a warning from autoconf when run with -Wobsolete
25094         enabled.  They were declared obsolete for good reasons (see
25095         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25096         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25097         should not continue using the deprecated macros.
25098         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25099         obsolete Autoconf macros with modern counterparts.
25100         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25101         * m4/dos.m4 (gl_AC_DOS): Likewise.
25102         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25103         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25104         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25105         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25106         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25107         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25108         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25109         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25110         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25111         Likewise.
25112         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25113         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25114         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25115         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25116         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25117         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25118
25119 2009-09-01  Eric Blake  <ebb9@byu.net>
25120
25121         fchdir: fix off-by-one bug in previous patch
25122         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25123         (_gl_unregister_fd): Delete useless if.
25124
25125 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25126
25127         maint.mk: sort the list of syntax-check rules
25128         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25129         easier to get a sense of progress when the rules are run sequentially
25130         and take a long time.
25131
25132 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25133
25134         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25135         * modules/netinet_in: Likewise.
25136         * modules/sys_file: Likewise.
25137         * modules/sys_ioctl: Likewise.
25138         * modules/sys_select: Likewise.
25139         * modules/sys_socket: Likewise.
25140         * modules/sys_stat: Likewise.
25141         * modules/sys_time: Likewise.
25142         * modules/sys_times: Likewise.
25143         * modules/sys_utsname: Likewise.
25144         * modules/sys_wait: Likewise.
25145
25146 2009-09-01  Jim Meyering  <meyering@redhat.com>
25147
25148         fts: help ensure that return values are not ignored
25149         * lib/fts_.h (__GNUC_PREREQ): Define.
25150         (__attribute_warn_unused_result__): Define.
25151         (fts_children, fts_close, fts_open, fts_read): Declare with
25152         __attribute_warn_unused_result__.
25153
25154         fts: fts_close now fails also when closing a dir file descriptor fails
25155         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25156         and propagate to caller, along with errno.
25157
25158         announce-gen: correct formatting in --help output
25159         * build-aux/announce-gen (usage): Move the one-line description in
25160         --help output "up", to where it belongs, just after Usage:.
25161
25162 2009-08-31  Eric Blake  <ebb9@byu.net>
25163
25164         fchdir: port to mingw
25165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25166         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25167         opened, then use a substitute.
25168         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25169         replacement.
25170         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25171         (_gl_register_fd): No need to check stat if open already filters
25172         all directories.
25173         (fchdir): Fix error condition to match POSIX.
25174         * modules/fchdir (Depends-on): Add sys_stat.
25175         * doc/posix-functions/open.texi (open): Document the limitation.
25176         * modules/fchdir-tests: New file.
25177         * tests/test-fchdir.c: Likewise.
25178
25179         canonicalize: allow cross-testing from cygwin to mingw
25180         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25181         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25182         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25183         Likewise.
25184         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25185         target does not support symlinks.
25186         * tests/test-canonicalize-lgpl.sh: Likewise.
25187
25188         chown: avoid compilation warning on mingw
25189         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25190         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25191         mingw.
25192         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25193         * modules/chown (Depends-on): Add errno.
25194
25195 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25196
25197         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25198         command.
25199
25200 2009-08-31  Jim Meyering  <meyering@redhat.com>
25201
25202         canonicalize: remove useless initialization
25203         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25204         initialization of local, "end".
25205
25206 2009-08-30  Bruno Haible  <bruno@clisp.org>
25207
25208         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25209         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25210         ENOSYS.
25211
25212 2009-08-30  Bruno Haible  <bruno@clisp.org>
25213
25214         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25215         /usr/xpg4/bin/tr when it exists.
25216         * tests/test-pipe-filter-gi1.sh: Likewise.
25217
25218 2009-08-30  Bruno Haible  <bruno@clisp.org>
25219
25220         Work around deficient /usr/bin/id program on Solaris.
25221         * tests/test-file-has-acl.sh (ID): New variable.
25222         * tests/test-set-mode-acl.sh (ID): Likewise.
25223         * tests/test-copy-acl.sh (ID): Likewise.
25224         * tests/test-copy-file.sh (ID): Likewise.
25225
25226 2009-08-30  Bruno Haible  <bruno@clisp.org>
25227
25228         New module 'xstriconveh'.
25229         * lib/xstriconveh.h: New file.
25230         * lib/xstriconveh.c: New file.
25231         * modules/xstriconveh: New file.
25232
25233 2009-08-30  Bruno Haible  <bruno@clisp.org>
25234
25235         Make it easier to use mem_cd_iconveh.
25236         * lib/striconveh.h (iconveh_t): New type.
25237         (iconveh_open, iconveh_close): New declarations.
25238         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25239         with a single 'const iconveh_t *' argument.
25240         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25241         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25242         with a single 'const iconveh_t *' argument.
25243         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25244         * tests/test-striconveh.c (main): Update.
25245         * NEWS: Mention the change.
25246
25247 2009-08-30  Bruno Haible  <bruno@clisp.org>
25248
25249         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25250         problem.
25251
25252 2009-08-30  Bruno Haible  <bruno@clisp.org>
25253
25254         Work around iconv_open problem on Solaris.
25255         * lib/iconv_open-solaris.gperf: New file.
25256         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25257         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25258         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25259         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25260         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25261         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25262
25263 2009-08-29  Jim Meyering  <meyering@redhat.com>
25264
25265         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25266         * top/maint.mk (cvs-check): Remove target; it was just an alias
25267         to the better-named vc-diff-check.
25268         (maintainer-distcheck): Remove rule.  It was used only from
25269         the (alpha/beta/major) target, and all of its commands but one
25270         were coreutils-specific.
25271         (vc-dist): Remove rule.
25272         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25273         Run vc-diff-check, not vc-dist.
25274         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25275
25276 2009-08-27  Bruno Haible  <bruno@clisp.org>
25277
25278         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25279         of 0.
25280
25281 2009-08-27  Bruno Haible  <bruno@clisp.org>
25282
25283         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25284         compilers.
25285         * doc/func.texi: Document the SunPRO C bug.
25286
25287 2009-08-27  Bruno Haible  <bruno@clisp.org>
25288
25289         Fix link error on Solaris.
25290         * tests/test-parse-duration.c (xstrdup): Remove function.
25291
25292 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25293
25294         ignore-value: handle pointer types, too
25295         * lib/ignore-value.h (__attribute__): Remove definition.
25296         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25297         of a more concise and more-often effective "(void) i" statement.
25298         (ignore_ptr): New function to suppress warnings from functions that
25299         return pointers, and to make it explicit that one function doesn't
25300         handle all cases.
25301
25302 2009-08-25  Bruno Haible  <bruno@clisp.org>
25303
25304         dup2: work around a Linux bug.
25305         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25306         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25307         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25308         Reported by Simon Josefsson.
25309
25310 2009-08-25  Jim Meyering  <meyering@redhat.com>
25311
25312         libguestfs uses gnulib
25313         * users.txt: Add libguestfs.
25314
25315 2009-08-24  Eric Blake  <ebb9@byu.net>
25316
25317         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25318         * lib/pipe2.c (includes): Add binary-io.h.
25319         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25320
25321 2009-08-24  Bruno Haible  <bruno@clisp.org>
25322
25323         Tolerate declared but missing accept4 syscall.
25324         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25325         available.
25326         * lib/sys_socket.in.h (accept4): If the function is already present,
25327         override it.
25328         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25329         * modules/accept4 (Makefile.am): Compile accept4.c always.
25330         Reported by Paolo Bonzini and Eric Blake.
25331
25332 2009-08-23  Bruno Haible  <bruno@clisp.org>
25333
25334         New module 'accept4'.
25335         * lib/sys_socket.in.h (accept4): New declaration.
25336         * lib/accept4.c: New file.
25337         * m4/accept4.m4: New file.
25338         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25339         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25340         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
25341         HAVE_ACCEPT4.
25342         * modules/accept4: New file.
25343         * doc/glibc-functions/accept4.texi: Mention the new module.
25344
25345 2009-08-24  Jim Meyering  <meyering@redhat.com>
25346
25347         progname: also set global program_invocation_name, when possible
25348         Before this change, a libtool-enabled program that calls glibc's
25349         error function would report the program name as
25350         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
25351         * modules/progname (configure.ac): Check for a declaration of
25352         program_invocation_name.
25353         * lib/progname.c:  Include <errno.h>.
25354         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
25355         Set program_invocation_name.
25356
25357 2009-08-23  Bruno Haible  <bruno@clisp.org>
25358
25359         * lib/dup3.c: Include <string.h>.
25360
25361 2009-08-23  Bruno Haible  <bruno@clisp.org>
25362
25363         * lib/dup3.c (dup3): Test only once whether the system actually exists.
25364         * lib/pipe2.c (pipe2): Likewise.
25365         Suggested by Eric Blake.
25366
25367 2009-08-23  Bruno Haible  <bruno@clisp.org>
25368
25369         Tolerate declared but missing dup3 syscall.
25370         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
25371         * lib/unistd.in.h (dup3): If the function is already present,
25372         override it.
25373         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
25374         * modules/dup3 (Makefile.am): Compile dup3.c always.
25375         Reported by Paolo Bonzini.
25376
25377 2009-08-23  Bruno Haible  <bruno@clisp.org>
25378
25379         Tolerate declared but missing pipe2 syscall.
25380         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
25381         available.
25382         * lib/unistd.in.h (pipe2): If the function is already present,
25383         override it.
25384         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
25385         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
25386         Reported by Paolo Bonzini.
25387
25388 2009-08-23  Bruno Haible  <bruno@clisp.org>
25389
25390         * lib/pipe2.c (pipe2): Move #ifs inside function.
25391
25392 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25393
25394         quotearg: document limitations of quote_these_too
25395         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
25396         those limitations are created.
25397         * lib/quotearg.h (set_char_quoting): Document that digits and
25398         letters that are special after backslash are not permitted.
25399         (quotearg_char): Cross-reference set_char_quoting documentation.
25400
25401 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
25402
25403         quotearg: implement custom_quoting_style
25404         * lib/quotearg.c: (struct quoting_options): Add left_quote and
25405         right_quote fields.
25406         (set_custom_quoting): New public function.
25407         (quotearg_buffer_restyled): Add left_quote and right_quote
25408         arguments, handle them very much like locale quoting, and update
25409         all uses.
25410         (quotearg_n_custom): New public function.
25411         (quotearg_n_custom_mem): New public function.
25412         (quotearg_custom): New public function.
25413         (quotearg_custom_mem): New public function.
25414         * lib/quotearg.h: Prototype and document new public functions.
25415         (enum quoting_style): For escape_quoting_style and
25416         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
25417         ignored even though they're otherwise like c_quoting_style.
25418         Add custom_quoting_style member and document with comparison to
25419         clocale_quoting_style.
25420         * tests/test-quotearg.c (custom_quotes): New array.
25421         (custom_results): New array.
25422         (main): Extend to test custom quoting.
25423
25424 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25425
25426         quotearg: fix right quote escaping when it's in quote_these_too
25427         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
25428         quote, be sure to prepend only one backslash.
25429         * tests/test-quotearg.c (use_quote_double_quotes): New function.
25430         (main): Test it.
25431
25432 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25433
25434         quotearg-tests: test escaping of embedded locale quotes
25435         * tests/test-quotearg.c (struct result_strings): Add member for
25436         new input.
25437         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
25438         (inputs): Add new input.
25439         (results_g): Add expected results.
25440         (flag_results): Likewise.
25441         (locale_results): Likewise.
25442         (compare_strings): Check those.
25443
25444 2009-08-23  Bruno Haible  <bruno@clisp.org>
25445
25446         Tests for module 'dup3'.
25447         * modules/dup3-tests: New file.
25448         * tests/test-dup3.c: New file.
25449
25450         New module 'dup3'.
25451         * lib/unistd.in.h (dup3): New declaration.
25452         * lib/dup3.c: New file.
25453         * m4/dup3.m4: New file.
25454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
25455         HAVE_DUP3.
25456         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
25457         * modules/dup3: New file.
25458         * doc/glibc-functions/dup3.texi: Mention the new module.
25459
25460 2009-08-23  Bruno Haible  <bruno@clisp.org>
25461
25462         Tweak the dup2 test.
25463         * tests/test-dup2.c (main): Create the test file empty. Verify that an
25464         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
25465         the test file is still empty. Fix argument order of lseek.
25466
25467 2009-08-23  Bruno Haible  <bruno@clisp.org>
25468
25469         Avoid test link errors when the modules getopt-gnu, gettext are used.
25470         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
25471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25472
25473 2009-08-23  Bruno Haible  <bruno@clisp.org>
25474
25475         Fix getdtablesize() on mingw.
25476         * lib/getdtablesize.c (getdtablesize): Implement differently.
25477         * lib/unistd.in.h (getdtablesize): Improve comment.
25478
25479 2009-08-23  Bruno Haible  <bruno@clisp.org>
25480
25481         New module 'mkostemp'.
25482         Based on Ulrich Drepper's 2007-08-10 change in glibc.
25483         * lib/stdlib.in.h (mksotemp): New declaration.
25484         * lib/mkostemp.c: New file, from glibc with modifications.
25485         * lib/tempname.h (GT_FILE): Remove outdated comment.
25486         (gen_tempname): Add flags argument.
25487         * lib/tempname.c (__GT_BIGFILE): Remove macro.
25488         (__GT_FILE): Map to 1.
25489         (small_open, large_open): Remove macros.
25490         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
25491         * lib/mkstemp.c (mkstemp): Update.
25492         * lib/mkdtemp.c (mkdtemp): Likewise.
25493         * m4/mkostemp.m4: New file.
25494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
25495         HAVE_MKOSTEMP.
25496         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
25497         HAVE_MKOSTEMP.
25498         * modules/mkostemp: New file, based on modules/mkstemp.
25499         * doc/glibc-functions/mkostemp.texi: Mention the new module.
25500         * NEWS: Mention the change.
25501
25502 2009-08-23  Bruno Haible  <bruno@clisp.org>
25503
25504         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
25505         Reported by Eric Blake.
25506
25507 2009-08-23  Bruno Haible  <bruno@clisp.org>
25508
25509         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
25510         Reported by Eric Blake.
25511
25512 2009-08-23  Bruno Haible  <bruno@clisp.org>
25513
25514         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
25515         * modules/pipe2 (Depends-on): Likewise.
25516
25517 2009-08-23  Eric Blake  <ebb9@byu.net>
25518
25519         fcntl-h: add O_TTY_INIT support
25520         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
25521         * tests/test-fcntl-h.c (o): Test it.
25522         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25523
25524         fcntl-h: rename from fcntl, in preparation for fcntl(2)
25525         * modules/fcntl: Move <fcntl.h> header replacement...
25526         * modules/fcntl-h: ...to new name, so as not to collide with
25527         like-named function.
25528         * tests/test-fcntl.c: Rename...
25529         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
25530         * modules/fcntl-tests: Rename...
25531         * modules/fcntl-h-tests: ...to this.  Update test file name.
25532         * modules/chdir-long (Depends-on): Update clients.
25533         * modules/chdir-safer (Depends-on): Likewise.
25534         * modules/fcntl-safer (Depends-on): Likewise.
25535         * modules/fts (Depends-on): Likewise.
25536         * modules/mkancesdirs (Depends-on): Likewise.
25537         * modules/mkdir-p (Depends-on): Likewise.
25538         * modules/open (Depends-on): Likewise.
25539         * modules/savewd (Depends-on): Likewise.
25540         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25541         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25542
25543 2009-08-22  Bruno Haible  <bruno@clisp.org>
25544
25545         * modules/binary-io (License): Relicense under LGPL.
25546         * modules/pipe2 (License): Likewise.
25547
25548 2009-08-22  Bruno Haible  <bruno@clisp.org>
25549
25550         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
25551         return value.
25552         * lib/pipe-filter-gi.c (filter_init): Likewise.
25553         Reported by Eric Blake.
25554
25555 2009-08-22  Bruno Haible  <bruno@clisp.org>
25556
25557         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25558         * modules/pipe (Depends-on): Add pipe2.
25559
25560 2009-08-22  Bruno Haible  <bruno@clisp.org>
25561
25562         Tests for module 'pipe2'.
25563         * modules/pipe2-tests: New file.
25564         * tests/test-pipe2.c: New file.
25565
25566         New module 'pipe2'.
25567         * lib/unistd.in.h (pipe2): New declaration.
25568         * lib/pipe2.c: New file.
25569         * m4/pipe2.m4: New file.
25570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25571         HAVE_PIPE2.
25572         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25573         * modules/pipe2: New file.
25574         * doc/glibc-functions/pipe2.texi: Mention the new module.
25575
25576 2009-08-22  Bruno Haible  <bruno@clisp.org>
25577
25578         Reference some new glibc functions.
25579         * doc/glibc-functions/accept4.texi: New file.
25580         * doc/glibc-functions/dup3.texi: New file.
25581         * doc/glibc-functions/mkostemp.texi: New file.
25582         * doc/glibc-functions/pipe2.texi: New file.
25583         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25584         (Glibc sys/socket.h): Refer to accept4.
25585         (Glibc unistd.h): Refer to dup3, pipe2.
25586         Reported by Eric Blake.
25587
25588 2009-08-22  Jim Meyering  <meyering@redhat.com>
25589             Bruno Haible  <bruno@clisp.org>
25590
25591         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25592         This makes it so packages using automake-1.11's silent-rules option
25593         can print e.g., a single "GEN    configmake.h" line, rather than
25594         the 30+ statements that perform the job.  If you want to see the
25595         actual commands, you can still run "make V=1".
25596         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25597         so that make output is abbreviated when those variables are defined
25598         appropriately.
25599         * modules/argz: Likewise.
25600         * modules/arpa_inet: Likewise.
25601         * modules/byteswap: Likewise.
25602         * modules/configmake: Likewise.
25603         * modules/dirent: Likewise.
25604         * modules/errno: Likewise.
25605         * modules/fcntl: Likewise.
25606         * modules/float: Likewise.
25607         * modules/fnmatch: Likewise.
25608         * modules/getopt-posix: Likewise.
25609         * modules/glob: Likewise.
25610         * modules/iconv_open: Likewise.
25611         * modules/inttypes: Likewise.
25612         * modules/localcharset: Likewise.
25613         * modules/locale: Likewise.
25614         * modules/math: Likewise.
25615         * modules/netdb: Likewise.
25616         * modules/netinet_in: Likewise.
25617         * modules/poll: Likewise.
25618         * modules/posix_spawnp-tests: Likewise.
25619         * modules/sched: Likewise.
25620         * modules/search: Likewise.
25621         * modules/selinux-h: Likewise.
25622         * modules/signal: Likewise.
25623         * modules/spawn: Likewise.
25624         * modules/stdarg: Likewise.
25625         * modules/stdbool: Likewise.
25626         * modules/stddef: Likewise.
25627         * modules/stdint: Likewise.
25628         * modules/stdio: Likewise.
25629         * modules/stdlib: Likewise.
25630         * modules/string: Likewise.
25631         * modules/strings: Likewise.
25632         * modules/sys_file: Likewise.
25633         * modules/sys_ioctl: Likewise.
25634         * modules/sys_select: Likewise.
25635         * modules/sys_socket: Likewise.
25636         * modules/sys_stat: Likewise.
25637         * modules/sys_time: Likewise.
25638         * modules/sys_times: Likewise.
25639         * modules/sys_utsname: Likewise.
25640         * modules/sys_wait: Likewise.
25641         * modules/sysexits: Likewise.
25642         * modules/time: Likewise.
25643         * modules/unistd: Likewise.
25644         * modules/wchar: Likewise.
25645         * modules/wctype: Likewise.
25646
25647 2009-08-22  Jim Meyering  <meyering@redhat.com>
25648
25649         announce-gen: detect write failure
25650         * build-aux/announce-gen: Add Coda at end.
25651         Remove equivalent-but-more-verbose block at top.
25652
25653 2009-08-19  Akim Demaille  <demaille@gostai.com>
25654
25655         bootstrap: --help to stdout.
25656         * bootstrap (usage): Don't send --help to stderr.
25657         Use a here doc instead of a long string.
25658
25659 2009-08-21  Eric Blake  <ebb9@byu.net>
25660
25661         test-popen-safer: split from test-popen
25662         * tests/test-popen.c (main): Move...
25663         * tests/test-popen.h: ...into new file.
25664         * tests/test-popen-safer2.c: New file.
25665         * modules/popen-tests (Files): Add test-popen.h.
25666         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25667         Suggested by Bruno Haible.
25668
25669         test-fcntl-safer: split from test-open
25670         * tests/test-open.c (main): Move...
25671         * tests/test-open.h: ...into new file.
25672         * tests/test-fcntl-safer.c: New file.
25673         * modules/open-tests (Files): Add test-open.h.
25674         * modules/fcntl-safer-tests: New file.
25675         Suggested by Bruno Haible.
25676
25677         test-fopen-safer: split from test-fopen
25678         * tests/test-fopen.c (main): Move...
25679         * tests/test-fopen.h: ...into new file.
25680         * tests/test-fopen-safer.c: New file.
25681         * modules/fopen-tests (Files): Add test-fopen.h.
25682         * modules/fopen-safer-tests: New file.
25683         Suggested by Bruno Haible.
25684
25685 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25686
25687         popen-safer: test O_CLOEXEC at run-time.
25688         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25689
25690 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25691
25692         fcntl: move more flags to the header
25693         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25694         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25695         * lib/fcntl.in.h: Do both things here.
25696
25697 2009-08-21  Jim Meyering  <meyering@redhat.com>
25698
25699         consistently remove $@-t before redirecting to it
25700         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25701         * modules/alloca-opt: Likewise.
25702         * modules/byteswap: Likewise.
25703         * modules/fnmatch: Likewise.
25704         * modules/getopt-posix: Likewise.
25705         * modules/glob: Likewise.
25706         * modules/poll: Likewise.
25707         * modules/posix_spawnp-tests: Likewise.
25708         * modules/sys_socket: Likewise.
25709         * modules/sysexits: Likewise.
25710
25711 2009-08-21  Eric Blake  <ebb9@byu.net>
25712
25713         popen: simplify access to original popen
25714         * lib/popen.c (rpl_popen): No need to worry about popen being a
25715         macro.
25716         Reported by Bruno Haible.
25717
25718 2009-08-20  Eric Blake  <ebb9@byu.net>
25719
25720         build: avoid some compiler warnings
25721         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25722         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25723         type.
25724         (new_exclude_segment, excluded_file_pattern_p)
25725         (excluded_file_name_p): Reduce scope.
25726         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25727         old-style declaration.
25728
25729 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25730
25731         * tests/test-exclude1.sh: Handle Windows EOL.
25732         * tests/test-exclude2.sh: Likewise.
25733         * tests/test-exclude3.sh: Likewise.
25734         * tests/test-exclude4.sh: Likewise.
25735         * tests/test-exclude5.sh: Likewise.
25736         * tests/test-exclude6.sh: Likewise.
25737         * tests/test-exclude7.sh: Likewise.
25738
25739 2009-08-19  Akim Demaille  <demaille@gostai.com>
25740
25741         bootstrap: find sha1sum when named gsha1sum.
25742         * bootstrap (find_tool): New.
25743         ($SHA1SUM): New.
25744         Use it.
25745
25746 2009-08-20  Jim Meyering  <meyering@redhat.com>
25747
25748         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25749         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25750         expression that converts "." in a file name to "\." in the resulting
25751         regexp.  Start with a dummy statement, so that prior shell variable
25752         definitions are expanded portably.  Reported by Simon Josefsson.
25753
25754 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25755
25756         Fix polling for writeability of a screen buffer.
25757         * lib/poll.c: Distinguish input and screen buffers for the
25758         Win32 implementation.
25759         * lib/select.c: Likewise.
25760
25761 2009-08-19  Eric Blake  <ebb9@byu.net>
25762
25763         popen-safer: prevent popen from clobbering std descriptors
25764         * modules/popen-safer: New file.
25765         * lib/popen-safer.c: Likewise.
25766         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25767         * lib/stdio--.h (popen): Provide override.
25768         * lib/stdio-safer.h (popen_safer): Provide declaration.
25769         * tests/test-popen.c (includes): Partially test this.
25770         * modules/popen-safer-tests: New file, for more tests.
25771         * tests/test-popen-safer.c: Likewise.
25772         * MODULES.html.sh (file stream based Input/Output): Mention it.
25773
25774         tests: test some of the *-safer modules
25775         * modules/fopen-safer (Depends-on): Add fopen.
25776         * modules/fcntl-safer (Depends-on): Add fcntl.
25777         * modules/stdlib-safer (Depends-on): Add stdlib.
25778         (configure.ac): Set indicator.
25779         * modules/unistd-safer (configure.ac): Likewise.
25780         * modules/tmpfile-safer (configure.ac): Likewise.
25781         (Depends-on): Add tmpfile.
25782         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25783         active.
25784         * tests/test-fopen.c (includes): Test safer versions when they are
25785         in use.
25786         * tests/test-open.c (includes): Likewise.
25787
25788         popen: fix cygwin 1.5 bug when stdin closed
25789         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25790         * modules/popen: New file.
25791         * modules/popen-tests: Likewise.
25792         * tests/test-popen.c: Likewise.
25793         * m4/popen.m4: Likewise.
25794         * lib/popen.c: Likewise.
25795         * lib/stdio.in.h (popen): New declaration.
25796         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25797         * modules/stdio (Makefile.am): Likewise.
25798         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25799
25800 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25801
25802         maint.mk: give full control over update-copyright exclusions
25803         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25804         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25805         (update-copyright): Don't force inclusion of top-level
25806         ChangeLog.  Don't force exclusion of all COPYING files, but make
25807         them the default exclusion instead.
25808
25809 2009-08-16  Bruno Haible  <bruno@clisp.org>
25810
25811         Fix test failures on Solaris 10.
25812         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25813         tests when Solaris iconv() is used.
25814         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25815         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25816         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25817         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25818         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25819
25820 2009-08-16  Bruno Haible  <bruno@clisp.org>
25821
25822         Fix test failures on Solaris 10.
25823         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25824         'tr' program and pass it as first argument.
25825         * tests/test-pipe-filter-gi1.sh: Likewise.
25826         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25827         program as first argument.
25828         * tests/test-pipe-filter-gi1.c (main): Likewise.
25829
25830 2009-08-16  Eric Blake  <ebb9@byu.net>
25831
25832         fpurge: fix previous commits
25833         * modules/fpurge (Makefile.am): Make replacement conditional,
25834         partially reverting 2007-04-29 change; missed in previous
25835         attempt.
25836         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25837         is missing.
25838
25839 2009-08-16  Bruno Haible  <bruno@clisp.org>
25840
25841         Clarify fpurge's effect on the file position.
25842         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25843         * tests/test-fpurge.c (main): Make a second pass for checking the file
25844         position.
25845
25846 2009-08-16  Bruno Haible  <bruno@clisp.org>
25847
25848         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25849         declaration of fpurge is missing.
25850         * tests/test-fpurge.c (main): Check that the file has not more contents
25851         than expected. Close the file before removing it.
25852
25853 2009-08-15  Eric Blake  <ebb9@byu.net>
25854
25855         fpurge: don't wrap working cygwin implementation
25856         * lib/fpurge.c (fpurge): Fix comment typo.
25857         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25858         1.7 to avoid replacement.
25859         * tests/test-fpurge.c (main): Enhance test.
25860
25861 2009-08-15  Eric Blake  <ebb9@byu.net>
25862         and Jim Meyering  <meyering@redhat.com>
25863
25864         test-update-copyright: skip if perl is insufficient
25865         * tests/test-update-copyright.sh: Failure to run maintainer tool
25866         should not cause testsuite failure on cygwin 1.5.
25867
25868 2009-08-14  Eric Blake  <ebb9@byu.net>
25869
25870         doc: mention more functions added in cygwin 1.7.0
25871         * doc/posix-headers/limits.texi (limits.h): Update for recent
25872         cygwin additions.
25873         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25874         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25875         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25876         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25877         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25878
25879 2009-08-14  Eric Blake  <ebb9@byu.net>
25880
25881         maint.mk: simplify update-copyright rule
25882         * top/maint.mk (update-copyright-local): Delete, and document how
25883         to do it in cfg.mk instead.
25884         (update-copyright-exclude-regexp): Delete, and document how to do
25885         it in .x-update-copyright instead.
25886         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25887         exclude ChangeLog.
25888
25889 2009-08-14  Bruno Haible  <bruno@clisp.org>
25890
25891         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25892
25893 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25894
25895         maint.mk: support update-copyright-env
25896         * top/maint.mk (update-copyright-env): Define place-holder.
25897         (update-copyright): Expand $(update-copyright-env) before
25898         invoking update-copyright.
25899
25900 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25901
25902         update-copyright: implement forced reformatting
25903         * build-aux/update-copyright: Implement and document
25904         UPDATE_COPYRIGHT_FORCE.
25905         * tests/test-update-copyright.sh: Test it.
25906
25907 2009-08-14  Eric Blake  <ebb9@byu.net>
25908         and Bruno Haible  <bruno@clisp.org>
25909
25910         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25911         * tests/test-locale.c: Revert previous patch related to NULL.
25912         * tests/test-stdio.c: Likewise.
25913         * tests/test-stdlib.c: Likewise.
25914         * tests/test-string.c: Likewise.
25915         * tests/test-unistd.c: Likewise.
25916         * modules/time-tests (Depends-on): Add verify.
25917         * modules/wchar-tests (Depends-on): Likewise.
25918         * tests/test-time.c: Test for NULL compliance.
25919         * tests/test-wchar.c: Likewise.
25920         * modules/locale (Depends-on): Add stddef.
25921         * modules/stdio (Depends-on): Likewise.
25922         * modules/stdlib (Depends-on): Likewise.
25923         * modules/string (Depends-on): Likewise.
25924         * modules/time (Depends-on): Likewise.
25925         * modules/unistd (Depends-on): Likewise.
25926         * modules/wchar (Depends-on): Likewise.
25927         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25928         * lib/stdlib.in.h (includes): Likewise.
25929         * lib/string.in.h (includes): Likewise.
25930         * lib/time.in.h (includes): Likewise.
25931         * lib/unistd.in.h (includes): Likewise.
25932         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25933         replaced.
25934         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25935         * m4/stddef_h.m4: New file.
25936         * modules/stddef: Likewise.
25937         * lib/stddef.in.h: Likewise.
25938         * modules/stddef-tests: Likewise.
25939         * tests/test-stddef.c: Likewise.
25940         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25941         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25942         * doc/posix-headers/locale.texi (locale.h): Likewise.
25943         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25944         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25945         * doc/posix-headers/string.texi (string.h): Likewise.
25946         * doc/posix-headers/time.texi (time.h): Likewise.
25947         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25948         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25949
25950 2009-08-14  Eric Blake  <ebb9@byu.net>
25951
25952         doc: improve git diff of texinfo files
25953         * .gitattributes: Add rule for *.texi files, with hint on how to
25954         use it.
25955         Copied from m4, and based on a report by Bruno Haible.
25956
25957 2009-08-14  Bruno Haible  <bruno@clisp.org>
25958
25959         Disable multithread support by default on Cygwin 1.5.x for real.
25960         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25961
25962 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25963
25964         update-copyright: much ado about intervals
25965         * build-aux/update-copyright: Implement and document
25966         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25967         of copyright year intervals.
25968         Also, document UPDATE_COPYRIGHT_YEAR.
25969         * tests/test-update-copyright.sh: Test it.
25970
25971         update-copyright: convert 2-digit to 4-digit years
25972         * build-aux/update-copyright: Implement and document.
25973         * tests/test-update-copyright.sh: Update.
25974
25975 2009-08-14  Jim Meyering  <meyering@redhat.com>
25976
25977         test-exclude: avoid coreutils "make check" failure
25978         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25979         just as in test-argmatch.c.
25980
25981 2009-08-13  Eric Blake  <ebb9@byu.net>
25982
25983         test-dup2: fix bad assumption
25984         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25985         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25986
25987         test-version-etc: fix CRLF portability issue
25988         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25989         recognize \r.
25990         * tests/test-argp-version-etc-1.sh: Likewise.
25991
25992         getopt: update client modules
25993         * modules/argp (Depends-on): Use getopt-gnu.
25994         * modules/git-merge-changelog (Depends-on): Likewise.
25995         * modules/long-options (Depends-on): Likewise.
25996         * modules/xstrtol (Depends-on): Likewise.
25997
25998 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25999
26000         * tests/test-version-etc.sh: Don't fail on different
26001         project/version.  Don't fail on CRLF differences.  Rewrite to use
26002         multiple -e instead of multiple sed forks, suggested by Eric Blake
26003         <ebb9@byu.net>.
26004         * tests/test-argp-version-etc-1.sh: Likewise.
26005
26006 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26007
26008         * tests/test-version-etc.sh: Don't fail on different
26009         project/version.
26010
26011 2009-08-12  Bruno Haible  <bruno@clisp.org>
26012
26013         Tests for modules 'getopt-posix', 'getopt-gnu'.
26014         * modules/getopt-posix-tests: New file.
26015         * tests/test-getopt.c: New file.
26016         * tests/test-getopt.h: New file.
26017         * tests/test-getopt_long.h: New file.
26018
26019         New modules 'getopt-posix', 'getopt-gnu'.
26020         * modules/getopt-gnu: New file, renamed from modules/getopt.
26021         * modules/getopt-posix: New file.
26022         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26023         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26024         (gl_GETOPT): Remove macro.
26025         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26026         Disable the test against BSD systems that declare optreset. Test
26027         against mingw bug. Test against lack of support of optional arguments
26028         on many platforms.
26029         * doc/glibc-headers/getopt.texi: Update module name and list of
26030         relevant platforms.
26031         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26032         'getopt-gnu' and more portability problems.
26033         * NEWS: Mention the changes.
26034
26035 2009-08-12  Bruno Haible  <bruno@clisp.org>
26036
26037         Ensure that optarg etc. get declared by <unistd.h>.
26038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26039         AC_USE_SYSTEM_EXTENSIONS.
26040         * modules/getopt (Depends-on): Add 'extensions'.
26041
26042 2009-08-12  Bruno Haible  <bruno@clisp.org>
26043
26044         Avoid test link errors.
26045         * modules/pipe-filter-ii-tests (Makefile.am): Define
26046         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26047         * modules/pipe-filter-gi-tests (Makefile.am): Define
26048         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26050
26051 2009-08-12  Bruno Haible  <bruno@clisp.org>
26052
26053         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26054         gl_GETOPT_SUBSTITUTE before.
26055         (gl_GETOPT): Use it.
26056         * m4/argp.m4 (gl_ARGP): Update.
26057         Reported by Sergey Poznyakoff.
26058
26059         * m4/getopt.m4: Reorder macros.
26060         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26061         (gl_GETOPT_SUBSTITUTE): Remove macro.
26062
26063 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26064
26065         Minor improvement in gitlog-to-changelog
26066
26067         * build-aux/gitlog-to-changelog: New option `--format' makes
26068         output format string configurable.
26069
26070 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26071
26072         Optimize exclude: use hash tables for non-wildcard patterns.
26073
26074         * lib/exclude.c: Include hash.h and mbuiter.h
26075         (struct exclude_pattern, exclude_segment): New data types.
26076         (struct exclude): Rewrite.
26077         (fnmatch_pattern_has_wildcards): New function.
26078         (new_exclude_segment, free_exclude_segment): New functions.
26079         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26080         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26081         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26082         * modules/exclude: Depend on hash and mbuiter.
26083
26084         * modules/exclude-tests: New file.
26085         * tests/test-exclude.c: New file.
26086         * tests/test-exclude1.sh: New file.
26087         * tests/test-exclude2.sh: New file.
26088         * tests/test-exclude3.sh: New file.
26089         * tests/test-exclude4.sh: New file.
26090         * tests/test-exclude5.sh: New file.
26091         * tests/test-exclude6.sh: New file.
26092         * tests/test-exclude7.sh: New file.
26093
26094 2009-08-12  Bruno Haible  <bruno@clisp.org>
26095
26096         Ensure that getopt() gets declared by <unistd.h>.
26097         * lib/unistd.in.h: Conditionally include getopt.h.
26098         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26099         Set GNULIB_UNISTD_H_GETOPT.
26100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26101         GNULIB_UNISTD_H_GETOPT.
26102         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26103
26104 2009-08-12  Bruno Haible  <bruno@clisp.org>
26105
26106         Clarify logic.
26107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26108         gl_replace_getopt instead of GETOPT_H.
26109
26110 2009-08-12  Bruno Haible  <bruno@clisp.org>
26111
26112         * m4/getopt.m4: Add comments.
26113
26114 2009-08-12  Bruno Haible  <bruno@clisp.org>
26115
26116         Disable multithread support by default on Cygwin 1.5.x.
26117         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26118         set gl_use_threads=no if not specified otherwise.
26119
26120 2009-08-11  Bruno Haible  <bruno@clisp.org>
26121
26122         Avoid compilation error on NetBSD 5.0.
26123         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26124         * tests/test-stdio.c: Likewise.
26125         * tests/test-stdlib.c: Likewise.
26126         * tests/test-string.c: Likewise.
26127         * tests/test-unistd.c: Likewise.
26128         Reported by Greg Troxel <gdt@ir.bbn.com>
26129         at <https://savannah.gnu.org/support/?106973>.
26130
26131 2009-08-11  Bruno Haible  <bruno@clisp.org>
26132
26133         * modules/dup2-tests (Depends-on): Remove close.
26134
26135         Undo 2009-07-19 commit.
26136         * modules/acl-tests (Depends-on): Remove close.
26137         * modules/binary-io-tests (Depends-on): Likewise.
26138         * modules/closein-tests (Depends-on): Likewise.
26139         * modules/flock-tests (Depends-on): Likewise.
26140         * modules/fsync-tests (Depends-on): Likewise.
26141         * modules/lseek-tests (Depends-on): Likewise.
26142         * modules/pipe-tests (Depends-on): Likewise.
26143         * modules/posix_spawn-tests (Depends-on): Likewise.
26144         * modules/posix_spawnp-tests (Depends-on): Likewise.
26145         * modules/stat-time-tests (Depends-on): Likewise.
26146         * modules/yesno-tests (Depends-on): Likewise.
26147
26148 2009-08-10  Bruno Haible  <bruno@clisp.org>
26149
26150         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26151
26152 2009-08-10  Bruno Haible  <bruno@clisp.org>
26153
26154         Fix a gcc warning.
26155         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26156
26157 2009-08-10  Bruno Haible  <bruno@clisp.org>
26158
26159         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26160         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26161         not only the first time.
26162         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26163         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26164         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26165         is 1, not only the the first time.
26166
26167 2009-08-10  Bruno Haible  <bruno@clisp.org>
26168
26169         Make it possible to use module 'gethostname' without module 'close'.
26170         * lib/unistd.in.h (close): Evoke a link error only if
26171         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26173         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26174         * modules/unistd (Makefile.am): Substitute
26175         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26176         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26177         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26178         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26179         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26180         * modules/sys_ioctl (Makefile.am): Substitute
26181         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26182         * modules/socket (configure.ac): On native Windows, set
26183         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26184         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26185         Reported by Sam Steingold <sds@gnu.org>.
26186
26187 2009-08-10  Bruno Haible  <bruno@clisp.org>
26188
26189         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26190         * modules/ioctl (configure.ac): Likewise.
26191
26192 2009-08-10  Bruno Haible  <bruno@clisp.org>
26193
26194         Avoid collision between gnulib wrapper and libintl wrapper.
26195         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26196         already defined in intl/printf.c.
26197         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26198         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26199
26200 2009-08-09  Bruno Haible  <bruno@clisp.org>
26201
26202         Make <sys/select.h> really self-contained, also on Solaris 10.
26203         * lib/sys_select.in.h: Include <string.h>.
26204         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26205         Solaris 10 problem.
26206         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26207         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26208         Reported by Jim Meyering.
26209
26210 2009-08-09  Bruno Haible  <bruno@clisp.org>
26211
26212         Avoid warnings from 'aclocal' that are due to a use of macro name
26213         AM_XGETTEXT_OPTION that is not defined in automake.
26214         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26215         automake.
26216         * modules/error (configure.ac): Likewise.
26217         * modules/propername (configure.ac): Likewise.
26218         * modules/vasprintf (configure.ac): Likewise.
26219         * modules/verror (configure.ac): Likewise.
26220         * modules/xprintf (configure.ac): Likewise.
26221         * modules/xvasprintf (configure.ac): Likewise.
26222
26223 2009-08-08  Bruno Haible  <bruno@clisp.org>
26224
26225         Avoid compilation error in C++ mode.
26226         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26227         Reported by Sam Steingold <sds@gnu.org>.
26228
26229 2009-08-08  Bruno Haible  <bruno@clisp.org>
26230
26231         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26232         for the various Unix platforms.
26233         * doc/posix-headers/limits.texi: Update platforms list regarding
26234         HOST_NAME_MAX.
26235         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26236
26237 2009-08-07  Jim Meyering  <meyering@redhat.com>
26238
26239         selinux-at: fix typo in a comment
26240         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26241         Spotted by Paolo Bonzini.
26242
26243         selinux-at: remove redundant m4 code, add documentation
26244         * modules/selinux-at (configure.ac): Remove redundant code.
26245         LIB_SELINUX is already set via the dependent module, selinux-h.
26246         (Include): Add quotes around selinux-at.h.
26247         * lib/selinux-at.h: Add documentation.
26248         Reported by Bruno Haible in
26249         http://marc.info/?l=gnulib-bug&m=124958988300749
26250
26251 2009-08-07  Bruno Haible  <bruno@clisp.org>
26252
26253         Avoid link error on MacOS X 10.3 and 10.4.
26254         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26255         on non-ELF systems.
26256         * lib/argp-pv.c (argp_program_version): Likewise.
26257         Reported by Simon Josefsson.
26258
26259 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26260
26261         * tests/test-version-etc.sh: Use $EXEEXT.
26262
26263 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26264
26265         update-copyright: update documentation to point to maint.mk
26266         * build-aux/update-copyright: Here.
26267
26268 2009-08-06  Jim Meyering  <meyering@redhat.com>
26269
26270         maint.mk: support update-copyright-local
26271         * top/maint.mk (update-copyright-local): Define place-holder.
26272         (update-copyright): Depend on $(update-copyright-local).
26273
26274 2009-08-06  Jim Meyering  <meyering@redhat.com>
26275
26276         selinux-at: new module
26277         Initially written for coreutils, this module will soon be
26278         used by findutils, too.
26279         * MODULES.html.sh [Misc]: Add selinux-at.
26280         * lib/selinux-at.h: New file, from coreutils.
26281         * lib/selinux-at.c: Likewise.
26282         * modules/selinux-at: Likewise.
26283         (License): Change from LGPL to GPL, since it depends
26284         on the GPL'd openat module.
26285
26286         doc: update README
26287         * README: Remove references to cogito.
26288         Remove cvs-repo-updating instructions from 2007.
26289         Don't imply that CVS is better if you have limited disk space.
26290
26291 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26292
26293         update-copyright: support C-style comments
26294         * build-aux/update-copyright: Implement and document.
26295         * tests/test-update-copyright.sh: Test.
26296
26297 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26298
26299         update-copyright: support omitted "(C)"
26300         * build-aux/update-copyright: Implement and document.  Also,
26301         allow variable whitespace before "(C)".
26302         * tests/test-update-copyright.sh: Test.
26303
26304 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26305
26306         update-copyright: don't trip on non-FSF copyright statements
26307         * build-aux/update-copyright: Fix so that the first correctly
26308         formatted FSF copyright statement is recognized no matter what
26309         appears before it.  Update documentation.
26310         * tests/test-update-copyright.sh: Test that.
26311
26312 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26313
26314         update-copyright: clean up code a little
26315         * build-aux/update-copyright: Append "_re" to the name of any
26316         variable holding a regular expression.
26317         Replace "old" and "new" with "stmt" in variable names.
26318         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26319         handled correctly.
26320         Format code more consistently.
26321
26322 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26323
26324         update-copyright-tests: improve portability
26325         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26326         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26327
26328 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26329
26330         update-copyright: support @copyright{} and &copy;
26331         * build-aux/update-copyright: Implement and document.
26332         * tests/test-update-copyright.sh: Test.
26333
26334 2009-08-04  Jim Meyering  <meyering@redhat.com>
26335
26336         update-copyright-tests: correctly test EOL=\r\n handling
26337         * tests/test-update-copyright.sh: Put \r at the end of some lines
26338         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26339
26340         maint.mk: make update-copyright exclusion list more configurable
26341         * top/maint.mk (update-copyright): Default to excluding COPYING,
26342         but allow an override, in case someone does want to update that file.
26343
26344         maint.mk: don't update copyright date in COPYING
26345         * top/maint.mk (update-copyright): Exclude COPYING.
26346
26347         maint.mk: add a copyright-updating rule
26348         * top/maint.mk (update-copyright): New rule.
26349         Derived from coreutils/Makefile.am.
26350
26351         update-copyright: rename some variables
26352         * build-aux/update-copyright: Rename a few variables for clarity.
26353         Tweak syntax.  List Joel E. Denny as coauthor.
26354
26355 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26356
26357         update-copyright: fix bug for 2-digit last year and add tests
26358         * build-aux/update-copyright: Fix bug.
26359         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
26360         specified.
26361         * modules/update-copyright-tests: New
26362         * tests/test-update-copyright.sh: New.
26363
26364 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26365
26366         update-copyright: handle leading tabs in line prefix
26367         * build-aux/update-copyright: Count leading tabs as 8 spaces
26368         when computing margin.  This helps with the formatting of
26369         ChangeLogs, for example.
26370         Fix documentation a little.
26371
26372 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26373
26374         update-copyright: support EOL=\r\n
26375         * build-aux/update-copyright: Implement that.
26376
26377 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26378
26379         update-copyright: automatically format copyright statements
26380         * build-aux/update-copyright: Implement that.
26381         Also, be a little more predictable and safer by always failing
26382         when the full copyright format is not perfectly recognized as an
26383         unbroken whole.  Discussed at
26384         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
26385         Rewrite documentation.
26386
26387 2009-08-03  Bruno Haible  <bruno@clisp.org>
26388
26389         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
26390
26391 2009-08-02  Bruno Haible  <bruno@clisp.org>
26392
26393         Tests for module 'uname'.
26394         * modules/uname-tests: New file.
26395         * tests/test-uname.c: New file.
26396
26397         New module 'uname'.
26398         * lib/uname.c: New file.
26399         * m4/uname.m4: New file.
26400         * modules/uname: New file.
26401         * doc/posix-functions/uname.texi: Mention the new module.
26402
26403 2009-08-02  Bruno Haible  <bruno@clisp.org>
26404
26405         Tests for module 'sys_utsname'.
26406         * modules/sys_utsname-tests: New file.
26407         * tests/test-sys_utsname.c: New file.
26408
26409         New module 'sys_utsname'.
26410         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
26411         * m4/sys_utsname_h.m4: New file.
26412         * modules/sys_utsname: New file.
26413         * doc/posix-headers/sys_utsname.texi: Mention the new module.
26414
26415 2009-08-02  Bruno Haible  <bruno@clisp.org>
26416
26417         Implicitly initialize the sockets library.
26418         * lib/gethostname.c: Include sockets.h.
26419         (rpl_gethostname): Invoke gl_sockets_startup.
26420         * lib/socket.c: Include sockets.h.
26421         (rpl_socket): Invoke gl_sockets_startup.
26422         * modules/gethostname (Depends-on): Add sockets.
26423         * modules/socket (Depends-on): Likewise.
26424         * tests/test-poll.c: Don't include sockets.h.
26425         (main): Don't invoke gl_sockets_startup.
26426         * tests/test-select.c: Don't include sockets.h.
26427         (main): Don't invoke gl_sockets_startup.
26428
26429 2009-08-02  Bruno Haible  <bruno@clisp.org>
26430
26431         Allow multiple calls to gl_sockets_startup.
26432         * lib/sockets.c (initialized_sockets_version): New variable.
26433         (gl_sockets_startup): Do nothing if already called for this or a higher
26434         version.
26435         (gl_sockets_cleanup): Reset initialized_sockets_version.
26436
26437 2009-08-03  Simon Josefsson  <simon@josefsson.org>
26438
26439         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
26440         different project/version.
26441
26442 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
26443             Bruno Haible  <bruno@clisp.org>
26444
26445         Tests for module 'pipe-filter-gi'.
26446         * modules/pipe-filter-gi-tests: New file.
26447         * tests/test-pipe-filter-gi1.sh: New file.
26448         * tests/test-pipe-filter-gi1.c: New file.
26449         * tests/test-pipe-filter-gi2.sh: New file.
26450         * tests/test-pipe-filter-gi2-main.c: New file.
26451         * tests/test-pipe-filter-gi2-child.c: New file.
26452
26453         New module 'pipe-filter-gi'.
26454         * lib/pipe-filter-gi.c: New file.
26455         * modules/pipe-filter-gi: New file.
26456
26457 2009-08-02  Bruno Haible  <bruno@clisp.org>
26458             Paolo Bonzini  <bonzini@gnu.org>
26459
26460         Tests for module 'pipe-filter-ii'.
26461         * modules/pipe-filter-ii-tests: New file.
26462         * tests/test-pipe-filter-ii1.sh: New file.
26463         * tests/test-pipe-filter-ii1.c: New file.
26464         * tests/test-pipe-filter-ii2.sh: New file.
26465         * tests/test-pipe-filter-ii2-main.c: New file.
26466         * tests/test-pipe-filter-ii2-child.c: New file.
26467
26468         New module 'pipe-filter-ii'.
26469         * lib/pipe-filter.h: New file.
26470         * lib/pipe-filter-ii.c: New file.
26471         * lib/pipe-filter-aux.h: New file.
26472         * modules/pipe-filter-ii: New file.
26473
26474 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26475
26476         * lib/gc-libgcrypt.c: Change copyright to FSF.
26477         * lib/gc-gnulib.c: Likewise.
26478
26479 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
26480
26481         * lib/gethostname.c: Include limits.h.
26482
26483 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26484             Bruno Haible  <bruno@clisp.org>
26485
26486         Ensure HOST_NAME_MAX as part of the gethostname module.
26487         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
26488         define also HOST_NAME_MAX.
26489         * tests/test-gethostname.c: Include <limits.h>.
26490         (main): Check also HOST_NAME_MAX.
26491         * doc/posix-headers/limits.texi: Document the mingw problem.
26492
26493 2009-08-02  Bruno Haible  <bruno@clisp.org>
26494
26495         * lib/gethostname.c (gethostname): Fix handling of large len argument.
26496         Add comments.
26497
26498 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26499
26500         * lib/gethostname.c: Add Windows wrapper.
26501         * m4/gethostname.m4: Look for gethostname in -lws2_32.
26502         * modules/gethostname: Depend on sys_socket & errno, for also
26503         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
26504         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
26505
26506 2009-07-31  Jim Meyering  <meyering@redhat.com>
26507
26508         getloadavg: fix symbol name in comment
26509         * lib/getloadavg.c: Correct a typo I introduced when adding
26510         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
26511         Matt Kraai spotted the problem.
26512
26513 2009-07-29  Matt Kraai  <mkraai@beckman.com>
26514
26515         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
26516         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
26517         code also if ! defined N_NAME_POINTER.
26518         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
26519         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
26520         but the n_name member is a 12-byte array.
26521
26522 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
26523
26524         update-copyright: generalize comment handling
26525         * build-aux/update-copyright: Handle copyright statements
26526         within more comment styles.
26527         Document usage.
26528         Report any file with an external copyright holder or parse failure.
26529
26530 2009-07-29  Jim Meyering  <meyering@redhat.com>
26531
26532         mktime: correct setting of REPLACE_MKTIME
26533         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
26534
26535         update-copyright: new module
26536         * modules/update-copyright: New file.
26537         * build-aux/update-copyright: New file.
26538         * MODULES.html.sh (maint+release support): Add update-copyright.
26539
26540 2009-07-27  Bruno Haible  <bruno@clisp.org>
26541
26542         Fix compilation error when <ctime> is used and mktime is replaced.
26543         * lib/time.in.h (mktime): New declaration.
26544         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
26545         REPLACE_MKTIME instead of defining mktime in config.h.
26546         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
26547         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
26548         Reported by Ross McFarland <rwmcfa1@neces.com>.
26549
26550 2009-07-27  Bruno Haible  <bruno@clisp.org>
26551
26552         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26553         Reported by Matt Kraai <mkraai@beckman.com>.
26554
26555 2009-07-25  Jim Meyering  <meyering@redhat.com>
26556
26557         maint.mk: avoid warnings about missing files
26558         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26559         diagnostic when .prev-version does not exist.
26560         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26561         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26562         nonexistent cfg.mk.
26563         Suggestions from Simon Josefsson.
26564
26565 2009-07-25  Bruno Haible  <bruno@clisp.org>
26566
26567         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26568         defined as macros. Needed on QNX 6.4.1.
26569         Reported by Matt Kraai <mkraai@beckman.com>.
26570
26571 2009-07-23  Jim Meyering  <meyering@redhat.com>
26572
26573         maint.mk: invoke "make dist" with a working value of XZ_OPT
26574         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26575
26576 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26577
26578         Make fseeko.c compile on QNX.
26579         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26580
26581 2009-07-22  Peter Simons  <simons@cryp.to>
26582
26583         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26584         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26585         * lib/md4.h: Likewise.
26586         * lib/md5.h: Likewise.
26587         * lib/sha1.h: Likewise.
26588         * lib/sha256.h: Likewise.
26589         * lib/sha512.h: Likewise.
26590
26591         tests-sha1: don't assign literal string to 'char *' variable
26592         * tests/test-sha1.c (main): Declare locals with "const" to match
26593         attributes of the right hand side.
26594
26595 2009-07-21  Eric Blake  <ebb9@byu.net>
26596
26597         dup2: fix more mingw problems
26598         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26599         fd to itself.
26600         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26601         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26602         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26603         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26604         care of mingw bugs.
26605
26606 2009-07-21  Jim Meyering  <meyering@redhat.com>
26607
26608         vc-list-files: avoid failure when /bin/sh is dash
26609         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26610         On some Debian based systems, /bin/sh is a symlink to dash, and running
26611         this command would omit the "/" following each 'tests' prefix:
26612           dash -x build-aux/vc-list-files -C . tests
26613         That is because bash and dash work differently:
26614           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26615           bash ok
26616           dash odd
26617
26618 2009-07-21  Eric Blake  <ebb9@byu.net>
26619
26620         dup2-tests: test previous patch
26621         * modules/dup2-tests: New file.
26622         * tests/test-dup2.c: Likewise.
26623         * tests/test-open.c (main): Avoid unspecified behavior.
26624         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26625         test.
26626
26627         dup2: work around mingw and cygwin 1.5 bug
26628         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26630         * modules/unistd (Makefile.am): Substitute it.
26631         * lib/unistd.in.h (dup2): Declare the replacement.
26632         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26633         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26634         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26635         * modules/execute (Depends-on): Add dup2.
26636         * modules/fseterr (Depends-on): Likewise.
26637         * modules/pipe (Depends-on): Likewise.
26638         * modules/posix_spawn-internal (Depends-on): Likewise.
26639
26640 2009-07-21  Bruno Haible  <bruno@clisp.org>
26641
26642         * modules/.gitattributes: New file.
26643
26644 2009-07-20  Bruno Haible  <bruno@clisp.org>
26645
26646         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26647         (main): Use it.
26648
26649 2009-07-20  Eric Blake  <ebb9@byu.net>
26650
26651         test-pipe: make a bit more robust.
26652         * tests/test-pipe.c (myerr): Allow error messages regardless of
26653         what we do to stderr.
26654         (test_pipe): Rearrange to avoid deadlock.
26655         (child_main): Try a larger read, to ensure we avoided deadlock.
26656         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26657         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26658         if misused.
26659
26660 2009-07-19  Jim Meyering  <meyering@redhat.com>
26661
26662         fts: avoid false-positive cycle-detection
26663         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26664         for each new command line argument.
26665
26666 2009-07-19  Bruno Haible  <bruno@clisp.org>
26667
26668         Fix build error on mingw with the modules sys_select and unistd.
26669         * modules/acl-tests (Depends-on): Add close.
26670         * modules/binary-io-tests (Depends-on): Likewise.
26671         * modules/closein-tests (Depends-on): Likewise.
26672         * modules/flock-tests (Depends-on): Likewise.
26673         * modules/fsync-tests (Depends-on): Likewise.
26674         * modules/lseek-tests (Depends-on): Likewise.
26675         * modules/pipe-tests (Depends-on): Likewise.
26676         * modules/posix_spawn-tests (Depends-on): Likewise.
26677         * modules/posix_spawnp-tests (Depends-on): Likewise.
26678         * modules/stat-time-tests (Depends-on): Likewise.
26679         * modules/yesno-tests (Depends-on): Likewise.
26680
26681 2009-07-19  Bruno Haible  <bruno@clisp.org>
26682
26683         Unify conditionals.
26684         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26685         macros, not at the compiler macros.
26686         * lib/pipe.c: Likewise.
26687         * lib/execute.c: Likewise.
26688         * lib/spawni.c: Likewise.
26689
26690 2009-07-19  Bruno Haible  <bruno@clisp.org>
26691
26692         Fix handling of closed stdin/stdout/stderr on mingw.
26693         * lib/w32spawn.h: Include unistd.h.
26694         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26695         file descriptor with O_NOINHERIT flag.
26696         (fd_safer_noinherit): New function, based on fd-safer.c.
26697         (dup_safer_noinherit): New function, based on dup-safer.c.
26698         (undup_safer_noinherit): New function.
26699         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26700         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26701         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26702         instead of fd_safer.
26703         * tests/test-pipe.c: Include <windows.h>.
26704         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26705
26706         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26707         from main.
26708         (test_pipe): Pass an extra argument for disambiguation.
26709         (main): Invoke parent_main or child_main.
26710
26711         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26712         consistently.
26713
26714 2009-07-18  Eric Blake  <ebb9@byu.net>
26715
26716         test-pipe: fix mingw build
26717         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26718
26719 2009-07-18  Bruno Haible  <bruno@clisp.org>
26720
26721         * modules/pipe-tests (Makefile.am): Fix typo.
26722
26723 2009-07-18  Eric Blake  <ebb9@byu.net>
26724
26725         error: fix mingw build
26726         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26727         Reported by Bruno Haible.
26728
26729         error: avoid undefined use of stdout
26730         * lib/error.c (error, error_at_line): Check that fd 1 is open
26731         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26732         is handling faults and the close_stdout module wants to report the
26733         detection of closed stdout as an error.
26734
26735 2009-07-17  Eric Blake  <ebb9@byu.net>
26736
26737         pipe: be robust in face of closed fds
26738         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26739         should cause child to misbehave.
26740         * modules/pipe-tests: New module.
26741         * tests/test-pipe.c: New file.
26742         * tests/test-pipe.sh: New file.
26743         Reported by Akim Demaille.
26744
26745 2009-07-14  Bruno Haible  <bruno@clisp.org>
26746
26747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26748         Reported by anonymous kc.
26749
26750 2009-07-07  Jim Meyering  <meyering@redhat.com>
26751
26752         maint.mk: don't look for translatable strings in *.m4 or *.mk
26753         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26754         when searching for translatable strings.
26755
26756 2009-07-05  Jim Meyering  <meyering@redhat.com>
26757
26758         remove superfluous parentheses in STREQ definition
26759         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26760         * lib/getugroups.c (STREQ): Likewise.
26761         * lib/fnmatch.c (STREQ): Likewise.
26762         Spotted by Bruno Haible.
26763
26764 2009-07-04  Jim Meyering  <meyering@redhat.com>
26765
26766         argv-iter: new module
26767         * MODULES.html.sh: Add argv-iter.
26768         * lib/argv-iter.c, lib/argv-iter.h: New files.
26769         * modules/argv-iter: New file.
26770         * modules/argv-iter-tests: New file.
26771         * tests/test-argv-iter.c: Test it.
26772
26773 2009-07-04  Bruno Haible  <bruno@clisp.org>
26774
26775         Fix assertion.
26776         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26777         contains more exact copies of a given entry than file2, leave the extra
26778         copies unpaired rather than aborting.
26779         Reported by Eric Blake.
26780
26781 2009-07-02  Bruno Haible  <bruno@clisp.org>
26782
26783         Speedup git-merge-changelog for git cherry-pick.
26784         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26785         (entries_mapping_get): New function, extracted from compute_mapping.
26786         (entries_mapping_reverse_get): New function.
26787         (compute_mapping): Add a 'full' argument. Return the result in a
26788         'struct entries_mapping'.
26789         (main): Update. Access the mappings through entries_mapping_get.
26790         Reported by Eric Blake.
26791
26792 2009-07-02  Bruno Haible  <bruno@clisp.org>
26793
26794         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26795         best_i.
26796
26797 2009-07-02  Bruno Haible  <bruno@clisp.org>
26798
26799         Speed up approximate search for matching ChangeLog entries.
26800         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26801         argument. Call fstrcmp_bounded instead of fstrcmp.
26802         (compute_mapping, try_split_merged_entry, main): Update callers.
26803
26804 2009-07-02  Bruno Haible  <bruno@clisp.org>
26805
26806         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26807
26808 2009-06-30  Bruno Haible  <bruno@clisp.org>
26809
26810         Reduce the number of uc_is_cased calls.
26811         * lib/unicase.h (casing_suffix_context_t): Add
26812         'first_char_except_ignorable' field.
26813         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26814         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26815         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26816         Update initializer.
26817         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26818         case-ignorable characters.
26819         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26820         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26821         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26822         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26823         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26824
26825 2009-06-30  Bruno Haible  <bruno@clisp.org>
26826
26827         Tests for module 'unicase/ignorable'.
26828         * modules/unicase/ignorable-tests: New file.
26829         * tests/unicase/test-ignorable.c: New file, generated by
26830         gen-uni-tables.
26831
26832         Tests for module 'unicase/cased'.
26833         * modules/unicase/cased-tests: New file.
26834         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26835         * tests/unicase/test-predicate-part1.h: New file, derived from
26836         tests/unictype/test-predicate-part1.h.
26837         * tests/unicase/test-predicate-part2.h: New file, same as
26838         tests/unictype/test-predicate-part2.h.
26839
26840         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26841         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26842         (output_casing_properties): New function.
26843         (main): Call it.
26844         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26845         * lib/unicase/cased.c: Include unictype/bitmap.h.
26846         (uc_is_cased): Define through a bitmap lookup.
26847         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26848         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26849         (uc_is_case_ignorable): Define through a bitmap lookup.
26850         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26851         lib/unictype/bitmap.h.
26852         (Depends-on): Add inline. Clean up.
26853         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26854         lib/unictype/bitmap.h.
26855         (Depends-on): Add inline. Clean up.
26856         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26857         recognition.
26858         * tests/unicase/test-u16-tolower.c (main): Likewise.
26859         * tests/unicase/test-u32-tolower.c (main): Likewise.
26860
26861 2009-06-30  Bruno Haible  <bruno@clisp.org>
26862
26863         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26864         * lib/unicase/u16-casemap.c: Likewise.
26865         * lib/unicase/u32-casemap.c: Likewise.
26866
26867 2009-06-29  Bruno Haible  <bruno@clisp.org>
26868
26869         Define u32_casefold as a wrapper around u32_ct_casefold.
26870         * lib/unicase/u32-casefold.c: Update.
26871         * modules/unicase/u32-casefold (Depends-on): Add
26872         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26873         unicase/empty-suffix-context. Clean up.
26874
26875         Define u16_casefold as a wrapper around u16_ct_casefold.
26876         * lib/unicase/u16-casefold.c: Update.
26877         * modules/unicase/u16-casefold (Depends-on): Add
26878         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26879         unicase/empty-suffix-context. Clean up.
26880
26881         Define u8_casefold as a wrapper around u8_ct_casefold.
26882         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26883         * lib/unicase/u8-casefold.c: Update.
26884         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26885         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26886
26887         Define u32_totitle as a wrapper around u32_ct_totitle.
26888         * lib/unicase/u32-totitle.c: Update.
26889         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26890         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26891
26892         Define u16_totitle as a wrapper around u16_ct_totitle.
26893         * lib/unicase/u16-totitle.c: Update.
26894         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26895         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26896
26897         Define u8_totitle as a wrapper around u8_ct_totitle.
26898         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26899         functions.
26900         (FUNC): Delegate to U_CT_TOTITLE.
26901         * lib/unicase/u8-totitle.c: Update.
26902         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26903         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26904
26905         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26906         invocation.
26907         * modules/unicase/u32-tolower (Depends-on): Add
26908         unicase/empty-prefix-context, unicase/empty-suffix-context.
26909
26910         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26911         invocation.
26912         * modules/unicase/u16-tolower (Depends-on): Add
26913         unicase/empty-prefix-context, unicase/empty-suffix-context.
26914
26915         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26916         * modules/unicase/u8-tolower (Depends-on): Add
26917         unicase/empty-prefix-context, unicase/empty-suffix-context.
26918
26919         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26920         invocation.
26921         * modules/unicase/u32-toupper (Depends-on): Add
26922         unicase/empty-prefix-context, unicase/empty-suffix-context.
26923
26924         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26925         invocation.
26926         * modules/unicase/u16-toupper (Depends-on): Add
26927         unicase/empty-prefix-context, unicase/empty-suffix-context.
26928
26929         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26930         * modules/unicase/u8-toupper (Depends-on): Add
26931         unicase/empty-prefix-context, unicase/empty-suffix-context.
26932
26933         New module 'unicase/u32-ct-casefold'.
26934         * lib/unicase/u32-ct-casefold.c: New file.
26935         * modules/unicase/u32-ct-casefold: New file.
26936
26937         New module 'unicase/u16-ct-casefold'.
26938         * lib/unicase/u16-ct-casefold.c: New file.
26939         * modules/unicase/u16-ct-casefold: New file.
26940
26941         New module 'unicase/u8-ct-casefold'.
26942         * lib/unicase/u8-ct-casefold.c: New file.
26943         * lib/unicase/u-ct-casefold.h: New file, derived from
26944         lib/unicase/u-casefold.h.
26945         * modules/unicase/u8-ct-casefold: New file.
26946
26947         New module 'unicase/u32-ct-totitle'.
26948         * lib/unicase/u32-ct-totitle.c: New file.
26949         * modules/unicase/u32-ct-totitle: New file.
26950
26951         New module 'unicase/u16-ct-totitle'.
26952         * lib/unicase/u16-ct-totitle.c: New file.
26953         * modules/unicase/u16-ct-totitle: New file.
26954
26955         New module 'unicase/u8-ct-totitle'.
26956         * lib/unicase/u8-ct-totitle.c: New file.
26957         * lib/unicase/u-ct-totitle.h: New file, derived from
26958         lib/unicase/u-totitle.h.
26959         * modules/unicase/u8-ct-totitle: New file.
26960
26961         New module 'unicase/u32-ct-tolower'.
26962         * lib/unicase/u32-ct-tolower.c: New file.
26963         * modules/unicase/u32-ct-tolower: New file.
26964
26965         New module 'unicase/u16-ct-tolower'.
26966         * lib/unicase/u16-ct-tolower.c: New file.
26967         * modules/unicase/u16-ct-tolower: New file.
26968
26969         New module 'unicase/u8-ct-tolower'.
26970         * lib/unicase/u8-ct-tolower.c: New file.
26971         * modules/unicase/u8-ct-tolower: New file.
26972
26973         New module 'unicase/u32-ct-toupper'.
26974         * lib/unicase/u32-ct-toupper.c: New file.
26975         * modules/unicase/u32-ct-toupper: New file.
26976
26977         New module 'unicase/u16-ct-toupper'.
26978         * lib/unicase/u16-ct-toupper.c: New file.
26979         * modules/unicase/u16-ct-toupper: New file.
26980
26981         New module 'unicase/u8-ct-toupper'.
26982         * lib/unicase/u8-ct-toupper.c: New file.
26983         * modules/unicase/u8-ct-toupper: New file.
26984
26985         Add context arguments to u*_casemap functions.
26986         * lib/unicase/unicasemap.h: Include unicase.h.
26987         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26988         suffix_context arguments.
26989         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26990         functions.
26991         (FUNC): Add prefix_context and suffix_context arguments. Use
26992         uc_is_cased and uc_is_case_ignorable.
26993         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26994         * lib/unicase/u16-casemap.c: Likewise.
26995         * lib/unicase/u32-casemap.c: Likewise.
26996         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26997         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26998         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26999         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27000         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27001         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27002
27003         New module 'unicase/u32-suffix-context'.
27004         * lib/unicase/u32-suffix-context.c: New file.
27005         * modules/unicase/u32-suffix-context: New file.
27006
27007         New module 'unicase/u16-suffix-context'.
27008         * lib/unicase/u16-suffix-context.c: New file.
27009         * modules/unicase/u16-suffix-context: New file.
27010
27011         New module 'unicase/u8-suffix-context'.
27012         * lib/unicase/u8-suffix-context.c: New file.
27013         * lib/unicase/u-suffix-context.h: New file.
27014         * modules/unicase/u8-suffix-context: New file.
27015
27016         New module 'unicase/empty-suffix-context'.
27017         * lib/unicase/empty-suffix-context.c: New file.
27018         * modules/unicase/empty-suffix-context: New file.
27019
27020         New module 'unicase/u32-prefix-context'.
27021         * lib/unicase/u32-prefix-context.c: New file.
27022         * modules/unicase/u32-prefix-context: New file.
27023
27024         New module 'unicase/u16-prefix-context'.
27025         * lib/unicase/u16-prefix-context.c: New file.
27026         * modules/unicase/u16-prefix-context: New file.
27027
27028         New module 'unicase/u8-prefix-context'.
27029         * lib/unicase/u8-prefix-context.c: New file.
27030         * lib/unicase/u-prefix-context.h: New file.
27031         * lib/unicase/context.h: New file.
27032         * modules/unicase/u8-prefix-context: New file.
27033
27034         New module 'unicase/empty-prefix-context'.
27035         * lib/unicase/empty-prefix-context.c: New file.
27036         * modules/unicase/empty-prefix-context: New file.
27037
27038         New module 'unicase/ignorable'.
27039         * lib/unicase/ignorable.c: New file.
27040         * modules/unicase/ignorable: New file.
27041
27042         New module 'unicase/cased'.
27043         * lib/unicase/caseprop.h: New file.
27044         * lib/unicase/cased.c: New file.
27045         * modules/unicase/cased: New file.
27046
27047         New functions for case mapping of substrings.
27048         * lib/unicase.h (casing_prefix_context_t): New type.
27049         (unicase_empty_prefix_context): New variable.
27050         (u8_casing_prefix_context, u16_casing_prefix_context,
27051         u32_casing_prefix_context, u8_casing_prefixes_context,
27052         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27053         declarations.
27054         (casing_suffix_context_t): New type.
27055         (unicase_empty_suffix_context): New variable.
27056         (u8_casing_suffix_context, u16_casing_suffix_context,
27057         u32_casing_suffix_context, u8_casing_suffixes_context,
27058         u16_casing_suffixes_context, u32_casing_suffixes_context,
27059         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27060         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27061         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27062         declarations.
27063
27064 2009-06-28  Jim Meyering  <meyering@redhat.com>
27065
27066         boostrap: indent only with spaces
27067         * build-aux/bootstrap: Indent only with spaces, never TABs.
27068
27069         bootstrap: split long lines
27070         * build-aux/bootstrap: Keep line length < 80.
27071
27072         bootstrap: sync from coreutils
27073         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27074         just as autoreconf does.  Verify a list of prerequisite
27075         package-name,version-number pairs if defined in bootstrap.conf.
27076         Refer to README-prereq, if prerequisites are not satisfied.
27077
27078 2009-06-27  Eric Blake  <ebb9@byu.net>
27079
27080         tests: add test for bogus NULL definition
27081         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27082         * tests/test-stdlib.c: Likewise.
27083         * tests/test-string.c: Likewise.
27084         * tests/test-locale.c: Likewise.
27085         * tests/test-unistd.c: Likewise.
27086         * modules/stdio-tests (Depends-on): Add verify.
27087         * modules/stdlib-tests (Depends-on): Likewise.
27088         * modules/string-tests (Depends-on): Likewise.
27089         * modules/locale-tests (Depends-on): Likewise.
27090         * modules/unistd-tests (Depends-on): Likewise.
27091
27092 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27093
27094         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27095         self-explaining comment.
27096         * m4/selinux-selinux-h: Update serial.
27097         (gl_LIBSELINUX): New macro, adding a warning for missing development
27098         packages to code extracted from...
27099         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27100         Add warning for missing development packages here, too.
27101
27102 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27103
27104         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27105
27106 2009-06-25  Eric Blake  <ebb9@byu.net>
27107
27108         version-etc: fix regression
27109         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27110         gcc.
27111         (version_etc): Use it, to catch bugs with trailing NULL.
27112         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27113         (version_etc_va): Fix logic bug.
27114         * modules/version-etc-tests: Add test.
27115         * tests/test-version-etc.c: New file.
27116         * tests/test-version-etc.sh: Likewise.
27117
27118 2009-06-25  Sam Steingold  <sds@gnu.org>
27119
27120         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27121         mbtowc declaration.
27122
27123 2009-06-25  Eric Blake  <ebb9@byu.net>
27124
27125         fpurge: migrate into <stdio.h>
27126         * lib/fpurge.h: Delete...
27127         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27128         * lib/fpurge.c (fpurge): Change declaring header.
27129         * modules/fpurge (Files): Drop deleted file.
27130         (Depends-on): Add stdio.
27131         (configure.ac): Set witness.
27132         * modules/stdio (Makefile.am): Support fpurge macros.
27133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27134         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27135         * lib/fflush.c: Update client.
27136         * tests/test-fpurge.c: Likewise.
27137         * NEWS: Mention the change.
27138
27139 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27140
27141         * lib/argp-version-etc.c (program_authors): Add const
27142         qualifier.
27143         * lib/version-etc.c: Fix typos in the comments.
27144         * modules/argp-version-etc: Depends on version-etc.
27145
27146 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27147
27148         argp-version-etc: new module.
27149
27150         * lib/argp-version-etc.c: New file.
27151         * lib/argp-version-etc.h: New file.
27152         * modules/argp-version-etc: New file.
27153         * modules/argp-version-etc-tests: New file.
27154         * tests/test-argp-version-etc.c: New test.
27155         * tests/test-argp-version-etc-1.sh: New test.
27156
27157 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27158
27159         Provide additional interfaces and documentation for version-etc
27160         module.
27161
27162         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27163         interfaces.
27164         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27165         prototypes.
27166
27167 2009-06-24  Bruno Haible  <bruno@clisp.org>
27168
27169         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27170         HAVE_LIB${NAME} macro.
27171         Reported by Sam Steingold <sds@gnu.org>.
27172
27173 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27174
27175         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27176         needed.
27177
27178 2009-06-21  Bruno Haible  <bruno@clisp.org>
27179
27180         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27181         work.
27182         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27183         together with LIB${NAME}, LTLIB${NAME}.
27184         Reported by Sam Steingold <sds@gnu.org>.
27185
27186 2009-06-20  Jim Meyering  <meyering@redhat.com>
27187
27188         tests: make sc_require_test_exit_idiom more generic
27189         * top/maint.mk (Exit_witness_file): New overridable variable.
27190         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27191         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27192
27193 2009-06-19  Jim Meyering  <meyering@redhat.com>
27194
27195         hash: reverse order of src/dst parameters in an internal interface
27196         * lib/hash.c (transfer_entries): Reverse order of parameters to
27197         put DST before SRC.  Adjust callers.
27198
27199         tests: test-hash: avoid wholesale duplication
27200         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27201         Instead, use a loop and add a single conditional.
27202
27203         tests: test-hash: allow seed selection via a command line argument
27204         * tests/test-hash.c (get_seed): New function.
27205         (main): Use it.
27206
27207 2009-06-19  Eric Blake  <ebb9@byu.net>
27208
27209         hash: avoid memory leak on allocation failure
27210         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27211         failure.  Factor repeated algorithm...
27212         (transfer_entries): ...into new helper routine.
27213         (hash_delete): React to hash_rehash return value.
27214
27215         hash: reduce memory pressure in hash_rehash no-op case
27216         * lib/hash.c (next_prime): Avoid overflow.
27217         (hash_initialize): Factor bucket size computation...
27218         (compute_bucket_size): ...into new helper function.
27219         (hash_rehash): Use new function and open coding to reduce memory
27220         pressure, and avoid a memory leak in USE_OBSTACK code.
27221         Reported by Jim Meyering.
27222
27223 2009-06-18  Eric Blake  <ebb9@byu.net>
27224
27225         hash: make rotation more obvious
27226         * modules/hash (Depends-on): Add bitrotate and stdint.
27227         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27228         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27229         (SIZE_MAX): Rely on headers for definition.
27230         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27231         (raw_hasher): Use rotr_sz.
27232         Suggested by Jim Meyering.
27233
27234         hash: fix memory leak in last patch
27235         * lib/hash.c (hash_rehash): Avoid memory leak.
27236
27237         hash: avoid no-op rehashing
27238         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27239
27240         hash: provide default callback functions
27241         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27242         (hash_initialize): Use them as defaults.
27243         * tests/test-hash.c (main): Test this.
27244
27245         hash: minor optimization
27246         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27247         when possible.
27248         (hash_initialize): Document this promise.
27249         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27250         * tests/test-hash.c (hash_compare_strings): Test this.
27251
27252 2009-06-18  Bruno Haible  <bruno@clisp.org>
27253
27254         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27255         going to be replaced anyway.
27256
27257 2009-06-18  Bruno Haible  <bruno@clisp.org>
27258
27259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27260         in one place.
27261         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27262         be replaced anyway.
27263
27264 2009-06-18  Eric Blake  <ebb9@byu.net>
27265
27266         hash: check for resize before insertion
27267         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27268         threshold before insertion, so that a pathological hash_rehash
27269         that fills every bucket can still trigger another rehash.
27270
27271 2009-06-18  Jim Meyering  <meyering@redhat.com>
27272
27273         hash-tests: add a loop around the small tests
27274         * tests/test-hash.c (main): Repeat small tests with selected
27275         small initial table sizes.
27276
27277 2009-06-17  Eric Blake  <ebb9@byu.net>
27278
27279         hash: minor cleanups
27280         * lib/hash.h (hash_entry): Make opaque, by moving...
27281         * lib/hash.c (hash_entry): ...here.
27282         (hash_insert): Clarify restrictions on what can be inserted.
27283         (hash_get_next): Clarify when it is safe to remove an element
27284         during traversal.
27285         (check_tuning): Skip verification when tuning is known safe.
27286         (hash_initialize): Clarify restrictions on tuning.
27287
27288 2009-06-17  Jim Meyering  <jim@meyering.net>
27289         and Eric Blake  <ebb9@byu.net>
27290
27291         hash-tests: new module
27292         * modules/hash-tests: New file.
27293         * tests/test-hash.c: New file.
27294
27295 2009-06-17  Eric Blake  <ebb9@byu.net>
27296
27297         strstr-simple: document new module
27298         * MODULES.html.sh: Document new module.
27299
27300         strstr, strcasestr: replace on platforms with broken memchr
27301         * modules/strstr: Split into...
27302         * modules/strstr-simple: ...new module that does not care about
27303         performance, but does care about glibc bug.
27304         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27305         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27306         if platform memchr is broken, per Debian bug 521737.
27307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27308         memchr.
27309         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27310         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27311         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27312         * modules/mountlist (Depends-on): Add strstr-simple.
27313         * modules/gen-uni-tables (Depends-on): Likewise.
27314         * modules/argz (Depends-on): Add strstr.
27315
27316 2009-06-17  Bruno Haible  <bruno@clisp.org>
27317
27318         * modules/posix_spawn-internal (Depends-on): Add errno.
27319
27320 2009-06-17  Bruno Haible  <bruno@clisp.org>
27321
27322         Define missing ESTALE on Interix 3.5.
27323         * lib/errno.in.h (ESTALE): Assign a value if missing.
27324         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27325         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27326         missing.
27327         * doc/posix-headers/errno.texi: Mention the Interix bug.
27328         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27329
27330 2009-06-15  Eric Blake  <ebb9@byu.net>
27331
27332         memchr, memchr2: add valgrind exception
27333         * lib/memchr.valgrind: New file.
27334         * lib/memchr2.valgrind: New file.
27335         * modules/memchr (Files): Distribute valgrind file.
27336         * modules/memchr2 (Files): Likewise.
27337
27338         docs: memchr is no longer obsolete
27339         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27340         * lib/string.in.h (memchr): Simplify logic.
27341
27342 2009-06-14  Jim Meyering  <meyering@redhat.com>
27343
27344         link-follow: fix the "checking..." message to not mention trailing slash
27345         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
27346         never considered trailing slashes.
27347
27348 2009-06-14  Bruno Haible  <bruno@clisp.org>
27349
27350         * m4/memchr.m4: Mention also the bug on IA-64.
27351         * doc/posix-functions/memchr.texi: Likewise.
27352
27353 2009-06-12  Eric Blake  <ebb9@byu.net>
27354
27355         memchr: detect broken x86_64 and alpha implementations
27356         * modules/memchr-tests (Depends-on): Move mmap detection...
27357         * modules/memchr (Depends-on): ...here.
27358         (configure.ac): Set indicator.
27359         * lib/string.in.h (memchr): Declare replacement.
27360         * modules/string (Makefile.am): Trigger replacement.
27361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27362         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
27363         bugs.
27364         * doc/posix-functions/memchr.texi (memchr): Document the bug.
27365         * modules/getpagesize (License): Relax license.
27366
27367 2009-06-11  Bruno Haible  <bruno@clisp.org>
27368
27369         * lib/idpriv.h: Add more references.
27370
27371 2009-06-08  Bruno Haible  <bruno@clisp.org>
27372
27373         Tests for module 'idpriv-droptemp'.
27374         * modules/idpriv-droptemp-tests: New file.
27375         * tests/test-idpriv-droptemp.sh: New file.
27376         * tests/test-idpriv-droptemp.su.sh: New file.
27377         * tests/test-idpriv-droptemp.c: New file.
27378
27379         New module 'idpriv-droptemp'.
27380         * lib/idpriv-droptemp.c: New file.
27381         * modules/idpriv-droptemp: New file.
27382
27383 2009-06-08  Bruno Haible  <bruno@clisp.org>
27384
27385         Tests for module 'idpriv-drop'.
27386         * modules/idpriv-drop-tests: New file.
27387         * tests/test-idpriv-drop.sh: New file.
27388         * tests/test-idpriv-drop.su.sh: New file.
27389         * tests/test-idpriv-drop.c: New file.
27390
27391         New module 'idpriv-drop'.
27392         * lib/idpriv.h: New file.
27393         * lib-idpriv-drop.c: New file.
27394         * m4/idpriv.m4: New file.
27395         * modules/idpriv-drop: New file.
27396
27397 2009-06-08  Bruno Haible  <bruno@clisp.org>
27398
27399         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
27400         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27401         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27402         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27403         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27404         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27405         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27406
27407 2009-06-08  Eric Blake  <ebb9@byu.net>
27408
27409         test-strstr: use memory fence, when possible
27410         * tests/test-strstr.c (main): Use memory fence, in order to be
27411         more likely to trigger Debian bug 521737.
27412         * modules/strstr-tests (Files): Pull in additional files.
27413
27414         memchr: no longer obsolete, for wider field testing
27415         * modules/memchr (Status, Notice): Delete, this module is no
27416         longer obsolete.
27417         * modules/vasnprintf (Depends-on): Add memchr.
27418
27419 2009-06-07  Jim Meyering  <meyering@redhat.com>
27420
27421         hash: declare some functions with the warn_unused_result attribute
27422         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
27423
27424 2009-06-07  Bruno Haible  <bruno@clisp.org>
27425
27426         * tests/test-alignof.c: Don't test int64_t if it does not exist.
27427         Reported by Eric Blake.
27428
27429 2009-06-06  Eric Blake  <ebb9@byu.net>
27430
27431         test-alignof: fix typo with long double
27432         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
27433         compiler error.
27434
27435 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
27436
27437         Escape non-texinfo { and }s.
27438         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
27439         markup error.
27440
27441 2009-06-04  Jim Meyering  <meyering@redhat.com>
27442
27443         gitlog-to-changelog: don't infloop on an empty commit log
27444         * build-aux/gitlog-to-changelog: Warn about an empty log message.
27445         Reported by Boris Petersen <transacid@centerim.org>.
27446
27447 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
27448
27449         version-etc: extend for packagers
27450         Add three new configure options, intended for packagers:
27451           --with-packager="packager name"
27452           --with-packager-version="packager-specific version"
27453           --with-packager-bug-reports="packager bug reporting"
27454         An example with coreutils:
27455           $ ./configure \
27456             --with-packager=Gentoo \
27457             --with-packager-bug-report=http://bugs.gentoo.org/ \
27458             --with-packager-version="patchset 1.6"
27459           $ ./src/ls --version | head -n2
27460           ls (GNU coreutils) 7.1-dirty
27461           Packaged by Gentoo (patchset 1.6)
27462         Note that the bug reporting info via --help doesn't show up because
27463         coreutils uses its own custom emit_bug_reporting_address() implementation
27464         in src/system.h.  If it didn't, it'd look like:
27465           $ ./src/ls --help | tail -n4
27466           Report bugs to <bug-coreutils@gnu.org>.
27467           Report Gentoo bugs to <http://bugs.gentoo.org/>.
27468           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
27469           General help using GNU software: <http://www.gnu.org/gethelp/>.
27470         * lib/version-etc.c: Print new information, if provided.
27471         * m4/version-etc.m4: New file.
27472         * modules/version-etc (Files): Add m4/version-etc.m4.
27473         (configure.ac): Add gl_VERSION_ETC.
27474
27475 2009-05-31  Bruno Haible  <bruno@clisp.org>
27476
27477         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
27478         and 'int64_t'.
27479         * modules/alignof-tests (Dependencies): Add stdint.
27480         Reported by Eric Blake.
27481
27482 2009-05-31  Bruno Haible  <bruno@clisp.org>
27483
27484         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
27485         restriction due to compiler bugs.
27486         Reported by Eric Blake.
27487
27488 2009-05-31  Simon Josefsson  <simon@josefsson.org>
27489             Bruno Haible  <bruno@clisp.org>
27490
27491         Fix test-alignof failure.
27492         * lib/alignof.h (alignof_slot): New macro.
27493         (alignof_type): New macro, with the same semantics as the previous
27494         'alignof'.
27495         (alignof): Alias to alignof_slot.
27496         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
27497         check that the results are usable as constant expressions.
27498
27499 2009-05-31  Bruno Haible  <bruno@clisp.org>
27500
27501         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
27502         * tests/test-memchr.c (main): Check that memchr does not read past the
27503         first occurrence of the byte.
27504         * tests/test-strstr.c (main): Update comment.
27505         Suggested by Eric Blake.
27506
27507 2009-05-30  Bruno Haible  <bruno@clisp.org>
27508
27509         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
27510         detail how to use dumpbin.
27511         Reported by David Byron <dbyron@dbyron.com>.
27512
27513 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27514
27515         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
27516
27517 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27518
27519         * m4/manywarnings.m4: Add GCC 4.4 warnings.
27520
27521 2009-05-28  Bruno Haible  <bruno@clisp.org>
27522
27523         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
27524         build-aux/ files.
27525
27526 2009-05-28  Simon Josefsson  <simon@josefsson.org>
27527
27528         * gnulib-tool (func_import): Transform license on build-aux/ files too.
27529
27530 2009-05-27  Simon Josefsson  <simon@josefsson.org>
27531
27532         * gnulib-tool (sed_transform_main_lib_file)
27533         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
27534         regexps.
27535
27536 2009-05-26  Simon Josefsson  <simon@josefsson.org>
27537
27538         * tests/test-strstr.c: Add another self-test.
27539         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
27540         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
27541
27542 2009-05-23  Bruno Haible  <bruno@clisp.org>
27543
27544         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
27545         change.
27546
27547 2009-05-21  Bruno Haible  <bruno@clisp.org>
27548
27549         Simplify use of mode_t varargs.
27550         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
27551         uses 'mode_t' or 'int'.
27552         * lib/openat.c (openat): Likewise.
27553         * lib/open-safer.c (open_safer): Likewise.
27554         * m4/mode_t.m4: New file.
27555         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27556         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27557         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27558         * modules/open (Files): Add m4/mode_t.m4.
27559         * modules/openat (Files): Likewise.
27560         * modules/fcntl-safer (Files): Likewise.
27561         Suggested by Eric Blake.
27562
27563 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27564
27565         * doc/glibc-functions/fallocate.texi: New file.
27566         * doc/gnulib.texi: Include it.
27567
27568 2009-05-21  Eric Blake  <ebb9@byu.net>
27569             Bruno Haible  <bruno@clisp.org>
27570
27571         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27572         invocations.
27573         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27574
27575 2009-05-21  Eric Blake  <ebb9@byu.net>
27576             Bruno Haible  <bruno@clisp.org>
27577
27578         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27579         include_next. Fix of 2008-11-20 commit.
27580         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27581         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27582         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27583         NEXT_MATH_H.
27584         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27585         instead of NEXT_MATH_H.
27586
27587 2009-05-21  Bruno Haible  <bruno@clisp.org>
27588
27589         Avoid redefinition warnings for SIZE_MAX.
27590         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27591         Reported by Simon Josefsson.
27592
27593 2009-05-21  Bruno Haible  <bruno@clisp.org>
27594
27595         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27596         AC_CACHE_VAL.
27597
27598 2009-05-20  Bruno Haible  <bruno@clisp.org>
27599
27600         Make zeroptr.h work on mingw.
27601         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27602         mprotect.
27603         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27604         * modules/memchr2-tests (configure.ac): Likewise.
27605         * modules/memcmp-tests (configure.ac): Likewise.
27606         * modules/memmem-tests (configure.ac): Likewise.
27607         * modules/memrchr-tests (configure.ac): Likewise.
27608         Reported by Simon Josefsson.
27609
27610 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27611
27612         * tests/test-glob.c: Include string.h for strcmp prototype.
27613
27614 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27615
27616         * modules/getdelim (Depends-on): Add explicit stdint, although it
27617         was implicitly already pulled in via realloc-posix.
27618         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27619
27620 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27621
27622         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27623         G. Christensen" <tgc@jupiterrise.com>.
27624         * m4/sys_socket_h.m4: Check for sa_family_t.
27625         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27626         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27627         * tests/test-sys_socket.c: Check that sa_family_t works.
27628
27629 2009-05-18  Eric Blake  <ebb9@byu.net>
27630
27631         maint.mk: allow gnulib_dir in VPATH build
27632         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27633
27634 2009-05-15  Jim Meyering  <meyering@redhat.com>
27635
27636         maint.mk: Give gnulib_dir a default definition.
27637         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27638         Thus, most packages no longer need to specify this variable in cfg.mk
27639
27640 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27641
27642         rename.m4: fix typos that would make non-mingw cross-configure fail
27643         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27644
27645 2009-05-13  Eric Blake  <ebb9@byu.net>
27646
27647         mmap-anon: avoid out-of-order autoconf expansion
27648         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27649         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27650         * modules/memchr-tests (Depends-on): Add extensions.
27651         * modules/memchr2-tests (Depends-on): Add extensions.
27652         * modules/memcmp-tests (Depends-on): Add extensions.
27653         * modules/memmem-tests (Depends-on): Add extensions.
27654         * modules/memrchr-tests (Depends-on): Add extensions.
27655
27656 2009-05-13  Bruno Haible  <bruno@clisp.org>
27657
27658         Make some tests ISO C 99 compliant.
27659         * tests/zerosize-ptr.h: New file.
27660         * tests/test-memchr.c: Include zerosize-ptr.h.
27661         (main): Use a zero-size object pointer instead of NULL.
27662         * tests/test-memchr2.c: Include zerosize-ptr.h.
27663         (main): Use a zero-size object pointer instead of NULL.
27664         * tests/test-memcmp.c: Include zerosize-ptr.h.
27665         (main): Use a zero-size object pointer instead of NULL.
27666         * tests/test-memmem.c: Include zerosize-ptr.h.
27667         (main): Use a zero-size object pointer instead of NULL.
27668         * tests/test-memrchr.c: Include zerosize-ptr.h.
27669         (main): Use a zero-size object pointer instead of NULL.
27670         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27671         m4/mmap-anon.m4.
27672         (Depends-on): Add getpagesize.
27673         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27674         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27675         m4/mmap-anon.m4.
27676         (Depends-on): Add getpagesize.
27677         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27678         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27679         m4/mmap-anon.m4.
27680         (Depends-on): Add getpagesize.
27681         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27682         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27683         m4/mmap-anon.m4.
27684         (Depends-on): Add getpagesize.
27685         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27686         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27687         m4/mmap-anon.m4.
27688         (Depends-on): Add getpagesize.
27689         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27690
27691 2009-05-12  Bruno Haible  <bruno@clisp.org>
27692
27693         Tests for module 'alignof'.
27694         * modules/alignof-tests: New file.
27695         * tests/test-alignof.c: New file.
27696
27697 2009-05-12  Bruno Haible  <bruno@clisp.org>
27698
27699         Fix alignof macro.
27700         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27701         vendor compilers that are always correct.
27702
27703 2009-05-12  Bruno Haible  <bruno@clisp.org>
27704
27705         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27706         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27707         not whether its fully works.
27708
27709 2009-05-12  Bruno Haible  <bruno@clisp.org>
27710
27711         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27712
27713 2009-05-12  Jim Meyering  <meyering@redhat.com>
27714
27715         * top/maint.mk: Adjust backslash alignment.
27716
27717 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27718
27719         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27720
27721 2009-05-11  Eric Blake  <ebb9@byu.net>
27722
27723         argp: avoid undefined behavior
27724         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27725         macros.
27726
27727 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27728
27729         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27730         user.name to prevent git commit from complaining.
27731
27732 2009-05-10  Bruno Haible  <bruno@clisp.org>
27733
27734         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27735         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27736         it rewrites every file name only once.
27737         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27738
27739 2009-05-08  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27742         instead of 'max'.
27743
27744 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27745
27746         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27747         sockaddr_storage test.
27748
27749 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27750
27751         * modules/sys_socket (Makefile.am): Substitute
27752         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27753         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27754         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27755         * tests/test-sys_socket.c: Check sockaddr_storage.
27756
27757 2009-05-08  Bruno Haible  <bruno@clisp.org>
27758
27759         New module 'alignof'.
27760         * lib/alignof.h: New file.
27761         * modules/alignof: New file.
27762
27763 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27764             Bruno Haible  <bruno@clisp.org>
27765
27766         Fix test-file-has-acl on FreeBSD.
27767         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27768         mask is implicitly added.
27769         * tests/test-file-has-acl.c: Include <signal.h>.
27770         (main): Terminate the test after 5 seconds.
27771         * modules/acl-tests (configure.ac): Check for alarm function.
27772
27773 2009-05-04  Bruno Haible  <bruno@clisp.org>
27774
27775         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27776         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27777         * modules/errno (configure.ac): Drop AC_REQUIRE.
27778         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27779         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27780
27781 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27782
27783         * modules/glob-tests: New module.
27784         * tests/test-glob.c: Add.
27785
27786 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27787
27788         * modules/fnmatch-tests: New module.
27789         * tests/test-fnmatch.c: Add.
27790
27791 2009-05-04  Eric Blake  <ebb9@byu.net>
27792
27793         maint: make the new no-submodule-changes rule VPATH-safe
27794         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27795
27796 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27797             Bruno Haible  <bruno@clisp.org>
27798
27799         acl: Fix infinite loop on FreeBSD.
27800         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27801         of return value from acl_get_entry.
27802         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27803         Likewise.
27804
27805 2009-05-03  Bruno Haible  <bruno@clisp.org>
27806
27807         * lib/acl-internal.h (acl_entries): Clarify return value.
27808         * lib/acl_entries.c (acl_entries): Likewise.
27809
27810 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27811
27812         Bug fix in acl module.
27813         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27814
27815 2009-05-03  Bruno Haible  <bruno@clisp.org>
27816
27817         Create gperf-generated file in the source dir, not in the build dir.
27818         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27819         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27820         * modules/unicase/locale-language (unicase/locale-languages.h):
27821         Likewise.
27822         * modules/unicase/special-casing (unicase/special-casing-table.h):
27823         Likewise.
27824         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27825         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27826         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27827         Reported by Ralf Wildenhues.
27828
27829 2009-05-03  Bruno Haible  <bruno@clisp.org>
27830
27831         * modules/fnmatch (Description, configure.ac): Taken from
27832         fnmatch-posix.
27833         * modules/fnmatch-posix: Turn into a symbolic reference to the
27834         'fnmatch' module, and deprecate.
27835         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27836
27837 2009-05-03  Bruno Haible  <bruno@clisp.org>
27838
27839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27840         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27841         Reported by Ralf Wildenhues.
27842
27843 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27844
27845         * m4/fnmatch.m4: Fix fnmatch re-define.
27846
27847 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27848
27849         priv-set: new module and tests; adapt write-any-file
27850         * lib/priv-set.c: New file.
27851         * lib/priv-set.h: New file.
27852         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27853         * lib/write-any-file.c: Simplify by using priv-set module.
27854         * m4/priv-set.m4: New file.
27855         * modules/priv-set: New file.
27856         * modules/unlinkdir: Add dependency on priv-set module.
27857         * modules/write-any-file: Likewise.
27858
27859         Tests for module 'priv-set'.
27860         * modules/priv-set-tests: New file.
27861         * tests/test-priv-set.c: New file.
27862
27863 2009-05-03  Jim Meyering  <meyering@redhat.com>
27864             Bruno Haible  <bruno@clisp.org>
27865
27866         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27867         use the converted UTF-8 variant of the name instead.
27868
27869 2009-05-03  Jim Meyering  <meyering@redhat.com>
27870
27871         tests: tighten some getdate tests
27872         * tests/test-getdate.c (main): Tighten tests: require equality,
27873         not just greater than.  Set TZ envvar to UTC0.
27874
27875 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27876
27877         getdate: correctly interpret "next monday" when run on a Monday
27878         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27879         that e.g., "next tues" (when run on a tuesday) results in a date
27880         that is one week in the future, and not today's date.
27881         I.e., add a week when the wday is the same as the current one.
27882         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27883         and earlier by Martin Bernreuther and Jan Minář.
27884         * tests/test-getdate.c (main): Check that "next DAY" is always in
27885         the future and that "last DAY" is always in the past.
27886
27887 2009-05-02  Jim Meyering  <meyering@redhat.com>
27888
27889         build: ensure that a release build fails when a submodule is unclean
27890         * top/maint.mk (no-submodule-changes): New rule.
27891         (alpha beta major): Depend on it.
27892
27893 2009-05-02  Bruno Haible  <bruno@clisp.org>
27894
27895         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27896         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27897         shell variable gl_fnmatch_required to detect which variant is
27898         requested.
27899         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27900         gl_FUNC_FNMATCH_POSIX.
27901         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27902         exclude fnmatch-posix.
27903
27904 2009-05-02  Bruno Haible  <bruno@clisp.org>
27905
27906         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27907         * modules/mbsrtowcs (License): Change to LGPLv2+.
27908         * modules/strnlen1 (License): Likewise.
27909         Reported by Simon Josefsson.
27910
27911 2009-05-02  Bruno Haible  <bruno@clisp.org>
27912
27913         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27914         "cross".
27915         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27916         gnulib-tool was called with option --source-base=lib.
27917
27918 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27919
27920         Use automake *-local hooks without commands, for extensibility.
27921         * modules/localcharset (Makefile.am): Rename install-exec-local
27922         rule to install-exec-localcharset, and make it a prerequisite of
27923         install-exec-local.  Likewise, rename the uninstall-local rule to
27924         uninstall-localcharset, and make it a prerequisite of the former.
27925
27926 2009-05-01  Bruno Haible  <bruno@clisp.org>
27927
27928         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27929         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27930         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27931         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27932         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27933         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27934         m4/locale-zh.m4, m4/codeset.m4.
27935
27936         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27937         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27938         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27939         m4/locale-zh.m4.
27940
27941         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27942         REPLACE_WCRTOMB if mbstate_t must be replaced.
27943         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27944         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27945
27946 2009-05-01  Bruno Haible  <bruno@clisp.org>
27947
27948         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27949         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27950         dngettext, dcngettext, textdomain, bindtextdomain,
27951         bind_textdomain_codeset): Undefine before redefining.
27952
27953 2009-04-30  Bruno Haible  <bruno@clisp.org>
27954
27955         Fix bug introduced on 2009-04-25.
27956         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27957         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27958         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27959         is defined.
27960         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27961         is defined.
27962         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27963         is defined.
27964         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27965
27966 2009-04-28  Bruno Haible  <bruno@clisp.org>
27967
27968         Comment tweaks.
27969         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27970         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27971         * lib/unicase.h (u*_casexfrm): Likewise.
27972         Reported by Paolo Bonzini.
27973
27974 2009-04-28  Bruno Haible  <bruno@clisp.org>
27975
27976         Fix a compilation error.
27977         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27978         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27979         Reported by Jim Meyering.
27980
27981 2009-04-27  Bruno Haible  <bruno@clisp.org>
27982
27983         New module 'libunistring'.
27984         * modules/libunistring: New file.
27985         * m4/libunistring.m4: New file.
27986         * MODULES.html.sh (Unicode string functions): Add it.
27987
27988 2009-04-27  Eric Blake  <ebb9@byu.net>
27989
27990         maint.mk: allow package-specific header to provide <config.h>
27991         * top/maint.mk (sc_require_config_h): New variable.
27992         (sc_require_config_h, sc_require_config_h_first): Use it.
27993
27994 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27995
27996         * top/maint.mk (sc_avoid_if_before_free): Except
27997         useless-if-before-free script.
27998
27999 2009-04-27  Eric Blake  <ebb9@byu.net>
28000
28001         maintainer-makefile: depend on all required helper scripts
28002         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28003         useless-if-before-free.
28004         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28005         version, rather than assuming gnulib checkout is available.
28006         Reported by Simen Josefsson.
28007
28008 2009-04-26  Bruno Haible  <bruno@clisp.org>
28009
28010         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28011         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28012         "../" or "..".
28013
28014 2009-04-26  Bruno Haible  <bruno@clisp.org>
28015
28016         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28017         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28018         AC_LIB_HAVE_LINKFLAGS.
28019
28020 2009-04-26  Bruno Haible  <bruno@clisp.org>
28021
28022         Simplify calling convention of u*_conv_from_encoding.
28023         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28024         u32_conv_from_encoding): Expect a resultbuf argument and return the
28025         result directly as a pointer.
28026         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28027         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28028         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28029         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28030         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28031         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28032         Update.
28033         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28034         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28035         * lib/vasnprintf.c (VASNPRINTF): Update.
28036         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28037         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28038         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28039         * NEWS: Mention the change.
28040
28041 2009-04-26  Bruno Haible  <bruno@clisp.org>
28042
28043         Simplify calling convention of u*_conv_to_encoding.
28044         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28045         u32_conv_to_encoding): Expect a resultbuf argument and return the
28046         result directly as a pointer.
28047         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28048         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28049         freeing scaled_offsets if mem_iconveha failed.
28050         * lib/unicase/u-casexfrm.h (FUNC): Update.
28051         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28052         * lib/vasnprintf.c (VASNPRINTF): Update.
28053         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28054         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28055         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28056         * NEWS: Mention the change.
28057
28058 2009-04-26  Bruno Haible  <bruno@clisp.org>
28059
28060         Avoid test failures on AIX and OSF/1.
28061         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28062         malloc(0).
28063         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28064         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28065         Likewise.
28066         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28067         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28068         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28069         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28070         * doc/posix-functions/malloc.texi: Document the portability problem
28071         related to malloc(0).
28072
28073 2009-04-26  Bruno Haible  <bruno@clisp.org>
28074
28075         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28076         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28077         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28078
28079 2009-04-25  Bruno Haible  <bruno@clisp.org>
28080
28081         Avoid link error when creating a namespace clean library.
28082         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28083         as macro with arguments if already defined as an alias.
28084         * lib/signbitf.c (gl_signbitf): Don't undefine.
28085         * lib/signbitd.c (gl_signbitd): Don't undefine.
28086         * lib/signbitl.c (gl_signbitl): Don't undefine.
28087
28088 2009-04-25  Jim Meyering  <meyering@redhat.com>
28089
28090         vc-list-files: fix another quoting bug
28091         * build-aux/vc-list-files: Avoid sed backslash expansion
28092         of pathological directory names.
28093
28094 2009-04-25  Eric Blake  <ebb9@byu.net>
28095
28096         vc-list-files: fix shell quoting error
28097         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28098         timestamp.
28099
28100 2009-04-25  Jim Meyering  <meyering@redhat.com>
28101
28102         vc-list-files: restore lost functionality with subdir argument
28103         * build-aux/vc-list-files: When given a non-"." sub-directory
28104         argument, substitute the $dir/ prefix back onto each resulting name.
28105         Otherwise, coreutils' root_tests check would fail.
28106
28107 2009-04-24  Eric Blake  <ebb9@byu.net>
28108
28109         vc-list-files: ignore git symlinks
28110         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28111         than ls-files, to ignore git symlinks.
28112
28113         maint.mk: import improvements from m4
28114         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28115         (move_if_change): Delete unused macro.
28116         (news-date-check, vc-diff-check): Support VPATH builds.
28117         (announcement): Likewise.  Split --bootstrap-tools list...
28118         (boostrap-tools): ...into separate list, which can be overridden
28119         in cfg.mk.
28120         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28121         requiring dependency on useless-if-before-free module.
28122         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28123         Support VPATH builds.
28124
28125 2009-04-24  Jim Meyering  <meyering@redhat.com>
28126
28127         maint.mk: remove coreutils-specific rules and variables
28128         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28129         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28130         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28131
28132         maint.mk: remove obsolete rule
28133         * top/maint.mk (rel-check): Remove rule.
28134         (WGET, WGETFLAGS): Remove now-unused variables.
28135
28136 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28137
28138         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28139         consistency.
28140
28141         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28142         '$(PATH_SEPARATOR)' instead of ':'.
28143
28144 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28145
28146         * lib/getopt1.c (main): Use 'const' for static array.
28147
28148 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28149
28150         * top/maint.mk: Sync with coreutils.
28151         * NEWS: Explain incompatibilities.
28152
28153 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28154             Bruno Haible  <bruno@clisp.org>
28155
28156         Fix cross-compilation results.
28157         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28158         statement, as third argument of AC_TRY_RUN.
28159         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28160         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28161         Likewise.
28162         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28163         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28164         Likewise.
28165         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28166         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28167         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28168
28169 2009-04-20  Bruno Haible  <bruno@clisp.org>
28170
28171         Avoid test failure on mingw.
28172         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28173
28174 2009-04-20  Bruno Haible  <bruno@clisp.org>
28175
28176         Avoid compilation error on mingw.
28177         * modules/localename-tests (Depends-on): Add locale.
28178
28179 2009-04-19  Bruno Haible  <bruno@clisp.org>
28180
28181         Support for building a shared library on Windows platforms.
28182         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28183         (main): Test the presence of UNINORM_NFC here.
28184         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28185         (main): Test the presence of UNINORM_NFD here.
28186         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28187         (main): Test the presence of UNINORM_NFKC here.
28188         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28189         (main): Test the presence of UNINORM_NFKD here.
28190
28191 2009-04-19  Bruno Haible  <bruno@clisp.org>
28192
28193         Avoid a compiler warning.
28194         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28195         Change type of variable 'sequence'.
28196
28197 2009-04-19  Bruno Haible  <bruno@clisp.org>
28198
28199         * modules/configmake (Makefile.am): When the contents of configmake.h
28200         does not change, arrange to preserve its modification time.
28201
28202 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28203
28204         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28205         gettext domain.
28206
28207 2009-04-16  Jim Meyering  <meyering@redhat.com>
28208
28209         useless-if-before-free: improve conversion code
28210         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28211         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28212
28213 2009-04-14  Bruno Haible  <bruno@clisp.org>
28214
28215         * modules/fcntl (Depends-on): Add extensions.
28216         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28217
28218 2009-04-12  Ben Pfaff  <blp@gnu.org>
28219
28220         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28221         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28222
28223 2009-03-20  Ben Pfaff  <blp@gnu.org>
28224
28225         Make rename replace existing destinations on Windows.
28226         * m4/rename.m4: Add test for Mingw.
28227         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28228         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28229         * doc/posix-functions/rename.texi: Document.
28230
28231 2009-04-10  Bruno Haible  <bruno@clisp.org>
28232
28233         New include file "iconveh.h".
28234         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28235         * lib/striconveh.h: Include it.
28236         (enum iconv_ilseq_handler): Remove definition.
28237         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28238         striconveh.h.
28239         * lib/striconveha.c: Include striconveh.h.
28240         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28241         * modules/striconveh (Files): Add lib/iconveh.h.
28242         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28243         lib/striconveh.h.
28244
28245 2009-04-10  Bruno Haible  <bruno@clisp.org>
28246
28247         * lib/uniconv.h: Update comment.
28248
28249 2009-04-10  Bruno Haible  <bruno@clisp.org>
28250
28251         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28252         always.
28253         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28254         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28255         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28256         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28257         "unistring-notinline.h", so that the function gets defined always.
28258         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28259         * lib/unistr/u8-uctomb.c: Likewise.
28260         * lib/unistr/u16-mbtouc.c: Likewise.
28261         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28262         * lib/unistr/u16-uctomb.c: Likewise.
28263         * lib/unistr/u32-mbtouc.c: Likewise.
28264         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28265         * lib/unistr/u32-uctomb.c: Likewise.
28266
28267 2009-04-10  Bruno Haible  <bruno@clisp.org>
28268
28269         Mark 'utime' obsolete.
28270         * modules/utime (Status, Notice): New sections.
28271         Suggested by Jim Meyering.
28272
28273         Fix cross-compile guess for utime test.
28274         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28275         autoconf.
28276         * doc/posix-functions/utime.texi: Give more precisions.
28277         Reported by Jan <ipif@ymail.com>.
28278
28279 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28280
28281         filevercmp: correct today's change
28282         * lib/filevercmp.c: Also handle coreutils' test inputs.
28283         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28284
28285         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28286         for reporting it.
28287         * lib/filevercmp.c: Special handle for "", "." and "..".
28288         * tests/test-filevercmp.c: Enlarge the set suite.
28289
28290 2009-04-07  Jim Meyering  <meyering@redhat.com>
28291
28292         useless-if-before-free: show how to remove braced useless free, too
28293         * build-aux/useless-if-before-free: still only in a comment, though.
28294
28295 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28296
28297         maint.mk: import changes to syntax-check macros from coreutils
28298         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28299         Use them in the relevant macros.
28300
28301 2009-04-06  Bruno Haible  <bruno@clisp.org>
28302
28303         Fix unportable use of bit-fields.
28304         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28305         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28306         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28307
28308 2009-04-06  Bruno Haible  <bruno@clisp.org>
28309
28310         Avoid test failures on AIX and OSF/1.
28311         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28312         that malloc(0) = NULL.
28313         * tests/unicase/test-u8-tolower.c (check): Likewise.
28314         * tests/unicase/test-u8-totitle.c (check): Likewise.
28315         * tests/unicase/test-u8-toupper.c (check): Likewise.
28316         * tests/unicase/test-u16-casefold.c (check): Likewise.
28317         * tests/unicase/test-u16-tolower.c (check): Likewise.
28318         * tests/unicase/test-u16-totitle.c (check): Likewise.
28319         * tests/unicase/test-u16-toupper.c (check): Likewise.
28320         * tests/unicase/test-u32-casefold.c (check): Likewise.
28321         * tests/unicase/test-u32-tolower.c (check): Likewise.
28322         * tests/unicase/test-u32-totitle.c (check): Likewise.
28323         * tests/unicase/test-u32-toupper.c (check): Likewise.
28324         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28325         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28326         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28327         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28328         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28329         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28330         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28331         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28332         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28333         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28334         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28335         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28336
28337 2009-04-05  Bruno Haible  <bruno@clisp.org>
28338
28339         Work around an autoconf limitation.
28340         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
28341         comment line if it would be longer than 3 KB.
28342
28343 2009-04-05  Bruno Haible  <bruno@clisp.org>
28344
28345         Avoid test failure with libiconv-1.13.
28346         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
28347         of the expected test results.
28348
28349 2009-04-05  Bruno Haible  <bruno@clisp.org>
28350
28351         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
28352         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
28353         that it should be installed.
28354
28355 2009-04-05  Bruno Haible  <bruno@clisp.org>
28356
28357         * gnulib-tool: New option --copy-file.
28358         (func_usage): Document it.
28359         (func_dest_tmpfilename): Moved out of func_import.
28360         (func_add_file, func_update_file): New functions, extracted from
28361         func_import.
28362         (func_import): Update.
28363
28364 2009-04-05  Karl Berry  <karl@gnu.org>
28365
28366         * README: prominently mention gnulib-tool.
28367         Rearrange sections so getting the code is near the top.
28368
28369 2009-04-05  Bruno Haible  <bruno@clisp.org>
28370
28371         * lib/unicase.h: Mention u*_cmp2.
28372         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28373         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
28374         * lib/unicase/ulc-casecmp.c: Likewise.
28375         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
28376         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
28377         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
28378         unistr/u8-cmp.
28379         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
28380         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
28381         unistr/u16-cmp.
28382         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
28383         unistr/u32-cmp.
28384
28385         * lib/uninorm.h: Mention u*_cmp2.
28386         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28387         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
28388         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
28389         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
28390         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
28391         unistr/u8-cmp.
28392         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
28393         unistr/u16-cmp.
28394         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
28395         unistr/u32-cmp.
28396
28397         New module 'unistr/u32-cmp2'.
28398         * lib/unistr/u32-cmp2.c: New file.
28399         * modules/unistr/u32-cmp2: New file.
28400
28401         New module 'unistr/u16-cmp2'.
28402         * lib/unistr/u16-cmp2.c: New file.
28403         * modules/unistr/u16-cmp2: New file.
28404
28405         New module 'unistr/u8-cmp2'.
28406         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
28407         * lib/unistr/u8-cmp2.c: New file.
28408         * lib/unistr/u-cmp2.h: New file.
28409         * modules/unistr/u8-cmp2: New file.
28410
28411 2009-04-05  Bruno Haible  <bruno@clisp.org>
28412
28413         * lib/unictype.h (uc_property_is_valid): New macro.
28414         * tests/unictype/test-pr_byname.c (main): Use it.
28415
28416         * lib/unistr.h: Doc fixes.
28417         * lib/uniconv.h: Doc fixes.
28418         * lib/unictype.h: Doc fixes.
28419
28420 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28421
28422         Port coreutils 7.2 to Solaris 8.
28423
28424         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
28425         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
28426         for Solaris 8.  This is a bit of a hack, as it means it's the
28427         caller's responsibility to add -lnsl if needed, but most likely it
28428         won't be needed since only getaddrinfo uses this and getaddrinfo
28429         isn't needed on Solaris 8.
28430
28431         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
28432         problem to Solaris 8 encountered with coreutils 7.2, which
28433         resulted in a message "fnmatch.c:292: warning: passing argument 4
28434         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
28435         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
28436
28437 2009-04-03  Simon Josefsson  <simon@josefsson.org>
28438
28439         * m4/ld-version-script.m4: Add FIXME comment.
28440
28441 2009-04-02  Simon Josefsson  <simon@josefsson.org>
28442
28443         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
28444         SOVERSION variable.
28445
28446 2009-04-02  Bruno Haible  <bruno@clisp.org>
28447
28448         * Makefile (info, html, dvi, pdf): Combine the rules.
28449         Suggested by Jim Meyering.
28450
28451 2009-04-01  Bruno Haible  <bruno@clisp.org>
28452
28453         * Makefile (info, html, dvi, pdf): New targets.
28454         Reported by Reuben Thomas <rrt@sc3d.org>.
28455
28456 2009-04-01  Bruno Haible  <bruno@clisp.org>
28457
28458         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
28459         can be put into PATH.
28460         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
28461
28462 2009-04-01  Bruno Haible  <bruno@clisp.org>
28463
28464         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
28465
28466 2009-04-01  Bruno Haible  <bruno@clisp.org>
28467
28468         Rename module 'visibility'.
28469         * modules/lib-symbol-visibility: Renamed from modules/visibility.
28470         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
28471         * doc/gnulib.texi: Update.
28472         * MODULES.html.sh (Misc): Update.
28473         * NEWS: Mention the change.
28474
28475 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28476
28477         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
28478         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
28479         Eric Blake <ebb9@byu.net> for review.
28480         * MODULES.html.sh: Add lib-msvc-compat.
28481         * doc/gnulib.texi: Link to new section.
28482         * m4/ld-output-def.m4: New file.
28483         * doc/ld-output-def.texi: New file.
28484
28485 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28486
28487         Rename ld-version-script to lib-symbol-versions.  Suggested by
28488         Bruno Haible <bruno@clisp.org>.
28489         * modules/ld-version-script: Renamed to lib-symbol-versions.
28490         * doc/ld-version-script.texi: Fix module name.
28491         * MODULES.html.sh: Add lib-symbol-versions.
28492
28493 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28494
28495         * modules/u64-tests: New file.
28496         * tests/test-u64.c: New file.
28497
28498 2009-03-04  Simon Josefsson  <simon@josefsson.org>
28499
28500         * MODULES.html.sh: Mention u64.
28501         * modules/u64: New module.
28502         * modules/crypto/sha512: Depend on u64 module instead of providing
28503         u64.h.
28504
28505 2009-03-27  Eric Blake  <ebb9@byu.net>
28506
28507         test-strerror: make debugging EAI_SYSTEM easier
28508         * modules/getaddrinfo-tests (Depends-on): Add strerror.
28509         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
28510         failure was EAI_SYSTEM.
28511
28512 2009-03-25  Bruno Haible  <bruno@clisp.org>
28513
28514         Fix a problem with --enable-relocatable on Solaris 7.
28515         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
28516         since 2008-02-24.
28517
28518 2009-03-25  Eric Blake  <ebb9@byu.net>
28519
28520         test-sockets: avoid gcc warning
28521         * tests/test-sockets.c (main): Silence compiler warning.
28522
28523 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28524
28525         New modules nproc, pthread, contributed by Glen Lenker.
28526
28527         * MODULES.html.sh: Add pthread, nproc.
28528         * lib/nproc.c: New file.
28529         * lib/nproc.h: New file.
28530         * lib/pthread.in.h: New file.
28531         * m4/pthread.m4: New file.
28532         * modules/nproc: New file.
28533         * modules/pthread: New file.
28534
28535 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28536
28537         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
28538         New variable.
28539
28540 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
28541
28542         filevercmp: handle simple~ and numbered.~3~ backup suffixes
28543         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
28544         * tests/test-filevercmp.c: Add tests for backup suffixes.
28545
28546 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28547
28548         * modules/stdlib (Depends-on): Add stdint, needed when defining
28549         struct random_data on, for example, HP-UX 10.20.  Reported by
28550         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28551
28552 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28553
28554         * lib/readline.c (readline): Call fflush on stdout after printing
28555         prompt.
28556
28557 2009-03-20  Bruno Haible  <bruno@clisp.org>
28558
28559         Remove dependency from 'close' module to -lws2_32 on native Windows.
28560         * lib/close-hook.h: New file.
28561         * lib/close-hook.c: New file.
28562         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28563         w32sock.h.
28564         (_gl_close_fd_maybe_socket): Remove function.
28565         (rpl_close): Invoke execute_all_close_hooks instead of
28566         _gl_close_fd_maybe_socket.
28567         * lib/sockets.c: Include close-hook.h, w32sock.h.
28568         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28569         (close_sockets_hook): New variable.
28570         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28571         (gl_sockets_cleanup): Unregister it.
28572         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28573         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28574         * modules/close-hook: New file.
28575         * modules/close (Files): Remove lib/w32sock.h.
28576         (Depends-on): Add close-hook.
28577         (Link): Remove section.
28578         * modules/sockets (Files): Add lib/w32sock.h.
28579         (Depends-on): Add close-hook.
28580         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28581         invocation.
28582         * NEWS: Mention that LIB_CLOSE is gone.
28583
28584 2009-03-23  Eric Blake  <ebb9@byu.net>
28585
28586         signal-tests: test previous patch
28587         * tests/test-signal.c: New file.
28588         * modules/signal-tests: Likewise.
28589
28590         signal.h: always support 'volatile sig_atomic_t'
28591         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28592         (gl_SIGNAL_H_DEFAULTS): Add a default.
28593         * modules/signal (Makefile.am): Substitute if needed.
28594         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28595         users can blindly add volatile.
28596         * doc/posix-headers/signal.texi (signal.h): Document it.
28597         Reported by Matthew Woehlke.
28598
28599 2009-03-23  Jim Meyering  <meyering@redhat.com>
28600
28601         pathmax: PATH_MAX: use pathconf only when available
28602         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28603         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28604         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28605         This avoids a link failure in a PSP cross-compilation environment
28606         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28607
28608         * lib/vasnprintf.c (divide): Fix typo in comment.
28609
28610 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28611
28612         * gnulib-tool (func_filter_filelist): Fix comment.
28613
28614 2009-03-20  Bruno Haible  <bruno@clisp.org>
28615
28616         Make sockets.h self-contained.
28617         * lib/sockets.c: Include sockets.h first.
28618         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28619
28620 2009-03-19  Eric Blake  <ebb9@byu.net>
28621
28622         doc: mention more functions added in cygwin 1.7.0
28623         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28624         addition.
28625         * doc/posix-functions/log2f.texi: Likewise.
28626
28627 2009-03-19  Jim Meyering  <meyering@redhat.com>
28628
28629         fsusage: avoid syntax error due to statement-before-declaration
28630         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28631         after all declarations.  Reported by Matthew Woehlke in
28632         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28633
28634 2009-03-18  Eric Blake  <ebb9@byu.net>
28635
28636         build-aux/compile: sync from automake
28637         * build-aux/compile: New file, from automake.
28638         * config/srclist.txt: Mention build-aux/compile.
28639
28640 2009-03-17  Bruno Haible  <bruno@clisp.org>
28641
28642         * lib/git-merge-changelog.c: Fix typo in comment.
28643         Reported by Reuben Thomas <rrt@sc3d.org>.
28644
28645 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28646
28647         * m4/regex.m4: update and improve help for
28648         --without-included-regex.
28649
28650 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28651
28652         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28653         failure on missing include files.
28654
28655 2009-03-17  Eric Blake  <ebb9@byu.net>
28656
28657         doc: mention more functions added in cygwin 1.7.0
28658         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28659         addition.
28660         * doc/posix-functions/fwscanf.texi: Likewise.
28661         * doc/posix-functions/swprintf.texi: Likewise.
28662         * doc/posix-functions/swscanf.texi: Likewise.
28663         * doc/posix-functions/vfwprintf.texi: Likewise.
28664         * doc/posix-functions/vfwscanf.texi: Likewise.
28665         * doc/posix-functions/vswprintf.texi: Likewise.
28666         * doc/posix-functions/vswscanf.texi: Likewise.
28667         * doc/posix-functions/vwprintf.texi: Likewise.
28668         * doc/posix-functions/vwscanf.texi: Likewise.
28669         * doc/posix-functions/wcscasecmp.texi: Likewise.
28670         * doc/posix-functions/wcsdup.texi: Likewise.
28671         * doc/posix-functions/wcsftime.texi: Likewise.
28672         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28673         * doc/posix-functions/wprintf.texi: Likewise.
28674         * doc/posix-functions/wscanf.texi: Likewise.
28675         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28676
28677 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28678
28679         maint.mk: really add $(AM_MAKEFLAGS)
28680         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28681         was inadvertently omitted in the last commit.
28682         Spotted by Bruno Haible.
28683
28684         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28685         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28686         $(AM_MAKEFLAGS)' rather than plain `make'.
28687
28688         gnulib-tool: execute $MAKE not make
28689         * gnulib-tool: Default $MAKE to 'make'.
28690         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28691         than make.  Initialize $MAKE in the do-autobuild script.
28692
28693         gnulib-tool: use $MAKE not make in generated files
28694         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28695         make, in generated files.  Initialize $MAKE in the do-autobuild
28696         script.
28697
28698         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28699
28700         GNUmakefile: disable parallelism only for multiple, recursive targets
28701         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28702         additions in the Makefile.
28703         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28704         by Automake.
28705         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28706         are listed on the command line and at least one of them is
28707         listed in $(ALL_RECURSIVE_TARGETS).
28708
28709 2009-03-14  Bruno Haible  <bruno@clisp.org>
28710
28711         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28712         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28713         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28714         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28715         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28716         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28717         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28718         unistr/u8-uctomb.
28719         * modules/unistr/u8-strchr (Depends-on): Likewise.
28720         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28721         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28722         unistr/u16-uctomb.
28723         * modules/unistr/u16-strchr (Depends-on): Likewise.
28724         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28725
28726 2009-03-12  Bruno Haible  <bruno@clisp.org>
28727
28728         Work around select() bug on Interix 3.5.
28729         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28730         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28731         * m4/select.m4: New file.
28732         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28733         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28734         * modules/select (Files): Add m4/select.m4.
28735         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28736         * modules/nanosleep (Depends-on): Add select.
28737         * modules/poll (Depends-on): Likewise.
28738         * doc/posix-functions/select.texi: Mention the Interix bug.
28739         Reported by Markus Duft <mduft@gentoo.org>.
28740
28741         * lib/select.c: Renamed from lib/winsock-select.c.
28742         * modules/select (Files): Add lib/select.c, remove
28743         lib/winsock-select.c.
28744         (configure.ac): Update.
28745
28746 2009-03-12  Jim Meyering  <meyering@redhat.com>
28747
28748         avoid gcc warnings about unused macro definitions
28749         * lib/readtokens.c (STREQ): Remove unused definition.
28750         * lib/xmalloc.c (SIZE_MAX): Likewise.
28751         * lib/openat-die.c (N_): Likewise.
28752         * lib/mountlist.c (SIZE_MAX): Remove definition.
28753         Instead, include <stdint.h>.
28754         * lib/readutmp.c: Likewise.
28755         * modules/readutmp (Depends-on): Add stdint.
28756         * modules/mountlist (Depends-on): Add stdint.
28757         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28758
28759 2009-03-10  Bruno Haible  <bruno@clisp.org>
28760
28761         Tests for module 'mbmemcasecoll'.
28762         * modules/mbmemcasecoll-tests: New file.
28763         * tests/test-mbmemcasecoll1.sh: New file.
28764         * tests/test-mbmemcasecoll2.sh: New file.
28765         * tests/test-mbmemcasecoll3.sh: New file.
28766         * tests/test-mbmemcasecoll.c: New file.
28767
28768         New module 'mbmemcasecoll'.
28769         * lib/mbmemcasecoll.h: New file.
28770         * lib/mbmemcasecoll.c: New file.
28771         * modules/mbmemcasecoll: New file.
28772
28773         * tests/test-mbmemcasecmp.h: New file, extracted from
28774         tests/test-mbmemcasecmp.c.
28775         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28776         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28777         (main): Update.
28778         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28779
28780 2009-03-09  Bruno Haible  <bruno@clisp.org>
28781
28782         Tests for module 'mbmemcasecmp'.
28783         * modules/mbmemcasecmp-tests: New file.
28784         * tests/test-mbmemcasecmp1.sh: New file.
28785         * tests/test-mbmemcasecmp2.sh: New file.
28786         * tests/test-mbmemcasecmp3.sh: New file.
28787         * tests/test-mbmemcasecmp.c: New file.
28788
28789         New module 'mbmemcasecmp'.
28790         * lib/mbmemcasecmp.h: New file.
28791         * lib/mbmemcasecmp.c: New file.
28792         * modules/mbmemcasecmp: New file.
28793
28794 2009-03-09  Bruno Haible  <bruno@clisp.org>
28795
28796         Tests for module 'unicase/ulc-casecoll'.
28797         * modules/unicase/ulc-casecoll-tests: New file.
28798         * tests/unicase/test-ulc-casecoll1.sh: New file.
28799         * tests/unicase/test-ulc-casecoll2.sh: New file.
28800         * tests/unicase/test-ulc-casecoll.c: New file.
28801
28802         New module 'unicase/ulc-casecoll'.
28803         * lib/unicase.h (ulc_casecoll): New declaration.
28804         * lib/unicase/ulc-casecoll.c: New file.
28805         * modules/unicase/ulc-casecoll: New file.
28806
28807         New module 'unicase/ulc-casexfrm'.
28808         * lib/unicase.h (ulc_casexfrm): New declaration.
28809         * lib/unicase/ulc-casexfrm.c: New file.
28810         * modules/unicase/ulc-casexfrm: New file.
28811
28812 2009-03-09  Bruno Haible  <bruno@clisp.org>
28813
28814         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28815         invocations.
28816
28817         * m4/mbscasecmp.m4: Remove file.
28818         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28819         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28820
28821         * m4/mbscasestr.m4: Remove file.
28822         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28823         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28824
28825         * m4/mbschr.m4: Remove file.
28826         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28827         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28828
28829         * m4/mbscspn.m4: Remove file.
28830         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28831         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28832
28833         * m4/mbslen.m4: Remove file.
28834         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28835         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28836
28837         * m4/mbsncasecmp.m4: Remove file.
28838         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28839         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28840
28841         * m4/mbsnlen.m4: Remove file.
28842         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28843         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28844
28845         * m4/mbspbrk.m4: Remove file.
28846         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28847         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28848
28849         * m4/mbspcasecmp.m4: Remove file.
28850         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28851         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28852
28853         * m4/mbsrchr.m4: Remove file.
28854         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28855         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28856
28857         * m4/mbssep.m4: Remove file.
28858         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28859         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28860
28861         * m4/mbsspn.m4: Remove file.
28862         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28863         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28864
28865         * m4/mbsstr.m4: Remove file.
28866         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28867         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28868
28869         * m4/mbstok_r.m4: Remove file.
28870         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28871         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28872
28873         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28874
28875         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28876         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28877
28878         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28879
28880 2009-03-08  Bruno Haible  <bruno@clisp.org>
28881
28882         Tests for module 'unicase/ulc-casecmp'.
28883         * modules/unicase/ulc-casecmp-tests: New file.
28884         * tests/unicase/test-ulc-casecmp1.sh: New file.
28885         * tests/unicase/test-ulc-casecmp2.sh: New file.
28886         * tests/unicase/test-ulc-casecmp.c: New file.
28887
28888         New module 'unicase/ulc-casecmp'.
28889         * lib/unicase.h (ulc_casecmp): New declaration.
28890         * lib/unicase/ulc-casecmp.c: New file.
28891         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28892         'const SRC_UNIT *'.
28893         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28894         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28895         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28896         * modules/unicase/ulc-casecmp: New file.
28897
28898         Tests for module 'unicase/u32-is-cased'.
28899         * modules/unicase/u32-is-cased-tests: New file.
28900         * tests/unicase/test-u32-is-cased.c: New file.
28901
28902         Tests for module 'unicase/u16-is-cased'.
28903         * modules/unicase/u16-is-cased-tests: New file.
28904         * tests/unicase/test-u16-is-cased.c: New file.
28905
28906         Tests for module 'unicase/u8-is-cased'.
28907         * modules/unicase/u8-is-cased-tests: New file.
28908         * tests/unicase/test-u8-is-cased.c: New file.
28909         * tests/unicase/test-is-cased.h: New file.
28910
28911         New module 'unicase/u32-is-cased'.
28912         * lib/unicase/u32-is-cased.c: New file.
28913         * modules/unicase/u32-is-cased: New file.
28914
28915         New module 'unicase/u16-is-cased'.
28916         * lib/unicase/u16-is-cased.c: New file.
28917         * modules/unicase/u16-is-cased: New file.
28918
28919         New module 'unicase/u8-is-cased'.
28920         * lib/unicase/u8-is-cased.c: New file.
28921         * lib/unicase/u-is-cased.h: New file.
28922         * modules/unicase/u8-is-cased: New file.
28923
28924         Tests for module 'unicase/u32-is-casefolded'.
28925         * modules/unicase/u32-is-casefolded-tests: New file.
28926         * tests/unicase/test-u32-is-casefolded.c: New file.
28927
28928         Tests for module 'unicase/u16-is-casefolded'.
28929         * modules/unicase/u16-is-casefolded-tests: New file.
28930         * tests/unicase/test-u16-is-casefolded.c: New file.
28931
28932         Tests for module 'unicase/u8-is-casefolded'.
28933         * modules/unicase/u8-is-casefolded-tests: New file.
28934         * tests/unicase/test-u8-is-casefolded.c: New file.
28935         * tests/unicase/test-is-casefolded.h: New file.
28936
28937         New module 'unicase/u32-is-casefolded'.
28938         * lib/unicase/u32-is-casefolded.c: New file.
28939         * modules/unicase/u32-is-casefolded: New file.
28940
28941         New module 'unicase/u16-is-casefolded'.
28942         * lib/unicase/u16-is-casefolded.c: New file.
28943         * modules/unicase/u16-is-casefolded: New file.
28944
28945         New module 'unicase/u8-is-casefolded'.
28946         * lib/unicase/u8-is-casefolded.c: New file.
28947         * modules/unicase/u8-is-casefolded: New file.
28948
28949         Tests for module 'unicase/u32-is-titlecase'.
28950         * modules/unicase/u32-is-titlecase-tests: New file.
28951         * tests/unicase/test-u32-is-titlecase.c: New file.
28952
28953         Tests for module 'unicase/u16-is-titlecase'.
28954         * modules/unicase/u16-is-titlecase-tests: New file.
28955         * tests/unicase/test-u16-is-titlecase.c: New file.
28956
28957         Tests for module 'unicase/u8-is-titlecase'.
28958         * modules/unicase/u8-is-titlecase-tests: New file.
28959         * tests/unicase/test-u8-is-titlecase.c: New file.
28960         * tests/unicase/test-is-titlecase.h: New file.
28961
28962         New module 'unicase/u32-is-titlecase'.
28963         * lib/unicase/u32-is-titlecase.c: New file.
28964         * modules/unicase/u32-is-titlecase: New file.
28965
28966         New module 'unicase/u16-is-titlecase'.
28967         * lib/unicase/u16-is-titlecase.c: New file.
28968         * modules/unicase/u16-is-titlecase: New file.
28969
28970         New module 'unicase/u8-is-titlecase'.
28971         * lib/unicase/u8-is-titlecase.c: New file.
28972         * modules/unicase/u8-is-titlecase: New file.
28973
28974         Tests for module 'unicase/u32-is-lowercase'.
28975         * modules/unicase/u32-is-lowercase-tests: New file.
28976         * tests/unicase/test-u32-is-lowercase.c: New file.
28977
28978         Tests for module 'unicase/u16-is-lowercase'.
28979         * modules/unicase/u16-is-lowercase-tests: New file.
28980         * tests/unicase/test-u16-is-lowercase.c: New file.
28981
28982         Tests for module 'unicase/u8-is-lowercase'.
28983         * modules/unicase/u8-is-lowercase-tests: New file.
28984         * tests/unicase/test-u8-is-lowercase.c: New file.
28985         * tests/unicase/test-is-lowercase.h: New file.
28986
28987         New module 'unicase/u32-is-lowercase'.
28988         * lib/unicase/u32-is-lowercase.c: New file.
28989         * modules/unicase/u32-is-lowercase: New file.
28990
28991         New module 'unicase/u16-is-lowercase'.
28992         * lib/unicase/u16-is-lowercase.c: New file.
28993         * modules/unicase/u16-is-lowercase: New file.
28994
28995         New module 'unicase/u8-is-lowercase'.
28996         * lib/unicase/u8-is-lowercase.c: New file.
28997         * modules/unicase/u8-is-lowercase: New file.
28998
28999         Tests for module 'unicase/u32-is-uppercase'.
29000         * modules/unicase/u32-is-uppercase-tests: New file.
29001         * tests/unicase/test-u32-is-uppercase.c: New file.
29002
29003         Tests for module 'unicase/u16-is-uppercase'.
29004         * modules/unicase/u16-is-uppercase-tests: New file.
29005         * tests/unicase/test-u16-is-uppercase.c: New file.
29006
29007         Tests for module 'unicase/u8-is-uppercase'.
29008         * modules/unicase/u8-is-uppercase-tests: New file.
29009         * tests/unicase/test-u8-is-uppercase.c: New file.
29010         * tests/unicase/test-is-uppercase.h: New file.
29011
29012         New module 'unicase/u32-is-uppercase'.
29013         * lib/unicase/u32-is-uppercase.c: New file.
29014         * modules/unicase/u32-is-uppercase: New file.
29015
29016         New module 'unicase/u16-is-uppercase'.
29017         * lib/unicase/u16-is-uppercase.c: New file.
29018         * modules/unicase/u16-is-uppercase: New file.
29019
29020         New module 'unicase/u8-is-uppercase'.
29021         * lib/unicase/u8-is-uppercase.c: New file.
29022         * modules/unicase/u8-is-uppercase: New file.
29023
29024         New module 'unicase/u32-is-invariant'.
29025         * lib/unicase/u32-is-invariant.c: New file.
29026         * modules/unicase/u32-is-invariant: New file.
29027
29028         New module 'unicase/u16-is-invariant'.
29029         * lib/unicase/u16-is-invariant.c: New file.
29030         * modules/unicase/u16-is-invariant: New file.
29031
29032         New module 'unicase/u8-is-invariant'.
29033         * lib/unicase/u8-is-invariant.c: New file.
29034         * lib/unicase/invariant.h: New file.
29035         * lib/unicase/u-is-invariant.h: New file.
29036         * modules/unicase/u8-is-invariant: New file.
29037
29038         Tests for module 'unicase/u32-casecoll'.
29039         * modules/unicase/u32-casecoll-tests: New file.
29040         * tests/unicase/test-u32-casecoll.c: New file.
29041
29042         Tests for module 'unicase/u16-casecoll'.
29043         * modules/unicase/u16-casecoll-tests: New file.
29044         * tests/unicase/test-u16-casecoll.c: New file.
29045
29046         Tests for module 'unicase/u8-casecoll'.
29047         * modules/unicase/u8-casecoll-tests: New file.
29048         * tests/unicase/test-u8-casecoll.c: New file.
29049
29050         New module 'unicase/u32-casecoll'.
29051         * lib/unicase/u32-casecoll.c: New file.
29052         * modules/unicase/u32-casecoll: New file.
29053
29054         New module 'unicase/u16-casecoll'.
29055         * lib/unicase/u16-casecoll.c: New file.
29056         * modules/unicase/u16-casecoll: New file.
29057
29058         New module 'unicase/u8-casecoll'.
29059         * lib/unicase/u8-casecoll.c: New file.
29060         * lib/unicase/u-casecoll.h: New file.
29061         * modules/unicase/u8-casecoll: New file.
29062
29063         New module 'unicase/u32-casexfrm'.
29064         * lib/unicase/u32-casexfrm.c: New file.
29065         * modules/unicase/u32-casexfrm: New file.
29066
29067         New module 'unicase/u16-casexfrm'.
29068         * lib/unicase/u16-casexfrm.c: New file.
29069         * modules/unicase/u16-casexfrm: New file.
29070
29071         New module 'unicase/u8-casexfrm'.
29072         * lib/unicase/u8-casexfrm.c: New file.
29073         * lib/unicase/u-casexfrm.h: New file.
29074         * modules/unicase/u8-casexfrm: New file.
29075
29076         Tests for module 'unicase/u32-casecmp'.
29077         * modules/unicase/u32-casecmp-tests: New file.
29078         * tests/unicase/test-u32-casecmp.c: New file.
29079
29080         Tests for module 'unicase/u16-casecmp'.
29081         * modules/unicase/u16-casecmp-tests: New file.
29082         * tests/unicase/test-u16-casecmp.c: New file.
29083
29084         Tests for module 'unicase/u8-casecmp'.
29085         * modules/unicase/u8-casecmp-tests: New file.
29086         * tests/unicase/test-u8-casecmp.c: New file.
29087         * tests/unicase/test-casecmp.h: New file.
29088
29089         New module 'unicase/u32-casecmp'.
29090         * lib/unicase/u32-casecmp.c: New file.
29091         * modules/unicase/u32-casecmp: New file.
29092
29093         New module 'unicase/u16-casecmp'.
29094         * lib/unicase/u16-casecmp.c: New file.
29095         * modules/unicase/u16-casecmp: New file.
29096
29097         New module 'unicase/u8-casecmp'.
29098         * lib/unicase/u8-casecmp.c: New file.
29099         * lib/unicase/u-casecmp.h: New file.
29100         * modules/unicase/u8-casecmp: New file.
29101
29102         Tests for module 'unicase/u32-casefold'.
29103         * modules/unicase/u32-casefold-tests: New file.
29104         * tests/unicase/test-u32-casefold.c: New file.
29105
29106         Tests for module 'unicase/u16-casefold'.
29107         * modules/unicase/u16-casefold-tests: New file.
29108         * tests/unicase/test-u16-casefold.c: New file.
29109
29110         Tests for module 'unicase/u8-casefold'.
29111         * modules/unicase/u8-casefold-tests: New file.
29112         * tests/unicase/test-u8-casefold.c: New file.
29113
29114         New module 'unicase/u32-casefold'.
29115         * lib/unicase/u32-casefold.c: New file.
29116         * modules/unicase/u32-casefold: New file.
29117
29118         New module 'unicase/u16-casefold'.
29119         * lib/unicase/u16-casefold.c: New file.
29120         * modules/unicase/u16-casefold: New file.
29121
29122         New module 'unicase/u8-casefold'.
29123         * lib/unicase/u8-casefold.c: New file.
29124         * lib/unicase/u-casefold.h: New file.
29125         * modules/unicase/u8-casefold: New file.
29126
29127         New module 'unicase/tocasefold'.
29128         * lib/unicase/casefold.h: New file.
29129         * lib/unicase/tocasefold.c: New file.
29130         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29131         * modules/unicase/tocasefold: New file.
29132
29133         Tests for module 'unicase/u32-totitle'.
29134         * modules/unicase/u32-totitle-tests: New file.
29135         * tests/unicase/test-u32-totitle.c: New file.
29136
29137         Tests for module 'unicase/u16-totitle'.
29138         * modules/unicase/u16-totitle-tests: New file.
29139         * tests/unicase/test-u16-totitle.c: New file.
29140
29141         Tests for module 'unicase/u8-totitle'.
29142         * modules/unicase/u8-totitle-tests: New file.
29143         * tests/unicase/test-u8-totitle.c: New file.
29144
29145         New module 'unicase/u32-totitle'.
29146         * lib/unicase/u32-totitle.c: New file.
29147         * modules/unicase/u32-totitle: New file.
29148
29149         New module 'unicase/u16-totitle'.
29150         * lib/unicase/u16-totitle.c: New file.
29151         * modules/unicase/u16-totitle: New file.
29152
29153         New module 'unicase/u8-totitle'.
29154         * lib/unicase/u8-totitle.c: New file.
29155         * lib/unicase/u-totitle.h: New file.
29156         * modules/unicase/u8-totitle: New file.
29157
29158         Tests for module 'unicase/u32-tolower'.
29159         * modules/unicase/u32-tolower-tests: New file.
29160         * tests/unicase/test-u32-tolower.c: New file.
29161
29162         Tests for module 'unicase/u16-tolower'.
29163         * modules/unicase/u16-tolower-tests: New file.
29164         * tests/unicase/test-u16-tolower.c: New file.
29165
29166         Tests for module 'unicase/u8-tolower'.
29167         * modules/unicase/u8-tolower-tests: New file.
29168         * tests/unicase/test-u8-tolower.c: New file.
29169
29170         New module 'unicase/u32-tolower'.
29171         * lib/unicase/u32-tolower.c: New file.
29172         * modules/unicase/u32-tolower: New file.
29173
29174         New module 'unicase/u16-tolower'.
29175         * lib/unicase/u16-tolower.c: New file.
29176         * modules/unicase/u16-tolower: New file.
29177
29178         New module 'unicase/u8-tolower'.
29179         * lib/unicase/u8-tolower.c: New file.
29180         * modules/unicase/u8-tolower: New file.
29181
29182         Tests for module 'unicase/u32-toupper'.
29183         * modules/unicase/u32-toupper-tests: New file.
29184         * tests/unicase/test-u32-toupper.c: New file.
29185
29186         Tests for module 'unicase/u16-toupper'.
29187         * modules/unicase/u16-toupper-tests: New file.
29188         * tests/unicase/test-u16-toupper.c: New file.
29189
29190         Tests for module 'unicase/u8-toupper'.
29191         * modules/unicase/u8-toupper-tests: New file.
29192         * tests/unicase/test-u8-toupper.c: New file.
29193
29194         New module 'unicase/u32-toupper'.
29195         * lib/unicase/u32-toupper.c: New file.
29196         * modules/unicase/u32-toupper: New file.
29197
29198         New module 'unicase/u16-toupper'.
29199         * lib/unicase/u16-toupper.c: New file.
29200         * modules/unicase/u16-toupper: New file.
29201
29202         New module 'unicase/u8-toupper'.
29203         * lib/unicase/u8-toupper.c: New file.
29204         * modules/unicase/u8-toupper: New file.
29205
29206         New module 'unicase/u32-casemap'.
29207         * lib/unicase/u32-casemap.c: New file.
29208         * modules/unicase/u32-casemap: New file.
29209
29210         New module 'unicase/u16-casemap'.
29211         * lib/unicase/u16-casemap.c: New file.
29212         * modules/unicase/u16-casemap: New file.
29213
29214         New module 'unicase/u8-casemap'.
29215         * lib/unicase/unicasemap.h: New file.
29216         * lib/unicase/u8-casemap.c: New file.
29217         * lib/unicase/u-casemap.h: New file.
29218         * modules/unicase/u8-casemap: New file.
29219
29220         New module 'unicase/special-casing'.
29221         * lib/unicase/special-casing.h: New file.
29222         * lib/unicase/special-casing.c: New file.
29223         * lib/unicase/special-casing-table.gperf: New file, generated by
29224         gen-uni-tables.c.
29225         * modules/unicase/special-casing: New file.
29226
29227         Tests for module 'unicase/locale-language'.
29228         * modules/unicase/locale-language-tests: New file.
29229         * tests/unicase/test-locale-language.sh: New file.
29230         * tests/unicase/test-locale-language.c: New file.
29231
29232         New module 'unicase/locale-language'.
29233         * lib/unicase/locale-language.c: New file.
29234         * lib/unicase/locale-languages.gperf: New file.
29235         * modules/unicase/locale-language: New file.
29236
29237         Generate more tables for case conversion and case folding.
29238         * lib/gen-uni-tables.c (SCC_*): New enum items.
29239         (struct special_casing_rule): New type.
29240         (casing_rules, num_casing_rules, allocated_casing_rules): New
29241         variables.
29242         (add_casing_rule, fill_casing_rules): New functions.
29243         (struct casefold_rule): New type.
29244         (casefolding_rules, num_casefolding_rules,
29245         allocated_casefolding_rules): New variables.
29246         (fill_casefolding_rules): New function.
29247         (unicode_casefold): New variable.
29248         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29249         sort_casing_rules, output_casing_rules): New functions.
29250         (main): Accept to more arguments: SpecialCasing.txt and
29251         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29252         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29253         Output mapping for casefolding.
29254
29255         * lib/unicase.h: Include stdbool.h, uninorm.h.
29256         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29257         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29258         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29259         arguments.
29260         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29261         resultp arguments.
29262         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29263         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29264         resultp arguments.
29265         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29266         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29267         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29268         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29269         declarations.
29270         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29271
29272 2009-03-08  Bruno Haible  <bruno@clisp.org>
29273
29274         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29275         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29276         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29277         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29278
29279 2009-03-07  Bruno Haible  <bruno@clisp.org>
29280
29281         Adjust u*_normcmp, u*_normcoll API.
29282         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29283         u16_normcoll, u32_normcoll): Change failure conventions.
29284         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29285         errno and return -1.
29286         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29287
29288 2009-03-07  Bruno Haible  <bruno@clisp.org>
29289
29290         Tests for module 'uninorm/u32-normcoll'.
29291         * modules/uninorm/u32-normcoll-tests: New file.
29292         * tests/uninorm/test-u32-normcoll.c: New file.
29293
29294         Tests for module 'uninorm/u16-normcoll'.
29295         * modules/uninorm/u16-normcoll-tests: New file.
29296         * tests/uninorm/test-u16-normcoll.c: New file.
29297
29298         Tests for module 'uninorm/u8-normcoll'.
29299         * modules/uninorm/u8-normcoll-tests: New file.
29300         * tests/uninorm/test-u8-normcoll.c: New file.
29301
29302 2009-03-07  Bruno Haible  <bruno@clisp.org>
29303
29304         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29305         tests/uninorm/test-u32-normcmp.c.
29306         * tests/uninorm/test-u32-normcmp.c: Include it.
29307         (test_nonascii): New function, extracted from main. Add some more
29308         tests.
29309         (main): Invoke test_ascii and test_nonascii.
29310         * modules/uninorm/u32-normcmp-tests (Files): Add
29311         tests/uninorm/test-u32-normcmp.h.
29312         (Depends-on): Remove uninorm/u32-normcmp.
29313
29314         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29315         tests/uninorm/test-u16-normcmp.c.
29316         * tests/uninorm/test-u16-normcmp.c: Include it.
29317         (test_nonascii): New function, extracted from main. Add some more
29318         tests.
29319         (main): Invoke test_ascii and test_nonascii.
29320         * modules/uninorm/u16-normcmp-tests (Files): Add
29321         tests/uninorm/test-u16-normcmp.h.
29322         (Depends-on): Remove uninorm/u16-normcmp.
29323
29324         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29325         tests/uninorm/test-u8-normcmp.c.
29326         * tests/uninorm/test-u8-normcmp.c: Include it.
29327         (test_nonascii): New function, extracted from main. Add some more
29328         tests.
29329         (main): Invoke test_ascii and test_nonascii.
29330         * modules/uninorm/u8-normcmp-tests (Files): Add
29331         tests/uninorm/test-u8-normcmp.h.
29332         (Depends-on): Remove uninorm/u8-normcmp.
29333
29334 2009-03-07  Bruno Haible  <bruno@clisp.org>
29335
29336         New module 'uninorm/u32-normcoll'.
29337         * lib/uninorm/u32-normcoll.c: New file.
29338         * modules/uninorm/u32-normcoll: New file.
29339
29340         New module 'uninorm/u16-normcoll'.
29341         * lib/uninorm/u16-normcoll.c: New file.
29342         * modules/uninorm/u16-normcoll: New file.
29343
29344         New module 'uninorm/u8-normcoll'.
29345         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
29346         declarations.
29347         * lib/uninorm/u8-normcoll.c: New file.
29348         * lib/uninorm/u-normcoll.h: New file.
29349         * modules/uninorm/u8-normcoll: New file.
29350
29351         New module 'uninorm/u32-normxfrm'.
29352         * lib/uninorm/u32-normxfrm.c: New file.
29353         * modules/uninorm/u32-normxfrm: New file.
29354
29355         New module 'uninorm/u16-normxfrm'.
29356         * lib/uninorm/u16-normxfrm.c: New file.
29357         * modules/uninorm/u16-normxfrm: New file.
29358
29359         New module 'uninorm/u8-normxfrm'.
29360         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
29361         declarations.
29362         * lib/uninorm/u8-normxfrm.c: New file.
29363         * lib/uninorm/u-normxfrm.h: New file.
29364         * modules/uninorm/u8-normxfrm: New file.
29365
29366 2009-03-07  Bruno Haible  <bruno@clisp.org>
29367
29368         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
29369         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
29370         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
29371
29372 2009-03-07  Bruno Haible  <bruno@clisp.org>
29373
29374         New module 'memxfrm'.
29375         * lib/memxfrm.h: New file.
29376         * lib/memxfrm.c: New file.
29377         * modules/memxfrm: New file.
29378
29379 2009-03-07  Bruno Haible  <bruno@clisp.org>
29380
29381         New module 'memcmp2'.
29382         * lib/memcmp2.h: New file.
29383         * lib/memcmp2.c: New file.
29384         * modules/memcmp2: New file.
29385
29386 2009-03-07  Bruno Haible  <bruno@clisp.org>
29387
29388         Tests for module 'uninorm/decomposing-form'.
29389         * modules/uninorm/decomposing-form-tests: New file.
29390         * tests/uninorm/test-decomposing-form.c: New file.
29391
29392         New module 'uninorm/decomposing-form'.
29393         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
29394         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
29395         Add 'decomposing_variant' field.
29396         * lib/uninorm/decomposing-form.c: New file.
29397         * lib/uninorm/nfc.c (uninorm_nfc): Update.
29398         * lib/uninorm/nfd.c (uninorm_nfd): Update.
29399         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
29400         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
29401         * modules/uninorm/decomposing-form: New file.
29402         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
29403         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
29404
29405 2009-03-07  Bruno Haible  <bruno@clisp.org>
29406
29407         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
29408         strings.
29409
29410 2009-03-06  Bruno Haible  <bruno@clisp.org>
29411
29412         Tests for module 'uninorm/u32-normcmp'.
29413         * tests/uninorm/test-u32-normcmp.c: New file.
29414         * modules/uninorm/u32-normcmp-tests: New file.
29415
29416         Tests for module 'uninorm/u16-normcmp'.
29417         * tests/uninorm/test-u16-normcmp.c: New file.
29418         * modules/uninorm/u16-normcmp-tests: New file.
29419
29420         Tests for module 'uninorm/u8-normcmp'.
29421         * tests/uninorm/test-u8-normcmp.c: New file.
29422         * modules/uninorm/u8-normcmp-tests: New file.
29423
29424         New module 'uninorm/u32-normcmp'.
29425         * lib/uninorm/u32-normcmp.c: New file.
29426         * modules/uninorm/u32-normcmp: New file.
29427
29428         New module 'uninorm/u16-normcmp'.
29429         * lib/uninorm/u16-normcmp.c: New file.
29430         * modules/uninorm/u16-normcmp: New file.
29431
29432         New module 'uninorm/u8-normcmp'.
29433         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
29434         declarations.
29435         * lib/uninorm/u8-normcmp.c: New file.
29436         * lib/uninorm/u-normcmp.h: New file.
29437         * modules/uninorm/u8-normcmp: New file.
29438
29439 2009-03-06  Bruno Haible  <bruno@clisp.org>
29440
29441         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
29442         Reported by Eric Blake.
29443
29444 2009-03-06  Eric Blake  <ebb9@byu.net>
29445             Bruno Haible  <bruno@clisp.org>
29446
29447         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
29448         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
29449         condition.
29450         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29451         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
29452         condition.
29453         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29454
29455 2009-03-06  Eric Blake  <ebb9@byu.net>
29456
29457         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
29458         to avoid compiler warnings.
29459         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
29460
29461 2009-03-05  Bruno Haible  <bruno@clisp.org>
29462
29463         * tests/test-ftell.c (main): Disable test beyond end of file on
29464         FreeMiNT.
29465         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29466
29467 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
29468
29469         * lib/filevercmp.c: Move hidden files up in ordering.
29470         * tests/test-filevercmp.c: Add tests for hidden files.
29471
29472 2009-03-04  Bruno Haible  <bruno@clisp.org>
29473
29474         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
29475         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
29476         AM_CFLAGS.
29477         Reported by Simon Josefsson.
29478
29479 2009-03-03  Bruno Haible  <bruno@clisp.org>
29480
29481         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
29482         Reported by Simon Josefsson.
29483
29484         * doc/ld-version-script.texi: Update node reference.
29485
29486 2009-03-03  Bruno Haible  <bruno@clisp.org>
29487
29488         * modules/visibility (License): Change to 'unlimited'.
29489         Suggested by Simon Josefsson.
29490
29491 2009-03-03  Jim Meyering  <meyering@redhat.com>
29492
29493         unlinkdir: cannot_unlink_dir may modify process state
29494         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
29495         it's neither thread-safe nor appropriate for use in a library.
29496
29497 2009-03-03  Eric Blake  <ebb9@byu.net>
29498
29499         test-closein: silence test under Darwin
29500         * tests/test-closein.sh: Ignore stderr from cat, since we don't
29501         care if it dies from EPIPE or EBADF.
29502
29503 2009-03-03  Bruno Haible  <bruno@clisp.org>
29504
29505         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
29506         earlier.
29507         * doc/visibility.texi: Fix @node and @section.
29508
29509 2009-03-03  Simon Josefsson  <simon@josefsson.org>
29510
29511         * doc/gnulib.texi: Link to sections for ld version script and
29512         visibility.
29513         * doc/visibility.texi: Add @node and @section.
29514         * modules/ld-version-script: New module.
29515         * m4/ld-version-script.m4: New file.
29516         * doc/ld-version-script.texi: New file.
29517
29518 2009-03-02  David Lutterkort  <lutter@redhat.com>
29519
29520         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
29521         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29522
29523 2009-03-02  Bruno Haible  <bruno@clisp.org>
29524
29525         * doc/visibility.texi: Mention libtool's -export-symbols option.
29526
29527 2009-03-02  Jim Meyering  <meyering@redhat.com>
29528
29529         announce-gen: new option: --no-print-checksums
29530         * build-aux/announce-gen (usage): Describe it.
29531         (print_checksums): Print a newline here, not in the [*] footnote.
29532         (main): Honor it.
29533
29534 2009-03-01  Bruno Haible  <bruno@clisp.org>
29535
29536         Use socklen_t in the native Windows replacements prototypes.
29537         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
29538         instead of 'int'.
29539         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29540         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29541         * modules/getsockopt (Depends-on): Add socklen.
29542         * modules/setsockopt (Depends-on): Add socklen.
29543
29544 2009-03-01  Bruno Haible  <bruno@clisp.org>
29545
29546         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
29547         least 4.2.
29548
29549 2009-03-01  Eric Blake  <ebb9@byu.net>
29550             Bruno Haible  <bruno@clisp.org>
29551
29552         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29553         error messages.
29554         * lib/wait-process.c (wait_subprocess): Omit error message about
29555         deadly signal sent to the child of termsigp != NULL.
29556
29557 2009-03-01  Eric Blake  <ebb9@byu.net>
29558
29559         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29560
29561 2009-03-01  Bruno Haible  <bruno@clisp.org>
29562
29563         Avoid a gcc warning.
29564         * tests/test-sched.c (b): Make global.
29565         Reported by Eric Blake.
29566
29567 2009-01-19  Martin Lambers  <marlam@marlam.de>
29568
29569         Provide POSIX semantics for socket timeout options on W32.
29570         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29571         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29572         * modules/setsockopt: Depend on sys_time module for struct timeval.
29573         * modules/getsockopt: Depend on sys_time module for struct timeval.
29574
29575 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29576
29577         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29578         __USE_GNU, for consistency with netdb.in.h.
29579         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29580
29581 2009-03-01  Bruno Haible  <bruno@clisp.org>
29582
29583         More support for FreeMiNT.
29584         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29585         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29586
29587 2009-03-01  Bruno Haible  <bruno@clisp.org>
29588
29589         More support for FreeMiNT.
29590         * lib/fpurge.c (fpurge): Correct last commit.
29591         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29592
29593 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29594
29595         Fix unportable awk script in vc-list-files.
29596         * build-aux/vc-list-files: In the replacement awk script, use
29597         substr with a second argument of 1, not zero.
29598         Report by Simon Josefsson.
29599
29600 2009-02-28  Bruno Haible  <bruno@clisp.org>
29601
29602         More support for FreeMiNT.
29603         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29604         to FreeMiNT today.
29605         * lib/fwriting.c (fwriting): Likewise.
29606         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29607
29608 2009-02-28  Bruno Haible  <bruno@clisp.org>
29609
29610         * tests/test-freadseek.c (main): Disable test beyond end of file on
29611         FreeMiNT.
29612         * tests/test-ftello.c (main): Likewise.
29613         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29614
29615 2009-02-28  Bruno Haible  <bruno@clisp.org>
29616
29617         Add tentative support for FreeMiNT.
29618         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29619         * lib/fpurge.c (fpurge): Likewise.
29620         * lib/freadable.c (freadable): Likewise.
29621         * lib/freading.c (freading): Likewise.
29622         * lib/freadptr.c (freadptr): Likewise.
29623         * lib/freadseek.c (freadptrinc): Likewise.
29624         * lib/fseeko.c (rpl_fseeko): Likewise.
29625         * lib/fseterr.c (fseterr): Likewise.
29626         * lib/fwritable.c (fwritable): Likewise.
29627         * lib/fwriting.c (fwriting): Likewise.
29628         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29629         Hourihane.
29630         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29631
29632 2009-02-28  Bruno Haible  <bruno@clisp.org>
29633
29634         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29635         SIGCHLD.
29636         Reported by Jim Meyering.
29637
29638 2009-02-28  Bruno Haible  <bruno@clisp.org>
29639
29640         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29641         Mention the results of these tests on various platforms.
29642         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29643         order.
29644         * doc/posix-functions/printf.texi: Likewise.
29645         * doc/posix-functions/snprintf.texi: Likewise.
29646         * doc/posix-functions/sprintf.texi: Likewise.
29647         * doc/posix-functions/vfprintf.texi: Likewise.
29648         * doc/posix-functions/vprintf.texi: Likewise.
29649         * doc/posix-functions/vsnprintf.texi: Likewise.
29650         * doc/posix-functions/vsprintf.texi: Likewise.
29651         * doc/glibc-functions/obstack_printf.texi: Likewise.
29652         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29653
29654 2009-02-28  Bruno Haible  <bruno@clisp.org>
29655
29656         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29657         Reported by Loïc Minier <lool@dooz.org>.
29658
29659 2009-02-27  Bruno Haible  <bruno@clisp.org>
29660
29661         * gnulib-tool (func_import): Make the sed expression used to create the
29662         sed script for updating the .gitignore file POSIX compliant.
29663         Reported by Eric Blake.
29664
29665 2009-02-27  Bruno Haible  <bruno@clisp.org>
29666
29667         * gnulib-tool (sed): Don't alias as "sed --posix".
29668         Reported by Eric Blake.
29669
29670 2009-02-27  Bruno Haible  <bruno@clisp.org>
29671
29672         Avoid test link errors.
29673         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29674         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29675         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29676         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29678
29679 2009-02-27  Bruno Haible  <bruno@clisp.org>
29680
29681         Avoid spurious "(cached)" in configure output.
29682         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29683         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29684         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29685         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29686         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29687         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29688         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29689         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29690         Reported by Eric Blake.
29691
29692 2009-02-27  Eric Blake  <ebb9@byu.net>
29693
29694         printf: fix regression in previous patch
29695         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29696
29697 2009-02-27  Bruno Haible  <bruno@clisp.org>
29698
29699         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29700         value.
29701         * lib/stdint.in.h: Likewise.
29702         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29703
29704 2009-02-27  Eric Blake  <ebb9@byu.net>
29705
29706         doc: mention more functions added in cygwin 1.7.0
29707         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29708         addition.
29709         * doc/posix-functions/open_wmemstream.texi: Likewise.
29710         * doc/posix-functions/wcsnlen.texi: Likewise.
29711         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29712         * doc/posix-functions/wcstod.texi: Likewise.
29713         * doc/posix-functions/wcstof.texi: Likewise.
29714         * doc/posix-functions/wcstoimax.texi: Likewise.
29715         * doc/posix-functions/wcstok.texi: Likewise.
29716         * doc/posix-functions/wcstoumax.texi: Likewise.
29717
29718         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29719         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29720         * doc/posix-functions/fprintf.texi: Update.
29721         * doc/posix-functions/printf.texi: Update.
29722         * doc/posix-functions/snprintf.texi: Update.
29723         * doc/posix-functions/sprintf.texi: Update.
29724         * doc/posix-functions/vfprintf.texi: Update.
29725         * doc/posix-functions/vprintf.texi: Update.
29726         * doc/posix-functions/vsnprintf.texi: Update.
29727         * doc/posix-functions/vsprintf.texi: Update.
29728         * doc/glibc-functions/obstack_printf.texi: Update.
29729         * doc/glibc-functions/obstack_vprintf.texi: Update.
29730
29731 2009-02-26  Eric Blake  <ebb9@byu.net>
29732
29733         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29734         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29735         compilation bug by using runtime conversion.
29736         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29737         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29738         * modules/ceill-tests (Files): Use nan.h.
29739         * modules/floorl-tests (Files): Likewise.
29740         * modules/frexpl-tests (Files): Likewise.
29741         * modules/isnanl-tests (Files): Likewise.
29742         * modules/ldexpl-tests (Files): Likewise.
29743         * modules/roundl-tests (Files): Likewise.
29744         * modules/truncl-tests (Files): Likewise.
29745         * tests/test-ceill.c (main): Use a working NaN.
29746         * tests/test-floorl.c (main): Likewise.
29747         * tests/test-frexpl.c (main): Likewise.
29748         * tests/test-isnan.c (test_long_double): Likewise.
29749         * tests/test-isnanl.h (main): Likewise.
29750         * tests/test-ldexpl.h (main): Likewise.
29751         * tests/test-roundl.h (main): Likewise.
29752         * tests/test-truncl.h (main): Likewise.
29753         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29754
29755 2009-02-26  Eric Blake  <ebb9@byu.net>
29756             Bruno Haible  <bruno@clisp.org>
29757
29758         Work around a *printf bug with %ls on Solaris.
29759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29760         precision is specified, sprintf stops converting the wide string
29761         argument when the number of bytes that have been produced by this
29762         conversion equals or exceeds the precision.
29763         * doc/posix-functions/fprintf.texi: Update.
29764         * doc/posix-functions/printf.texi: Update.
29765         * doc/posix-functions/snprintf.texi: Update.
29766         * doc/posix-functions/sprintf.texi: Update.
29767         * doc/posix-functions/vfprintf.texi: Update.
29768         * doc/posix-functions/vprintf.texi: Update.
29769         * doc/posix-functions/vsnprintf.texi: Update.
29770         * doc/posix-functions/vsprintf.texi: Update.
29771         * doc/glibc-functions/obstack_printf.texi: Update.
29772         * doc/glibc-functions/obstack_vprintf.texi: Update.
29773
29774 2009-02-26  Eric Blake  <ebb9@byu.net>
29775
29776         stdlib: favor compiler check of random.h
29777         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29778         to avoid an ObjC random.h installed by Swarm.
29779
29780 2009-02-26  Bruno Haible  <bruno@clisp.org>
29781
29782         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29783         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29784         Reported by Gary V. Vaughan <gary@gnu.org>.
29785
29786 2009-02-26  Bruno Haible  <bruno@clisp.org>
29787
29788         Fix *printf behaviour regarding the %ls directive.
29789         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29790         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29791         NEED_PRINTF_DIRECTIVE_LS.
29792         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29793         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29795         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29796         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29797         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29798         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29799         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29801         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29802         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29803         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29804         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29805         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29806         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29807         * doc/posix-functions/fprintf.texi: Update.
29808         * doc/posix-functions/printf.texi: Update.
29809         * doc/posix-functions/snprintf.texi: Update.
29810         * doc/posix-functions/sprintf.texi: Update.
29811         * doc/posix-functions/vfprintf.texi: Update.
29812         * doc/posix-functions/vprintf.texi: Update.
29813         * doc/posix-functions/vsnprintf.texi: Update.
29814         * doc/posix-functions/vsprintf.texi: Update.
29815         * doc/glibc-functions/obstack_printf.texi: Update.
29816         * doc/glibc-functions/obstack_vprintf.texi: Update.
29817         Reported by Eric Blake.
29818
29819 2009-02-25  Bruno Haible  <bruno@clisp.org>
29820
29821         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29822         with known value.
29823         Reported by Gary V. Vaughan <gary@gnu.org>.
29824
29825 2009-02-25  Bruno Haible  <bruno@clisp.org>
29826
29827         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29828         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29829         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29830         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29831         Reported by Gary V. Vaughan <gary@gnu.org>.
29832
29833 2009-02-25  Bruno Haible  <bruno@clisp.org>
29834
29835         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29836         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29837         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29838         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29839         Reported by Gary V. Vaughan <gary@gnu.org>.
29840
29841 2009-02-25  Eric Blake  <ebb9@byu.net>
29842
29843         tests: skip fseek/ftell tests if ungetc is broken
29844         * m4/ungetc.m4: New file.
29845         * modules/fseek-tests: Split test, so ungetc dependency is
29846         separate from rest of test.
29847         * modules/fseeko-tests: Likewise.
29848         * modules/ftell-tests: Likewise.
29849         * modules/ftello-tests: Likewise.
29850         * tests/test-fseek.c (main): Isolate ungetc dependency.
29851         * tests/test-fseeko.c (main): Likewise.
29852         * tests/test-ftell.c (main): Likewise.
29853         * tests/test-ftello.c (main): Likewise.
29854         * tests/test-fseek2.sh: New file.
29855         * tests/test-fseeko2.sh: Likewise.
29856         * tests/test-ftell2.sh: Likewise.
29857         * tests/test-ftello2.sh: Likewise.
29858
29859 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29860
29861         test-getaddrinfo: fix usage of skip return code 77
29862         * tests/test-gettaddrinfo.c: Return skip code 77 only
29863         for first occurance of skip (4x77 is not 77)
29864
29865 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29866
29867         strtod: avoid C99 decl-after-statement
29868         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29869
29870 2009-02-24  Eric Blake  <ebb9@byu.net>
29871
29872         strtod: detect HP-UX 11.31 bug
29873         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29874         Reported by Gary V. Vaughan.
29875
29876 2009-02-23  Bruno Haible  <bruno@clisp.org>
29877
29878         Fix invalid read past end of memory block.
29879         * lib/vasnprintf.c (DCHAR_SET): Define.
29880         (local_wcslen): Define only when needed.
29881         (local_strnlen, local_wcsnlen): New functions.
29882         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29883         directives that involve a conversion ourselves.
29884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29885         wcsnlen, mbrtowc, wcrtomb.
29886         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29887         * tests/test-vasprintf-posix.c (test_function): Likewise.
29888         * tests/test-snprintf-posix.h (test_function): Likewise.
29889         * tests/test-sprintf-posix.h (test_function): Likewise.
29890         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29891
29892 2009-02-22  Bruno Haible  <bruno@clisp.org>
29893
29894         Implement new clarified decomposition of Hangul syllables.
29895         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29896         of type LTV, return only a pairwise decomposition.
29897         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29898         Likewise.
29899         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29900         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29901         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29902
29903 2009-02-22  Bruno Haible  <bruno@clisp.org>
29904
29905         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29906         zero-length results and shrink excess allocated memory.
29907         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29908         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29909         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29910         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29911         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29912         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29913         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29914         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29915         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29916         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29917         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29918         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29919
29920 2009-02-21  Bruno Haible  <bruno@clisp.org>
29921
29922         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29923         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29924         spaces after a period. Put a space between a macro name and its
29925         argument list. Trivial rewordings.
29926         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29927         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29928         (main): Return 0 explicitly.
29929
29930 2009-02-21  Bruno Haible  <bruno@clisp.org>
29931
29932         Tests for module 'uninorm/filter'.
29933         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29934         * modules/uninorm/filter-tests: New file.
29935
29936         New module 'uninorm/filter'.
29937         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29938         uninorm_filter_flush, uninorm_filter_free): New declarations.
29939         * lib/uninorm/uninorm-filter.c: New file.
29940         * modules/uninorm/filter: New file.
29941
29942 2009-02-21  Bruno Haible  <bruno@clisp.org>
29943
29944         Tests for module 'uninorm/nfkc'.
29945         * tests/uninorm/test-nfkc.c: New file.
29946         * tests/uninorm/test-u8-nfkc.c: New file.
29947         * tests/uninorm/test-u16-nfkc.c: New file.
29948         * tests/uninorm/test-u32-nfkc.c: New file.
29949         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29950         * tests/uninorm/test-u32-nfkc-big.c: New file.
29951         * modules/uninorm/nfkc-tests: New file.
29952
29953         New module 'uninorm/nfkc'.
29954         * lib/uninorm/nfkc.c: New file.
29955         * modules/uninorm/nfkc: New file.
29956
29957         Tests for module 'uninorm/nfkd'.
29958         * tests/uninorm/test-nfkd.c: New file.
29959         * tests/uninorm/test-u8-nfkd.c: New file.
29960         * tests/uninorm/test-u16-nfkd.c: New file.
29961         * tests/uninorm/test-u32-nfkd.c: New file.
29962         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29963         * tests/uninorm/test-u32-nfkd-big.c: New file.
29964         * modules/uninorm/nfkd-tests: New file.
29965
29966         New module 'uninorm/nfkd'.
29967         * lib/uninorm/nfkd.c: New file.
29968         * modules/uninorm/nfkd: New file.
29969
29970         Tests for module 'uninorm/nfc'.
29971         * tests/uninorm/test-nfc.c: New file.
29972         * tests/uninorm/test-u8-nfc.c: New file.
29973         * tests/uninorm/test-u16-nfc.c: New file.
29974         * tests/uninorm/test-u32-nfc.c: New file.
29975         * tests/uninorm/test-u32-nfc-big.sh: New file.
29976         * tests/uninorm/test-u32-nfc-big.c: New file.
29977         * modules/uninorm/nfc-tests: New file.
29978
29979         New module 'uninorm/nfc'.
29980         * lib/uninorm/nfc.c: New file.
29981         * modules/uninorm/nfc: New file.
29982
29983         Tests for module 'uninorm/nfd'.
29984         * tests/uninorm/test-nfd.c: New file.
29985         * tests/uninorm/test-u8-nfd.c: New file.
29986         * tests/uninorm/test-u16-nfd.c: New file.
29987         * tests/uninorm/test-u32-nfd.c: New file.
29988         * tests/uninorm/test-u32-nfd-big.sh: New file.
29989         * tests/uninorm/test-u32-nfd-big.c: New file.
29990         * tests/uninorm/test-u32-normalize-big.h: New file.
29991         * tests/uninorm/test-u32-normalize-big.c: New file.
29992         * tests/uninorm/NormalizationTest.txt: New file, created from
29993         Unicode 5.1.0 NormalizationTest.txt.
29994         * modules/uninorm/nfd-tests: New file.
29995
29996         New module 'uninorm/nfd'.
29997         * lib/uninorm/nfd.c: New file.
29998         * modules/uninorm/nfd: New file.
29999
30000         New module 'uninorm/u32-normalize'.
30001         * lib/uninorm/u32-normalize.c: New file.
30002         * modules/uninorm/u32-normalize: New file.
30003
30004         New module 'uninorm/u16-normalize'.
30005         * lib/uninorm/u16-normalize.c: New file.
30006         * modules/uninorm/u16-normalize: New file.
30007
30008         New module 'uninorm/u8-normalize'.
30009         * lib/uninorm/u8-normalize.c: New file.
30010         * lib/uninorm/normalize-internal.h: New file.
30011         * lib/uninorm/u-normalize-internal.h: New file.
30012         * modules/uninorm/u8-normalize: New file.
30013
30014         New module 'uninorm/decompose-internal'.
30015         * lib/uninorm/decompose-internal.c: New file.
30016         * modules/uninorm/decompose-internal: New file.
30017
30018         Tests for module 'uninorm/composition'.
30019         * tests/uninorm/test-composition.c: New file.
30020         * modules/uninorm/composition-tests: New file.
30021
30022         New module 'uninorm/composition'.
30023         * lib/uninorm/composition.c: New file.
30024         * lib/uninorm/composition-table.gperf: New file, generated by
30025         gen-uni-tables.
30026         * modules/uninorm/composition: New file.
30027
30028         Tests for module 'uninorm/compat-decomposition'.
30029         * tests/uninorm/test-compat-decomposition.c: New file.
30030         * modules/uninorm/compat-decomposition-tests: New file.
30031
30032         New module 'uninorm/compat-decomposition'.
30033         * lib/uninorm/decompose-internal.h: New file.
30034         * lib/uninorm/compat-decomposition.c: New file.
30035         * modules/uninorm/compat-decomposition: New file.
30036
30037         Tests for module 'uninorm/canonical-decomposition'.
30038         * tests/uninorm/test-canonical-decomposition.c: New file.
30039         * modules/uninorm/canonical-decomposition-tests: New file.
30040
30041         New module 'uninorm/canonical-decomposition'.
30042         * lib/uninorm/canonical-decomposition.c: New file.
30043         * modules/uninorm/canonical-decomposition: New file.
30044
30045         Tests for module 'uninorm/decomposition'.
30046         * tests/uninorm/test-decomposition.c: New file.
30047         * modules/uninorm/decomposition-tests: New file.
30048
30049         New module 'uninorm/decomposition'.
30050         * lib/uninorm/decomposition.c: New file.
30051         * modules/uninorm/decomposition: New file.
30052
30053         New module 'uninorm/decomposition-table'.
30054         * lib/uninorm/decomposition-table.h: New file.
30055         * lib/uninorm/decomposition-table.c: New file.
30056         * lib/uninorm/decomposition-table1.h: New file, generated by
30057         gen-uni-tables.
30058         * lib/uninorm/decomposition-table2.h: New file, generated by
30059         gen-uni-tables.
30060         * modules/uninorm/decomposition-table: New file.
30061
30062         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30063         (UC_DECOMP_*): New enumeration items.
30064         (get_decomposition): New function.
30065         (struct decomp_table): New type.
30066         (output_decomposition, output_decomposition_tables): New functions.
30067         (unicode_composition_exclusions): New variable.
30068         (fill_composition_exclusions, debug_output_composition_tables): New
30069         functions.
30070         (main): Accept one more argument. Invoke fill_composition_exclusions.
30071         Output decomposition and composition tables.
30072
30073         New module 'uninorm/base'.
30074         * lib/uninorm.h: New file.
30075         * lib/unictype.h: Update comment.
30076         * modules/uninorm/base: New file.
30077
30078 2009-02-21  David Lutterkort  <lutter@redhat.com>
30079
30080         Tests for module 'safe-alloc'.
30081         * tests/test-safe-alloc.c: New file.
30082         * modules/safe-alloc-tests: New file.
30083
30084         New module 'safe-alloc'.
30085         * lib/safe-alloc.h: New file.
30086         * lib/safe-alloc.c: New file.
30087         * m4/safe-alloc.m4: New file.
30088         * modules/safe-alloc: New file.
30089         * doc/safe-alloc.texi: New file.
30090         * doc/gnulib.texi: Include it.
30091         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30092         safe-alloc.
30093
30094 2009-02-18  Bruno Haible  <bruno@clisp.org>
30095
30096         Fix link error on non-glibc systems.
30097         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30098         variable.
30099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30100
30101 2009-02-18  Jim Meyering  <meyering@redhat.com>
30102
30103         fts: avoid used-uninitialized error due to recent change
30104         * lib/fts.c (fts_read): Guard uses of the new member,
30105         parent->fts_n_dirs_remaining, since it's not relevant for
30106         the parent of a directory specified on the command-line.
30107
30108 2009-02-17  James Youngman  <jay@gnu.org>
30109             Bruno Haible  <bruno@clisp.org>
30110
30111         * m4/include_next.m4: Reformulate comment.
30112
30113 2009-02-16  Jim Meyering  <meyering@redhat.com>
30114
30115         fts: add #if guards so that the fts_lgpl module still builds
30116         * lib/fts.c: Guard just-added hash-table-using parts with
30117         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30118         Reported by Simon Josefsson.
30119
30120 2009-02-15  Bruno Haible  <bruno@clisp.org>
30121
30122         * modules/array-mergesort-tests: New file.
30123         * tests/test-array-mergesort.c: New file.
30124
30125         New module 'array-mergesort'.
30126         * modules/array-mergesort: New file.
30127         * lib/array-mergesort.h: New file.
30128
30129 2009-02-15  Bruno Haible  <bruno@clisp.org>
30130
30131         Fix 2009-02-07 commit.
30132         * lib/gen-uni-tables.c (output_predicate, output_category,
30133         output_combclass, output_bidi_category, output_decimal_digit,
30134         output_digit, output_numeric, output_mirror, output_scripts,
30135         output_ident_category, output_simple_mapping): Fix format directives.
30136         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30137
30138 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30139
30140         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30141         fixes are available from IBM.
30142
30143 2009-02-13  Jim Meyering  <meyering@redhat.com>
30144
30145         fts: arrange not to stat non-directories in more cases
30146         This makes GNU find (when it doesn't need to stat each file)
30147         *much* more efficient at traversing reiserfs file systems.
30148         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30149         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30150         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30151         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30152         (leaf_optimization_applies): New function.
30153         (LCO_hash, LCO_compare): New helper functions.
30154         (link_count_optimize_ok): New function.
30155         (fts_stat): Initialize new member (if dir).
30156         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30157         we've just stat'ed a directory.  Skip the stat call when possible.
30158         ---
30159         Note this AFS-related exchange:
30160         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30161         and note find's pioctl call in find/fstype.c.
30162         But that is necessary only if you want to enable the
30163         optimization for AFS, and for now, I don't.
30164
30165         fts: move a function definition "up" (no semantic change)
30166         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30167         "up" to precede upcoming use of a related function.
30168
30169 2009-02-11  Jim Meyering  <meyering@redhat.com>
30170
30171         fts: correct internal computation of nlinks (optimization-related)
30172         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30173         whether the current entry is a directory, so don't test it.
30174
30175 2009-02-10  Bruno Haible  <bruno@clisp.org>
30176
30177         Tests for module 'uniwbrk/ulc-wordbreaks'.
30178         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30179         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30180         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30181
30182         Tests for module 'uniwbrk/u32-wordbreaks'.
30183         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30184         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30185
30186         Tests for module 'uniwbrk/u16-wordbreaks'.
30187         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30188         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30189
30190         Tests for module 'uniwbrk/u8-wordbreaks'.
30191         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30192         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30193
30194 2009-02-10  Bruno Haible  <bruno@clisp.org>
30195
30196         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30197         property.
30198         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30199         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30200         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30201
30202 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30203
30204         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30205         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30206
30207 2009-02-10  Bruno Haible  <bruno@clisp.org>
30208
30209         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30210         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30211         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30212         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30213         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30214         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30215
30216 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30217
30218         * lib/sockets.h (gl_fd_to_handle): New function.
30219
30220         * tests/test-sockets.c: Call gl_fd_to_handle.
30221
30222 2009-02-09  Bruno Haible  <bruno@clisp.org>
30223
30224         * doc/havelib.texi: Document the conventions on bi-arch systems.
30225
30226 2009-02-08  Bruno Haible  <bruno@clisp.org>
30227
30228         Document the AC_LIB_LINKFLAGS macro.
30229         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30230         * doc/gnulib.texi: Include it.
30231
30232 2009-02-08  Bruno Haible  <bruno@clisp.org>
30233
30234         Fix wrong order of sections, compared to TOC.
30235         * doc/gnulib.texi: Include relocatable-maint.texi after the
30236         "Regular expressions" node, not before.
30237
30238 2009-02-08  Bruno Haible  <bruno@clisp.org>
30239
30240         Tests for module 'unicase/totitle'.
30241         * modules/unicase/totitle-tests: New file.
30242
30243         Tests for module 'unicase/tolower'.
30244         * modules/unicase/tolower-tests: New file.
30245
30246         Tests for module 'unicase/toupper'.
30247         * modules/unicase/toupper-tests: New file.
30248         * tests/unicase/test-mapping-part1.h: New file.
30249         * tests/unicase/test-mapping-part2.h: New file.
30250
30251         New module 'unicase/totitle'.
30252         * modules/unicase/totitle: New file.
30253         * lib/unicase/totitle.c: New file.
30254
30255         New module 'unicase/tolower'.
30256         * modules/unicase/tolower: New file.
30257         * lib/unicase/tolower.c: New file.
30258
30259         New module 'unicase/toupper'.
30260         * modules/unicase/toupper: New file.
30261         * lib/unicase/toupper.c: New file.
30262         * lib/unicase/simple-mapping.h: New file.
30263
30264         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30265         (mapping_table): New structure.
30266         (output_simple_mapping): New function.
30267         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30268         * modules/gen-uni-tables (Description): Update.
30269         * lib/unicase/toupper.h: New file, automatically generated by
30270         gen-uni-tables.
30271         * lib/unicase/tolower.h: New file, automatically generated by
30272         gen-uni-tables.
30273         * lib/unicase/totitle.h: New file, automatically generated by
30274         gen-uni-tables.
30275         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30276         gen-uni-tables.
30277         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30278         gen-uni-tables.
30279         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30280         gen-uni-tables.
30281
30282         New module 'unicase/base'.
30283         * modules/unicase/base: New file.
30284         * lib/unicase.h: New file.
30285
30286 2009-02-08  Bruno Haible  <bruno@clisp.org>
30287
30288         New module 'uniwbrk/ulc-wordbreaks'.
30289         * modules/uniwbrk/ulc-wordbreaks: New file.
30290         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30291
30292         New module 'uniwbrk/u32-wordbreaks'.
30293         * modules/uniwbrk/u32-wordbreaks: New file.
30294         * lib/uniwbrk/u32-wordbreaks.c: New file.
30295
30296         New module 'uniwbrk/u16-wordbreaks'.
30297         * modules/uniwbrk/u16-wordbreaks: New file.
30298         * lib/uniwbrk/u16-wordbreaks.c: New file.
30299
30300         New module 'uniwbrk/u8-wordbreaks'.
30301         * modules/uniwbrk/u8-wordbreaks: New file.
30302         * lib/uniwbrk/u8-wordbreaks.c: New file.
30303         * lib/uniwbrk/u-wordbreaks.h: New file.
30304
30305         New module 'uniwbrk/table'.
30306         * modules/uniwbrk/table: New file.
30307         * lib/uniwbrk/wbrktable.h: New file.
30308         * lib/uniwbrk/wbrktable.c: New file.
30309
30310         New module 'uniwbrk/wordbreak-property'.
30311         * modules/uniwbrk/wordbreak-property: New file.
30312         * lib/uniwbrk/wordbreak-property.c: New file.
30313
30314         * lib/gen-uni-tables.c (WBP_*): New enum items.
30315         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30316         (unicode_org_wbp): New variable.
30317         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30318         New functions.
30319         (wbp_table): New structure.
30320         (output_wbp, output_wbrk_tables): New functions.
30321         (main): Accept additional argument. Invoke fill_org_wbp,
30322         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30323         output_wbrk_tables.
30324         * modules/gen-uni-tables (Description): Update.
30325         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30326         gen-uni-tables.
30327
30328         New module 'uniwbrk/base'.
30329         * modules/uniwbrk/base: New file.
30330         * lib/uniwbrk.h: New file.
30331
30332 2009-02-08  Bruno Haible  <bruno@clisp.org>
30333
30334         Update to Unicode 5.1.0.
30335         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30336         U+2185..U+2188.
30337         (is_property_default_ignorable_code_point): Don't include characters
30338         of category Cc or Cs and not-a-characters.
30339         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30340         U+0D79, U+109E, U+109F, U+A60C.
30341         * lib/unictype/bidi_of.h: Regenerated.
30342         * lib/unictype/blocks.h: Regenerated.
30343         * lib/unictype/categ_C.h: Regenerated.
30344         * lib/unictype/categ_Cf.h: Regenerated.
30345         * lib/unictype/categ_Cn.h: Regenerated.
30346         * lib/unictype/categ_L.h: Regenerated.
30347         * lib/unictype/categ_Ll.h: Regenerated.
30348         * lib/unictype/categ_Lm.h: Regenerated.
30349         * lib/unictype/categ_Lo.h: Regenerated.
30350         * lib/unictype/categ_Lu.h: Regenerated.
30351         * lib/unictype/categ_M.h: Regenerated.
30352         * lib/unictype/categ_Mc.h: Regenerated.
30353         * lib/unictype/categ_Me.h: Regenerated.
30354         * lib/unictype/categ_Mn.h: Regenerated.
30355         * lib/unictype/categ_N.h: Regenerated.
30356         * lib/unictype/categ_Nd.h: Regenerated.
30357         * lib/unictype/categ_Nl.h: Regenerated.
30358         * lib/unictype/categ_No.h: Regenerated.
30359         * lib/unictype/categ_P.h: Regenerated.
30360         * lib/unictype/categ_Pd.h: Regenerated.
30361         * lib/unictype/categ_Pe.h: Regenerated.
30362         * lib/unictype/categ_Pf.h: Regenerated.
30363         * lib/unictype/categ_Pi.h: Regenerated.
30364         * lib/unictype/categ_Po.h: Regenerated.
30365         * lib/unictype/categ_Ps.h: Regenerated.
30366         * lib/unictype/categ_S.h: Regenerated.
30367         * lib/unictype/categ_Sk.h: Regenerated.
30368         * lib/unictype/categ_Sm.h: Regenerated.
30369         * lib/unictype/categ_So.h: Regenerated.
30370         * lib/unictype/categ_of.h: Regenerated.
30371         * lib/unictype/combining.h: Regenerated.
30372         * lib/unictype/ctype_alnum.h: Regenerated.
30373         * lib/unictype/ctype_alpha.h: Regenerated.
30374         * lib/unictype/ctype_graph.h: Regenerated.
30375         * lib/unictype/ctype_lower.h: Regenerated.
30376         * lib/unictype/ctype_print.h: Regenerated.
30377         * lib/unictype/ctype_punct.h: Regenerated.
30378         * lib/unictype/ctype_upper.h: Regenerated.
30379         * lib/unictype/decdigit.h: Regenerated.
30380         * lib/unictype/digit.h: Regenerated.
30381         * lib/unictype/mirror.h: Regenerated.
30382         * lib/unictype/numeric.h: Regenerated.
30383         * lib/unictype/pr_alphabetic.h: Regenerated.
30384         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
30385         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
30386         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
30387         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
30388         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
30389         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
30390         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
30391         * lib/unictype/pr_combining.h: Regenerated.
30392         * lib/unictype/pr_dash.h: Regenerated.
30393         * lib/unictype/pr_decimal_digit.h: Regenerated.
30394         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
30395         * lib/unictype/pr_deprecated.h: Regenerated.
30396         * lib/unictype/pr_diacritic.h: Regenerated.
30397         * lib/unictype/pr_extender.h: Regenerated.
30398         * lib/unictype/pr_format_control.h: Regenerated.
30399         * lib/unictype/pr_grapheme_base.h: Regenerated.
30400         * lib/unictype/pr_grapheme_extend.h: Regenerated.
30401         * lib/unictype/pr_grapheme_link.h: Regenerated.
30402         * lib/unictype/pr_id_continue.h: Regenerated.
30403         * lib/unictype/pr_id_start.h: Regenerated.
30404         * lib/unictype/pr_ideographic.h: Regenerated.
30405         * lib/unictype/pr_ignorable_control.h: Regenerated.
30406         * lib/unictype/pr_lowercase.h: Regenerated.
30407         * lib/unictype/pr_math.h: Regenerated.
30408         * lib/unictype/pr_numeric.h: Regenerated.
30409         * lib/unictype/pr_other_alphabetic.h: Regenerated.
30410         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
30411         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
30412         * lib/unictype/pr_other_id_continue.h: Regenerated.
30413         * lib/unictype/pr_other_lowercase.h: Regenerated.
30414         * lib/unictype/pr_other_math.h: Regenerated.
30415         * lib/unictype/pr_punctuation.h: Regenerated.
30416         * lib/unictype/pr_sentence_terminal.h: Regenerated.
30417         * lib/unictype/pr_soft_dotted.h: Regenerated.
30418         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
30419         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
30420         * lib/unictype/pr_unified_ideograph.h: Regenerated.
30421         * lib/unictype/pr_uppercase.h: Regenerated.
30422         * lib/unictype/pr_xid_continue.h: Regenerated.
30423         * lib/unictype/pr_xid_start.h: Regenerated.
30424         * lib/unictype/pr_zero_width.h: Regenerated.
30425         * lib/unictype/scripts.h: Regenerated.
30426         * lib/unictype/scripts_byname.gperf: Regenerated.
30427         * lib/unictype/sy_java_ident.h: Regenerated.
30428         * lib/unilbrk/lbrkprop1.h: Regenerated.
30429         * lib/unilbrk/lbrkprop2.h: Regenerated.
30430         * tests/unictype/test-categ_C.c: Regenerated.
30431         * tests/unictype/test-categ_Cf.c: Regenerated.
30432         * tests/unictype/test-categ_Cn.c: Regenerated.
30433         * tests/unictype/test-categ_L.c: Regenerated.
30434         * tests/unictype/test-categ_Ll.c: Regenerated.
30435         * tests/unictype/test-categ_Lm.c: Regenerated.
30436         * tests/unictype/test-categ_Lo.c: Regenerated.
30437         * tests/unictype/test-categ_Lu.c: Regenerated.
30438         * tests/unictype/test-categ_M.c: Regenerated.
30439         * tests/unictype/test-categ_Mc.c: Regenerated.
30440         * tests/unictype/test-categ_Me.c: Regenerated.
30441         * tests/unictype/test-categ_Mn.c: Regenerated.
30442         * tests/unictype/test-categ_N.c: Regenerated.
30443         * tests/unictype/test-categ_Nd.c: Regenerated.
30444         * tests/unictype/test-categ_Nl.c: Regenerated.
30445         * tests/unictype/test-categ_No.c: Regenerated.
30446         * tests/unictype/test-categ_P.c: Regenerated.
30447         * tests/unictype/test-categ_Pd.c: Regenerated.
30448         * tests/unictype/test-categ_Pe.c: Regenerated.
30449         * tests/unictype/test-categ_Pf.c: Regenerated.
30450         * tests/unictype/test-categ_Pi.c: Regenerated.
30451         * tests/unictype/test-categ_Po.c: Regenerated.
30452         * tests/unictype/test-categ_Ps.c: Regenerated.
30453         * tests/unictype/test-categ_S.c: Regenerated.
30454         * tests/unictype/test-categ_Sk.c: Regenerated.
30455         * tests/unictype/test-categ_Sm.c: Regenerated.
30456         * tests/unictype/test-categ_So.c: Regenerated.
30457         * tests/unictype/test-ctype_alnum.c: Regenerated.
30458         * tests/unictype/test-ctype_alpha.c: Regenerated.
30459         * tests/unictype/test-ctype_graph.c: Regenerated.
30460         * tests/unictype/test-ctype_lower.c: Regenerated.
30461         * tests/unictype/test-ctype_print.c: Regenerated.
30462         * tests/unictype/test-ctype_punct.c: Regenerated.
30463         * tests/unictype/test-ctype_upper.c: Regenerated.
30464         * tests/unictype/test-decdigit.h: Regenerated.
30465         * tests/unictype/test-digit.h: Regenerated.
30466         * tests/unictype/test-numeric.h: Regenerated.
30467         * tests/unictype/test-pr_alphabetic.c: Regenerated.
30468         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
30469         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
30470         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
30471         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
30472         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
30473         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
30474         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
30475         * tests/unictype/test-pr_combining.c: Regenerated.
30476         * tests/unictype/test-pr_dash.c: Regenerated.
30477         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
30478         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
30479         * tests/unictype/test-pr_deprecated.c: Regenerated.
30480         * tests/unictype/test-pr_diacritic.c: Regenerated.
30481         * tests/unictype/test-pr_extender.c: Regenerated.
30482         * tests/unictype/test-pr_format_control.c: Regenerated.
30483         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
30484         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
30485         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
30486         * tests/unictype/test-pr_id_continue.c: Regenerated.
30487         * tests/unictype/test-pr_id_start.c: Regenerated.
30488         * tests/unictype/test-pr_ideographic.c: Regenerated.
30489         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
30490         * tests/unictype/test-pr_lowercase.c: Regenerated.
30491         * tests/unictype/test-pr_math.c: Regenerated.
30492         * tests/unictype/test-pr_numeric.c: Regenerated.
30493         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
30494         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
30495         Regenerated.
30496         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
30497         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
30498         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
30499         * tests/unictype/test-pr_other_math.c: Regenerated.
30500         * tests/unictype/test-pr_punctuation.c: Regenerated.
30501         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
30502         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
30503         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
30504         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
30505         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
30506         * tests/unictype/test-pr_uppercase.c: Regenerated.
30507         * tests/unictype/test-pr_xid_continue.c: Regenerated.
30508         * tests/unictype/test-pr_xid_start.c: Regenerated.
30509         * tests/unictype/test-pr_zero_width.c: Regenerated.
30510
30511         Update to Unicode 5.1.0.
30512         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
30513         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
30514         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
30515         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
30516         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
30517         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
30518         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
30519         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
30520         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
30521         (nonspacing_table_ind): Update.
30522         * tests/uniwidth/test-uc_width2.sh: Update expected result.
30523
30524         Update to Unicode 5.1.0.
30525         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
30526         code transform.
30527         * lib/uniname/uniname.c (unicode_character_name,
30528         unicode_name_character): Add the range 0x1Fxxx to the code transform.
30529         * lib/uniname/uninames.h: Regenerated.
30530         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
30531
30532 2009-02-07  Bruno Haible  <bruno@clisp.org>
30533
30534         Merge gen-ctype and gen-lbrk into a single program.
30535         * lib/gen-uni-tables.c: New file, incorporating
30536         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
30537         Add directory prefixes to the names of the generated files.
30538         * lib/unictype/gen-ctype.c: Remove file.
30539         * lib/unilbrk/gen-lbrk.c: Remove file.
30540         * modules/gen-uni-tables: New file.
30541         * modules/unictype/gen-ctype: Remove file.
30542         * modules/unilbrk/gen-lbrk: Remove file.
30543
30544 2009-02-07  Bruno Haible  <bruno@clisp.org>
30545
30546         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
30547
30548         New module 'unistr/u32-strcoll'.
30549         * modules/unistr/u32-strcoll: New file.
30550         * lib/unistr/u32-strcoll.c: New file.
30551
30552         New module 'unistr/u16-strcoll'.
30553         * modules/unistr/u16-strcoll: New file.
30554         * lib/unistr/u16-strcoll.c: New file.
30555
30556         New module 'unistr/u8-strcoll'.
30557         * modules/unistr/u8-strcoll: New file.
30558         * lib/unistr/u8-strcoll.c: New file.
30559         * lib/unistr/u-strcoll.h: New file.
30560
30561 2009-02-07  Bruno Haible  <bruno@clisp.org>
30562
30563         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30564         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30565         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30566         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30567         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30568         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30569
30570 2009-02-07  Bruno Haible  <bruno@clisp.org>
30571
30572         Make 64-bit clean.
30573         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30574         output_combclass, output_bidi_category, output_decimal_digit,
30575         output_digit, output_numeric, output_mirror, output_scripts,
30576         output_ident_category): Use proper width specifier in format strings.
30577
30578 2009-02-07  Bruno Haible  <bruno@clisp.org>
30579
30580         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30581         failure behaviour.
30582
30583 2009-02-07  Jim Meyering  <meyering@redhat.com>
30584
30585         regex: avoid compilation failure with upcoming gcc-4.4
30586         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30587         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30588         "... error: integer overflow in preprocessor expression".
30589
30590 2009-02-05  Ben Pfaff  <blp@gnu.org>
30591
30592         Fix link errors on Windows when close module is used.
30593         * modules/close: Add $(LIB_CLOSE) to Link section.
30594         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30595         $(LIB_CLOSE) on Windows.
30596
30597 2009-02-05  Jim Meyering  <meyering@redhat.com>
30598
30599         still avoid unused-parameter warnings, but do it cleanly
30600         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30601         (get_fs_usage): Cast to void instead.
30602         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30603         (dev_from_mount_options, read_file_system_list): Cast to void.
30604         Prompted by Bruno Haible.
30605
30606 2009-02-04  Jim Meyering  <meyering@redhat.com>
30607
30608         fsusage.c: correct copyright year
30609         * lib/fsusage.c: Reflect year in which the change is pushed into
30610
30611         avoid misc. warnings
30612         * lib/fsusage.c (UNUSED_PARAM): Define.
30613         (get_fs_usage): Mark parameter "disk" as unused.
30614         * lib/getugroups.c (getgrent): Use "void" in prototype.
30615         * lib/mountlist.c: Mark unused parameters.
30616         (read_file_system_list): Declare a local with "const".
30617         * lib/nanosleep.c (getnow): Declare static.
30618         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30619
30620         dirfd: set errno upon failure
30621         * lib/dirfd.c: Include <errno.h>.
30622         Set errno to ENOTSUP when returning -1.
30623         * modules/dirfd (Depends-on): Add errno.
30624         Suggested by John Kodis <kodis@comcast.net>.
30625
30626 2009-02-01  Bruno Haible  <bruno@clisp.org>
30627
30628         Don't assume sizeof (long) >= sizeof (void *).
30629         * lib/memcmp.c: Include stdint.h.
30630         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30631         srcp2 to 'const byte *'.
30632         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30633         types to uintptr_t.
30634         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30635         * modules/memcmp (Depends-on): Add stdint.
30636         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30637
30638 2009-01-30  Eric Blake  <ebb9@byu.net>
30639
30640         fix more require-before-expand issues
30641         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30642         expand, AC_PROG_AWK.
30643         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30644
30645 2009-01-28  Eric Blake  <ebb9@byu.net>
30646
30647         version-etc: use consistent URL formatting
30648         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30649         Improve formatting.  Use fputs for string without %.
30650
30651 2009-01-28  Jim Meyering  <meyering@redhat.com>
30652
30653         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30654         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30655         "underquoted definition of NAME" from autoconf-2.59.
30656
30657 2009-01-28  Bruno Haible  <bruno@clisp.org>
30658
30659         * doc/gnulib.texi: Add "Obsolete modules" to index.
30660
30661 2009-01-28  Jim Meyering  <meyering@redhat.com>
30662
30663         useless-if-before-free: recognize more variants
30664         * build-aux/useless-if-before-free: Also recognize e.g.,
30665         if (NULL != p) free (p);
30666
30667 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30668
30669         test-getaddrinfo: skip (don't fail) this test when there's no network
30670         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30671         on the presumption that it means you lack network access.
30672
30673 2009-01-26  Jim Meyering  <meyering@redhat.com>
30674
30675         fflush: avoid warnings on modern systems
30676         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30677         pos and result, into scopes where they're used.
30678
30679 2009-01-26  Eric Blake  <ebb9@byu.net>
30680
30681         Silence warning reintroduced by recent extensions patch.
30682         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30683         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30684         autoconf.
30685
30686         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30687         * m4/00gnulib.m4: New file.
30688         * gnulib-tool (func_get_filelist): Always use it.
30689         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30690         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30691
30692 2009-01-25  Bruno Haible  <bruno@clisp.org>
30693
30694         Make test-quotearg work on MacOS X and AIX.
30695         * tests/test-quotearg.sh: New file.
30696         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30697         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30698         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30699         include <libintl.h>.
30700         (fake_locale): Remove variable.
30701         (gettext, dgettext, dcgettext): Remove functions.
30702         (main): Instead of setting a fake locale, set a real locale. Call
30703         textdomain and bindtextdomain.
30704         * modules/quotearg-tests (Files): Add the new files.
30705         (Depends-on): Add gettext, setenv, unsetenv.
30706         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30707         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30708         Augment TESTS_ENVIRONMENT.
30709
30710 2009-01-25  Bruno Haible  <bruno@clisp.org>
30711
30712         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30713         fr_FR.ISO8859-1 locale on MacOS X.
30714         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30715         ja_JP.eucJP locale on MacOS X.
30716         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30717         zh_CN.GB18030 locale on MacOS X.
30718
30719 2009-01-25  Bruno Haible  <bruno@clisp.org>
30720
30721         Avoid link errors on MacOS X 10.3.
30722         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30723         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30724
30725 2009-01-25  Bruno Haible  <bruno@clisp.org>
30726
30727         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30728         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30729         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30730         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30731         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30732         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30733         posix_spawnattr_init, posix_spawnattr_setsigmask,
30734         posix_spawnattr_setflags, posix_spawnattr_destroy.
30735
30736         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30737         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30738         * modules/execute (Files): Remove m4/posix_spawn.m4.
30739         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30740         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30741         posix_spawnattr_init, posix_spawnattr_setsigmask,
30742         posix_spawnattr_setflags, posix_spawnattr_destroy.
30743
30744 2009-01-25  Bruno Haible  <bruno@clisp.org>
30745
30746         * lib/glthread/threadlib.c: Include <stdlib.h>.
30747
30748 2009-01-25  Bruno Haible  <bruno@clisp.org>
30749
30750         * lib/glthread/threadlib.c (dummy): New declaration.
30751
30752 2009-01-25  Bruno Haible  <bruno@clisp.org>
30753
30754         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30755         multibyte characters also for the GB18030 encoding. Don't crash when
30756         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30757
30758 2009-01-25  Bruno Haible  <bruno@clisp.org>
30759
30760         Avoid redefining 'struct random_data' on OSF/1 5.1.
30761         * lib/stdlib.in.h: Include <random.h> if it exists.
30762         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30763         HAVE_RANDOM_H. Include <random.h> when testing whether
30764         'struct random_data' exists.
30765         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30766
30767 2009-01-25  Bruno Haible  <bruno@clisp.org>
30768
30769         Don't install charset.alias on MacOS X >= 10.3.
30770         * lib/localcharset.c (DARWIN7): New macro.
30771         (get_charset_aliases): Hardcode the result for Darwin7.
30772         * modules/localcharset (install-exec-local): Don't install
30773         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30774
30775 2009-01-25  Bruno Haible  <bruno@clisp.org>
30776
30777         Don't install charset.alias on mingw and Cygwin.
30778         * modules/localcharset (install-exec-local): Don't install
30779         charset.alias on mingw and Cygwin, if the file does not yet exist.
30780         The result for these platforms is hardcoded in localcharset.c.
30781
30782 2009-01-25  Bruno Haible  <bruno@clisp.org>
30783
30784         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30785         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30786         before requiring AC_USE_SYSTEM_EXTENSIONS.
30787
30788 2009-01-25  Jim Meyering  <meyering@redhat.com>
30789
30790         c-strtod: avoid warnings
30791         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30792         "assignment discards qualifiers from pointer target type" warnings.
30793
30794 2009-01-24  Bruno Haible  <bruno@clisp.org>
30795
30796         Add support for non-UTF-8 locales on MacOS X.
30797         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30798         canonical encodings. For Darwin 7 and newer, don't map traditional
30799         encodings to UTF-8.
30800         Reported by Vincent Lefevre <vincent@vinc17.org>
30801         at <http://savannah.gnu.org/bugs/?25235>.
30802
30803 2009-01-24  Bruno Haible  <bruno@clisp.org>
30804
30805         * doc/gnulib.texi (Obsolete modules): New section.
30806         Reported by Mike Frysinger <vapier@gentoo.org>.
30807
30808 2009-01-24  Bruno Haible  <bruno@clisp.org>
30809
30810         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30811         (%.dvi): New rule.
30812
30813 2009-01-24  Bruno Haible  <bruno@clisp.org>
30814
30815         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30816         Reported by Eric Blake.
30817
30818 2009-01-24  Bruno Haible  <bruno@clisp.org>
30819
30820         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30821         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30822         Reported by Gary V. Vaughan <gary@gnu.org>.
30823
30824 2009-01-24  Bruno Haible  <bruno@clisp.org>
30825
30826         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30827
30828 2009-01-23  Bruno Haible  <bruno@clisp.org>
30829
30830         Make c-strtod, c-strtold usable in libraries.
30831         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30832         (C_STRTOD): Call strdup instead of xstrdup.
30833         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30834         * modules/c-strtold (Depends-on): Likewise.
30835         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30836         * NEWS: Mention the change.
30837         Reported by Michael Gold <mgold@ncf.ca>.
30838
30839 2009-01-23  Jim Meyering  <meyering@redhat.com>
30840
30841         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30842         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30843         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30844
30845 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30846
30847         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30848         GNU CoreUtils.
30849         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30850         * modules/version-etc (Description): Update.
30851
30852 2009-01-22  Bruno Haible  <bruno@clisp.org>
30853
30854         Cache the C locale object.
30855         * lib/c-strtod.c (c_locale_cache): New variable.
30856         (c_locale): New function.
30857         (C_STRTOD): Use it, and don't call freelocale.
30858         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30859         Suggested by Paolo Bonzini.
30860
30861 2009-01-21  Bruno Haible  <bruno@clisp.org>
30862
30863         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30864         conditions other than overflow.
30865
30866 2009-01-21  Bruno Haible  <bruno@clisp.org>
30867
30868         * lib/c-strtod.c: Include errno.h.
30869         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30870         value from STRTOD_L and STRTOD.
30871
30872 2009-01-21  Bruno Haible  <bruno@clisp.org>
30873         and Jim Meyering  <meyering@redhat.com>
30874
30875         nanosleep: skip configure test (fail it) for apple universal builds
30876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30877         universal builds, assume that nanosleep does not work.
30878         * modules/nanosleep (Depends-on): Add multiarch.
30879
30880         mktime: skip configure test (fail it) for apple universal builds
30881         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30882         universal builds, assume that mktime does not work.
30883         * modules/mktime (Depends-on): Add multiarch.
30884
30885 2009-01-21  Eric Blake  <ebb9@byu.net>
30886
30887         multiarch: avoid expand-before-require warning
30888         * modules/multiarch (configure.ac): Require, rather than expand,
30889         gl_MULTIARCH.
30890         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30891         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30892         enforce that all clients require it.  Partial reversion of
30893         2008-12-29 patch.
30894
30895         error: avoid expand-before-require warning
30896         * modules/errno (configure.ac): Require, rather than expand,
30897         gl_HEADER_ERRNO_H.
30898         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30899         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30900         enforce that all clients require it.
30901
30902         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30903         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30904         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30905         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30906
30907 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30908
30909         Revert:
30910         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30911
30912         regex: do not depend on obsolete modules.
30913         * modules/regex: Remove memcmp and memmove.
30914
30915 2009-01-20  Bruno Haible  <bruno@clisp.org>
30916
30917         Make the 'link' module link on Windows NT 4.
30918         * lib/link.c (_WIN32_WINNT): Don't define.
30919         (CreateHardLinkFuncType): New type.
30920         (CreateHardLinkFunc, initialized): New variables.
30921         (initialize): New function.
30922         (link): Invoke CreateHardLink indirectly through the function pointer.
30923
30924 2009-01-20  Bruno Haible  <bruno@clisp.org>
30925
30926         Fix compilation failure on mingw.
30927         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30928
30929 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30930
30931         * doc/c-strtod.texi: Mention a couple of restrictions.
30932
30933 2009-01-20  Jim Meyering  <meyering@redhat.com>
30934
30935         gettimeofday: move more declarations out of functions
30936         * lib/gettimeofday.c: Move extern declarations of tzset and
30937         gmtime out of containing functions.  Prompted by Bruno Haible.
30938
30939 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30940
30941         regex: do not depend on obsolete modules.
30942         * modules/regex: Remove memcmp and memmove.
30943
30944 2009-01-19  Bruno Haible  <bruno@clisp.org>
30945
30946         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30947         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30948         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30949         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30950         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30951
30952 2009-01-19  Bruno Haible  <bruno@clisp.org>
30953
30954         * tests/test-link.c: Include <errno.h>.
30955         (main): Exit with code 77 when a hard link cannot be created due to
30956         the file system.
30957         * tests/test-link.sh: Skip test when a hard link cannot be created due
30958         to the file system.
30959         Suggested by Eric Blake.
30960
30961 2009-01-19  Martin Lambers  <marlam@marlam.de>
30962
30963         * modules/link-tests: New file.
30964         * tests/test-link.sh: New file.
30965         * tests/test-link.c: New file.
30966
30967 2009-01-19  Eric Blake  <ebb9@byu.net>
30968
30969         doc: mention another function added in cygwin 1.7.0
30970         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30971         Another new function in cygwin 1.7.
30972
30973 2009-01-19  Bruno Haible  <bruno@clisp.org>
30974
30975         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30976         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30977         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30978         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30979         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30980         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30981         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30982         * m4/md4.m4 (gl_MD4): Likewise.
30983         * m4/md5.m4 (gl_MD5): Likewise.
30984         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30985         * m4/sha1.m4 (gl_SHA1): Likewise.
30986         * m4/sha256.m4 (gl_SHA256): Likewise.
30987         * m4/sha512.m4 (gl_SHA512): Likewise.
30988
30989 2009-01-19  Bruno Haible  <bruno@clisp.org>
30990
30991         * modules/uniname/uniname-tests (Depends-on): Add progname.
30992         * tests/uniname/test-uninames.c: Include progname.h.
30993         (main): Call set_program_name.
30994
30995         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30996         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30997         (main): Call set_program_name.
30998
30999         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31000         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31001         (main): Call set_program_name.
31002
31003         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31004         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31005         (main): Call set_program_name.
31006
31007         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31008         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31009         (main): Call set_program_name.
31010
31011         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31012         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31013         (main): Call set_program_name.
31014
31015         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31016         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31017         (main): Call set_program_name.
31018
31019         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31020         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31021         (main): Call set_program_name.
31022
31023         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31024         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31025         (main): Call set_program_name.
31026
31027 2009-01-19  Eric Blake  <ebb9@byu.net>
31028
31029         test-unistd: test previous patch
31030         * tests/test-unistd.c: Test *_FILENO macros.
31031
31032         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31033         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31034         Guarantee a definition.
31035         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31036         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31037         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31038         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31039         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31040         Likewise.
31041         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31042         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31043         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31044         Likewise.
31045         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31046         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31047         (STDERR_FILENO): Likewise.
31048         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31049         (STDERR_FILENO): Likewise.
31050         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31051         (STDERR_FILENO): Likewise.
31052         Reported by Elbert Pol.
31053
31054 2009-01-19  Eric Blake  <ebb9@byu.net>
31055
31056         doc: mention more functions added in cygwin 1.7.0
31057         * doc/posix-functions/abort.texi (abort): Update wording related
31058         to cygwin.
31059         * doc/posix-functions/daylight.texi (daylight): Likewise.
31060         * doc/posix-functions/optarg.texi (optarg): Likewise.
31061         * doc/posix-functions/optarg.texi (opterr): Likewise.
31062         * doc/posix-functions/optarg.texi (optind): Likewise.
31063         * doc/posix-functions/optarg.texi (optopt): Likewise.
31064         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31065         worked in 1.5.x, and was withdrawn in 1.7.
31066         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31067         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31068         cygwin versions.
31069         * doc/posix-functions/perror.texi (perror): Likewise.
31070         * doc/posix-functions/printf.texi (printf): Likewise.
31071         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31072         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31073         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31074         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31075         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31076         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31077         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31078         Likewise.
31079         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31080         Likewise.
31081         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31082         this function.
31083         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31084         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31085         Likewise.
31086         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31087         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31088         * doc/posix-functions/confstr.texi (confstr): Likewise.
31089         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31090         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31091         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31092         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31093         * doc/posix-functions/fputws.texi (fputws): Likewise.
31094         * doc/posix-functions/fwide.texi (fwide): Likewise.
31095         * doc/posix-functions/getwc.texi (getwc): Likewise.
31096         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31097         * doc/posix-functions/putwc.texi (putwc): Likewise.
31098         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31099         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31100         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31101         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31102         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31103         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31104         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31105         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31106         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31107         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31108         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31109
31110 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31111
31112         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31113         * lib/ioctl.c: Include <sys/ioctl.h>.
31114
31115 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31116
31117         * modules/getdate-tests (Depends-on): Add progname.
31118         * tests/test-getdate.c: Use progname module, to avoid link errors
31119         on non-glibc systems.
31120
31121 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31122
31123         * modules/filenamecat-tests (Depends-on): Add progname.
31124         * modules/fstrcmp-tests (Depends-on): Likewise.
31125
31126         * tests/test-filenamecat.c: Use progname module, to avoid link
31127         errors on non-glibc systems.
31128         * tests/test-fstrcmp.c: Likewise.
31129
31130 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31131
31132         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31133         * lib/gettimeofday.c: Move extern declaration out of function.
31134
31135 2009-01-18  Bruno Haible  <bruno@clisp.org>
31136
31137         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31138         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31139         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31140
31141 2009-01-18  Bruno Haible  <bruno@clisp.org>
31142
31143         * lib/strftime.c (MEMPCPY): Remove unused macro.
31144         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31145
31146 2009-01-18  Martin Lambers  <marlam@marlam.de>
31147
31148         New module 'link'.
31149         * lib/unistd.in.h (link): New declaration.
31150         * lib/link.c: New file.
31151         * m4/link.m4: New file.
31152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31153         HAVE_LINK.
31154         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31155         * modules/link: New file.
31156         * doc/posix-functions/link.texi: Mention the new module.
31157
31158 2009-01-18  Bruno Haible  <bruno@clisp.org>
31159
31160         * tests/test-avltree_list.c (main): Call set_program_name.
31161         * tests/test-avltree_oset.c (main): Likewise.
31162         * tests/test-obstack-printf.c: Include progname.h.
31163         (main): Call set_program_name.
31164         * tests/test-quotearg.c: Include progname.h.
31165         (main): Call set_program_name.
31166         * tests/test-xmemdup0.c: Include progname.h.
31167         (main): Call set_program_name.
31168
31169 2009-01-18  Bruno Haible  <bruno@clisp.org>
31170
31171         New module 'alphasort'.
31172         * lib/dirent.in.h (alphasort): New declaration.
31173         * lib/alphasort.c: New file, from glibc with modifications.
31174         * m4/alphasort.m4: New file.
31175         * modules/alphasort: New file.
31176         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31177         HAVE_ALPHASORT.
31178         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31179         HAVE_ALPHASORT.
31180         * doc/posix-functions/alphasort.texi: Mention the new module and the
31181         portability problems.
31182
31183 2009-01-18  Bruno Haible  <bruno@clisp.org>
31184
31185         New module 'scandir'.
31186         * lib/dirent.in.h (scandir): New declaration.
31187         * lib/scandir.c: New file, from glibc with modifications.
31188         * m4/scandir.m4: New file.
31189         * modules/scandir: New file.
31190         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31191         HAVE_SCANDIR.
31192         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31193         HAVE_SCANDIR.
31194         * doc/posix-functions/scandir.texi: Mention the new module and the
31195         portability problems.
31196
31197 2009-01-17  Bruno Haible  <bruno@clisp.org>
31198
31199         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31200         Update documentation.
31201         (func_remove_suffix): Escape all dots in the suffix. Update
31202         documentation.
31203         (func_filter_filelist): Update documentation.
31204         Reported by Ralf Wildenhues.
31205
31206 2009-01-17  Bruno Haible  <bruno@clisp.org>
31207
31208         * modules/dprintf-posix-tests: New file.
31209         * tests/test-dprintf-posix.sh: New file.
31210         * tests/test-dprintf-posix.c: New file.
31211
31212         New modules 'dprintf', 'dprintf-posix'.
31213         * lib/stdio.in.h (dprintf): New declaration.
31214         * lib/dprintf.c: New file.
31215         * m4/dprintf.m4: New file.
31216         * m4/dprintf-posix.m4: New file.
31217         * modules/dprintf: New file.
31218         * modules/dprintf-posix: New file.
31219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31220         HAVE_DPRINTF, REPLACE_DPRINTF.
31221         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31222         HAVE_DPRINTF, REPLACE_DPRINTF.
31223         * doc/posix-functions/dprintf.texi: Mention the new modules.
31224
31225 2009-01-17  Bruno Haible  <bruno@clisp.org>
31226
31227         * modules/vdprintf-posix-tests: New file.
31228         * tests/test-vdprintf-posix.sh: New file.
31229         * tests/test-vdprintf-posix.c: New file.
31230
31231         New modules 'vdprintf', 'vdprintf-posix'.
31232         * lib/stdio.in.h (vdprintf): New declaration.
31233         * lib/vdprintf.c: New file.
31234         * m4/vdprintf.m4: New file.
31235         * m4/vdprintf-posix.m4: New file.
31236         * modules/vdprintf: New file.
31237         * modules/vdprintf-posix: New file.
31238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31239         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31240         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31241         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31242         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31243
31244 2009-01-17  Bruno Haible  <bruno@clisp.org>
31245
31246         Fix replacement of fopen on mingw.
31247         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31248         mingw.
31249
31250 2009-01-17  Bruno Haible  <bruno@clisp.org>
31251
31252         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31253         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31254
31255 2009-01-17  Bruno Haible  <bruno@clisp.org>
31256
31257         Avoid test-fflush2.sh failure on mingw.
31258         * tests/test-fflush2.c: Include binary-io.h.
31259         (main): Put standard input into binary mode.
31260         * modules/fflush-tests (Depends-on): Add binary-io.
31261
31262 2009-01-17  Bruno Haible  <bruno@clisp.org>
31263
31264         * lib/wchar.in.h: In another particular situation, include only the
31265         system's <wchar.h> file.
31266         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31267         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31268         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31269
31270 2009-01-17  Bruno Haible  <bruno@clisp.org>
31271
31272         Support for stripping executables in --enable-relocatable.
31273         * build-aux/install-reloc: Expect one more argument, or an environment
31274         variable RELOC_STRIP_PROG. If set, strip the destination program and
31275         its wrapper.
31276         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31277         RELOC_STRIP_PROG.
31278         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31279         to set RELOCATABLE_STRIP.
31280         * NEWS: Mention the new Makefile requirement.
31281
31282 2009-01-17  Bruno Haible  <bruno@clisp.org>
31283
31284         * build-aux/install-reloc: Remove debugging information left over by
31285         C compiler on MacOS X.
31286
31287 2009-01-17  Bruno Haible  <bruno@clisp.org>
31288
31289         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31290         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31291         _NSGetExecutablePath.
31292
31293 2009-01-16  Jim Meyering  <meyering@redhat.com>
31294
31295         strerror: avoid warnings about discarding "const"
31296         * lib/strerror.c (rpl_strerror): Instead of returning a const
31297         string from each and every "case", use a variable, and add a single
31298         cast after the switch.
31299
31300 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31301
31302         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31303
31304 2009-01-16  Bruno Haible  <bruno@clisp.org>
31305
31306         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31307         array initializer syntax that also works in C++ mode.
31308         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31309
31310 2009-01-16  Jim Meyering  <meyering@redhat.com>
31311
31312         poll: suppress a warning
31313         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31314         to ignore "...unsigned expression < 0 is always false" warnings.
31315
31316 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31317
31318         poll: remove declarations of unused variables
31319         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31320         sockbuf and optlen.
31321
31322 2009-01-15  Bruno Haible  <bruno@clisp.org>
31323
31324         Make fflush-after-ungetc POSIX compliant on BSD systems.
31325         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31326         (clear_ungetc_buffer): Implement also for other systems.
31327         (rpl_fflush): On glibc systems, invoke
31328         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31329         clear_ungetc_buffer after fetching the stream's position, not before.
31330
31331 2009-01-15  Bruno Haible  <bruno@clisp.org>
31332
31333         Make fflush-after-ungetc POSIX compliant on glibc systems.
31334         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31335         after ungetc.
31336         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31337         (rpl_fflush): On glibc systems, simply call the system's fflush
31338         function after clearing the ungetc buffer.
31339         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31340         Instead, lseek only to the end of file, then use the system's fseeko
31341         for the rest. On glibc systems, reset the EOF indicator bit.
31342
31343 2009-01-15  Jim Meyering  <meyering@redhat.com>
31344
31345         openmp.m4: revert quote-adding change, for portability to older autoconf
31346         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
31347         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
31348         Simon Josefsson noticed the problem when using autoconf-2.61.
31349
31350 2009-01-15  Bruno Haible  <bruno@clisp.org>
31351
31352         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
31353         * tests/test-fflush2.c (ASSERT): Always fail.
31354         (main): Add two tests for fflush() after ungetc(), taking into account
31355         the Austin Group's clarification.
31356         Suggested by Eric Blake.
31357
31358 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
31359
31360         mktime.m4: remove K&R-style function prototypes
31361         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
31362         for the Sun C++ compiler.
31363
31364 2009-01-14  Bruno Haible  <bruno@clisp.org>
31365
31366         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
31367         while including <wchar.h>.
31368         * lib/wchar.in.h: In two particular situations on HP-UX, include only
31369         the system's <wchar.h> file.
31370         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31371
31372 2009-01-14  Bruno Haible  <bruno@clisp.org>
31373
31374         * m4/csharp.m4: Don't mention gettext on the serial number line.
31375         * m4/csharpexec.m4: Likewise.
31376         * m4/eaccess.m4: Likewise.
31377         * m4/javaexec.m4: Likewise.
31378         * m4/sig_atomic_t.m4: Likewise.
31379         * m4/tmpdir.m4: Likewise.
31380         * m4/intldir.m4: Bump gettext version.
31381         * m4/lib-ld.m4: Likewise.
31382
31383 2009-01-14  Bruno Haible  <bruno@clisp.org>
31384
31385         * lib/progname.c (set_program_name): Add more comments.
31386         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31387
31388 2009-01-14  Simon Josefsson  <simon@josefsson.org>
31389
31390         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
31391         were sys/stat.h does not define it.
31392
31393 2009-01-14  Jim Meyering  <meyering@redhat.com>
31394
31395         many *.m4 files: improve m4 quoting
31396         99% of this change was performed by running the following commands:
31397         git ls-files | grep '\.m4$' | xargs perl -pi \
31398           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
31399           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31400           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31401           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
31402         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
31403         The remainder were to add Copyright dates, increment serial numbers,
31404         undo some changes in comments, exclude m4/intl.m4, and add quotes
31405         around the "1" in ",1" where the unusual spacing prohibited the
31406         above regexps from doing the job.  For more details, see
31407         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
31408         * m4/acl.m4: Modified.
31409         * m4/afs.m4: Likewise.
31410         * m4/alloca.m4: Likewise.
31411         * m4/argp.m4: Likewise.
31412         * m4/argz.m4: Likewise.
31413         * m4/atexit.m4: Likewise.
31414         * m4/bison-i18n.m4: Likewise.
31415         * m4/bison.m4: Likewise.
31416         * m4/byteswap.m4: Likewise.
31417         * m4/c-stack.m4: Likewise.
31418         * m4/c-strtod.m4: Likewise.
31419         * m4/calloc.m4: Likewise.
31420         * m4/canonicalize-lgpl.m4: Likewise.
31421         * m4/chown.m4: Likewise.
31422         * m4/clock_time.m4: Likewise.
31423         * m4/codeset.m4: Likewise.
31424         * m4/copy-file.m4: Likewise.
31425         * m4/csharp.m4: Likewise.
31426         * m4/csharpcomp.m4: Likewise.
31427         * m4/csharpexec.m4: Likewise.
31428         * m4/d-ino.m4: Likewise.
31429         * m4/d-type.m4: Likewise.
31430         * m4/dirfd.m4: Likewise.
31431         * m4/double-slash-root.m4: Likewise.
31432         * m4/eaccess.m4: Likewise.
31433         * m4/eealloc.m4: Likewise.
31434         * m4/environ.m4: Likewise.
31435         * m4/errno_h.m4: Likewise.
31436         * m4/euidaccess.m4: Likewise.
31437         * m4/execute.m4: Likewise.
31438         * m4/fatal-signal.m4: Likewise.
31439         * m4/fchdir.m4: Likewise.
31440         * m4/fcntl_h.m4: Likewise.
31441         * m4/fileblocks.m4: Likewise.
31442         * m4/filenamecat.m4: Likewise.
31443         * m4/findprog.m4: Likewise.
31444         * m4/flexmember.m4: Likewise.
31445         * m4/fnmatch.m4: Likewise.
31446         * m4/fopen.m4: Likewise.
31447         * m4/fpending.m4: Likewise.
31448         * m4/fprintf-posix.m4: Likewise.
31449         * m4/free.m4: Likewise.
31450         * m4/frexp.m4: Likewise.
31451         * m4/frexpl.m4: Likewise.
31452         * m4/fsusage.m4: Likewise.
31453         * m4/ftruncate.m4: Likewise.
31454         * m4/gc-camellia.m4: Likewise.
31455         * m4/gc-random.m4: Likewise.
31456         * m4/gc.m4: Likewise.
31457         * m4/getaddrinfo.m4: Likewise.
31458         * m4/getcwd-abort-bug.m4: Likewise.
31459         * m4/getcwd-path-max.m4: Likewise.
31460         * m4/getdate.m4: Likewise.
31461         * m4/getdomainname.m4: Likewise.
31462         * m4/getgroups.m4: Likewise.
31463         * m4/gethostname.m4: Likewise.
31464         * m4/gethrxtime.m4: Likewise.
31465         * m4/getline.m4: Likewise.
31466         * m4/getloadavg.m4: Likewise.
31467         * m4/getndelim2.m4: Likewise.
31468         * m4/getpass.m4: Likewise.
31469         * m4/gettext.m4: Likewise.
31470         * m4/gettime.m4: Likewise.
31471         * m4/gettimeofday.m4: Likewise.
31472         * m4/gnulib-common.m4: Likewise.
31473         * m4/group-member.m4: Likewise.
31474         * m4/host-os.m4: Likewise.
31475         * m4/iconv.m4: Likewise.
31476         * m4/iconv_open.m4: Likewise.
31477         * m4/inet_ntop.m4: Likewise.
31478         * m4/inet_pton.m4: Likewise.
31479         * m4/inline.m4: Likewise.
31480         * m4/intldir.m4: Likewise.
31481         * m4/intlmacosx.m4: Likewise.
31482         * m4/intmax.m4: Likewise.
31483         * m4/intmax_t.m4: Likewise.
31484         * m4/inttypes.m4: Likewise.
31485         * m4/inttypes_h.m4: Likewise.
31486         * m4/inttypes-pri.m4: Likewise.
31487         * m4/isapipe.m4: Likewise.
31488         * m4/isnand.m4: Likewise.
31489         * m4/isnanf.m4: Likewise.
31490         * m4/isnanl.m4: Likewise.
31491         * m4/javacomp.m4: Likewise.
31492         * m4/javaexec.m4: Likewise.
31493         * m4/jm-winsz1.m4: Likewise.
31494         * m4/jm-winsz2.m4: Likewise.
31495         * m4/lchown.m4: Likewise.
31496         * m4/lcmessage.m4: Likewise.
31497         * m4/ldexpl.m4: Likewise.
31498         * m4/lib-ld.m4: Likewise.
31499         * m4/lib-link.m4: Likewise.
31500         * m4/libsigsegv.m4: Likewise.
31501         * m4/link-follow.m4: Likewise.
31502         * m4/localcharset.m4: Likewise.
31503         * m4/locale-fr.m4: Likewise.
31504         * m4/locale-ja.m4: Likewise.
31505         * m4/locale-tr.m4: Likewise.
31506         * m4/locale-zh.m4: Likewise.
31507         * m4/lock.m4: Likewise.
31508         * m4/longlong.m4: Likewise.
31509         * m4/ls-mntd-fs.m4: Likewise.
31510         * m4/lstat.m4: Likewise.
31511         * m4/malloc.m4: Likewise.
31512         * m4/mathl.m4: Likewise.
31513         * m4/mbrtowc.m4: Likewise.
31514         * m4/mbstate_t.m4: Likewise.
31515         * m4/mbswidth.m4: Likewise.
31516         * m4/memchr.m4: Likewise.
31517         * m4/memcmp.m4: Likewise.
31518         * m4/memcpy.m4: Likewise.
31519         * m4/memmem.m4: Likewise.
31520         * m4/memmove.m4: Likewise.
31521         * m4/mempcpy.m4: Likewise.
31522         * m4/memrchr.m4: Likewise.
31523         * m4/memset.m4: Likewise.
31524         * m4/minmax.m4: Likewise.
31525         * m4/mkdir-slash.m4: Likewise.
31526         * m4/mkdtemp.m4: Likewise.
31527         * m4/mktime.m4: Likewise.
31528         * m4/mmap-anon.m4: Likewise.
31529         * m4/mountlist.m4: Likewise.
31530         * m4/nanosleep.m4: Likewise.
31531         * m4/nls.m4: Likewise.
31532         * m4/nocrash.m4: Likewise.
31533         * m4/open.m4: Likewise.
31534         * m4/openat.m4: Likewise.
31535         * m4/openmp.m4: Likewise.
31536         * m4/pathmax.m4: Likewise.
31537         * m4/perl.m4: Likewise.
31538         * m4/physmem.m4: Likewise.
31539         * m4/pipe.m4: Likewise.
31540         * m4/po.m4: Likewise.
31541         * m4/poll.m4: Likewise.
31542         * m4/posixtm.m4: Likewise.
31543         * m4/posixver.m4: Likewise.
31544         * m4/printf-frexp.m4: Likewise.
31545         * m4/printf-frexpl.m4: Likewise.
31546         * m4/printf-posix.m4: Likewise.
31547         * m4/printf-posix-rpl.m4: Likewise.
31548         * m4/printf.m4: Likewise.
31549         * m4/progtest.m4: Likewise.
31550         * m4/putenv.m4: Likewise.
31551         * m4/readline.m4: Likewise.
31552         * m4/readlink.m4: Likewise.
31553         * m4/readutmp.m4: Likewise.
31554         * m4/realloc.m4: Likewise.
31555         * m4/regex.m4: Likewise.
31556         * m4/relocatable.m4: Likewise.
31557         * m4/relocatable-lib.m4: Likewise.
31558         * m4/rename-dest-slash.m4: Likewise.
31559         * m4/rename.m4: Likewise.
31560         * m4/rmdir-errno.m4: Likewise.
31561         * m4/rmdir.m4: Likewise.
31562         * m4/roundf.m4: Likewise.
31563         * m4/roundl.m4: Likewise.
31564         * m4/rpmatch.m4: Likewise.
31565         * m4/save-cwd.m4: Likewise.
31566         * m4/selinux-selinux-h.m4: Likewise.
31567         * m4/setenv.m4: Likewise.
31568         * m4/settime.m4: Likewise.
31569         * m4/sig2str.m4: Likewise.
31570         * m4/sig_atomic_t.m4: Likewise.
31571         * m4/signalblocking.m4: Likewise.
31572         * m4/signbit.m4: Likewise.
31573         * m4/sigpipe.m4: Likewise.
31574         * m4/sockets.m4: Likewise.
31575         * m4/sockpfaf.m4: Likewise.
31576         * m4/st_dm_mode.m4: Likewise.
31577         * m4/stat-time.m4: Likewise.
31578         * m4/stdbool.m4: Likewise.
31579         * m4/stdint.m4: Likewise.
31580         * m4/stdint_h.m4: Likewise.
31581         * m4/stpcpy.m4: Likewise.
31582         * m4/stpncpy.m4: Likewise.
31583         * m4/strcase.m4: Likewise.
31584         * m4/strchrnul.m4: Likewise.
31585         * m4/strcspn.m4: Likewise.
31586         * m4/strdup.m4: Likewise.
31587         * m4/strftime.m4: Likewise.
31588         * m4/strndup.m4: Likewise.
31589         * m4/strnlen.m4: Likewise.
31590         * m4/strpbrk.m4: Likewise.
31591         * m4/strptime.m4: Likewise.
31592         * m4/strsep.m4: Likewise.
31593         * m4/strtod.m4: Likewise.
31594         * m4/strtoimax.m4: Likewise.
31595         * m4/strtok_r.m4: Likewise.
31596         * m4/strtol.m4: Likewise.
31597         * m4/strtoll.m4: Likewise.
31598         * m4/strtoul.m4: Likewise.
31599         * m4/strtoull.m4: Likewise.
31600         * m4/strtoumax.m4: Likewise.
31601         * m4/strverscmp.m4: Likewise.
31602         * m4/threadlib.m4: Likewise.
31603         * m4/timegm.m4: Likewise.
31604         * m4/tm_gmtoff.m4: Likewise.
31605         * m4/tmpdir.m4: Likewise.
31606         * m4/tmpfile.m4: Likewise.
31607         * m4/tzset.m4: Likewise.
31608         * m4/uintmax_t.m4: Likewise.
31609         * m4/unlinkdir.m4: Likewise.
31610         * m4/unlocked-io.m4: Likewise.
31611         * m4/uptime.m4: Likewise.
31612         * m4/userspec.m4: Likewise.
31613         * m4/utimbuf.m4: Likewise.
31614         * m4/utime.m4: Likewise.
31615         * m4/utimes-null.m4: Likewise.
31616         * m4/utimes.m4: Likewise.
31617         * m4/vararrays.m4: Likewise.
31618         * m4/vasnprintf.m4: Likewise.
31619         * m4/vfprintf-posix.m4: Likewise.
31620         * m4/vprintf-posix.m4: Likewise.
31621         * m4/wait-process.m4: Likewise.
31622         * m4/wchar_t.m4: Likewise.
31623         * m4/wint_t.m4: Likewise.
31624         * m4/write-any-file.m4: Likewise.
31625         * m4/yield.m4: Likewise.
31626
31627 2009-01-13  Bruno Haible  <bruno@clisp.org>
31628
31629         Avoid test-copy-file.sh failures when ACL support insufficient.
31630         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31631         TESTS_ENVIRONMENT.
31632         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31633         Reported by Jim Meyering.
31634
31635 2009-01-13  Bruno Haible  <bruno@clisp.org>
31636
31637         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31638         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31639         * modules/unistdio/u8-printf-parse (Files): Likewise.
31640         * modules/unistdio/u32-printf-parse (Files): Likewise.
31641         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31642
31643 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31644
31645         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31646         and m4/inttypes_h.m4 too.
31647
31648 2009-01-12  Eric Blake  <ebb9@byu.net>
31649
31650         tests: IRIX 6.2 cc can't compile -0.0 into .data
31651         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31652         rather than at compile-time.
31653         * tests/test-floorl.c (minus_zero): Likewise.
31654         * tests/test-frexpl.c (minus_zero): Likewise.
31655         * tests/test-isnan.c (minus_zerol): Likewise.
31656         * tests/test-isnanl.h (minus_zero): Likewise.
31657         * tests/test-ldexpl.c (minus_zero): Likewise.
31658         * tests/test-roundl.c (minus_zero): Likewise.
31659         * tests/test-signbit.c (minus_zerol): Likewise.
31660         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31661         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31662         * tests/test-truncl.c (minus_zero): Likewise.
31663         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31664         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31665         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31666
31667 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31668
31669         regex: fix glibc bug 9697
31670         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31671         handling.
31672
31673 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31674
31675         regex: fix glibc bug 697
31676         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31677         being NULL also if there are no backreferences.
31678
31679 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31680
31681         regex: merge glibc changes
31682         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31683         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31684         re_string_skip_chars, re_string_reconstruct): Likewise.
31685         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31686
31687 2009-01-07  Jim Meyering  <meyering@redhat.com>
31688
31689         poll: filter through cppi
31690         * lib/poll.c: Indent cpp directives to reflect nesting.
31691
31692 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31693
31694         poll: don't return uninitialized
31695         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31696
31697 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31698
31699         avoid compile failure on AIX 6.1
31700         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31701         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31702
31703 2009-01-04  Jim Meyering  <meyering@redhat.com>
31704
31705         remove duplicate inclusion of <stdio.h>
31706         * tests/test-fprintf-posix.c: Likewise.
31707         * tests/test-printf-posix.c: Likewise.
31708         * tests/test-snprintf-posix.c: Likewise.
31709         * tests/test-sprintf-posix.c: Likewise.
31710         * tests/test-vasprintf-posix.c: Likewise.
31711         * tests/test-vfprintf-posix.c: Likewise.
31712         * tests/test-vprintf-posix.c: Likewise.
31713         * tests/test-vsnprintf-posix.c: Likewise.
31714         * tests/test-vsprintf-posix.c: Likewise.
31715
31716 2009-01-03  Jim Meyering  <meyering@redhat.com>
31717
31718         gnulib-tool: fix sed-based filtering
31719         * gnulib-tool (func_filter_filelist): Remove extra backslash
31720         in sed_fff_filter definition.
31721
31722 2009-01-02  Jim Meyering  <meyering@redhat.com>
31723
31724         strftime: avoid compilation failure on Solaris 2.6
31725         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31726         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31727         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31728         be available.  Reported by Tom G. Christensen.  Details in
31729         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31730
31731 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31732             Bruno Haible  <bruno@clisp.org>
31733
31734         Speed up gnulib-tool by doing more string processing through shell
31735         built-ins.
31736         * gnulib-tool (fast_func_append): New variable.
31737         (func_remove_prefix, func_remove_suffix): New functions.
31738         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31739         (func_filter_filelist): New function.
31740         (func_get_dependencies): Use func_remove_suffix instead of sed.
31741         (func_get_automake_snippet): Use func_filter_filelist instead of a
31742         subshell and sed invocation.
31743
31744 2009-01-01  Bruno Haible  <bruno@clisp.org>
31745
31746         Fix a security bug.
31747         * gnulib-tool (func_import, import, update): Don't allow the characters
31748         '"', '$', '`', '\' in macro arguments that become part of commands that
31749         are evaluated.
31750
31751 2009-01-01  Bruno Haible  <bruno@clisp.org>
31752
31753         * gnulib-tool (func_reset_sigpipe): Add more comments.
31754
31755 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31756
31757         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31758         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31759         already know the answer.
31760
31761 2009-01-01  Jim Meyering  <meyering@redhat.com>
31762
31763         * lib/version-etc.c (version_etc_va): Update copyright year.
31764
31765 2008-12-30  Bruno Haible  <bruno@clisp.org>
31766
31767         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31768         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31769         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31770
31771 2008-12-29  Eric Blake  <ebb9@byu.net>
31772
31773         multiarch: avoid autoconf AC_REQUIRE bug
31774         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31775         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31776         2.63 and older.
31777         Reported by Bruno Haible, and analyzed in
31778         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31779
31780 2008-12-29  Bruno Haible  <bruno@clisp.org>
31781
31782         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31783         files in subdirectories correctly.
31784         Reported by Ralf Wildenhues.
31785
31786 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31787
31788         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31789         rather than 'join FILE -', for Solaris join.
31790
31791 2008-12-29  Bruno Haible  <bruno@clisp.org>
31792
31793         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31794         quoting.
31795         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31796         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31797         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31798         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31799         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31800         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31801         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31802         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31803         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31804         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31805         * m4/nls.m4 (AM_NLS): Likewise.
31806         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31807         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31808         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31809         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31810         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31811         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31812         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31813         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31814         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31815         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31816         * m4/xsize.m4 (gl_XSIZE): Likewise.
31817         Suggested by Jim Meyering.
31818
31819 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31820
31821         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31822         * lib/parse-duration.c: use a switch instead of cascading if's.
31823
31824 2008-12-29  Eric Blake  <ebb9@byu.net>
31825
31826         wchar.h: supply WEOF on Irix 5.3
31827         * lib/wchar.in.h (wint_t): Also supply WEOF.
31828         * lib/wctype.in.h (wint_t): Likewise.
31829         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31830         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31831         Reported by Tom G. Christensen.
31832
31833 2008-12-26  Bruno Haible  <bruno@clisp.org>
31834
31835         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31836         i486, i586, i686.
31837
31838 2008-12-26  Bruno Haible  <bruno@clisp.org>
31839
31840         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31841
31842 2008-12-26  Bruno Haible  <bruno@clisp.org>
31843
31844         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31845         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31846         not __STDC_CONSTANT_MACROS.
31847         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31848
31849 2008-12-25  Bruno Haible  <bruno@clisp.org>
31850
31851         Add support for universal builds to vasnprintf.
31852         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31853         universal builds, guess no.
31854         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31855         * modules/vasprintf-posix (Depends-on): Likewise.
31856         * modules/fprintf-posix (Depends-on): Likewise.
31857         * modules/vfprintf-posix (Depends-on): Likewise.
31858         * modules/snprintf-posix (Depends-on): Likewise.
31859         * modules/vsnprintf-posix (Depends-on): Likewise.
31860         * modules/sprintf-posix (Depends-on): Likewise.
31861         * modules/vsprintf-posix (Depends-on): Likewise.
31862         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31863         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31864         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31865         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31866         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31867         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31868         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31869
31870         Add support for universal builds to <inttypes.h>.
31871         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31872         _SCNu64_PREFIX): In Apple
31873         universal builds, define directly, using _LP64.
31874         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31875         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31876         * modules/inttypes (Depends-on): Add multiarch.
31877         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31878
31879         Add support for universal builds to <stdint.h>.
31880         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31881         universal builds, define directly, using _LP64.
31882         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31883         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31884         and size_t.
31885         * modules/stdint (Depends-on): Add multiarch.
31886         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31887
31888         New module 'multiarch'.
31889         * modules/multiarch: New file.
31890         * m4/multiarch.m4: New file.
31891
31892 2008-12-25  Bruno Haible  <bruno@clisp.org>
31893
31894         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31895
31896 2008-12-25  Bruno Haible  <bruno@clisp.org>
31897
31898         * modules/btowc (License): Relicense under LGPLv2+.
31899         * modules/mbsinit (License): Likewise.
31900         * modules/mbrtowc (License): Likewise.
31901         * modules/wcrtomb (License): Likewise.
31902         * modules/streq (License): Likewise.
31903         Reported by David Lutterkort <lutter@redhat.com>.
31904
31905 2008-12-23  Bruno Haible  <bruno@clisp.org>
31906
31907         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31908
31909 2008-12-23  Bruno Haible  <bruno@clisp.org>
31910
31911         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31912         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31913         GETADDRINFO_LIB, not in LIBS.
31914         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31915         * modules/canon-host (Link): Likewise.
31916         * NEWS: Mention the change.
31917         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31918         GETADDRINFO_LIB.
31919
31920 2008-12-22  Bruno Haible  <bruno@clisp.org>
31921
31922         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31923         * doc/posix-functions/iswalpha_l.texi: Likewise.
31924         * doc/posix-functions/iswblank_l.texi: Likewise.
31925         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31926         * doc/posix-functions/iswctype_l.texi: Likewise.
31927         * doc/posix-functions/iswdigit_l.texi: Likewise.
31928         * doc/posix-functions/iswgraph_l.texi: Likewise.
31929         * doc/posix-functions/iswlower_l.texi: Likewise.
31930         * doc/posix-functions/iswprint_l.texi: Likewise.
31931         * doc/posix-functions/iswpunct_l.texi: Likewise.
31932         * doc/posix-functions/iswspace_l.texi: Likewise.
31933         * doc/posix-functions/iswupper_l.texi: Likewise.
31934         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31935         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31936         * doc/posix-functions/open_wmemstream.texi: Likewise.
31937         * doc/posix-functions/swscanf.texi: Likewise.
31938         * doc/posix-functions/towctrans_l.texi: Likewise.
31939         * doc/posix-functions/towlower.texi: Likewise.
31940         * doc/posix-functions/towlower_l.texi: Likewise.
31941         * doc/posix-functions/towupper.texi: Likewise.
31942         * doc/posix-functions/towupper_l.texi: Likewise.
31943         * doc/posix-functions/vfwprintf.texi: Likewise.
31944         * doc/posix-functions/vfwscanf.texi: Likewise.
31945         * doc/posix-functions/vswscanf.texi: Likewise.
31946         * doc/posix-functions/vwprintf.texi: Likewise.
31947         * doc/posix-functions/vwscanf.texi: Likewise.
31948         * doc/posix-functions/wcpcpy.texi: Likewise.
31949         * doc/posix-functions/wcpncpy.texi: Likewise.
31950         * doc/posix-functions/wcscasecmp.texi: Likewise.
31951         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31952         * doc/posix-functions/wcscoll_l.texi: Likewise.
31953         * doc/posix-functions/wcsdup.texi: Likewise.
31954         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31955         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31956         * doc/posix-functions/wcsnlen.texi: Likewise.
31957         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31958         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31959         * doc/posix-functions/wctrans_l.texi: Likewise.
31960         * doc/posix-functions/wctype_l.texi: Likewise.
31961         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31962         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31963         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31964         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31965         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31966         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31967         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31968         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31969         * doc/glibc-functions/wcschrnul.texi: Likewise.
31970         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31971         * doc/glibc-functions/wcstod_l.texi: Likewise.
31972         * doc/glibc-functions/wcstof_l.texi: Likewise.
31973         * doc/glibc-functions/wcstol_l.texi: Likewise.
31974         * doc/glibc-functions/wcstold_l.texi: Likewise.
31975         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31976         * doc/glibc-functions/wcstoq.texi: Likewise.
31977         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31978         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31979         * doc/glibc-functions/wcstouq.texi: Likewise.
31980         * doc/glibc-functions/wmempcpy.texi: Likewise.
31981
31982 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31983             Eric Blake  <ebb9@byu.net>
31984             Paolo Bonzini  <bonzini@gnu.org>
31985             Bruno Haible  <bruno@clisp.org>
31986
31987         Make c-stack work on Haiku.
31988         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31989         (c_stack_action): Use SA_ONSTACK flag.
31990
31991 2008-12-22  Bruno Haible  <bruno@clisp.org>
31992
31993         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31994
31995 2008-12-22  Bruno Haible  <bruno@clisp.org>
31996
31997         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31998         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31999         being overridden.
32000         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32001         New macros.
32002         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32003         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32004         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32005         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32006
32007 2008-12-22  Bruno Haible  <bruno@clisp.org>
32008
32009         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32010         from test code.
32011
32012 2008-12-22  Eric Blake  <ebb9@byu.net>
32013
32014         Avoid gcc warnings on cygwin.
32015         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32016         Avoid unused variable.
32017         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32018         Likewise.
32019
32020 2008-12-22  Bruno Haible  <bruno@clisp.org>
32021
32022         Remove HAVE_MBRTOWC conditionals.
32023         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32024         (mbscasecmp): Assume mbrtowc function.
32025         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32026         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32027         * lib/mbschr.c: Include mbuiter.h unconditionally.
32028         (mbschr): Assume mbrtowc function.
32029         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32030         (mbscspn): Assume mbrtowc function.
32031         * lib/mbslen.c: Include mbuiter.h unconditionally.
32032         (mbslen): Assume mbrtowc function.
32033         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32034         (mbsncasecmp): Assume mbrtowc function.
32035         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32036         (mbsnlen): Assume mbrtowc function.
32037         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32038         (mbspbrk): Assume mbrtowc function.
32039         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32040         (mbspcasecmp): Assume mbrtowc function.
32041         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32042         (mbsrchr): Assume mbrtowc function.
32043         * lib/mbssep.c: Include mbuiter.h unconditionally.
32044         (mbssep): Assume mbrtowc function.
32045         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32046         (mbsspn): Assume mbrtowc function.
32047         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32048         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32049         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32050         (mbstok_r): Assume mbrtowc function.
32051         * lib/propername.c: Include mbuiter.h unconditionally.
32052         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32053         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32054         (trim2): Assume mbrtowc function.
32055         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32056         (mbsnwidth): Assume mbrtowc function.
32057         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32058         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32059         fallback definitions.
32060         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32061
32062 2008-12-22  Bruno Haible  <bruno@clisp.org>
32063
32064         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32065
32066 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32067
32068         * modules/regex: Request emulations for the mb*/wc* functions we need.
32069         * m4/regex.m4: Don't look for those functions here.
32070         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32071
32072 2008-12-22  Bruno Haible  <bruno@clisp.org>
32073
32074         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32075
32076 2008-12-21  Bruno Haible  <bruno@clisp.org>
32077
32078         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32079         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32080         (Include): Remove conditionalization.
32081         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32082         (Include): Remove conditionalization.
32083         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32084         (Include): Remove conditionalization.
32085         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32086         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32087         * NEWS: Mention the change.
32088         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32089         via Sergey Poznyakoff <gray@gnu.org.ua>.
32090
32091 2008-12-21  Bruno Haible  <bruno@clisp.org>
32092
32093         * MODULES.html.sh (Extended multibyte and wide character utilities
32094         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32095         wcrtomb, wcsrtombs.
32096         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32097         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32098         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32099         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32100
32101 2008-12-21  Bruno Haible  <bruno@clisp.org>
32102
32103         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32104
32105 2008-12-21  Bruno Haible  <bruno@clisp.org>
32106
32107         * modules/wcsnrtombs-tests: New file.
32108         * tests/test-wcsnrtombs1.sh: New file.
32109         * tests/test-wcsnrtombs2.sh: New file.
32110         * tests/test-wcsnrtombs3.sh: New file.
32111         * tests/test-wcsnrtombs4.sh: New file.
32112         * tests/test-wcsnrtombs.c: New file.
32113
32114         New module 'wcsnrtombs'.
32115         * lib/wchar.in.h (wcsnrtombs): New declaration.
32116         * lib/wcsnrtombs.c: New file.
32117         * lib/wcsrtombs-state.c: New file.
32118         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32119         (internal_state): Remove variable.
32120         * m4/wcsnrtombs.m4: New file.
32121         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32122         compilation units.
32123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32124         HAVE_WCSNRTOMBS.
32125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32126         HAVE_WCSNRTOMBS.
32127         * modules/wcsnrtombs: New file.
32128         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32129         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32130
32131 2008-12-21  Bruno Haible  <bruno@clisp.org>
32132
32133         * modules/wcsrtombs-tests: New file.
32134         * tests/test-wcsrtombs1.sh: New file.
32135         * tests/test-wcsrtombs2.sh: New file.
32136         * tests/test-wcsrtombs3.sh: New file.
32137         * tests/test-wcsrtombs4.sh: New file.
32138         * tests/test-wcsrtombs.c: New file.
32139
32140         New module 'wcsrtombs'.
32141         * lib/wchar.in.h (wcsrtombs): New declaration.
32142         * lib/wcsrtombs.c: New file.
32143         * m4/wcsrtombs.m4: New file.
32144         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32145         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32147         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32148         * modules/wcsrtombs: New file.
32149         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32150         bugs.
32151
32152 2008-12-21  Bruno Haible  <bruno@clisp.org>
32153
32154         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32155         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32156         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32157         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32158         if not correct.
32159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32160         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32161         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32162         m4/locale-zh.m4, m4/codeset.m4.
32163         * doc/posix-functions/wcrtomb.texi: Document the bug.
32164
32165 2008-12-21  Bruno Haible  <bruno@clisp.org>
32166
32167         Work around a btowc() bug on IRIX 6.5.
32168         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32169         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32170         REPLACE_WTOBC if not.
32171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32172         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32173         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32174
32175 2008-12-21  Bruno Haible  <bruno@clisp.org>
32176
32177         * modules/wcrtomb-tests: New file.
32178         * tests/test-wcrtomb.sh: New file.
32179         * tests/test-wcrtomb.c: New file.
32180
32181         New module 'wcrtomb'.
32182         * lib/wchar.in.h (wcrtomb): New declaration.
32183         * lib/wcrtomb.c: New file.
32184         * m4/wcrtomb.m4: New file.
32185         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32186         HAVE_WCRTOMB.
32187         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32188         HAVE_WCRTOMB.
32189         * modules/wcrtomb: New file.
32190         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32191
32192 2008-12-21  Bruno Haible  <bruno@clisp.org>
32193
32194         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32195         * modules/mbsrtowcs (Files): Likewise.
32196         * modules/wctob (Files): Likewise.
32197         * modules/c-strcase-tests (Files): Likewise.
32198         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32199         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32200         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32201         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32202         * modules/vasnprintf-posix-tests (Files): Likewise.
32203
32204 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32205
32206         gitlog-to-changelog: pass all command-line arguments to git-log
32207         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32208         it is sometimes convenient to filter the commits in various ways.
32209         gitlog-to-changelog only allows --since to specify a start date,
32210         but git-log itself supports many other filtering mechanisms.
32211         At the moment, I want to filter by branch name.  Rather than
32212         adding a --branch option to gitlog-to-changelog, it seems more
32213         flexible to simply pass all options directly to git-log and let
32214         git do the work.  Notice that this effectively makes --since a
32215         redundant option for gitlog-to-changelog, but removing it would
32216         require current usage to change since calls would then require
32217         an additional '--'.
32218
32219 2008-12-21  Bruno Haible  <bruno@clisp.org>
32220
32221         * modules/mbsnrtowcs-tests: New file.
32222         * tests/test-mbsnrtowcs1.sh: New file.
32223         * tests/test-mbsnrtowcs2.sh: New file.
32224         * tests/test-mbsnrtowcs3.sh: New file.
32225         * tests/test-mbsnrtowcs4.sh: New file.
32226         * tests/test-mbsnrtowcs.c: New file.
32227
32228         New module 'mbsnrtowcs'.
32229         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32230         * lib/mbsnrtowcs.c: New file.
32231         * lib/mbsrtowcs-state.c: New file.
32232         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32233         (internal_state): Remove variable.
32234         * m4/mbsnrtowcs.m4: New file.
32235         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32236         compilation units.
32237         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32238         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32239         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32240         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32241         * modules/mbsnrtowcs: New file.
32242         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32243         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32244         portability problem.
32245
32246 2008-12-21  Bruno Haible  <bruno@clisp.org>
32247
32248         Work around mbsrtowcs bug.
32249         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32250         (gl_FUNC_MBSRTOWCS): Invoke it.
32251         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32252         m4/locale-zh.m4.
32253         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32254
32255 2008-12-21  Bruno Haible  <bruno@clisp.org>
32256
32257         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32258
32259 2008-12-21  Bruno Haible  <bruno@clisp.org>
32260
32261         Update doc for AIX.
32262         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32263         16-bit wchar_t type.
32264         * doc/posix-functions/btowc.texi: Likewise.
32265         * doc/posix-functions/fgetwc.texi: Likewise.
32266         * doc/posix-functions/fgetws.texi: Likewise.
32267         * doc/posix-functions/fputwc.texi: Likewise.
32268         * doc/posix-functions/fputws.texi: Likewise.
32269         * doc/posix-functions/fwide.texi: Likewise.
32270         * doc/posix-functions/fwprintf.texi: Likewise.
32271         * doc/posix-functions/fwscanf.texi: Likewise.
32272         * doc/posix-functions/getwchar.texi: Likewise.
32273         * doc/posix-functions/getwc.texi: Likewise.
32274         * doc/posix-functions/iswalnum.texi: Likewise.
32275         * doc/posix-functions/iswalpha.texi: Likewise.
32276         * doc/posix-functions/iswblank.texi: Likewise.
32277         * doc/posix-functions/iswcntrl.texi: Likewise.
32278         * doc/posix-functions/iswctype.texi: Likewise.
32279         * doc/posix-functions/iswdigit.texi: Likewise.
32280         * doc/posix-functions/iswgraph.texi: Likewise.
32281         * doc/posix-functions/iswlower.texi: Likewise.
32282         * doc/posix-functions/iswprint.texi: Likewise.
32283         * doc/posix-functions/iswpunct.texi: Likewise.
32284         * doc/posix-functions/iswspace.texi: Likewise.
32285         * doc/posix-functions/iswupper.texi: Likewise.
32286         * doc/posix-functions/iswxdigit.texi: Likewise.
32287         * doc/posix-functions/mbrtowc.texi: Likewise.
32288         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32289         * doc/posix-functions/mbstowcs.texi: Likewise.
32290         * doc/posix-functions/mbtowc.texi: Likewise.
32291         * doc/posix-functions/putwchar.texi: Likewise.
32292         * doc/posix-functions/putwc.texi: Likewise.
32293         * doc/posix-functions/swprintf.texi: Likewise.
32294         * doc/posix-functions/tolower.texi: Likewise.
32295         * doc/posix-functions/toupper.texi: Likewise.
32296         * doc/posix-functions/towctrans.texi: Likewise.
32297         * doc/posix-functions/ungetwc.texi: Likewise.
32298         * doc/posix-functions/vswprintf.texi: Likewise.
32299         * doc/posix-functions/wcrtomb.texi: Likewise.
32300         * doc/posix-functions/wcscat.texi: Likewise.
32301         * doc/posix-functions/wcschr.texi: Likewise.
32302         * doc/posix-functions/wcscmp.texi: Likewise.
32303         * doc/posix-functions/wcscoll.texi: Likewise.
32304         * doc/posix-functions/wcscpy.texi: Likewise.
32305         * doc/posix-functions/wcscspn.texi: Likewise.
32306         * doc/posix-functions/wcsftime.texi: Likewise.
32307         * doc/posix-functions/wcslen.texi: Likewise.
32308         * doc/posix-functions/wcsncat.texi: Likewise.
32309         * doc/posix-functions/wcsncmp.texi: Likewise.
32310         * doc/posix-functions/wcsncpy.texi: Likewise.
32311         * doc/posix-functions/wcspbrk.texi: Likewise.
32312         * doc/posix-functions/wcsrchr.texi: Likewise.
32313         * doc/posix-functions/wcsrtombs.texi: Likewise.
32314         * doc/posix-functions/wcsspn.texi: Likewise.
32315         * doc/posix-functions/wcsstr.texi: Likewise.
32316         * doc/posix-functions/wcstod.texi: Likewise.
32317         * doc/posix-functions/wcstof.texi: Likewise.
32318         * doc/posix-functions/wcstoimax.texi: Likewise.
32319         * doc/posix-functions/wcstok.texi: Likewise.
32320         * doc/posix-functions/wcstold.texi: Likewise.
32321         * doc/posix-functions/wcstoll.texi: Likewise.
32322         * doc/posix-functions/wcstol.texi: Likewise.
32323         * doc/posix-functions/wcstombs.texi: Likewise.
32324         * doc/posix-functions/wcstoull.texi: Likewise.
32325         * doc/posix-functions/wcstoul.texi: Likewise.
32326         * doc/posix-functions/wcstoumax.texi: Likewise.
32327         * doc/posix-functions/wcswidth.texi: Likewise.
32328         * doc/posix-functions/wcsxfrm.texi: Likewise.
32329         * doc/posix-functions/wctob.texi: Likewise.
32330         * doc/posix-functions/wctomb.texi: Likewise.
32331         * doc/posix-functions/wctrans.texi: Likewise.
32332         * doc/posix-functions/wctype.texi: Likewise.
32333         * doc/posix-functions/wcwidth.texi: Likewise.
32334         * doc/posix-functions/wmemchr.texi: Likewise.
32335         * doc/posix-functions/wmemcmp.texi: Likewise.
32336         * doc/posix-functions/wmemcpy.texi: Likewise.
32337         * doc/posix-functions/wmemmove.texi: Likewise.
32338         * doc/posix-functions/wmemset.texi: Likewise.
32339         * doc/posix-functions/wprintf.texi: Likewise.
32340         * doc/posix-functions/wscanf.texi: Likewise.
32341
32342 2008-12-21  Bruno Haible  <bruno@clisp.org>
32343
32344         Update doc for HP-UX 11.11.
32345         * doc/posix-functions/btowc.texi: Clarify that the function is missing
32346         in HP-UX version 11.00, not in all versions of HP-UX 11.
32347         * doc/posix-functions/fwide.texi: Likewise.
32348         * doc/posix-functions/fwprintf.texi: Likewise.
32349         * doc/posix-functions/fwscanf.texi: Likewise.
32350         * doc/posix-functions/inet_ntop.texi: Likewise.
32351         * doc/posix-functions/inet_pton.texi: Likewise.
32352         * doc/posix-functions/mbrlen.texi: Likewise.
32353         * doc/posix-functions/mbrtowc.texi: Likewise.
32354         * doc/posix-functions/mbsinit.texi: Likewise.
32355         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32356         * doc/posix-functions/swprintf.texi: Likewise.
32357         * doc/posix-functions/swscanf.texi: Likewise.
32358         * doc/posix-functions/towctrans.texi: Likewise.
32359         * doc/posix-functions/vfwprintf.texi: Likewise.
32360         * doc/posix-functions/vswprintf.texi: Likewise.
32361         * doc/posix-functions/vwprintf.texi: Likewise.
32362         * doc/posix-functions/wcrtomb.texi: Likewise.
32363         * doc/posix-functions/wcsrtombs.texi: Likewise.
32364         * doc/posix-functions/wcsstr.texi: Likewise.
32365         * doc/posix-functions/wctob.texi: Likewise.
32366         * doc/posix-functions/wctrans.texi: Likewise.
32367         * doc/posix-functions/wmemchr.texi: Likewise.
32368         * doc/posix-functions/wmemcmp.texi: Likewise.
32369         * doc/posix-functions/wmemcpy.texi: Likewise.
32370         * doc/posix-functions/wmemmove.texi: Likewise.
32371         * doc/posix-functions/wmemset.texi: Likewise.
32372         * doc/posix-functions/wprintf.texi: Likewise.
32373         * doc/posix-functions/wscanf.texi: Likewise.
32374
32375 2008-12-21  Bruno Haible  <bruno@clisp.org>
32376
32377         Work around a portability problem.
32378         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
32379         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
32380
32381 2008-12-20  Bruno Haible  <bruno@clisp.org>
32382
32383         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
32384         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
32385         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
32386         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
32387         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
32388
32389         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
32390         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
32391         set.
32392         (GNULIB_defined_mbstate_t): New macro.
32393         (mbsinit): Redefine if REPLACE_MBSINIT is set.
32394         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
32395         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
32396         reuses the system's mbrtowc function but works around the bugs.
32397         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
32398         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
32399         macros.
32400         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
32401         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
32402         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
32403         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
32404         REPLACE_MBSINIT if mbsinit needs to be overridden.
32405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
32406         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32407         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
32408         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32409         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32410         m4/locale-zh.m4.
32411         (Depends): Add mbsinit.
32412         * modules/mbsinit (Depends): Add mbrtowc.
32413         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
32414
32415 2008-12-20  Bruno Haible  <bruno@clisp.org>
32416
32417         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
32418         so that there are no conversion errors on AIX.
32419         * tests/test-mbsrtowcs.c (main): LIkewise.
32420
32421 2008-12-20  Bruno Haible  <bruno@clisp.org>
32422
32423         Work around wctob bug on Solaris <= 9.
32424         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
32425         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
32426         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
32427         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
32428         * modules/wctob (Files): Add m4/locale-fr.m4.
32429         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
32430
32431 2008-12-20  Bruno Haible  <bruno@clisp.org>
32432
32433         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
32434         /dev/null.
32435         * tests/test-select-in.sh: Likewise.
32436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32437
32438 2008-12-20  Bruno Haible  <bruno@clisp.org>
32439
32440         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
32441         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
32442         Cygwin 1.5.x.
32443
32444 2008-12-20  Bruno Haible  <bruno@clisp.org>
32445
32446         Ensure mbstate_t is defined on HP-UX 11.11.
32447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
32448         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
32449         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
32450         AC_USE_SYSTEM_EXTENSIONS.
32451         * modules/fnmatch (Depends-on): Add extensions.
32452         * modules/mbrlen (Depends-on): Likewise.
32453         * modules/mbrtowc (Depends-on): Likewise.
32454         * modules/mbsinit (Depends-on): Likewise.
32455         * modules/mbsrtowcs (Depends-on): Likewise.
32456         * modules/mbswidth (Depends-on): Likewise.
32457         * modules/quotearg (Depends-on): Likewise.
32458         * modules/strftime (Depends-on): Likewise.
32459
32460 2008-12-20  Bruno Haible  <bruno@clisp.org>
32461
32462         Ensure wctob is declared on IRIX 6.5.
32463         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
32464         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
32465         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
32466         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
32467         of HAVE_WCTOB.
32468         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
32469         HAVE_WCTOB.
32470         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
32471
32472 2008-12-19  Bruno Haible  <bruno@clisp.org>
32473
32474         * modules/mbsrtowcs-tests: New file.
32475         * tests/test-mbsrtowcs1.sh: New file.
32476         * tests/test-mbsrtowcs2.sh: New file.
32477         * tests/test-mbsrtowcs3.sh: New file.
32478         * tests/test-mbsrtowcs4.sh: New file.
32479         * tests/test-mbsrtowcs.c: New file.
32480
32481         New module 'mbsrtowcs'.
32482         * lib/wchar.in.h (mbsrtowcs): New declaration.
32483         * lib/mbsrtowcs.c: New file.
32484         * m4/mbsrtowcs.m4: New file.
32485         * modules/mbsrtowcs: New file.
32486         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
32487         HAVE_MBSRTOWCS.
32488         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
32489         HAVE_MBSRTOWCS.
32490         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
32491
32492 2008-12-19  Bruno Haible  <bruno@clisp.org>
32493
32494         New module 'mbrlen'.
32495         * lib/wchar.in.h (mbrlen): New declaration.
32496         * lib/mbrlen.c: New file.
32497         * m4/mbrlen.m4: New file.
32498         * modules/mbrlen: New file.
32499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
32500         HAVE_MBRLEN.
32501         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
32502         HAVE_MBRLEN.
32503         * doc/posix-functions/mbrlen.texi: Document the new module.
32504
32505 2008-12-19  Bruno Haible  <bruno@clisp.org>
32506
32507         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
32508         * modules/mbrtowc (Depends-on): Add verify.
32509         Suggested by Paul Eggert.
32510
32511 2008-12-18  Bruno Haible  <bruno@clisp.org>
32512
32513         * modules/mbsinit-tests: New file.
32514         * tests/test-mbsinit.sh: New file.
32515         * tests/test-mbsinit.c: New file.
32516
32517 2008-12-18  Bruno Haible  <bruno@clisp.org>
32518
32519         * modules/mbrtowc-tests: New file.
32520         * tests/test-mbrtowc1.sh: New file.
32521         * tests/test-mbrtowc2.sh: New file.
32522         * tests/test-mbrtowc3.sh: New file.
32523         * tests/test-mbrtowc4.sh: New file.
32524         * tests/test-mbrtowc.c: New file.
32525
32526         New module 'mbrtowc'.
32527         * lib/wchar.in.h (mbstate_t): Override when the system does not have
32528         mbsinit and mbrtowc.
32529         (mbrtowc): New declaration.
32530         * lib/mbrtowc.c: New file.
32531         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
32532         * modules/mbrtowc: New file.
32533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
32534         HAVE_MBRTOWC.
32535         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
32536         HAVE_MBRTOWC.
32537         * doc/posix-functions/mbrtowc.texi: Document the new module.
32538
32539 2008-12-18  Bruno Haible  <bruno@clisp.org>
32540
32541         New module 'wctob'.
32542         * lib/wchar.in.h (wctob): New declaration.
32543         * lib/wctob.c: New file.
32544         * m4/wctob.m4: New file.
32545         * modules/wctob: New file.
32546         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
32547         HAVE_WCTOB.
32548         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
32549         * doc/posix-functions/wctob.texi: Document the new module.
32550
32551 2008-12-18  Bruno Haible  <bruno@clisp.org>
32552
32553         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32554         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32555
32556 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32557
32558         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32559         G. Christensen" <tgc@jupiterrise.com>.
32560
32561         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32562         G. Christensen" <tgc@jupiterrise.com>.
32563
32564         * lib/flock.c: Need to include string.h.  Reported by "Tom
32565         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32566         <ebb9@byu.net>.
32567
32568 2008-12-18  Bruno Haible  <bruno@clisp.org>
32569
32570         * m4/locale-ja.m4: New file, from GNU gettext.
32571
32572 2008-12-17  Bruno Haible  <bruno@clisp.org>
32573
32574         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32575         Suggested by Eric Blake.
32576
32577 2008-12-17  Bruno Haible  <bruno@clisp.org>
32578
32579         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32580
32581 2008-12-17  Bruno Haible  <bruno@clisp.org>
32582
32583         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32584         * modules/mbsinit (Depends-on): Add verify.
32585         Suggested by Paul Eggert.
32586
32587 2008-12-17  Bruno Haible  <bruno@clisp.org>
32588
32589         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32590         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32591         gl_FUNC_MBRTOWC.
32592         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32593         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32594         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32595         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32596         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32597         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32598         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32599         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32600         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32601         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32602         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32603         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32604         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32605         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32606         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32607         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32608         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32609         * modules/trim (configure.ac): Likewise.
32610
32611 2008-12-17  Bruno Haible  <bruno@clisp.org>
32612
32613         * modules/btowc-tests: New file.
32614         * tests/test-btowc1.sh: New file.
32615         * tests/test-btowc2.sh: New file.
32616         * tests/test-btowc.c: New file.
32617
32618         New module 'btowc'.
32619         * lib/wchar.in.h (btowc): New declaration.
32620         * lib/btowc.c: New file.
32621         * m4/btowc.m4: New file.
32622         * modules/btowc: New file.
32623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32624         HAVE_BTOWC.
32625         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32626         * doc/posix-functions/btowc.texi: Document the new module.
32627
32628 2008-12-17  Bruno Haible  <bruno@clisp.org>
32629
32630         New module 'mbsinit'.
32631         * lib/wchar.in.h (mbsinit): New declaration.
32632         * lib/mbsinit.c: New file.
32633         * m4/mbsinit.m4: New file.
32634         * modules/mbsinit: New file.
32635         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32636         HAVE_MBSINIT.
32637         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32638         HAVE_MBSINIT.
32639         * doc/posix-functions/mbsinit.texi: Document the new module.
32640
32641 2008-12-16  Bruno Haible  <bruno@clisp.org>
32642
32643         * lib/unistd.in.h: Add comment.
32644         * tests/test-environ.c: Don't include <stdlib.h>.
32645
32646 2008-12-16  Bruno Haible  <bruno@clisp.org>
32647
32648         * lib/parse-duration.h (parse_duration): Document return value
32649         convention.
32650         * lib/parse-duration.c: Include specification header first. Add
32651         comments.
32652         (_): Remove macro.
32653         (parse_year_month_day, parse_hour_minute_second): Move side effects
32654         outside of strchr call.
32655         (parse_non_iso8601): Move side effects outside of isspace call.
32656         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32657         call.
32658
32659 2008-12-16  Bruno Haible  <bruno@clisp.org>
32660
32661         * tests/test-parse-duration.sh: Produce no output when the test
32662         succeeds.
32663
32664 2008-12-16  Bruno Haible  <bruno@clisp.org>
32665
32666         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32667         expressions.
32668
32669 2008-12-15  Bruno Haible  <bruno@clisp.org>
32670
32671         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32672         * doc/glibc-functions/flistxattr.texi: Likewise.
32673         * doc/glibc-functions/fopencookie.texi: Likewise.
32674         * doc/glibc-functions/fremovexattr.texi: Likewise.
32675         * doc/glibc-functions/fsetxattr.texi: Likewise.
32676         * doc/glibc-functions/getxattr.texi: Likewise.
32677         * doc/glibc-functions/lgetxattr.texi: Likewise.
32678         * doc/glibc-functions/listxattr.texi: Likewise.
32679         * doc/glibc-functions/llistxattr.texi: Likewise.
32680         * doc/glibc-functions/lremovexattr.texi: Likewise.
32681         * doc/glibc-functions/lsetxattr.texi: Likewise.
32682         * doc/glibc-functions/removexattr.texi: Likewise.
32683         * doc/glibc-functions/setxattr.texi: Likewise.
32684         * doc/posix-functions/open_memstream.texi: Likewise.
32685
32686 2008-12-15  Eric Blake  <ebb9@byu.net>
32687
32688         Update doc for cygwin 1.7.
32689         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32690         functions.
32691         * doc/posix-functions/fchmodat.texi: Likewise.
32692         * doc/posix-functions/fchownat.texi: Likewise.
32693         * doc/posix-functions/fdopendir.texi: Likewise.
32694         * doc/posix-functions/fmemopen.texi: Likewise.
32695         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32696         * doc/posix-functions/fstatat.texi: Likewise.
32697         * doc/posix-functions/futimens.texi: Likewise.
32698         * doc/posix-functions/gai_strerror.texi: Likewise.
32699         * doc/posix-functions/getaddrinfo.texi: Likewise.
32700         * doc/posix-functions/getnameinfo.texi: Likewise.
32701         * doc/posix-functions/if_freenameindex.texi: Likewise.
32702         * doc/posix-functions/if_indextoname.texi: Likewise.
32703         * doc/posix-functions/if_nameindex.texi: Likewise.
32704         * doc/posix-functions/if_nametoindex.texi: Likewise.
32705         * doc/posix-functions/insque.texi: Likewise.
32706         * doc/posix-functions/linkat.texi: Likewise.
32707         * doc/posix-functions/llrint.texi: Likewise.
32708         * doc/posix-functions/llrintf.texi: Likewise.
32709         * doc/posix-functions/llrintl.texi: Likewise.
32710         * doc/posix-functions/lockf.texi: Likewise.
32711         * doc/posix-functions/lrintl.texi: Likewise.
32712         * doc/posix-functions/mkdirat.texi: Likewise.
32713         * doc/posix-functions/mkfifoat.texi: Likewise.
32714         * doc/posix-functions/mknodat.texi: Likewise.
32715         * doc/posix-functions/mq_close.texi: Likewise.
32716         * doc/posix-functions/mq_getattr.texi: Likewise.
32717         * doc/posix-functions/mq_notify.texi: Likewise.
32718         * doc/posix-functions/mq_open.texi: Likewise.
32719         * doc/posix-functions/mq_receive.texi: Likewise.
32720         * doc/posix-functions/mq_send.texi: Likewise.
32721         * doc/posix-functions/mq_setattr.texi: Likewise.
32722         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32723         * doc/posix-functions/mq_timedsend.texi: Likewise.
32724         * doc/posix-functions/mq_unlink.texi: Likewise.
32725         * doc/posix-functions/open_memstream.texi: Likewise.
32726         * doc/posix-functions/openat.texi: Likewise.
32727         * doc/posix-functions/posix_fadvise.texi: Likewise.
32728         * doc/posix-functions/posix_fallocate.texi: Likewise.
32729         * doc/posix-functions/posix_madvise.texi: Likewise.
32730         * doc/posix-functions/posix_memalign.texi: Likewise.
32731         * doc/posix-functions/posix_openpt.texi: Likewise.
32732         * doc/posix-functions/readlinkat.texi: Likewise.
32733         * doc/posix-functions/remque.texi: Likewise.
32734         * doc/posix-functions/renameat.texi: Likewise.
32735         * doc/posix-functions/rintl.texi: Likewise.
32736         * doc/posix-functions/sem_unlink.texi: Likewise.
32737         * doc/posix-functions/shm_open.texi: Likewise.
32738         * doc/posix-functions/shm_unlink.texi: Likewise.
32739         * doc/posix-functions/signgam.texi: Likewise.
32740         * doc/posix-functions/sigset.texi: Likewise.
32741         * doc/posix-functions/stpcpy.texi: Likewise.
32742         * doc/posix-functions/stpncpy.texi: Likewise.
32743         * doc/posix-functions/strerror.texi: Likewise.
32744         * doc/posix-functions/strtod.texi: Likewise.
32745         * doc/posix-functions/symlinkat.texi: Likewise.
32746         * doc/posix-functions/unlinkat.texi: Likewise.
32747         * doc/posix-functions/utimensat.texi: Likewise.
32748         * doc/glibc-functions/bindresvport.texi: Likewise.
32749         * doc/glibc-functions/dn_expand.texi: Likewise.
32750         * doc/glibc-functions/exp10.texi: Likewise.
32751         * doc/glibc-functions/exp10f.texi: Likewise.
32752         * doc/glibc-functions/fgetxattr.texi: Likewise.
32753         * doc/glibc-functions/flistxattr.texi: Likewise.
32754         * doc/glibc-functions/fopencookie.texi: Likewise.
32755         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32756         * doc/glibc-functions/fremovexattr.texi: Likewise.
32757         * doc/glibc-functions/fsetxattr.texi: Likewise.
32758         * doc/glibc-functions/getifaddrs.texi: Likewise.
32759         * doc/glibc-functions/getxattr.texi: Likewise.
32760         * doc/glibc-functions/lgetxattr.texi: Likewise.
32761         * doc/glibc-functions/listxattr.texi: Likewise.
32762         * doc/glibc-functions/llistxattr.texi: Likewise.
32763         * doc/glibc-functions/lremovexattr.texi: Likewise.
32764         * doc/glibc-functions/lsetxattr.texi: Likewise.
32765         * doc/glibc-functions/pow10.texi: Likewise.
32766         * doc/glibc-functions/pow10f.texi: Likewise.
32767         * doc/glibc-functions/rcmd_af.texi: Likewise.
32768         * doc/glibc-functions/removexattr.texi: Likewise.
32769         * doc/glibc-functions/res_init.texi: Likewise.
32770         * doc/glibc-functions/res_mkquery.texi: Likewise.
32771         * doc/glibc-functions/res_query.texi: Likewise.
32772         * doc/glibc-functions/res_querydomain.texi: Likewise.
32773         * doc/glibc-functions/res_send.texi: Likewise.
32774         * doc/glibc-functions/rresvport_af.texi: Likewise.
32775         * doc/glibc-functions/setxattr.texi: Likewise.
32776         * doc/glibc-functions/strcasestr.texi: Likewise.
32777
32778 2008-12-15  Bruno Haible  <bruno@clisp.org>
32779
32780         Fix compilation error on OSF/1 4.0.
32781         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32782         <sys/time.h>, simply delegate to the system header.
32783         Reported by Daniel Richard G. <oss@teragram.com>.
32784
32785 2008-12-15  Bruno Haible  <bruno@clisp.org>
32786
32787         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32788         * doc/posix-functions/fchmodat.texi: Likewise.
32789         * doc/posix-functions/fchownat.texi: Likewise.
32790         * doc/posix-functions/fdopendir.texi: Likewise.
32791         * doc/posix-functions/fstatat.texi: Likewise.
32792         * doc/posix-functions/mkdirat.texi: Likewise.
32793         * doc/posix-functions/unlinkat.texi: Likewise.
32794
32795 2008-12-14  Bruno Haible  <bruno@clisp.org>
32796
32797         Update doc for POSIX:2008.
32798         * doc/posix-functions/faccessat.texi: New file.
32799         * doc/posix-functions/fchmodat.texi: New file.
32800         * doc/posix-functions/fchownat.texi: New file.
32801         * doc/posix-functions/fdopendir.texi: New file.
32802         * doc/posix-functions/fstatat.texi: New file.
32803         * doc/posix-functions/futimens.texi: New file.
32804         * doc/posix-functions/linkat.texi: New file.
32805         * doc/posix-functions/mkdirat.texi: New file.
32806         * doc/posix-functions/mkfifoat.texi: New file.
32807         * doc/posix-functions/mknodat.texi: New file.
32808         * doc/posix-functions/open_wmemstream.texi: New file.
32809         * doc/posix-functions/openat.texi: New file.
32810         * doc/posix-functions/psiginfo.texi: New file.
32811         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32812         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32813         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32814         * doc/posix-functions/readlinkat.texi: New file.
32815         * doc/posix-functions/renameat.texi: New file.
32816         * doc/posix-functions/strerror_l.texi: New file.
32817         * doc/posix-functions/symlinkat.texi: New file.
32818         * doc/posix-functions/unlinkat.texi: New file.
32819         * doc/posix-functions/utimensat.texi: New file.
32820         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32821
32822 2008-12-14  Bruno Haible  <bruno@clisp.org>
32823
32824         Update doc for POSIX:2008.
32825         * doc/posix-functions/alphasort.texi: Renamed from
32826         doc/glibc-functions/alphasort.texi.
32827         * doc/posix-functions/dirfd.texi: Renamed from
32828         doc/glibc-functions/dirfd.texi.
32829         * doc/posix-functions/dprintf.texi: Renamed from
32830         doc/glibc-functions/dprintf.texi.
32831         * doc/posix-functions/duplocale.texi: Renamed from
32832         doc/glibc-functions/duplocale.texi.
32833         * doc/posix-functions/fexecve.texi: Renamed from
32834         doc/glibc-functions/fexecve.texi.
32835         * doc/posix-functions/fmemopen.texi: Renamed from
32836         doc/glibc-functions/fmemopen.texi.
32837         * doc/posix-functions/freelocale.texi: Renamed from
32838         doc/glibc-functions/freelocale.texi.
32839         * doc/posix-functions/getdate_err.texi: Renamed from
32840         doc/glibc-functions/getdate_err.texi.
32841         * doc/posix-functions/isalnum_l.texi: Renamed from
32842         doc/glibc-functions/isalnum_l.texi.
32843         * doc/posix-functions/isalpha_l.texi: Renamed from
32844         doc/glibc-functions/isalpha_l.texi.
32845         * doc/posix-functions/isblank_l.texi: Renamed from
32846         doc/glibc-functions/isblank_l.texi.
32847         * doc/posix-functions/iscntrl_l.texi: Renamed from
32848         doc/glibc-functions/iscntrl_l.texi.
32849         * doc/posix-functions/isdigit_l.texi: Renamed from
32850         doc/glibc-functions/isdigit_l.texi.
32851         * doc/posix-functions/isgraph_l.texi: Renamed from
32852         doc/glibc-functions/isgraph_l.texi.
32853         * doc/posix-functions/islower_l.texi: Renamed from
32854         doc/glibc-functions/islower_l.texi.
32855         * doc/posix-functions/isprint_l.texi: Renamed from
32856         doc/glibc-functions/isprint_l.texi.
32857         * doc/posix-functions/ispunct_l.texi: Renamed from
32858         doc/glibc-functions/ispunct_l.texi.
32859         * doc/posix-functions/isspace_l.texi: Renamed from
32860         doc/glibc-functions/isspace_l.texi.
32861         * doc/posix-functions/isupper_l.texi: Renamed from
32862         doc/glibc-functions/isupper_l.texi.
32863         * doc/posix-functions/iswalnum_l.texi: Renamed from
32864         doc/glibc-functions/iswalnum_l.texi.
32865         * doc/posix-functions/iswalpha_l.texi: Renamed from
32866         doc/glibc-functions/iswalpha_l.texi.
32867         * doc/posix-functions/iswblank_l.texi: Renamed from
32868         doc/glibc-functions/iswblank_l.texi.
32869         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32870         doc/glibc-functions/iswcntrl_l.texi.
32871         * doc/posix-functions/iswctype_l.texi: Renamed from
32872         doc/glibc-functions/iswctype_l.texi.
32873         * doc/posix-functions/iswdigit_l.texi: Renamed from
32874         doc/glibc-functions/iswdigit_l.texi.
32875         * doc/posix-functions/iswgraph_l.texi: Renamed from
32876         doc/glibc-functions/iswgraph_l.texi.
32877         * doc/posix-functions/iswlower_l.texi: Renamed from
32878         doc/glibc-functions/iswlower_l.texi.
32879         * doc/posix-functions/iswprint_l.texi: Renamed from
32880         doc/glibc-functions/iswprint_l.texi.
32881         * doc/posix-functions/iswpunct_l.texi: Renamed from
32882         doc/glibc-functions/iswpunct_l.texi.
32883         * doc/posix-functions/iswspace_l.texi: Renamed from
32884         doc/glibc-functions/iswspace_l.texi.
32885         * doc/posix-functions/iswupper_l.texi: Renamed from
32886         doc/glibc-functions/iswupper_l.texi.
32887         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32888         doc/glibc-functions/iswxdigit_l.texi.
32889         * doc/posix-functions/isxdigit_l.texi: Renamed from
32890         doc/glibc-functions/isxdigit_l.texi.
32891         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32892         doc/glibc-functions/mbsnrtowcs.texi.
32893         * doc/posix-functions/mkdtemp.texi: Renamed from
32894         doc/glibc-functions/mkdtemp.texi.
32895         * doc/posix-functions/newlocale.texi: Renamed from
32896         doc/glibc-functions/newlocale.texi.
32897         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32898         doc/glibc-functions/nl_langinfo_l.texi.
32899         * doc/posix-functions/open_memstream.texi: Renamed from
32900         doc/glibc-functions/open_memstream.texi.
32901         * doc/posix-functions/opterr.texi: Renamed from
32902         doc/glibc-functions/opterr.texi.
32903         * doc/posix-functions/optind.texi: Renamed from
32904         doc/glibc-functions/optind.texi.
32905         * doc/posix-functions/optopt.texi: Renamed from
32906         doc/glibc-functions/optopt.texi.
32907         * doc/posix-functions/psignal.texi: Renamed from
32908         doc/glibc-functions/psignal.texi.
32909         * doc/posix-functions/scandir.texi: Renamed from
32910         doc/glibc-functions/scandir.texi.
32911         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32912         doc/glibc-functions/sched_get_priority_min.texi.
32913         * doc/posix-functions/signgam.texi: Renamed from
32914         doc/glibc-functions/signgam.texi.
32915         * doc/posix-functions/stpcpy.texi: Renamed from
32916         doc/glibc-functions/stpcpy.texi.
32917         * doc/posix-functions/stpncpy.texi: Renamed from
32918         doc/glibc-functions/stpncpy.texi.
32919         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32920         doc/glibc-functions/strcasecmp_l.texi.
32921         * doc/posix-functions/strcoll_l.texi: Renamed from
32922         doc/glibc-functions/strcoll_l.texi.
32923         * doc/posix-functions/strfmon_l.texi: Renamed from
32924         doc/glibc-functions/strfmon_l.texi.
32925         * doc/posix-functions/strftime_l.texi: Renamed from
32926         doc/glibc-functions/strftime_l.texi.
32927         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32928         doc/glibc-functions/strncasecmp_l.texi.
32929         * doc/posix-functions/strndup.texi: Renamed from
32930         doc/glibc-functions/strndup.texi.
32931         * doc/posix-functions/strnlen.texi: Renamed from
32932         doc/glibc-functions/strnlen.texi.
32933         * doc/posix-functions/strsignal.texi: Renamed from
32934         doc/glibc-functions/strsignal.texi.
32935         * doc/posix-functions/strxfrm_l.texi: Renamed from
32936         doc/glibc-functions/strxfrm_l.texi.
32937         * doc/posix-functions/timer_gettime.texi: Renamed from
32938         doc/glibc-functions/timer_gettime.texi.
32939         * doc/posix-functions/tolower_l.texi: Renamed from
32940         doc/glibc-functions/tolower_l.texi.
32941         * doc/posix-functions/toupper_l.texi: Renamed from
32942         doc/glibc-functions/toupper_l.texi.
32943         * doc/posix-functions/towctrans_l.texi: Renamed from
32944         doc/glibc-functions/towctrans_l.texi.
32945         * doc/posix-functions/towlower_l.texi: Renamed from
32946         doc/glibc-functions/towlower_l.texi.
32947         * doc/posix-functions/towupper_l.texi: Renamed from
32948         doc/glibc-functions/towupper_l.texi.
32949         * doc/posix-functions/uselocale.texi: Renamed from
32950         doc/glibc-functions/uselocale.texi.
32951         * doc/posix-functions/vdprintf.texi: Renamed from
32952         doc/glibc-functions/vdprintf.texi.
32953         * doc/posix-functions/wcpcpy.texi:
32954         Renamed from doc/glibc-functions/wcpcpy.texi.
32955         * doc/posix-functions/wcpncpy.texi: Renamed from
32956         doc/glibc-functions/wcpncpy.texi.
32957         * doc/posix-functions/wcscasecmp.texi: Renamed from
32958         doc/glibc-functions/wcscasecmp.texi.
32959         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32960         doc/glibc-functions/wcscasecmp_l.texi.
32961         * doc/posix-functions/wcscoll_l.texi: Renamed from
32962         doc/glibc-functions/wcscoll_l.texi.
32963         * doc/posix-functions/wcsdup.texi: Renamed from
32964         doc/glibc-functions/wcsdup.texi.
32965         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32966         doc/glibc-functions/wcsncasecmp.texi.
32967         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32968         doc/glibc-functions/wcsncasecmp_l.texi.
32969         * doc/posix-functions/wcsnlen.texi: Renamed from
32970         doc/glibc-functions/wcsnlen.texi.
32971         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32972         doc/glibc-functions/wcsnrtombs.texi.
32973         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32974         doc/glibc-functions/wcsxfrm_l.texi.
32975         * doc/posix-functions/wctrans_l.texi: Renamed from
32976         doc/glibc-functions/wctrans_l.texi.
32977         * doc/posix-functions/wctype_l.texi: Renamed from
32978         doc/glibc-functions/wctype_l.texi.
32979         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32980         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32981         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32982         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32983         these subsections.
32984         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32985         Remove sections.
32986
32987 2008-12-14  Bruno Haible  <bruno@clisp.org>
32988
32989         Update doc for POSIX:2008.
32990         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32991
32992 2008-12-14  Bruno Haible  <bruno@clisp.org>
32993
32994         Update doc for POSIX:2008.
32995         * doc/pastposix-functions/bcmp.texi: Renamed from
32996         doc/posix-functions/bcmp.texi.
32997         * doc/pastposix-functions/bcopy.texi: Renamed from
32998         doc/posix-functions/bcopy.texi.
32999         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33000         doc/posix-functions/bsd_signal.texi.
33001         * doc/pastposix-functions/bzero.texi: Renamed from
33002         doc/posix-functions/bzero.texi.
33003         * doc/pastposix-functions/ecvt.texi: Renamed from
33004         doc/posix-functions/ecvt.texi.
33005         * doc/pastposix-functions/fcvt.texi: Renamed from
33006         doc/posix-functions/fcvt.texi.
33007         * doc/pastposix-functions/ftime.texi: Renamed from
33008         doc/posix-functions/ftime.texi.
33009         * doc/pastposix-functions/gcvt.texi: Renamed from
33010         doc/posix-functions/gcvt.texi.
33011         * doc/pastposix-functions/getcontext.texi: Renamed from
33012         doc/posix-functions/getcontext.texi.
33013         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33014         doc/posix-functions/gethostbyaddr.texi.
33015         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33016         doc/posix-functions/gethostbyname.texi.
33017         * doc/pastposix-functions/getwd.texi: Renamed from
33018         doc/posix-functions/getwd.texi.
33019         * doc/pastposix-functions/h_errno.texi: Renamed from
33020         doc/posix-functions/h_errno.texi.
33021         * doc/pastposix-functions/index.texi: Renamed from
33022         doc/posix-functions/index.texi.
33023         * doc/pastposix-functions/makecontext.texi: Renamed from
33024         doc/posix-functions/makecontext.texi.
33025         * doc/pastposix-functions/mktemp.texi: Renamed from
33026         doc/posix-functions/mktemp.texi.
33027         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33028         doc/posix-functions/pthread_attr_getstackaddr.texi.
33029         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33030         doc/posix-functions/pthread_attr_setstackaddr.texi.
33031         * doc/pastposix-functions/rindex.texi: Renamed from
33032         doc/posix-functions/rindex.texi.
33033         * doc/pastposix-functions/scalb.texi: Renamed from
33034         doc/posix-functions/scalb.texi.
33035         * doc/pastposix-functions/setcontext.texi: Renamed from
33036         doc/posix-functions/setcontext.texi.
33037         * doc/pastposix-functions/swapcontext.texi: Renamed from
33038         doc/posix-functions/swapcontext.texi.
33039         * doc/pastposix-functions/ualarm.texi: Renamed from
33040         doc/posix-functions/ualarm.texi.
33041         * doc/pastposix-functions/usleep.texi: Renamed from
33042         doc/posix-functions/usleep.texi.
33043         * doc/pastposix-functions/vfork.texi: Renamed from
33044         doc/posix-functions/vfork.texi.
33045         * doc/pastposix-functions/wcswcs.texi: Renamed from
33046         doc/posix-functions/wcswcs.texi.
33047         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33048         (Function Substitutes): Update.
33049
33050 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33051
33052         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33053         m4/strerror.m4.
33054
33055 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33056             Bruno Haible  <bruno@clisp.org>
33057
33058         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33059
33060 2008-12-13  Bruno Haible  <bruno@clisp.org>
33061
33062         * modules/strtoull (Depends-on): Remove unistd.
33063
33064 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33065
33066         * modules/strtoull (Depends-on): Add stdlib.
33067
33068 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33069
33070         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33071
33072 2008-12-10  Jim Meyering  <meyering@redhat.com>
33073
33074         gl_ASSERT: don't say assertions are disabled when they're not
33075         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33076         "checking whether to enable assertions... no", when they are in
33077         fact enabled.  This is solely a bug in the output of configure.
33078         In spite of saying "no", NDEBUG was not defined in that case.
33079         Also, as noted by Eric Blake, leave assertions enabled upon
33080         --enable-assert=INVALID.
33081
33082 2008-12-10  Bruno Haible  <bruno@clisp.org>
33083
33084         Change MODULES.html to refer to POSIX:2008 where possible.
33085         * MODULES.html.sh (POSIX2008_URL): New variable.
33086         (posix_headers): Remove sys/timeb, ucontext.
33087         (posix2001_headers): New variable.
33088         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33089         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33090         index, makecontext, mktemp, pthread_attr_getstackaddr,
33091         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33092         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33093         (posix2001_functions): New variable.
33094         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33095         otherwise.
33096
33097 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33098
33099         add missing include to parse-duration.c
33100         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33101         * modules/parse-duration (Depends-on): Add xalloc.
33102
33103         fix sed script reading maint.mk
33104         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33105         (syntax-check-rules): Use it.
33106
33107 2008-12-09  Bruno Haible  <bruno@clisp.org>
33108
33109         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33110         MacOS X 10.4/PowerPC.
33111         Reported by Simon Josefsson.
33112
33113 2008-12-08  Jim Meyering  <meyering@redhat.com>
33114
33115         work around mingw's lack of some S_IF definitions
33116         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33117         Reported by Simon Josefsson.
33118
33119 2008-12-08  Bruno Haible  <bruno@clisp.org>
33120
33121         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33122         applied to variables. Needed on MacOS X 10.4/PowerPC.
33123         Reported by Simon Josefsson.
33124
33125 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33126         and Eric Blake  <ebb9@byu.net>
33127
33128         assert: honor --enable-assert
33129         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33130         order to honor --enable-assert, rather than treating it as a
33131         synonym for --disable-assert.
33132
33133 2008-12-08  Jim Meyering  <meyering@redhat.com>
33134
33135         * lib/posixtm.c: Remove now-useless declaration of mktime.
33136
33137         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33138
33139 2008-12-07  Bruno Haible  <bruno@clisp.org>
33140
33141         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33142         test_once): Mark functions as static.
33143         * tests/test-tls.c (test_tls): Likewise.
33144
33145 2008-12-07  Bruno Haible  <bruno@clisp.org>
33146
33147         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33148         iconv_register_autodetect.
33149
33150 2008-12-07  Jim Meyering  <meyering@redhat.com>
33151
33152         posixtm.c: avoid a warning
33153         * lib/posixtm.c (posixtime): Don't initialize tm0.
33154         It's no longer needed to placate gcc4's -Wuninitialized,
33155         and the attempt to placate would elicit a new warning.
33156
33157         unicodeio.c: mark unused parameters
33158         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33159         (fallback_failure_callback): Likewise.
33160
33161 2008-12-07  Bruno Haible  <bruno@clisp.org>
33162
33163         * gnulib-tool (func_create_testdir): When building the tests
33164         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33165         Reported by Simon Josefsson.
33166
33167 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33168
33169         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33170
33171 2008-12-06  Bruno Haible  <bruno@clisp.org>
33172
33173         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33174         Suggested by Eric Blake.
33175
33176 2008-12-06  Bruno Haible  <bruno@clisp.org>
33177
33178         Fix a c-stack test failure on MacOS X.
33179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33180         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33181         handler for SIGBUS as well.
33182         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33183         install a signal handler for SIGBUS as well.
33184         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33185
33186 2008-12-06  Bruno Haible  <bruno@clisp.org>
33187
33188         Advocacy documentation.
33189         * doc/gnulib-intro.texi (Benefits): New section.
33190         * doc/gnulib.texi: Update.
33191
33192 2008-12-06  Bruno Haible  <bruno@clisp.org>
33193
33194         Document the 'manywarnings' module.
33195         * doc/manywarnings.texi: New file.
33196         * doc/gnulib.texi: Include it.
33197
33198 2008-12-05  Eric Blake  <ebb9@byu.net>
33199
33200         tests: silence some gcc warnings
33201         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33202         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33203         type mismatches.
33204
33205 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33206             Bruno Haible  <bruno@clisp.org>
33207
33208         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33209
33210 2008-11-29  Jim Meyering  <meyering@redhat.com>
33211
33212         unicodeio.c: mark unused parameters
33213         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33214         (fallback_failure_callback): Likewise.
33215
33216         fts: fix a thinko
33217         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33218         (set_stat_type): Return S_IF*-valued "type" directly.
33219         Prompted by James Youngman's spotting a related bug.
33220         Confirmed by further testing through find.
33221
33222         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33223         * lib/fts.c (D_TYPE): Define.
33224         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33225         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33226         (s_ifmt_shift_bits): New function.
33227         (set_stat_type): New function.
33228         (fts_build): When not calling fts_stat, call set_stat_type
33229         to propagate dirent.d_type info to fts_read caller.
33230         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33231         fts_statp->st_mode type information may be valid.
33232
33233 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33234
33235         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33236         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33237         <sds@gnu.org>.
33238
33239 2008-11-20  Bruno Haible  <bruno@clisp.org>
33240
33241         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33242         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33243         INCLUDE_NEXT.
33244         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33245         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33246         * modules/math (Makefile.am): Substitute
33247         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33248         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33249
33250 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33251             Bruno Haible  <bruno@clisp.org>
33252
33253         * lib/stdint.in.h: Define all type macros so that their expansion is
33254         a single typedef'ed token. Fixes a compilation failure in Boost which
33255         does "using ::int8_t;".
33256
33257 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33258
33259         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33260         gl_MANYWARN_ALL_GCC.
33261         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33262         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33263         * modules/manywarnings: New file.
33264         * MODULES.html.sh: Mention manywarnings module.
33265
33266 2008-11-18  Bruno Haible  <bruno@clisp.org>
33267
33268         * doc/gnulib-tool.texi (Unit tests): New section.
33269
33270 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33271
33272         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33273         paths like 'lib/po/foo.po'.
33274
33275 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33276
33277         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33278         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33279
33280 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33281
33282         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33283         parameter works.
33284
33285 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33286
33287         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33288
33289 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33290
33291         * modules/parse-duration-tests: New file.
33292         * tests/test-parse-duration.sh: New file.
33293         * tests/test-parse-duration.c: New file.
33294
33295         New module 'parse-duration'.
33296         * lib/parse-duration.h: New file.
33297         * lib/parse-duration.c: New file.
33298         * modules/parse-duration: New file.
33299
33300 2008-11-17  Bruno Haible  <bruno@clisp.org>
33301
33302         * tests/test-select-out.sh: Comment out the first pipe test.
33303         Reported by Simon Josefsson.
33304
33305 2008-11-17  Bruno Haible  <bruno@clisp.org>
33306
33307         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33309         gl_HOSTENT.
33310
33311 2008-11-17  Bruno Haible  <bruno@clisp.org>
33312
33313         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33314         -lnetwork and -lnet. Needed for Haiku and BeOS.
33315
33316 2008-11-16  Bruno Haible  <bruno@clisp.org>
33317
33318         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33319
33320 2008-11-16  Bruno Haible  <bruno@clisp.org>
33321
33322         Avoid test failure on Haiku.
33323         * tests/test-fsync.c: Include <errno.h>.
33324         (main): Don't require that fsync (0) fails.
33325
33326 2008-11-15  Bruno Haible  <bruno@clisp.org>
33327
33328         New module 'hostent'.
33329         * modules/hostent: New file.
33330         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33331
33332 2008-11-15  Bruno Haible  <bruno@clisp.org>
33333
33334         New module 'servent'.
33335         * modules/servent: New file.
33336         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33337
33338 2008-11-15  Bruno Haible  <bruno@clisp.org>
33339
33340         Avoid generating same test program with two different rules.
33341         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
33342         test-frexp to test-frexp-nolibm.
33343         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
33344         test-frexpl to test-frexpl-nolibm.
33345
33346 2008-11-15  Bruno Haible  <bruno@clisp.org>
33347
33348         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
33349         $(FREXPL_LIBM).
33350
33351 2008-11-15  Bruno Haible  <bruno@clisp.org>
33352
33353         * lib/netdb.in.h: Activate the definitions also when the system's
33354         <netdb.h> has 'struct addrinfo'.
33355         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
33356         EAI_OVERFLOW or AI_NUMERICSERV.
33357         * doc/posix-headers/netdb.texi: Document the problem.
33358
33359 2008-11-15  Bruno Haible  <bruno@clisp.org>
33360
33361         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
33362
33363         Make the 'sched' module work on platforms where <sched.h> exists but
33364         is incomplete (such as Haiku).
33365         * lib/sched.in.h; Include the system's <sched.h> if it exists.
33366         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
33367         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
33368         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
33369         HAVE_STRUCT_SCHED_PARAM.
33370         * modules/sched (Depends-on): Add include_next.
33371         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
33372         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
33373         * doc/posix-headers/sched.texi: Document the issue.
33374
33375 2008-11-13  Jim Meyering  <meyering@redhat.com>
33376
33377         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
33378         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
33379         test would fail due to the difference in the Report bugs to ...
33380         line.  The expected address is empty, "<>", while the actual
33381         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
33382
33383 2008-11-12  Bruno Haible  <bruno@clisp.org>
33384
33385         lstat: don't compile lstat.c on systems lacking lstat
33386         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
33387         which don't have lstat; this is handled by lib/sys_stat.in.h already.
33388         Reported by Daniel P. Berrange via Jim Meyering.
33389
33390 2008-11-12  Jim Meyering  <meyering@redhat.com>
33391
33392         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
33393
33394 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33395
33396         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
33397         instead.
33398
33399 2008-11-12  Bruno Haible  <bruno@clisp.org>
33400
33401         * lib/unicodeio.c: Include unistr.h.
33402         (utf8_wctomb): Remove function.
33403         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
33404
33405 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33406
33407         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
33408         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
33409         <bruno@clisp.org>.
33410         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
33411
33412 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33413
33414         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
33415         * doc/gnulib.texi: Add section for warnings.
33416
33417 2008-11-11  Bruno Haible  <bruno@clisp.org>
33418
33419         * lib/sockets.h: Add a comment.
33420
33421 2008-11-11  Karl Berry  <karl@gnu.org>
33422
33423         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
33424
33425 2008-11-11  Eric Blake  <ebb9@byu.net>
33426
33427         fdl.texi: avoid git symlinks
33428         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
33429
33430 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33431
33432         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
33433
33434 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33435
33436         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
33437         (gl_WARN_ADD): Substitute $2 if literal.
33438
33439 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33440
33441         * m4/warning.m4: Remove.
33442
33443 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33444
33445         * m4/warnings.m4: Almost complete rewrite. :-)
33446
33447 2008-11-10  Simon Josefsson  <simon@josefsson.org>
33448
33449         * modules/warnings: New module.
33450         * m4/warnings.m4: New file.
33451         * MODULES.html.sh: Mention warnings module.
33452         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
33453         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33454
33455 2008-11-10  Eric Blake  <ebb9@byu.net>
33456
33457         fdl.texi: make a symlink to the latest version
33458         * doc/standards.texi: Revert today's earlier change.
33459         * doc/fdl-1.2.texi: Rename from old fdl.texi...
33460         * doc/fdl.texi: ...and replace this with a symlink to the newer
33461         fdl-1.3.texi.
33462
33463 2008-11-10  Bruno Haible  <bruno@clisp.org>
33464
33465         * tests/test-select-fd.c (main): Accept the result file name as fourth
33466         argument.
33467         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
33468         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
33469
33470 2008-11-10  Bruno Haible  <bruno@clisp.org>
33471
33472         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
33473         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
33474         as autoconf-substituted macros.
33475         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
33476         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
33477         gl_NETDB_H_DEFAULTS. Set these variables.
33478         * modules/netdb (Makefile.am): Substitute these variables.
33479
33480 2008-11-10  Eric Blake  <ebb9@byu.net>
33481
33482         standards.texi: include correct file for FDL 1.3
33483         * doc/standards.texi (GNU Free Documentation License): Change
33484         include file to pull in FDL 1.3, not 1.2.
33485
33486         fdl.texi: revert accidental change to license
33487         * doc/fdl.texi: This is FDL 1.2, not 1.3.
33488
33489 2008-11-10  Bruno Haible  <bruno@clisp.org>
33490
33491         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
33492         cross-compiling guesses also when the native compile gives no result.
33493
33494 2008-11-10  Bruno Haible  <bruno@clisp.org>
33495
33496         * lib/spawni.c (__spawni): Force variable into the stack.
33497
33498 2008-11-10  Bruno Haible  <bruno@clisp.org>
33499
33500         Add support for Haiku.
33501         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
33502         glibc and BeOS, but also on Haiku.
33503         * lib/fpurge.c (fpurge): Likewise.
33504         * lib/freadable.c (freadable): Likewise.
33505         * lib/freadahead.c (freadahead): Likewise.
33506         * lib/freading.c (freading): Likewise.
33507         * lib/freadptr.c (freadptr): Likewise.
33508         * lib/freadseek.c (freadptrinc): Likewise.
33509         * lib/fseeko.c (rpl_fseeko): Likewise.
33510         * lib/fseterr.c (fseterr): Likewise.
33511         * lib/fwritable.c (fwritable): Likewise.
33512         * lib/fwriting.c (fwriting): Likewise.
33513         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
33514
33515 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33516
33517         * lib/config.charset: Treat Haiku like BeOS.
33518
33519 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33520
33521         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
33522         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
33523
33524 2008-11-08  Bruno Haible  <bruno@clisp.org>
33525
33526         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
33527         AC_CACHE_CHECK.
33528
33529 2008-11-08  Bruno Haible  <bruno@clisp.org>
33530
33531         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
33532
33533 2008-11-08  Bruno Haible  <bruno@clisp.org>
33534
33535         * tests/test-select-fd.c: New file.
33536         * tests/test-select-in.sh: New file.
33537         * tests/test-select-out.sh: New file.
33538         * tests/test-select-stdin.c: New file.
33539         * modules/select-tests (Files): Add the new files.
33540         (Depends-on): Add gettimeofday.
33541         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
33542         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
33543         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
33544
33545 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
33546             Bruno Haible  <bruno@clisp.org>
33547
33548         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
33549
33550 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
33551
33552         * build-aux/pmccabe2html: Added support for C++ source files.
33553
33554 2008-11-05  Ben Pfaff  <blp@gnu.org>
33555
33556         Fix lib/close.c build on Windows.
33557         * modules/close (Files): Add lib/w32sock.h.
33558
33559 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33560
33561         Accept Bison's NEWS format.
33562         * build-aux/announce-gen (print_news_deltas): Tweak
33563         $re_prefix.
33564
33565 2008-11-04  Bruno Haible  <bruno@clisp.org>
33566
33567         * modules/random_r (Maintainer): Add glibc.
33568
33569 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33570
33571         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33572         by karl@freefriends.org (Karl Berry).
33573         * doc/alloca.texi: Likewise.
33574         * doc/c-ctype.texi: Likewise.
33575         * doc/c-strcase.texi: Likewise.
33576         * doc/c-strcaseeq.texi: Likewise.
33577         * doc/c-strcasestr.texi: Likewise.
33578         * doc/c-strstr.texi: Likewise.
33579         * doc/c-strtod.texi: Likewise.
33580         * doc/c-strtold.texi: Likewise.
33581         * doc/ctime.texi: Likewise.
33582         * doc/error.texi: Likewise.
33583         * doc/fdl.texi: Likewise.
33584         * doc/gcd.texi: Likewise.
33585         * doc/getdate.texi: Likewise.
33586         * doc/gnulib-intro.texi: Likewise.
33587         * doc/gnulib-tool.texi: Likewise.
33588         * doc/gnulib.texi: Likewise.
33589         * doc/inet_ntoa.texi: Likewise.
33590         * doc/maintain.texi: Likewise.
33591         * doc/make-stds.texi: Likewise.
33592         * doc/quote.texi: Likewise.
33593         * doc/regexprops-generic.texi: Likewise.
33594         * doc/standards.texi: Likewise.
33595         * doc/verify.texi: Likewise.
33596         * doc/visibility.texi: Likewise.
33597         * doc/gnulib.texi (GNU Free Documentation License): Include
33598         fdl-1.3.texi instead of fdl.texi.
33599
33600 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33601
33602         * doc/fdl-1.3.texi: New file, from
33603         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33604         * modules/fdl-1.3: Add.
33605         * MODULES.html.sh: Add fdl-1.3.
33606
33607 2008-11-03  Bruno Haible  <bruno@clisp.org>
33608
33609         Make determination of absolute name of header file work with AIX xlc.
33610         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33611         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33612         preprocessing.
33613         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33614         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33615
33616 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33617
33618         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33619         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33620         <ludo@gnu.org>.
33621
33622 2008-11-02  Bruno Haible  <bruno@clisp.org>
33623
33624         Mark 'strpbrk' obsolete.
33625         * modules/strpbrk (Status, Notice): New sections.
33626         * modules/strtok_r (Depends-on): Add strpbrk.
33627
33628 2008-11-02  Bruno Haible  <bruno@clisp.org>
33629
33630         Mark 'strdup' obsolete.
33631         * modules/strdup (Status, Notice): New sections.
33632         * modules/findprog (Depends-on): Add strdup.
33633         * modules/getaddrinfo (Depends-on): Likewise.
33634         * modules/localename (Depends-on): Likewise.
33635         * modules/relocatable-lib (Depends-on): Likewise.
33636         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33637         * modules/relocatable-prog (Depends-on): Likewise.
33638         * modules/trim (Depends-on): Likewise.
33639         * modules/unictype/gen-ctype (Depends-on): Likewise.
33640         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33641
33642 2008-11-02  Bruno Haible  <bruno@clisp.org>
33643
33644         Mark 'strcspn' obsolete.
33645         * modules/strcspn (Status, Notice): New sections.
33646
33647 2008-11-02  Bruno Haible  <bruno@clisp.org>
33648
33649         Mark 'rmdir' obsolete.
33650         * modules/rmdir (Status, Notice): New sections.
33651         * modules/clean-temp (Depends-on): Add rmdir.
33652         * modules/openat (Depends-on): Likewise.
33653
33654 2008-11-02  Bruno Haible  <bruno@clisp.org>
33655
33656         Mark 'raise' obsolete.
33657         * modules/raise (Status, Notice): New sections.
33658         (Include): Specify <signal.h>.
33659         * modules/stdio (Depends-on): Add raise.
33660         * modules/write (Depends-on): Likewise.
33661
33662 2008-11-02  Bruno Haible  <bruno@clisp.org>
33663
33664         Mark 'memset' obsolete.
33665         * modules/memset (Status, Notice): New sections.
33666
33667 2008-11-02  Bruno Haible  <bruno@clisp.org>
33668
33669         Mark 'memmove' obsolete.
33670         * modules/memmove (Status, Notice): New sections.
33671         * modules/argp (Depends-on): Add memmove.
33672         * modules/argz (Depends-on): Likewise.
33673         * modules/canonicalize (Depends-on): Likewise.
33674         * modules/canonicalize-lgpl (Depends-on): Likewise.
33675         * modules/fts (Depends-on): Likewise.
33676         * modules/getcwd (Depends-on): Likewise.
33677         * modules/human (Depends-on): Likewise.
33678         * modules/regex (Depends-on): Likewise.
33679         * modules/striconveh (Depends-on): Likewise.
33680         * modules/trim (Depends-on): Likewise.
33681         * modules/unistr/u8-move (Depends-on): Likewise.
33682         * modules/unistr/u16-move (Depends-on): Likewise.
33683         * modules/unistr/u32-move (Depends-on): Likewise.
33684
33685 2008-11-02  Bruno Haible  <bruno@clisp.org>
33686
33687         Mark 'memcpy' obsolete.
33688         * modules/memcpy (Status, Notice): New sections.
33689
33690 2008-11-02  Bruno Haible  <bruno@clisp.org>
33691
33692         Mark 'memcmp' obsolete.
33693         * modules/memcmp (Status, Notice): New sections.
33694         * modules/argmatch (Depends-on): Add memchr.
33695         * modules/backupfile (Depends-on): Likewise.
33696         * modules/c-strcasestr (Depends-on): Likewise.
33697         * modules/crypto/des (Depends-on): Likewise.
33698         * modules/csharpcomp (Depends-on): Likewise.
33699         * modules/fnmatch (Depends-on): Likewise.
33700         * modules/git-merge-changelog (Depends-on): Likewise.
33701         * modules/isnand (Depends-on): Likewise.
33702         * modules/isnand-nolibm (Depends-on): Likewise.
33703         * modules/isnanf (Depends-on): Likewise.
33704         * modules/isnanf-nolibm (Depends-on): Likewise.
33705         * modules/isnanl (Depends-on): Likewise.
33706         * modules/isnanl-nolibm (Depends-on): Likewise.
33707         * modules/mbchar (Depends-on): Likewise.
33708         * modules/memcoll (Depends-on): Likewise.
33709         * modules/quotearg (Depends-on): Likewise.
33710         * modules/regex (Depends-on): Likewise.
33711         * modules/relocatable-prog (Depends-on): Likewise.
33712         * modules/same (Depends-on): Likewise.
33713         * modules/signbit (Depends-on): Likewise.
33714         * modules/strcasestr-simple (Depends-on): Likewise.
33715         * modules/unictype/gen-ctype (Depends-on): Likewise.
33716         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33717         * modules/uniname/uniname (Depends-on): Likewise.
33718         * modules/unistr/u8-cmp (Depends-on): Likewise.
33719
33720 2008-11-02  Bruno Haible  <bruno@clisp.org>
33721
33722         Mark 'memchr' obsolete.
33723         * modules/memchr (Status, Notice): New sections.
33724         * modules/argp (Depends-on): Add memchr.
33725         * modules/base64 (Depends-on): Likewise.
33726         * modules/c-strcasestr (Depends-on): Likewise.
33727         * modules/chdir-long (Depends-on): Likewise.
33728         * modules/fnmatch (Depends-on): Likewise.
33729         * modules/getsubopt (Depends-on): Likewise.
33730         * modules/git-merge-changelog (Depends-on): Likewise.
33731         * modules/glob (Depends-on): Likewise.
33732         * modules/strcasestr-simple (Depends-on): Likewise.
33733         * modules/strnlen (Depends-on): Likewise.
33734
33735 2008-11-02  Bruno Haible  <bruno@clisp.org>
33736
33737         Mark 'atexit' obsolete.
33738         * modules/atexit (Status, Notice): New sections.
33739         * modules/chdir-long (Depends-on): Add atexit.
33740         * modules/wait-process (Depends-on): Likewise.
33741
33742 2008-11-02  Bruno Haible  <bruno@clisp.org>
33743
33744         * gnulib-tool: New option --with-obsolete.
33745         (func_usage): Document it.
33746         (func_modules_transitive_closure): Drop obsolete dependencies if
33747         incobsolete is not true.
33748         (func_import): Read and save the incobsolete variable to the cache.
33749
33750 2008-11-02  Bruno Haible  <bruno@clisp.org>
33751
33752         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33753         * gnulib-tool: New option --extract-status.
33754         (func_usage): Document it.
33755         (sed_extract_prog): Recognize it.
33756         (func_get_status): New function.
33757
33758 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33759
33760         * modules/sockets (License): Change from LGPL to LGPLv2+.
33761
33762 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33763
33764         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33765
33766 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33767
33768         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33769         Mention times and sys_times.
33770         * modules/sys_times, modules/sys_times-tests: New modules.
33771         * modules/times, modules/times-tests: Likewise
33772         * m4/sys_times_h.m4: New file.
33773         * lib/sys_times.in.h: Likewise
33774         * lib/times.c: Likewise.
33775         * tests/test-sys_times.c: Likewise.
33776         * tests/test-times.c: Likewise.
33777         * doc/posix-headers/sys_times.texi: Update.
33778         * doc/posix-functions/times.texi: Update.
33779
33780 2008-10-28  Jim Meyering  <meyering@redhat.com>
33781
33782         * modules/tempname (Depends-on): Add lstat.
33783
33784         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33785
33786 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33787
33788         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33789         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33790         using idiom used elsewhere in gnulib.
33791
33792 2008-10-27  Jim Meyering  <meyering@redhat.com>
33793
33794         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33795
33796 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33797
33798         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33799         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33800         programs.
33801         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33802
33803 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33804
33805         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33806
33807 2008-10-27  Bruno Haible  <bruno@clisp.org>
33808
33809         * tests/test-lstat.c: Include <stdio.h>.
33810
33811 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33812
33813         * modules/lstat-tests: New module.
33814         * tests/test-lstat.c: New file.
33815
33816 2008-10-26  Jim Meyering  <meyering@redhat.com>
33817
33818         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33819
33820 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33821             Bruno Haible  <bruno@clisp.org>
33822
33823         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33824         * modules/configmake (Include): Add a note that the include must come
33825         after all system headers.
33826         * lib/javaversion.c: Include configmake.h after all other includes.
33827
33828 2008-10-26  Bruno Haible  <bruno@clisp.org>
33829
33830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33831         HAVE_STRUCT_RANDOM_DATA to 1.
33832         (gl_STDLIB_H): Simplify.
33833
33834 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33835
33836         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33837         substitute HAVE_STRUCT_RANDOM_DATA.
33838         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33839         random_data.
33840         * modules/stdlib (Makefile.am): Substitute
33841         HAVE_STRUCT_RANDOM_DATA.
33842
33843 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33844
33845         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33846         * doc/gnulib-intro.texi (Copyright): Likewise.
33847
33848 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33849
33850         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33851         findings.
33852
33853 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33854             Bruno Haible  <bruno@clisp.org>
33855
33856         * lib/unistd.in.h: Include <winsock2.h>.
33857         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33858         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33859         Provide dummy declarations.
33860         (gethostname): Override.
33861         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33862         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33863         gl_PREREQ_SYS_H_WINSOCK2.
33864         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33865         * doc/posix-functions/gethostname.texi: More details.
33866
33867 2008-10-25  Bruno Haible  <bruno@clisp.org>
33868
33869         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33870         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33871         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33872
33873         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33874         here ...
33875         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33876         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33877         gl_UNISTD_H_DEFAULTS.
33878
33879 2008-10-25  Eric Blake  <ebb9@byu.net>
33880
33881         signbit: avoid spurious compiler failure
33882         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33883         declarations inside function.
33884
33885 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33886             Bruno Haible  <bruno@clisp.org>
33887
33888         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33889         * modules/random_r (Depends-on): Add stdint.
33890
33891 2008-10-24  Bruno Haible  <bruno@clisp.org>
33892
33893         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33894         Eggert.
33895         * modules/strerror (License): Likewise.
33896
33897 2008-10-24  Jim Meyering  <meyering@redhat.com>
33898
33899         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33900         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33901
33902 2008-10-24  Eric Blake  <ebb9@byu.net>
33903
33904         getgroups: fix compilation when getgroups is available
33905         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33906         but with <config.h> override of getgroups disabled.
33907
33908 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33909
33910         * doc/gnulib.texi (Header files): Add note about C++ problems.
33911         Explained by Bruno Haible <bruno@clisp.org>.
33912
33913 2008-10-23  Bruno Haible  <bruno@clisp.org>
33914
33915         Define a dummy SA_NODEFER macro on Interix.
33916         * lib/signal.in.h (SA_NODEFER): Define fallback.
33917         Reported by Aleksey Cheusov <cheusov@tut.by> via
33918         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33919
33920 2008-10-23  Bruno Haible  <bruno@clisp.org>
33921
33922         * modules/freadahead (License): Change to LGPLv2+.
33923         Suggested by Simon Josefsson.
33924
33925 2008-10-23  Jim Meyering  <meyering@redhat.com>
33926
33927         random_r: new module
33928         * modules/random_r: New file.
33929         * m4/random_r.m4: New file.
33930         * lib/random_r.c: New file, from glibc.
33931         * modules/random_r-tests: New file.
33932         * tests/test-random_r.c: New file.
33933         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33934          Declare.
33935         (RAND_MAX): Define.
33936         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33937         * modules/stdlib: Substitute them, too.
33938         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33939         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33940         * doc/glibc-functions/random_r.texi: Likewise.
33941         * doc/glibc-functions/setstate_r.texi: Likewise.
33942         * doc/glibc-functions/srandom_r.texi: Likewise.
33943         * config/srclist.txt: Mention it.
33944
33945 2008-10-23  David Lutterkort  <lutter@redhat.com>
33946
33947         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33948         link requirement
33949
33950 2008-10-23  Jim Meyering  <meyering@redhat.com>
33951
33952         selinux-h: mark parameters of stub functions as intentionally unused
33953         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33954         * lib/se-context.in.h: Likewise.
33955
33956 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33957
33958         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33959
33960 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33961
33962         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33963
33964 2008-10-22  Eric Blake  <ebb9@byu.net>
33965
33966         glthread/thread: avoid compiler warning
33967         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33968         Add unreachable abort to silence compiler.
33969
33970 2008-10-22  Eric Blake  <ebb9@byu.net>
33971
33972         netdb: also supply struct addrinfo for cygwin 1.5.x
33973         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33974         older cygwin.
33975         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33976         cygwin.
33977         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33978
33979 2008-10-22  Bruno Haible  <bruno@clisp.org>
33980
33981         * users.txt: Update entry about pspp.
33982
33983 2008-10-21  Bruno Haible  <bruno@clisp.org>
33984
33985         Simplification.
33986         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33987         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33988
33989         Simplification.
33990         * lib/ioctl.c (ioctl): Don't undefine.
33991         * lib/socket.c (socket): Don't undefine.
33992
33993         Remove unused module indicator macros.
33994         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33995         GNULIB_$1 as a C macro.
33996
33997         * doc/posix-functions/close.texi: Undo last change.
33998         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33999         Windows platforms.
34000
34001 2008-10-21  Bruno Haible  <bruno@clisp.org>
34002
34003         Add gethostname() declaration to <unistd.h>.
34004         * lib/unistd.in.h (gethostname): New declaration.
34005         * lib/gethostname.c: Include <unistd.h>.
34006         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34007         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34009         and HAVE_GETHOSTNAME.
34010         * modules/gethostname (Depends-on): Add unistd.
34011         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34012         (Include): Specify <unistd.h>.
34013         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34014         HAVE_GETHOSTNAME.
34015         * tests/test-gethostname.c: Include <unistd.h> first.
34016
34017 2008-10-21  Bruno Haible  <bruno@clisp.org>
34018
34019         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34020         * modules/select-tests (Depends-on): Likewise.
34021         Reported by Simon Josefsson.
34022
34023 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34024
34025         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34026         * lib/accept.c: New file, based on winsock.c.
34027         * lib/bind.c: New file, based on winsock.c.
34028         * lib/connect.c: New file, based on winsock.c.
34029         * lib/getpeername.c: New file, based on winsock.c.
34030         * lib/getsockname.c: New file, based on winsock.c.
34031         * lib/getsockopt.c: New file, based on winsock.c.
34032         * lib/ioctl.c: New file, based on winsock.c.
34033         * lib/listen.c: New file, based on winsock.c.
34034         * lib/recv.c: New file, based on winsock.c.
34035         * lib/recvfrom.c: New file, based on winsock.c.
34036         * lib/send.c: New file, based on winsock.c.
34037         * lib/sendto.c: New file, based on winsock.c.
34038         * lib/setsockopt.c: New file, based on winsock.c.
34039         * lib/shutdown.c: New file, based on winsock.c.
34040         * lib/socket.c: New file, based on winsock.c.
34041         * lib/w32sock.h: New file, based on winsock.c.
34042         * lib/winsock.c: Remove file.
34043         * modules/accept: Likewise.
34044         * modules/bind: Likewise.
34045         * modules/connect: Likewise.
34046         * modules/getpeername: Likewise.
34047         * modules/getsockname: Likewise.
34048         * modules/getsockopt: Likewise.
34049         * modules/ioctl: Likewise.
34050         * modules/listen: Likewise.
34051         * modules/recv: Likewise.
34052         * modules/recvfrom: Likewise.
34053         * modules/send: Likewise.
34054         * modules/sendto: Likewise.
34055         * modules/setsockopt: Likewise.
34056         * modules/shutdown: Likewise.
34057         * modules/socket: Use socket.c instead of winsock.c.
34058         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34059         * doc/posix-functions/accept.texi: Doc fix.
34060         * doc/posix-functions/bind.texi: Doc fix.
34061         * doc/posix-functions/close.texi: Doc fix.
34062         * doc/posix-functions/connect.texi: Doc fix.
34063         * doc/posix-functions/getpeername.texi: Doc fix.
34064         * doc/posix-functions/getsockname.texi: Doc fix.
34065         * doc/posix-functions/getsockopt.texi: Doc fix.
34066         * doc/posix-functions/ioctl.texi: Doc fix.
34067         * doc/posix-functions/listen.texi: Doc fix.
34068         * doc/posix-functions/recv.texi: Doc fix.
34069         * doc/posix-functions/recvfrom.texi: Doc fix.
34070         * doc/posix-functions/send.texi: Doc fix.
34071         * doc/posix-functions/sendto.texi: Doc fix.
34072         * doc/posix-functions/setsockopt.texi: Doc fix.
34073         * doc/posix-functions/shutdown.texi: Doc fix.
34074         * doc/posix-functions/socket.texi: Doc fix.
34075
34076 2008-10-20  Bruno Haible  <bruno@clisp.org>
34077
34078         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34079         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34080         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34081         as an alias for SIGABRT.
34082         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34083         (sigaction): Map it to SIGABRT.
34084         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34085
34086 2008-10-20  Bruno Haible  <bruno@clisp.org>
34087
34088         * lib/fts.c: Don't include lstat.h.
34089         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34090
34091         Move the lstat() declaration to <sys/stat.h>.
34092         * lib/lstat.h: Remove file.
34093         * lib/sys_stat.in.h: Add special invocation convention.
34094         (lstat): New declaration.
34095         * lib/lstat.c (orig_lstat): New function.
34096         (rpl_lstat): Use orig_lstat instead of lstat.
34097         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34098         AC_C_INLINE. Set REPLACE_LSTAT.
34099         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34100         and REPLACE_LSTAT.
34101         * modules/lstat (Files): Remove lib/lstat.h.
34102         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34103         (Include): Specify <sys/stat.h> instead of lstat.h.
34104         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34105         REPLACE_LSTAT.
34106         * NEWS: Mention the change.
34107
34108 2008-10-20  Bruno Haible  <bruno@clisp.org>
34109
34110         * modules/posix_spawn-tests: New file.
34111         * tests/test-posix_spawn3.c: New file.
34112
34113 2008-10-20  Bruno Haible  <bruno@clisp.org>
34114
34115         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34116         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34117         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34118         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34119         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34120
34121 2008-10-20  Bruno Haible  <bruno@clisp.org>
34122
34123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34124         of posix_spawn on AIX 5.3.
34125
34126 2008-10-20  Bruno Haible  <bruno@clisp.org>
34127
34128         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34129
34130 2008-10-20  Bruno Haible  <bruno@clisp.org>
34131
34132         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34133         of AC_LANG_PROGRAM.
34134
34135 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34136
34137         * lib/netdb.in.h: Don't define GNU specific constants until they
34138         are supported or needed.  Reported by Bruno Haible
34139         <bruno@clisp.org>.
34140
34141 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34142
34143         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34144
34145 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34146
34147         * lib/getaddrinfo.h: Remove file.
34148         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34149         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34150         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34151         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34152         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34153         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34154         * tests/test-getaddrinfo.c: Likewise.
34155         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34156         * NEWS: Mention change.
34157
34158 2008-10-19  Bruno Haible  <bruno@clisp.org>
34159
34160         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34161
34162 2008-10-19  Bruno Haible  <bruno@clisp.org>
34163
34164         * lib/wait-process.c: Include simply <sys/wait.h>.
34165         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34166         WIFSTOPPED): Remove fallback definitions.
34167         * modules/wait-process (Depends-on): Add sys_wait.
34168
34169         New module 'sys_wait'.
34170         * modules/sys_wait: New file.
34171         * lib/sys_wait.in.h: New file, partially copied from
34172         lib/wait-process.c.
34173         * m4/sys_wait_h.m4: New file.
34174         * doc/posix-headers/sys_wait.texi: Mention the new module.
34175
34176 2008-10-19  Bruno Haible  <bruno@clisp.org>
34177
34178         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34179
34180 2008-10-19  Bruno Haible  <bruno@clisp.org>
34181
34182         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34183         * lib/wait-process.c (WAIT_T): Remove type.
34184         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34185         (wait_subprocess): Update.
34186
34187 2008-10-19  Bruno Haible  <bruno@clisp.org>
34188
34189         New module 'atoll'.
34190         * modules/atoll: New file.
34191         * lib/stdlib.in.h (atoll): New declaration.
34192         * lib/atoll.c: New file, from glibc with modifications.
34193         * m4/atoll.m4: New file.
34194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34195         HAVE_ATOLL.
34196         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34197         * doc/posix-functions/atoll.texi: Mention the new module.
34198
34199 2008-10-19  Bruno Haible  <bruno@clisp.org>
34200
34201         Add strtoull() declaration to <stdlib.h>.
34202         * lib/stdlib.in.h (strtoull): New declaration.
34203         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34204         Set HAVE_STRTOULL.
34205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34206         HAVE_STRTOULL.
34207         * modules/strtoull (Depends-on): Add stdlib.
34208         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34209         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34210         HAVE_STRTOULL.
34211
34212 2008-10-19  Bruno Haible  <bruno@clisp.org>
34213
34214         Add strtoll() declaration to <stdlib.h>.
34215         * lib/stdlib.in.h (strtoll): New declaration.
34216         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34217         Set HAVE_STRTOLL.
34218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34219         HAVE_STRTOLL.
34220         * modules/strtoll (Depends-on): Add stdlib.
34221         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34222         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34223
34224 2008-10-19  Bruno Haible  <bruno@clisp.org>
34225
34226         * modules/bcopy (Depends-on): Add strings.
34227         (Include): Specify <strings.h>.
34228
34229 2008-10-19  Bruno Haible  <bruno@clisp.org>
34230
34231         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34232
34233 2008-10-19  Bruno Haible  <bruno@clisp.org>
34234
34235         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34236         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34237         mingw.
34238
34239 2008-10-19  Bruno Haible  <bruno@clisp.org>
34240
34241         * lib/atanl.c: Don't include isnanl.h.
34242         * lib/cosl.c: Likewise.
34243         * lib/ldexpl.c: Likewise.
34244         * lib/logl.c: Likewise.
34245         * lib/sinl.c: Likewise.
34246         * lib/sqrtl.c: Likewise.
34247         * lib/tanl.c: Likewise.
34248
34249         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34250         * lib/isnanf.h: Remove file.
34251         * lib/isnand.h: Remove file.
34252         * lib/isnanl.h: Remove file.
34253         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34254         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34255         macros.
34256         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34257         HAVE_ISNANF, don't define it as a C macro.
34258         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34259         HAVE_ISNAND, don't define it as a C macro.
34260         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34261         HAVE_ISNANL, don't define it as a C macro.
34262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34263         HAVE_ISNAN[FDL].
34264         * modules/isnanf (Files): Remove lib/isnanf.h.
34265         (Depends-on): Add math.
34266         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34267         (Include): Specify <math.h> instead of isnanf.h.
34268         * modules/isnand (Files): Remove lib/isnand.h.
34269         (Depends-on): Add math.
34270         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34271         (Include): Specify <math.h> instead of isnand.h.
34272         * modules/isnanl (Files): Remove lib/isnanl.h.
34273         (Depends-on): Add math.
34274         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34275         (Include): Specify <math.h> instead of isnanl.h.
34276         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34277         HAVE_ISNAN[FDL].
34278         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34279         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34280         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34281         * NEWS: Mention the change.
34282
34283 2008-10-18  Bruno Haible  <bruno@clisp.org>
34284
34285         Add getusershell(), setusershell(), endusershell() declarations to
34286         <unistd.h>.
34287         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34288         declarations.
34289         * lib/getusershell.c: Include unistd.h.
34290         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34291         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34292         HAVE_GETUSERSHELL.
34293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34294         and HAVE_GETUSERSHELL.
34295         * modules/getusershell (Depends-on): Add unistd, extensions.
34296         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34297         (Include): Specify <unistd.h>.
34298         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34299         HAVE_GETUSERSHELL.
34300
34301 2008-10-18  Bruno Haible  <bruno@clisp.org>
34302
34303         Add a getloadavg() declaration to <stdlib.h>.
34304         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34305         getloadavg declaration.
34306         (getloadavg): New declaration.
34307         * lib/getloadavg.c: Include <stdlib.h> first.
34308         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34309         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34310         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34312         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34313         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34314         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34315         (Include): Specify <stdlib.h>.
34316         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34317         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34318
34319 2008-10-18  Bruno Haible  <bruno@clisp.org>
34320
34321         * lib/dirchownmod.c: Don't include lchmod.h.
34322
34323         Move the lchmod() declaration to <sys/stat.h>.
34324         * lib/lchmod.h: Remove file.
34325         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34326         (lchmod): New declaration, moved here from lib/lchown.h.
34327         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34328         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34329         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34330         and HAVE_LCHMOD.
34331         * modules/lchmod (Files): Remove lib/lchmod.h.
34332         (Depends-on): Add sys_stat, extensions.
34333         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34334         (Include): Specify <sys/stat.h> instead of lchmod.h.
34335         * modules/sys_stat (Depends-on): Add link-warning.
34336         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34337         definition of GL_LINK_WARNING.
34338         * NEWS: Mention the change.
34339
34340 2008-10-18  Bruno Haible  <bruno@clisp.org>
34341
34342         * lib/fchdir.c: Don't include dirfd.h.
34343         * lib/fts.c: Likewise.
34344         * lib/getcwd.c: Likewise.
34345         * lib/glob.c: Likewise.
34346
34347         Move the dirfd() declaration to <dirent.h>.
34348         * lib/dirfd.h: Remove file.
34349         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
34350         (dirfd): New declaration.
34351         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
34352         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
34353         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
34354         HAVE_DECL_DIRFD.
34355         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
34356         HAVE_DECL_DIRFD.
34357         * modules/dirfd (Files): Remove lib/dirfd.h.
34358         (Depends-on): Add dirent, extensions.
34359         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
34360         (Include): Specify <dirent.h> instead of dirfd.h.
34361         * modules/dirent (Depends-on): Add link-warning.
34362         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
34363         definition of GL_LINK_WARNING.
34364         * NEWS: Mention the change.
34365
34366 2008-10-18  Bruno Haible  <bruno@clisp.org>
34367
34368         Move the euidaccess() declaration to <unistd.h>.
34369         * lib/euidaccess.h: Remove file.
34370         * lib/unistd.in.h (euidaccess): New declaration.
34371         * lib/euidaccess.c: Don't include euidaccess.h.
34372         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
34373         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
34374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
34375         and HAVE_EUIDACCESS.
34376         * modules/euidaccess (Files): Remove lib/euidaccess.h.
34377         (Depends-on): Add unistd.
34378         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34379         (Include): Specify <unistd.h> instead of euidaccess.h.
34380         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
34381         HAVE_EUIDACCESS.
34382         * NEWS: Mention the change.
34383
34384 2008-10-18  Bruno Haible  <bruno@clisp.org>
34385
34386         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
34387
34388         Move the getdomainname() declaration to <unistd.h>.
34389         * lib/getdomainname.h: Remove file.
34390         * lib/unistd.in.h (getdomainname): New declaration.
34391         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
34392         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
34393         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34394         HAVE_GETDOMAINNAME.
34395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34396         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
34397         * modules/getdomainname (Files): Remove lib/getdomainname.h.
34398         (Depends-on): Add unistd, extensions.
34399         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34400         (Includes): Specify <unistd.h> instead of getdomainname.h.
34401         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
34402         HAVE_GETDOMAINNAME.
34403         * NEWS: Mention the change.
34404
34405 2008-10-18  Bruno Haible  <bruno@clisp.org>
34406
34407         * modules/dirent: New file.
34408         * m4/dirent_h.m4: New file.
34409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
34410         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
34411         * modules/fchdir (Files): Remove lib/dirent.in.h.
34412         (Depends-on): Add dirent.
34413         (Makefile.am): Move rules to modules/dirent.
34414         * doc/posix-headers/dirent.texi: Mention the new module.
34415
34416 2008-10-18  Bruno Haible  <bruno@clisp.org>
34417
34418         Avoid -Wunused-parameter warnings in public gnulib header files.
34419         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
34420         macro.
34421         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
34422
34423 2008-10-18  Bruno Haible  <bruno@clisp.org>
34424
34425         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
34426         * doc/glibc-functions/error.texi: Mention the module 'error'.
34427         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
34428         * doc/glibc-functions/getdomainname.texi: Mention the module
34429         'getdomainname'.
34430         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
34431         * doc/glibc-functions/getpagesize.texi: Mention the module
34432         'getpagesize'.
34433         * doc/glibc-functions/getusershell.texi: Mention the module
34434         'getusershell'.
34435         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
34436         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
34437         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
34438         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
34439         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
34440         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
34441         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
34442         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
34443         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
34444         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
34445         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
34446         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
34447         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
34448         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
34449
34450 2008-10-17  Bruno Haible  <bruno@clisp.org>
34451
34452         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
34453         HP-UX and IRIX, use -0.0L.
34454         * tests/test-ceill.c (minus_zero): Likewise.
34455         * tests/test-floorl.c (minus_zero): Likewise.
34456         * tests/test-frexpl.c (minus_zero): Likewise.
34457         * tests/test-isnan.c (minus_zerol): Likewise.
34458         * tests/test-isnanl.h (minus_zero): Likewise.
34459         * tests/test-ldexpl.c (minus_zero): Likewise.
34460         * tests/test-roundl.c (minus_zero): Likewise.
34461         * tests/test-signbit.c (minus_zerol): Likewise.
34462         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34463         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34464         * tests/test-truncl.c (minus_zero): Likewise.
34465         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34466         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34467         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
34468         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34469
34470 2008-10-17  Bruno Haible  <bruno@clisp.org>
34471
34472         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
34473         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
34474         that it gets activated only for gcc >= 3.0.
34475         * lib/dirent.in.h: Likewise.
34476         * lib/errno.in.h: Likewise.
34477         * lib/fcntl.in.h: Likewise.
34478         * lib/float.in.h: Likewise.
34479         * lib/iconv.in.h: Likewise.
34480         * lib/inttypes.in.h: Likewise.
34481         * lib/locale.in.h: Likewise.
34482         * lib/math.in.h: Likewise.
34483         * lib/netdb.in.h: Likewise.
34484         * lib/netinet_in.in.h: Likewise.
34485         * lib/search.in.h: Likewise.
34486         * lib/signal.in.h: Likewise.
34487         * lib/spawn.in.h: Likewise.
34488         * lib/stdarg.in.h: Likewise.
34489         * lib/stdint.in.h: Likewise.
34490         * lib/stdio.in.h: Likewise.
34491         * lib/stdlib.in.h: Likewise.
34492         * lib/string.in.h: Likewise.
34493         * lib/strings.in.h: Likewise.
34494         * lib/sys_file.in.h: Likewise.
34495         * lib/sys_ioctl.in.h: Likewise.
34496         * lib/sys_select.in.h: Likewise.
34497         * lib/sys_socket.in.h: Likewise.
34498         * lib/sys_stat.in.h: Likewise.
34499         * lib/sys_time.in.h: Likewise.
34500         * lib/sysexits.in.h: Likewise.
34501         * lib/time.in.h: Likewise.
34502         * lib/unistd.in.h: Likewise.
34503         * lib/wchar.in.h: Likewise.
34504         * lib/wctype.in.h: Likewise.
34505         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34506
34507 2008-10-17  Jim Meyering  <meyering@redhat.com>
34508
34509         ignore-value: don't depend on inline module
34510         * modules/ignore-value (Depends-on): Remove 'inline'.
34511         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
34512         Suggestion from Bruno Haible.
34513
34514 2008-10-17  Bruno Haible  <bruno@clisp.org>
34515
34516         New implementation of condition variables for Win32.
34517         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
34518         (gl_linked_waitqueue_t): New type.
34519         (gl_cond_t): Use it.
34520         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
34521         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
34522         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
34523         (glthread_cond_init_func, glthread_cond_wait_func,
34524         glthread_cond_timedwait_func, glthread_cond_signal_func,
34525         glthread_cond_broadcast_func, glthread_cond_destroy_func):
34526         Reimplemented on the basis of gl_linked_waitqueue_t.
34527         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
34528         gl_waitqueue_t.
34529         (gl_rwlock_t): Update.
34530         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
34531
34532 2008-10-17  Simon Josefsson  <simon@josefsson.org>
34533
34534         * modules/recvfrom (Depends-on): Add dependency on getpeername.
34535         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34536
34537 2008-10-17  Jim Meyering  <meyering@redhat.com>
34538
34539         ignore-value: new module
34540         * modules/ignore-value: New file.
34541         * lib/ignore-value.h: New file.
34542         * MODULES.html.sh (Compiler warning management): New section,
34543         just for this module.  More to come.
34544
34545 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34546
34547         open-safer.c: avoid 'signed and unsigned in conditional...' warning
34548         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
34549         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
34550
34551 2008-10-16  Jim Meyering  <meyering@redhat.com>
34552
34553         openat-die.c: avoid 'no previous prototype' warning
34554         * lib/openat-die.c: Include "openat.h".
34555         Reported by Reuben Thomas <rrt@sc3d.org>.
34556
34557 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34558
34559         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34560         * lib/netdb.in.h: Fix typo.
34561         Reported by Bruno Haible  <bruno@clisp.org>
34562
34563         * lib/netdb.in.h: Include sys/socket.h for platforms without
34564         netdb.h, to get structures like hostent on MinGW.
34565         * modules/netdb (Depends-on): Add sys_socket.
34566
34567 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34568
34569         * modules/netdb, modules/netdb-tests: New file.
34570         * m4/netdb_h.m4: New file.
34571         * lib/netdb.in.h: Add, currently just an empty file pending
34572         definitions.
34573         * tests/test-netdb.c: New file.
34574         * doc/posix-headers/netdb.texi: Mention that we replace it if
34575         needed.
34576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34577         netdb.
34578
34579 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34580
34581         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34582         with code.
34583
34584 2008-10-13  Bruno Haible  <bruno@clisp.org>
34585
34586         * lib/glthread/cond.c (glthread_cond_wait_func,
34587         glthread_cond_timedwait_func): Add a comment.
34588
34589 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34590
34591         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34592         * tests/test-select.c: Likewise,
34593
34594 2008-10-13  Bruno Haible  <bruno@clisp.org>
34595
34596         * lib/glthread/cond.c (glthread_cond_wait_func,
34597         glthread_cond_timedwait_func): Fix variable name.
34598         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34599
34600 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34601
34602         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34603         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34604         struct sockaddr.sa_len.
34605         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34606
34607 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34608
34609         * build-aux/pmccabe2html: Add css and css_url parameters.
34610
34611 2008-10-12  Bruno Haible  <bruno@clisp.org>
34612
34613         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34614         calling aclx_get.
34615         Reported by Rainer Tammer <tammer@tammer.net>.
34616
34617 2008-10-12  Bruno Haible  <bruno@clisp.org>
34618
34619         Use msvcrt aware primitives for creation/termination of Win32 threads.
34620         * lib/glthread/thread.c: Include <process.h>.
34621         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34622         (wrapper_func): Update signature.
34623         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34624
34625 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34626             Bruno Haible  <bruno@clisp.org>
34627
34628         Provide a Win32 implementation of the 'cond' module.
34629         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34630         * lib/glthread/cond.c (glthread_cond_init_func,
34631         glthread_cond_wait_func, glthread_cond_timedwait_func,
34632         glthread_cond_signal_func, glthread_cond_broadcast_func,
34633         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34634         * modules/cond (Dependencies): Add gettimeofday.
34635
34636 2008-10-11  Bruno Haible  <bruno@clisp.org>
34637
34638         Make sleep work on older versions of mingw.
34639         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34640         only whether it exists.
34641         * doc/posix-functions/sleep.texi: Mention the problem with older
34642         versions of mingw.
34643
34644 2008-10-11  Bruno Haible  <bruno@clisp.org>
34645
34646         New module 'shutdown'.
34647         * modules/shutdown: New file.
34648         * lib/sys_socket.in.h (shutdown): New declaration.
34649         * lib/winsock.c (shutdown): New function.
34650         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34651         GNULIB_SHUTDOWN.
34652         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34653         * doc/posix-functions/shutdown.texi: Document the new module.
34654
34655 2008-10-11  Jim Meyering  <meyering@redhat.com>
34656
34657         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34658
34659 2008-10-11  Bruno Haible  <bruno@clisp.org>
34660
34661         New module 'fclose'.
34662         * modules/fclose: New file.
34663         * lib/stdio.in.h (fclose): New declaration.
34664         * lib/fclose.c: New file.
34665         * m4/fclose.m4: New file.
34666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34667         REPLACE_FCLOSE.
34668         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34669         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34670         REPLACE_FCLOSE.
34671         * modules/close (Depends-on): fclose.
34672         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34673
34674 2008-10-11  Bruno Haible  <bruno@clisp.org>
34675
34676         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34677         set errno and don't call _close.
34678
34679 2008-10-10  Bruno Haible  <bruno@clisp.org>
34680
34681         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34682         ACL, not afterwards. Fixes test failure on Cygwin.
34683
34684 2008-10-09  Ben Pfaff  <blp@gnu.org>
34685
34686         * build-aux/announce-gen: Fix gnulib version related part of usage
34687         message.  Die with a useful error message if no tarballs are
34688         found.
34689
34690 2008-10-10  Jim Meyering  <meyering@redhat.com>
34691
34692         bootstrap: use git's --depth=N option only if it's supported
34693         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34694         recognize the --depth option.  Reported by Pádraig Brady.
34695
34696 2008-10-09  Bruno Haible  <bruno@clisp.org>
34697
34698         New module 'ioctl'.
34699         * modules/ioctl: New file.
34700         * lib/sys_socket.in.h (ioctl): Remove declaration.
34701         * lib/winsock.c: Include <sys/ioctl.h>.
34702         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34703         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34704         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34705         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34706         * doc/posix-functions/ioctl.texi: Mention the new module.
34707
34708 2008-10-09  Bruno Haible  <bruno@clisp.org>
34709
34710         New module 'sys_ioctl'.
34711         * lib/sys_ioctl.in.h: New file.
34712         * m4/sys_ioctl_h.m4: New file.
34713         * modules/sys_ioctl: New file.
34714         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34715
34716 2008-10-09  Bruno Haible  <bruno@clisp.org>
34717
34718         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34719         * lib/winsock.c: Include <stdarg.h>.
34720         (rpl_ioctl): Change to second argument 'int' and then varargs.
34721
34722 2008-10-09  Bruno Haible  <bruno@clisp.org>
34723
34724         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34725         when the sys_socket module is present and the system has <winsock2.h>.
34726
34727 2008-10-09  Bruno Haible  <bruno@clisp.org>
34728
34729         * doc/posix-functions/close.texi: Mention module 'close' instead of
34730         module 'sys_socket'.
34731
34732 2008-10-09  Bruno Haible  <bruno@clisp.org>
34733
34734         * doc/glibc-headers/sys_ioctl.texi: New file.
34735         * doc/gnulib.texi: Include it.
34736
34737 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34738             Bruno Haible  <bruno@clisp.org>
34739
34740         Combine the two replacements of 'close'.
34741         * lib/sys_socket.in.h (close): Define to a reminder to include
34742         <unistd.h>.
34743         (_gl_close_fd_maybe_socket): New declaration.
34744         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34745         * lib/winsock.c (close): Remove undefinition.
34746         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34747         needed for the gnulib module 'close'.
34748         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34749         define to an error symbol or to a warning, if suitable.
34750         * lib/close.c: Include <sys/socket.h>.
34751         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34752         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34753         UNISTD_H_HAVE_WINSOCK2_H.
34754         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34756         UNISTD_H_HAVE_WINSOCK2_H.
34757         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34758         (configure.ac): Set a module indicator.
34759         (Makefile.am): Substitute GNULIB_CLOSE.
34760         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34761         * modules/poll-tests (Depends-on): Add close.
34762         * modules/select-tests (Depends-on): Likewise.
34763
34764 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34765             Bruno Haible  <bruno@clisp.org>
34766
34767         New module 'close'.
34768         * modules/close: New file.
34769         * lib/unistd.in.h (close): Move declaration out of the
34770         FCHDIR_REPLACEMENT scope.
34771         (_gl_unregister_fd): New declaration.
34772         * lib/close.c: New file.
34773         * lib/fchdir.c (rpl_close): Remove function.
34774         * m4/close.m4: New file.
34775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34776         close.
34777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34778         REPLACE_CLOSE.
34779         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34780         REPLACE_CLOSE.
34781         * modules/fchdir (Depends-on): Add close.
34782
34783 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34784             Bruno Haible  <bruno@clisp.org>
34785
34786         * lib/fcntl.in.h (open): Simplify conditionals.
34787         (_gl_register_fd): New declaration.
34788         * lib/fchdir.c (rpl_open): Remove function.
34789         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34790         also.
34791         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34793         open.
34794
34795 2008-10-09  Jim Meyering  <meyering@redhat.com>
34796
34797         GNUmakefile: use the more name-space-friendly "_version"
34798         * top/GNUmakefile (_dummy): Update.
34799         (_version): Rename from "version".
34800
34801 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34802             Bruno Haible  <bruno@clisp.org>
34803
34804         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34805         rpl_close.
34806         (_gl_register_fd): New function, extracted from rpl_open.
34807         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34808         (rpl_open, rpl_opendir): Use _gl_register_fd.
34809
34810 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34811
34812         Fix organization of 'open' replacement.
34813         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34814         (gl_FUNC_OPEN): Use it.
34815         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34816
34817 2008-10-08  Bruno Haible  <bruno@clisp.org>
34818
34819         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34820
34821 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34822
34823         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34824         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34825         listen).
34826
34827 2008-10-08  Eric Blake  <ebb9@byu.net>
34828
34829         GNUmakefile: add 'make version' target
34830         * top/GNUmakefile (_curr-ver): Split version update rules...
34831         (version): ...into a target.
34832
34833 2008-10-07  Bruno Haible  <bruno@clisp.org>
34834
34835         Use a more portable replacement expression for -0.0L.
34836         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34837         instead of -0.0L. Fix m4 quotation.
34838
34839         * tests/test-signbit.c: Include <float.h>.
34840         (minus_zero): New variable.
34841         (test_signbitl): Use minus_zero instead of -zero.
34842         * modules/signbit-tests (Depends-on): Add float.
34843
34844         * tests/test-ceill.c: Include <float.h>.
34845         (zero): Remove variable.
34846         (minus_zero): New variable.
34847         (main): Use minus_zero instead of -zero.
34848         * modules/ceill-tests (Depends-on): Add float.
34849
34850         * tests/test-floorl.c: Include <float.h>.
34851         (zero): Remove variable.
34852         (minus_zero): New variable.
34853         (main): Use minus_zero instead of -zero.
34854         * modules/floorl-tests (Depends-on): Add float.
34855
34856         * tests/test-roundl.c: Include <float.h>.
34857         (zero): Remove variable.
34858         (minus_zero): New variable.
34859         (main): Use minus_zero instead of -zero.
34860         * modules/roundl-tests (Depends-on): Add float.
34861
34862         * tests/test-truncl.c: Include <float.h>.
34863         (zero): Remove variable.
34864         (minus_zero): New variable.
34865         (main): Use minus_zero instead of -zero.
34866         * modules/truncl-tests (Depends-on): Add float.
34867
34868         * tests/test-frexpl.c (zero): Remove variable.
34869         (minus_zero): New variable.
34870         (main): Use minus_zero instead of -zero.
34871         * modules/frexpl-tests (Depends-on): Add float.
34872
34873         * tests/test-isnan.c (zerol): Remove variable.
34874         (minus_zerol): New variable.
34875         (test_long_double): Use minus_zerol instead of -zerol.
34876         * modules/isnan-tests (Depends-on): Add float.
34877
34878         * tests/test-isnanl.h (zero): Remove variable.
34879         (minus_zero): New variable.
34880         (main): Use minus_zero instead of -zero.
34881         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34882         * modules/isnanl-tests (Depends-on): Add float.
34883
34884         * tests/test-ldexpl.c (zero): Remove variable.
34885         (minus_zero): New variable.
34886         (main): Use minus_zero instead of -zero.
34887         * modules/ldexpl-tests (Depends-on): Add float.
34888
34889         * tests/test-snprintf-posix.h (zerol): Remove variable.
34890         (minus_zerol): New variable.
34891         (test_function): Use minus_zerol instead of -zerol.
34892         * modules/snprintf-posix-tests (Depends-on): Add float.
34893         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34894
34895         * tests/test-sprintf-posix.h (zerol): Remove variable.
34896         (minus_zerol): New variable.
34897         (test_function): Use minus_zerol instead of -zerol.
34898         * modules/sprintf-posix-tests (Depends-on): Add float.
34899         * modules/vsprintf-posix-tests (Depends-on): Add float.
34900
34901         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34902         (minus_zerol): New variable.
34903         (test_function): Use minus_zerol instead of -zerol.
34904         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34905
34906         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34907         (minus_zerol): New variable.
34908         (test_function): Use minus_zerol instead of -zerol.
34909         * modules/vasprintf-posix-tests (Depends-on): Add float.
34910
34911 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34912
34913         * MODULES.html.sh (Support for building documentation): Mention
34914         pmccabe2html.  Sort entries.
34915
34916         Add pmccabe2html module, from gnupdf.
34917         * build-aux/pmccabe.css: New file.
34918         * build-aux/pmccabe2html: New file.
34919         * m4/pmccabe2html.m4: New file.
34920         * modules/pmccabe2html: New file.
34921
34922 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34923
34924         flock: new module
34925         * MODULES.html.sh: Add to list of modules.
34926         * lib/flock.c: flock implementation for Windows and Unix systems
34927         which have fcntl.
34928         * doc/glibc-functions/flock.texi: Update documentation.
34929         * lib/sys_file.in.h: <sys/file.h> header file.
34930         * m4/flock.m4: M4 macros.
34931         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34932         * modules/flock: flock module.
34933         * modules/flock-tests: flock tests module.
34934         * modules/sys_file: sys/file.h module.
34935         * tests/test-flock.c: test suite for flock.
34936
34937 2008-10-06  Jim Meyering  <meyering@redhat.com>
34938
34939         bootstrap: check for LT_INIT more portably still ;-)
34940         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34941         Spotted by Bruno Haible.
34942
34943 2008-10-06  Eric Blake  <ebb9@byu.net>
34944
34945         test-signbit: avoid tripping Irix cc bug on -0.0L
34946         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34947         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34948         entire testsuite consistent and avoids an Irix 6.2 bug.
34949
34950 2008-10-05  Bruno Haible  <bruno@clisp.org>
34951             Jim Meyering  <jim@meyering.net>
34952
34953         Add an option for ignoring EPIPE during close_stdout.
34954         * lib/closeout.h: Include <stdbool.h>.
34955         (close_stdout_set_ignore_EPIPE): New declaration.
34956         * lib/closeout.c: Include <stdbool.h>.
34957         (ignore_EPIPE): New variable.
34958         (close_stdout_set_ignore_EPIPE): New function.
34959         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34960         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34961         failure.
34962         * modules/closeout (Depends-on): Add stdbool.
34963
34964 2008-10-05  Bruno Haible  <bruno@clisp.org>
34965
34966         * modules/accept: New file.
34967         * modules/bind: New file.
34968         * modules/connect: New file.
34969         * modules/getpeername: New file.
34970         * modules/getsockname: New file.
34971         * modules/getsockopt: New file.
34972         * modules/listen: New file.
34973         * modules/recv: New file.
34974         * modules/recvfrom: New file.
34975         * modules/send: New file.
34976         * modules/sendto: New file.
34977         * modules/setsockopt: New file.
34978         * modules/socket: New file.
34979         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34980         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34981         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34982         the particular module is requested. Add a link warning when the
34983         particular module is not requested.
34984         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34985         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34986         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34987         the particular module is requested.
34988         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34989         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34990         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34991         * modules/sys_socket (Depends-on): Add link-warning.
34992         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34993         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34994         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34995         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34996         GL_LINK_WARNING.
34997         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34998         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34999         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35000         * doc/posix-functions/getpeername.texi: Mention the new module
35001         'getpeername'.
35002         * doc/posix-functions/getsockname.texi: Mention the new module
35003         'getsockname'.
35004         * doc/posix-functions/getsockopt.texi: Mention the new module
35005         'getsockopt'.
35006         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35007         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35008         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35009         * doc/posix-functions/send.texi: Mention the new module 'send'.
35010         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35011         * doc/posix-functions/setsockopt.texi: Mention the new module
35012         'setsockopt'.
35013         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35014         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35015         listen, connect, accept.
35016         * modules/select-tests (Depends-on): Likewise.
35017
35018 2008-10-05  Bruno Haible  <bruno@clisp.org>
35019
35020         * lib/winsock.c (strerror): Remove unused #undef.
35021         (rpl_close): Remove unused local variable.
35022
35023         * modules/sys_socket (Depends-on); Add errno.
35024
35025 2008-10-05  Bruno Haible  <bruno@clisp.org>
35026
35027         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35028         (select): Add a link warning when the 'select' module is not used.
35029         * modules/sys_select (Depends-on): Add link-warning.
35030         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35031         Suggested by Paolo Bonzini.
35032
35033 2008-10-05  Jim Meyering  <meyering@redhat.com>
35034
35035         bootstrap: check for LT_INIT more portably
35036         * build-aux/bootstrap: Avoid using grep -E, since it's not
35037         portable enough.  Suggestion from Bruno Haible.
35038
35039 2008-10-05  Bruno Haible  <bruno@clisp.org>
35040
35041         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35042         as being fixed by gnulib.
35043
35044 2008-10-05  Bruno Haible  <bruno@clisp.org>
35045
35046         * modules/select-tests: New file, mostly copied from
35047         modules/sys_select-tests.
35048         * tests/test-select.c: New file, mostly copied from
35049         tests/test-sys_select.c.
35050         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35051         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35052         (Makefile.am): Remove test_sys_select_LDADD.
35053
35054         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35055         to an undefined symbol, for an error message.
35056         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35057         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35058         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35059         winsock-select.c here.
35060         * modules/sys_select (Files): Remove lib/winsock-select.c.
35061         (Depends-on): Remove alloca.
35062         (Makefile.am): Substitute GNULIB_SELECT.
35063         * modules/select: New file.
35064         * doc/posix-functions/select.texi: Update.
35065
35066 2008-10-05  Bruno Haible  <bruno@clisp.org>
35067
35068         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35069         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35070         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35071         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35072         getdtablesize.
35073         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35074         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35075
35076 2008-10-05  Bruno Haible  <bruno@clisp.org>
35077
35078         * modules/getdtablesize-tests: New file.
35079         * tests/test-getdtablesize.c: New file.
35080
35081         New module 'getdtablesize'.
35082         * lib/unistd.in.h (getdtablesize): New declaration.
35083         * lib/getdtablesize.c: New file.
35084         * m4/getdtablesize.m4: New file.
35085         * modules/getdtablesize: New file.
35086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35087         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35088         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35089         HAVE_GETDTABLESIZE.
35090         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35091
35092 2008-10-05  Bruno Haible  <bruno@clisp.org>
35093
35094         * modules/sched (Makefile.am): Fix typo.
35095         Reported by Simon Josefsson.
35096
35097 2008-10-05  Jim Meyering  <meyering@redhat.com>
35098
35099         bootstrap: check for LT_INIT, too
35100         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35101         are deprecated.  Suggestion from Ralf Wildenhues.
35102
35103 2008-10-05  Bruno Haible  <bruno@clisp.org>
35104
35105         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35106         overriding them by ours.
35107         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35108
35109 2008-10-05  Jim Meyering  <meyering@redhat.com>
35110
35111         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35112         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35113         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35114
35115 2008-10-04  Bruno Haible  <bruno@clisp.org>
35116
35117         * modules/dup2 (License): Change to LGPLv2+.
35118         * modules/sleep (License): Likewise.
35119         * modules/perror (License): Likewise.
35120         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35121         Blake.
35122         * modules/signal (License): Likewise.
35123         * modules/sigprocmask (License): Likewise.
35124         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35125         Meyering.
35126
35127 2008-10-04  Bruno Haible  <bruno@clisp.org>
35128
35129         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35130         Reported by Rainer Tammer <tammer@tammer.net>.
35131
35132 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35133             Bruno Haible  <bruno@clisp.org>
35134
35135         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35136         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35137         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35138
35139 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35140
35141         filevercmp: new module
35142         * lib/filevercmp.h: New function filevercmp comparing version strings.
35143         * lib/filevercmp.c: Implementation of filevercmp function.
35144         * modules/filevercmp: Module metadata.
35145         * tests/test-filevercmp.c: Unit test for new module.
35146         * modules/filevercmp-tests: Unit test metadata.
35147         * MODULES.html.sh: Add filevercmp module.
35148
35149 2008-10-03  Bruno Haible  <bruno@clisp.org>
35150
35151         * lib/c-ctype.h: Add comment.
35152         Reported by Jim Meyering.
35153
35154 2008-10-02  Bruno Haible  <bruno@clisp.org>
35155
35156         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35157
35158 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35159
35160         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35161         name of bootstrap.conf accordingly.
35162
35163 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35164
35165         * build-aux/bootstrap: Install git-merge-changelog configuration
35166         items into .gitconfig if needed.
35167
35168 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35169
35170         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35171         git repository, and initialize/update it accordingly.
35172
35173 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35174
35175         * modules/fsync-tests: New file.
35176         * tests/test-fsync.c: New file.
35177
35178         New module 'fsync'.
35179         * lib/fsync.c: New file.
35180         * m4/fsync.m4: New file.
35181         * modules/fsync: New file.
35182         * lib/unistd.in.h (fsync): New declaration.
35183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35184         GNULIB_FSYNC and HAVE_FSYNC.
35185         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35186         * MODULES.html.sh (posix_functions): Add fsync.
35187         * doc/posix-functions/fsync.texi: Mention the new module.
35188
35189 2008-10-02  Jim Meyering  <meyering@redhat.com>
35190
35191         fts.c: sync with similar code from coreutils' remove.c
35192         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35193         Guard also with "#if defined __linux__", since for now at least,
35194         this code is Linux-kernel-specific.
35195
35196 2008-10-02  Jim Meyering  <meyering@redhat.com>
35197
35198         fts: bug fixes
35199         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35200         Include <sys/vfs.h>, not <sys/statfs.h>.
35201
35202         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35203         Include <sys/vfs.h>, not <sys/statfs.h>.
35204
35205 2008-10-01  Bruno Haible  <bruno@clisp.org>
35206
35207         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35208         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35209         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35210         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35211         * doc/posix-functions/posix_spawnp.texi: Likewise.
35212         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35213         whether posix_spawn actually works.
35214         * m4/pipe.m4 (gl_PIPE): Likewise.
35215         * modules/execute (Files): Add m4/posix_spawn.m4.
35216         * modules/pipe (Files): Add m4/posix_spawn.m4.
35217         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35218
35219 2008-10-01  Jim Meyering  <meyering@redhat.com>
35220
35221         remove trailing spaces
35222         * NEWS: Likewise.
35223         * lib/poll.c (poll): Likewise.
35224         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35225         * lib/winsock.c (rpl_close): Likewise.
35226         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35227         * modules/yield: Likewise.
35228         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35229         * tests/test-sys_select.c (connect_to_socket): Likewise.
35230
35231         fts.c: adjust a new interface to be more generally useful
35232         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35233         (fts_build): Adjust caller.
35234
35235 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35236
35237         * modules/cond-tests: New file.
35238         * tests/test-cond.c: New file.
35239
35240 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35241             Bruno Haible  <bruno@clisp.org>
35242
35243         * modules/cond (Dependencies): Add errno, time.
35244         * lib/glthread/cond.h: Include <time.h>.
35245         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35246         across platforms.
35247
35248 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35249             Bruno Haible  <bruno@clisp.org>
35250
35251         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35252
35253 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35254             Bruno Haible  <bruno@clisp.org>
35255
35256         * modules/tls-tests (Depends-on): Add thread, yield.
35257         (configure.ac): Remove all checks.
35258         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35259         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35260         gl_thread_self): Remove definitions. Include glthread/thread.h and
35261         glthread/yield.h instead.
35262         (test_tls): Pass an additional NULL argument to gl_thread_join.
35263
35264 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35265             Bruno Haible  <bruno@clisp.org>
35266
35267         * modules/lock-tests (Depends-on): Add thread, yield.
35268         (configure.ac): Remove all checks.
35269         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35270         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35271         gl_thread_self): Remove definitions. Include glthread/thread.h and
35272         glthread/yield.h instead.
35273         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35274         additional NULL argument to gl_thread_join.
35275
35276 2008-09-30  Bruno Haible  <bruno@clisp.org>
35277
35278         Fix the Win32 implementation of the 'thread' module.
35279         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35280         pointer type.
35281         (gl_thread_self): Invoke gl_thread_self_func.
35282         (gl_thread_self_func): New declaration.
35283         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35284         (do_init_self_key, init_self_key): New functions.
35285         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35286         Remove some fields.
35287         (running_threads, running_lock): Remove variables.
35288         (get_current_thread_handle): New function.
35289         (gl_thread_self_func, wrapper_func, glthread_create_func,
35290         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35291         simplified.
35292
35293 2008-09-30  Bruno Haible  <bruno@clisp.org>
35294
35295         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35296         files.
35297
35298 2008-09-30  Jim Meyering  <meyering@redhat.com>
35299
35300         fts.m4: correct the test for statfs.f_type
35301         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35302         when checking for statfs.f_type.
35303
35304 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35305
35306         tests: avoid some compiler warnings
35307         * tests/test-memchr.c (main): Pass NULL indirectly.
35308         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35309
35310 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
35311
35312         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35313         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35314         exactly specified dayshifts.
35315         (dayshift): New rule.
35316         (rel): Add dayshift.
35317         (relative_time_table) [tomorrow, yesterday, today, now]:
35318         Use tDAY_SHIFT in place of tDAY_UNIT.
35319         * tests/test-getdate.c: Add tests for now-disallowed countable
35320         dayshifts, e.g., "4 yesterday ago".
35321
35322 2008-09-29  Bruno Haible  <bruno@clisp.org>
35323
35324         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35325         * tests/test-posix_spawn1.in.sh: Renamed from
35326         tests/test-posix_spawn.in.sh.
35327         * tests/test-posix_spawn2.c: New file.
35328         * tests/test-posix_spawn2.in.sh: New file.
35329         * modules/posix_spawnp-tests (Files): Update.
35330         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35331
35332 2008-09-29  Bruno Haible  <bruno@clisp.org>
35333
35334         Propagate effects of putenv/setenv/unsetenv to child processes.
35335         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35336         * lib/pipe.c (create_pipe): Likewise.
35337
35338 2008-09-29  Bruno Haible  <bruno@clisp.org>
35339
35340         Enable use of shell scripts as executables in mingw.
35341         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
35342         run the program as a shell script.
35343         * lib/pipe.c (create_pipe): Likewise.
35344         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
35345         resulting array.
35346
35347 2008-09-29  Eric Blake  <ebb9@byu.net>
35348
35349         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
35350
35351 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
35352
35353         * doc/posix-functions/accept.texi: Update mingw problems.
35354         * doc/posix-functions/bind.texi: Update mingw problems.
35355         * doc/posix-functions/close.texi: Update mingw problems.
35356         * doc/posix-functions/connect.texi: Update mingw problems.
35357         * doc/posix-functions/getpeername.texi: Update mingw problems.
35358         * doc/posix-functions/getsockname.texi: Update mingw problems.
35359         * doc/posix-functions/getsockopt.texi: Update mingw problems.
35360         * doc/posix-functions/ioctl.texi: Update mingw problems.
35361         * doc/posix-functions/listen.texi: Update mingw problems.
35362         * doc/posix-functions/recv.texi: Update mingw problems.
35363         * doc/posix-functions/recvfrom.texi: Update mingw problems.
35364         * doc/posix-functions/select.texi: Update mingw problems.
35365         * doc/posix-functions/send.texi: Update mingw problems.
35366         * doc/posix-functions/sendto.texi: Update mingw problems.
35367         * doc/posix-functions/setsockopt.texi: Update mingw problems.
35368         * doc/posix-functions/socket.texi: Update mingw problems.
35369
35370 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
35371             Bruno Haible  <bruno@clisp.org>
35372
35373         * lib/sys_select.in.h: Include sys/time.h.
35374         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
35375         * modules/sys_select: Depend on sys_time.
35376         * tests/test-sys_select.c: Test that sys/select.h defines struct
35377         timeval fully.
35378
35379 2008-09-29  Bruno Haible  <bruno@clisp.org>
35380
35381         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
35382         * lib/sys_select.in.h: Likewise.
35383
35384 2008-09-29  Bruno Haible  <bruno@clisp.org>
35385
35386         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
35387
35388 2008-09-29  Bruno Haible  <bruno@clisp.org>
35389
35390         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
35391         Set LIBSOCKET instead of augmenting LIBS.
35392         * modules/sockets (Link): New section.
35393         * modules/sockets-tests (test_sockets_LDADD): New variable.
35394         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
35395         * modules/poll-tests (test_poll_LDADD): New variable.
35396         * NEWS: Document the change.
35397
35398 2008-09-29  Bruno Haible  <bruno@clisp.org>
35399
35400         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
35401         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
35402         ARPA_INET_H directly.
35403         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35404
35405 2008-09-28  Bruno Haible  <bruno@clisp.org>
35406
35407         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
35408         from gl_HEADER_SYS_SOCKET.
35409         (gl_HEADER_SYS_SOCKET): Invoke it.
35410         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35411
35412 2008-09-28  Bruno Haible  <bruno@clisp.org>
35413
35414         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
35415         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
35416         Needed on OSF/1 4.0.
35417
35418 2008-09-28  Bruno Haible  <bruno@clisp.org>
35419
35420         Override open more carefully.
35421         * lib/open.c (orig_open): New function.
35422         (rpl_open): Use orig_open instead of open.
35423         * lib/fcntl.in.h: Add special invocation convention.
35424         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
35425         (gl_FUNC_OPEN): Invoke it.
35426
35427         Override freopen more carefully.
35428         * lib/freopen.c (orig_freopen): New function.
35429         (rpl_freopen): Use orig_freopen instead of freopen.
35430         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
35431         (gl_FUNC_FREOPEN): Invoke it.
35432
35433         Override fopen more carefully.
35434         * lib/fopen.c (orig_fopen): New function.
35435         (rpl_fopen): Use orig_fopen instead of fopen.
35436         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
35437         (gl_FUNC_FOPEN): Invoke it.
35438         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
35439
35440 2008-09-28  Bruno Haible  <bruno@clisp.org>
35441
35442         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
35443         SIGPIPE.
35444
35445 2008-09-28  Bruno Haible  <bruno@clisp.org>
35446
35447         * tests/test-sigaction.c (handler, main): Disable the check whether
35448         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
35449         glibc systems with LinuxThreads.
35450
35451 2008-09-28  Bruno Haible  <bruno@clisp.org>
35452
35453         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
35454
35455         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
35456         with AIX xlc.
35457         * lib/fcntl.in.h (open): Likewise.
35458         Reported by Rainer Tammer <tammer@tammer.net>.
35459
35460 2008-09-28  Bruno Haible  <bruno@clisp.org>
35461
35462         * modules/posix_spawnp-tests: New file.
35463         * tests/test-posix_spawn.c: New file.
35464         * tests/test-posix_spawn.in.sh: New file.
35465
35466         New module 'posix_spawnp'.
35467         * modules/posix_spawnp: New file.
35468         * lib/spawnp.c: New file, from GNU libc with modifications.
35469         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
35470
35471         New module 'posix_spawn'.
35472         * modules/posix_spawn: New file.
35473         * lib/spawn.c: New file, from GNU libc with modifications.
35474         * doc/posix-functions/posix_spawn.texi: Mention the new module.
35475
35476         New module 'posix_spawnattr_destroy'.
35477         * modules/posix_spawnattr_destroy: New file.
35478         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
35479         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
35480         module.
35481
35482         New module 'posix_spawnattr_setsigmask'.
35483         * modules/posix_spawnattr_setsigmask: New file.
35484         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
35485         modifications.
35486         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
35487         new module.
35488
35489         New module 'posix_spawnattr_getsigmask'.
35490         * modules/posix_spawnattr_getsigmask: New file.
35491         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
35492         modifications.
35493         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
35494         new module.
35495
35496         New module 'posix_spawnattr_setsigdefault'.
35497         * modules/posix_spawnattr_setsigdefault: New file.
35498         * lib/spawnattr_setdefault.c: New file, from GNU libc with
35499         modifications.
35500         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
35501         new module.
35502
35503         New module 'posix_spawnattr_getsigdefault'.
35504         * modules/posix_spawnattr_getsigdefault: New file.
35505         * lib/spawnattr_getdefault.c: New file, from GNU libc with
35506         modifications.
35507         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
35508         new module.
35509
35510         New module 'posix_spawnattr_setschedpolicy'.
35511         * modules/posix_spawnattr_setschedpolicy: New file.
35512         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
35513         modifications.
35514         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
35515         new module.
35516
35517         New module 'posix_spawnattr_getschedpolicy'.
35518         * modules/posix_spawnattr_getschedpolicy: New file.
35519         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
35520         modifications.
35521         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
35522         new module.
35523
35524         New module 'posix_spawnattr_setschedparam'.
35525         * modules/posix_spawnattr_setschedparam: New file.
35526         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
35527         modifications.
35528         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
35529         new module.
35530
35531         New module 'posix_spawnattr_getschedparam'.
35532         * modules/posix_spawnattr_getschedparam: New file.
35533         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
35534         modifications.
35535         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
35536         new module.
35537
35538         New module 'posix_spawnattr_setpgroup'.
35539         * modules/posix_spawnattr_setpgroup: New file.
35540         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
35541         modifications.
35542         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
35543         module.
35544
35545         New module 'posix_spawnattr_getpgroup'.
35546         * modules/posix_spawnattr_getpgroup: New file.
35547         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
35548         modifications.
35549         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
35550         module.
35551
35552         New module 'posix_spawnattr_setflags'.
35553         * modules/posix_spawnattr_setflags: New file.
35554         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35555         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35556         module.
35557
35558         New module 'posix_spawnattr_getflags'.
35559         * modules/posix_spawnattr_getflags: New file.
35560         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35561         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35562         module.
35563
35564         New module 'posix_spawnattr_init'.
35565         * modules/posix_spawnattr_init: New file.
35566         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35567         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35568         module.
35569
35570         New module 'posix_spawn_file_actions_destroy'.
35571         * modules/posix_spawn_file_actions_destroy: New file.
35572         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35573         modifications.
35574         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35575         the new module.
35576
35577         New module 'posix_spawn_file_actions_addopen'.
35578         * modules/posix_spawn_file_actions_addopen: New file.
35579         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35580         modifications.
35581         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35582         the new module.
35583
35584         New module 'posix_spawn_file_actions_adddup2'.
35585         * modules/posix_spawn_file_actions_adddup2: New file.
35586         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35587         modifications.
35588         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35589         the new module.
35590
35591         New module 'posix_spawn_file_actions_addclose'.
35592         * modules/posix_spawn_file_actions_addclose: New file.
35593         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35594         modifications.
35595         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35596         the new module.
35597
35598         New module 'posix_spawn_file_actions_init'.
35599         * modules/posix_spawn_file_actions_init: New file.
35600         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35601         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35602         new module.
35603
35604         New module 'posix_spawn-internal'.
35605         * modules/posix_spawn-internal: New file.
35606         * lib/spawn_int.h: New file, from GNU libc with modifications.
35607         * lib/spawni.c: New file, from GNU libc with modifications.
35608         * m4/posix_spawn.m4: New file.
35609
35610         New module 'spawn'.
35611         * modules/spawn: New file.
35612         * lib/spawn.in.h: New file, from GNU libc with modifications.
35613         * m4/spawn_h.m4: New file.
35614         * doc/posix-headers/spawn.texi: Mention the new module.
35615
35616 2008-09-28  Bruno Haible  <bruno@clisp.org>
35617
35618         * modules/sched-tests: New file.
35619         * tests/test-sched.c: New file.
35620
35621         New module 'sched'.
35622         * modules/sched: New file.
35623         * lib/sched.in.h: New file.
35624         * m4/sched_h.m4: New file.
35625         * doc/posix-headers/sched.texi: Mention the new module.
35626
35627 2008-09-27  Eric Blake  <ebb9@byu.net>
35628
35629         Fix previous patch, and tweak references to $0.
35630         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35631         (func_version, func_gnulib_dir): Don't call this program
35632         gnulib-tool.
35633         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35634         with using $0 in function.
35635         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35636         (func_fatal_error): Reuse the name the user invoked us with.
35637
35638 2008-09-27  Bruno Haible  <bruno@clisp.org>
35639
35640         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35641         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35642         (gl_ICONV_H): Not here.
35643         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35644         instead of assigning ICONV_H directly.
35645
35646         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35648         WCHAR_H directly.
35649
35650 2008-09-27  Bruno Haible  <bruno@clisp.org>
35651
35652         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35653         * modules/arpa_inet (Depends-on): Add link-warning.
35654         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35655         * modules/unistd (Makefile.am): Likewise.
35656
35657 2008-09-26  Bruno Haible  <bruno@clisp.org>
35658
35659         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35660         variables.
35661         (func_version): Essentially copied from gnulib-tool.
35662         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35663         func_readlink): Copied from gnulib-tool.
35664
35665 2008-09-26  Bruno Haible  <bruno@clisp.org>
35666
35667         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35668         invoking git-version-gen.
35669
35670 2008-09-26  Bruno Haible  <bruno@clisp.org>
35671
35672         * posix-modules: Update to directory names changed on 2008-01-19.
35673         Remove commas in output before splitting into words. No more need to
35674         avoid 'ftruncate' since 2007-02-19.
35675
35676 2008-09-26  Bruno Haible  <bruno@clisp.org>
35677
35678         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35679
35680 2008-09-26  Bruno Haible  <bruno@clisp.org>
35681
35682         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35683         * modules/fwriteerror (Depends-on): Add errno.
35684
35685 2008-09-26  Bruno Haible  <bruno@clisp.org>
35686
35687         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35688         * tests/test-vc-list-files-cvs.sh: Likewise.
35689
35690 2008-09-26  Bruno Haible  <bruno@clisp.org>
35691
35692         * doc/posix-headers/sys_resource.texi: Reorder items.
35693
35694 2008-09-26  Jim Meyering  <meyering@redhat.com>
35695
35696         fts: tweak inode comparison function
35697         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35698         inode numbers, as documented.
35699
35700         fts: sort dirent entries on inode number before traversing
35701         This avoids a quadratic, seek-related performance penalty when
35702         operating on a directory containing many entries (measurable at 10k;
35703         3.5 hours at 2 million entries with a cold cache) on certain types
35704         of file systems, including ext3 and ext4, but not tmpfs.
35705         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35706         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35707         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35708         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35709         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35710         (fts_build): Set the stat.st_ino member from D_INO.
35711         If it is likely to be useful, sort dirent entries on inode number.
35712
35713         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35714         and the struct statfs.f_type member.
35715         * modules/fts (Depends-on): Add d-ino.
35716
35717 2008-09-26  Bruno Haible  <bruno@clisp.org>
35718
35719         * modules/sigpipe-die (Depends-on): Add sigpipe.
35720
35721         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35722         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35723         and GNULIB_STDIO_H_SIGPIPE are set.
35724         * lib/stdio-write.c: New file.
35725         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35726         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35727         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35728         REPLACE_STDIO_WRITE_FUNCS.
35729         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35730         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35731         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35732         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35733         * modules/stdio (Files): Add lib/stdio-write.c.
35734         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35735         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35736         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35737         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35738         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35739         REPLACE_FPRINTF_POSIX.
35740         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35741         REPLACE_PRINTF_POSIX.
35742         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35743         REPLACE_VFPRINTF_POSIX.
35744         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35745         REPLACE_VPRINTF_POSIX.
35746         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35747         SIGPIPE issue.
35748         * doc/posix-functions/fputc.texi: Likewise.
35749         * doc/posix-functions/fputs.texi: Likewise.
35750         * doc/posix-functions/fwrite.texi: Likewise.
35751         * doc/posix-functions/printf.texi: Likewise.
35752         * doc/posix-functions/putc.texi: Likewise.
35753         * doc/posix-functions/putchar.texi: Likewise.
35754         * doc/posix-functions/puts.texi: Likewise.
35755         * doc/posix-functions/vfprintf.texi: Likewise.
35756         * doc/posix-functions/vprintf.texi: Likewise.
35757
35758         * modules/safe-write (Depends-on): Add write.
35759
35760         * modules/sigpipe-tests: New file.
35761         * tests/test-sigpipe.c: New file.
35762         * tests/test-sigpipe.sh: New file.
35763
35764         * modules/write: New file.
35765         * lib/unistd.in.h: Include <sys/types.h>.
35766         (write): New declaration.
35767         * lib/write.c: New file.
35768         * m4/write.m4: New file.
35769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35770         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35771         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35772         GNULIB_WRITE, REPLACE_WRITE.
35773         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35774         and the SIGPIPE issue.
35775
35776         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35777         (raise): New declaration.
35778         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35779         (ext_signal): New function.
35780         (rpl_raise): New function.
35781         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35782         GNULIB_SIGNAL_H_SIGPIPE.
35783         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35784         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35785
35786         * modules/sigpipe: New file.
35787         * m4/sigpipe.m4: New file.
35788
35789 2008-09-25  Derek Price  <derek@ximbiot.com>
35790             Bruno Haible  <bruno@clisp.org>
35791
35792         * gnulib-tool (func_import): Report all license incompatibilities, not
35793         just the first one.
35794
35795 2008-09-25  Bruno Haible  <bruno@clisp.org>
35796
35797         * gnulib-tool (func_import): When computing the edits, consider not
35798         only the Makefile.ams that exist but also those that will be generated.
35799
35800 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35801
35802         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35803         fixes gnulib-tool --test warning about duplicate dependency.
35804
35805 2008-09-25  Bruno Haible  <bruno@clisp.org>
35806
35807         * gnulib-tool: Don't ask the user to perform edits in the generated
35808         Makefile.ams.
35809         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35810         apply to the Makefile.am being generated.
35811         (func_emit_tests_Makefile_am): Execute edits that apply to the
35812         Makefile.am being generated.
35813         (func_import): Setup list of Makefile.am edits before emitting the
35814         Makefile.ams, not at the end.
35815         (func_create_testdir): Update.
35816         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35817
35818 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35819
35820         * gnulib-tool (func_import): Store the --tests-base option in the
35821         comment in gnulib-cache.m4.
35822
35823 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35824
35825         * NEWS: Document increased portability that sys_select now provides.
35826
35827         * lib/sys_select.in.h: Install select wrapper.
35828         * lib/sys_socket.in.h: Use more descriptive name when there is no
35829         select wrapper.
35830         * lib/winsock-select.c: New.
35831         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35832         Require gl_HEADER_SYS_SOCKET.
35833         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35834         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35835         * tests/test-sys_select.c: Add functional tests.
35836
35837 2008-09-24  Eric Blake  <ebb9@byu.net>
35838
35839         open, fopen: close fd leak in last patch
35840         * lib/open.c (rpl_open): Close fd before returning error.
35841         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35842         * doc/posix-functions/open.texi (open): Document that Irix also
35843         has the bug.
35844         * doc/posix-functions/fopen.texi (fopen): Likewise.
35845         Reported by Paolo Bonzini.
35846
35847 2008-09-24  Bruno Haible  <bruno@clisp.org>
35848
35849         Ensure that a filename ending in a slash cannot be used to access a
35850         non-directory.
35851         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35852         to check whether it's really a directory.
35853         * lib/fopen.c: Include fcntl.h, unistd.h.
35854         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35855         and fdopen().
35856         * modules/fopen (Depends-on): Add unistd.
35857         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35858         * tests/test-fopen.c (main): Likewise.
35859         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35860         * doc/posix-functions/fopen.texi: Likewise.
35861         Reported by Eric Blake.
35862
35863 2008-09-23  Eric Blake  <ebb9@byu.net>
35864
35865         c-stack: avoid compiler optimizations when provoking overflow
35866         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35867         recursion harder to optimize, to ensure a stack overflow occurs.
35868         * tests/test-c-stack.c (recurse): Likewise.
35869         Borrowed from libsigsegv.
35870
35871         c-stack: work around Irix sigaltstack bug
35872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35873         whether sigaltstack uses wrong end of stack_t (copied in part from
35874         libsigsegv).
35875         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35876         Irix bug, without requiring an over-allocation.
35877         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35878         bug.
35879
35880         fopen: document mingw bug on directories
35881         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35882         not allowing a stream visiting a directory, even though reading
35883         from such a stream is not portable.
35884
35885 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35886
35887         * lib/poll.c: Rewrite.
35888         * modules/poll: Depend on alloca.
35889
35890 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35891
35892         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35893         instead define prototypes for a full set of wrappers.  Ensure
35894         that Cygwin does not use the compatibility code, which is only
35895         for MinGW.
35896         * lib/winsock.c: New.
35897         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35898         * modules/sys_socket: Add lib/winsock.c.
35899
35900         * modules/poll-tests: Add errno and perror.
35901         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35902
35903 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35904
35905         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35906
35907 2008-09-23  Bruno Haible  <bruno@clisp.org>
35908
35909         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35910         * doc/glibc-functions/*: Likewise.
35911
35912 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35913
35914         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35915         success.
35916
35917 2008-09-22  Eric Blake  <ebb9@byu.net>
35918             Bruno Haible  <bruno@clisp.org>
35919
35920         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35921         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35922         supply %A but mishandle pseudo-NaN.
35923         Reported by Simon Josefsson.
35924
35925 2008-09-21  Bruno Haible  <bruno@clisp.org>
35926
35927         * tests/test-lock.c (main): Tweak skip message.
35928         * tests/test-tls.c (main): Likewise.
35929
35930 2008-09-21  Bruno Haible  <bruno@clisp.org>
35931
35932         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35933         whether 'struct sigaction' has sa_sigaction here...
35934         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35935         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35936
35937 2008-09-21  Bruno Haible  <bruno@clisp.org>
35938
35939         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35940         section.
35941         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35942         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35943         the new section.
35944         (Support for obsolete systems lacking POSIX:2001): New section.
35945         (String handling <string.h>): Move strdup to the new section.
35946         Suggested by Simon Josefsson and Paolo Bonzini.
35947
35948 2008-09-21  Bruno Haible  <bruno@clisp.org>
35949
35950         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35951         exponents in %e and %g results on 'long double'. Needed for mingw's
35952         improved *printf functions.
35953         * tests/test-vasprintf-posix.c (test_function): Likewise.
35954         * tests/test-snprintf-posix.h (test_function): Likewise.
35955         * tests/test-sprintf-posix.h (test_function): Likewise.
35956         Reported by Eric Blake.
35957
35958 2008-09-21  Bruno Haible  <bruno@clisp.org>
35959
35960         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35961         * tests/test-sprintf-posix.h (test_function): Likewise.
35962
35963 2008-09-21  Bruno Haible  <bruno@clisp.org>
35964
35965         * modules/getpass (Depends-on): Add strdup-posix.
35966
35967         New module 'strdup-posix'.
35968         * modules/strdup-posix: New file.
35969         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35970         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35972         REPLACE_STRDUP.
35973         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35974         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35975         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35976         strdup-posix.
35977
35978         * modules/strdup (Depends-on): Remove malloc-posix.
35979
35980 2008-09-20  Bruno Haible  <bruno@clisp.org>
35981
35982         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35983         Wildenhues.
35984
35985 2008-09-20  Bruno Haible  <bruno@clisp.org>
35986
35987         Ensure that wint_t gets defined on IRIX 5.3.
35988         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35989         * lib/wctype.in.h (wint_t): Likewise.
35990         (__wctype_wint_t): Remove type.
35991         (isw*): Use wint_t instead of __wctype_wint_t.
35992         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35993         * modules/wchar (Files): Add m4/wint_t.m4.
35994         (Makefile.am): Substitute HAVE_WINT_T.
35995         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35996         * tests/test-wctype.c: Check that wint_t is defined.
35997         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35998         * doc/posix-headers/wctype.texi: Likewise.
35999         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36000
36001 2008-09-18  Bruno Haible  <bruno@clisp.org>
36002
36003         * gnulib-tool (func_exit): Update comment.
36004
36005 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36006
36007         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36008         assumes strdup exists and does not depend on strdup to return
36009         ENOMEM on out of memory conditions.
36010
36011 2008-09-18  Bruno Haible  <bruno@clisp.org>
36012
36013         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36014         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36015         digits for the exponent.
36016
36017 2008-09-18  Jim Meyering  <meyering@redhat.com>
36018             Bruno Haible  <bruno@clisp.org>
36019
36020         * lib/vasnprintf.c (decimal_point_char): Define also if
36021         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36022
36023 2008-09-16  Bruno Haible  <bruno@clisp.org>
36024         and Eric Blake  <ebb9@byu.net>
36025
36026         vasnprintf: support Irix 5.3
36027         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36028         that mishandle long double infinity.
36029         Reported by Tom G. Christensen.
36030
36031 2008-09-16  Bruno Haible  <bruno@clisp.org>
36032
36033         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36034         Solaris 9.
36035         * doc/glibc-functions/alphasort.texi: Likewise.
36036         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36037
36038 2008-09-16  Jim Meyering  <meyering@redhat.com>
36039
36040         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36041         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36042         a umask modification leak out of a subshell.  Otherwise, the
36043         opensolaris /bin/sh would be accepted and thus cause unwarranted
36044         failures in the coreutils test suite.
36045
36046 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36047
36048         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36049         to succeed.
36050
36051 2008-09-16  Jim Meyering  <meyering@redhat.com>
36052
36053         avoid spurious test failure when library is built without ACL support
36054         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36055         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36056         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36057         * tests/test-copy-acl.sh: Likewise.
36058
36059 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36060
36061         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36062         based on character occurrence counts.
36063
36064 2008-09-15  Eric Blake  <ebb9@byu.net>
36065
36066         tests: avoid some compiler warnings
36067         * tests/test-memchr.c (main): Pass NULL indirectly.
36068         * tests/test-closein.c (main): Avoid unused variable.
36069
36070 2008-09-15  Bruno Haible  <bruno@clisp.org>
36071
36072         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36073         are missing on OpenBSD 4.0 individually.
36074         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36075
36076 2008-09-15  Bruno Haible  <bruno@clisp.org>
36077
36078         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36079         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36080         * doc/posix-functions/perror.texi: Likewise.
36081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36082         is missing.
36083         Reported by Eric Blake.
36084
36085         * lib/errno.in.h: Use replacement values >= 2000.
36086         Reported by Eric Blake.
36087
36088 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36089
36090         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36091         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36092         limit.
36093         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36094         compareseq was aborted.
36095
36096 2008-09-14  Bruno Haible  <bruno@clisp.org>
36097
36098         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36099         yvec_edit_count.
36100         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36101         (fstrcmp_bounded): Simplify result computation accordingly.
36102
36103 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36104
36105         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36106         (fstrcmp): Define in terms of fstrcmp_bounded.
36107         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36108         lower_bound argument.
36109         Return quickly if the result is certainly < lower_bound.
36110         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36111
36112 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36113
36114         * lib/diffseq.h (EARLY_ABORT): New macro.
36115         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36116         evaluates to true.
36117
36118 2008-09-14  Bruno Haible  <bruno@clisp.org>
36119
36120         * modules/perror-tests: New file.
36121         * tests/test-perror.sh: New file.
36122         * tests/test-perror.c: New file.
36123
36124         New module 'perror'.
36125         * lib/stdio.in.h (perror): New declaration.
36126         * lib/perror.c: New file.
36127         * m4/perror.m4: New file.
36128         * modules/perror: New file.
36129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36130         * doc/posix-functions/perror.texi: Mention the perror module.
36131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36132         REPLACE_PERROR.
36133         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36134         REPLACE_PERROR.
36135
36136 2008-09-14  Bruno Haible  <bruno@clisp.org>
36137
36138         * modules/stdio (Makefile.am): Reorder to match the order in
36139         lib/stdio.in.h.
36140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36141
36142 2008-09-13  Bruno Haible  <bruno@clisp.org>
36143
36144         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36145
36146 2008-09-13  Bruno Haible  <bruno@clisp.org>
36147
36148         Extend strerror to cover the added errno values.
36149         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36150         (rpl_strerror): Provide error messages for the added errno values and
36151         for the WSA* values.
36152         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36153         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36154         strerror.
36155         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36156         * modules/strerror (Depends-on): Add errno.
36157         * doc/posix-functions/strerror.texi: Document the change.
36158         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36159         and EOVERFLOW.
36160
36161 2008-09-13  Bruno Haible  <bruno@clisp.org>
36162
36163         * modules/EOVERFLOW: Remove file.
36164         * m4/eoverflow.m4: Remove file.
36165         * modules/EOVERFLOW-tests: Remove file.
36166         * tests/test-EOVERFLOW.c: Remove file.
36167         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36168         * modules/ftell (Depends-on): Likewise.
36169         * modules/getdelim (Depends-on): Likewise.
36170         * modules/getugroups (Depends-on): Likewise.
36171         * modules/poll (Depends-on): Likewise.
36172         * modules/snprintf (Depends-on): Likewise.
36173         * modules/sprintf-posix (Depends-on): Likewise.
36174         * modules/vasnprintf (Depends-on): Likewise.
36175         * modules/vasprintf (Depends-on): Likewise.
36176         * modules/vfprintf-posix (Depends-on): Likewise.
36177         * modules/vsnprintf (Depends-on): Likewise.
36178         * modules/vsprintf-posix (Depends-on): Likewise.
36179         * modules/xvasprintf (Depends-on): Likewise.
36180         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36181         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36182         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36183         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36184         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36185         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36186         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36187         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36188         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36189         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36190         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36191         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36192         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36193         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36194         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36195         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36196         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36197         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36198         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36199         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36200         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36201         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36202         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36203         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36204         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36205         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36206         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36207         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36208         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36209         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36210         * MODULES.html.sh: Remove EOVERFLOW.
36211         * NEWS: Mention the change.
36212
36213 2008-09-13  Bruno Haible  <bruno@clisp.org>
36214
36215         * modules/errno-tests: New file.
36216         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36217
36218         * lib/errno.in.h: New file.
36219         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36220         * modules/errno: New file.
36221         * doc/posix-headers/errno.texi: Update documentation.
36222         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36223
36224 2008-09-13  Bruno Haible  <bruno@clisp.org>
36225
36226         * tests/test-poll.c: Use #if for native Windows, rather than testing
36227         __MSVCRT__.
36228
36229 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36230             Bruno Haible  <bruno@clisp.org>
36231
36232         * lib/glob.c: Don't include <pwd.h> on native Windows.
36233         (WINDOWS32): New macro.
36234         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36235
36236 2008-09-13  Bruno Haible  <bruno@clisp.org>
36237
36238         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36239         (ETIMEDOUT): Remove macro.
36240         (glthread_cond_timedwait_multithreaded): New declaration.
36241         (glthread_cond_timedwait): Use it.
36242         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36243         (glthread_cond_timedwait_multithreaded): New function.
36244
36245 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36246
36247         * modules/poll-tests: Do not check for io.h.
36248         * tests/test-poll.c: Check for __MSVCRT__ instead.
36249
36250 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36251
36252         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36253         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36254         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36255
36256 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36257
36258         * modules/poll-tests: New.
36259         * tests/test-poll.c: New.
36260
36261 2008-09-12  Eric Blake  <ebb9@byu.net>
36262
36263         frexp: test for NetBSD failure on -0.0
36264         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36265         not all, bugs from NetBSD 3.0 have been fixed.
36266         * doc/posix-functions/frexp.texi (frexp): Document bug.
36267         Reported by Thomas Klausner.
36268
36269         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36270         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36271         literal -0.0.
36272         Reported by Jonathan C. Patschke <jp@centtech.com>.
36273
36274 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36275
36276         * lib/glthread/cond.h: Use dummy implementation also if
36277         USE_WIN32_THREADS.
36278
36279 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36280
36281         * modules/fnmatch-posix (License): Change to LGPLv2+.
36282         * modules/fnmatch-gnu (License): Likewise.
36283
36284 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36285
36286         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36287
36288 2008-09-11  Jim Meyering  <meyering@redhat.com>
36289
36290         * users.txt: Add gtk-vnc.
36291
36292 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36293
36294         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36295         rotate amounts.
36296
36297         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36298         required for 16-bit and 8-bit rotates.
36299         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36300         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36301         UINT8_MAX instead of hard-coded constants.
36302         Suggested by Paul Eggert.
36303
36304 2008-09-07  Bruno Haible  <bruno@clisp.org>
36305
36306         * tests/test-striconveh.c (main): Check behaviour when converting from
36307         UTF-7.
36308
36309         Make striconveh work better with stateful encodings.
36310         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36311         that iconv does not increment the inptr when returning -1/EINVAL.
36312
36313 2008-09-07  Bruno Haible  <bruno@clisp.org>
36314
36315         * build-aux/config.rpath: Update according to libtool-2.2.6.
36316         * build-aux/config.libpath: Likewise.
36317
36318 2008-09-06  Bruno Haible  <bruno@clisp.org>
36319
36320         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36321         * lib/freadptr.c (freadptr): Likewise.
36322         * lib/freadseek.c (freadptrinc): Likewise.
36323         Reported by Simon Josefsson.
36324
36325 2008-09-06  Bruno Haible  <bruno@clisp.org>
36326
36327         * modules/freadptr (License): Change to LGPLv2+.
36328         * modules/freadseek (License): Likewise.
36329         Suggested by Eric Blake.
36330
36331         * modules/memchr2 (License): Change to LGPLv2+.
36332         Approved by Eric Blake.
36333
36334 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36335             Bruno Haible  <bruno@clisp.org>
36336
36337         Make gnulib-tool work with native 'sed' on AIX.
36338         * gnulib-tool (sed_noop): New variable.
36339         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36340         func_add_or_update, func_create_testdir): Use it to initialize sed
36341         script variables.
36342         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36343
36344 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
36345             Bruno Haible  <bruno@clisp.org>
36346
36347         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
36348         also works after #include directives.
36349
36350 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
36351
36352         getdate.y: reject an out-of-range timezone value
36353         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
36354         the range [-24...+24].  When specified with only one or two digits,
36355         * tests/test-getdate.c: Tests for the fix.
36356         * doc/getdate.texi: Document this change.
36357
36358 2008-09-03  Bruno Haible  <bruno@clisp.org>
36359
36360         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
36361
36362 2008-09-02  Simon Josefsson  <simon@josefsson.org>
36363
36364         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
36365         <bruce.korb@gmail.com> with ideas from Ben Pfaff
36366         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
36367         Blake <ebb9@byu.net>.
36368
36369         * tests/test-bitrotate.c: Add more test vectors.
36370
36371 2008-09-02  Eric Blake  <ebb9@byu.net>
36372
36373         vasnprintf-posix: handle large precision via %.*d
36374         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
36375         when handling it ourselves.
36376         * tests/test-vasnprintf-posix.c (test_function): Add test.
36377         * tests/test-snprintf-posix.h (test_function): Likewise.
36378         * tests/test-sprintf-posix.h (test_function): Likewise.
36379         * tests/test-vasprintf-posix.c (test_function): Likewise.
36380         Reported by Alain Guibert.
36381
36382 2008-09-01  Eric Blake  <ebb9@byu.net>
36383
36384         c-stack: make configure-time check more robust
36385         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
36386         successful sigaction call.
36387         Reported by Tom G. Christensen.
36388
36389 2008-09-01  Bruno Haible  <bruno@clisp.org>
36390
36391         New module 'findprog-lgpl'.
36392         * modules/findprog-lgpl: New file.
36393         * lib/findprog-lgpl.c: New file.
36394         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
36395         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
36396         to decide whether to use strdup or xstrdup, concatenated_filename or
36397         xconcatenated_filename.
36398
36399 2008-09-01  Bruno Haible  <bruno@clisp.org>
36400
36401         Split module 'concat-filename' into 'concat-filename' (LGPL) and
36402         'xconcat-filename' (GPL).
36403         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
36404         (License): Change to LGPLv2+.
36405         * modules/xconcat-filename: New file.
36406         * lib/concat-filename.h (concatenated_filename): Change specification.
36407         (xconcatenated_filename): New declaration.
36408         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
36409         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
36410         memory situations.
36411         * lib/xconcat-filename.c: New file.
36412         * NEWS: Mention the change.
36413         * lib/findprog.c: Include concat-filename.h, not filename.h.
36414         (find_in_path): Use xconcatenated_filename instead of
36415         concatenated_filename.
36416         * lib/javacomp.c: Include concat-filename.h, not filename.h.
36417         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36418         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36419         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36420         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
36421         instead of concatenated_filename.
36422         * lib/javaexec.c: Include concat-filename.h, not filename.h.
36423         (execute_java_class): Use xconcatenated_filename instead of
36424         concatenated_filename.
36425         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
36426         * modules/javacomp (Depends-on): Likewise.
36427         * modules/javaexec (Depends-on): Likewise.
36428
36429 2008-09-01  Bruno Haible  <bruno@clisp.org>
36430
36431         Split module 'filename' into 'filename' and 'concat-filename'.
36432         * modules/filename: Keep only lib/filename.h.
36433         (License): Change to LGPLv2+.
36434         * modules/concat-filename: New file, extracted from modules/filename.
36435         * lib/filename.h (concatenated_filename): Remove declaration.
36436         * lib/concat-filename.h: New file, extracted from lib/filename.h.
36437         * lib/concat-filename.c: Include concat-filename.h.
36438         * NEWS: Mention the change.
36439
36440 2008-09-01  Simon Josefsson  <simon@josefsson.org>
36441
36442         * lib/bitrotate.h (rotl8, rotr8): Add.
36443
36444         * modules/bitrotate (configure.ac): Need
36445         AC_REQUIRE([AC_C_INLINE]).
36446         (Description): Mention stdint.h.  Reported by Bruno Haible
36447         <bruno@clisp.org>.
36448
36449         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
36450         Paolo Bonzini <bonzini@gnu.org>.
36451
36452 2008-08-31  Bruno Haible  <bruno@clisp.org>
36453
36454         Assume Solaris specific bi-arch conventions on Solaris systems.
36455         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
36456         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
36457         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
36458         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
36459         like acl_libdirstem.
36460         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
36461         acl_libdirstem.
36462         * NEWS: Mention the change.
36463         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
36464
36465 2008-08-31  Jim Meyering  <meyering@redhat.com>
36466
36467         * lib/strftime.h: Add comments describing the two added arguments.
36468
36469         remove duplicate #include directives
36470         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
36471         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
36472
36473 2008-08-31  Bruno Haible  <bruno@clisp.org>
36474
36475         New module 'sigpipe-die'.
36476         * modules/sigpipe-die: New file.
36477         * lib/sigpipe-die.h: New file.
36478         * lib/sigpipe-die.c: New file.
36479         * MODULES.html.sh (Signal handling): Add sigpipe-die.
36480
36481 2008-08-31  Bruno Haible  <bruno@clisp.org>
36482
36483         Don't override previously installed signal handlers.
36484         * lib/fatal-signal.c (saved_sigactions): New variable.
36485         (uninstall_handlers): Reset the signal to the saved handler, not
36486         to SIG_DFL (except when ignored).
36487         (install_handlers): Save the previous handlers.
36488
36489 2008-08-30  Bruno Haible  <bruno@clisp.org>
36490
36491         * gnulib-tool (func_reset_sigpipe): New function.
36492         (func_get_automake_snippet, func_modules_transitive_closure,
36493         func_import): Invoke it before a join command that reads from stdin,
36494         to avoid "echo: write error: Broken pipe" error messages on stderr.
36495         Reported by Sam Steingold <sds@gnu.org>.
36496
36497 2008-08-30  Bruno Haible  <bruno@clisp.org>
36498
36499         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
36500         Code copied from m4/open.m4.
36501         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
36502         access and the filename ends in a slash. Code copied from lib/open.c.
36503         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
36504         * tests/test-fopen.c (main): Check against bug with trailing slash.
36505
36506 2008-08-29  Bruno Haible  <bruno@clisp.org>
36507
36508         Avoid some "gcc -pedantic" warnings.
36509         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
36510         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
36511         * lib/dirent.in.h: Likewise.
36512         * lib/fcntl.in.h: Likewise.
36513         * lib/float.in.h: Likewise.
36514         * lib/iconv.in.h: Likewise.
36515         * lib/inttypes.in.h: Likewise.
36516         * lib/locale.in.h: Likewise.
36517         * lib/math.in.h: Likewise.
36518         * lib/netinet_in.in.h: Likewise.
36519         * lib/search.in.h: Likewise.
36520         * lib/signal.in.h: Likewise.
36521         * lib/stdarg.in.h: Likewise.
36522         * lib/stdint.in.h: Likewise.
36523         * lib/stdio.in.h: Likewise.
36524         * lib/stdlib.in.h: Likewise.
36525         * lib/string.in.h: Likewise.
36526         * lib/strings.in.h: Likewise.
36527         * lib/sys_select.in.h: Likewise.
36528         * lib/sys_socket.in.h: Likewise.
36529         * lib/sys_stat.in.h: Likewise.
36530         * lib/sys_time.in.h: Likewise.
36531         * lib/sysexits.in.h: Likewise.
36532         * lib/time.in.h: Likewise.
36533         * lib/unistd.in.h: Likewise.
36534         * lib/wchar.in.h: Likewise.
36535         * lib/wctype.in.h: Likewise.
36536         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
36537         * modules/fchdir (Makefile.am): Likewise.
36538         * modules/fcntl (Makefile.am): Likewise.
36539         * modules/float (Makefile.am): Likewise.
36540         * modules/iconv_open (Makefile.am): Likewise.
36541         * modules/inttypes (Makefile.am): Likewise.
36542         * modules/locale (Makefile.am): Likewise.
36543         * modules/math (Makefile.am): Likewise.
36544         * modules/netinet_in (Makefile.am): Likewise.
36545         * modules/search (Makefile.am): Likewise.
36546         * modules/signal (Makefile.am): Likewise.
36547         * modules/stdarg (Makefile.am): Likewise.
36548         * modules/stdint (Makefile.am): Likewise.
36549         * modules/stdio (Makefile.am): Likewise.
36550         * modules/stdlib (Makefile.am): Likewise.
36551         * modules/string (Makefile.am): Likewise.
36552         * modules/strings (Makefile.am): Likewise.
36553         * modules/sys_select (Makefile.am): Likewise.
36554         * modules/sys_socket (Makefile.am): Likewise.
36555         * modules/sys_stat (Makefile.am): Likewise.
36556         * modules/sys_time (Makefile.am): Likewise.
36557         * modules/sysexits (Makefile.am): Likewise.
36558         * modules/time (Makefile.am): Likewise.
36559         * modules/unistd (Makefile.am): Likewise.
36560         * modules/wchar (Makefile.am): Likewise.
36561         * modules/wctype (Makefile.am): Likewise.
36562         Reported by Reuben Thomas <rrt@sc3d.org>.
36563
36564 2008-08-29  Bruno Haible  <bruno@clisp.org>
36565
36566         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36567         any more.
36568
36569 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36570
36571         * MODULES.html.sh (Misc): Add bitrotate.
36572
36573         * modules/bitrotate: New file.
36574
36575         * lib/bitrotate.h: New file.
36576
36577         * modules/bitrotate-tests: New file.
36578
36579         * tests/test-bitrotate.c: New file.
36580
36581         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36582         on the bitrotate module.
36583
36584         * lib/arctwo.c: Use new bitrotate module.
36585
36586 2008-08-29  Jim Meyering  <meyering@redhat.com>
36587
36588         bootstrap: merge changes from coreutils
36589         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36590         of copied files.  Remove a kludge, now that this is fixed.
36591         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36592         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36593         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36594
36595 2008-08-29  Bruno Haible  <bruno@clisp.org>
36596
36597         * MODULES.html.sh: Remove --cvs-urls option.
36598
36599 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36600
36601         maint.mk: adjust to file name change
36602         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36603
36604 2008-08-28  Jim Meyering  <meyering@redhat.com>
36605
36606         * modules/getndelim2 (License): Relicense to LGPLv2+.
36607         Approved by Richard Stallman for the version of 1995, and by
36608         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36609
36610 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36611
36612         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36613         dummy if one is not available.  Do not touch them if
36614         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36615         (getc_maybe_unlocked): New.
36616         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36617
36618 2008-08-26  Eric Blake  <ebb9@byu.net>
36619
36620         doc/INSTALL: resync from autoconf
36621         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36622         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36623         moving...
36624         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36625         * INSTALL: Regenerate.
36626         * INSTALL.ISO: New file.
36627         * INSTALL.UTF-8: Likewise.
36628
36629 2008-08-26  Jim Meyering  <meyering@redhat.com>
36630
36631         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36632         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36633         these definitions conditional, so that they may be overridden, too.
36634
36635 2008-08-26  Bruno Haible  <bruno@clisp.org>
36636
36637         Generate INSTALL file variants with prettier quotes.
36638         * doc/Makefile (INSTALL_PRELUDE): New macro.
36639         (INSTALL): Use it.
36640         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36641
36642 2008-08-26  Bruno Haible  <bruno@clisp.org>
36643
36644         Run makeinfo in an English locale.
36645         * doc/Makefile (MAKEINFO): New variable.
36646
36647 2008-08-26  Bruno Haible  <bruno@clisp.org>
36648
36649         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36650         Suggested by Eric Blake.
36651
36652 2008-08-25  Bruno Haible  <bruno@clisp.org>
36653
36654         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36655
36656 2008-08-25  Eric Blake  <ebb9@byu.net>
36657
36658         c-stack: test that stack overflow can be caught
36659         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36660         that platform allows handling stack overflow; at least OS/2 EMX
36661         has sigaltstack, but crashes before transferring control to
36662         handler on stack overflow.
36663         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36664         check for HAVE_STACK_OVERFLOW_HANDLING.
36665         Reported by Elbert Pol.
36666
36667 2008-08-25  Bruno Haible  <bruno@clisp.org>
36668
36669         * doc/posix-functions/strftime.texi: Fix description of strftime
36670         module.
36671
36672 2008-08-24  Bruno Haible  <bruno@clisp.org>
36673
36674         * tests/uniwidth/test-uc_width2.c: New file.
36675         * tests/uniwidth/test-uc_width2.sh: New file.
36676         * modules/uniwidth/width-tests (Files): Add the new files.
36677         (TESTS): Add uniwidth/test-uc_width2.sh.
36678         (TESTS_ENVIRONMENT): New variable.
36679         (check_PROGRAMS): Add test-uc_width2.
36680         (test_uc_width2_SOURCES): New variable.
36681
36682         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36683         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36684         not 0x00AB.
36685         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36686
36687 2008-08-22  Eric Blake  <ebb9@byu.net>
36688
36689         test-lock, test-tls: mention why a test is skipped
36690         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36691         skipped.
36692         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36693
36694         count-one-bits: relax license
36695         * modules/count-one-bits (License): Relicense to LGPLv2+.
36696         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36697
36698 2008-08-22  Andreas Schwab  <schwab@suse.de>
36699
36700         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36701         Remove spurious space in assignment.
36702
36703 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36704
36705         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36706         Paul Eggert <eggert@CS.UCLA.EDU>.
36707
36708 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36709
36710         * modules/gettext: Add m4/threadlib.m4.
36711
36712 2008-08-19  Eric Blake  <ebb9@byu.net>
36713
36714         test-c-stack: fix compilation failure on FreeBSD 5.0
36715         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36716         headers before <sys/resource.h>.
36717         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36718         the bug.
36719         Reported by Nelson H. F. Beebe.
36720
36721         strverscmp: migrate from "strverscmp.h" to <string.h>
36722         * modules/string (Makefile.am): Add new hooks.
36723         * modules/strverscmp (Files): Remove strverscmp.h.
36724         (Depends-on): Add string.
36725         (configure.ac): Add indicator.
36726         (Include): Mention new header.
36727         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36728         defaults.
36729         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36730         results.
36731         * lib/strverscmp.h: Delete.
36732         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36733         * tests/test-strverscmp.c (includes): Adjust client.
36734         * lib/check-version.c (includes): Likewise.
36735         * NEWS: Document the change.
36736
36737         strverscmp: add unit test
36738         * modules/strverscmp-tests: New file.
36739         * tests/test-strverscmp.c: Likewise.
36740
36741 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36742
36743         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36744         regarding Windows crypto stuff, from Mono.
36745
36746 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36747
36748         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36749         if present, for intel RND.  Return error on failures.
36750
36751 2008-08-18  Ben Pfaff  <blp@gnu.org>
36752
36753         gitlog-to-changelog: give better diagnostic for failed pipe-open
36754         * build-aux/gitlog-to-changelog: Improve error message: suggest
36755         that the version of Git may be too old.
36756
36757 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36758
36759         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36760         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36761
36762 2008-08-18  Bruno Haible  <bruno@clisp.org>
36763
36764         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36765         pthread_in_use().
36766
36767 2008-08-18  Bruno Haible  <bruno@clisp.org>
36768
36769         * lib/glthread/threadlib.c: Include <pthread.h>.
36770
36771 2008-08-18  Bruno Haible  <bruno@clisp.org>
36772
36773         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36774         glthread_recursive_lock_* macros.
36775         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36776         Fix syntax error.
36777
36778 2008-08-18  Bruno Haible  <bruno@clisp.org>
36779
36780         * lib/glthread/thread.c: Avoid forcing a context switch right after
36781         thread creation.
36782
36783 2008-08-17  Bruno Haible  <bruno@clisp.org>
36784
36785         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36786         * lib/glthread/thread.h: Provide Win32 specific implementation.
36787         * modules/thread (Files): Add lib/glthread/thread.c.
36788         (Depends-on): Add lock.
36789         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36790
36791 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36792
36793         New module 'yield'.
36794         * modules/yield: New file.
36795         * lib/glthread/yield.h: New file.
36796         * m4/yield.m4: New file.
36797         * MODULES.html.sh (Multithreading): Add yield.
36798
36799 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36800
36801         New module 'thread'.
36802         * modules/thread: New file.
36803         * lib/glthread/thread.h: New file.
36804         * m4/thread.m4: New file.
36805         * MODULES.html.sh (Multithreading): Add thread.
36806
36807 2008-08-17  Bruno Haible  <bruno@clisp.org>
36808
36809         * lib/glthread/lock.h: Include <stdlib.h> always.
36810         * lib/glthread/tls.h: Likewise.
36811         * lib/glthread/cond.h: Likewise.
36812
36813 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36814
36815         New module 'cond'.
36816         * modules/cond: New file.
36817         * lib/glthread/cond.h: New file.
36818         * lib/glthread/cond.c: New file.
36819         * m4/cond.m4: New file.
36820         * MODULES.html.sh (Multithreading): Add cond.
36821
36822 2008-08-16  Eric Blake  <ebb9@byu.net>
36823
36824         c-stack: fix regression on Irix 5.3 from 2008-06-21
36825         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36826         sa_sigaction...
36827         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36828         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36829         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36830         * modules/signal (Makefile.am): Use the value.
36831         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36832         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36833         * doc/posix-headers/signal.texi (signal.h): Document this
36834         portability issue.
36835         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36836         Reported by Tom G. Christensen.
36837
36838 2008-08-17  Bruno Haible  <bruno@clisp.org>
36839
36840         New module 'threadlib'.
36841         * modules/threadlib: New file.
36842         * lib/glthread/threadlib.c: New file, extracted from
36843         lib/glthread/lock.c.
36844         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36845         functions.
36846         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36847         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36848         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36849         macros.
36850         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36851         (gl_DISABLE_THREADS): Remove macro.
36852         * modules/lock (Files): Remove build-aux/config.rpath.
36853         (Depends-on): Remove havelib. Add threadlib.
36854         (configure.ac-early): Remove section.
36855         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36856         * modules/tls (Depends-on): Remove lock. Add threadlib.
36857         (Link): New section, copied from threadlib.
36858         * MODULES.html.sh (Multithreading): Add threadlib.
36859
36860 2008-08-14  Bruno Haible  <bruno@clisp.org>
36861
36862         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36863         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36864         glthread_rwlock_unlock, glthread_rwlock_destroy,
36865         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36866         glthread_recursive_lock_destroy): Define as macros always.
36867         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36868         glthread_lock_lock.
36869         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36870         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36871         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36872         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36873         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36874         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36875         (glthread_recursive_lock_lock_func): Renamed from
36876         glthread_recursive_lock_lock.
36877         (glthread_recursive_lock_unlock_func): Renamed from
36878         glthread_recursive_lock_unlock.
36879         (glthread_recursive_lock_destroy_func): Renamed from
36880         glthread_recursive_lock_destroy.
36881
36882 2008-08-14  Bruno Haible  <bruno@clisp.org>
36883
36884         * lib/glthread/lock.h: Renamed from lib/lock.h.
36885         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36886         * lib/glthread/tls.h: Renamed from lib/tls.h.
36887         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36888         * lib/fstrcmp.c: Update includes.
36889         * lib/strsignal.c: Update includes.
36890         * modules/lock (Files, Makefile.am): Update.
36891         (Include): Change to "glthread/lock.h".
36892         * modules/tls (Files, Makefile.am): Update.
36893         (Include): Change to "glthread/tls.h".
36894         * tests/test-lock.c: Update includes.
36895         * tests/test-tls.c: Update includes.
36896         * NEWS: Mention the renamed header files.
36897
36898 2008-08-11  Jim Meyering  <meyering@redhat.com>
36899
36900         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36901
36902 2008-08-11  Eric Blake  <ebb9@byu.net>
36903
36904         test-c-stack: avoid C99-ism
36905         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36906         before statement.
36907         Reported by Alain Guibert.
36908
36909 2008-08-10  Jim Meyering  <meyering@redhat.com>
36910
36911         ensure that return value of uinttostr et al are not ignored
36912         * lib/inttostr.h (__GNUC_PREREQ): Define.
36913         (__attribute_warn_unused_result__): Define.
36914         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36915
36916 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36917
36918         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36919         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36920
36921 2008-08-07  Jim Meyering  <meyering@redhat.com>
36922
36923         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36924
36925         * modules/mkstemp (License): Relicense under LGPLv2+.
36926         * modules/tempname (License): Likewise.
36927
36928 2008-08-06  Bruno Haible  <bruno@clisp.org>
36929
36930         * lib/poll.c (poll): Further micro-optimization.
36931
36932 2008-08-06  Jim Meyering  <meyering@redhat.com>
36933
36934         inet_pton.c: use locale-independent tolower
36935         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36936         (inet_pton6): Use c_tolower rather than tolower.
36937         * modules/inet_pton (Depends-on): Add c-ctype.
36938
36939 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36940
36941         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36942         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36943
36944 2008-08-06  Jim Meyering  <meyering@redhat.com>
36945
36946         * modules/inet_pton (License): Relicense under LGPLv2+.
36947
36948 2008-08-03  Bruno Haible  <bruno@clisp.org>
36949
36950         Additional non-aborting API for lock and tls.
36951         * lib/lock.h: Include <errno.h>.
36952         (glthread_lock_init): New macro/function.
36953         (gl_lock_init): Define as wrapper around glthread_lock_init.
36954         (glthread_lock_lock): New macro/function.
36955         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36956         (glthread_lock_unlock): New macro/function.
36957         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36958         (glthread_lock_destroy): New macro/function.
36959         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36960         (glthread_rwlock_init): New macro/function.
36961         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36962         (glthread_rwlock_rdlock): New macro/function.
36963         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36964         (glthread_rwlock_wrlock): New macro/function.
36965         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36966         (glthread_rwlock_unlock): New macro/function.
36967         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36968         (glthread_rwlock_destroy): New macro/function.
36969         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36970         (glthread_recursive_lock_init): New macro/function.
36971         (gl_recursive_lock_init): Define as wrapper around
36972         glthread_recursive_lock_init.
36973         (glthread_recursive_lock_lock): New macro/function.
36974         (gl_recursive_lock_lock): Define as wrapper around
36975         glthread_recursive_lock_lock.
36976         (glthread_recursive_lock_unlock): New macro/function.
36977         (gl_recursive_lock_unlock): Define as wrapper around
36978         glthread_recursive_lock_unlock.
36979         (glthread_recursive_lock_destroy): New macro/function.
36980         (gl_recursive_lock_destroy): Define as wrapper around
36981         glthread_recursive_lock_destroy.
36982         (glthread_once): New macro/function.
36983         (gl_once): Define as wrapper around glthread_once.
36984         Update function declarations.
36985         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36986         glthread_rwlock_init. Return error code.
36987         (glthread_rwlock_rdlock_multithreaded): Renamed from
36988         glthread_rwlock_rdlock. Return error code.
36989         (glthread_rwlock_wrlock_multithreaded): Renamed from
36990         glthread_rwlock_wrlock. Return error code.
36991         (glthread_rwlock_unlock_multithreaded): Renamed from
36992         glthread_rwlock_unlock. Return error code.
36993         (glthread_rwlock_destroy_multithreaded): Renamed from
36994         glthread_rwlock_destroy. Return error code.
36995         (glthread_recursive_lock_init_multithreaded): Renamed from
36996         glthread_recursive_lock_init. Return error code.
36997         (glthread_recursive_lock_lock_multithreaded): Renamed from
36998         glthread_recursive_lock_lock. Return error code.
36999         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37000         glthread_recursive_lock_unlock. Return error code.
37001         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37002         glthread_recursive_lock_destroy. Return error code.
37003         (glthread_once_call): Make static.
37004         (glthread_once_multithreaded): Renamed from glthread_once.
37005         * lib/tls.h: Include <errno.h>.
37006         (glthread_tls_key_init): New macro/function.
37007         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37008         (glthread_tls_set): New macro/function.
37009         (gl_tls_set): Define as wrapper around glthread_tls_set.
37010         (glthread_tls_key_destroy): New macro/function.
37011         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37012         Update function declarations.
37013         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37014         glthread_tls_get.
37015         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37016
37017 2008-08-04  Eric Blake  <ebb9@byu.net>
37018
37019         gnumakefile: use space, not TAB, outside of targets
37020         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37021
37022 2008-08-02  Jim Meyering  <meyering@redhat.com>
37023
37024         getdate.y: avoid locale-dependent date parsing failure
37025         In Turkish locales, getdate would fail to recognize keywords
37026         containing a lowercase "i".  The solution is not to rely on
37027         locale-sensitive case-conversion.
37028         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37029         (lookup_word): Use c_toupper in place of toupper.
37030         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37031         Reported by Vefa Bicakci <bicave@superonline.com> in
37032         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37033         * modules/getdate (Depends-on): Add c-ctype.
37034
37035 2008-08-02  Bruno Haible  <bruno@clisp.org>
37036
37037         * gnulib-tool (func_import): When updating or creating a .gitignore
37038         file, prepend each added line with a slash, and ignore leading slashes
37039         from the existing lines.
37040         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37041
37042 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37043
37044         Portability fix for GNU make 3.79.1.
37045         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37046         versions do not understand.
37047
37048 2008-08-01  Bruno Haible  <bruno@clisp.org>
37049
37050         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37051         * tests/test-isnanf.h (zero): New variable.
37052         (main): Avoid literal -0.0f.
37053         * tests/test-isnand.h (zero): New variable.
37054         (main): Avoid literal -0.0.
37055         * tests/test-isnanl.h (zero): New variable.
37056         (main): Avoid literal -0.0L.
37057         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37058         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37059         -0.0, -0.0L.
37060         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37061         (test_signbitd): Avoid literal -0.0.
37062         (test_signbitl): Avoid literal -0.0L.
37063         * tests/test-ceilf1.c (zero): New variable.
37064         (main): Avoid literal -0.0f.
37065         * tests/test-ceill.c (zero): New variable.
37066         (main): Avoid literal -0.0L.
37067         * tests/test-floorf1.c (zero): New variable.
37068         (main): Avoid literal -0.0f.
37069         * tests/test-floorl.c (zero): New variable.
37070         (main): Avoid literal -0.0L.
37071         * tests/test-roundf1.c (zero): New variable.
37072         (main): Avoid literal -0.0f.
37073         * tests/test-round1.c (zero): New variable.
37074         (main): Avoid literal -0.0.
37075         * tests/test-roundl.c (zero): New variable.
37076         (main): Avoid literal -0.0L.
37077         * tests/test-truncf1.c (zero): New variable.
37078         (main): Avoid literal -0.0f.
37079         * tests/test-trunc1.c (zero): New variable.
37080         (main): Avoid literal -0.0.
37081         * tests/test-truncl.c (zero): New variable.
37082         (main): Avoid literal -0.0L.
37083         * tests/test-frexp.c (zero): New variable.
37084         (main): Avoid literal -0.0.
37085         * tests/test-frexpl.c (zero): New variable.
37086         (main): Avoid literal -0.0L.
37087         * tests/test-ldexpl.c (zero): New variable.
37088         (main): Avoid literal -0.0L.
37089         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37090         (zerod, zerol): New variables.
37091         (test_function): Avoid literals -0.0, -0.0L.
37092         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37093         (zerod, zerol): New variables.
37094         (test_function): Avoid literals -0.0, -0.0L.
37095         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37096         (zerod, zerol): New variables.
37097         (test_function): Avoid literals -0.0, -0.0L.
37098         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37099         (zerod, zerol): New variables.
37100         (test_function): Avoid literals -0.0, -0.0L.
37101         * tests/test-strtod.c (zero): New variable.
37102         (main): Avoid literal -0.0.
37103         Reported by Jonathan C. Patschke <jp@centtech.com>.
37104
37105 2008-07-31  Jim Meyering  <meyering@redhat.com>
37106
37107         sha256.h: correct definition of SHA224_DIGEST_SIZE
37108         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37109         Reported by Paulie Pena IV <paulie4@gmail.com>.
37110         Define as 224 / 8, rather than as a literal.
37111         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37112         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37113         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37114
37115 2008-07-31  Bruno Haible  <bruno@clisp.org>
37116
37117         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37118         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37119         Reported by Jonathan Patschke <jp@centtech.com>.
37120
37121 2008-07-31  Bruno Haible  <bruno@clisp.org>
37122
37123         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37124         Reported by Paolo Bonzini <bonzini@gnu.org>.
37125
37126 2008-07-30  Eric Blake  <ebb9@byu.net>
37127
37128         test-strtod: allow compilation without -lm
37129         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37130         Reported by Dennis Clarke <blastwave@gmail.com>.
37131
37132 2008-07-28  Jim Meyering  <meyering@redhat.com>
37133
37134         bootstrap: work also when there are no .po files in po/
37135         * build-aux/bootstrap (update_po_files): Complete the change
37136         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37137
37138 2008-07-27  Jim Meyering  <meyering@redhat.com>
37139
37140         * users.txt: Add zile.
37141
37142 2008-07-26  Ben Pfaff  <blp@gnu.org>
37143
37144         Add missing dependencies on new m4/exponent[fdl].m4 files.
37145         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37146         * modules/isnand-nolibm: Add m4/exponentd.m4.
37147         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37148         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37149         m4/isnan[fdl].m4, because the macros actually used moved.
37150         Reported by Jim Meyering.
37151
37152 2008-07-14  Ben Pfaff  <blp@gnu.org>
37153
37154         Add isinf module.
37155         * lib/isinf.c: New file.
37156         * lib/math.in.h: Define isinf macro if we have decided to replace
37157         it.
37158         * m4/isinf.m4: New file.
37159         * m4/math_h.m4: Initialize and substitute variables for isinf
37160         module.
37161         * modules/isinf: New file.
37162         * modules/isinf-tests: New file.
37163         * modules/math: Add substitutions for new module.
37164         * tests/test-isinf.c: New file.
37165         * doc/posix-functions/isinf.texi: Mention new module.
37166         * MODULES.html.sh: Mention new module.
37167
37168 2008-07-14  Ben Pfaff  <blp@gnu.org>
37169
37170         Factor out some macros for use by additional modules.
37171         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37172         exponentf.m4.
37173         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37174         exponentd.m4.
37175         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37176         file exponentl.m4.
37177         * m4/exponentf.m4: New file.
37178         * m4/exponentd.m4: New file.
37179         * m4/exponentl.m4: New file.
37180         * modules/isnanf: Use new file m4/exponentf.m4.
37181         * modules/isnand: Use new file m4/exponentd.m4.
37182         * modules/isnanl: Use new file m4/exponentl.m4.
37183
37184 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37185
37186         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37187         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37188         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37189         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37190
37191         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37192         readlink on platforms without PATH_MAX.
37193
37194 2008-07-21  Eric Blake  <ebb9@byu.net>
37195
37196         Warn, not fail, on stale version.
37197         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37198
37199         Don't allow installation with stale devel version number.
37200         * top/GNUmakefile (_is-install-target): New macro.
37201         (_curr-ver): Forbid installation with stale version number.
37202
37203 2008-07-20  Bruno Haible  <bruno@clisp.org>
37204
37205         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37206         TESTS_ENVIRONMENT.
37207         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37208
37209 2008-07-20  Bruno Haible  <bruno@clisp.org>
37210
37211         * lib/c-stack.h (c_stack_action): Add documentation.
37212         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37213
37214 2008-07-20  Bruno Haible  <bruno@clisp.org>
37215
37216         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37217         * modules/readlink (License): Likewise.
37218
37219 2008-07-17  Eric Blake  <ebb9@byu.net>
37220
37221         * modules/c-stack (Link): Fix typo.
37222
37223         Make c-stack use libsigsegv, when available.
37224         * modules/c-stack (Depends-on): Add libsigsegv.
37225         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37226         needed.
37227         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37228         (segv_handler, overflow_handler, c_stack_action)
37229         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37230         implementation when libsigsegv is available, but only when using
37231         the library is necessary.
37232         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37233         comment, explaining why XSI check fails on Linux.
37234         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37235         * tests/test-c-stack2.sh: Tweak skip message.
37236         * NEWS: Document new link-time requirements.
37237
37238 2008-07-16  Eric Blake  <ebb9@byu.net>
37239
37240         c-stack: Expose false positives when not using libsigsegv.
37241         * modules/c-stack-tests (Files): Expand test.
37242         * tests/test-c-stack.c (main): Add means to conditionally trigger
37243         non-overflow SIGSEGV.
37244         * tests/test-c-stack2.sh: New file.
37245
37246 2008-07-14  Bruno Haible  <bruno@clisp.org>
37247
37248         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37249         Reported by Eric Blake.
37250
37251 2008-07-14  Sam Steingold  <sds@gnu.org>
37252             Bruno Haible  <bruno@clisp.org>
37253
37254         New module libsigsegv.
37255         * modules/libsigsegv: New file.
37256         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37257         modifications.
37258         * MODULES.html.sh (Signal handling): New section.
37259
37260 2008-07-14  Bruno Haible  <bruno@clisp.org>
37261
37262         * modules/unictype/ctype-* (Description): Add the word "function".
37263         Improves the resulting doc in MODULES.html.
37264
37265 2008-07-12  Ben Pfaff  <blp@gnu.org>
37266
37267         Add longlong module.
37268         * modules/longlong: New file.
37269
37270 2008-07-12  Bruno Haible  <bruno@clisp.org>
37271
37272         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37273         to empty.
37274
37275 2008-07-10  Ben Pfaff  <blp@gnu.org>
37276
37277         Add isnan module.
37278         * doc/posix-functions/isnan.texi: Mention new module.
37279         * lib/math.in.h: Define isnan macro if we have decided to replace
37280         it.
37281         * m4/isnan.m4: New file.
37282         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37283         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37284         also.
37285         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37286         redundancy.
37287         * m4/math_h.m4: Initialize and substitute variables for isnan
37288         module.
37289         * modules/isnan: New file.
37290         * modules/isnan-tests: New file.
37291         * modules/math: Add substitutions for new module.
37292         * tests/test-isnan.c: New file.
37293         * MODULES.html.sh: Mention new module.
37294
37295 2008-07-10  Ben Pfaff  <blp@gnu.org>
37296
37297         Add isnanf module.
37298         * lib/isnanf.m4: New file.
37299         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37300         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37301         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37302         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37303         * modules/isnanf: New file.
37304         * modules/isnanf-tests: New file.
37305         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37306         files.
37307         * tests/test-isnanf-nolibm.c: factored most of its contents into
37308         new file tests/test-isnanf.h.
37309         * tests/test-isnanf.h: New file.
37310         * tests/test-isnanf.c: New file.
37311         * MODULES.html.sh: Mention new module.
37312         * doc/glibc-functions/isnanf.texi: Mention new module.
37313
37314 2008-07-10  Ben Pfaff  <blp@gnu.org>
37315
37316         Add isnand module.
37317         * lib/isnand.h: New file.
37318         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37319         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37320         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37321         functionality also.
37322         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37323         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37324         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37325         * modules/isnand: New file.
37326         * modules/isnand-tests: New file.
37327         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37328         files.
37329         * tests/test-isnand-nolibm.c: factored most of its contents into
37330         new file tests/test-isnand.h.
37331         * tests/test-isnand.h: New file.
37332         * tests/test-isnand.c: New file.
37333         * MODULES.html.sh: Mention new module.
37334
37335 2008-07-10  Ben Pfaff  <blp@gnu.org>
37336
37337         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37338         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37339         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37340         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
37341         * modules/isnanf-nolibm: Update references to renamed files.
37342         * modules/isnand-nolibm: Likewise.
37343         * modules/isnanf-nolibm-tests: Likewise.
37344         * modules/isnand-nolibm-tests: Likewise.
37345         * lib/frexp.c: Likewise.
37346         * lib/isfinite.c: Likewise.
37347         * lib/signbitd.c: Likewise.
37348         * lib/signbitf.c: Likewise.
37349         * lib/vasnprintf.c: Likewise.
37350         * tests/test-ceilf1.c: Likewise.
37351         * tests/test-ceilf2.c: Likewise.
37352         * tests/test-floorf1.c: Likewise.
37353         * tests/test-floorf2.c: Likewise.
37354         * tests/test-frexp.c: Likewise.
37355         * tests/test-round1.c: Likewise.
37356         * tests/test-round2.c: Likewise.
37357         * tests/test-roundf1.c: Likewise.
37358         * tests/test-strtod.c: Likewise.
37359         * tests/test-trunc1.c: Likewise.
37360         * tests/test-trunc2.c: Likewise.
37361         * tests/test-truncf1.c: Likewise.
37362         * tests/test-truncf2.c: Likewise.
37363         * NEWS: Mention the renamed header files.
37364
37365 2008-07-11  Jim Meyering  <meyering@redhat.com>
37366
37367         vc-list-files: make the last-resort awk code more portable
37368         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
37369         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
37370         does not support it.
37371
37372 2008-07-10  Eric Blake  <ebb9@byu.net>
37373
37374         Work with tar's bootstrap.
37375         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
37376         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
37377         an m4 comment.
37378
37379 2008-07-09  Jim Meyering  <meyering@redhat.com>
37380
37381         posix-shell.m4: fix typo that made this test malfunction
37382         * m4/posix-shell.m4: Remove capitalization in variable name.
37383
37384 2008-07-08  Bruno Haible  <bruno@clisp.org>
37385
37386         * m4/onceonly.m4: Update comments.
37387         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37388
37389 2008-07-04  Jim Meyering  <meyering@redhat.com>
37390
37391         * users.txt: Add vc-dwim.
37392         (bison, coreutils): Use the gitweb URL.
37393
37394 2008-07-03  Jim Meyering  <meyering@redhat.com>
37395
37396         * users.txt: Add libffcall.  From Sam Steingold.
37397
37398 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
37399
37400         getdate.y: do not ignore TZ with relative day, month or year offset
37401         * lib/getdate.y (get_date): Move the tz-handling block to follow the
37402         relative-date-handling, since otherwise, the latter would clobber the
37403         sole output (an updated Start value) of the tz-handling block.
37404         * tests/test-getdate.c: Tests for the fix
37405
37406 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37407
37408         Recognize 'foo_LIBRARIES += libgnu.a'.
37409         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
37410         makefile snippet has already specified an installation location,
37411         also using '+='.
37412
37413 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
37414
37415         getdate.y: factor out common actions
37416         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
37417         Use them in place of open-coded actions.
37418
37419 2008-07-01  Simon Josefsson  <simon@josefsson.org>
37420
37421         Add self-test for getdate module.
37422         * modules/getdate-tests: New file.
37423         * tests/test-getdate.c: New file.
37424
37425 2008-06-29  Bruno Haible  <bruno@clisp.org>
37426
37427         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
37428         .gitignore.
37429         Reported by Sylvain Beucler <beuc@beuc.net>.
37430
37431 2008-06-29  Bruno Haible  <bruno@clisp.org>
37432
37433         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
37434         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
37435
37436 2008-06-29  Bruno Haible  <bruno@clisp.org>
37437
37438         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
37439         EXTRA_DIST.
37440         Reported by Sylvain Beucler <beuc@beuc.net>.
37441
37442 2008-06-26  Jim Meyering  <meyering@redhat.com>
37443
37444         make several modules depend on the "open" module
37445         This provides slightly increased consistency when opening-for-write
37446         the name of a non-directory spelled with a trailing slash.
37447         * modules/chdir-safer: Likewise.
37448         * modules/chown: Likewise.
37449         * modules/clean-temp: Likewise.
37450         * modules/copy-file: Likewise.
37451         * modules/fchdir: Likewise.
37452         * modules/fcntl-safer: Likewise.
37453         * modules/pipe: Likewise.
37454         * modules/utime: Likewise.
37455         Prompted by Eric Blake and Bruno Haible.
37456
37457 2008-06-24  Andreas Schwab  <schwab@suse.de>
37458
37459         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
37460         literals can be used as initializers for global variables.
37461
37462 2008-06-23  Eric Blake  <ebb9@byu.net>
37463
37464         Make gnulib-cache.m4 easier to diff.
37465         * gnulib-tool (func_import): Allow newlines when reading cached
37466         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
37467
37468 2008-06-23  Bruno Haible  <bruno@clisp.org>
37469
37470         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
37471         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
37472         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
37473         m4/signalblocking.m4.
37474         (gl_PREREQ_SIGACTION): Don't invoke it.
37475         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
37476         gl_PREREQ_SIG_HANDLER_H.
37477         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37478         Don't check for sigaction here.
37479
37480 2008-06-23  Bruno Haible  <bruno@clisp.org>
37481
37482         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
37483         (install_handlers): Don't set the SA_RESETHAND flag.
37484
37485 2008-06-23  Bruno Haible  <bruno@clisp.org>
37486
37487         * m4/sigaction.m4: Comment fixes.
37488         * lib/signal.in.h: Likewise.
37489
37490 2008-06-23  Eric Blake  <ebb9@byu.net>
37491
37492         Fix typo.
37493         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
37494
37495         Avoid SA_ namespace.
37496         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
37497         Reported by Ralf Wildenhues.
37498
37499         Avoid test failure due to SA_RESTORER.
37500         * tests/test-sigaction.c (SA_MASK): New macro.
37501         (main): Avoid failing due to extension flags being set.
37502         Reported by Jim Meyering.
37503
37504         Revert use of sig-handler.h in sigprocmask.c.
37505         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
37506         it requires the existence of struct sigaction.
37507         * lib/sigprocmask.c (handler_t): Restore typedef.
37508         (rpl_signal, old_handlers): Use local type.
37509
37510 2008-06-22  Bruno Haible  <bruno@clisp.org>
37511
37512         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
37513         conditionally.
37514         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37515
37516 2008-06-22  Bruno Haible  <bruno@clisp.org>
37517
37518         * doc/posix-functions/siginterrupt.texi: Move note.
37519
37520         * lib/signal.in.h (SA_RESTART): New macro.
37521         * lib/sigaction.c: Update comment.
37522
37523         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
37524
37525         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
37526         (gl_PREREQ_SIGPROCMASK): Invoke it.
37527         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
37528
37529         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
37530
37531         * lib/sigprocmask.c: Update a comment.
37532
37533 2008-06-21  Eric Blake  <ebb9@byu.net>
37534
37535         Use sigaction module rather than signal().
37536         * modules/c-stack (Depends-on): Add sigaction.
37537         * modules/fatal-signal (Depends-on): Likewise.
37538         * modules/nanosleep (Depends-on): Likewise.
37539         * modules/sigprocmask (Files): Add sig-handler.h.
37540         * modules/sigaction (Files): Likewise.
37541         * lib/sig-handler.h (get_handler): New file, suggested by Paul
37542         Eggert.
37543         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
37544         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
37545         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37546         (init_fatal_signals): Likewise.
37547         * lib/nanosleep.c (rpl_nanosleep): Likewise.
37548         (siginterrupt): Delete fallback.
37549         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
37550         instead.
37551         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
37552         siginterrupt.
37553
37554         New module sigaction, for mingw.
37555         * modules/sigaction: New module...
37556         * modules/sigaction-tests: ...and its test.
37557         * m4/sigaction.m4: New file.
37558         * lib/sigaction.c: Likewise.
37559         * tests/test-sigaction.c: Likewise.
37560         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37561         * modules/signal (Makefile.am): Likewise.
37562         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37563         needed.
37564         * doc/posix-headers/signal.texi (signal.h): Mention provided
37565         types.
37566         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37567         that sigaction is preferable.
37568         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37569         module.
37570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37571         sigaction.
37572
37573         Improve robustness of sigprocmask by overriding signal.
37574         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37575         is in use.
37576         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37577         (SIGKILL, SIGSTOP): Provide fallbacks.
37578         (rpl_signal): Implement.
37579         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37580         signal can be called inside handlers.
37581
37582         Fix nanosleep module on mingw.
37583         * modules/nanosleep (Depends-on): Add sys_select.
37584         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37585
37586         Fix licensing of sigprocmask.
37587         * modules/raise (License): Relicense as LGPL.
37588
37589 2008-06-21  Bruno Haible  <bruno@clisp.org>
37590
37591         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37592         result if it contains question marks.
37593         Reported by Michael Geng <linux@michaelgeng.de>.
37594
37595 2008-06-19  Bruno Haible  <bruno@clisp.org>
37596
37597         Fix CVS-ism.
37598         * doc/gnulib.texi: Include updated-stamp.texi.
37599         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37600         (updated-stamp.texi): New rule.
37601         (gnulib.info): Depend on it.
37602         * doc/.gitignore: Add updated-stamp.texi.
37603         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37604
37605 2008-06-19  Bruno Haible  <bruno@clisp.org>
37606
37607         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37608         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37609
37610 2008-06-19  Eric Blake  <ebb9@byu.net>
37611
37612         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37613         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37614         Reported by Stepan Kasal.
37615
37616 2008-06-18  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37619         Reported by Eric Blake.
37620
37621 2008-06-18  Eric Blake  <ebb9@byu.net>
37622
37623         Work around cygwin 1.5.25 strsignal bug.
37624         * tests/test-strsignal.c: Allow for const char *.
37625         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37626
37627 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37628
37629         * users.txt: Update URL to article and add author/date
37630         information.
37631
37632 2008-06-17  Bruno Haible  <bruno@clisp.org>
37633
37634         New macro gl_DISABLE_THREADS.
37635         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37636         if the user did not pass --enable-threads or --disable-threads option.
37637         (gl_DISABLE_THREADS): New macro.
37638         Reported by Eric Blake <ebb9@byu.net>.
37639
37640 2008-06-17  Bruno Haible  <bruno@clisp.org>
37641
37642         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37643         when the macro ignores it.
37644         Based on a patch by Eric Blake <ebb9@byu.net>.
37645
37646 2008-06-17  Bruno Haible  <bruno@clisp.org>
37647
37648         * modules/tls (License): Change to LGPLv2+.
37649         Reported by Eric Blake.
37650
37651 2008-06-17  Eric Blake  <ebb9@byu.net>
37652
37653         Simplify c-stack prerequisites.
37654         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37655         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37656         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37657         check.
37658         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37659         <sys/resource.h>.
37660
37661         Move c-stack test into testsuite.
37662         * modules/c-stack-tests: New file.
37663         * lib/c-stack.c [DEBUG]: Move test program...
37664         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37665         fail test if sigaltstack is lacking.
37666         * tests/test-c-stack.sh: New driver file.
37667
37668 2008-06-16  Eric Blake  <ebb9@byu.net>
37669
37670         Use raise module consistently.
37671         * modules/fatal-signal (Depends-on): Add raise.
37672         * modules/sigprocmask (Depends-on): Likewise.
37673         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37674         * lib/sigprocmask.c (sigprocmask): Likewise.
37675         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37676         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37677
37678         Fix compliance bug in sigpending.
37679         * lib/sigprocmask.c (sigpending): Return pending array via
37680         parameter, not return value.
37681
37682 2008-06-14  Eric Blake  <ebb9@byu.net>
37683
37684         Improve obstack-printf test code.
37685         * tests/test-obstack-printf.c (test_function): Fix comment, and
37686         simplify usage of obstack_* in macros.  Add a test for coverage.
37687         Reported by Bruno Haible.
37688
37689 2008-06-14  Bruno Haible  <bruno@clisp.org>
37690
37691         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37692         array size as a constant, not as a const variable.
37693         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37694         AC_USE_SYSTEM_EXTENSIONS.
37695         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37696         Test whether the obstack_printf function actually exists.
37697         * modules/obstack-printf (Depends-on): Add extensions.
37698         (Include): Remove obstack.h.
37699         * modules/obstack-printf-posix (Depends-on): Add extensions.
37700         (Include): Remove obstack.h.
37701
37702 2008-06-13  Eric Blake  <ebb9@byu.net>
37703
37704         Add obstack-printf and obstack-printf-posix modules.
37705         * modules/obstack-printf: New file.
37706         * modules/obstack-printf-posix: Likewise.
37707         * MODULES.html.sh (Misc): Mention them.
37708         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37709         Likewise.
37710         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37711         Likewise.
37712         * modules/stdio (Makefile.am): Accomodate new modules.
37713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37714         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37715         Declare.
37716         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37717         functions.
37718         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37719         (gl_REPLACE_OBSTACK_PRINTF): New macros
37720         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37721         * tests/test-obstack-printf.c: New file.
37722         * modules/obstack-printf-tests: Likewise.
37723         * modules/obstack-printf-posix-tests: Likewise.
37724
37725 2008-06-11  Bruno Haible  <bruno@clisp.org>
37726
37727         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37728         * lib/open.c: Include errno.h.
37729         (open): Fail when attempting to write to a file that has a trailing
37730         slash.
37731         * tests/test-open.c (main): Test against trailing slash bug.
37732         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37733
37734 2008-06-10  Bruno Haible  <bruno@clisp.org>
37735
37736         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37737         for $? to work inside the trap command, with various /bin/sh-s.
37738         * tests/test-vc-list-files-cvs.sh: Likewise.
37739
37740 2008-06-10  Bruno Haible  <bruno@clisp.org>
37741
37742         * lib/acl-internal.h: Don't include gettext.h here.
37743         * lib/set-mode-acl.c: Include gettext.h here.
37744         * lib/copy-acl.c: Likewise.
37745
37746 2008-06-10  Bruno Haible  <bruno@clisp.org>
37747
37748         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37749         * lib/wait-process.c (wait_subprocess): Likewise.
37750         * lib/execute.h (execute): Add termsigp argument.
37751         * lib/execute.c (execute): Likewise.
37752         * lib/csharpcomp.c (compile_csharp_using_pnet,
37753         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37754         * lib/csharpexec.c (execute_csharp_using_pnet,
37755         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37756         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37757         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37758         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37759         is_jikes_present): Update.
37760         * lib/javaexec.c (execute_java_class): Update.
37761         * lib/javaversion.c (execute_and_read_line): Update.
37762         * NEWS: Document the changes.
37763         Reported by Eric Blake.
37764
37765 2008-06-10  Eric Blake  <ebb9@byu.net>
37766
37767         Add missing include.
37768         * tests/test-strstr.c (includes): Add <signal.h>.
37769         * tests/test-strcasestr.c (includes): Likewise.
37770         * tests/test-memmem.c (includes): Likewise.
37771
37772 2008-06-10  Bruno Haible  <bruno@clisp.org>
37773
37774         * lib/wait-process.c (wait_subprocess): Add an assertion.
37775
37776 2008-06-10  Bruno Haible  <bruno@clisp.org>
37777
37778         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37779
37780 2008-06-10  Bruno Haible  <bruno@clisp.org>
37781
37782         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37783         using alarm().
37784         * tests/test-strcasestr.c (main): Likewise.
37785         * tests/test-strstr.c (main): Likewise.
37786
37787 2008-06-09  Bruno Haible  <bruno@clisp.org>
37788
37789         Work around the Solaris 10 ACE ACLs ABI change.
37790         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37791         declare if ACL_NO_TRIVIAL is present.
37792         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37793         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37794         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37795         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37796         define if ACL_NO_TRIVIAL is present.
37797         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37798         and use the current ABI.
37799         (file_has_acl): Use same #if condition as elsewhere.
37800         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37801         in use, and use the current ABI.
37802         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37803         Reported by Jim Meyering.
37804
37805 2008-06-09  Eric Blake  <ebb9@byu.net>
37806
37807         Work around environments that (stupidly) ignore SIGALRM.
37808         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37809         before using alarm().
37810         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37811         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37812         Reported by Ian Beckwith <ianb@erislabs.net>.
37813
37814         Produce autobuild blurb earlier in log.
37815         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37816
37817 2008-06-09  Jim Meyering  <meyering@redhat.com>
37818         and OndÅ™ej Vašík  <ovasik@redhat.com>
37819
37820         utimens.c: correct kernel bug work-around
37821         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37822         failure, not success, and the kernel bug we're trying to work
37823         around affects not just the utimensat call, but also the fallback
37824         futimens call.
37825         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37826         not success.
37827         [HAVE_FUTIMENS]: Use the same work-around, here.
37828
37829 2008-06-09  Jim Meyering  <meyering@redhat.com>
37830
37831         add more guards around definition of ACE_-related code
37832         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37833         ALLOW and ACE_OWNER are also defined.
37834
37835 2008-06-08  Bruno Haible  <bruno@clisp.org>
37836
37837         * lib/acl-internal.h: Add me as co-author.
37838         * lib/file-has-acl.c: Likewise.
37839         * lib/set-mode-acl.c: Likewise.
37840         * lib/copy-acl.c: Likewise.
37841
37842 2008-06-08  Bruno Haible  <bruno@clisp.org>
37843
37844         Add support for AIX ACLs.
37845         * lib/acl-internal.h (acl_nontrivial): New declaration.
37846         * lib/file-has-acl.c (acl_nontrivial): New function.
37847         (file_has_acl): Add implementation using AIX 4 ACL API.
37848         * lib/set-mode-acl.c (qset_acl): Likewise.
37849         * lib/copy-acl.c (qcopy_acl): Likewise.
37850
37851 2008-06-08  Bruno Haible  <bruno@clisp.org>
37852
37853         Add support for HP-UX ACLs.
37854         * lib/acl-internal.h (acl_nontrivial): New declaration.
37855         * lib/file-has-acl.c (acl_nontrivial): New function.
37856         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37857         * lib/set-mode-acl.c (qset_acl): Likewise.
37858         * lib/copy-acl.c (qcopy_acl): Likewise.
37859
37860 2008-06-08  Bruno Haible  <bruno@clisp.org>
37861
37862         Add support for Cygwin ACLs.
37863         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37864         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37865         the chmod_or_fchmod call.
37866         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37867
37868 2008-06-08  Bruno Haible  <bruno@clisp.org>
37869
37870         Fix bug with setuid modes in Solaris 10+ code.
37871         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37872         succeeded, when the mode contains some special bits.
37873
37874 2008-06-08  Bruno Haible  <bruno@clisp.org>
37875
37876         Add support for Solaris 7..10 ACLs.
37877         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37878         declarations.
37879         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37880         functions.
37881         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37882         * lib/set-mode-acl.c (qset_acl): Likewise.
37883         * lib/copy-acl.c (qcopy_acl): Likewise.
37884
37885 2008-06-08  Bruno Haible  <bruno@clisp.org>
37886
37887         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37888         declaration.
37889         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37890         (acl_access_nontrivial): Remove MacOS X case.
37891         (file_has_acl): Use acl_extended_nontrivial.
37892         * lib/copy-acl.c (qcopy_acl): Likewise.
37893
37894 2008-06-08  Bruno Haible  <bruno@clisp.org>
37895
37896         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37897
37898 2008-06-08  Jim Meyering  <meyering@redhat.com>
37899
37900         * modules/acl (Maintainer): Add Bruno Haible.
37901
37902 2008-06-07  Bruno Haible  <bruno@clisp.org>
37903
37904         Improve support for Tru64 ACLs.
37905         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37906         ACL on OSF/1.
37907
37908 2008-06-07  Bruno Haible  <bruno@clisp.org>
37909
37910         Add support for MacOS X ACLs.
37911         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37912         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37913         * lib/set-mode-acl.c (qset_acl): Likewise.
37914         * lib/copy-acl.c (qcopy_acl): Likewise.
37915
37916 2008-06-07  Bruno Haible  <bruno@clisp.org>
37917
37918         Fix memory leak introduced on 2008-05-22.
37919         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37920         use.
37921
37922 2008-06-07  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37925         to construct an empty ACL.
37926
37927 2008-06-07  Bruno Haible  <bruno@clisp.org>
37928
37929         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37930         precisely.
37931         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37932
37933 2008-06-07  Bruno Haible  <bruno@clisp.org>
37934
37935         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37936         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37937
37938 2008-06-07  Bruno Haible  <bruno@clisp.org>
37939
37940         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37941         regardless of POSIX.
37942         * doc/posix-functions/_longjmp.texi: Likewise.
37943         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37944         SystemV platform in this case.
37945
37946 2008-06-06  Eric Blake  <ebb9@byu.net>
37947
37948         Document abort() bugs.
37949         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37950
37951         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37952         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37953         sigsetjmp.
37954         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37955         siglongjmp, but only as a macro.
37956         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37957         is obsolete.
37958         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37959
37960         Tweak documentation to cover cygwin argz bugs.
37961         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37962         argz bug fix; no code change needed since no cygwin releases
37963         occurred between the last fix and the bug being tested.
37964         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37965         module and recently fixed cygwin bugs.
37966         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37967         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37968         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37969         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37970         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37971         Likewise.
37972         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37973         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37974         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37975         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37976         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37977         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37978         Likewise.
37979
37980         Avoid gcc warning on cygwin.
37981         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37982         !ACL_NO_TRIVIAL]: Avoid unused variable.
37983
37984 2008-06-05  Eric Blake  <ebb9@byu.net>
37985
37986         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37987         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37988         git-version-gen fails to come up with a version.
37989         Reported by Simon Josefsson.
37990
37991 2008-06-05  Jim Meyering  <meyering@redhat.com>
37992             Paul Eggert  <eggert@cs.ucla.edu>
37993
37994         utimens.c: work around a probable Linux kernel bug
37995         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37996         appears to be a kernel bug that causes utimensat to return 280
37997         instead of 0, indicating success.
37998
37999 2008-06-04  Bruno Haible  <bruno@clisp.org>
38000
38001         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38002         2008-06-01 commit.
38003
38004 2008-06-04  Bruno Haible  <bruno@clisp.org>
38005
38006         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38007         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38008         (file_has_acl): Use it. Save errno afterwards.
38009         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38010
38011 2008-06-03  Bruno Haible  <bruno@clisp.org>
38012
38013         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38014         draft code. Simplify #ifs.
38015         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38016         Put Solaris code after POSIX-draft code. Fix comments regarding
38017         Solaris 10, HP-UX. Mention Cygwin.
38018         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38019
38020 2008-06-03  Eric Blake  <ebb9@byu.net>
38021
38022         Provide fallback for older kernels.
38023         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38024         Provide runtime fallback if kernel lacks support.
38025         Reported by Mike Frysinger.
38026
38027 2008-06-02  Bruno Haible  <bruno@clisp.org>
38028
38029         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38030         it exists.
38031
38032 2008-06-02  Bruno Haible  <bruno@clisp.org>
38033
38034         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38035         * lib/copy-acl.c (qcopy_acl): Update comment.
38036
38037 2008-06-02  Bruno Haible  <bruno@clisp.org>
38038
38039         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38040         like ACL APIs.
38041
38042 2008-06-02  Bruno Haible  <bruno@clisp.org>
38043
38044         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38045         * tests/test-set-mode-acl.sh: Likewise.
38046         * tests/test-copy-acl.sh: Likewise.
38047         * tests/test-copy-file.sh: Likewise.
38048
38049 2008-06-02  Bruno Haible  <bruno@clisp.org>
38050
38051         * tests/test-file-has-acl.sh: Remove unused code.
38052
38053 2008-06-01  Bruno Haible  <bruno@clisp.org>
38054
38055         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38056         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38057         messages.
38058         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38059
38060 2008-06-01  Bruno Haible  <bruno@clisp.org>
38061
38062         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38063         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38064         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38065         APIs.
38066         * modules/acl-tests (configure.ac): Remove tests now contained in
38067         m4/acl.m4.
38068
38069 2008-06-02  Jim Meyering  <meyering@redhat.com>
38070
38071         announce-gen: use a better key-server host name
38072         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38073         it may be more consistently reliable.  Suggested by Werner Koch
38074         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38075
38076 2008-06-01  Bruno Haible  <bruno@clisp.org>
38077
38078         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38079         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38080
38081 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38082
38083         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38084
38085 2008-06-01  Bruno Haible  <bruno@clisp.org>
38086
38087         New ACL tests.
38088         * tests/test-file-has-acl.sh: New file.
38089         * tests/test-file-has-acl.c: New file.
38090         * tests/test-set-mode-acl.sh: New file.
38091         * tests/test-set-mode-acl.c: New file.
38092         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38093         * tests/test-copy-acl.c: New file.
38094         * modules/acl-tests: New file, based on modules/copy-file-tests.
38095         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38096         (Depends-on): Add acl-tests.
38097         (configure.ac): Remove checks.
38098         (Makefile.am): Don't create test-sameacls program here any more.
38099
38100 2008-06-01  Bruno Haible  <bruno@clisp.org>
38101
38102         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38103         * tests/test-sameacls.c: Include progname.h.
38104         (main): Invoke set_program_name. Portability fixes for MacOS X,
38105         Solaris, HP-UX.
38106
38107 2008-06-01  Bruno Haible  <bruno@clisp.org>
38108
38109         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38110         function.
38111         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38112
38113 2008-06-01  Bruno Haible  <bruno@clisp.org>
38114
38115         * modules/rpmatch (Depends-on): Add strdup.
38116
38117 2008-06-01  Bruno Haible  <bruno@clisp.org>
38118
38119         * lib/pipe.c: Include unistd-safer.h.
38120         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38121         * modules/pipe (Depends-on): Add unistd-safer.
38122
38123 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38124
38125         * modules/autobuild (configure.ac): Call AB_INIT.
38126
38127 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38128
38129         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38130         Suggested by Bruno Haible <bruno@clisp.org>.
38131
38132 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38133
38134         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38135         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38136         <bruno@clisp.org>.
38137
38138 2008-05-29  Eric Blake  <ebb9@byu.net>
38139
38140         Prefer new POSIX 200x interfaces over futimesat.
38141         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38142         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38143         when available.
38144         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38145
38146 2008-05-28  Bruno Haible  <bruno@clisp.org>
38147
38148         * modules/stpcpy (License): Change to LGPLv2+.
38149         Requested by David Lutterkort <dlutter@redhat.com>.
38150
38151 2008-05-27  Bruno Haible  <bruno@clisp.org>
38152
38153         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38154         current mingw.
38155         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38156
38157 2008-05-27  Bruno Haible  <bruno@clisp.org>
38158
38159         * modules/iconv_open (Link): New section, from module 'iconv'.
38160         * modules/striconv (Link): Likewise.
38161         * modules/striconveh (Link): Likewise.
38162         * modules/xstriconv (Link): Likewise.
38163         * modules/unicodeio (Link): Likewise.
38164         * modules/propername (Link): Likewise.
38165         Reported by Jim Meyering.
38166
38167 2008-05-26  Jim Meyering  <meyering@redhat.com>
38168
38169         sha256: do not artificially restrict buffer length to be < 2^32
38170         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38171         uint32_t to size_t.
38172         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38173         to match.
38174
38175         avoid unaligned access errors, e.g., on sparc
38176         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38177         direct access through a possibly-unaligned uint64* pointer.
38178         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38179         direct access through a possibly-unaligned uint32* pointer.
38180         Prompted by this patch from Tom "spot" Callaway:
38181         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38182
38183         sha512.c: fix typo in comment
38184         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38185
38186 2008-05-25  Bruno Haible  <bruno@clisp.org>
38187
38188         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38189         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38190         (Makefile.am): Update lib_SOURCES.
38191
38192 2008-05-25  Bruno Haible  <bruno@clisp.org>
38193
38194         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38195
38196 2008-05-25  Jim Meyering  <meyering@redhat.com>
38197
38198         useless-if-before-free: freed expr may have white-space differences
38199         * build-aux/useless-if-before-free: Recognize cases in which the
38200         freed expression differs from the tested one in embedded white
38201         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38202         $1 was used, so we can't make any regexp shy.  Improved tests now
38203         detect this.
38204
38205         useless-if-before-free: accept white space in the expression.
38206         * build-aux/useless-if-before-free: For now, any white space
38207         in the expression must be identical in the free argument.
38208
38209         useless-if-before-free: efficiency tweak
38210         * build-aux/useless-if-before-free: Make the expression-matching
38211         regexp "shy".
38212         Make the *outer* regexp shy, not the expr-matching one.
38213
38214         update code-in-comment to accept cast of free arg
38215         * build-aux/useless-if-before-free: Update regexp.
38216
38217 2008-05-25  Bruno Haible  <bruno@clisp.org>
38218
38219         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38220         * modules/copy-file-tests (Files, Makefile.am): Update.
38221         * tests/test-copy-file.c (func_test_copy): Update.
38222
38223 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38224
38225         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38226
38227 2008-05-23  Bruno Haible  <bruno@clisp.org>
38228
38229         Improve support for ACLs on OSF/1.
38230         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38231         Remove fallback for unknown flavors of ACLs.
38232
38233 2008-05-22  Bruno Haible  <bruno@clisp.org>
38234
38235         Add support for ACLs on OSF/1.
38236         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38237         replacements.
38238         (acl_free_text): New macro fallback.
38239         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38240         acl_free.
38241         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38242         acl_free_text function. Require AC_C_INLINE.
38243
38244 2008-05-22  Bruno Haible  <bruno@clisp.org>
38245
38246         Make copy_acl work on MacOS X 10.5.
38247         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38248         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38249         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38250         If MODE_INSIDE_ACL, don't assume that every system has the same text
38251         representation for ACLs as FreeBSD.
38252         * lib/copy-acl.c (copy_acl): Add support for platforms with
38253         !MODE_INSIDE_ACL.
38254         * lib/file-has-acl.c (file_has_acl): Likewise.
38255         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38256         FreeBSD, MacOS X, or IRIX, respectively.
38257
38258 2008-05-22  Bruno Haible  <bruno@clisp.org>
38259
38260         * lib/acl.h: Don't include <sys/acl.h>.
38261         (GETACLCNT): Move fallback to lib/acl-internal.h.
38262         * lib/acl-internal.h: Include <sys/acl.h> here.
38263         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38264
38265 2008-05-22  Bruno Haible  <bruno@clisp.org>
38266
38267         Split off copy_acl function to separate file.
38268         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38269         * lib/acl.c (copy_acl): Moved function to separate file.
38270         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38271         * modules/acl (Files): Add lib/copy-acl.c.
38272         (Makefiles.am): Augment lib_SOURCES.
38273
38274 2008-05-22  Bruno Haible  <bruno@clisp.org>
38275
38276         * modules/copy-file-tests: New file.
38277         * tests/test-copy-file.sh: New file.
38278         * tests/test-copy-file.c: New file.
38279         * tests/test-copy-file-sameacls.c: New file.
38280
38281 2008-05-22  Eric Blake  <ebb9@byu.net>
38282
38283         Avoid gcc warning.
38284         * tests/test-memcmp.c (main): Pass NULL indirectly.
38285
38286 2008-05-21  Bruno Haible  <bruno@clisp.org>
38287
38288         Add reference doc about ACLs.
38289         * doc/acl-resources.txt: New file.
38290         * doc/acl-cygwin.txt: New file.
38291
38292 2008-05-21  Bruno Haible  <bruno@clisp.org>
38293
38294         Avoid one more warning from gcc.
38295         * lib/vasnprintf.c (IF_LINT): Update comments.
38296         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38297
38298 2008-05-21  Jim Meyering  <meyering@redhat.com>
38299
38300         avoid a warning from gcc
38301         * lib/vasnprintf.c (IF_LINT): Define.
38302         (scale10_round_decimal_long_double):
38303         Use it to avoid a "may be used uninitialized" warning.
38304         (scale10_round_decimal_double): Likewise.
38305
38306 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38307
38308         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38309         declared.
38310
38311 2008-05-20  Bruno Haible  <bruno@clisp.org>
38312
38313         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38314         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38315
38316 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38317
38318         * modules/memcmp-tests: New file.
38319         * tests/test-memcmp.c: New file.
38320
38321 2008-05-19  Bruno Haible  <bruno@clisp.org>
38322
38323         * modules/propername (Notice, configure.ac): Put quoted "..." into
38324         --keyword option.
38325         * lib/propername.h: Update comments accordingly.
38326         Reported by Eric Blake.
38327
38328 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38329
38330         * modules/getpass-gnu (Depends-on): Add fseeko.
38331
38332 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38333
38334         * modules/base64-tests: New file.
38335
38336 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38337
38338         * lib/base64.c (base64_decode_ctx): If a decode context structure
38339         was passed in use it to ignore newlines.  If a context structure
38340         was _not_ passed in, continue to treat newlines as garbage (this
38341         is the historical behavior).  Formerly base64_decode.
38342         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38343         takes a decode context structure.
38344         * lib/base64.h (base64_decode): Macro for four-argument calls.
38345         (base64_decode_alloc): Likewise.
38346         * lib/base64.c (base64_decode_ctx): If a decode context structure
38347         was passed in use it to ignore newlines.  If a context structure
38348         was _not_ passed in, continue to treat newlines as garbage (this
38349         is the historical behavior).  Formerly base64_decode.
38350         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38351         takes a decode context structure.
38352         * lib/base64.h (base64_decode): Macro for four-argument calls.
38353         (base64_decode_alloc): Likewise.
38354
38355 2008-05-19  Jim Meyering  <meyering@redhat.com>
38356
38357         avoid a warning from gcc
38358         * lib/trim.c (IF_LINT): Define.
38359         (trim2): Use it to avoid a "may be used uninitialized" warning.
38360
38361         Fix doc typo.
38362         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
38363
38364 2008-05-19  Bruno Haible  <bruno@clisp.org>
38365
38366         * doc/glibc-functions/getpass.texi: Document limits of other
38367         implementations.
38368
38369 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38370             Bruno Haible <bruno@clisp.org>
38371
38372         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
38373
38374 2008-05-18  Bruno Haible  <bruno@clisp.org>
38375
38376         * modules/propername: New file, from GNU gettext.
38377         * lib/propername.h: New file, from GNU gettext.
38378         * lib/propername.c: New file, from GNU gettext.
38379         * MODULES.html.sh (Internationalization functions): Add propername.
38380
38381 2008-05-16  Jim Meyering  <meyering@redhat.com>
38382             Bruno Haible  <bruno@clisp.org>
38383
38384         Avoid some warnings from "gcc -Wshadow".
38385         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
38386
38387 2008-05-15  Eric Blake  <ebb9@byu.net>
38388
38389         Extend previous patch to cygwin 1.7.0.
38390         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
38391         fast implementation in cygwin >= 1.7.0.
38392         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38394
38395 2008-05-15  Bruno Haible  <bruno@clisp.org>
38396
38397         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
38398         implementation in glibc >= 2.9.
38399         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38400         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38401
38402 2008-05-15  Bruno Haible  <bruno@clisp.org>
38403
38404         * MODULES.html.sh (Internationalization functions): Remove linebreak.
38405         (Unicode string functions): Add unilbrk/*.
38406         Reported by Karl Berry.
38407
38408 2008-05-15  Eric Blake  <ebb9@byu.net>
38409
38410         Fix violation of <stdbool.h> replacement in regex.
38411         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
38412         * lib/regexec.c (re_search_internal): Likewise.
38413         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
38414
38415 2008-05-15  Jim Meyering  <meyering@redhat.com>
38416
38417         avoid distracting test output when git or cvs is not found
38418         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
38419         * tests/test-vc-list-files-git.sh: Likewise.
38420
38421 2008-05-15  Eric Blake  <ebb9@byu.net>
38422
38423         Glibc finally accepted the memmem speedup code, bugzilla #5514.
38424         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
38425         glibc version.
38426         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38427         * doc/posix-functions/strstr.texi (strstr): Likewise.
38428         * lib/str-two-way.h (MAX): Sychronize with glibc.
38429
38430 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
38431
38432         * lib/regcomp.c (optimize_utf8): Add a note on why we test
38433         opr.ctx_type.
38434         (calc_first): Initialize constraint field.
38435         (duplicate_node_closure): Use it instead of special casing ANCHORS.
38436         Fix grammar.
38437         (duplicate_node): Merge constraint field for all node types.
38438         (calc_eclosure_iter): Look at constraint field for all node types.
38439         * lib/regex_internal.c (create_cd_newstate): Don't look at
38440         opr.ctx_type.
38441
38442 2008-05-14  Bruno Haible  <bruno@clisp.org>
38443
38444         Help GCC to do better code generation.
38445         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
38446         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38447         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
38448         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
38449         Declare with attribute 'malloc' if supported.
38450
38451 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
38452
38453         use "echo STR|wc -c" rather than unportable "expr length STR"
38454         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
38455         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
38456
38457 2008-05-14  Jim Meyering  <meyering@redhat.com>
38458
38459         use dd ibs=$n count=1 ... rather than less-portable head -c$n
38460         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
38461         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
38462         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
38463         via Collin Lasse.
38464
38465 2008-05-14  Eric Blake  <ebb9@byu.net>
38466
38467         Avoid quadratic growth in gl_LIBSOURCES.
38468         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
38469         Suggested by Bruno Haible.
38470
38471         Test xmemdup0.
38472         * modules/xmemdup0-tests: New file.
38473         * tests/test-xmemdup0.c: Likewise.
38474
38475 2008-05-13  Eric Blake  <ebb9@byu.net>
38476
38477         Split xmemdup0 into its own module.
38478         * modules/xmemdup0: New file.
38479         * lib/xmemdup0.h: Likewise.
38480         * lib/xmemdup0.c: Likewise.
38481         * MODULES.html.sh (Memory management functions): Add xmemdup0.
38482         * lib/xalloc.h (xmemdup0): Remove.
38483         * lib/xmalloc.c (xmemdup0): Likewise.
38484
38485 2008-05-13  Eric Blake  <ebb9@byu.net>
38486             Bruno Haible  <bruno@clisp.org>
38487
38488         Reduce number of forks required during autoconf.
38489         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
38490         and gl_LIBSOURCES_DIR.
38491         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
38492         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
38493         m4_syscmd per file.
38494         <m4_foreach_w>: Move...
38495         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
38496
38497 2008-05-13  Eric Blake  <ebb9@byu.net>
38498
38499         * gnulib-tool: Fix various comment typos.
38500
38501 2008-05-12  Bruno Haible  <bruno@clisp.org>
38502
38503         Tailor the linebreaking algorithm.
38504         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
38505
38506 2008-05-12  Bruno Haible  <bruno@clisp.org>
38507
38508         Update to Unicode 5.0.0.
38509         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38510         LBP_JV, LBP_JT. Redistribute values.
38511         (unilbrk_table): Change size.
38512         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
38513         Unicode TR#14 rev. 22.
38514         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38515         LBP_JV, LBP_JT. Redistribute values.
38516         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
38517         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
38518         Update.
38519         * lib/unilbrk/lbrkprop1.h: Regenerated.
38520         * lib/unilbrk/lbrkprop2.h: Regenerated.
38521         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
38522         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
38523         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
38524         Likewise.
38525         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
38526         Likewise.
38527         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
38528         result.
38529         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38530         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38531         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38532         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
38533         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
38534         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
38535
38536 2008-05-11  Bruno Haible  <bruno@clisp.org>
38537
38538         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
38539
38540 2008-05-11  Bruno Haible  <bruno@clisp.org>
38541
38542         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
38543         * modules/unilbrk/gen-lbrk: New file.
38544
38545 2008-05-11  Bruno Haible  <bruno@clisp.org>
38546
38547         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
38548         * m4/sha512.m4 (gl_SHA512): Likewise.
38549
38550 2008-05-11  Jim Meyering  <meyering@redhat.com>
38551
38552         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38553         * modules/crypto/sha256: New file.
38554         * modules/crypto/sha512: Likewise.
38555         * lib/sha256.c: Likewise.
38556         * lib/sha256.h: Likewise.
38557         * lib/sha512.c: Likewise.
38558         * lib/sha512.h: Likewise.
38559         * lib/u64.h: Likewise.
38560         * m4/sha256.m4: Likewise.
38561         * m4/sha512.m4: Likewise.
38562         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38563
38564 2008-05-10  Bruno Haible  <bruno@clisp.org>
38565
38566         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38567         (Input/Output <stdio.h>): Add xprintf.
38568         (Signal handling <signal.h>): Add strsignal.
38569         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38570         (Core language properties): Add func.
38571         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38572         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38573         strings.
38574         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38575         (Input/output): New section.
38576         (File system functions): Add openat-die, stat-macros.
38577         (Networking functions): Add sockets.
38578         (Unicode string functions): Add unictype/*.
38579         (Support for building libraries and executables): Add gperf.
38580         (Support for building documentation): Add agpl-3.0.
38581         (Misc): Add nocrash.
38582
38583 2008-05-10  Bruno Haible  <bruno@clisp.org>
38584
38585         * modules/unictype/gen-ctype: New file.
38586
38587 2008-05-10  Jim Meyering  <meyering@redhat.com>
38588
38589         Make chdir-safer.c more efficient on a system with no symlinks.
38590         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38591         also if ELOOP is zero.  Suggested by Bruno Haible.
38592
38593         Make chdir-safer.c slightly safer.
38594         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38595         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38596
38597         Avoid compile failure on systems without ELOOP (like mingw).
38598         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38599         Reported by Bruno Haible.
38600
38601 2008-05-10  Bruno Haible  <bruno@clisp.org>
38602
38603         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38604         (is_utf8_encoding): Use a case-insensitive comparison.
38605         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38606         streq.
38607
38608 2008-05-10  Bruno Haible  <bruno@clisp.org>
38609
38610         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38611         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38612         * lib/unilbrk/ulc-common.h (iconv_string_length,
38613         iconv_string_keeping_offsets): Remove declarations.
38614         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38615         Don't include <iconv.h>, streq.h, xsize.h.
38616         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38617         conversion.
38618         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38619         <iconv.h>, streq.h, xsize.h.
38620         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38621         conversion.
38622         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38623         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38624         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38625         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38626
38627 2008-05-10  Bruno Haible  <bruno@clisp.org>
38628
38629         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38630         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38631
38632         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38633         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38634
38635         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38636         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38637
38638         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38639         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38640
38641         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38642         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38643
38644         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38645         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38646
38647         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38648         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38649
38650         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38651         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38652
38653 2008-05-10  Bruno Haible  <bruno@clisp.org>
38654
38655         Split up 'linebreak' module.
38656         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38657         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38658         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38659         modifications.
38660         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38661         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38662         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38663         lib/linebreak.c.
38664         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38665         lib/linebreak.c.
38666         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38667         lib/linebreak.c.
38668         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38669         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38670         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38671         lib/linebreak.c.
38672         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38673         lib/linebreak.c.
38674         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38675         lib/linebreak.c.
38676         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38677         lib/linebreak.c.
38678         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38679         lib/linebreak.c.
38680         * modules/unilbrk/base: New file.
38681         * modules/unilbrk/tables: New file.
38682         * modules/unilbrk/u8-possible-linebreaks: New file.
38683         * modules/unilbrk/u16-possible-linebreaks: New file.
38684         * modules/unilbrk/u32-possible-linebreaks: New file.
38685         * modules/unilbrk/ulc-common: New file.
38686         * modules/unilbrk/ulc-possible-linebreaks: New file.
38687         * modules/unilbrk/u8-width-linebreaks: New file.
38688         * modules/unilbrk/u16-width-linebreaks: New file.
38689         * modules/unilbrk/u32-width-linebreaks: New file.
38690         * modules/unilbrk/ulc-width-linebreaks: New file.
38691         * lib/linebreak.h: Remove file.
38692         * lib/linebreak.c: Remove file.
38693         * m4/linebreak.m4: Remove file.
38694         * modules/linebreak: Remove file.
38695         * NEWS: Mention the changes.
38696
38697 2008-05-09  Eric Blake  <ebb9@byu.net>
38698
38699         Add xmemdup0.
38700         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38701         implementation.
38702         * lib/xmalloc.c (xmemdup0): New C implementation.
38703
38704 2008-05-08  Bruno Haible  <bruno@clisp.org>
38705
38706         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38707
38708 2008-05-07  Eric Blake  <ebb9@byu.net>
38709
38710         Support cross-compilation of <wctype.h>.
38711         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38712         AC_CACHE_CHECK.
38713
38714 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38715
38716         * build-aux/vc-list-files: Add support for bzr.
38717
38718 2008-05-03  Jim Meyering  <meyering@redhat.com>
38719
38720         avoid failed assertion with tight malloc
38721         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38722
38723 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38724
38725         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38726         are needed from arpa/inet.h.
38727         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38728         Reported by Bruno Haible.
38729
38730 2008-05-02  Jim Meyering  <meyering@redhat.com>
38731
38732         avoid compilation error on FreeBSD 6
38733         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38734
38735 2008-05-01  Jim Meyering  <meyering@redhat.com>
38736
38737         useless-if-before-free: correct --help's exit status description
38738         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38739         for one or more matches, etc.  Reported by Bruno Haible.
38740
38741         vc-list-files: make the stand-alone gnulib test work
38742         * modules/vc-list-files-tests (configure.ac):
38743         Define and AC_SUBST abs_aux_dir.
38744         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38745         $(abs_top_srcdir) to each script and having each of them
38746         duplicate the work of setting PATH, set PATH here, using
38747         the new variable, abs_aux_dir instead.
38748         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38749         * tests/test-vc-list-files-git.sh: Likewise.
38750         Reported by Bruno Haible.
38751
38752 2008-05-01  Bruno Haible  <bruno@clisp.org>
38753
38754         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38755         reallocation. Rename 'done' to 'found_delimiter'.
38756
38757 2008-05-01  Jim Meyering  <meyering@redhat.com>
38758
38759         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38760         * build-aux/vc-list-files: Use `...`, not $(...).
38761
38762 2008-04-30  Jim Meyering  <meyering@redhat.com>
38763
38764         add tests for vc-list-files
38765         * modules/vc-list-files-tests: New module.
38766         * tests/test-vc-list-files-cvs.sh: New file.
38767         * tests/test-vc-list-files-git.sh: New file.
38768
38769         avoid a warning from gcc
38770         * lib/getndelim2.c (IF_LINT): Define.
38771         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38772
38773         vc-list-files: work properly with build-aux/cvsu, too
38774         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38775         to all cvs-based clauses.
38776
38777         vc-list-files: work properly in the CVS+awk case, too
38778         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38779
38780         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38781         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38782         take more than one file argument, so .  Add quotes, just in case $dir
38783         ever contains a shell meta-character.  Prompted by Soren Hansen in
38784         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38785
38786 2008-04-29  Eric Blake  <ebb9@byu.net>
38787
38788         Optimize getndelim2 to use block operations when possible.
38789         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38790         freadseek, and memchr2.
38791         * lib/getndelim2.c (getndelim2): Use them for block reads.
38792
38793 2008-04-29  Bruno Haible  <bruno@clisp.org>
38794
38795         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38796         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38797         * modules/inet_ntop (Depends-on): Add extensions.
38798         * modules/inet_pton (Depends-on): Likewise.
38799         Reported by Simon Josefsson.
38800
38801 2008-04-29  Jim Meyering  <meyering@redhat.com>
38802
38803         When the is more than one match in a block, match all of them.
38804         * build-aux/useless-if-before-free: Iterate through each block
38805         until there are no more matches.
38806
38807         Fix broken useless-if-before-free script.
38808         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38809         the expression to match cast of argument to free-like function.
38810
38811 2008-04-29  Eric Blake  <ebb9@byu.net>
38812
38813         Use new header.
38814         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38815
38816 2008-04-29  Jim Meyering  <meyering@redhat.com>
38817
38818         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38819         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38820         by gnulib to exist and to declare e.g., inet_ntop.
38821         Don't include "inet_ntop.h", now removed.
38822
38823         * m4/arpa_inet_h.m4: Remove trailing blanks.
38824
38825 2008-04-29  Eric Blake  <ebb9@byu.net>
38826
38827         Silence valgrind on safe reads beyond potential array bounds.
38828         * lib/rawmemchr.valgrind: New file.
38829         * lib/strchrnul.valgrind: Likewise.
38830         * modules/rawmemchr (Files): Distribute new file.
38831         * modules/strchrnul (Files): Likewise.
38832         Suggested by Bruno Haible.
38833
38834 2008-04-29  Bruno Haible  <bruno@clisp.org>
38835
38836         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38837         (inet_ntop, inet_pton): Change portability warning's wording.
38838         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38839         Invoke gl_CHECK_NEXT_HEADERS.
38840         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38841         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38842         set ARPA_INET_H.
38843         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38844         * modules/arpa_inet (Description): No longer only for systems that
38845         lack it.
38846         (Depends-on): Add include_next.
38847         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38848         HAVE_ARPA_INET_H.
38849
38850 2008-04-29  Jim Meyering  <meyering@redhat.com>
38851
38852         * modules/mkdir (License): Re-license as LGPLv2+.
38853
38854 2008-04-29  Bruno Haible  <bruno@clisp.org>
38855
38856         * modules/rawmemchr (Maintainer): Set to Eric.
38857         * modules/strchrnul (Maintainer): Likewise.
38858
38859 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38860
38861         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38862         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38863
38864         * modules/arpa_inet (arpa/inet.h): Use them.
38865
38866 2008-04-28  Eric Blake  <ebb9@byu.net>
38867
38868         Test getndelim2.
38869         * modules/getndelim2-tests: New file.
38870         * tests/test-getndelim2.c: Likewise.
38871         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38872         stream.
38873         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38874
38875         * MODULES.html.sh: Document new module.
38876
38877 2008-04-20  Bruno Haible  <bruno@clisp.org>
38878
38879         * lib/c-stack.c (die): Use raise.
38880         * modules/c-stack (Depends-on): Add raise.
38881
38882 2008-04-28  Bruno Haible  <bruno@clisp.org>
38883
38884         Expect rpmatch to be declared.
38885         * lib/yesno.c (rpmatch): Remove declaration.
38886
38887         Declare rpmatch.
38888         * lib/stdlib.in.h (rpmatch): New declaration.
38889         * lib/rpmatch.c: Include <stdlib.h> first.
38890         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38891         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38893         HAVE_RPMATCH.
38894         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38895         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38896         (Include): Set to <stdlib.h>.
38897         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38898         HAVE_RPMATCH.
38899         * NEWS: Document the change.
38900
38901 2008-04-28  Bruno Haible  <bruno@clisp.org>
38902
38903         Change rpmatch to use nl_langinfo when appropriate.
38904         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38905         (N_): New macro.
38906         (localized_pattern): New function/macro.
38907         (try): Remove match, nomatch arguments. Copy the pattern into safe
38908         memory before caching it.
38909         (rpmatch): Use localized_pattern. Add translator comments.
38910         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38911         Suggested by Eric Blake.
38912         * modules/rpmatch (Depends-on): Add stdbool.
38913
38914 2008-04-28  Eric Blake  <ebb9@byu.net>
38915
38916         Add rawmemchr module, matching glibc.
38917         * modules/string (Makefile.am): New indicator.
38918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38919         * lib/string.in.h (rawmemchr): Declare when appropriate.
38920         * modules/rawmemchr: New file.
38921         * m4/rawmemchr.m4: Likewise.
38922         * lib/rawmemchr.c: Likewise.
38923         * modules/rawmemchr-tests: Likewise.
38924         * tests/test-rawmemchr.c: Likewise.
38925         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38926         module.
38927         * modules/strchrnul (Depends-on): Add rawmemchr.
38928         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38929
38930         Whitespace cleanup.
38931         * tests/test-strchrnul.c: Reindent.
38932         * lib/strchrnul.c: Likewise.
38933
38934         Optimize and test strchrnul.
38935         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38936         * modules/strchrnul-tests: New file.
38937         * tests/test-strchrnul.c: Likewise.
38938
38939         Remove intprops dependency.
38940         * modules/memchr (Depends-on): Remove intprops.
38941         * modules/memrchr (Depends-on): Likewise.
38942         * modules/memchr2 (Depends-on): Likewise.
38943         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38944         * lib/memrchr.c (__memrchr): Likewise.
38945         * lib/memrchr2.c (memchr2): Likewise.
38946         Reported by Simon Josefsson.
38947
38948 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38949
38950         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38951         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38952
38953 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38954
38955         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38956
38957         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38958
38959         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38960
38961         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38962         declarations.
38963         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38964
38965         * m4/inet_pton.m4: Don't check for header files.
38966
38967         * m4/inet_ntop.m4: Don't check for header files.
38968
38969 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38970
38971         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38972         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38973         trigger for cygwin).
38974         Reported by Bruno Haible  <bruno@clisp.org>.
38975
38976 2008-04-28  Bruno Haible  <bruno@clisp.org>
38977
38978         * doc/posix-functions/strdup.texi: Mention mingw problem.
38979
38980 2008-04-27  Bruno Haible  <bruno@clisp.org>
38981
38982         * modules/stat-time-tests (Depends-on): Add sleep.
38983         * tests/test-stat-time.c (force_unlink): New function.
38984         (cleanup): Use it.
38985         (test_mtime): Remove the ctime related tests.
38986         (test_ctime): New function, containing the ctime related tests.
38987         (main): Call test_ctime, except on native Windows platforms.
38988
38989 2008-04-27  Bruno Haible  <bruno@clisp.org>
38990
38991         * lib/rpmatch.c (rpmatch): Add some comments.
38992         Reported by James Youngman <jay@gnu.org>.
38993
38994 2008-04-27  Bruno Haible  <bruno@clisp.org>
38995
38996         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38997         quiet NaNs.
38998
38999 2008-04-27  Bruno Haible  <bruno@clisp.org>
39000
39001         Make test-yesno.sh work on mingw.
39002         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39003         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39004         (main): Set stdin to binary mode.
39005         * modules/yesno-tests (Depends-on): Add binary-io.
39006
39007 2008-04-27  Bruno Haible  <bruno@clisp.org>
39008
39009         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39010         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39011         argument that lie outside the IEEE 854 domain.
39012         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39013         (gl_ISFINITE): Use it.
39014         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39015
39016 2008-04-27  Bruno Haible  <bruno@clisp.org>
39017
39018         Allow local renaming in config.h.
39019         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39020
39021 2008-04-27  Bruno Haible  <bruno@clisp.org>
39022
39023         * lib/memchr.c (__memchr): Change type of 'i'.
39024         * lib/memchr2.c (memchr2): Likewise.
39025
39026 2008-04-26  Eric Blake  <ebb9@byu.net>
39027         and Bruno Haible  <bruno@clisp.org>
39028
39029         Optimize and test memrchr.
39030         * modules/memrchr (Depends-on): Add intprops.
39031         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39032         * modules/memrchr-tests: New file.
39033         * tests/test-memrchr.c: New file.
39034
39035 2008-04-26  Bruno Haible  <bruno@clisp.org>
39036
39037         Add tentative support for DragonFly BSD.
39038         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39039         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39040         fp.
39041         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39042         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39043         * lib/fpurge.c (fpurge): Likewise.
39044         * lib/freadable.c (freaadable): Likewise.
39045         * lib/freadahead.c (freadahead): Likewise.
39046         * lib/freading.c (freading): Likewise.
39047         * lib/freadptr.c (freadptr): Likewise.
39048         * lib/freadseek.c (freadptrinc): Likewise.
39049         * lib/fseeko.c (fseeko): Likewise.
39050         * lib/fseterr.c (fseterr): Likewise.
39051         * lib/fwritable.c (fwritable): Likewise.
39052         * lib/fwriting.c (fwriting): Likewise.
39053
39054 2008-04-26  Bruno Haible  <bruno@clisp.org>
39055
39056         * lib/stdio-impl.h: New file.
39057         * lib/fbufmode.c: Include stdio-impl.h.
39058         (fbufmode): Use fp_, remove redundant #defines.
39059         * lib/fflush.c: Include stdio-impl.h.
39060         (clear_ungetc_buffer): Remove redundant #defines.
39061         * lib/fpurge.c: Include stdio-impl.h.
39062         (fpurge): Remove redundant #defines.
39063         * lib/freadable.c: Include stdio-impl.h.
39064         (freadable): Remove redundant #defines.
39065         * lib/freadahead.c: Include stdio-impl.h.
39066         (freadahead): Remove redundant #defines.
39067         * lib/freading.c: Include stdio-impl.h.
39068         (freading): Remove redundant #defines.
39069         * lib/freadptr.c: Include stdio-impl.h.
39070         (freadptr): Remove redundant #defines.
39071         * lib/freadseek.c: Include stdio-impl.h.
39072         (freadptrinc): Remove redundant #defines.
39073         * lib/fseeko.c: Include stdio-impl.h.
39074         (rpl_fseeko): Remove redundant #defines.
39075         * lib/fseterr.c: Include stdio-impl.h.
39076         (fseterr): Remove redundant #defines.
39077         * lib/fwritable.c: Include stdio-impl.h.
39078         (fwritable: Remove redundant #defines.
39079         * lib/fwriting.c: Include stdio-impl.h.
39080         (fwriting): Remove redundant #defines.
39081         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39082         * modules/fflush (Files): Likewise.
39083         * modules/fpurge (Files): Likewise.
39084         * modules/freadable (Files): Likewise.
39085         * modules/freadahead (Files): Likewise.
39086         * modules/freading (Files): Likewise.
39087         * modules/freadptr (Files): Likewise.
39088         * modules/freadseek (Files): Likewise.
39089         * modules/fseeko (Files): Likewise.
39090         * modules/fseterr (Files): Likewise.
39091         * modules/fwritable (Files): Likewise.
39092         * modules/fwriting (Files): Likewise.
39093
39094 2008-04-26  Bruno Haible  <bruno@clisp.org>
39095
39096         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39097         restore_seek_optimization, update_fpos_cache): New functions, extracted
39098         from rpl_fflush.
39099         (rpl_fflush): Use them.
39100         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39101         (gl_REPLACE_FFLUSH): Use it.
39102
39103 2008-04-26  Bruno Haible  <bruno@clisp.org>
39104
39105         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39106         on Solaris.
39107         * tests/test-xstrtoimax.sh: Likewise.
39108         * tests/test-xstrtoumax.sh: Likewise.
39109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39110
39111 2008-04-26  Bruno Haible  <bruno@clisp.org>
39112
39113         * modules/memchr-tests: New file.
39114         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39115
39116 2008-04-26  Eric Blake  <ebb9@byu.net>
39117             Bruno Haible  <bruno@clisp.org>
39118
39119         * lib/memchr.c: Include intprops.h.
39120         (__memchr): Optimize parallel detection of matching bytes. Rename local
39121         variables. Add explanatory comments.
39122
39123 2008-04-26  Bruno Haible  <bruno@clisp.org>
39124
39125         Fix module 'memchr', broken since 2000-10-28.
39126         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39127
39128 2008-04-26  Bruno Haible  <bruno@clisp.org>
39129
39130         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39131         comments.
39132
39133 2008-04-25  Eric Blake  <ebb9@byu.net>
39134
39135         Use native fstatat on cygwin 1.7.0.
39136         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39137         first.
39138
39139 2008-04-23  Eric Blake  <ebb9@byu.net>
39140
39141         Improve memchr2 performance.
39142         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39143         NUL bytes.
39144         * modules/memchr2 (Depends-on): Use intprops.h.
39145
39146 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39147
39148         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39149         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39150         <blp@cs.stanford.edu>.
39151
39152 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39153
39154         * lib/arpa_inet.in.h: New file.
39155
39156         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39157         (Makefile.am): Sed in substitute header file.
39158
39159         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39160         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39161
39162         * modules/inet_ntop (configure.ac): Use
39163         gl_ARPA_INET_MODULE_INDICATOR.
39164
39165         * modules/inet_pton (configure.ac): Use
39166         gl_ARPA_INET_MODULE_INDICATOR.
39167
39168 2008-04-22  Jim Meyering  <meyering@redhat.com>
39169
39170         * modules/verify (License): Re-license as LGPLv2+.
39171
39172 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39173
39174         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39175         parameter to void* as per POSIX standard (MinGW uses char*).
39176
39177 2008-04-21  Bruno Haible  <bruno@clisp.org>
39178
39179         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39180         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39181         Define to replacements if REPLACE_ISWCNTRL is 1.
39182         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39183         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39184         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39185         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39186         what it fixes.
39187         * doc/posix-functions/iswalpha.texi: Likewise.
39188         * doc/posix-functions/iswblank.texi: Likewise.
39189         * doc/posix-functions/iswcntrl.texi: Likewise.
39190         * doc/posix-functions/iswdigit.texi: Likewise.
39191         * doc/posix-functions/iswgraph.texi: Likewise.
39192         * doc/posix-functions/iswlower.texi: Likewise.
39193         * doc/posix-functions/iswprint.texi: Likewise.
39194         * doc/posix-functions/iswpunct.texi: Likewise.
39195         * doc/posix-functions/iswspace.texi: Likewise.
39196         * doc/posix-functions/iswupper.texi: Likewise.
39197         * doc/posix-functions/iswxdigit.texi: Likewise.
39198         Reported by Alain Guibert.
39199
39200 2008-04-21  Bruno Haible  <bruno@clisp.org>
39201
39202         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39203         Patch by Alain Guibert.
39204
39205 2008-04-21  Bruno Haible  <bruno@clisp.org>
39206
39207         Fix test failures on mingw.
39208         * tests/test-xstrtol.c (print_no_progname): New function.
39209         (main): Install it in error_print_progname hook.
39210         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39211         * tests/test-xstrtoimax.sh: Likewise.
39212         * tests/test-xstrtoumax.sh: Likewise.
39213
39214 2008-04-21  Bruno Haible  <bruno@clisp.org>
39215
39216         Fix test failure on mingw.
39217         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39218
39219 2008-04-21  Bruno Haible  <bruno@clisp.org>
39220
39221         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39222         Actually assign a value.
39223
39224 2008-04-20  Bruno Haible  <bruno@clisp.org>
39225
39226         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39227         take 2.
39228         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39229         'canonicalize-lgpl' module is also used.
39230         * lib/canonicalize-lgpl.c: Undo last change.
39231         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39232
39233 2008-04-20  Bruno Haible  <bruno@clisp.org>
39234
39235         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39236         config.h. Provide _mkdir based fallback for mingw.
39237         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39238         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39239         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39240         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39241         rather than defining mkdir in config.h.
39242         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39243         (gl_SYS_STAT_H_DEFAULTS): New macro.
39244         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39245         HAVE_IO_H any more.
39246         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39247         HAVE_DECL_MKDIR and HAVE_IO_H.
39248
39249 2008-04-20  Bruno Haible  <bruno@clisp.org>
39250
39251         * lib/isapipe.c: Port to native Windows platforms.
39252
39253 2008-04-20  Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39256
39257 2008-04-21  Eric Blake  <ebb9@byu.net>
39258
39259         Work around preprocessors that don't handle UINTMAX_MAX.
39260         * lib/memchr2.c (memchr2): Avoid embedded #if.
39261         Reported by Alain Guibert, fix suggested by Bruno Haible.
39262
39263 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39264
39265         * doc/posix-functions/strftime.texi (strftime): Explain better
39266         Windows incompatibility.  Suggested by Micah Cowan
39267         <micah@cowan.name>.
39268
39269 2008-04-20  Bruno Haible  <bruno@clisp.org>
39270
39271         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39272         unistr/u8-mblen.
39273
39274 2008-04-20  Bruno Haible  <bruno@clisp.org>
39275
39276         Fix test failure on platforms with non-GNU iconv.
39277         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39278         (U_TO_U8): Use it, rather than u16_to_u8.
39279         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39280         units at the end of the input string.
39281         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39282
39283 2008-04-20  Bruno Haible  <bruno@clisp.org>
39284
39285         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39286         when the resulting length is 0.
39287         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39288
39289 2008-04-20  Bruno Haible  <bruno@clisp.org>
39290
39291         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39292         works.
39293         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39294
39295 2008-04-20  Bruno Haible  <bruno@clisp.org>
39296
39297         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39298         * modules/tsearch-tests (configure.ac): Test for initstate function.
39299
39300 2008-04-20  Bruno Haible  <bruno@clisp.org>
39301
39302         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39303         for nlink_t if missing.
39304         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39305
39306 2008-04-19  Bruno Haible  <bruno@clisp.org>
39307
39308         Work around snprintf bug on Linux libc5.
39309         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39311         gl_SNPRINTF_SIZE1.
39312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39313         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39314         that test failed.
39315         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39316         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39317         * modules/snprintf (Files): Add m4/printf.m4.
39318         * modules/vsnprintf (Files): Likewise.
39319         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39320         * doc/posix-functions/vsnprintf.texi: Likewise.
39321
39322 2008-04-19  Bruno Haible  <bruno@clisp.org>
39323
39324         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39325         from 0.0058 to less than 10^-7.
39326
39327 2008-04-19  Bruno Haible  <bruno@clisp.org>
39328
39329         Fix rounding when a precision is given.
39330         * lib/vasnprintf.c (is_borderline): New function.
39331         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39332         9...9x.
39333         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39334         %e, %g.
39335         * tests/test-vasprintf-posix.c (test_function): Likewise.
39336         * tests/test-snprintf-posix.h (test_function): Likewise.
39337         * tests/test-sprintf-posix.h (test_function): Likewise.
39338         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39339         * tests/test-printf-posix.h (test_function): Likewise.
39340         * tests/test-printf-posix.output: Update.
39341         Reported by John Darrington <john@darrington.wattle.id.au> via
39342         Ben Pfaff <blp@cs.stanford.edu>.
39343
39344 2008-04-18  Simon Josefsson  <simon@josefsson.org>
39345
39346         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
39347         Suggested by Bruno Haible <bruno@clisp.org>.
39348
39349 2008-04-17  Bruno Haible  <bruno@clisp.org>
39350
39351         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
39352         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
39353         implementation.
39354         Patch by Bruce Merry <bmerry@gmail.com>.
39355
39356 2008-04-17  Simon Josefsson  <simon@josefsson.org>
39357
39358         * doc/posix-functions/strftime.texi (strftime): Mention that %e
39359         doesn't work under Windows.
39360
39361 2008-04-16  Bruno Haible  <bruno@clisp.org>
39362
39363         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
39364         New macros.
39365         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
39366         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
39367         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
39368         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
39369         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
39370         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
39371         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
39372         macros.
39373         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
39374         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
39375         Northern Sotho, Uighur.
39376
39377 2008-04-16  Bruno Haible  <bruno@clisp.org>
39378
39379         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
39380         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
39381         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
39382         Reported by Daniel Bergström <daniel@octocode.com>.
39383
39384 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
39385             Bruno Haible  <bruno@clisp.org>
39386
39387         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
39388         function.
39389         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
39390         New functions, mostly extracted from gl_locale_name_default.
39391         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
39392
39393 2008-04-16  Eric Blake  <ebb9@byu.net>
39394
39395         Adjust strtod detection to catch glibc 2.7 bug.
39396         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
39397         Reported by John Gatewood Ham.
39398
39399 2008-04-16  Bruno Haible  <bruno@clisp.org>
39400
39401         Add tentative support for Linux libc5.
39402         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
39403         * lib/fpurge.c (fpurge): Likewise.
39404         * lib/freadable.c (freadable): Likewise.
39405         * lib/freadahead.c (freadahead): Likewise.
39406         * lib/freading.c (freading): Likewise.
39407         * lib/freadptr.c (freadptr): Likewise.
39408         * lib/freadseek.c (freadptrinc): Likewise.
39409         * lib/fseeko.c (rpl_fseeko): Likewise.
39410         * lib/fseterr.c (fseterr): Likewise.
39411         * lib/fwritable.c (fwritable): Likewise.
39412         * lib/fwriting.c (fwriting): Likewise.
39413         Reported by Alain Guibert <alguibert+bts@free.fr>.
39414
39415 2008-04-15  Bruno Haible  <bruno@clisp.org>
39416
39417         * modules/mathl (configure.ac): Define module indicator.
39418
39419 2008-04-15  Bruno Haible  <bruno@clisp.org>
39420
39421         * lib/logl.c (logl): Remove unused variables.
39422
39423 2008-04-15  Bruno Haible  <bruno@clisp.org>
39424
39425         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
39426         fails.
39427
39428 2008-04-15  Bruno Haible  <bruno@clisp.org>
39429
39430         * lib/trim.c (trim2): Fix argument of isspace() macro.
39431
39432 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
39433
39434         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
39435         to 0.
39436         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
39437
39438 2008-04-14  Bruno Haible  <bruno@clisp.org>
39439
39440         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
39441         AC_LANG_PROGRAM argument.
39442         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
39443         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
39444         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39445         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39446         * m4/math_h.m4 (gl_MATH_H): Likewise.
39447         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39448         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39449         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39450         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
39451         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39452         * m4/regex.m4 (gl_REGEX): Likewise.
39453         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
39454         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
39455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39456         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
39457         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39458         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39461
39462 2008-04-14  Jim Meyering  <meyering@redhat.com>
39463
39464         test-strtod: fix typos: s/abs/fabs/
39465         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
39466
39467 2008-04-13  Bruno Haible  <bruno@clisp.org>
39468
39469         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
39470         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
39471         module is also used and while not building the reloc-wrapper.
39472
39473 2008-04-13  Bruno Haible  <bruno@clisp.org>
39474
39475         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
39476
39477 2008-04-13  Bruno Haible  <bruno@clisp.org>
39478
39479         Fix AIX compilation failure introduced on 2008-04-02.
39480         * tests/test-frexp.c (exp): Undefine before redefining.
39481         * tests/test-frexpl.c (exp): Likewise.
39482
39483 2008-04-13  Bruno Haible  <bruno@clisp.org>
39484
39485         Work around a HP-UX stdio bug.
39486         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
39487         * tests/test-ftello.c (main): Likewise.
39488         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
39489         * doc/posix-functions/ftello.texi: Likewise.
39490
39491 2008-04-13  Bruno Haible  <bruno@clisp.org>
39492
39493         Make test-signbit pass on HP-UX/hppa.
39494         * tests/test-signbit.c (minus_zerol): New variable.
39495         (test_signbitl): Use it.
39496
39497 2008-04-13  Bruno Haible  <bruno@clisp.org>
39498
39499         Make truncl work on OSF/1 4.0.
39500         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
39501         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39502         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
39504         HAVE_DECL_TRUNCL.
39505         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
39506         HAVE_DECL_TRUNCL.
39507         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
39508
39509 2008-04-13  Bruno Haible  <bruno@clisp.org>
39510
39511         * lib/unictype.h: Remove trailing comma from enumeration definitions.
39512
39513 2008-04-13  Bruno Haible  <bruno@clisp.org>
39514
39515         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
39516         expression, so as to avoid HP-UX 11 cc compiler bug.
39517
39518 2008-04-13  Bruno Haible  <bruno@clisp.org>
39519
39520         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
39521
39522 2008-04-13  Bruno Haible  <bruno@clisp.org>
39523
39524         * lib/git-merge-changelog.c: Remove empty declaration outside of
39525         functions.
39526
39527 2008-04-13  Bruno Haible  <bruno@clisp.org>
39528
39529         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
39530
39531 2008-04-13  Bruno Haible  <bruno@clisp.org>
39532
39533         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
39534         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
39535         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
39536         also if it exists but lacks definitions of the SHUT_* macros.
39537         * modules/sys_socket (Description): Update.
39538         Reported by Elbert Pol <e.pol@chello.nl>.
39539
39540 2008-04-13  Bruno Haible  <bruno@clisp.org>
39541
39542         * lib/localcharset.c (OS2): Don't redefine if already defined.
39543         Reported by Elbert Pol <e.pol@chello.nl>.
39544
39545 2008-04-13  Bruno Haible  <bruno@clisp.org>
39546
39547         * lib/binary-io.h [__EMX__]: Include <io.h>.
39548         Reported by Elbert Pol <e.pol@chello.nl>.
39549
39550 2008-04-12  Bruno Haible  <bruno@clisp.org>
39551
39552         * lib/fpucw.h: Enable the definitions also for x86_64.
39553         Needed for NetBSD/x86_64.
39554         Reported by Thomas Klausner <tk@giga.or.at>.
39555
39556 2008-04-12  Bruno Haible  <bruno@clisp.org>
39557
39558         * tests/test-strtod.c: Include isnand.h.
39559         (main): Use isnand instead of isnan.
39560         Reported by Jim Meyering.
39561
39562 2008-04-12  Bruno Haible  <bruno@clisp.org>
39563
39564         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39565         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39566
39567 2008-04-12  Jim Meyering  <meyering@redhat.com>
39568
39569         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39570
39571 2008-04-12  Bruno Haible  <bruno@clisp.org>
39572
39573         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39574         Reported by Elbert Pol <e.pol@chello.nl>.
39575
39576 2008-04-12  Eric Blake  <ebb9@byu.net>
39577
39578         Work around Solaris 10 math.h bug.
39579         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39580         (gl_MATH_H_DEFAULTS): Set up default.
39581         * modules/math (Makefile.am): Replace new indicators.
39582         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39583         * tests/test-math.c (main): Test this.
39584         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39585         * doc/posix-headers/math.texi (math.h): Mention bug.
39586         Reported by Nelson H. F. Beebe and Jim Meyering.
39587
39588 2008-04-11  Bruno Haible  <bruno@clisp.org>
39589
39590         Adapt to future versions of Apple GCC.
39591         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39592         Reported by Peter O'Gorman <peter@pogma.com>.
39593
39594 2008-04-11  Bruno Haible  <bruno@clisp.org>
39595
39596         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39597
39598 2008-04-11  Bruno Haible  <bruno@clisp.org>
39599
39600         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39601
39602         * modules/getaddrinfo-tests (Makefile.am): Define
39603         test_getaddrinfo_LDADD.
39604
39605 2008-04-11  Bruno Haible  <bruno@clisp.org>
39606
39607         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39608         (init): Fix syntax error.
39609         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39610         is declared.
39611
39612 2008-04-11  Bruno Haible  <bruno@clisp.org>
39613
39614         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39615         * modules/glob (Depends-on): Add stdbool.
39616
39617 2008-04-11  Bruno Haible  <bruno@clisp.org>
39618
39619         * lib/trim.c: Include <string.h>.
39620
39621 2008-04-11  Eric Blake  <ebb9@byu.net>
39622
39623         Avoid compile failure on OS/2.
39624         * lib/regex_internal.h (internal_function): Disable optimization
39625         on OS/2 (__EMX__), where it caused compiler error.
39626         Reported by Elbert Pol.
39627
39628 2008-04-11  Bruno Haible  <bruno@clisp.org>
39629
39630         Flush the standard error stream before aborting. Needed on mingw.
39631         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39632         * tests/test-array_list.c (ASSERT): Likewise.
39633         * tests/test-array_oset.c (ASSERT): Likewise.
39634         * tests/test-avltree_list.c (ASSERT): Likewise.
39635         * tests/test-avltree_oset.c (ASSERT): Likewise.
39636         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39637         * tests/test-binary-io.c (ASSERT): Likewise.
39638         * tests/test-byteswap.c (ASSERT): Likewise.
39639         * tests/test-c-ctype.c (ASSERT): Likewise.
39640         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39641         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39642         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39643         * tests/test-c-strstr.c (ASSERT): Likewise.
39644         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39645         * tests/test-canonicalize.c (ASSERT): Likewise.
39646         * tests/test-carray_list.c (ASSERT): Likewise.
39647         * tests/test-ceilf1.c (ASSERT): Likewise.
39648         * tests/test-ceilf2.c (ASSERT): Likewise.
39649         * tests/test-ceill.c (ASSERT): Likewise.
39650         * tests/test-count-one-bits.c (ASSERT): Likewise.
39651         * tests/test-fbufmode.c (ASSERT): Likewise.
39652         * tests/test-fflush2.c (ASSERT): Likewise.
39653         * tests/test-floorf1.c (ASSERT): Likewise.
39654         * tests/test-floorf2.c (ASSERT): Likewise.
39655         * tests/test-floorl.c (ASSERT): Likewise.
39656         * tests/test-fopen.c (ASSERT): Likewise.
39657         * tests/test-fpending.c (ASSERT): Likewise.
39658         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39659         * tests/test-fpurge.c (ASSERT): Likewise.
39660         * tests/test-freadable.c (ASSERT): Likewise.
39661         * tests/test-freadahead.c (ASSERT): Likewise.
39662         * tests/test-freading.c (ASSERT): Likewise.
39663         * tests/test-freadptr.c (ASSERT): Likewise.
39664         * tests/test-freadptr2.c (ASSERT): Likewise.
39665         * tests/test-freadseek.c (ASSERT): Likewise.
39666         * tests/test-freopen.c (ASSERT): Likewise.
39667         * tests/test-frexp.c (ASSERT): Likewise.
39668         * tests/test-frexpl.c (ASSERT): Likewise.
39669         * tests/test-fseek.c (ASSERT): Likewise.
39670         * tests/test-fseeko.c (ASSERT): Likewise.
39671         * tests/test-fstrcmp.c (ASSERT): Likewise.
39672         * tests/test-ftell.c (ASSERT): Likewise.
39673         * tests/test-ftello.c (ASSERT): Likewise.
39674         * tests/test-func.c (ASSERT): Likewise.
39675         * tests/test-fwritable.c (ASSERT): Likewise.
39676         * tests/test-fwriting.c (ASSERT): Likewise.
39677         * tests/test-getdelim.c (ASSERT): Likewise.
39678         * tests/test-getline.c (ASSERT): Likewise.
39679         * tests/test-i-ring.c (ASSERT): Likewise.
39680         * tests/test-iconv-utf.c (ASSERT): Likewise.
39681         * tests/test-iconv.c (ASSERT): Likewise.
39682         * tests/test-isfinite.c (ASSERT): Likewise.
39683         * tests/test-isnand.c (ASSERT): Likewise.
39684         * tests/test-isnanf.c (ASSERT): Likewise.
39685         * tests/test-isnanl.h (ASSERT): Likewise.
39686         * tests/test-ldexpl.c (ASSERT): Likewise.
39687         * tests/test-linked_list.c (ASSERT): Likewise.
39688         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39689         * tests/test-localename.c (ASSERT): Likewise.
39690         * tests/test-lseek.c (ASSERT): Likewise.
39691         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39692         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39693         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39694         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39695         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39696         * tests/test-mbschr.c (ASSERT): Likewise.
39697         * tests/test-mbscspn.c (ASSERT): Likewise.
39698         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39699         * tests/test-mbspbrk.c (ASSERT): Likewise.
39700         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39701         * tests/test-mbsrchr.c (ASSERT): Likewise.
39702         * tests/test-mbsspn.c (ASSERT): Likewise.
39703         * tests/test-mbsstr1.c (ASSERT): Likewise.
39704         * tests/test-mbsstr2.c (ASSERT): Likewise.
39705         * tests/test-mbsstr3.c (ASSERT): Likewise.
39706         * tests/test-memchr2.c (ASSERT): Likewise.
39707         * tests/test-memmem.c (ASSERT): Likewise.
39708         * tests/test-open.c (ASSERT): Likewise.
39709         * tests/test-printf-frexp.c (ASSERT): Likewise.
39710         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39711         * tests/test-printf-posix.c (ASSERT): Likewise.
39712         * tests/test-quotearg.c (ASSERT): Likewise.
39713         * tests/test-rbtree_list.c (ASSERT): Likewise.
39714         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39715         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39716         * tests/test-round1.c (ASSERT): Likewise.
39717         * tests/test-roundf1.c (ASSERT): Likewise.
39718         * tests/test-roundl.c (ASSERT): Likewise.
39719         * tests/test-signbit.c (ASSERT): Likewise.
39720         * tests/test-sleep.c (ASSERT): Likewise.
39721         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39722         * tests/test-snprintf.c (ASSERT): Likewise.
39723         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39724         * tests/test-stat-time.c (ASSERT): Likewise.
39725         * tests/test-strcasestr.c (ASSERT): Likewise.
39726         * tests/test-strerror.c (ASSERT): Likewise.
39727         * tests/test-striconv.c (ASSERT): Likewise.
39728         * tests/test-striconveh.c (ASSERT): Likewise.
39729         * tests/test-striconveha.c (ASSERT): Likewise.
39730         * tests/test-strsignal.c (ASSERT): Likewise.
39731         * tests/test-strstr.c (ASSERT): Likewise.
39732         * tests/test-strtod.c (ASSERT): Likewise.
39733         * tests/test-trunc1.c (ASSERT): Likewise.
39734         * tests/test-trunc2.c (ASSERT): Likewise.
39735         * tests/test-truncf1.c (ASSERT): Likewise.
39736         * tests/test-truncf2.c (ASSERT): Likewise.
39737         * tests/test-truncl.c (ASSERT): Likewise.
39738         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39739         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39740         * tests/test-vasnprintf.c (ASSERT): Likewise.
39741         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39742         * tests/test-vasprintf.c (ASSERT): Likewise.
39743         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39744         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39745         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39746         * tests/test-vsnprintf.c (ASSERT): Likewise.
39747         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39748         * tests/test-wcwidth.c (ASSERT): Likewise.
39749         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39750         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39751         * tests/test-xvasprintf.c (ASSERT): Likewise.
39752         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39753         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39754         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39755         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39756         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39757         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39758         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39759         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39760         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39761         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39762         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39763         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39764         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39765         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39766         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39767         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39768         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39769         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39770         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39771         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39772         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39773         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39774         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39775         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39776         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39777         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39778         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39779         * tests/unictype/test-combining.c (ASSERT): Likewise.
39780         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39781         * tests/unictype/test-digit.c (ASSERT): Likewise.
39782         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39783         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39784         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39785         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39786         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39787         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39788         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39789         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39790         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39791         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39792         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39793         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39794         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39795         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39796         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39797         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39798         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39799         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39800         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39801         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39802         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39803         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39804         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39805         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39806         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39807         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39808         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39809         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39810         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39811         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39812         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39813         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39814         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39815         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39816         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39817         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39818         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39819         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39820         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39821         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39822         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39823         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39824         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39825         Reported by Eric Blake.
39826
39827 2008-04-11  Bruno Haible  <bruno@clisp.org>
39828
39829         * lib/wchar.in.h: Tweak comment.
39830
39831 2008-04-11  Bruno Haible  <bruno@clisp.org>
39832
39833         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39834         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39835         gl_COMMON.
39836         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39837
39838 2008-04-11  Bruno Haible  <bruno@clisp.org>
39839
39840         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39841
39842 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39843
39844         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39845         of attempting to use non-existing /dev/*random.  Based on patch
39846         from Adam Strzelecki <ono@java.pl> in
39847         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39848
39849 2008-04-08  Bruno Haible  <bruno@clisp.org>
39850
39851         Add tentative support for emx+gcc.
39852         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39853         * lib/fpurge.c (fpurge): Likewise.
39854         * lib/freadable.c (freadable): Likewise.
39855         * lib/freadahead.c (freadahead): Likewise.
39856         * lib/freading.c (freading): Likewise.
39857         * lib/freadptr.c (freadptr): Likewise.
39858         * lib/freadseek.c (freadptrinc): Likewise.
39859         * lib/fseeko.c (rpl_fseeko): Likewise.
39860         * lib/fseterr.c (fseterr): Likewise.
39861         * lib/fwritable.c (fwritable): Likewise.
39862         * lib/fwriting.c (fwriting): Likewise.
39863         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39864
39865 2008-04-09  Eric Blake  <ebb9@byu.net>
39866
39867         Avoid some autoconf warnings.
39868         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39869         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39870         * m4/afs.m4 (gl_AFS): Likewise.
39871         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39872         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39873         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39874         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39875         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39876         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39877         (AC_CHECK_DECLS_ONCE): Likewise.
39878         Rename file...
39879         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39880         gnulib-tool requires autoconf 2.59 or better.
39881         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39882
39883 2008-04-08  Eric Blake  <ebb9@byu.net>
39884
39885         Use 'git describe --match' if present (added in git 1.5.5).
39886         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39887         if possible.
39888
39889 2008-04-08  Bruno Haible  <bruno@clisp.org>
39890
39891         Add tentative support for OpenServer.
39892         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39893         _ptr, _cnt.
39894         * lib/fpurge.c (fpurge): Likewise.
39895         * lib/freadable.c (freadable): Likewise.
39896         * lib/freadahead.c (freadahead): Likewise.
39897         * lib/freading.c (freading): Likewise.
39898         * lib/freadptr.c (freadptr): Likewise.
39899         * lib/freadseek.c (freadptrinc): Likewise.
39900         * lib/fseeko.c (rpl_fseeko): Likewise.
39901         * lib/fseterr.c (fseterr): Likewise.
39902         * lib/fwritable.c (fwritable): Likewise.
39903         * lib/fwriting.c (fwriting): Likewise.
39904         Reported by Roger Cornelius <rac@tenzing.org> and
39905         Brian K. White <brian@aljex.com>.
39906
39907 2008-04-06  Jim Meyering  <meyering@redhat.com>
39908
39909         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39910
39911 2008-04-06  Bruno Haible  <bruno@clisp.org>
39912
39913         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39914         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39915         * tests/test-printf-posix.sh: Likewise.
39916         * tests/test-vfprintf-posix.sh: Likewise.
39917         * tests/test-vprintf-posix.sh: Likewise.
39918         * tests/test-xprintf-posix.sh: Likewise.
39919
39920 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39921
39922         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39923         hide error from 'ls', needed on OS/2.
39924         Report by Elbert Pol <elbert.pol@gmail.com>.
39925
39926 2008-04-04  Eric Blake  <ebb9@byu.net>
39927
39928         Make test-fseeko.c failures meaningful.
39929         * tests/test-fseeko.c: Print line number on failure.
39930         * tests/test-fseek.c: Likewise.
39931         Reported by Nelson H. F. Beebe.
39932
39933         Improve strtod bug detection check.
39934         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39935         required for Solaris 10.
39936         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39937
39938 2008-04-04  Bruno Haible  <bruno@clisp.org>
39939
39940         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39941         by m4/setenv.m4.
39942
39943 2008-04-03  Eric Blake  <ebb9@byu.net>
39944
39945         Ensure sane .version contents.
39946         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39947         version string.
39948         * build-aux/git-version-gen: Improve documentation.
39949
39950         Make GNU make output nicer.
39951         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39952         MAKECMDGOALS to enforce message for all command line targets.  Set
39953         srcdir for use in maint.mk.
39954
39955         Another maintainer tweak.
39956         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39957         a target that regenerates version.
39958
39959 2008-04-03  Jim Meyering  <meyering@redhat.com>
39960
39961         vc-list-files: don't cause coreutils "make po-check" failure
39962         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39963
39964 2008-04-03  Eric Blake  <ebb9@byu.net>
39965
39966         Allow VPATH usage of vc-list-files.
39967         * build-aux/vc-list-files (scriptversion): Add timestamp.
39968         (options): Add --help, --version, -C.
39969         (CVS): Support installed cvsu.
39970
39971 2008-04-02  Bruno Haible  <bruno@clisp.org>
39972
39973         Avoid some "statement with no effect" warnings from gcc.
39974         * tests/test-wctype.c (main): Explicitly ignore unused values.
39975         Reported by Jim Meyering.
39976
39977 2008-04-02  Jim Meyering  <meyering@redhat.com>
39978
39979         Avoid some warnings from "gcc -Wshadow".
39980         * tests/test-frexp.c (exp): Define to a different identifier.
39981         * tests/test-frexpl.c (exp): Likewise.
39982
39983 2008-04-03  Jim Meyering  <meyering@redhat.com>
39984
39985         bootstrap: remove dangling *.[ch] symlinks from lib
39986         * build-aux/bootstrap [dangling symlink removal]: Move find's
39987         -depth option to precede all others, to avoid a warning.
39988         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39989
39990 2008-04-02  Bruno Haible  <bruno@clisp.org>
39991
39992         Avoid some warnings from "gcc -Wshadow".
39993         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39994         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39995         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39996         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39997         Reported by Jim Meyering.
39998
39999 2008-04-01  Bruno Haible  <bruno@clisp.org>
40000
40001         Fix test to work on IRIX 6.5 with cc.
40002         * tests/test-math.c (numeric_equal): New function.
40003         (main): Use it.
40004
40005 2008-04-01  Bruno Haible  <bruno@clisp.org>
40006
40007         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40008
40009 2008-04-01  Bruno Haible  <bruno@clisp.org>
40010
40011         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40012         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40013         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40014         (Depends-on): Remove math.
40015
40016         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40017         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40018         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40019         (Depends-on): Remove math.
40020
40021         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40022         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40023         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40024         (Depends-on): Remove math.
40025         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40026         (Depends-on): Remove math.
40027
40028         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40029         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40030         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40031         (Depends-on): Remove math.
40032         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40033         (Depends-on): Remove math.
40034
40035         * tests/test-round1.c: Include nan.h.
40036         (main): Use NaNd instead of NAN.
40037         * modules/round-tests (Files): Add tests/nan.h.
40038
40039         * tests/test-trunc1.c: Include nan.h.
40040         (main): Use NaNd instead of NAN.
40041         * modules/trunc-tests (Files): Add tests/nan.h.
40042
40043         * tests/test-roundf1.c: Include nan.h.
40044         (main): Use NaNf instead of NAN.
40045         * modules/roundf-tests (Files): Add tests/nan.h.
40046
40047         * tests/test-truncf1.c: Include nan.h.
40048         (main): Use NaNf instead of NAN.
40049         * modules/truncf-tests (Files): Add tests/nan.h.
40050
40051         * tests/test-ceilf1.c: Include nan.h.
40052         (main): Use NaNf instead of NAN.
40053         * modules/ceilf-tests (Files): Add tests/nan.h.
40054
40055         * tests/test-floorf1.c: Include nan.h.
40056         (main): Use NaNf instead of NAN.
40057         * modules/floorf-tests (Files): Add tests/nan.h.
40058
40059         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40060         (main): Use NaNf instead of NAN.
40061         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40062
40063         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40064         (main): Use NaNd instead of NAN.
40065         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40066
40067         * tests/test-frexp.c: Include nan.h.
40068         (main): Use NaNd instead of NAN.
40069         * modules/frexp-tests (Files): Add tests/nan.h.
40070
40071         * lib/isnan.c: Don't include <math.h>.
40072         (FUNC): Don't use NAN macro.
40073         * modules/isnand-nolibm (Depends-on): Remove math.
40074         * modules/isnanf-nolibm (Depends-on): Remove math.
40075         * modules/isnanl (Depends-on): Remove math.
40076         * modules/isnanl-nolibm (Depends-on): Remove math.
40077
40078         * tests/nan.h: New file.
40079
40080 2008-04-01  Eric Blake  <ebb9@byu.net>
40081
40082         Fix typos.
40083         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40084         values to be the right type.
40085
40086         For now, cater to gnulib strtod inaccuracies.
40087         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40088         fractional results.  While not as nice from a QoI perspective, it
40089         is a quicker patch than correctly implementing decimal to binary
40090         rounding.
40091
40092 2008-03-31  Eric Blake  <ebb9@byu.net>
40093
40094         Guarantee a definition of NAN.
40095         * lib/math.in.h (NAN): Define if missing.
40096         * tests/test-math.c (main): Test it.
40097         * doc/posix-headers/math.texi (math.h): Document this.
40098         * lib/isnan.c (rpl_isnand): Use it.
40099         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40100         * tests/test-floorf1.c (NaN): Likewise.
40101         * tests/test-frexp.c (NaN): Likewise.
40102         * tests/test-isnand.c (NaN): Likewise.
40103         * tests/test-isnanf.c (NaN): Likewise.
40104         * tests/test-round1.c (NaN): Likewise.
40105         * tests/test-roundf1.c (NaN): Likewise.
40106         * tests/test-snprintf-posix.h (NaN): Likewise.
40107         * tests/test-sprintf-posix.h (NaN): Likewise.
40108         * tests/test-trunc1.c (NaN): Likewise.
40109         * tests/test-truncf1.c (NaN): Likewise.
40110         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40111         * tests/test-vasprintf-posix.c (NaN): Likewise.
40112         * modules/isnand-nolibm (Depends-on): Add math.
40113         * modules/isnanf-nolibm (Depends-on): Likewise.
40114         * modules/isnanl (Depends-on): Likewise.
40115         * modules/isnanl-nolibm (Depends-on): Likewise.
40116         * modules/snprintf-posix-tests (Depends-on): Likewise.
40117         * modules/sprintf-posix-tests (Depends-on): Likewise.
40118         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40119         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40120         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40121         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40122
40123 2008-03-31  Bruno Haible  <bruno@clisp.org>
40124
40125         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40126         * doc/posix-functions/strtod.texi: Likewise.
40127
40128 2008-03-31  Bruno Haible  <bruno@clisp.org>
40129
40130         * tests/test-strtod.c (main): Don't use C99 syntax.
40131
40132 2008-03-31  Bruno Haible  <bruno@clisp.org>
40133
40134         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40135         Reported by Eric Blake.
40136
40137 2008-03-31  Jim Meyering  <meyering@redhat.com>
40138
40139         Don't compare actual signbit return values.
40140         * tests/test-strtod.c (main): Rather, compare only their
40141         zero/non-zero nature.
40142
40143 2008-03-31  Eric Blake  <ebb9@byu.net>
40144
40145         More strtod documentation.
40146         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40147         failures as distinct bugs.
40148
40149 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40150
40151         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40152         Problem reported by Erik Benada in
40153         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40154
40155 2008-03-30  Bruno Haible  <bruno@clisp.org>
40156
40157         * tests/test-strtod.c: Add comments about which assertion fails on which
40158         platform.
40159         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40160
40161 2008-03-30  Eric Blake  <ebb9@byu.net>
40162
40163         Test signbit behavior on zeros.
40164         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40165         (test_signbitd, test_signbitl): Likewise.
40166
40167         More strtod touchups.
40168         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40169         sign of negative underflow, for now.  Use .5, not .1.
40170         * doc/posix-functions/strtod.texi (strtod): Mention these
40171         limitations.
40172         Reported by Jim Meyering.
40173
40174 2008-03-30  Bruno Haible  <bruno@clisp.org>
40175
40176         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40177         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40178
40179 2008-03-30  Bruno Haible  <bruno@clisp.org>
40180
40181         Avoid failure when attempting to return empty iconv results on some
40182         platforms.
40183         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40184         allocation, don't report ENOMEM when the resulting string is empty.
40185
40186 2008-03-30  Bruno Haible  <bruno@clisp.org>
40187
40188         Fix buffer overrun.
40189         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40190         Don't consider the width for tmp_length. Check count against tmp_length
40191         before doing the padding. Ensure enough allocation during padding.
40192
40193 2008-03-30  Eric Blake  <ebb9@byu.net>
40194
40195         strtod touchups.
40196         * lib/strtod.c (strtod): Avoid compiler warnings.
40197         Reported by Jim Meyering.
40198
40199 2008-03-30  Bruno Haible  <bruno@clisp.org>
40200
40201         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40202         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40203         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40204         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40205         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40206         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40207         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40208         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40209
40210         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40211         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40212         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40213         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40214         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40215         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40216         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40217         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40218
40219         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40220         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40221         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40222         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40223         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40224         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40225         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40226         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40227
40228         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40229         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40230
40231         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40232         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40233
40234         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40235         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40236
40237         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40238         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40239         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40240
40241         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40242         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40243         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40244
40245         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40246         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40247         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40248
40249         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40250         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40251         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40252
40253         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40254         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40255         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40256         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40257         (Depends-on): Add EOVERFLOW.
40258         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40259         (Depends-on): Add EOVERFLOW.
40260         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40261         (Depends-on): Add EOVERFLOW.
40262         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40263         (Depends-on): Add EOVERFLOW.
40264         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40265         (Depends-on): Add EOVERFLOW.
40266         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40267         (Depends-on): Add EOVERFLOW.
40268         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40269         (Depends-on): Add EOVERFLOW.
40270         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40271         (Depends-on): Add EOVERFLOW.
40272
40273         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40275         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40276
40277         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40278         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40279         * modules/snprintf (Depends-on): Add EOVERFLOW.
40280
40281         * lib/poll.c (EOVERFLOW): Remove fallback.
40282         * modules/poll (Depends-on): Add EOVERFLOW.
40283
40284         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40285         * modules/getugroups (Depends-on): Add EOVERFLOW.
40286
40287         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40288         * modules/getdelim (Depends-on): Add EOVERFLOW.
40289
40290         * lib/ftell.c (EOVERFLOW): Remove fallback.
40291         * modules/ftell (Depends-on): Add EOVERFLOW.
40292
40293         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40295         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40296
40297         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40298
40299         * modules/EOVERFLOW-tests: New file.
40300         * tests/test-EOVERFLOW.c: New file.
40301
40302         * modules/EOVERFLOW: New file.
40303         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40304
40305 2008-03-30  Bruno Haible  <bruno@clisp.org>
40306
40307         Fix bug introduced on 2007-06-10.
40308         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40309         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40310
40311 2008-03-30  Bruno Haible  <bruno@clisp.org>
40312
40313         Improve freadseek's efficiency after ungetc.
40314         * lib/freadseek.c: Include freadahead.h.
40315         (freadptrinc): New function, extracted from freadseek.
40316         (freadseek): Use it in a loop. Use freadahead to determine the number
40317         of loop iterations.
40318         * modules/freadseek (Depends-on): Add freadahead.
40319         (configure.ac): Require AC_C_INLINE.
40320
40321 2008-03-30  Bruno Haible  <bruno@clisp.org>
40322
40323         * lib/freadseek.c (freadseek): Don't ignore the return value of
40324         freadptr.
40325
40326 2008-03-29  Eric Blake  <ebb9@byu.net>
40327
40328         Add hex float support.
40329         * modules/strtod (Depends-on): Add c-ctype.
40330         (Link): Mention POW_LIB.
40331         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40332         whitespace between 'e' and exponent.
40333         * tests/test-strtod.c (main): Enable hex float tests.
40334         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40335         now provides.
40336
40337         Document various strtod bugs, with some fixes.
40338         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40339         "-0x", "inf", "nan", and hex constants.
40340         * doc/posix-functions/atof.texi (atof): Likewise.
40341         * modules/stdlib (Makefile.am): Support strtod.
40342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40343         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
40344         detect additional strtod bugs.
40345         * lib/stdlib.in.h (rpl_strtod): Add declarations.
40346         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
40347         bool where appropriate.  Parse 'inf' and 'nan'.
40348         * tests/test-strtod.c: New file.
40349         * modules/strtod (Depends-on): Add stdbool, stdlib.
40350         (configure.ac): Turn on module indicator.
40351         * modules/strtod-tests: New module.
40352
40353 2008-03-29  Eric Blake  <ebb9@byu.net>
40354
40355         Fix ftell on mingw.
40356         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
40357         * modules/ftell-tests (Depends-on): Add binary-io.
40358         * modules/ftello-tests (Depends-on): Likewise.
40359         * tests/test-ftell.c (main): Enhance test to cover behavior after
40360         ungetc.  Enforce binary mode.
40361         * tests/test-ftello.c (main): Likewise.
40362
40363         Pass test-freadseek on cygwin.
40364         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
40365         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
40366         ungetc buffer.
40367
40368         * tests/test-fflush2.c (main): Fix typo.
40369
40370 2008-03-29  Bruno Haible  <bruno@clisp.org>
40371
40372         * tests/test-fflush2.c (main): Temporarily disable the contents of
40373         this test.
40374         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
40375         Reported by Eric Blake.
40376
40377 2008-03-28  Simon Josefsson  <simon@josefsson.org>
40378
40379         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
40380         (GC_SHA224_DIGEST_SIZE): Add.
40381
40382         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
40383         (gc_hash_digest_length): Likewise.
40384         (gc_hash_buffer): Likewise.
40385
40386 2008-03-25  Bruno Haible  <bruno@clisp.org>
40387
40388         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
40389         detail which gettext release to use.
40390         Reported by Simon Josefsson.
40391
40392 2008-03-26  Jim Meyering  <meyering@redhat.com>
40393
40394         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
40395         * modules/gnumakefile (clean-GNUmakefile): Also, use
40396         test ... && ... || : syntax rather than if-then ... fi.
40397
40398         gnumakefile: Don't double-quote-expand $(VPATH) value.
40399         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
40400
40401 2008-03-24  Eric Blake  <ebb9@byu.net>
40402
40403         Alter GNUmakefile to install into top directory.
40404         * modules/maintainer-makefile: Split, and add dependency...
40405         * modules/gnumakefile: to this new module.
40406         * build-aux/GNUmakefile: Move...
40407         * top/GNUmakefile: ...here.
40408         * build-aux/maint.mk: Move...
40409         * top/maint.mk: ...here.
40410         * MODULES.html.sh (Support for maintaining...): Document new
40411         module.
40412
40413 2008-03-23  Bruno Haible  <bruno@clisp.org>
40414
40415         * gnulib-tool: New options --vc-files, --no-vc-files.
40416         (func_usage): Document them.
40417         (vc_files): New variable.
40418         (func_import): Consider vc_files.
40419         (func_create_testdir): Set vc_files to empty.
40420         Suggested by Jim Meyering and Karl Berry.
40421
40422 2008-03-23  Bruno Haible  <bruno@clisp.org>
40423
40424         Fix regex compilation error on HP-UX 11.
40425         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
40426         * modules/regex (Files): Add m4/mbstate_t.m4.
40427         Reported by Ton Voon <ton.voon@altinity.com>.
40428
40429 2008-03-23  Bruno Haible  <bruno@clisp.org>
40430
40431         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
40432
40433 2008-03-23  Eric Blake  <ebb9@byu.net>
40434             Bruno Haible  <bruno@clisp.org>
40435
40436         Install files from top/ in the destination directory.
40437         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40438         augmentation also for the files from top/.
40439         (func_import, func_create_testdir): Rewrite file names:
40440         top/filename -> filename.
40441
40442 2008-03-23  Bruno Haible  <bruno@clisp.org>
40443
40444         Tweak "gnulib --version" output.
40445         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
40446
40447 2008-03-23  Bruno Haible  <bruno@clisp.org>
40448
40449         Tweak "gnulib --version" output.
40450         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
40451         rather than contents of ChangeLog, when possible.
40452
40453 2008-03-21  Eric Blake  <ebb9@byu.net>
40454
40455         More --version tweaks.
40456         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
40457         date of last ChangeLog entry.
40458
40459 2008-03-21  Jim Meyering  <meyering@redhat.com>
40460
40461         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
40462
40463 2008-03-20  Eric Blake  <ebb9@byu.net>
40464
40465         VPATH fix.
40466         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
40467
40468 2008-03-20  Simon Josefsson  <simon@josefsson.org>
40469
40470         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
40471         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
40472
40473 2008-03-20  Eric Blake  <ebb9@byu.net>
40474
40475         Sync GNUmakefile with coreutils.
40476         * build-aux/GNUmakefile (have-Makefile): Rename...
40477         (_have-Makefile): ...to this, for namespace consideration.
40478         (GNUmakefile.cfg): Include, if present.
40479         (_autoreconf): Define a default.
40480         (_is-dist-target): New rule for rebuilds to pick up intra-release
40481         version.
40482         (maint-cfg.mk): Rename...
40483         (cfg.mk): ...to this.
40484
40485 2008-03-18  Jim Meyering  <meyering@redhat.com>
40486
40487         New script and module: mktempd
40488         * MODULES.html.sh (maint+release support): Add mktempd.
40489         * build-aux/mktempd: New file.
40490         * modules/mktempd: New file.
40491
40492 2008-03-15  Jim Meyering  <meyering@redhat.com>
40493
40494         Undo last change.
40495         * lib/sha1.c, lib/md5.c: 63 != ~63.
40496         Reported by Andreas Schwab.
40497
40498         sha1.c, md5.c: Hoist a redundant expression.
40499         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
40500         "ctx->buflen" only once, before calling *_process_block.
40501         * lib/md5.c (md5_process_bytes): Likewise.
40502
40503 2008-03-14  Eric Blake  <ebb9@byu.net>
40504
40505         Bump copyright year in files generated by gnulib-tool.
40506         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
40507         gnulib-tool, rather than hard-coding it.
40508
40509         Fix 'gnulib-tool --version' output to work with git.
40510         * gnulib-tool (func_gnulib_dir): New function, extracted from...
40511         (startup): ...here.
40512         (func_version): Use it to invoke git-version-gen, rather than
40513         relying on CVS keyword expansion.  Modernize wording.
40514         (cvsdatestamp, last_checkin_date, version): Kill unused
40515         variables.
40516
40517 2008-03-12  Jim Meyering  <meyering@redhat.com>
40518
40519         Recognize optional cast of the argument to free.
40520         * build-aux/useless-if-before-free: Update regexps.
40521
40522         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
40523
40524 2008-03-11  Bruno Haible  <bruno@clisp.org>
40525
40526         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
40527         by a single package.
40528         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
40529         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
40530         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
40531         Reported by Sam Steingold <sds@gnu.org>.
40532
40533 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40534
40535         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
40536         repositories.
40537
40538 2008-03-11  Bruno Haible  <bruno@clisp.org>
40539
40540         Avoid conflicts between local macro definitions.
40541         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40542         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
40543
40544 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
40545             Bruno Haible  <bruno@clisp.org>
40546
40547         Make va_copy work with some version of xlc on AIX 5.1.
40548         * lib/stdarg.in.h: New file.
40549         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
40550         On AIX, use a <stdarg.h> file substitute.
40551         * modules/stdarg (Files): Add lib/stdarg.in.h.
40552         (Depends-on): Add include_next.
40553         (Makefile.am): Build a stdarg.h substitute if requested.
40554         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40555
40556 2008-03-10  Bruno Haible  <bruno@clisp.org>
40557
40558         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40559         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40560         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40561
40562 2008-03-10  Bruno Haible  <bruno@clisp.org>
40563
40564         * modules/stdlib (Depends-on): Add include_next, remove
40565         absolute-header.
40566
40567 2008-03-09  Bruno Haible  <bruno@clisp.org>
40568
40569         * lib/freadahead.h (freadahead): Document more precisely.
40570         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40571         the sum of both buffer sizes.
40572         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40573         * NEWS: Document the change.
40574
40575 2008-03-09  Bruno Haible  <bruno@clisp.org>
40576
40577         Extend freadptr to return also the buffer size.
40578         * lib/freadptr.h (freadptr): Add sizep argument.
40579         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40580         (freadptr): Add sizep argument. Determine buffer size like freadahead
40581         does.
40582         * tests/test-freadptr.c: Don't include freadahead.h.
40583         (main): Adapt for new calling convention of freadptr.
40584         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40585         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40586         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40587         tests/test-freadptr2.sh.
40588         (Depends): Remove freadahead.
40589         (TESTS): Add test-freadptr2.sh.
40590         (check_PROGRAMS): Add test-freadptr2.
40591
40592 2008-03-09  Bruno Haible  <bruno@clisp.org>
40593
40594         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40595         Report and solution by Simon Josefsson.
40596
40597 2008-03-06  Bruno Haible  <bruno@clisp.org>
40598
40599         Make fflush after ungetc work on BSD platforms.
40600         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40601         * tests/test-fflush2.c: New file.
40602         * tests/test-fflush2.sh: New file.
40603         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40604         tests/test-fflush2.c.
40605         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40606         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40607
40608 2008-03-06  Eric Blake  <ebb9@byu.net>
40609
40610         Likewise for ftello.
40611         * modules/ftello (Dependencies): Add extensions.
40612         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40613
40614 2008-03-06  Bruno Haible  <bruno@clisp.org>
40615
40616         * modules/fseeko (Dependencies): Add extensions.
40617         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40618         Needed on glibc systems.
40619
40620 2008-03-06  Bruno Haible  <bruno@clisp.org>
40621
40622         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40623         email address.
40624         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40625
40626 2008-03-06  Bruno Haible  <bruno@clisp.org>
40627
40628         * users.txt: Add libgnupdf.
40629
40630 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40631
40632         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40633         (Header File Substitutes, Function Substitutes,
40634         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40635         (Build robot for gnulib): Fix typo.
40636
40637 2008-03-06  Bruno Haible  <bruno@clisp.org>
40638
40639         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40640         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40641
40642 2008-03-06  Bruno Haible  <bruno@clisp.org>
40643
40644         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40645         * doc/gnulib.texi: Include it.
40646
40647 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40648
40649         * modules/func (License): Change license to unlimited; there was
40650         no LGPL parts in the module anyway.
40651
40652 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40653
40654         * modules/__func__: Renamed to modules/func.
40655         * modules/__func__-tests: Renamed to modules/func-tests.
40656         * tests/test-__func__.c: Renamed to tests/test-func.c.
40657         * m4/__func__.m4: Renamed to m4/func.m4.
40658         * doc/gnulib.texi (__func__): Section renamed to func.
40659         Suggested by Eric Blake <ebb9@byu.net>.
40660
40661 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40662
40663         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40664         about __func__.  Make example self-contained.  Suggested by Eric
40665         Blake <ebb9@byu.net>.
40666
40667         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40668         Suggested by Eric Blake <ebb9@byu.net>.
40669
40670 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40671
40672         * modules/__func__: New file.
40673         * modules/__func__-tests: New file.
40674         * tests/test-__func__.c: New file.
40675         * m4/__func__.m4: New file.
40676         * doc/gnulib.texi (__func__): Document __func__ module.
40677
40678 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40679
40680         * modules/byteswap (License): Re-license as LGPLv2+.
40681
40682 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40683
40684         * doc/Makefile: Add pdf target.
40685
40686 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40687
40688         * modules/inline (License): Use 'unlimited', since there are only
40689         *.m4 files in this module.
40690
40691 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40692             Bruno Haible  <bruno@clisp.org>
40693
40694         Add support for HP C 7.1 on OpenVMS 8.3.
40695         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40696
40697 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40698
40699         Update VMS specifics.
40700         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40701
40702 2008-03-02  Jim Meyering  <meyering@redhat.com>
40703
40704         Remove the last dependency on the "free" module.
40705         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40706         Reported by Bob Proulx.
40707
40708         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40709
40710         Remove useless "if" tests before free.  Deprecate "free" module.
40711         * doc/posix-functions/free.texi: Mention that this
40712         module is no longer useful.
40713         * modules/free (Notice): Say this module is obsolete.
40714         * modules/readutmp (Depends-on): Remove free.
40715         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40716         * lib/putenv.c (putenv): Likewise.
40717         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40718         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40719         * tests/test-c-strcasestr.c (main): Likewise.
40720         * tests/test-c-strstr.c (main): Likewise.
40721         * tests/test-mbscasestr1.c (main): Likewise.
40722         * tests/test-mbscasestr2.c (main): Likewise.
40723         * tests/test-mbsstr1.c (main): Likewise.
40724         * tests/test-mbsstr2.c (main): Likewise.
40725         * tests/test-memmem.c (main): Likewise.
40726         * tests/test-strcasestr.c (main): Likewise.
40727         * tests/test-striconv.c (main): Likewise.
40728         * tests/test-striconveh.c (main): Likewise.
40729         * tests/test-striconveha.c (main): Likewise.
40730         * tests/test-strstr.c (main): Likewise.
40731
40732         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40733
40734         bootstrap: sync from coreutils again
40735         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40736
40737 2008-03-01  Jim Meyering  <meyering@redhat.com>
40738
40739         bootstrap: sync from coreutils
40740         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40741         also when the target doesn't exist.
40742
40743 2008-03-01  Eric Blake  <ebb9@byu.net>
40744
40745         Fix bugs in last patch.
40746         * lib/memchr2.c (memchr2): Fix typo.
40747         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40748         extension.
40749         Reported by Bruce Korb.
40750
40751         New module 'memchr2'.
40752         * modules/memchr2: New file.
40753         * modules/memchr2-tests: Likewise.
40754         * lib/memchr2.h: Likewise.
40755         * lib/memchr2.c: Likewise, based on memchr.c.
40756         * tests/test-memchr2.c: New test.
40757         * MODULES.html.sh (String handling): Add memchr2.
40758
40759 2008-02-29  Bruno Haible  <bruno@clisp.org>
40760
40761         * modules/freadseek-tests: New file.
40762         * tests/test-freadseek.sh: New file.
40763         * tests/test-freadseek.c: New file.
40764
40765         New module 'freadseek'.
40766         * modules/freadseek: New file.
40767         * lib/freadseek.h: New file.
40768         * lib/freadseek.c: New file.
40769         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40770
40771 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40772
40773         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40774         wydawca.
40775
40776         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40777         program_invocation_name and program_invocation_short_name are
40778         present.
40779
40780 2008-02-28  Bruno Haible  <bruno@clisp.org>
40781
40782         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40783         * tests/test-freadptr.sh: Also test non-seekable stdin.
40784
40785 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40786
40787         * build-aux/bootstrap (source_base, m4_base)
40788         (doc_base, tests_base): New variables.
40789         (gnulib_tool_options): Do not hardcode base directories, use
40790         the above variables instead.
40791
40792 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40793
40794         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40795
40796 2008-02-28  Bruno Haible  <bruno@clisp.org>
40797
40798         * modules/freadptr-tests: New file.
40799         * tests/test-freadptr.sh: New file.
40800         * tests/test-freadptr.c: New file.
40801
40802         New module 'freadptr'.
40803         * modules/freadptr: New file.
40804         * lib/freadptr.h: New file.
40805         * lib/freadptr.c: New file.
40806         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40807
40808 2008-02-26  Karl Berry  <karl@freefriends.org>
40809
40810         Sync from Libtool:
40811         * libltdl/argz.c (argz_add, argz_count): New functions.
40812         * libltdl/argz.in.h: Declare them.
40813         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40814
40815 2008-02-22  Bruno Haible  <bruno@clisp.org>
40816
40817         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40818         is a pointer type.  Needed for HP-UX 10.
40819         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40820         * doc/posix-functions/gmtime_r.texi: Likewise.
40821         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40822
40823 2008-02-24  Bruno Haible  <bruno@clisp.org>
40824
40825         * modules/environ-tests: New file.
40826         * tests/test-environ.c: New file.
40827
40828         New module 'environ'.
40829         * modules/environ: New file.
40830         * lib/unistd.in.h (environ): New declaration.
40831         * m4/environ.m4: New file.
40832         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40833         after use.
40834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40835         HAVE_DECL_ENVIRON.
40836         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40837         HAVE_DECL_ENVIRON.
40838         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40839         wrong claim that 'environ' is missing on some systems.
40840         * modules/execute (Depends-on): Add environ.
40841         * lib/execute.c (environ): Remove fallback declaration.
40842         * modules/pipe (Depends-on): Add environ.
40843         * lib/pipe.c (environ): Remove fallback declaration.
40844         * modules/setenv (Depends-on): Add environ.
40845         * lib/setenv.c (environ): Remove fallback declaration.
40846         * modules/unsetenv (Depends-on): Add environ.
40847         * lib/unsetenv.c (environ): Remove fallback declaration.
40848         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40849         m4/environ.m4.
40850         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40851         (gl_PREREQ_UNSETENV): Likewise.
40852
40853 2008-02-24  Bruno Haible  <bruno@clisp.org>
40854
40855         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40856
40857 2008-02-20  Bob Proulx  <bob@proulx.com>
40858
40859         Enable use of older two part flavor 'git describe'.
40860         * build-aux/git-version-gen: If using the older two part flavor of
40861         git version then recreate the third part now present in the
40862         newer three part flavor of git describe.
40863
40864 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40865
40866         * lib/fts.c (fts_build): Typo correction to comment.
40867
40868 2008-02-17  Bruno Haible  <bruno@clisp.org>
40869
40870         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40871         generating no-op conflicts.
40872
40873 2008-02-17  Bruno Haible  <bruno@clisp.org>
40874
40875         Speed up by 10%.
40876         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40877         result_entries, rather than an index-based loop.
40878
40879 2008-02-17  Bruno Haible  <bruno@clisp.org>
40880
40881         Speed up by 25%.
40882         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40883         'hashcode_cached'.
40884         (entry_create): New function.
40885         (entry_hashcode): Use the cached hashcode if possible.
40886         (read_changelog_file, try_split_merged_entry): Use entry_create.
40887
40888 2008-02-17  Bruno Haible  <bruno@clisp.org>
40889
40890         Speed up from O(n^2) to O(n) for long ChangeLog files.
40891         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40892         (read_changelog_file): Change implementation of entries_reversed list
40893         to rbtreehash.
40894         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40895
40896 2008-02-17  Bruno Haible  <bruno@clisp.org>
40897
40898         New option --split-merged-entry.
40899         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40900         (find_paragraph_end, try_split_merged_entry): New functions.
40901         (long_options): Add option --split-merged-entry.
40902         (usage): Document option --split-merged-entry.
40903         (main): Implement option --split-merged-entry.
40904         Reported by Eric Blake.
40905
40906 2008-02-17  Bruno Haible  <bruno@clisp.org>
40907
40908         * lib/git-merge-changelog.c: Include c-strstr.h.
40909         (main): Support the "git pull --rebase" situation.
40910         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40911         Reported by Eric Blake.
40912
40913 2008-02-16  Eric Blake  <ebb9@byu.net>
40914
40915         Avoid doubling \ in common case of "c-maybe" quoting style.
40916         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40917         eliding outer quotes.
40918         * lib/quotearg.h: Document this.
40919         * tests/test-quotearg.c (result_strings, inputs, results_g)
40920         (flag_results, locale_results): Test it by adding a new string to
40921         each test group.
40922         (compare_strings): Test new string.
40923
40924 2008-02-13  Eric Blake  <ebb9@byu.net>
40925
40926         Avoid trigraph quoting in default output.
40927         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40928         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40929         unless explicitly requested.
40930         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40931
40932 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40933
40934         Don't rely on signed integer overflowing to negative value.
40935         * lib/getugroups.c (getugroups): Include <limits.h>.
40936         Instead, compare against INT_MAX, and increment only if the test passes.
40937
40938 2008-02-13  Jim Meyering  <meyering@redhat.com>
40939         and Eric Blake  <ebb9@byu.net>
40940
40941         Avoid shadowing warning and compile errors on Linux.
40942         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40943         forwarding macros on Linux.
40944         (dcgettext): Define a stub, for Linux.
40945         (results_g, main): Avoid warnings.
40946
40947 2008-02-12  Eric Blake  <ebb9@byu.net>
40948
40949         Silence warning in last patch.
40950         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40951
40952         Quotearg part 4: add tests, fix c-maybe colon quoting.
40953         * lib/quotearg.h: Improve documentation.
40954         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40955         escapes when adding outer quotes.  When quoting trigraphs, use
40956         valid C notation.  When quoting NUL, omit extra characters if next
40957         character is not digit.  Alter prototype.
40958         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40959         callers.
40960         * modules/quotearg-tests: New module.
40961         * tests/test-quotearg.c: New test.
40962
40963 2008-02-07  Eric Blake  <ebb9@byu.net>
40964
40965         Quotearg part 3: add flag to control outer quote elision.
40966         * lib/quotearg.h (c_maybe_quoting_style): New style.
40967         (enum quoting_flags): Better documentation of flags.
40968         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40969         c-maybe style.
40970         (quotearg_buffer_restyled): Handle new flag to elide outer
40971         quotes.
40972
40973         Quotearg part 2: add flag that can control NUL elision.
40974         * lib/quotearg.h (set_quoting_flags): New prototype.
40975         * lib/quotearg.c (struct quoting_options): Add flag field.
40976         (set_quoting_flags): New function.
40977         (quotearg_buffer_restyled): Add flags parameter.
40978         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40979         (quotearg_n_options): Set the flag, since length cannot be
40980         returned.
40981         (quoting_options_from_style): Default flags correctly.
40982
40983         Quotearg part 1: more wrappers, restore quotearg_char state.
40984         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40985         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40986         (quotearg_colon_mem): New wrappers.
40987         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40988         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40989         functions.
40990         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40991         (quotearg_colon_mem): New functions.
40992
40993 2008-02-11  Bruno Haible  <bruno@clisp.org>
40994
40995         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40996         library in the current directory: it does not work with parallel make.
40997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40998
40999 2008-02-11  Bruno Haible  <bruno@clisp.org>
41000
41001         * .gitattributes: New file.
41002
41003 2008-02-11  Jim Meyering  <meyering@redhat.com>
41004
41005         useless-if-before-free: Fix reversed exit values.
41006         * build-aux/useless-if-before-free: Use correct values
41007         for EXIT_MATCH and EXIT_NO_MATCH.
41008
41009         * build-aux/useless-if-before-free: Close stdout carefully.
41010
41011 2008-02-10  Bruno Haible  <bruno@clisp.org>
41012
41013         New module 'git-merge-changelog'.
41014         * modules/git-merge-changelog: New file.
41015         * lib/git-merge-changelog.c: New file.
41016
41017 2008-02-10  Jim Meyering  <meyering@redhat.com>
41018
41019         useless-if-before-free: New option: --list (-l).
41020
41021         useless-if-before-free: Don't exit immediately upon open failure.
41022         * build-aux/useless-if-before-free: Exit 2 for errors.
41023         Upon failure to open a file, don't exit immediately.
41024         Rather, just warn and continue with any remaining files.
41025
41026 2008-02-10  Bruno Haible  <bruno@clisp.org>
41027
41028         New abstract list operation 'node_set_value'.
41029         * lib/gl_list.h (gl_list_node_set_value): New function.
41030         (struct gl_list_implementation): New field node_set_value.
41031         * lib/gl_list.c (gl_list_node_set_value): New function.
41032         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41033         (gl_array_list_implementation): Update.
41034         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41035         (gl_carray_list_implementation): Update.
41036         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41037         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41038         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41039         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41040         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41041         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41042         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41043         Update.
41044         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41045         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41046         (gl_sublist_list_implementation): Update.
41047
41048 2008-02-10  Bruno Haible  <bruno@clisp.org>
41049
41050         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41051         Needed when ELEMENT is #defined to 'some_type *'.
41052
41053 2008-02-10  Jim Meyering  <meyering@redhat.com>
41054
41055         New script and module: useless-if-before-free
41056         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41057         * build-aux/useless-if-before-free: New file.
41058         * modules/useless-if-before-free: New file.
41059
41060         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41061
41062         xstrtol_error: Fix typo.
41063         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41064         s/exit_failure/exit_status/.
41065
41066 2008-02-09  Jim Meyering  <meyering@redhat.com>
41067
41068         New script and module: gitlog-to-changelog
41069         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41070         * modules/gitlog-to-changelog: New file.
41071         * build-aux/gitlog-to-changelog: New file.
41072
41073 2008-02-08  Jim Meyering  <meyering@redhat.com>
41074
41075         Avoid two "parameter unused" warnings.
41076         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41077         Mark "st" as used.
41078
41079         Use "git COMMAND", not "git-COMMAND".
41080         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41081         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41082         * build-aux/git-version-gen: Use "git status", not "git-status".
41083
41084 2008-02-07  Bruno Haible  <bruno@clisp.org>
41085
41086         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41087         Avoids a crash on Windows Vista.
41088         Reported by Adam Strzelecki <ono@java.pl> via
41089         Simon Josefsson <simon@josefsson.org>.
41090
41091 2008-02-06  Bruno Haible  <bruno@clisp.org>
41092
41093         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41094         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41095         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41097         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41098         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41099         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41100         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41108         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41109         left-adjust flag.
41110         * tests/test-snprintf-posix.h (test_function): Likewise.
41111         * tests/test-sprintf-posix.h (test_function): Likewise.
41112         * tests/test-vasprintf-posix.c (test_function): Likewise.
41113         * doc/posix-functions/fprintf.texi: Update.
41114         * doc/posix-functions/printf.texi: Update.
41115         * doc/posix-functions/snprintf.texi: Update.
41116         * doc/posix-functions/sprintf.texi: Update.
41117         * doc/posix-functions/vfprintf.texi: Update.
41118         * doc/posix-functions/vprintf.texi: Update.
41119         * doc/posix-functions/vsnprintf.texi: Update.
41120         * doc/posix-functions/vsprintf.texi: Update.
41121         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41122
41123 2008-02-06  Bruno Haible  <bruno@clisp.org>
41124
41125         Fix bug introduced on 2008-01-26.
41126         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41127
41128 2008-02-06  Bruno Haible  <bruno@clisp.org>
41129
41130         Fix bug introduced on 2007-06-10.
41131         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41132         !NEED_PRINTF_FLAG_ZERO.
41133
41134 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41135
41136         getloadavg: use libperfstat on AIX5
41137         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41138
41139 2008-02-03  Bruno Haible  <bruno@clisp.org>
41140
41141         * lib/diffseq.h: Add comments about required #includes.
41142         Reported by Michael Biggs <gnulib@doubleplum.net>.
41143
41144 2008-02-01  Bruno Haible  <bruno@clisp.org>
41145
41146         * users.txt: Add gnuit.
41147
41148 2008-01-31  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/md4.c (set_uint32): Mark as inline.
41151         * lib/md5.c (set_uint32): Likewise.
41152         * lib/sha1.c (set_uint32): Likewise.
41153         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41154         * m4/md5.m4 (gl_MD5): Likewise.
41155         * m4/sha1.m4 (gl_SHA1): Likewise.
41156
41157 2008-01-31  Jim Meyering  <meyering@redhat.com>
41158
41159         Use "sizeof VAR", rather than a literal "4".
41160         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41161         * lib/md4.c (md4_read_ctx): Likewise.
41162         * lib/sha1.c (sha1_read_ctx): Likewise.
41163
41164 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41165
41166         * tests/test-sha1.c: New file, based on test-md5.c.
41167
41168         * modules/crypto/sha1-tests: New file.
41169
41170 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41171
41172         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41173
41174 2008-01-31  Jim Meyering  <meyering@redhat.com>
41175
41176         Prefer "sizeof v" over the equivalent "4".
41177         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41178         * lib/md5.c (set_uint32): Likewise.
41179         * lib/sha1.c (set_uint32): Likewise.
41180
41181 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41182
41183         * lib/sha1.c (set_uint32): Mark function as static.
41184
41185 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41186
41187         md2: clarify comments to say that alignment is not required.
41188         * lib/md2.h: Remove warning about alignment in comment.
41189         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41190         never been required.
41191
41192 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41193
41194         md4: adapt alignment constraint fix from sha1.
41195         * lib/md4.c (set_uint32): New function, from sha1.c
41196         (md4_read_ctx): Use it.
41197         (md4_finish_ctx): Doc fix.
41198         * lib/md4.h: Doc fix.
41199
41200 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41201
41202         md5: adapt alignment constraint fix from sha1.
41203         * lib/md5.c (set_uint32): New function, from sha1.c
41204         (md5_read_ctx): Use it.
41205         (md5_finish_ctx): Doc fix.
41206         * lib/md5.h: Doc fix.
41207
41208 2008-01-30  Peter Palfrader  <weasel@debian.org>
41209
41210         sha1: remove the result buffer alignment constraint
41211         * lib/sha1.c (set_uint32): New function.
41212         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41213         constraint.
41214         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41215         * lib/sha1.h: Likewise.
41216
41217 2008-01-30  Andreas Schwab  <schwab@suse.de>
41218             Bruno Haible  <bruno@clisp.org>
41219
41220         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41221         correct definition of LDBL_MIN_EXP.
41222
41223 2008-01-30  Karl Berry  <karl@gnu.org>
41224
41225         * config/srclist-update: try to preserve x bit on updates.
41226         * config/srclistvars.sh: update for karl.
41227
41228 2008-01-29  Jim Meyering  <meyering@redhat.com>
41229
41230         vasnprintf.c: Avoid warning about unused label
41231         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41232         "overflow" label definition and associated code with the
41233         same cpp condition that guards the sole use of that label.
41234
41235 2008-01-26  Bruno Haible  <bruno@clisp.org>
41236
41237         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41238         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41239         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41240         * lib/isnanl-nolibm.h (isnanl): Likewise.
41241         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41242
41243 2008-01-26  Bruno Haible  <bruno@clisp.org>
41244
41245         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41246         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41247
41248 2008-01-26  Bruno Haible  <bruno@clisp.org>
41249
41250         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41251         GCC >= 4.0 built-in.
41252         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41253
41254 2008-01-26  Bruno Haible  <bruno@clisp.org>
41255
41256         Rename isnan, applicable to 'double' only, to isnand.
41257         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41258         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41259         (configure.ac): Update.
41260         (Include): Replace "isnan.h" with "isnand.h".
41261         * m4/isnand.m4: Renamed from m4/isnan.m4.
41262         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41263         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41264         instead of isnan.c.
41265         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41266         instead of HAVE_ISNAN_IN_LIBC.
41267         (isnand): Renamed from isnan.
41268         * lib/isnand.c: New file.
41269         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41270         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41271         (Makefile.am): Update.
41272         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41273         Include isnand.h instead of isnan.h.
41274         (main): Test isnand instead of isnan.
41275         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41276         isnan-nolibm.
41277         * modules/frexp (Depends-on): Likewise.
41278         * modules/frexp-tests (Depends-on): Likewise.
41279         * modules/frexp-nolibm (Depends-on): Likewise.
41280         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41281         * modules/isfinite (Depends-on): Likewise.
41282         * modules/round-tests (Depends-on): Likewise.
41283         * modules/signbit (Depends-on): Likewise.
41284         * modules/signbit-tests (Depends-on): Likewise.
41285         * modules/snprintf-posix (Depends-on): Likewise.
41286         * modules/sprintf-posix (Depends-on): Likewise.
41287         * modules/trunc-tests (Depends-on): Likewise.
41288         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41289         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41290         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41291         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41292         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41293         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41294         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41295         * modules/vasnprintf-posix (Depends-on): Likewise.
41296         * modules/vasprintf-posix (Depends-on): Likewise.
41297         * modules/vfprintf-posix (Depends-on): Likewise.
41298         * modules/vsnprintf-posix (Depends-on): Likewise.
41299         * modules/vsprintf-posix (Depends-on): Likewise.
41300         * lib/frexp.c: Include isnand.h instead of isnan.h.
41301         (ISNAN): Set to isnand instead of isnan.
41302         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41303         (gl_isfinited): Use isnand instead of isnan.
41304         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41305         (gl_signbitd): Use isnand instead of isnan.
41306         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41307         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41308         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41309         (main): Use isnand instead of isnan.
41310         * tests/test-round1.c: Include isnand.h.
41311         (main): Use isnand instead of isnan.
41312         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41313         (ISNAN): Set to isnand instead of isnan.
41314         * tests/test-trunc1.c: Include isnand.h.
41315         (main): Use isnand instead of isnan.
41316         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41317         (equal): Use isnand instead of isnan.
41318         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41319         isnand-nolibm.
41320         * NEWS: Mention the change.
41321
41322 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41323             Bruno Haible  <bruno@clisp.org>
41324
41325         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41326         the GCC builtins for signbits are present and set
41327         REPLACE_SIGNBIT_USING_GCC if so.
41328         * lib/math.in.h (signbit): Define using GCC builtins if
41329         REPLACE_SIGNBIT_USING_GCC is set.
41330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41331         REPLACE_SIGNBIT_USING_GCC.
41332         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41333
41334 2008-01-25  Jim Meyering  <meyering@redhat.com>
41335
41336         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41337         * lib/poll.c: Include <config.h>, not "config.h".
41338         * tests/test-getaddrinfo.c: Likewise.
41339
41340 2008-01-25  Simon Josefsson  <simon@josefsson.org>
41341
41342         * modules/sockets-tests: New file.
41343
41344 2008-01-24  Simon Josefsson  <simon@josefsson.org>
41345
41346         * modules/sockets: New module, can be used to call WSA_Startup and
41347         WSA_Cleanup when needed.
41348
41349         * lib/sockets.h, lib/sockets.c: New files.
41350
41351         * m4/sockets.m4: New file.
41352
41353         * tests/test-sockets.c: New file.
41354
41355 2008-01-19  Bruno Haible  <bruno@clisp.org>
41356
41357         * doc/posix-headers: Renamed from doc/headers.
41358         * doc/posix-functions: Renamed from doc/functions.
41359         * doc/gnulib.texi: Update.
41360
41361 2008-01-19  Bruno Haible  <bruno@clisp.org>
41362
41363         * doc/glibc-functions/strcasestr.texi: Include contents of
41364         doc/functions/strcasestr.texi, fixing the list of platforms.
41365         * doc/functions/strcasestr.texi: Remove file.
41366
41367 2008-01-19  Bruno Haible  <bruno@clisp.org>
41368
41369         * doc/glibc-functions/memmem.texi: Include contents of
41370         doc/functions/memmem.texi.
41371         * doc/functions/memmem.texi: Remove file.
41372
41373 2008-01-18  Bruno Haible  <bruno@clisp.org>
41374
41375         * doc/glibc-functions/*.texi: New files.
41376         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
41377         to use the new files.
41378
41379 2008-01-17  Bruno Haible  <bruno@clisp.org>
41380
41381         * tests/test-gethostname.c (main): Fix printf statement.
41382
41383 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41384
41385         * modules/gethostname-tests: New file.
41386
41387         * tests/test-gethostname.c: New file.
41388
41389 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41390
41391         * lib/gethostname.c: Include string.h unconditionally, strncpy is
41392         used by the UNAME case.  Reported by Bruno Haible
41393         <bruno@clisp.org>.
41394
41395 2008-01-17  Eric Blake  <ebb9@byu.net>
41396
41397         Convert c-strcasestr to be more efficient.
41398         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
41399         (Depends-on): Add c-strcase, remove malloca, strnlen.
41400         * tests/test-c-strcasestr.c (main): Enhance test.
41401         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
41402
41403 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
41404
41405         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
41406         Use it in creating po/Makevars.
41407
41408 2008-01-15  Simon Josefsson  <simon@josefsson.org>
41409
41410         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
41411         Applications that requires it should initialize libgcrypt
41412         manually.
41413
41414 2008-01-16  Simon Josefsson  <simon@josefsson.org>
41415
41416         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
41417
41418 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
41419
41420         Fix problem with getdate on mingw32 reported by Simon Josefsson
41421         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
41422         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
41423         tzname", when deciding whether to declare tzname.
41424         * lib/strftime.c (tzname): Likewise.
41425
41426 2008-01-15  Bruno Haible  <bruno@clisp.org>
41427
41428         Work around a MacOS X 10.5 bug in frexpl().
41429         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
41430         * doc/functions/frexpl.texi: Document the bug.
41431         Reported by Elias Pipping <pipping@gentoo.org>.
41432
41433 2008-01-14  Eric Blake  <ebb9@byu.net>
41434
41435         Touch up previous patch.
41436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
41437         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
41438
41439         Convert strcasestr module to use Two-Way algorithm.
41440         * modules/strcasestr-simple: New module, based on the old
41441         strcasestr, but with Two-Way rather than KMP.
41442         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
41443         * lib/string.in.h (rpl_strcasestr): Declare.
41444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
41445         performance.
41446         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
41447         * modules/string (Makefile.am): Support strcasestr.
41448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41449         * modules/strcasestr-tests (Depends-on): Check for alarm.
41450         * tests/test-strcasestr.c: Augment test.
41451         * lib/str-two-way.h: Clean up stray macro.
41452         * NEWS: Document new module.
41453         * MODULES.html.sh (string handling): Likewise.
41454         * doc/functions/strcasestr.texi: New file.
41455         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
41456         here, since it is not a POSIX function.
41457
41458 2008-01-14  Colin Watson  <cjwatson@debian.org>
41459             Bruno Haible  <bruno@clisp.org>
41460
41461         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
41462         works fine; if not, set REPLACE_STRSIGNAL.
41463         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
41464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41465         REPLACE_STRSIGNAL.
41466         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
41467         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
41468         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
41469
41470 2008-01-14  Bruno Haible  <bruno@clisp.org>
41471
41472         * modules/strsignal (Include): Change to <string.h>.
41473
41474 2008-01-14  Colin Watson  <cjwatson@debian.org>
41475
41476         * modules/argp (Notice): Add a notice recommending to change
41477         XGETTEXT_OPTIONS.
41478         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
41479
41480 2008-01-13  Colin Watson  <cjwatson@debian.org>
41481
41482         * modules/strsignal-tests: New file.
41483         * tests/test-strsignal.c: New file.
41484
41485         * lib/strsignal.c: New file, from glibc with modifications.
41486         * lib/siglist.h: New file, from glibc with modifications.
41487         * lib/string.in.h (strsignal): New declaration.
41488         * m4/strsignal.m4: New file.
41489         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41490         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
41491         * modules/strsignal: New file.
41492         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
41493         HAVE_DECL_STRSIGNAL.
41494
41495 2008-01-13  Bruno Haible  <bruno@clisp.org>
41496
41497         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
41498         locale encoding is not ASCII. Needed for OpenBSD 4.0.
41499         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41500         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41501
41502 2008-01-13  Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
41505         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
41506         * lib/argp.h (__attribute__): Likewise.
41507         * lib/c-stack.c (__attribute__): Likewise.
41508         * lib/error.h (__attribute__): Likewise.
41509         * lib/fts.c (__attribute__): Likewise.
41510         * lib/openat.h (__attribute__): Likewise.
41511         * lib/stdio.in.h (__attribute__): Likewise.
41512         * lib/string.in.h (__attribute__): Likewise.
41513         * lib/utimens.c (__attribute__): Likewise.
41514         * lib/vasnprintf.h (__attribute__): Likewise.
41515         * lib/xalloc.h (__attribute__): Likewise.
41516         * lib/xprintf.h (__attribute__): Likewise.
41517         * lib/xstrtol.h (__attribute__): Likewise.
41518         * lib/xvasprintf.h (__attribute__): Likewise.
41519
41520 2008-01-12  Bruno Haible  <bruno@clisp.org>
41521
41522         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
41523         * doc/glibc-headers/a.out.texi: New file.
41524         * doc/glibc-headers/aliases.texi: New file.
41525         * doc/glibc-headers/alloca.texi: New file.
41526         * doc/glibc-headers/ar.texi: New file.
41527         * doc/glibc-headers/argp.texi: New file.
41528         * doc/glibc-headers/argz.texi: New file.
41529         * doc/glibc-headers/byteswap.texi: New file.
41530         * doc/glibc-headers/crypt.texi: New file.
41531         * doc/glibc-headers/endian.texi: New file.
41532         * doc/glibc-headers/envz.texi: New file.
41533         * doc/glibc-headers/err.texi: New file.
41534         * doc/glibc-headers/error.texi: New file.
41535         * doc/glibc-headers/execinfo.texi: New file.
41536         * doc/glibc-headers/fpu_control.texi: New file.
41537         * doc/glibc-headers/fstab.texi: New file.
41538         * doc/glibc-headers/fts.texi: New file.
41539         * doc/glibc-headers/getopt.texi: New file.
41540         * doc/glibc-headers/ieee754.texi: New file.
41541         * doc/glibc-headers/ifaddrs.texi: New file.
41542         * doc/glibc-headers/libintl.texi: New file.
41543         * doc/glibc-headers/mcheck.texi: New file.
41544         * doc/glibc-headers/mntent.texi: New file.
41545         * doc/glibc-headers/obstack.texi: New file.
41546         * doc/glibc-headers/paths.texi: New file.
41547         * doc/glibc-headers/printf.texi: New file.
41548         * doc/glibc-headers/pty.texi: New file.
41549         * doc/glibc-headers/resolv.texi: New file.
41550         * doc/glibc-headers/shadow.texi: New file.
41551         * doc/glibc-headers/sysexits.texi: New file.
41552         * doc/glibc-headers/ttyent.texi: New file.
41553
41554 2008-01-12  Jim Meyering  <meyering@redhat.com>
41555
41556         announce-gen: emit Gnulib's git-based version string.
41557         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41558         New option --gnulib-version=V, where V is expected to be
41559         the output of running git describe in the gnulib directory.
41560         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41561         not useful, and plan to stop publishing an xdelta file with each
41562         coreutils release.
41563
41564         * build-aux/announce-gen: Also check for lzma-compressed files.
41565
41566 2008-01-11  Bruno Haible  <bruno@clisp.org>
41567
41568         * tests/test-memmem.c (main): Increase maximum allowed time.
41569         * tests/test-strstr.c (main): Likewise.
41570
41571 2008-01-11  Bruno Haible  <bruno@clisp.org>
41572
41573         * doc/functions/memmem.texi: Add more precisions about platforms.
41574         * doc/functions/strstr.texi: Likewise.
41575
41576 2008-01-10  Eric Blake  <ebb9@byu.net>
41577
41578         * m4/strstr.m4: Delete cruft from copy-n-paste.
41579         Reported by Bruno Haible.
41580
41581 2008-01-10  Bruno Haible  <bruno@clisp.org>
41582
41583         Make c-strstr rely on strstr.
41584         * lib/c-strstr.c: Don't include str-kmp.h.
41585         (c_strstr): Define in terms of strstr.
41586         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41587         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41588
41589 2008-01-10  Bruno Haible  <bruno@clisp.org>
41590
41591         * doc/gnulib.texi (String Functions in C Locale): New section.
41592         * doc/c-ctype.texi: New file.
41593         * doc/c-strcase.texi: New file.
41594         * doc/c-strcaseeq.texi: New file.
41595         * doc/c-strcasestr.texi: New file.
41596         * doc/c-strstr.texi: New file.
41597         * doc/c-strtod.texi: New file.
41598         * doc/c-strtold.texi: New file.
41599
41600 2008-01-10  Eric Blake  <ebb9@byu.net>
41601
41602         * lib/relocatable.h: Fix a comment.
41603
41604 2008-01-10  Eric Blake  <ebb9@byu.net>
41605
41606         Share two-way algorithm.
41607         * lib/str-two-way.h: New file, merged from...
41608         * lib/memmem.c: ...here...
41609         * lib/strstr.c: ...and here.
41610         * modules/memmem (Files): Use it.
41611         * modules/strstr (Files): Likewise.
41612
41613         Avoid quadratic strstr implementations.
41614         * lib/strstr.c: New file.
41615         * m4/strstr.m4: Likewise.
41616         * modules/strstr: Likewise.
41617         * modules/strstr-tests: Likewise.
41618         * tests/test-strstr.c: Likewise.
41619         * lib/string.in.h (rpl_strstr): Declare.
41620         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41622         * modules/string (Makefile.am): Likewise.
41623         * MODULES.html.sh (string handling): Mention new module.
41624         * doc/functions/strstr.texi (strstr): Document the bug.
41625
41626 2008-01-10  Bruno Haible  <bruno@clisp.org>
41627
41628         * lib/relocatable.h (relocate): State whether result is freshly
41629         allocated or not.
41630         * lib/relocatable.c (relocate): Return a freshly allocated string
41631         instead of a pointer to a privately held string.
41632         Reported by Sylvain Beucler <beuc@gnu.org>.
41633
41634 2008-01-10  Colin Watson  <cjwatson@debian.org>
41635
41636         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41637         s/S_ISNLK/S_ISLNK/.
41638
41639 2008-01-09  Bruno Haible  <bruno@clisp.org>
41640
41641         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41642         and other files.
41643         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41644         if it's only a guess.
41645         * modules/memmem: Simplify by depending on memmem-simple.
41646
41647 2008-01-09  Bruno Haible  <bruno@clisp.org>
41648
41649         Work around OpenBSD 4.0 tdelete() bug.
41650         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41651         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41652         macros and don't redefine the enum values.
41653         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41654         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41655         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41656
41657 2008-01-09  Bruno Haible  <bruno@clisp.org>
41658
41659         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41660         (main): Don't perform the tests if setlocale did not install a UTF-8
41661         locale. Needed on OpenBSD 4.0.
41662         * modules/wcwidth-tests (Depends-on): Add localcharset.
41663
41664 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41665
41666         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41667         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41668         * NEWS: announce this.
41669         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41670
41671 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41672         and Eric Blake  <ebb9@byu.net>
41673
41674         Add memmem-simple module.
41675         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41676         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41677         * modules/memmem-simple: New file.
41678         * modules/memmem (Description): Tweak.
41679         * MODULES.html.sh (string handling): Mention new module.
41680         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41681         addressed by memmem-simple.
41682         * NEWS: Document the difference.
41683
41684 2008-01-09  Eric Blake  <ebb9@byu.net>
41685
41686         Give gcc some memmem optimization hints.
41687         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41688         (strcasestr): Declare as pure.
41689         * modules/memmem (Maintainer): Claim my implementation.
41690
41691 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41692
41693         Support AIX 6.1 and higher.
41694         * build-aux/config.libpath: Likewise.
41695         * build-aux/config.rpath: Likewise.
41696
41697 2008-01-08  Jim Meyering  <meyering@redhat.com>
41698             Bruno Haible  <bruno@clisp.org>
41699
41700         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41701         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41702         Reported by Peter Fales in
41703         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41704
41705 2008-01-08  Bruno Haible  <bruno@clisp.org>
41706
41707         * modules/unictype/category-of (Depends-on): Add
41708         unictype/category-none.
41709         * modules/unictype/category-and-tests (Depends-on): Add
41710         unictype/category-{L,N,Lu,Nd}.
41711         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41712         * modules/unictype/category-or-tests (Depends-on): Add
41713         unictype/category-{L,N}.
41714         * modules/unictype/category-name-tests (Depends-on): Add
41715         unictype/category-{Z,Nl}.
41716         Reported by Simon Josefsson.
41717
41718 2008-01-08  Bruno Haible  <bruno@clisp.org>
41719
41720         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41721         convention better.
41722         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41723         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41724         Reported by Peter Miller <millerp@canb.auug.org.au>.
41725
41726 2008-01-08  Eric Blake  <ebb9@byu.net>
41727
41728         Rewrite memmem to guarantee linear complexity without malloc.
41729         * lib/memmem.c (memmem): Use Two-Way rather than
41730         Knuth-Morris-Pratt, to allow O(1) space usage.
41731         (critical_factorization, two_way_short_needle)
41732         (two_way_long_needle): New functions.
41733         (knuth_morris_pratt): Delete.
41734         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41735         Add stdint.
41736         * tests/test-memmem.c (main): Add tests for periodic needle and
41737         sublinear performance.
41738         * doc/functions/memmem.texi (memmem): Document other deficiencies
41739         in cygwin and older glibc.
41740
41741 2008-01-08  Bruno Haible  <bruno@clisp.org>
41742
41743         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41744         augmentation.
41745
41746 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41747
41748         Add a configure time option: --disable-acl.
41749         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41750         AC_ARG_ENABLE(acl).
41751
41752 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41753
41754         * tests/test-localename.c: Don't include obsolete "setenv.h".
41755
41756         * modules/localename-tests (Depends-on): Need unsetenv.
41757
41758 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41759
41760         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41761
41762 2008-01-06  Colin Watson  <cjwatson@debian.org>
41763
41764         * users.txt: Add man-db.
41765
41766 2008-01-07  Bruno Haible  <bruno@clisp.org>
41767
41768         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41769         previous section name.
41770
41771 2008-01-07  Bruno Haible  <bruno@clisp.org>
41772
41773         * lib/progname.c (set_program_name): Don't strip off a leading
41774         "lt-" prefix outside a .libs directory.
41775         Suggested by Paul Eggert.
41776
41777 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41778             Bruno Haible  <bruno@clisp.org>
41779
41780         Improve memory cleanup in 'relocatable' module.
41781         * lib/relocatable.h (compute_curr_prefix): Change return type to
41782         'char *'.
41783         * lib/relocatable.c (compute_curr_prefix): Change return type to
41784         'char *'. Free curr_installdir after use.
41785         (relocate): Free curr_prefix_better after use.
41786         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41787
41788 2008-01-01  Bruno Haible  <bruno@clisp.org>
41789
41790         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41791         failure on older glibc systems.
41792         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41793
41794 2008-01-05  Eric Blake  <ebb9@byu.net>
41795
41796         Avoid quadratic system memmem.
41797         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41798         Reported by Ralf Wildenhues.
41799
41800         Fix memmem test for mingw.
41801         * modules/memmem-tests (configure.ac): Check for alarm.
41802         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41803         it.
41804         * doc/functions/memmem.texi: New file.
41805         * doc/gnulib.texi (Function Substitutes): Add memmem.
41806         Reported by Bruno Haible.
41807
41808 2008-01-04  Bruno Haible  <bruno@clisp.org>
41809
41810         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41811         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41812         gl_HEADER_STRING_H_DEFAULTS.
41813
41814 2008-01-04  Eric Blake  <ebb9@byu.net>
41815
41816         Shorten duration of memmem test.
41817         * tests/test-memmem.c (main): Use alarm to declare failure if test
41818         is taking too long.
41819         Reported by Ralf Wildenhues.
41820
41821 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41822
41823         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41824         string, needed by strerror.
41825
41826 2008-01-03  Colin Watson  <cjwatson@debian.org>
41827             Bruno Haible  <bruno@clisp.org>
41828
41829         * doc/gnulib-tool.texi (Localization): New section.
41830
41831 2008-01-02  Bruno Haible  <bruno@clisp.org>
41832
41833         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41834         variables to 'unsigned char *' type.
41835         Reported by Paul Eggert.
41836
41837 2008-01-02  Jim Meyering  <jim@meyering.net>
41838
41839         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41840
41841 2007-12-31  Jim Meyering  <jim@meyering.net>
41842
41843         Avoid use of private FTS type name.
41844         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41845
41846 2007-12-30  Karl Berry  <karl@gnu.org>
41847
41848         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41849         work around defect in Texinfo and/or the standalone Info browser.
41850
41851 2007-12-30  Bruno Haible  <bruno@clisp.org>
41852
41853         Unify 5 copies of the KMP code.
41854         * lib/str-kmp.h: New file.
41855         * lib/c-strcasestr.c: Include str-kmp.h.
41856         (knuth_morris_pratt): Remove function.
41857         (c_strcasestr): Update.
41858         * lib/c-strstr.c: Include str-kmp.h.
41859         (knuth_morris_pratt): Remove function.
41860         (c_strcasestr): Update.
41861         * lib/mbscasestr.c: Include str-kmp.h.
41862         (knuth_morris_pratt_unibyte): Remove function.
41863         * lib/mbsstr.c: Include str-kmp.h.
41864         (knuth_morris_pratt_unibyte): Remove function.
41865         * lib/strcasestr.c: Include str-kmp.h.
41866         (knuth_morris_pratt): Remove function.
41867         (strcasestr): Update.
41868         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41869         * modules/c-strstr (Files): Likewise.
41870         * modules/mbscasestr (Files): Likewise.
41871         * modules/mbsstr (Files): Likewise.
41872         * modules/strcasestr (Files): Likewise.
41873         Suggested by Paul Eggert.
41874
41875 2007-12-30  Bruno Haible  <bruno@clisp.org>
41876
41877         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41878         defined.
41879
41880 2007-12-30  Bruno Haible  <bruno@clisp.org>
41881
41882         * lib/xmalloca.h: Include xalloc.h.
41883         (xnmalloca): New macro.
41884
41885 2007-12-30  Bruno Haible  <bruno@clisp.org>
41886
41887         * lib/malloca.h (nmalloca): New macro.
41888         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41889         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41890         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41891         knuth_morris_pratt_multibyte): Likewise.
41892         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41893         knuth_morris_pratt_multibyte): Likewise.
41894         * lib/memmem.c (knuth_morris_pratt): Likewise.
41895         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41896
41897 2007-12-25  Bruno Haible  <bruno@clisp.org>
41898
41899         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41900         * lib/glob.c: Don't include openat.h.
41901         (link_exists2_p): Add back the code that deals with the
41902         !GLOB_ALTDIRFUNC case.
41903         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41904         let it do the filename concatenation.
41905         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41906         * modules/glob (Depends-on): Remove openat.
41907
41908 2007-12-31  Bruno Haible  <bruno@clisp.org>
41909
41910         * modules/dirfd (License): Change to LGPLv2+.
41911         Approved by Jim Meyering.
41912
41913 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41914
41915         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41916         when multiplying M by sizeof (size_t).
41917
41918 2007-12-10  Martin Lambers  <marlam@marlam.de>
41919
41920         Override getpagesize on mingw.
41921         * lib/getpagesize.c: New file.
41922         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41923         * modules/getpagesize (Files): Add lib/getpagesize.c.
41924         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41926         REPLACE_GETPAGESIZE.
41927         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41928
41929 2007-12-25  Bruno Haible  <bruno@clisp.org>
41930
41931         * modules/localcharset (Notice): New field.
41932         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41933         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41934
41935 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41936             Bruno Haible  <bruno@clisp.org>
41937
41938         Avoid using the syntax symbol() in formatted documentation.
41939         * MODULES.html.sh (func_module): When replacing symbol() with a
41940         hyperlink, remove the parentheses. Show an error if some remain.
41941         Recognize and render the '...' syntax.
41942         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41943         Rework. Add paragraph about GCC's inlining.
41944         * doc/alloca.texi: Likewise.
41945         * doc/error.texi: Remove parentheses from symbol reference.
41946         * doc/gnulib-intro.texi: Likewise.
41947         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41948         * modules/fnmatch (Description): Reword to say "the ... function".
41949         * modules/full-read (Description): Likewise.
41950         * modules/full-write (Description): Likewise.
41951         * modules/safe-read (Description): Likewise.
41952         * modules/safe-write (Description): Likewise.
41953         * modules/strchrnul (Description): Likewise.
41954         * modules/trim (Description): Likewise.
41955         * modules/error (Description): Remove parentheses from symbol
41956         references.
41957         * modules/verror (Description): Likewise.
41958         Reported by Karl Berry.
41959
41960 2007-12-25  Bruno Haible  <bruno@clisp.org>
41961
41962         Fixup after 2007-10-16 commit.
41963         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41964
41965 2007-12-24  Bruno Haible  <bruno@clisp.org>
41966
41967         Make --enable-relocatable work with DESTDIR.
41968         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41969         to compute installdir from destprog.
41970         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41971         also set the RELOC_DESTDIR variable.
41972         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41973
41974 2007-12-24  Bruno Haible  <bruno@clisp.org>
41975
41976         Fix link error due to xalloc_die().
41977         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41978         of xreadlink.
41979         * lib/relocwrapper.c: Update comments.
41980         * build-aux/install-reloc: Remove xreadlink.c from file list.
41981         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41982         xreadlink.c.
41983         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41984
41985 2007-12-24  Bruno Haible  <bruno@clisp.org>
41986
41987         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41988         * lib/setenv.h: Remove file.
41989         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41990         lib/setenv.h.
41991         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41992         (Depends-on): Add stdlib.
41993         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41994         gl_FUNC_UNSETENV.
41995         (Include): Replace setenv.h with <stdlib.h>.
41996         * modules/unsetenv: New file.
41997         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41998         * lib/unsetenv.c: Include <stdlib.h> first.
41999         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42000         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42001         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42002         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42003         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42004         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42006         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42007         * doc/functions/unsetenv.texi: Update.
42008         * modules/xsetenv (Depends-on): Add unsetenv.
42009         * modules/getdate (Depends-on): Likewise.
42010         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42011         * lib/xsetenv.c: Don't include setenv.h.
42012         * lib/getdate.y: Likewise.
42013         * lib/relocwrapper.c: Likewise.
42014         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42015         (Depends-on): Add stdlib.
42016         * NEWS: Mention the changes.
42017         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42018
42019 2007-12-23  Bruno Haible  <bruno@clisp.org>
42020
42021         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42022         indentation.
42023
42024 2007-12-23  Bruno Haible  <bruno@clisp.org>
42025
42026         * lib/c-strcasestr.c: Add more comments.
42027         * lib/c-strstr.c: Likewise.
42028         * lib/mbscasestr.c: Likewise.
42029         * lib/mbsstr.c: Likewise.
42030         * lib/strcasestr.c: Likewise.
42031         * lib/memmem.c: Likewise.
42032
42033 2007-12-23  Bruno Haible  <bruno@clisp.org>
42034
42035         * tests/test-memmem.c: Include <string.h> first.
42036
42037 2007-12-22  Bruno Haible  <bruno@clisp.org>
42038
42039         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42040         the contents of $testsbase.
42041         Reported by Ralf Wildenhues.
42042
42043 2007-12-22  Bruno Haible  <bruno@clisp.org>
42044
42045         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42046         two variables local_ldadd_before, local_ldadd_last.
42047
42048 2007-12-20  Eric Blake  <ebb9@byu.net>
42049
42050         Work around circular library issue when cross-compiling.
42051         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42052         that progname.o does not need to pull in rpl_memcmp.
42053
42054 2007-12-19  Eric Blake  <ebb9@byu.net>
42055
42056         Fix memmem to avoid O(n^2) worst-case complexity.
42057         * lib/memmem.c (knuth_morris_pratt): New function.
42058         (memmem): Use it if first few naive iterations fail.
42059         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42060         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42061         * modules/memchr (License): Likewise.
42062         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42063         malloca.
42064         * tests/test-memmem.c: Rewrite, borrowing ideas from
42065         test-mbsstr1.c; the old version wouldn't even compile!
42066         * modules/memmem-tests: New file.
42067         * lib/string.in.h (rpl_memmem): Add declaration.
42068         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42070         REPLACE_MEMMEM.
42071
42072 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42073
42074         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42075         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42076         before any system include files, and undef after them all.  This
42077         should fix a problem on VMS reported by John E. Malmberg in
42078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42079
42080 2007-12-17  Eric Blake  <ebb9@byu.net>
42081
42082         Revert addition of verify, for BSD/OS.
42083         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42084         can't handle large files, for the sake of obsolete platforms.
42085         * modules/fseeko (Depends-on): Remove verify.
42086         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42087         * doc/functions/ftello.texi (ftello): Likewise.
42088         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42089         Reported by Larry Jones.
42090
42091 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42092
42093         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42094         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42095
42096 2007-12-17  Jim Meyering  <meyering@redhat.com>
42097
42098         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42099         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42100         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42101         * modules/getcwd (Depends-on): Add openat.
42102         Reported by Petr Salinger.
42103
42104 2007-12-17  Bruno Haible  <bruno@clisp.org>
42105
42106         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42107         avoid a segmentation fault of the configure test on x86_64 systems.
42108
42109 2007-12-15  Jim Meyering  <meyering@redhat.com>
42110
42111         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42112
42113 2007-12-13  Eric Blake  <ebb9@byu.net>
42114
42115         Another fseek test.
42116         * tests/test-fseek.c (main): Also test ungetc handling.
42117         * tests/test-fseeko.c (main): Likewise.
42118         * modules/fseeko (Depends-on): Add verify.
42119         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42120         large.
42121         Reported by Larry Jones.
42122
42123         Fix fseeko on mingw.
42124         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42125         seek.
42126
42127         Beef up fseek tests.
42128         * tests/test-fseek.c (main): Also test eof handling.
42129         * tests/test-fseeko.c (main): Likewise.
42130         Reported by Larry Jones.
42131
42132 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42133
42134         Fix fseeko on BSD-based platforms.
42135         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42136         successful seek.
42137
42138 2007-12-12  Eric Blake  <ebb9@byu.net>
42139
42140         Allow circular dependency of separate libtests.a
42141         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42142         when use_libtests.
42143
42144 2007-12-11  Eric Blake  <ebb9@byu.net>
42145
42146         Fix bug with -0.0L in previous patch.
42147         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42148         * tests/test-isnan.c (main): Also test on zeroes.
42149         * tests/test-isnanf.c (main): Likewise.
42150         * tests/test-isnanl.h (main): Likewise.
42151
42152         Detect pseudo-denormals on x86 even when cross-compiling.
42153         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42154         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42155         invalid bit patterns that happen to satisfy ==.
42156
42157         Avoid link failures with separate libtests.a.
42158         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42159         last, to satisfy circular dependencies.
42160
42161 2007-12-11  Eric Blake  <ebb9@byu.net>
42162         and Bruno Haible  <bruno@clisp.org>
42163
42164         Fix OpenBSD 4.0 <float.h> handling of long double.
42165         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42166         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42167         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42168
42169 2007-12-11  Jim Meyering  <meyering@redhat.com>
42170
42171         * users.txt: Add libvirt.
42172
42173         Support versions of autoconf prior to 2.59c.
42174         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42175         if it is not already defined.
42176
42177 2007-12-09  Bruno Haible  <bruno@clisp.org>
42178
42179         Let 'gnulib-tool --import' collect sources needed for the tests in
42180         tests/ rather than in lib/.
42181         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42182         argument. If true, add rules to generate libtests.a, and put libtests.a
42183         into $(LDADD). Consider source files in subdirectories and set
42184         uses_subdirs.
42185         (func_emit_initmacro_start, func_emit_initmacro_end,
42186         func_emit_initmacro_done): Pass all arguments explicitly.
42187         (func_import): Determine two module lists main_modules,
42188         testsrelated_modules. Determine use_libtests. Determine two variables
42189         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42190         instead of just sed_transform_lib_file. Determine two variables
42191         main_files and testsrelated_files. Compute 'files' as the union of
42192         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42193         func_add_or_update. In the generated gnulib-comp.m4, collect the
42194         object files for tests/ in different variables than those for lib/.
42195         Substitute LIBTESTS_LIBDEPS.
42196         (func_create_testdir): Combine the uses_subdirs results from
42197         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42198
42199 2007-12-09  Bruno Haible  <bruno@clisp.org>
42200
42201         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42202         the build-aux directory.
42203
42204 2007-12-09  Bruno Haible  <bruno@clisp.org>
42205
42206         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42207         introduced on 2006-09-09.
42208
42209 2007-12-07  Jim Meyering  <meyering@redhat.com>
42210
42211         Let these macros work also with autoconf-2.59.
42212         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42213         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42214         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42215
42216 2007-12-06  Jim Meyering  <meyering@redhat.com>
42217
42218         Avoid a configure-time syntax error in gl_FUNC_ACL.
42219         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42220         function in each branch, before testing the cache variable.
42221
42222 2007-12-04  Eric Blake  <ebb9@byu.net>
42223
42224         Make scripts executable.
42225         * build-aux/config.guess: Add execute permissions.
42226         * build-aux/config.sub: Likewise.
42227         * build-aux/gendocs.sh: Likewise.
42228
42229         Fix frexp on mingw.
42230         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42231         cross-compiling.
42232         * doc/functions/frexp.texi (frexp): Document the bug.
42233
42234         Make cygwin fseeko check more reliable.
42235         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42236         version numbers, rather than unrelated feature check.
42237         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42238         * doc/functions/ftello.texi (ftello): Likewise.
42239         Reported by Bruno Haible.
42240
42241         * m4/strerror.m4: Bump version number.
42242
42243 2007-12-03  Bruno Haible  <bruno@clisp.org>
42244
42245         * doc/functions/mprotect.texi: Mention the mingw problem.
42246
42247 2007-12-03  Eric Blake  <ebb9@byu.net>
42248
42249         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42250         REPLACE_STRERROR is initialized before this macro.
42251
42252 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42253
42254         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42255         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42256         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42257         put -lsec in even for programs other than 'ls'.  This fixes a problem
42258         for gettext reported by Bruno Haible in
42259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42260         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42261         Add support for Solaris 10.  This isn't efficient, but should get the
42262         job done for now.
42263
42264 2007-12-03  James Youngman  <jay@gnu.org>
42265
42266         * doc/regexprops-generic.texi: change "an close-group" to "a
42267         close-group" and "illegal" to "not allowed".
42268
42269 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42270
42271         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42272         pr_byname.h. Needed for the rare case when the maintainer has done
42273         "make maintainer-clean" in the source directory and then attempts a
42274         build outside the source directory.
42275         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42276         scripts_byname.h.
42277
42278 2007-12-02  Martin Lambers <marlam@marlam.de>
42279             Bruno Haible  <bruno@clisp.org>
42280
42281         * lib/getpagesize.h: Remove file.
42282         * lib/unistd.in.h: Include declaration of getpagesize here.
42283         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42284         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42285         HAVE_SYS_PARAM_H.
42286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42287         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42288         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42289         (Depends-on): Add unistd.
42290         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42291         (Include): Use <unistd.h> instead of getpagesize.h.
42292         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42293         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42294         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42295         gl_GETPAGESIZE invocation, already handled by module dependency.
42296         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42297
42298 2007-12-02  Bruno Haible  <bruno@clisp.org>
42299
42300         * modules/strings-tests: New file.
42301         * tests/test-strings.c: New file.
42302
42303         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42304         * lib/strings.in.h: New file.
42305         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42306         * m4/strings_h.m4: New file.
42307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42308         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42309         * modules/strings: New file.
42310         * modules/string (Makefile.am): Update.
42311         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42312         Reported by Karl Berry.
42313
42314 2007-12-01  Eric Blake  <ebb9@byu.net>
42315
42316         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42317         accomodate fix in cygwin 1.5.25.
42318
42319 2007-12-01  Jim Meyering  <meyering@redhat.com>
42320
42321         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42322         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42323         that would inhibit utf8-optimization of a regexp containing line-
42324         or buffer-anchors, e.g., `^', `$'.
42325
42326 2007-11-30  Bruno Haible  <bruno@clisp.org>
42327
42328         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42329         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42330         glthread_recursive_lock_init.
42331         * lib/lock.c (glthread_recursive_lock_init)
42332         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42333         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42334
42335 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42336
42337         New function qset_acl, like set_acl but with syscall semantics.
42338         * lib/acl.h (qset_acl): New decl.
42339         * lib/acl.c (qset_acl): New function.
42340         (set_acl): Use new function.  Use more-consistent diagnostics.
42341
42342 2007-11-28  Jim Meyering  <meyering@redhat.com>
42343
42344         * modules/physmem (License): Change from GPL to LGPLv2+.
42345
42346 2007-11-26  Bruno Haible  <bruno@clisp.org>
42347
42348         * lib/vasnprintf.c (decode_long_double): Don't abort if the
42349         'long double' type has excess precision.
42350         Reported by Jim Meyering in
42351         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
42352
42353 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42354
42355         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
42356         Sync from <http://gnu.org/licenses>.
42357         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
42358         with license text from same location.
42359         * doc/maintain.texi, doc/standards.texi:  Sync from
42360         <http://savannah.gnu.org/projects/gnustandards>.
42361
42362 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
42363         and Jim Meyering  <meyering@redhat.com>
42364
42365         Adjust getdate' grammar to accept a slightly more regular language.
42366         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
42367         Before, the former was rejected.
42368         * lib/getdate.y (digits_to_date_time): New function, factored
42369         out of ...
42370         (number): ...here.  Just call digits_to_date_time.
42371         (hybrid): New non-terminal to handle an <unsigned number,
42372         signed relative offset> sequence consistently.
42373
42374 2007-11-18  Jim Meyering  <meyering@redhat.com>
42375
42376         Pull my changes from coreutils:
42377         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
42378         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
42379         use of $gnulib_tool_option_extras, so that it's separated from the
42380         preceding argument.
42381
42382         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
42383         * build-aux/bootstrap (cp_mark_as_generated): Create any required
42384         parent destination directories before copying a file into place.
42385
42386 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42387
42388         bootstrap: work also with 4-argument variant of AC_INIT
42389         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
42390
42391 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42392
42393         Port test-getaddrinfo to Solaris.
42394         Problem reported by Bruno Haible in
42395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
42396         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
42397         explanation of setting 'hints'.
42398         Don't reject an implementation merely because it returns EAI_SERVICE.
42399         (EAI_SERVICE): Define to 0 if not defined.
42400
42401 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42402
42403         The license of gnu-make and posix-shell is now "GPLed build tool".
42404         * modules/gnu-make (License): Likewise.
42405         * modules/posix-shell (License): Likewise.
42406
42407         New module posix-shell, for determining a POSIX shell
42408         or perhaps something that is close enough to a POSIX shell.
42409         * m4/posix-shell.m4: New file.
42410         * modules/posix-shell: New file.
42411
42412         * MODULES.html.sh: Mention new module.
42413
42414         New module gnu-make, for determining whether we're using GNU Make.
42415         * m4/gnu-make.m4: New file.
42416         * modules/gnu-make: New file.
42417         * MODULES.html.sh: Mention new module.
42418
42419 2007-11-14  Jim Meyering  <meyering@redhat.com>
42420
42421         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
42422         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
42423         use this macro to create a function _definition_.
42424         Remove useless "#undef ARGMATCH_DIE".
42425
42426 2007-11-14  Bruno Haible  <bruno@clisp.org>
42427
42428         * lib/config.charset: Update for OpenBSD 4.1.
42429         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
42430
42431 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
42432
42433         Document 64-bit #if problems in stdint.texi.
42434         * doc/headers/stdint.texi (stdint.h): Mention problems with
42435         64-bit-#if, and how to work around them.
42436
42437         Don't insist on 'long long int' support in the preprocessor.  It
42438         breaks too many things.  For example, PRIdMAX still uses a 'long
42439         long int' format with the latest Sun compiler, even though
42440         HAVE_LONG_LONG_INT isn't defined due to that compiler's
42441         preprocessor problem.  This causes the latest coreutils to dump
42442         core on Solaris 10 sparc with the Sun C compiler.
42443         Instead, fix the 2007-10-16 problem in a different way, by evaluating
42444         the troublesome expressions at configure-time, not at #if-time.
42445         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
42446         preprocessor.
42447         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
42448         compile-time C checks, done at 'configure'-time.
42449         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
42450         * modules/inttypes (Makefile): Substitute the new symbols that
42451         gl_INTTYPES_H now generates.
42452         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
42453
42454 2007-11-12  Bruno Haible  <bruno@clisp.org>
42455
42456         Tests for Unicode character classification functions.
42457
42458         * modules/unictype/bidicategory-byname-tests: New file.
42459         * modules/unictype/bidicategory-name-tests: New file.
42460         * modules/unictype/bidicategory-of-tests: New file.
42461         * modules/unictype/bidicategory-test-tests: New file.
42462         * modules/unictype/block-list-tests: New file.
42463         * modules/unictype/block-of-tests: New file.
42464         * modules/unictype/block-test-tests: New file.
42465         * modules/unictype/category-C-tests: New file.
42466         * modules/unictype/category-Cc-tests: New file.
42467         * modules/unictype/category-Cf-tests: New file.
42468         * modules/unictype/category-Cn-tests: New file.
42469         * modules/unictype/category-Co-tests: New file.
42470         * modules/unictype/category-Cs-tests: New file.
42471         * modules/unictype/category-L-tests: New file.
42472         * modules/unictype/category-Ll-tests: New file.
42473         * modules/unictype/category-Lm-tests: New file.
42474         * modules/unictype/category-Lo-tests: New file.
42475         * modules/unictype/category-Lt-tests: New file.
42476         * modules/unictype/category-Lu-tests: New file.
42477         * modules/unictype/category-M-tests: New file.
42478         * modules/unictype/category-Mc-tests: New file.
42479         * modules/unictype/category-Me-tests: New file.
42480         * modules/unictype/category-Mn-tests: New file.
42481         * modules/unictype/category-N-tests: New file.
42482         * modules/unictype/category-Nd-tests: New file.
42483         * modules/unictype/category-Nl-tests: New file.
42484         * modules/unictype/category-No-tests: New file.
42485         * modules/unictype/category-P-tests: New file.
42486         * modules/unictype/category-Pc-tests: New file.
42487         * modules/unictype/category-Pd-tests: New file.
42488         * modules/unictype/category-Pe-tests: New file.
42489         * modules/unictype/category-Pf-tests: New file.
42490         * modules/unictype/category-Pi-tests: New file.
42491         * modules/unictype/category-Po-tests: New file.
42492         * modules/unictype/category-Ps-tests: New file.
42493         * modules/unictype/category-S-tests: New file.
42494         * modules/unictype/category-Sc-tests: New file.
42495         * modules/unictype/category-Sk-tests: New file.
42496         * modules/unictype/category-Sm-tests: New file.
42497         * modules/unictype/category-So-tests: New file.
42498         * modules/unictype/category-Z-tests: New file.
42499         * modules/unictype/category-Zl-tests: New file.
42500         * modules/unictype/category-Zp-tests: New file.
42501         * modules/unictype/category-Zs-tests: New file.
42502         * modules/unictype/category-and-not-tests: New file.
42503         * modules/unictype/category-and-tests: New file.
42504         * modules/unictype/category-byname-tests: New file.
42505         * modules/unictype/category-name-tests: New file.
42506         * modules/unictype/category-none-tests: New file.
42507         * modules/unictype/category-of-tests: New file.
42508         * modules/unictype/category-or-tests: New file.
42509         * modules/unictype/category-test-withtable-tests: New file.
42510         * modules/unictype/combining-class-tests: New file.
42511         * modules/unictype/ctype-alnum-tests: New file.
42512         * modules/unictype/ctype-alpha-tests: New file.
42513         * modules/unictype/ctype-blank-tests: New file.
42514         * modules/unictype/ctype-cntrl-tests: New file.
42515         * modules/unictype/ctype-digit-tests: New file.
42516         * modules/unictype/ctype-graph-tests: New file.
42517         * modules/unictype/ctype-lower-tests: New file.
42518         * modules/unictype/ctype-print-tests: New file.
42519         * modules/unictype/ctype-punct-tests: New file.
42520         * modules/unictype/ctype-space-tests: New file.
42521         * modules/unictype/ctype-upper-tests: New file.
42522         * modules/unictype/ctype-xdigit-tests: New file.
42523         * modules/unictype/decimal-digit-tests: New file.
42524         * modules/unictype/digit-tests: New file.
42525         * modules/unictype/mirror-tests: New file.
42526         * modules/unictype/numeric-tests: New file.
42527         * modules/unictype/property-alphabetic-tests: New file.
42528         * modules/unictype/property-ascii-hex-digit-tests: New file.
42529         * modules/unictype/property-bidi-arabic-digit-tests: New file.
42530         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
42531         * modules/unictype/property-bidi-block-separator-tests: New file.
42532         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
42533         * modules/unictype/property-bidi-common-separator-tests: New file.
42534         * modules/unictype/property-bidi-control-tests: New file.
42535         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
42536         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
42537         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
42538         * modules/unictype/property-bidi-european-digit-tests: New file.
42539         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
42540         * modules/unictype/property-bidi-left-to-right-tests: New file.
42541         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
42542         * modules/unictype/property-bidi-other-neutral-tests: New file.
42543         * modules/unictype/property-bidi-pdf-tests: New file.
42544         * modules/unictype/property-bidi-segment-separator-tests: New file.
42545         * modules/unictype/property-bidi-whitespace-tests: New file.
42546         * modules/unictype/property-byname-tests: New file.
42547         * modules/unictype/property-combining-tests: New file.
42548         * modules/unictype/property-composite-tests: New file.
42549         * modules/unictype/property-currency-symbol-tests: New file.
42550         * modules/unictype/property-dash-tests: New file.
42551         * modules/unictype/property-decimal-digit-tests: New file.
42552         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42553         * modules/unictype/property-deprecated-tests: New file.
42554         * modules/unictype/property-diacritic-tests: New file.
42555         * modules/unictype/property-extender-tests: New file.
42556         * modules/unictype/property-format-control-tests: New file.
42557         * modules/unictype/property-grapheme-base-tests: New file.
42558         * modules/unictype/property-grapheme-extend-tests: New file.
42559         * modules/unictype/property-grapheme-link-tests: New file.
42560         * modules/unictype/property-hex-digit-tests: New file.
42561         * modules/unictype/property-hyphen-tests: New file.
42562         * modules/unictype/property-id-continue-tests: New file.
42563         * modules/unictype/property-id-start-tests: New file.
42564         * modules/unictype/property-ideographic-tests: New file.
42565         * modules/unictype/property-ids-binary-operator-tests: New file.
42566         * modules/unictype/property-ids-trinary-operator-tests: New file.
42567         * modules/unictype/property-ignorable-control-tests: New file.
42568         * modules/unictype/property-iso-control-tests: New file.
42569         * modules/unictype/property-join-control-tests: New file.
42570         * modules/unictype/property-left-of-pair-tests: New file.
42571         * modules/unictype/property-line-separator-tests: New file.
42572         * modules/unictype/property-logical-order-exception-tests: New file.
42573         * modules/unictype/property-lowercase-tests: New file.
42574         * modules/unictype/property-math-tests: New file.
42575         * modules/unictype/property-non-break-tests: New file.
42576         * modules/unictype/property-not-a-character-tests: New file.
42577         * modules/unictype/property-numeric-tests: New file.
42578         * modules/unictype/property-other-alphabetic-tests: New file.
42579         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42580         * modules/unictype/property-other-grapheme-extend-tests: New file.
42581         * modules/unictype/property-other-id-continue-tests: New file.
42582         * modules/unictype/property-other-id-start-tests: New file.
42583         * modules/unictype/property-other-lowercase-tests: New file.
42584         * modules/unictype/property-other-math-tests: New file.
42585         * modules/unictype/property-other-uppercase-tests: New file.
42586         * modules/unictype/property-paired-punctuation-tests: New file.
42587         * modules/unictype/property-paragraph-separator-tests: New file.
42588         * modules/unictype/property-pattern-syntax-tests: New file.
42589         * modules/unictype/property-pattern-white-space-tests: New file.
42590         * modules/unictype/property-private-use-tests: New file.
42591         * modules/unictype/property-punctuation-tests: New file.
42592         * modules/unictype/property-quotation-mark-tests: New file.
42593         * modules/unictype/property-radical-tests: New file.
42594         * modules/unictype/property-sentence-terminal-tests: New file.
42595         * modules/unictype/property-soft-dotted-tests: New file.
42596         * modules/unictype/property-space-tests: New file.
42597         * modules/unictype/property-terminal-punctuation-tests: New file.
42598         * modules/unictype/property-test-tests: New file.
42599         * modules/unictype/property-titlecase-tests: New file.
42600         * modules/unictype/property-unassigned-code-value-tests: New file.
42601         * modules/unictype/property-unified-ideograph-tests: New file.
42602         * modules/unictype/property-uppercase-tests: New file.
42603         * modules/unictype/property-variation-selector-tests: New file.
42604         * modules/unictype/property-white-space-tests: New file.
42605         * modules/unictype/property-xid-continue-tests: New file.
42606         * modules/unictype/property-xid-start-tests: New file.
42607         * modules/unictype/property-zero-width-tests: New file.
42608         * modules/unictype/scripts-tests: New file.
42609         * modules/unictype/syntax-c-ident-tests: New file.
42610         * modules/unictype/syntax-c-whitespace-tests: New file.
42611         * modules/unictype/syntax-java-ident-tests: New file.
42612         * modules/unictype/syntax-java-whitespace-tests: New file.
42613         * tests/unictype/test-bidi_byname.c: New file.
42614         * tests/unictype/test-bidi_name.c: New file.
42615         * tests/unictype/test-bidi_of.c: New file.
42616         * tests/unictype/test-bidi_test.c: New file.
42617         * tests/unictype/test-block_list.c: New file.
42618         * tests/unictype/test-block_of.c: New file.
42619         * tests/unictype/test-block_test.c: New file.
42620         * tests/unictype/test-categ_and.c: New file.
42621         * tests/unictype/test-categ_and_not.c: New file.
42622         * tests/unictype/test-categ_byname.c: New file.
42623         * tests/unictype/test-categ_name.c: New file.
42624         * tests/unictype/test-categ_none.c: New file.
42625         * tests/unictype/test-categ_of.c: New file.
42626         * tests/unictype/test-categ_or.c: New file.
42627         * tests/unictype/test-categ_test_withtable.c: New file.
42628         * tests/unictype/test-combining.c: New file.
42629         * tests/unictype/test-decdigit.c: New file.
42630         * tests/unictype/test-digit.c: New file.
42631         * tests/unictype/test-mirror.c: New file.
42632         * tests/unictype/test-numeric.c: New file.
42633         * tests/unictype/test-pr_byname.c: New file.
42634         * tests/unictype/test-pr_test.c: New file.
42635         * tests/unictype/test-predicate-part1.h: New file.
42636         * tests/unictype/test-predicate-part2.h: New file.
42637         * tests/unictype/test-scripts.c: New file.
42638         * tests/unictype/test-sy_c_ident.c: New file.
42639         * tests/unictype/test-sy_java_ident.c: New file.
42640
42641         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42642         for Unicode 5.0.0.
42643         * tests/unictype/test-categ_Cc.c: Likewise.
42644         * tests/unictype/test-categ_Cf.c: Likewise.
42645         * tests/unictype/test-categ_Cn.c: Likewise.
42646         * tests/unictype/test-categ_Co.c: Likewise.
42647         * tests/unictype/test-categ_Cs.c: Likewise.
42648         * tests/unictype/test-categ_L.c: Likewise.
42649         * tests/unictype/test-categ_Ll.c: Likewise.
42650         * tests/unictype/test-categ_Lm.c: Likewise.
42651         * tests/unictype/test-categ_Lo.c: Likewise.
42652         * tests/unictype/test-categ_Lt.c: Likewise.
42653         * tests/unictype/test-categ_Lu.c: Likewise.
42654         * tests/unictype/test-categ_M.c: Likewise.
42655         * tests/unictype/test-categ_Mc.c: Likewise.
42656         * tests/unictype/test-categ_Me.c: Likewise.
42657         * tests/unictype/test-categ_Mn.c: Likewise.
42658         * tests/unictype/test-categ_N.c: Likewise.
42659         * tests/unictype/test-categ_Nd.c: Likewise.
42660         * tests/unictype/test-categ_Nl.c: Likewise.
42661         * tests/unictype/test-categ_No.c: Likewise.
42662         * tests/unictype/test-categ_P.c: Likewise.
42663         * tests/unictype/test-categ_Pc.c: Likewise.
42664         * tests/unictype/test-categ_Pd.c: Likewise.
42665         * tests/unictype/test-categ_Pe.c: Likewise.
42666         * tests/unictype/test-categ_Pf.c: Likewise.
42667         * tests/unictype/test-categ_Pi.c: Likewise.
42668         * tests/unictype/test-categ_Po.c: Likewise.
42669         * tests/unictype/test-categ_Ps.c: Likewise.
42670         * tests/unictype/test-categ_S.c: Likewise.
42671         * tests/unictype/test-categ_Sc.c: Likewise.
42672         * tests/unictype/test-categ_Sk.c: Likewise.
42673         * tests/unictype/test-categ_Sm.c: Likewise.
42674         * tests/unictype/test-categ_So.c: Likewise.
42675         * tests/unictype/test-categ_Z.c: Likewise.
42676         * tests/unictype/test-categ_Zl.c: Likewise.
42677         * tests/unictype/test-categ_Zp.c: Likewise.
42678         * tests/unictype/test-categ_Zs.c: Likewise.
42679         * tests/unictype/test-ctype_alnum.c: Likewise.
42680         * tests/unictype/test-ctype_alpha.c: Likewise.
42681         * tests/unictype/test-ctype_blank.c: Likewise.
42682         * tests/unictype/test-ctype_cntrl.c: Likewise.
42683         * tests/unictype/test-ctype_digit.c: Likewise.
42684         * tests/unictype/test-ctype_graph.c: Likewise.
42685         * tests/unictype/test-ctype_lower.c: Likewise.
42686         * tests/unictype/test-ctype_print.c: Likewise.
42687         * tests/unictype/test-ctype_punct.c: Likewise.
42688         * tests/unictype/test-ctype_space.c: Likewise.
42689         * tests/unictype/test-ctype_upper.c: Likewise.
42690         * tests/unictype/test-ctype_xdigit.c: Likewise.
42691         * tests/unictype/test-decdigit.h: Likewise.
42692         * tests/unictype/test-digit.h: Likewise.
42693         * tests/unictype/test-numeric.h: Likewise.
42694         * tests/unictype/test-pr_alphabetic.c: Likewise.
42695         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42696         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42697         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42698         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42699         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42700         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42701         * tests/unictype/test-pr_bidi_control.c: Likewise.
42702         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42703         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42704         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42705         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42706         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42707         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42708         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42709         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42710         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42711         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42712         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42713         * tests/unictype/test-pr_combining.c: Likewise.
42714         * tests/unictype/test-pr_composite.c: Likewise.
42715         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42716         * tests/unictype/test-pr_dash.c: Likewise.
42717         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42718         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42719         * tests/unictype/test-pr_deprecated.c: Likewise.
42720         * tests/unictype/test-pr_diacritic.c: Likewise.
42721         * tests/unictype/test-pr_extender.c: Likewise.
42722         * tests/unictype/test-pr_format_control.c: Likewise.
42723         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42724         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42725         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42726         * tests/unictype/test-pr_hex_digit.c: Likewise.
42727         * tests/unictype/test-pr_hyphen.c: Likewise.
42728         * tests/unictype/test-pr_id_continue.c: Likewise.
42729         * tests/unictype/test-pr_id_start.c: Likewise.
42730         * tests/unictype/test-pr_ideographic.c: Likewise.
42731         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42732         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42733         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42734         * tests/unictype/test-pr_iso_control.c: Likewise.
42735         * tests/unictype/test-pr_join_control.c: Likewise.
42736         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42737         * tests/unictype/test-pr_line_separator.c: Likewise.
42738         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42739         * tests/unictype/test-pr_lowercase.c: Likewise.
42740         * tests/unictype/test-pr_math.c: Likewise.
42741         * tests/unictype/test-pr_non_break.c: Likewise.
42742         * tests/unictype/test-pr_not_a_character.c: Likewise.
42743         * tests/unictype/test-pr_numeric.c: Likewise.
42744         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42745         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42746         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42747         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42748         * tests/unictype/test-pr_other_id_start.c: Likewise.
42749         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42750         * tests/unictype/test-pr_other_math.c: Likewise.
42751         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42752         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42753         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42754         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42755         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42756         * tests/unictype/test-pr_private_use.c: Likewise.
42757         * tests/unictype/test-pr_punctuation.c: Likewise.
42758         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42759         * tests/unictype/test-pr_radical.c: Likewise.
42760         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42761         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42762         * tests/unictype/test-pr_space.c: Likewise.
42763         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42764         * tests/unictype/test-pr_titlecase.c: Likewise.
42765         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42766         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42767         * tests/unictype/test-pr_uppercase.c: Likewise.
42768         * tests/unictype/test-pr_variation_selector.c: Likewise.
42769         * tests/unictype/test-pr_white_space.c: Likewise.
42770         * tests/unictype/test-pr_xid_continue.c: Likewise.
42771         * tests/unictype/test-pr_xid_start.c: Likewise.
42772         * tests/unictype/test-pr_zero_width.c: Likewise.
42773         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42774         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42775
42776 2007-11-12  Bruno Haible  <bruno@clisp.org>
42777
42778         Unicode character classification functions.
42779         * lib/unictype.h: New file.
42780         * modules/unictype/base: New file.
42781         * modules/unictype/category-L: New file.
42782         * modules/unictype/category-Lu: New file.
42783         * modules/unictype/category-Ll: New file.
42784         * modules/unictype/category-Lt: New file.
42785         * modules/unictype/category-Lm: New file.
42786         * modules/unictype/category-Lo: New file.
42787         * modules/unictype/category-M: New file.
42788         * modules/unictype/category-Mn: New file.
42789         * modules/unictype/category-Mc: New file.
42790         * modules/unictype/category-Me: New file.
42791         * modules/unictype/category-N: New file.
42792         * modules/unictype/category-Nd: New file.
42793         * modules/unictype/category-Nl: New file.
42794         * modules/unictype/category-No: New file.
42795         * modules/unictype/category-P: New file.
42796         * modules/unictype/category-Pc: New file.
42797         * modules/unictype/category-Pd: New file.
42798         * modules/unictype/category-Ps: New file.
42799         * modules/unictype/category-Pe: New file.
42800         * modules/unictype/category-Pi: New file.
42801         * modules/unictype/category-Pf: New file.
42802         * modules/unictype/category-Po: New file.
42803         * modules/unictype/category-S: New file.
42804         * modules/unictype/category-Sm: New file.
42805         * modules/unictype/category-Sc: New file.
42806         * modules/unictype/category-Sk: New file.
42807         * modules/unictype/category-So: New file.
42808         * modules/unictype/category-Z: New file.
42809         * modules/unictype/category-Zs: New file.
42810         * modules/unictype/category-Zl: New file.
42811         * modules/unictype/category-Zp: New file.
42812         * modules/unictype/category-C: New file.
42813         * modules/unictype/category-Cc: New file.
42814         * modules/unictype/category-Cf: New file.
42815         * modules/unictype/category-Cs: New file.
42816         * modules/unictype/category-Co: New file.
42817         * modules/unictype/category-Cn: New file.
42818         * modules/unictype/category-or: New file.
42819         * modules/unictype/category-of: New file.
42820         * modules/unictype/category-test: New file.
42821         * modules/unictype/category-test-withtable: New file.
42822         * modules/unictype/category-byname: New file.
42823         * modules/unictype/category-none: New file.
42824         * modules/unictype/category-and: New file.
42825         * modules/unictype/category-and-not: New file.
42826         * modules/unictype/category-name: New file.
42827         * modules/unictype/combining-class: New file.
42828         * modules/unictype/category-all: New file.
42829         * modules/unictype/bidicategory-all: New file.
42830         * modules/unictype/bidicategory-byname: New file.
42831         * modules/unictype/bidicategory-name: New file.
42832         * modules/unictype/bidicategory-of: New file.
42833         * modules/unictype/bidicategory-test: New file.
42834         * modules/unictype/decimal-digit: New file.
42835         * modules/unictype/digit: New file.
42836         * modules/unictype/numeric: New file.
42837         * modules/unictype/mirror: New file.
42838         * modules/unictype/property-white-space: New file.
42839         * modules/unictype/property-alphabetic: New file.
42840         * modules/unictype/property-other-alphabetic: New file.
42841         * modules/unictype/property-not-a-character: New file.
42842         * modules/unictype/property-default-ignorable-code-point: New file.
42843         * modules/unictype/property-other-default-ignorable-code-point: New
42844         file.
42845         * modules/unictype/property-deprecated: New file.
42846         * modules/unictype/property-logical-order-exception: New file.
42847         * modules/unictype/property-variation-selector: New file.
42848         * modules/unictype/property-private-use: New file.
42849         * modules/unictype/property-unassigned-code-value: New file.
42850         * modules/unictype/property-uppercase: New file.
42851         * modules/unictype/property-other-uppercase: New file.
42852         * modules/unictype/property-lowercase: New file.
42853         * modules/unictype/property-other-lowercase: New file.
42854         * modules/unictype/property-titlecase: New file.
42855         * modules/unictype/property-soft-dotted: New file.
42856         * modules/unictype/property-id-start: New file.
42857         * modules/unictype/property-other-id-start: New file.
42858         * modules/unictype/property-id-continue: New file.
42859         * modules/unictype/property-other-id-continue: New file.
42860         * modules/unictype/property-xid-start: New file.
42861         * modules/unictype/property-xid-continue: New file.
42862         * modules/unictype/property-pattern-white-space: New file.
42863         * modules/unictype/property-pattern-syntax: New file.
42864         * modules/unictype/property-join-control: New file.
42865         * modules/unictype/property-grapheme-base: New file.
42866         * modules/unictype/property-grapheme-extend: New file.
42867         * modules/unictype/property-other-grapheme-extend: New file.
42868         * modules/unictype/property-grapheme-link: New file.
42869         * modules/unictype/property-bidi-control: New file.
42870         * modules/unictype/property-bidi-left-to-right: New file.
42871         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42872         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42873         * modules/unictype/property-bidi-european-digit: New file.
42874         * modules/unictype/property-bidi-eur-num-separator: New file.
42875         * modules/unictype/property-bidi-eur-num-terminator: New file.
42876         * modules/unictype/property-bidi-arabic-digit: New file.
42877         * modules/unictype/property-bidi-common-separator: New file.
42878         * modules/unictype/property-bidi-block-separator: New file.
42879         * modules/unictype/property-bidi-segment-separator: New file.
42880         * modules/unictype/property-bidi-whitespace: New file.
42881         * modules/unictype/property-bidi-non-spacing-mark: New file.
42882         * modules/unictype/property-bidi-boundary-neutral: New file.
42883         * modules/unictype/property-bidi-pdf: New file.
42884         * modules/unictype/property-bidi-embedding-or-override: New file.
42885         * modules/unictype/property-bidi-other-neutral: New file.
42886         * modules/unictype/property-hex-digit: New file.
42887         * modules/unictype/property-ascii-hex-digit: New file.
42888         * modules/unictype/property-ideographic: New file.
42889         * modules/unictype/property-unified-ideograph: New file.
42890         * modules/unictype/property-radical: New file.
42891         * modules/unictype/property-ids-binary-operator: New file.
42892         * modules/unictype/property-ids-trinary-operator: New file.
42893         * modules/unictype/property-zero-width: New file.
42894         * modules/unictype/property-space: New file.
42895         * modules/unictype/property-non-break: New file.
42896         * modules/unictype/property-iso-control: New file.
42897         * modules/unictype/property-format-control: New file.
42898         * modules/unictype/property-dash: New file.
42899         * modules/unictype/property-hyphen: New file.
42900         * modules/unictype/property-punctuation: New file.
42901         * modules/unictype/property-line-separator: New file.
42902         * modules/unictype/property-paragraph-separator: New file.
42903         * modules/unictype/property-quotation-mark: New file.
42904         * modules/unictype/property-sentence-terminal: New file.
42905         * modules/unictype/property-terminal-punctuation: New file.
42906         * modules/unictype/property-currency-symbol: New file.
42907         * modules/unictype/property-math: New file.
42908         * modules/unictype/property-other-math: New file.
42909         * modules/unictype/property-paired-punctuation: New file.
42910         * modules/unictype/property-left-of-pair: New file.
42911         * modules/unictype/property-combining: New file.
42912         * modules/unictype/property-composite: New file.
42913         * modules/unictype/property-decimal-digit: New file.
42914         * modules/unictype/property-numeric: New file.
42915         * modules/unictype/property-diacritic: New file.
42916         * modules/unictype/property-extender: New file.
42917         * modules/unictype/property-ignorable-control: New file.
42918         * modules/unictype/property-test: New file.
42919         * modules/unictype/property-byname: New file.
42920         * modules/unictype/property-all: New file.
42921         * modules/unictype/scripts: New file.
42922         * modules/unictype/scripts-all: New file.
42923         * modules/unictype/block-of: New file.
42924         * modules/unictype/block-test: New file.
42925         * modules/unictype/block-list: New file.
42926         * modules/unictype/block-all: New file.
42927         * modules/unictype/syntax-c-whitespace: New file.
42928         * modules/unictype/syntax-java-whitespace: New file.
42929         * modules/unictype/syntax-c-ident: New file.
42930         * modules/unictype/syntax-java-ident: New file.
42931         * modules/unictype/ctype-alnum: New file.
42932         * modules/unictype/ctype-alpha: New file.
42933         * modules/unictype/ctype-cntrl: New file.
42934         * modules/unictype/ctype-digit: New file.
42935         * modules/unictype/ctype-graph: New file.
42936         * modules/unictype/ctype-lower: New file.
42937         * modules/unictype/ctype-print: New file.
42938         * modules/unictype/ctype-punct: New file.
42939         * modules/unictype/ctype-space: New file.
42940         * modules/unictype/ctype-upper: New file.
42941         * modules/unictype/ctype-xdigit: New file.
42942         * modules/unictype/ctype-blank: New file.
42943         * lib/unictype/bidi_byname.c: New file.
42944         * lib/unictype/bidi_name.c: New file.
42945         * lib/unictype/bidi_of.c: New file.
42946         * lib/unictype/bidi_test.c: New file.
42947         * lib/unictype/bitmap.h: New file.
42948         * lib/unictype/block_test.c: New file.
42949         * lib/unictype/blocks.c: New file.
42950         * lib/unictype/categ_C.c: New file.
42951         * lib/unictype/categ_Cc.c: New file.
42952         * lib/unictype/categ_Cf.c: New file.
42953         * lib/unictype/categ_Cn.c: New file.
42954         * lib/unictype/categ_Co.c: New file.
42955         * lib/unictype/categ_Cs.c: New file.
42956         * lib/unictype/categ_L.c: New file.
42957         * lib/unictype/categ_Ll.c: New file.
42958         * lib/unictype/categ_Lm.c: New file.
42959         * lib/unictype/categ_Lo.c: New file.
42960         * lib/unictype/categ_Lt.c: New file.
42961         * lib/unictype/categ_Lu.c: New file.
42962         * lib/unictype/categ_M.c: New file.
42963         * lib/unictype/categ_Mc.c: New file.
42964         * lib/unictype/categ_Me.c: New file.
42965         * lib/unictype/categ_Mn.c: New file.
42966         * lib/unictype/categ_N.c: New file.
42967         * lib/unictype/categ_Nd.c: New file.
42968         * lib/unictype/categ_Nl.c: New file.
42969         * lib/unictype/categ_No.c: New file.
42970         * lib/unictype/categ_P.c: New file.
42971         * lib/unictype/categ_Pc.c: New file.
42972         * lib/unictype/categ_Pd.c: New file.
42973         * lib/unictype/categ_Pe.c: New file.
42974         * lib/unictype/categ_Pf.c: New file.
42975         * lib/unictype/categ_Pi.c: New file.
42976         * lib/unictype/categ_Po.c: New file.
42977         * lib/unictype/categ_Ps.c: New file.
42978         * lib/unictype/categ_S.c: New file.
42979         * lib/unictype/categ_Sc.c: New file.
42980         * lib/unictype/categ_Sk.c: New file.
42981         * lib/unictype/categ_Sm.c: New file.
42982         * lib/unictype/categ_So.c: New file.
42983         * lib/unictype/categ_Z.c: New file.
42984         * lib/unictype/categ_Zl.c: New file.
42985         * lib/unictype/categ_Zp.c: New file.
42986         * lib/unictype/categ_Zs.c: New file.
42987         * lib/unictype/categ_and.c: New file.
42988         * lib/unictype/categ_and_not.c: New file.
42989         * lib/unictype/categ_byname.c: New file.
42990         * lib/unictype/categ_name.c: New file.
42991         * lib/unictype/categ_none.c: New file.
42992         * lib/unictype/categ_of.c: New file.
42993         * lib/unictype/categ_or.c: New file.
42994         * lib/unictype/categ_test.c: New file.
42995         * lib/unictype/combining.c: New file.
42996         * lib/unictype/ctype_alnum.c: New file.
42997         * lib/unictype/ctype_alpha.c: New file.
42998         * lib/unictype/ctype_blank.c: New file.
42999         * lib/unictype/ctype_cntrl.c: New file.
43000         * lib/unictype/ctype_digit.c: New file.
43001         * lib/unictype/ctype_graph.c: New file.
43002         * lib/unictype/ctype_lower.c: New file.
43003         * lib/unictype/ctype_print.c: New file.
43004         * lib/unictype/ctype_punct.c: New file.
43005         * lib/unictype/ctype_space.c: New file.
43006         * lib/unictype/ctype_upper.c: New file.
43007         * lib/unictype/ctype_xdigit.c: New file.
43008         * lib/unictype/decdigit.c: New file.
43009         * lib/unictype/digit.c: New file.
43010         * lib/unictype/identsyntaxmap.h: New file.
43011         * lib/unictype/mirror.c: New file.
43012         * lib/unictype/numeric.c: New file.
43013         * lib/unictype/pr_alphabetic.c: New file.
43014         * lib/unictype/pr_ascii_hex_digit.c: New file.
43015         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43016         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43017         * lib/unictype/pr_bidi_block_separator.c: New file.
43018         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43019         * lib/unictype/pr_bidi_common_separator.c: New file.
43020         * lib/unictype/pr_bidi_control.c: New file.
43021         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43022         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43023         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43024         * lib/unictype/pr_bidi_european_digit.c: New file.
43025         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43026         * lib/unictype/pr_bidi_left_to_right.c: New file.
43027         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43028         * lib/unictype/pr_bidi_other_neutral.c: New file.
43029         * lib/unictype/pr_bidi_pdf.c: New file.
43030         * lib/unictype/pr_bidi_segment_separator.c: New file.
43031         * lib/unictype/pr_bidi_whitespace.c: New file.
43032         * lib/unictype/pr_byname.c: New file.
43033         * lib/unictype/pr_byname.gperf: New file.
43034         * lib/unictype/pr_combining.c: New file.
43035         * lib/unictype/pr_composite.c: New file.
43036         * lib/unictype/pr_currency_symbol.c: New file.
43037         * lib/unictype/pr_dash.c: New file.
43038         * lib/unictype/pr_decimal_digit.c: New file.
43039         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43040         * lib/unictype/pr_deprecated.c: New file.
43041         * lib/unictype/pr_diacritic.c: New file.
43042         * lib/unictype/pr_extender.c: New file.
43043         * lib/unictype/pr_format_control.c: New file.
43044         * lib/unictype/pr_grapheme_base.c: New file.
43045         * lib/unictype/pr_grapheme_extend.c: New file.
43046         * lib/unictype/pr_grapheme_link.c: New file.
43047         * lib/unictype/pr_hex_digit.c: New file.
43048         * lib/unictype/pr_hyphen.c: New file.
43049         * lib/unictype/pr_id_continue.c: New file.
43050         * lib/unictype/pr_id_start.c: New file.
43051         * lib/unictype/pr_ideographic.c: New file.
43052         * lib/unictype/pr_ids_binary_operator.c: New file.
43053         * lib/unictype/pr_ids_trinary_operator.c: New file.
43054         * lib/unictype/pr_ignorable_control.c: New file.
43055         * lib/unictype/pr_iso_control.c: New file.
43056         * lib/unictype/pr_join_control.c: New file.
43057         * lib/unictype/pr_left_of_pair.c: New file.
43058         * lib/unictype/pr_line_separator.c: New file.
43059         * lib/unictype/pr_logical_order_exception.c: New file.
43060         * lib/unictype/pr_lowercase.c: New file.
43061         * lib/unictype/pr_math.c: New file.
43062         * lib/unictype/pr_non_break.c: New file.
43063         * lib/unictype/pr_not_a_character.c: New file.
43064         * lib/unictype/pr_numeric.c: New file.
43065         * lib/unictype/pr_other_alphabetic.c: New file.
43066         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43067         * lib/unictype/pr_other_grapheme_extend.c: New file.
43068         * lib/unictype/pr_other_id_continue.c: New file.
43069         * lib/unictype/pr_other_id_start.c: New file.
43070         * lib/unictype/pr_other_lowercase.c: New file.
43071         * lib/unictype/pr_other_math.c: New file.
43072         * lib/unictype/pr_other_uppercase.c: New file.
43073         * lib/unictype/pr_paired_punctuation.c: New file.
43074         * lib/unictype/pr_paragraph_separator.c: New file.
43075         * lib/unictype/pr_pattern_syntax.c: New file.
43076         * lib/unictype/pr_pattern_white_space.c: New file.
43077         * lib/unictype/pr_private_use.c: New file.
43078         * lib/unictype/pr_punctuation.c: New file.
43079         * lib/unictype/pr_quotation_mark.c: New file.
43080         * lib/unictype/pr_radical.c: New file.
43081         * lib/unictype/pr_sentence_terminal.c: New file.
43082         * lib/unictype/pr_soft_dotted.c: New file.
43083         * lib/unictype/pr_space.c: New file.
43084         * lib/unictype/pr_terminal_punctuation.c: New file.
43085         * lib/unictype/pr_test.c: New file.
43086         * lib/unictype/pr_titlecase.c: New file.
43087         * lib/unictype/pr_unassigned_code_value.c: New file.
43088         * lib/unictype/pr_unified_ideograph.c: New file.
43089         * lib/unictype/pr_uppercase.c: New file.
43090         * lib/unictype/pr_variation_selector.c: New file.
43091         * lib/unictype/pr_white_space.c: New file.
43092         * lib/unictype/pr_xid_continue.c: New file.
43093         * lib/unictype/pr_xid_start.c: New file.
43094         * lib/unictype/pr_zero_width.c: New file.
43095         * lib/unictype/scripts.c: New file.
43096         * lib/unictype/sy_c_ident.c: New file.
43097         * lib/unictype/sy_c_whitespace.c: New file.
43098         * lib/unictype/sy_java_ident.c: New file.
43099         * lib/unictype/sy_java_whitespace.c: New file.
43100
43101         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43102         Unicode 5.0.0.
43103         * lib/unictype/blocks.h: Likewise.
43104         * lib/unictype/categ_C.h: Likewise.
43105         * lib/unictype/categ_Cc.h: Likewise.
43106         * lib/unictype/categ_Cf.h: Likewise.
43107         * lib/unictype/categ_Cn.h: Likewise.
43108         * lib/unictype/categ_Co.h: Likewise.
43109         * lib/unictype/categ_Cs.h: Likewise.
43110         * lib/unictype/categ_L.h: Likewise.
43111         * lib/unictype/categ_Ll.h: Likewise.
43112         * lib/unictype/categ_Lm.h: Likewise.
43113         * lib/unictype/categ_Lo.h: Likewise.
43114         * lib/unictype/categ_Lt.h: Likewise.
43115         * lib/unictype/categ_Lu.h: Likewise.
43116         * lib/unictype/categ_M.h: Likewise.
43117         * lib/unictype/categ_Mc.h: Likewise.
43118         * lib/unictype/categ_Me.h: Likewise.
43119         * lib/unictype/categ_Mn.h: Likewise.
43120         * lib/unictype/categ_N.h: Likewise.
43121         * lib/unictype/categ_Nd.h: Likewise.
43122         * lib/unictype/categ_Nl.h: Likewise.
43123         * lib/unictype/categ_No.h: Likewise.
43124         * lib/unictype/categ_P.h: Likewise.
43125         * lib/unictype/categ_Pc.h: Likewise.
43126         * lib/unictype/categ_Pd.h: Likewise.
43127         * lib/unictype/categ_Pe.h: Likewise.
43128         * lib/unictype/categ_Pf.h: Likewise.
43129         * lib/unictype/categ_Pi.h: Likewise.
43130         * lib/unictype/categ_Po.h: Likewise.
43131         * lib/unictype/categ_Ps.h: Likewise.
43132         * lib/unictype/categ_S.h: Likewise.
43133         * lib/unictype/categ_Sc.h: Likewise.
43134         * lib/unictype/categ_Sk.h: Likewise.
43135         * lib/unictype/categ_Sm.h: Likewise.
43136         * lib/unictype/categ_So.h: Likewise.
43137         * lib/unictype/categ_Z.h: Likewise.
43138         * lib/unictype/categ_Zl.h: Likewise.
43139         * lib/unictype/categ_Zp.h: Likewise.
43140         * lib/unictype/categ_Zs.h: Likewise.
43141         * lib/unictype/categ_of.h: Likewise.
43142         * lib/unictype/combining.h: Likewise.
43143         * lib/unictype/ctype_alnum.h: Likewise.
43144         * lib/unictype/ctype_alpha.h: Likewise.
43145         * lib/unictype/ctype_blank.h: Likewise.
43146         * lib/unictype/ctype_cntrl.h: Likewise.
43147         * lib/unictype/ctype_digit.h: Likewise.
43148         * lib/unictype/ctype_graph.h: Likewise.
43149         * lib/unictype/ctype_lower.h: Likewise.
43150         * lib/unictype/ctype_print.h: Likewise.
43151         * lib/unictype/ctype_punct.h: Likewise.
43152         * lib/unictype/ctype_space.h: Likewise.
43153         * lib/unictype/ctype_upper.h: Likewise.
43154         * lib/unictype/ctype_xdigit.h: Likewise.
43155         * lib/unictype/decdigit.h: Likewise.
43156         * lib/unictype/digit.h: Likewise.
43157         * lib/unictype/mirror.h: Likewise.
43158         * lib/unictype/numeric.h: Likewise.
43159         * lib/unictype/pr_alphabetic.h: Likewise.
43160         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43161         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43162         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43163         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43164         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43165         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43166         * lib/unictype/pr_bidi_control.h: Likewise.
43167         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43168         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43169         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43170         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43171         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43172         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43173         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43174         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43175         * lib/unictype/pr_bidi_pdf.h: Likewise.
43176         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43177         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43178         * lib/unictype/pr_combining.h: Likewise.
43179         * lib/unictype/pr_composite.h: Likewise.
43180         * lib/unictype/pr_currency_symbol.h: Likewise.
43181         * lib/unictype/pr_dash.h: Likewise.
43182         * lib/unictype/pr_decimal_digit.h: Likewise.
43183         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43184         * lib/unictype/pr_deprecated.h: Likewise.
43185         * lib/unictype/pr_diacritic.h: Likewise.
43186         * lib/unictype/pr_extender.h: Likewise.
43187         * lib/unictype/pr_format_control.h: Likewise.
43188         * lib/unictype/pr_grapheme_base.h: Likewise.
43189         * lib/unictype/pr_grapheme_extend.h: Likewise.
43190         * lib/unictype/pr_grapheme_link.h: Likewise.
43191         * lib/unictype/pr_hex_digit.h: Likewise.
43192         * lib/unictype/pr_hyphen.h: Likewise.
43193         * lib/unictype/pr_id_continue.h: Likewise.
43194         * lib/unictype/pr_id_start.h: Likewise.
43195         * lib/unictype/pr_ideographic.h: Likewise.
43196         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43197         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43198         * lib/unictype/pr_ignorable_control.h: Likewise.
43199         * lib/unictype/pr_iso_control.h: Likewise.
43200         * lib/unictype/pr_join_control.h: Likewise.
43201         * lib/unictype/pr_left_of_pair.h: Likewise.
43202         * lib/unictype/pr_line_separator.h: Likewise.
43203         * lib/unictype/pr_logical_order_exception.h: Likewise.
43204         * lib/unictype/pr_lowercase.h: Likewise.
43205         * lib/unictype/pr_math.h: Likewise.
43206         * lib/unictype/pr_non_break.h: Likewise.
43207         * lib/unictype/pr_not_a_character.h: Likewise.
43208         * lib/unictype/pr_numeric.h: Likewise.
43209         * lib/unictype/pr_other_alphabetic.h: Likewise.
43210         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43211         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43212         * lib/unictype/pr_other_id_continue.h: Likewise.
43213         * lib/unictype/pr_other_id_start.h: Likewise.
43214         * lib/unictype/pr_other_lowercase.h: Likewise.
43215         * lib/unictype/pr_other_math.h: Likewise.
43216         * lib/unictype/pr_other_uppercase.h: Likewise.
43217         * lib/unictype/pr_paired_punctuation.h: Likewise.
43218         * lib/unictype/pr_paragraph_separator.h: Likewise.
43219         * lib/unictype/pr_pattern_syntax.h: Likewise.
43220         * lib/unictype/pr_pattern_white_space.h: Likewise.
43221         * lib/unictype/pr_private_use.h: Likewise.
43222         * lib/unictype/pr_punctuation.h: Likewise.
43223         * lib/unictype/pr_quotation_mark.h: Likewise.
43224         * lib/unictype/pr_radical.h: Likewise.
43225         * lib/unictype/pr_sentence_terminal.h: Likewise.
43226         * lib/unictype/pr_soft_dotted.h: Likewise.
43227         * lib/unictype/pr_space.h: Likewise.
43228         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43229         * lib/unictype/pr_titlecase.h: Likewise.
43230         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43231         * lib/unictype/pr_unified_ideograph.h: Likewise.
43232         * lib/unictype/pr_uppercase.h: Likewise.
43233         * lib/unictype/pr_variation_selector.h: Likewise.
43234         * lib/unictype/pr_white_space.h: Likewise.
43235         * lib/unictype/pr_xid_continue.h: Likewise.
43236         * lib/unictype/pr_xid_start.h: Likewise.
43237         * lib/unictype/pr_zero_width.h: Likewise.
43238         * lib/unictype/scripts.h: Likewise.
43239         * lib/unictype/scripts_byname.gperf: Likewise.
43240         * lib/unictype/sy_c_ident.h: Likewise.
43241         * lib/unictype/sy_c_whitespace.h: Likewise.
43242         * lib/unictype/sy_java_ident.h: Likewise.
43243         * lib/unictype/sy_java_whitespace.h: Likewise.
43244
43245         * lib/unictype/Makefile: New file.
43246         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43247         glibc.
43248         * lib/unictype/3level.h: New file, copied from glibc.
43249         * lib/unictype/3levelbit.h: New file.
43250
43251 2007-11-11  Bruno Haible  <bruno@clisp.org>
43252
43253         * modules/gperf: New file.
43254         * modules/iconv_open (Depends-on): Add it.
43255         (Makefile.am): Remove the GPERF definition.
43256
43257 2007-11-11  Bruno Haible  <bruno@clisp.org>
43258
43259         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43260         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43261
43262 2007-11-11  Bruno Haible  <bruno@clisp.org>
43263
43264         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43265         (usage): Remove function.
43266
43267 2007-11-11  Bruno Haible  <bruno@clisp.org>
43268
43269         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43270         gl_FUNC_CEILF_LIBS.
43271         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43272         gl_FUNC_CEIL_LIBS.
43273         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43274         gl_FUNC_CEILL_LIBS.
43275         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43276         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43277         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43278
43279 2007-11-11  Bruno Haible  <bruno@clisp.org>
43280
43281         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43282         roundf were declared but do not exist on functions.
43283         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43284         roundl were declared but do not exist on functions.
43285         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43286         HAVE_FLOORL_AND_CEILL, respectively.
43287         Needed for Sun C on Solaris 10.
43288
43289 2007-11-11  Bruno Haible  <bruno@clisp.org>
43290
43291         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43292         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43293         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43294         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43295         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43296         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43297         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43298         HAVE_DECL_ROUNDF.
43299         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43300         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43302         of HAVE_DECL_ROUND*.
43303         * modules/math (Makefile.am): Update.
43304
43305 2007-11-10  Bruno Haible  <bruno@clisp.org>
43306
43307         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43308         ptrdiff_t as m4/intl.m4.
43309
43310 2007-11-10  Jim Meyering  <meyering@redhat.com>
43311
43312         Avoid link failure for the argmatch test.
43313         * tests/test-argmatch.c (usage): Define function to avoid a link
43314         failure: argmatch_die requires a usage function.
43315
43316 2007-11-09  Bruno Haible  <bruno@clisp.org>
43317
43318         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43319         * doc/functions/vsnprintf.texi: Likewise.
43320         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43321         with a size argument < 2.
43322
43323 2007-11-09  Bruno Haible  <bruno@clisp.org>
43324
43325         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43326         buffer. Fixes an inefficiency introduced on 2007-11-03.
43327
43328 2007-11-09  Bruno Haible  <bruno@clisp.org>
43329
43330         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43331         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43332
43333 2007-11-08  Jim Meyering  <meyering@redhat.com>
43334
43335         Change cache variable name prefix "jm_" to "gl_" everywhere.
43336         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43337         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43338         * m4/uptime.m4: s/gl_/jm_/
43339
43340 2007-11-07  Bruno Haible  <bruno@clisp.org>
43341
43342         Update to GNU gettext 0.17.
43343         * m4/intl.m4: Update to GNU gettext 0.17.
43344         * m4/po.m4: Likewise.
43345         * modules/gettext (Files): Remove m4/ulonglong.m4.
43346         (configure.ac): Require gettext infrastructure from version 0.17.
43347
43348 2007-11-06  Bruno Haible  <bruno@clisp.org>
43349
43350         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
43351         symbolic values are not defined in a public header.
43352         * lib/freadable.c (freadable) [QNX]: Likewise.
43353         * lib/freadahead.c (freadahead) [QNX]: Likewise.
43354         * lib/freading.c (freading) [QNX]: Likewise.
43355         * lib/fseterr.c (fseterr) [QNX]: Likewise.
43356         * lib/fwritable.c (fwritable) [QNX]: Likewise.
43357         * lib/fwriting.c (fwriting) [QNX]: Likewise.
43358         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
43359         Reported by Alain Magloire.
43360
43361         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
43362
43363 2007-11-05  Bruno Haible  <bruno@clisp.org>
43364
43365         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
43366         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
43367         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
43368         Reported by Eric Blake.
43369
43370 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43371             Bruno Haible  <bruno@clisp.org>
43372
43373         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
43374         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
43375         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
43376         (malloc): Undefine also before including <stdlib.h>.
43377         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
43378         Needed on OSF/1 4.0.
43379
43380 2007-11-05  Jim Meyering  <meyering@redhat.com>
43381
43382         git-version-gen: sync from coreutils.
43383         * build-aux/git-version-gen: Add comments.
43384         Change the first '-' to '.' in the snapshot version string,
43385         e.g., 6.9-377-08144 -> 6.9.377-08144
43386         Remove first parameter.
43387         Don't declare a version "-dirty" merely because a time
43388         stamp has changed.
43389
43390 2007-11-04  Bruno Haible  <bruno@clisp.org>
43391
43392         * lib/lock.h: Protect all macro definitions containing an 'if'
43393         statement through a "do { ... } while (0)".
43394         * lib/tls.h: Likewise.
43395
43396 2007-11-04  Bruno Haible  <bruno@clisp.org>
43397
43398         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
43399
43400 2007-11-04  Bruno Haible  <bruno@clisp.org>
43401
43402         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
43403         * modules/fprintf-posix (Depends-on): Add nocrash.
43404         * modules/snprintf-posix (Depends-on): Likewise.
43405         * modules/sprintf-posix (Depends-on): Likewise.
43406         * modules/vasnprintf-posix (Depends-on): Likewise.
43407         * modules/vasprintf-posix (Depends-on): Likewise.
43408         * modules/vfprintf-posix (Depends-on): Likewise.
43409         * modules/vsnprintf-posix (Depends-on): Likewise.
43410         * modules/vsprintf-posix (Depends-on): Likewise.
43411         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43412         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43413         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43414         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43415         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43416         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43417         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43418
43419 2007-11-04  Bruno Haible  <bruno@clisp.org>
43420
43421         * modules/nocrash: New file.
43422         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
43423         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
43424
43425 2007-11-04  Bruno Haible  <bruno@clisp.org>
43426
43427         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
43428         precision handling.
43429         * tests/test-vasprintf-posix.c (test_function): Likewise.
43430         * tests/test-snprintf-posix.h (test_function): Likewise.
43431         * tests/test-sprintf-posix.h (test_function): Likewise.
43432
43433         Fix *printf behaviour for large precisions on mingw and BeOS.
43434         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
43435         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
43436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
43437         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43438         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43439         gl_PRINTF_PRECISION and test its result. Invoke
43440         gl_PREREQ_VASNPRINTF_PRECISION.
43441         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43442         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43443         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43444         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43445         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43446         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43447         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43448         * doc/functions/fprintf.texi: Update.
43449         * doc/functions/printf.texi: Update.
43450         * doc/functions/snprintf.texi: Update.
43451         * doc/functions/sprintf.texi: Update.
43452         * doc/functions/vfprintf.texi: Update.
43453         * doc/functions/vprintf.texi: Update.
43454         * doc/functions/vsnprintf.texi: Update.
43455         * doc/functions/vsprintf.texi: Update.
43456
43457 2007-11-04  Bruno Haible  <bruno@clisp.org>
43458
43459         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
43460
43461 2007-11-04  Bruno Haible  <bruno@clisp.org>
43462
43463         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
43464         Reported by Sylvain Beucler <beuc@gnu.org>.
43465
43466 2007-11-03  Bruno Haible  <bruno@clisp.org>
43467
43468         * tests/test-fprintf-posix2.sh: New file.
43469         * tests/test-fprintf-posix2.c: New file.
43470         * modules/fprintf-posix-tests (Files): Add them.
43471         (TESTS): Add test-fprintf-posix2.sh.
43472         (configure.ac): Check for getrlimit and setrlimit.
43473         (check_PROGRAMS): Add test-fprintf-posix2.
43474
43475         * tests/test-printf-posix2.sh: New file.
43476         * tests/test-printf-posix2.c: New file.
43477         * modules/printf-posix-tests (Files): Add them.
43478         (TESTS): Add test-printf-posix2.sh.
43479         (configure.ac): Check for getrlimit and setrlimit.
43480         (check_PROGRAMS): Add test-printf-posix2.
43481
43482         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
43483         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
43484         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
43485         (decode_double): New function, copied from decode_long_double.
43486         (scale10_round_decimal_decoded): New function, extracted from
43487         scale10_round_decimal_long_double.
43488         (scale10_round_decimal_long_double): Use it.
43489         (scale10_round_decimal_double): New function.
43490         (floorlog10): New function.
43491         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
43492         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
43493         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43494         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43495         gl_PRINTF_ENOMEM and test its result. Invoke
43496         gl_PREREQ_VASNPRINTF_ENOMEM.
43497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43498         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43499         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43504         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
43505         * modules/snprintf-posix (Depends-on): Likewise.
43506         * modules/sprintf-posix (Depends-on): Likewise.
43507         * modules/vasnprintf-posix (Depends-on): Likewise.
43508         * modules/vasprintf-posix (Depends-on): Likewise.
43509         * modules/vfprintf-posix (Depends-on): Likewise.
43510         * modules/vsnprintf-posix (Depends-on): Likewise.
43511         * modules/vsprintf-posix (Depends-on): Likewise.
43512         * doc/functions/fprintf.texi: Update.
43513         * doc/functions/printf.texi: Update.
43514         * doc/functions/snprintf.texi: Update.
43515         * doc/functions/sprintf.texi: Update.
43516         * doc/functions/vfprintf.texi: Update.
43517         * doc/functions/vprintf.texi: Update.
43518         * doc/functions/vsnprintf.texi: Update.
43519         * doc/functions/vsprintf.texi: Update.
43520
43521 2007-11-03  Bruno Haible  <bruno@clisp.org>
43522
43523         * modules/frexp-nolibm-tests: New file.
43524
43525         * modules/frexp-nolibm: New file.
43526         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
43527
43528 2007-11-03  Bruno Haible  <bruno@clisp.org>
43529
43530         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
43531         value is C99 compliant.
43532         Needed for OSF/1 5.1.
43533
43534 2007-11-03  Bruno Haible  <bruno@clisp.org>
43535
43536         Fix out-of-memory handling of vasnprintf.
43537         * lib/printf-parse.c: Include <errno.h>.
43538         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
43539         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
43540         is already set.
43541
43542 2007-11-02  Eric Blake  <ebb9@byu.net>
43543
43544         Fix tests on cygwin.
43545         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
43546
43547 2007-11-01  Bruno Haible  <bruno@clisp.org>
43548
43549         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
43550         warning.
43551         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
43552         needed for POSIX compatibility.
43553
43554 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43555
43556         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43557         for compatibility with GNU.
43558
43559 2007-11-01  Bruno Haible  <bruno@clisp.org>
43560
43561         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43562         (putenv): Renamed from rpl_putenv. Change argument type from
43563         'const char *' to 'char *'.
43564         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43565         of defining putenv in config.h, just set REPLACE_PUTENV.
43566         * modules/putenv (Depends-on): Add stdlib.
43567         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43568         (Include): Use <stdlib.h>.
43569         * lib/stdlib.in.h (putenv): New declaration.
43570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43571         REPLACE_PUTENV.
43572         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43573         REPLACE_PUTENV.
43574         Needed for MacOS X 10.5.0.
43575         Reported by Peter O'Gorman <peter@pogma.com>.
43576
43577 2007-11-01  Jim Meyering  <meyering@redhat.com>
43578
43579         Treat an empty date string exactly like "0".
43580         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43581         if the remaining date string (to be parsed) is empty, use "0".
43582         Reported by Mischa Molhoek and discussed in this thread:
43583         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43584
43585 2007-10-31  Bruno Haible  <bruno@clisp.org>
43586
43587         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43588         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43589         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43590         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43591         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43592         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43593
43594 2007-10-31  Bruno Haible  <bruno@clisp.org>
43595
43596         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43597         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43598         (AC_TYPE_LONG_LONG_INT): Use it.
43599         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43600         it as well.
43601         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43602         to m4/longlong.m4.
43603         * modules/stdint (Files): Remove m4/ulonglong.m4.
43604         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43605         m4/ulonglong.m4.
43606         * modules/strtoumax (Files): Likewise.
43607
43608 2007-10-30  Bruno Haible  <bruno@clisp.org>
43609
43610         * modules/xvasprintf-posix: New file.
43611         Suggested by Eric Blake.
43612
43613 2007-10-30  Bruno Haible  <bruno@clisp.org>
43614
43615         * modules/xprintf-posix-tests: New file.
43616         * tests/test-xprintf-posix.sh: New file.
43617         * tests/test-xprintf-posix.c: New file.
43618         * tests/test-xfprintf-posix.c: New file.
43619
43620         * modules/xprintf-posix: New file.
43621
43622 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43623
43624         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43625         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43626         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43627
43628 2007-10-29  Bruno Haible  <bruno@clisp.org>
43629
43630         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43631         contain the special marker '_cv_'.
43632         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43633         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43634         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43635         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43636         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43637         Reported by Ralf Wildenhues.
43638
43639 2007-10-29  Bruno Haible  <bruno@clisp.org>
43640
43641         * gnulib-tool (func_import): When --lgpl is not specified, set
43642         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43643         GPLv3.
43644         Reported by Simon Josefsson.
43645
43646 2007-10-28  Bruno Haible  <bruno@clisp.org>
43647
43648         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43649         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43650         HAVE_DECL_ISFINITE.
43651         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43652         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43653         HAVE_DECL_ISFINITE.
43654
43655 2007-10-28  Bruno Haible  <bruno@clisp.org>
43656
43657         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43658         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43659
43660 2007-10-28  Bruno Haible  <bruno@clisp.org>
43661
43662         Fix link errors with Sun C 5.0 on Solaris 10.
43663         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43664         function is declared but not present in the compiler's libm.
43665         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43666         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43667         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43668         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43669         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43670         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43671         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43673         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43674         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43675         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43676         HAVE_DECL_FLOORL.
43677
43678 2007-10-28  Bruno Haible  <bruno@clisp.org>
43679
43680         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43681         gl_FUNC_FLOORL. Cache the result.
43682         (gl_FUNC_FLOORL): Use it.
43683         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43684         gl_FUNC_CEILL. Cache the result.
43685         (gl_FUNC_CEILL): Use it.
43686
43687         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43688         gl_FUNC_FLOOR. Cache the result.
43689         (gl_FUNC_FLOOR): Use it.
43690         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43691         gl_FUNC_CEIL. Cache the result.
43692         (gl_FUNC_CEIL): Use it.
43693
43694         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43695         gl_FUNC_FLOORF. Cache the result.
43696         (gl_FUNC_FLOORF): Use it.
43697         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43698         gl_FUNC_CEILF. Cache the result.
43699         (gl_FUNC_CEILF): Use it.
43700
43701 2007-10-28  Bruno Haible  <bruno@clisp.org>
43702
43703         * gnulib-tool: Allow specifying the LGPL version number through
43704         --lgpl=2 or --lgpl=3.
43705         (func_usage): Document --lgpl with argument.
43706         Handle --lgpl=... arguments.
43707         (func_import): Recognize also gl_LGPL calls with an argument. When
43708         --lgpl=2 is used and the module's license is just LGPL, report an
43709         error. Set sed_transform_lib_file according to the lgpl variable. In
43710         the generated files, use --lgpl or gl_LGPL invocations with argument,
43711         if necessary.
43712         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43713         an LGPv2+ license.
43714         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43715         gl_LGPL macro.
43716
43717 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43718             Bruno Haible  <bruno@clisp.org>
43719
43720         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43721         (u16_uctomb_aux): Likewise.
43722         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43723         !HAVE_INLINE.
43724         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43725
43726 2007-10-28  Bruno Haible  <bruno@clisp.org>
43727
43728         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43729         Invoke AM_GETTEXT_OPTION if it exists.
43730         * modules/vasprintf: Likewise.
43731         * modules/verror: Likewise.
43732         * modules/xprintf: Likewise.
43733         * modules/xvasprintf: Likewise.
43734
43735 2007-10-27  Ben Pfaff  <blp@gnu.org>
43736
43737         * lib/math.in.h: Define isfinite macro and prototypes for
43738         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43739         implementations.
43740         * m4/math_h.m4: New substitutions for isfinite module.
43741         * lib/isfinite.c: New file.
43742         * m4/isfinite.m4: New file.
43743         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43744         * modules/isfinite: New file.
43745         * modules/isfinite-tests: New file.
43746         * tests/tests-isfinite.c: New file.
43747         * doc/functions/isfinite.texi: Mention isfinite module.
43748         * MODULES.html.sh: Mention new module.
43749
43750 2007-10-27  Ben Pfaff  <blp@gnu.org>
43751
43752         Ralf Wildenhues reported that Tru64 4.0D declares the round
43753         functions but does not have definitions.
43754         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43755         cannot be found in any library, set the output variable to
43756         "missing" instead of "".
43757         * m4/round.m4: Also use our substitute if we cannot find round in
43758         any library, even if it is declared.
43759         * m4/roundf.m4: Likewise for roundf.
43760         * m4/roundl.m4: Likewise for roundl.
43761         * lib/math.in.h: Undefine roundf, round, roundl before defining
43762         their replacements, to allow for hypothetical systems where these
43763         may be defined as macros but not available in libraries.
43764
43765 2007-10-27  Bruno Haible  <bruno@clisp.org>
43766
43767         * doc/gnulib.texi: Invoke @firstparagraphindent.
43768         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43769         changes in gnulib.
43770         (Source changes): New section.
43771
43772 2007-10-26  Bruno Haible  <bruno@clisp.org>
43773
43774         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43775         borrowed from autoconf.
43776
43777 2007-10-26  Bruno Haible  <bruno@clisp.org>
43778
43779         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43780         strerror returned the empty string. Needed on HP-UX 11.00.
43781
43782 2007-10-24  Micah Cowan  <micah@cowan.name>
43783
43784         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43785         * build-aux/bootstrap: Remove support for now-unnecessary option,
43786         --cvs-user, and envvars CVS_USER, CVS_RSH.
43787
43788 2007-10-24  Jim Meyering  <meyering@redhat.com>
43789
43790         Avoid diagnostics from sha1sum when there is no cached checksum.
43791         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43792         if the po.s1 file hasn't been created yet.
43793
43794         * build-aux/bootstrap: Sync from coreutils:
43795         2007-10-24  Jim Meyering  <meyering@redhat.com>
43796         Get gnulib from the git repository, not from an obsolete cvs one.
43797         * build-aux/bootstrap: Suggestion from Micah Cowan.
43798         2007-10-04  Jim Meyering  <jim@meyering.net>
43799         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43800         (update_po_files): Work also when there are no .po files in po/.
43801
43802 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43803
43804         * README: Append ".git" to git and cg examples.
43805         Problem reported by Benoit Sigoure.
43806
43807 2007-10-23  Micah Cowan  <micah@cowan.name>
43808
43809         * users.txt: Add wget.
43810
43811 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43812
43813         Fix linking of some unistdio tests on FreeBSD.
43814         * modules/unistdio/u16-vsnprintf-tests
43815         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43816         * modules/unistdio/u16-vsprintf-tests
43817         (test_u16_vsnprintf1_LDADD): Likewise.
43818         * modules/unistdio/u32-vsnprintf-tests
43819         (test_u32_vsnprintf1_LDADD): Likewise.
43820         * modules/unistdio/u32-vsprintf-tests
43821         (test_u32_vsprintf1_LDADD): Likewise.
43822         * modules/unistdio/u8-vsnprintf-tests
43823         (test_u8_vsnprintf1_LDADD): Likewise.
43824         * modules/unistdio/u8-vsprintf-tests
43825         (test_u8_vsprintf1_LDADD): Likewise.
43826         * modules/unistdio/ulc-vsnprintf-tests
43827         (test_ulc_vsnprintf1_LDADD): Likewise.
43828         * modules/unistdio/ulc-vsprintf-tests
43829         (test_ulc_vsprintf1_LDADD): Likewise.
43830
43831         Fix linking of some uniconv tests on FreeBSD.
43832         * modules/uniconv/u16-conv-from-enc-tests
43833         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43834         * modules/uniconv/u16-conv-to-enc-tests
43835         (test_u16_conv_to_enc_LDADD): Likewise.
43836         * modules/uniconv/u16-strconv-from-enc-tests
43837         (test_u16_strconv_from_enc_LDADD): Likewise.
43838         * modules/uniconv/u16-strconv-to-enc-tests
43839         (test_u16_strconv_to_enc_LDADD): Likewise.
43840         * modules/uniconv/u32-conv-from-enc-tests
43841         (test_u32_conv_from_enc_LDADD): Likewise.
43842         * modules/uniconv/u32-conv-to-enc-tests
43843         (test_u32_conv_to_enc_LDADD): Likewise.
43844         * modules/uniconv/u32-strconv-from-enc-tests
43845         (test_u32_strconv_from_enc_LDADD): Likewise.
43846         * modules/uniconv/u32-strconv-to-enc-tests
43847         (test_u32_strconv_to_enc_LDADD): Likewise.
43848         * modules/uniconv/u8-conv-from-enc-tests
43849         (test_u8_conv_from_enc_LDADD): Likewise.
43850         * modules/uniconv/u8-conv-to-enc-tests
43851         (test_u8_conv_to_enc_LDADD): Likewise.
43852         * modules/uniconv/u8-strconv-from-enc-tests
43853         (test_u8_strconv_from_enc_LDADD): Likewise.
43854         * modules/uniconv/u8-strconv-to-enc-tests
43855         (test_u8_strconv_to_enc_LDADD): Likewise.
43856
43857 2007-10-22  Bruno Haible  <bruno@clisp.org>
43858
43859         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43860         size.
43861
43862 2007-10-22  Eric Blake  <ebb9@byu.net>
43863
43864         Tweak x*printf documentation.
43865         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43866         variable name and comments.
43867         Suggested by Bruno Haible.
43868
43869 2007-10-22  Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/acl.c (copy_acl): Fix file name in comment.
43872
43873 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43874
43875         Fix Tru64 problem with stdbool.h.
43876         * lib/stdbool.in.h (false, true):
43877         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43878         Don't declare as an enum in this situation; it runs afoul of Tru64.
43879         Problem reported by Steven M. Schweda in
43880         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43881
43882 2007-10-22  Eric Blake  <ebb9@byu.net>
43883
43884         Also wrap vf?printf.
43885         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43886         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43887         (xvprintf, xvfprintf): New functions.
43888
43889 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43890
43891         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43892         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43893
43894         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43895         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43896
43897 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43898
43899         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43900         by Bruno Haible.
43901
43902 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43903
43904         * lib/getloadavg.c
43905         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43906         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43907
43908         * tests/test-i-ring.c: Work for C89.
43909
43910 2007-10-22  Bruno Haible  <bruno@clisp.org>
43911
43912         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43913         -1u, in preprocessor expression, so that we don't test for the bug
43914         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43915         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43916
43917 2007-10-22  Eric Blake  <ebb9@byu.net>
43918
43919         * tests/test-yesno.sh: Silence stderr during test.
43920
43921 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43922
43923         * modules/crypto/gc-camellia: New file.
43924
43925         * m4/gc-camellia.m4: New file.
43926
43927         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43928
43929         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43930
43931 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43932
43933         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43934         --help to stdout.  Reported by sms@antinode.org (Steven
43935         M. Schweda).
43936
43937 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43938
43939         * users.txt: Fix link to libksba.
43940
43941 2007-10-21  Ben Pfaff  <blp@gnu.org>
43942
43943         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43944         round.c roundf implementation that depends on floorf and ceilf to
43945         be tested unconditionally.
43946
43947 2007-10-21  Ben Pfaff  <blp@gnu.org>
43948
43949         * m4/check-libm-func.m4: Removed.
43950         * m4/check-math-lib.m4: New file.
43951         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43952         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43953         definition and lack of AC_LIBOBJ([roundf]).
43954         * m4/roundl.m4: Ditto, and similarly for roundl.
43955         * modules/round: Reference new m4 file.
43956         * modules/roundf: Ditto.
43957         * modules/roundl: Ditto.
43958         * tests/test-round2.c (main): Use ROUND instead of round.
43959         Bug report from Bruno Haible.
43960
43961 2007-10-21  Bruno Haible  <bruno@clisp.org>
43962
43963         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43964         context.
43965
43966 2007-10-21  Bruno Haible  <bruno@clisp.org>
43967
43968         * tests/test-wcwidth.c (main): Allow negative result for some control
43969         characters.
43970
43971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43972         Needed on OSF/1 5.1.
43973
43974 2007-10-21  Bruno Haible  <bruno@clisp.org>
43975
43976         * tests/test-floorf1.c: Include isnanf.h.
43977         (main): Use isnanf() instead of isnan().
43978         * tests/test-ceilf1.c: Include isnanf.h.
43979         (main): Use isnanf() instead of isnan().
43980         * tests/test-truncf1.c: Include isnanf.h.
43981         (main): Use isnanf() instead of isnan().
43982         * tests/test-roundf1.c: Include isnanf.h.
43983         (main): Use isnanf() instead of isnan().
43984
43985 2007-10-21  Eric Blake  <ebb9@byu.net>
43986
43987         * users.txt: Update URL for m4.
43988
43989 2007-10-21  Bruno Haible  <bruno@clisp.org>
43990
43991         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43992
43993 2007-10-21  Bruno Haible  <bruno@clisp.org>
43994
43995         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43996         Git's management files if the CVS files are not present.
43997
43998 2007-10-20  Bruno Haible  <bruno@clisp.org>
43999
44000         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44001         gcc-3.4.x.
44002
44003 2007-10-20  Ben Pfaff  <blp@gnu.org>
44004
44005         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44006         implementations.
44007         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44008         * lib/round.c: New file.
44009         * lib/roundf.c: New file.
44010         * lib/roundl.c: New file.
44011         * m4/round.m4: New file.
44012         * m4/roundf.m4: New file.
44013         * m4/roundl.m4: New file.
44014         * m4/check-libm-func-m4: New file.
44015         * modules/math: Replace round, roundf, roundl related @VARS@ in
44016         math.in.h.
44017         * modules/round: New file.
44018         * modules/round-tests: New file.
44019         * modules/roundf: New file.
44020         * modules/roundf-tests: New file.
44021         * modules/roundl: New file.
44022         * modules/roundl-tests: New file.
44023         * tests/test-round1.c: New file.
44024         * tests/test-round2.c: New file.
44025         * tests/test-roundf1.c: New file.
44026         * tests/test-roundf2.c: New file.
44027         * tests/test-roundl.c: New file.
44028         * doc/functions/round.texi: Mention round module.
44029         * doc/functions/roundf.texi: Mention roundf module.
44030         * doc/functions/roundl.texi: Mention roundl module.
44031         * MODULES.html.sh: Mention new modules.
44032         Thanks to Bruno Haible for suggestions.
44033
44034 2007-10-20  Jim Meyering  <meyering@redhat.com>
44035
44036         * lib/xprintf.c: Include <config.h> unconditionally.
44037
44038         Change xprintf's license to GPL.
44039         * modules/xprintf (License): s/LGPL/GPL/, since this module
44040         depends on modules (exit and exitfail) which are GPL.
44041         Suggestion from Bruno Haible.
44042
44043         xprintf fixes.
44044         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44045         Use a clearer diagnostic.
44046         Patch from Bruno Haible.
44047
44048 2007-10-20  Bruno Haible  <bruno@clisp.org>
44049
44050         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44051         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44052         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44053
44054 2007-10-20  Bruno Haible  <bruno@clisp.org>
44055
44056         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44057         precision in the comparison result > x - 1 or similar.
44058         * tests/test-ceilf2.c (correct_result_p): Likewise.
44059         * tests/test-truncf2.c (correct_result_p): Likewise.
44060         * tests/test-trunc2.c (correct_result_p): Likewise.
44061         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44062
44063 2007-10-20  Bruno Haible  <bruno@clisp.org>
44064
44065         * modules/ceil: New file.
44066         * m4/ceil.m4: New file.
44067         * doc/functions/ceil.texi: Mention the 'ceil' module.
44068
44069 2007-10-20  Bruno Haible  <bruno@clisp.org>
44070
44071         * modules/floor: New file.
44072         * m4/floor.m4: New file.
44073         * doc/functions/floor.texi: Mention the 'floor' module.
44074
44075 2007-10-20  Bruno Haible  <bruno@clisp.org>
44076
44077         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44078         of %a.
44079         * modules/floorf-tests (Depends-on): Likewise.
44080         * modules/truncf-tests (Depends-on): Likewise.
44081         * modules/trunc-tests (Depends-on): Likewise.
44082         Reported by Ben Pfaff.
44083
44084 2007-10-19  Jim Meyering  <meyering@redhat.com>
44085
44086         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44087         Don't bother testing specific errno values.  Just test ferror.
44088
44089         New module: xprintf
44090         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44091
44092 2007-10-19  Bruno Haible  <bruno@clisp.org>
44093
44094         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44095         syntax.
44096         * modules/javaexec (Makefile.am): Likewise.
44097         * modules/relocatable-prog (Makefile.am): Likewise.
44098         Suggested by Jim Meyering.
44099
44100 2007-10-18  Bruno Haible  <bruno@clisp.org>
44101
44102         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44103         Reported by Jim Meyering.
44104
44105 2007-10-18  Eric Blake  <ebb9@byu.net>
44106
44107         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44108
44109 2007-10-18  Bruno Haible  <bruno@clisp.org>
44110
44111         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44112         the format string into writable memory. Needed in Fortify conditions.
44113
44114 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44115             Bruno Haible  <bruno@clisp.org>
44116
44117         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44118         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44119         * modules/trim (Depends-on): Add mbchar.
44120         (configure.ac): Add gl_FUNC_MBRTOWC.
44121         (Makefile.am): Augment lib_SOURCES.
44122
44123 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44124
44125         Modify glob.c to use fstatat and dirfd, to simplify it.
44126         Suggested by Eric Blake.
44127         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44128         Don't include <stdbool.h>; not used.
44129         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44130         (link_exists_p): Simplify implementation, since we can now assume
44131         dirfd and fstatat.
44132         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44133
44134 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44135
44136         * gnulib-tool (func_get_dependencies): Fix sed script to
44137         match only tests.
44138
44139 2007-10-17  Bruno Haible  <bruno@clisp.org>
44140
44141         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44142         allow locale names without encoding suffix.
44143         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44144         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44145
44146 2007-10-16  Bruno Haible  <bruno@clisp.org>
44147
44148         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44149         * lib/getgroups.c (getgroups): Likewise.
44150         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44151
44152 2007-10-16  Bruno Haible  <bruno@clisp.org>
44153
44154         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44155         * modules/malloc-posix (License): Likewise.
44156         * modules/realloc-posix (License): Likewise.
44157         * modules/calloc-posix (License): Likewise.
44158         * modules/intprops (License): Change from GPL to LGPL, with
44159         Paul Eggert's approval.
44160
44161 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44162
44163         Merge glibc changes into lib/glob.c.
44164
44165         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44166         2007-10-15 04:59:03 UTC.  Here are the changes:
44167
44168         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44169
44170         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44171
44172         * lib/glob.c: Add some branch prediction throughout.
44173
44174         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44175
44176         [BZ #5103]
44177         * lib/glob.c (glob): Recognize patterns starting \/.
44178
44179         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44180
44181         [BZ #3996]
44182         * lib/glob.c (attribute_hidden): Define if not defined.
44183         (glob): Unescape dirname, filename or username when needed and not
44184         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44185         is NULL.  Handle unescaped [ in pattern without closing ].
44186         Don't pass GLOB_CHECK down to recursive glob for directories.
44187         (__glob_pattern_type): New function.
44188         (__glob_pattern_p): Implement using __glob_pattern_type.
44189         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44190         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44191         Remove unreachable code.
44192
44193         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44194
44195         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44196         explain why there are no leaks.
44197
44198         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44199
44200         [BZ #3253]
44201         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44202         time, rather allocate increasingly bigger arrays of pointers, if
44203         possible with alloca, if too large with malloc.
44204
44205 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44206
44207         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44208         Problem reported by H.Merijn Brand in
44209         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44210         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44211         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44212
44213 2007-10-15  Bruno Haible  <bruno@clisp.org>
44214
44215         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44216         with explicit rpl_ prefix.
44217         * lib/fopen.c (fopen): Likewise.
44218         * lib/freopen.c (freopen): Likewise.
44219         * lib/iconv.c (iconv): Likewise.
44220         * lib/iconv_close.c (iconv_close): Likewise.
44221
44222 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44223
44224         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44225
44226 2007-10-15  Bruno Haible  <bruno@clisp.org>
44227
44228         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44229         <stddef.h> instead of <stdlib.h> since we only need NULL.
44230         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44231
44232 2007-10-15  Bruno Haible  <bruno@clisp.org>
44233
44234         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44235         Replace paragraph talking about LIBOBJS.
44236         Reported by Colin Watson <cjwatson@debian.org>.
44237
44238 2007-10-15  Bruno Haible  <bruno@clisp.org>
44239
44240         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44241         <stdlib.h> before using NULL.
44242
44243 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44244
44245         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44246         Reported by Albert Chin <china@thewrittenword.com>.
44247
44248 2007-10-14  Bruno Haible  <bruno@clisp.org>
44249
44250         * modules/iconv_open-utf-tests: New file.
44251         * tests/test-iconv-utf.c: New file.
44252
44253         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44254         * modules/iconv_open-utf: New file.
44255         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44256         (iconv, iconv_close): New declarations.
44257         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44258         be defined.
44259         (iconv_open): Add special handling of conversion between UTF-8 and
44260         UTF-{16,32}{BE,LE}.
44261         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44262         * lib/iconv_close.c: New file.
44263         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44264         gl_FUNC_ICONV_OPEN.
44265         (gl_FUNC_ICONV_OPEN): Use it.
44266         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44267         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44268         and REPLACE_ICONV_UTF.
44269         * modules/iconv_open (Depends-on): Add c-strcase.
44270         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44271         ICONV_CONST.
44272         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44273
44274 2007-10-13  Albert Chin  <china@thewrittenword.com>
44275             Bruno Haible  <bruno@clisp.org>
44276
44277         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44278         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44279
44280 2007-10-13  Bruno Haible  <bruno@clisp.org>
44281
44282         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44283         defined, use the ISO C99 inline semantics.
44284         * lib/argp.h (ARGP_EI): Likewise.
44285
44286 2007-10-13  Bruno Haible  <bruno@clisp.org>
44287
44288         Handle 'inline' change in gcc 4.3.0.
44289         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44290         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44291         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44292         argp_fmtstream_point): Disable 'extern' declaration if the function
44293         definition is going to be provided inline.
44294         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44295         semantics, not the ISO C99 inline semantics.
44296         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44297         'extern' declaration if the function definition is going to be provided
44298         inline.
44299         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44300         the GNU C inline semantics, not the ISO C99 inline semantics. With
44301         GCC 4.2, avoid a warning.
44302
44303 2007-10-13  Bruno Haible  <bruno@clisp.org>
44304
44305         * lib/freading.h (freading): Enable the use of __freading for
44306         glibc >= 2.7.
44307         * lib/freading.c (freading): Likewise.
44308
44309 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44310
44311         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44312         "warning: C99 inline functions are not supported; using GNU89".
44313
44314 2007-10-12  Bruno Haible  <bruno@clisp.org>
44315
44316         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44317         of 2.
44318         * tests/test-ceilf2.c: New file.
44319         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44320
44321         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44322         * modules/ceilf-tests: Update.
44323
44324 2007-10-12  Bruno Haible  <bruno@clisp.org>
44325
44326         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44327         of 2.
44328         * tests/test-floorf2.c: New file.
44329         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44330
44331         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44332         * modules/floorf-tests: Update.
44333
44334 2007-10-12  Bruno Haible  <bruno@clisp.org>
44335
44336         * tests/test-trunc2.c: New file.
44337         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44338
44339         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44340         * modules/trunc-tests: Update.
44341
44342 2007-10-12  Bruno Haible  <bruno@clisp.org>
44343
44344         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
44345         of 2.
44346         * tests/test-truncf2.c: New file.
44347         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
44348
44349         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
44350         * modules/truncf-tests: Update.
44351
44352 2007-10-11  Eric Blake  <ebb9@byu.net>
44353
44354         Don't claim strerror is broken on Interix.
44355         * doc/functions/strerror.texi (strerror): Known broken systems are
44356         now Solaris 8, and not Interix.
44357         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
44358         Interix on cross-compile.
44359         Reported by Martin Koeppe in
44360         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
44361
44362 2007-10-11  Bruno Haible  <bruno@clisp.org>
44363
44364         * modules/i-ring-tests: New file.
44365         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
44366         instead of assert.
44367
44368 2007-10-11  Bruno Haible  <bruno@clisp.org>
44369
44370         * modules/filenamecat-tests: New file.
44371         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
44372         * lib/filenamecat.c: Remove test code.
44373
44374 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44375
44376         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
44377
44378         * lib/strerror.c: Include <string.h> always, to test interface,
44379         and to remove the need for the dummy.
44380         Include intprops.h to compute width instead of doing it ourselves
44381         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
44382         (strerror): Define it to return NULL if there's no system strerror.
44383         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
44384         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
44385         ancient pre-strerror Unix systems well any more.  Saying "unknown
44386         system error" is enough.
44387         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
44388         simpler strerror.c implementation.
44389         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
44390         Simplify the tests to reflect the simpler strerror implementation.
44391         * modules/strerror (Depends-on): Add intprops.
44392
44393 2007-10-09  Eric Blake  <ebb9@byu.net>
44394
44395         Silence test-fpending.
44396         * modules/fpending-tests (Files): Add wrapper script.
44397         * tests/test-fpending.sh: New file.
44398
44399 2007-10-09  Bruno Haible  <bruno@clisp.org>
44400
44401         * MODULES.html.sh (func_module): Don't create a hyperlink for
44402         function names like 'printf_frexp'.
44403         (Misc): Add crc, memxor.
44404         (Characteristics of floating types): New section.
44405         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
44406         isnanf-nolibm, signbit, trunc, truncf, truncl.
44407         (Enhancements for ISO C 99 functions): New subsection Input/output.
44408         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
44409         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
44410         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
44411         (Compatibility checks for POSIX:2001 functions): Add clock-time.
44412         (Enhancements for POSIX:2001 functions): Add chdir-long.
44413         (File system functions): Add areadlink, chdir-safer, read-file.
44414         Remove cycle-check.
44415         (File system as inode set): New section.
44416         (Date and time): Add gethrxtime.
44417         (Multithreading): Add openmp.
44418         (Internationalization functions): Add localename.
44419         (Unicode string functions): Add unistr/u*-mbsnlen.
44420         (Support for maintaining and releasing projects): Add git-version-gen.
44421         (Lone files): Remove directories.
44422
44423 2007-10-08  Ben Pfaff  <blp@gnu.org>
44424
44425         * lib/xmalloca.h: Fix typo in comment.
44426
44427 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44428
44429         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
44430         when avoiding problems with integer overflow.  Use a portable test
44431         instead.
44432
44433 2007-10-08  Simon Josefsson  <simon@josefsson.org>
44434
44435         * modules/dummy (License): Change to LGPLv2+.
44436         * modules/float (License): Likewise
44437         * modules/realloc (License): Likewise
44438         * modules/stdlib (License): Likewise
44439
44440 2007-10-07  Bruno Haible  <bruno@clisp.org>
44441
44442         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
44443         * floor.c (TWO_MANT_DIG): Likewise.
44444         * ceil.c (TWO_MANT_DIG): Likewise.
44445         Reported by Ben Pfaff.
44446
44447 2007-10-07  Bruno Haible  <bruno@clisp.org>
44448
44449         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
44450         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
44451         * lib/frexp.c (FUNC): Likewise.
44452         * lib/printf-frexp.h (printf_frexp): Likewise.
44453         * lib/printf-frexpl.h (printf_frexpl): Likewise.
44454         * lib/printf-frexp.c (FUNC): Likewise.
44455         Suggested by Jim Meyering.
44456
44457 2007-10-07  Jim Meyering  <meyering@redhat.com>
44458
44459         Make xnanosleep's integer overflow test more robust.
44460         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
44461         so that gcc-4.3.0 doesn't optimize away this test for overflow.
44462
44463 2007-10-07  Bruno Haible  <bruno@clisp.org>
44464
44465         * NEWS: Mention the license change.
44466
44467         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
44468         abbreviations in the modules files.
44469
44470         Change copyright notice from GPLv2+ to GPLv3+.
44471         * README: Change copyright notice.
44472         * MODULES.html.sh: Likewise.
44473         * build-aux/bootstrap.conf: Likewise.
44474         * build-aux/config.libpath: Likewise.
44475         * build-aux/csharpcomp.sh.in: Likewise.
44476         * build-aux/csharpexec.sh.in: Likewise.
44477         * build-aux/install-reloc: Likewise.
44478         * build-aux/javacomp.sh.in: Likewise.
44479         * build-aux/javaexec.sh.in: Likewise.
44480         * build-aux/ldd.sh.in: Likewise.
44481         * build-aux/reloc-ldflags: Likewise.
44482         * build-aux/relocatable.sh.in: Likewise.
44483         * build-aux/x-to-1.in: Likewise.
44484         * check-module: Likewise.
44485         * config/srclistvars.sh: Likewise.
44486         * gnulib-tool: Likewise.
44487         * lib/acl-internal.h: Likewise.
44488         * lib/acl.c: Likewise.
44489         * lib/acl.h: Likewise.
44490         * lib/acl_entries.c: Likewise.
44491         * lib/areadlink-with-size.c: Likewise.
44492         * lib/areadlink.c: Likewise.
44493         * lib/areadlink.h: Likewise.
44494         * lib/argmatch.c: Likewise.
44495         * lib/argmatch.h: Likewise.
44496         * lib/argp-ba.c: Likewise.
44497         * lib/argp-eexst.c: Likewise.
44498         * lib/argp-fmtstream.c: Likewise.
44499         * lib/argp-fmtstream.h: Likewise.
44500         * lib/argp-fs-xinl.c: Likewise.
44501         * lib/argp-help.c: Likewise.
44502         * lib/argp-namefrob.h: Likewise.
44503         * lib/argp-parse.c: Likewise.
44504         * lib/argp-pin.c: Likewise.
44505         * lib/argp-pv.c: Likewise.
44506         * lib/argp-pvh.c: Likewise.
44507         * lib/argp-xinl.c: Likewise.
44508         * lib/argp.h: Likewise.
44509         * lib/at-func.c: Likewise.
44510         * lib/atanl.c: Likewise.
44511         * lib/backupfile.c: Likewise.
44512         * lib/backupfile.h: Likewise.
44513         * lib/basename.c: Likewise.
44514         * lib/binary-io.h: Likewise.
44515         * lib/byteswap.in.h: Likewise.
44516         * lib/c-stack.c: Likewise.
44517         * lib/c-stack.h: Likewise.
44518         * lib/c-strcasestr.c: Likewise.
44519         * lib/c-strcasestr.h: Likewise.
44520         * lib/c-strstr.c: Likewise.
44521         * lib/c-strstr.h: Likewise.
44522         * lib/c-strtod.c: Likewise.
44523         * lib/calloc.c: Likewise.
44524         * lib/canon-host.c: Likewise.
44525         * lib/canon-host.h: Likewise.
44526         * lib/canonicalize-lgpl.c: Likewise.
44527         * lib/canonicalize.c: Likewise.
44528         * lib/canonicalize.h: Likewise.
44529         * lib/ceil.c: Likewise.
44530         * lib/ceilf.c: Likewise.
44531         * lib/ceill.c: Likewise.
44532         * lib/chdir-long.c: Likewise.
44533         * lib/chdir-long.h: Likewise.
44534         * lib/chdir-safer.c: Likewise.
44535         * lib/chdir-safer.h: Likewise.
44536         * lib/chown.c: Likewise.
44537         * lib/classpath.c: Likewise.
44538         * lib/classpath.h: Likewise.
44539         * lib/clean-temp.c: Likewise.
44540         * lib/clean-temp.h: Likewise.
44541         * lib/cloexec.c: Likewise.
44542         * lib/close-stream.c: Likewise.
44543         * lib/closein.c: Likewise.
44544         * lib/closein.h: Likewise.
44545         * lib/closeout.c: Likewise.
44546         * lib/closeout.h: Likewise.
44547         * lib/concat-filename.c: Likewise.
44548         * lib/copy-file.c: Likewise.
44549         * lib/copy-file.h: Likewise.
44550         * lib/count-one-bits.h: Likewise.
44551         * lib/crc.c: Likewise.
44552         * lib/crc.h: Likewise.
44553         * lib/creat-safer.c: Likewise.
44554         * lib/csharpcomp.c: Likewise.
44555         * lib/csharpcomp.h: Likewise.
44556         * lib/csharpexec.c: Likewise.
44557         * lib/csharpexec.h: Likewise.
44558         * lib/cycle-check.c: Likewise.
44559         * lib/cycle-check.h: Likewise.
44560         * lib/diacrit.c: Likewise.
44561         * lib/diacrit.h: Likewise.
44562         * lib/diffseq.h: Likewise.
44563         * lib/dirchownmod.c: Likewise.
44564         * lib/dirent.in.h: Likewise.
44565         * lib/dirfd.c: Likewise.
44566         * lib/dirfd.h: Likewise.
44567         * lib/dirname.c: Likewise.
44568         * lib/dirname.h: Likewise.
44569         * lib/dummy.c: Likewise.
44570         * lib/dup-safer.c: Likewise.
44571         * lib/dup2.c: Likewise.
44572         * lib/eealloc.h: Likewise.
44573         * lib/error.c: Likewise.
44574         * lib/error.h: Likewise.
44575         * lib/euidaccess.c: Likewise.
44576         * lib/exclude.c: Likewise.
44577         * lib/exclude.h: Likewise.
44578         * lib/execute.c: Likewise.
44579         * lib/execute.h: Likewise.
44580         * lib/exitfail.c: Likewise.
44581         * lib/exitfail.h: Likewise.
44582         * lib/expl.c: Likewise.
44583         * lib/fatal-signal.c: Likewise.
44584         * lib/fatal-signal.h: Likewise.
44585         * lib/fbufmode.c: Likewise.
44586         * lib/fbufmode.h: Likewise.
44587         * lib/fchdir.c: Likewise.
44588         * lib/fchmodat.c: Likewise.
44589         * lib/fchownat.c: Likewise.
44590         * lib/fcntl--.h: Likewise.
44591         * lib/fcntl-safer.h: Likewise.
44592         * lib/fcntl.in.h: Likewise.
44593         * lib/fd-safer.c: Likewise.
44594         * lib/fflush.c: Likewise.
44595         * lib/file-has-acl.c: Likewise.
44596         * lib/file-set.c: Likewise.
44597         * lib/file-type.c: Likewise.
44598         * lib/file-type.h: Likewise.
44599         * lib/fileblocks.c: Likewise.
44600         * lib/filemode.c: Likewise.
44601         * lib/filemode.h: Likewise.
44602         * lib/filename.h: Likewise.
44603         * lib/filenamecat.c: Likewise.
44604         * lib/filenamecat.h: Likewise.
44605         * lib/findprog.c: Likewise.
44606         * lib/findprog.h: Likewise.
44607         * lib/float.in.h: Likewise.
44608         * lib/floor.c: Likewise.
44609         * lib/floorf.c: Likewise.
44610         * lib/floorl.c: Likewise.
44611         * lib/fopen-safer.c: Likewise.
44612         * lib/fopen.c: Likewise.
44613         * lib/fpending.c: Likewise.
44614         * lib/fpending.h: Likewise.
44615         * lib/fprintf.c: Likewise.
44616         * lib/fprintftime.h: Likewise.
44617         * lib/fpucw.h: Likewise.
44618         * lib/fpurge.c: Likewise.
44619         * lib/fpurge.h: Likewise.
44620         * lib/freadable.c: Likewise.
44621         * lib/freadable.h: Likewise.
44622         * lib/freadahead.c: Likewise.
44623         * lib/freadahead.h: Likewise.
44624         * lib/freading.c: Likewise.
44625         * lib/freading.h: Likewise.
44626         * lib/free.c: Likewise.
44627         * lib/freopen.c: Likewise.
44628         * lib/frexp.c: Likewise.
44629         * lib/frexpl.c: Likewise.
44630         * lib/fseek.c: Likewise.
44631         * lib/fseterr.c: Likewise.
44632         * lib/fseterr.h: Likewise.
44633         * lib/fstatat.c: Likewise.
44634         * lib/fstrcmp.c: Likewise.
44635         * lib/fstrcmp.h: Likewise.
44636         * lib/fsusage.c: Likewise.
44637         * lib/fsusage.h: Likewise.
44638         * lib/ftell.c: Likewise.
44639         * lib/ftello.c: Likewise.
44640         * lib/fts-cycle.c: Likewise.
44641         * lib/fts.c: Likewise.
44642         * lib/fts_.h: Likewise.
44643         * lib/full-read.c: Likewise.
44644         * lib/full-read.h: Likewise.
44645         * lib/full-write.c: Likewise.
44646         * lib/full-write.h: Likewise.
44647         * lib/fwritable.c: Likewise.
44648         * lib/fwritable.h: Likewise.
44649         * lib/fwriteerror.c: Likewise.
44650         * lib/fwriteerror.h: Likewise.
44651         * lib/fwriting.c: Likewise.
44652         * lib/fwriting.h: Likewise.
44653         * lib/gcd.c: Likewise.
44654         * lib/gcd.h: Likewise.
44655         * lib/getcwd.c: Likewise.
44656         * lib/getdate.h: Likewise.
44657         * lib/getdate.y: Likewise.
44658         * lib/getdomainname.c: Likewise.
44659         * lib/getdomainname.h: Likewise.
44660         * lib/getgroups.c: Likewise.
44661         * lib/gethostname.c: Likewise.
44662         * lib/gethrxtime.c: Likewise.
44663         * lib/gethrxtime.h: Likewise.
44664         * lib/getloadavg.c: Likewise.
44665         * lib/getndelim2.c: Likewise.
44666         * lib/getndelim2.h: Likewise.
44667         * lib/getnline.c: Likewise.
44668         * lib/getnline.h: Likewise.
44669         * lib/getopt.c: Likewise.
44670         * lib/getopt.in.h: Likewise.
44671         * lib/getopt1.c: Likewise.
44672         * lib/getopt_int.h: Likewise.
44673         * lib/getpagesize.h: Likewise.
44674         * lib/getsubopt.c: Likewise.
44675         * lib/gettime.c: Likewise.
44676         * lib/getugroups.c: Likewise.
44677         * lib/getugroups.h: Likewise.
44678         * lib/getusershell.c: Likewise.
44679         * lib/gl_anyavltree_list1.h: Likewise.
44680         * lib/gl_anyavltree_list2.h: Likewise.
44681         * lib/gl_anyhash_list1.h: Likewise.
44682         * lib/gl_anyhash_list2.h: Likewise.
44683         * lib/gl_anylinked_list1.h: Likewise.
44684         * lib/gl_anylinked_list2.h: Likewise.
44685         * lib/gl_anyrbtree_list1.h: Likewise.
44686         * lib/gl_anyrbtree_list2.h: Likewise.
44687         * lib/gl_anytree_list1.h: Likewise.
44688         * lib/gl_anytree_list2.h: Likewise.
44689         * lib/gl_anytree_oset.h: Likewise.
44690         * lib/gl_anytreehash_list1.h: Likewise.
44691         * lib/gl_anytreehash_list2.h: Likewise.
44692         * lib/gl_array_list.c: Likewise.
44693         * lib/gl_array_list.h: Likewise.
44694         * lib/gl_array_oset.c: Likewise.
44695         * lib/gl_array_oset.h: Likewise.
44696         * lib/gl_avltree_list.c: Likewise.
44697         * lib/gl_avltree_list.h: Likewise.
44698         * lib/gl_avltree_oset.c: Likewise.
44699         * lib/gl_avltree_oset.h: Likewise.
44700         * lib/gl_avltreehash_list.c: Likewise.
44701         * lib/gl_avltreehash_list.h: Likewise.
44702         * lib/gl_carray_list.c: Likewise.
44703         * lib/gl_carray_list.h: Likewise.
44704         * lib/gl_linked_list.c: Likewise.
44705         * lib/gl_linked_list.h: Likewise.
44706         * lib/gl_linkedhash_list.c: Likewise.
44707         * lib/gl_linkedhash_list.h: Likewise.
44708         * lib/gl_list.c: Likewise.
44709         * lib/gl_list.h: Likewise.
44710         * lib/gl_oset.c: Likewise.
44711         * lib/gl_oset.h: Likewise.
44712         * lib/gl_rbtree_list.c: Likewise.
44713         * lib/gl_rbtree_list.h: Likewise.
44714         * lib/gl_rbtree_oset.c: Likewise.
44715         * lib/gl_rbtree_oset.h: Likewise.
44716         * lib/gl_rbtreehash_list.c: Likewise.
44717         * lib/gl_rbtreehash_list.h: Likewise.
44718         * lib/gl_sublist.c: Likewise.
44719         * lib/gl_sublist.h: Likewise.
44720         * lib/group-member.c: Likewise.
44721         * lib/group-member.h: Likewise.
44722         * lib/hard-locale.c: Likewise.
44723         * lib/hard-locale.h: Likewise.
44724         * lib/hash-pjw.c: Likewise.
44725         * lib/hash-pjw.h: Likewise.
44726         * lib/hash-triple.c: Likewise.
44727         * lib/hash.c: Likewise.
44728         * lib/hash.h: Likewise.
44729         * lib/human.c: Likewise.
44730         * lib/human.h: Likewise.
44731         * lib/i-ring.c: Likewise.
44732         * lib/i-ring.h: Likewise.
44733         * lib/idcache.c: Likewise.
44734         * lib/imaxabs.c: Likewise.
44735         * lib/imaxdiv.c: Likewise.
44736         * lib/inet_pton.c: Likewise.
44737         * lib/inet_pton.h: Likewise.
44738         * lib/intprops.h: Likewise.
44739         * lib/inttostr.c: Likewise.
44740         * lib/inttostr.h: Likewise.
44741         * lib/inttypes.in.h: Likewise.
44742         * lib/isapipe.c: Likewise.
44743         * lib/isdir.c: Likewise.
44744         * lib/isnan.c: Likewise.
44745         * lib/isnan.h: Likewise.
44746         * lib/isnanf.c: Likewise.
44747         * lib/isnanf.h: Likewise.
44748         * lib/isnanl-nolibm.h: Likewise.
44749         * lib/isnanl.c: Likewise.
44750         * lib/isnanl.h: Likewise.
44751         * lib/javacomp.c: Likewise.
44752         * lib/javacomp.h: Likewise.
44753         * lib/javaexec.c: Likewise.
44754         * lib/javaexec.h: Likewise.
44755         * lib/javaversion.c: Likewise.
44756         * lib/javaversion.h: Likewise.
44757         * lib/javaversion.java: Likewise.
44758         * lib/lbrkprop.h: Likewise.
44759         * lib/lchmod.h: Likewise.
44760         * lib/lchown.c: Likewise.
44761         * lib/ldexpl.c: Likewise.
44762         * lib/linebreak.c: Likewise.
44763         * lib/linebreak.h: Likewise.
44764         * lib/linebuffer.c: Likewise.
44765         * lib/linebuffer.h: Likewise.
44766         * lib/locale.in.h: Likewise.
44767         * lib/logl.c: Likewise.
44768         * lib/long-options.c: Likewise.
44769         * lib/long-options.h: Likewise.
44770         * lib/lstat.c: Likewise.
44771         * lib/lstat.h: Likewise.
44772         * lib/math.in.h: Likewise.
44773         * lib/mbchar.c: Likewise.
44774         * lib/mbchar.h: Likewise.
44775         * lib/mbfile.h: Likewise.
44776         * lib/mbiter.h: Likewise.
44777         * lib/mbscasecmp.c: Likewise.
44778         * lib/mbscasestr.c: Likewise.
44779         * lib/mbschr.c: Likewise.
44780         * lib/mbscspn.c: Likewise.
44781         * lib/mbslen.c: Likewise.
44782         * lib/mbsncasecmp.c: Likewise.
44783         * lib/mbsnlen.c: Likewise.
44784         * lib/mbspbrk.c: Likewise.
44785         * lib/mbspcasecmp.c: Likewise.
44786         * lib/mbsrchr.c: Likewise.
44787         * lib/mbssep.c: Likewise.
44788         * lib/mbsspn.c: Likewise.
44789         * lib/mbsstr.c: Likewise.
44790         * lib/mbstok_r.c: Likewise.
44791         * lib/mbswidth.c: Likewise.
44792         * lib/mbswidth.h: Likewise.
44793         * lib/mbuiter.h: Likewise.
44794         * lib/memcasecmp.c: Likewise.
44795         * lib/memcasecmp.h: Likewise.
44796         * lib/memchr.c: Likewise.
44797         * lib/memcmp.c: Likewise.
44798         * lib/memcoll.c: Likewise.
44799         * lib/memcoll.h: Likewise.
44800         * lib/memcpy.c: Likewise.
44801         * lib/memrchr.c: Likewise.
44802         * lib/mkancesdirs.c: Likewise.
44803         * lib/mkdir-p.c: Likewise.
44804         * lib/mkdir-p.h: Likewise.
44805         * lib/mkdir.c: Likewise.
44806         * lib/mkdirat.c: Likewise.
44807         * lib/mkdtemp.c: Likewise.
44808         * lib/mkstemp-safer.c: Likewise.
44809         * lib/mkstemp.c: Likewise.
44810         * lib/modechange.c: Likewise.
44811         * lib/modechange.h: Likewise.
44812         * lib/mountlist.c: Likewise.
44813         * lib/mountlist.h: Likewise.
44814         * lib/mpsort.c: Likewise.
44815         * lib/nanosleep.c: Likewise.
44816         * lib/obstack.c: Likewise.
44817         * lib/obstack.h: Likewise.
44818         * lib/open-safer.c: Likewise.
44819         * lib/open.c: Likewise.
44820         * lib/openat-die.c: Likewise.
44821         * lib/openat-priv.h: Likewise.
44822         * lib/openat-proc.c: Likewise.
44823         * lib/openat.c: Likewise.
44824         * lib/openat.h: Likewise.
44825         * lib/pagealign_alloc.c: Likewise.
44826         * lib/pagealign_alloc.h: Likewise.
44827         * lib/physmem.c: Likewise.
44828         * lib/physmem.h: Likewise.
44829         * lib/pipe-safer.c: Likewise.
44830         * lib/pipe.c: Likewise.
44831         * lib/pipe.h: Likewise.
44832         * lib/posixtm.c: Likewise.
44833         * lib/posixtm.h: Likewise.
44834         * lib/posixver.c: Likewise.
44835         * lib/printf-frexp.c: Likewise.
44836         * lib/printf-frexp.h: Likewise.
44837         * lib/printf-frexpl.c: Likewise.
44838         * lib/printf-frexpl.h: Likewise.
44839         * lib/printf.c: Likewise.
44840         * lib/progname.c: Likewise.
44841         * lib/progname.h: Likewise.
44842         * lib/progreloc.c: Likewise.
44843         * lib/putenv.c: Likewise.
44844         * lib/quote.c: Likewise.
44845         * lib/quote.h: Likewise.
44846         * lib/quotearg.c: Likewise.
44847         * lib/quotearg.h: Likewise.
44848         * lib/raise.c: Likewise.
44849         * lib/readline.c: Likewise.
44850         * lib/readline.h: Likewise.
44851         * lib/readlink.c: Likewise.
44852         * lib/readtokens.c: Likewise.
44853         * lib/readtokens.h: Likewise.
44854         * lib/readtokens0.c: Likewise.
44855         * lib/readtokens0.h: Likewise.
44856         * lib/readutmp.c: Likewise.
44857         * lib/readutmp.h: Likewise.
44858         * lib/realloc.c: Likewise.
44859         * lib/relocwrapper.c: Likewise.
44860         * lib/rename-dest-slash.c: Likewise.
44861         * lib/rename.c: Likewise.
44862         * lib/rmdir.c: Likewise.
44863         * lib/rpmatch.c: Likewise.
44864         * lib/safe-read.c: Likewise.
44865         * lib/safe-read.h: Likewise.
44866         * lib/safe-write.c: Likewise.
44867         * lib/safe-write.h: Likewise.
44868         * lib/same-inode.h: Likewise.
44869         * lib/same.c: Likewise.
44870         * lib/same.h: Likewise.
44871         * lib/save-cwd.c: Likewise.
44872         * lib/save-cwd.h: Likewise.
44873         * lib/savedir.c: Likewise.
44874         * lib/savedir.h: Likewise.
44875         * lib/savewd.c: Likewise.
44876         * lib/savewd.h: Likewise.
44877         * lib/search.in.h: Likewise.
44878         * lib/setenv.c: Likewise.
44879         * lib/setenv.h: Likewise.
44880         * lib/settime.c: Likewise.
44881         * lib/sh-quote.c: Likewise.
44882         * lib/sh-quote.h: Likewise.
44883         * lib/sig2str.c: Likewise.
44884         * lib/sig2str.h: Likewise.
44885         * lib/signal.in.h: Likewise.
44886         * lib/signbitd.c: Likewise.
44887         * lib/signbitf.c: Likewise.
44888         * lib/signbitl.c: Likewise.
44889         * lib/sigprocmask.c: Likewise.
44890         * lib/sincosl.c: Likewise.
44891         * lib/sleep.c: Likewise.
44892         * lib/sprintf.c: Likewise.
44893         * lib/sqrtl.c: Likewise.
44894         * lib/stat-time.h: Likewise.
44895         * lib/stdio--.h: Likewise.
44896         * lib/stdio-safer.h: Likewise.
44897         * lib/stdlib--.h: Likewise.
44898         * lib/stdlib-safer.h: Likewise.
44899         * lib/stdlib.in.h: Likewise.
44900         * lib/stpcpy.c: Likewise.
44901         * lib/stpncpy.c: Likewise.
44902         * lib/strchrnul.c: Likewise.
44903         * lib/strcspn.c: Likewise.
44904         * lib/strerror.c: Likewise.
44905         * lib/strftime.c: Likewise.
44906         * lib/strftime.h: Likewise.
44907         * lib/striconveh.c: Likewise.
44908         * lib/striconveh.h: Likewise.
44909         * lib/striconveha.c: Likewise.
44910         * lib/striconveha.h: Likewise.
44911         * lib/stripslash.c: Likewise.
44912         * lib/strnlen1.c: Likewise.
44913         * lib/strnlen1.h: Likewise.
44914         * lib/strtod.c: Likewise.
44915         * lib/strtoimax.c: Likewise.
44916         * lib/strtok_r.c: Likewise.
44917         * lib/strtol.c: Likewise.
44918         * lib/strtoll.c: Likewise.
44919         * lib/strtoul.c: Likewise.
44920         * lib/strtoull.c: Likewise.
44921         * lib/sysexits.in.h: Likewise.
44922         * lib/tempname.c: Likewise.
44923         * lib/tempname.h: Likewise.
44924         * lib/timespec.h: Likewise.
44925         * lib/tls.c: Likewise.
44926         * lib/tls.h: Likewise.
44927         * lib/tmpdir.c: Likewise.
44928         * lib/tmpdir.h: Likewise.
44929         * lib/tmpfile-safer.c: Likewise.
44930         * lib/tmpfile.c: Likewise.
44931         * lib/trigl.c: Likewise.
44932         * lib/trigl.h: Likewise.
44933         * lib/trim.c: Likewise.
44934         * lib/trim.h: Likewise.
44935         * lib/trunc.c: Likewise.
44936         * lib/truncf.c: Likewise.
44937         * lib/truncl.c: Likewise.
44938         * lib/tsearch.c: Likewise.
44939         * lib/unicodeio.c: Likewise.
44940         * lib/unicodeio.h: Likewise.
44941         * lib/unistd--.h: Likewise.
44942         * lib/unistd-safer.h: Likewise.
44943         * lib/unistdio/ulc-fprintf.c: Likewise.
44944         * lib/unistdio/ulc-vfprintf.c: Likewise.
44945         * lib/unlinkdir.c: Likewise.
44946         * lib/unlinkdir.h: Likewise.
44947         * lib/unlocked-io.h: Likewise.
44948         * lib/unsetenv.c: Likewise.
44949         * lib/userspec.c: Likewise.
44950         * lib/utime.c: Likewise.
44951         * lib/utimecmp.c: Likewise.
44952         * lib/utimecmp.h: Likewise.
44953         * lib/utimens.c: Likewise.
44954         * lib/verify.h: Likewise.
44955         * lib/verror.c: Likewise.
44956         * lib/verror.h: Likewise.
44957         * lib/version-etc-fsf.c: Likewise.
44958         * lib/version-etc.c: Likewise.
44959         * lib/version-etc.h: Likewise.
44960         * lib/vfprintf.c: Likewise.
44961         * lib/vprintf.c: Likewise.
44962         * lib/vsprintf.c: Likewise.
44963         * lib/w32spawn.h: Likewise.
44964         * lib/wait-process.c: Likewise.
44965         * lib/wait-process.h: Likewise.
44966         * lib/wcwidth.c: Likewise.
44967         * lib/write-any-file.c: Likewise.
44968         * lib/xalloc-die.c: Likewise.
44969         * lib/xalloc.h: Likewise.
44970         * lib/xasprintf.c: Likewise.
44971         * lib/xgetcwd.c: Likewise.
44972         * lib/xgetcwd.h: Likewise.
44973         * lib/xgetdomainname.c: Likewise.
44974         * lib/xgetdomainname.h: Likewise.
44975         * lib/xgethostname.c: Likewise.
44976         * lib/xmalloc.c: Likewise.
44977         * lib/xmalloca.c: Likewise.
44978         * lib/xmalloca.h: Likewise.
44979         * lib/xmemcoll.c: Likewise.
44980         * lib/xnanosleep.c: Likewise.
44981         * lib/xreadlink.c: Likewise.
44982         * lib/xreadlink.h: Likewise.
44983         * lib/xsetenv.c: Likewise.
44984         * lib/xsetenv.h: Likewise.
44985         * lib/xstriconv.c: Likewise.
44986         * lib/xstriconv.h: Likewise.
44987         * lib/xstrndup.c: Likewise.
44988         * lib/xstrndup.h: Likewise.
44989         * lib/xstrtod.c: Likewise.
44990         * lib/xstrtod.h: Likewise.
44991         * lib/xstrtol-error.c: Likewise.
44992         * lib/xstrtol.c: Likewise.
44993         * lib/xstrtol.h: Likewise.
44994         * lib/xtime.h: Likewise.
44995         * lib/xvasprintf.c: Likewise.
44996         * lib/xvasprintf.h: Likewise.
44997         * lib/yesno.c: Likewise.
44998         * lib/yesno.h: Likewise.
44999         * posix-modules: Likewise.
45000         * tests/test-alloca-opt.c: Likewise.
45001         * tests/test-arcfour.c: Likewise.
45002         * tests/test-arctwo.c: Likewise.
45003         * tests/test-argmatch.c: Likewise.
45004         * tests/test-argp-2.sh: Likewise.
45005         * tests/test-argp.c: Likewise.
45006         * tests/test-arpa_inet.c: Likewise.
45007         * tests/test-array_list.c: Likewise.
45008         * tests/test-array_oset.c: Likewise.
45009         * tests/test-atexit.c: Likewise.
45010         * tests/test-avltree_list.c: Likewise.
45011         * tests/test-avltree_oset.c: Likewise.
45012         * tests/test-avltreehash_list.c: Likewise.
45013         * tests/test-base64.c: Likewise.
45014         * tests/test-binary-io.c: Likewise.
45015         * tests/test-byteswap.c: Likewise.
45016         * tests/test-c-ctype.c: Likewise.
45017         * tests/test-c-strcasecmp.c: Likewise.
45018         * tests/test-c-strcasestr.c: Likewise.
45019         * tests/test-c-strncasecmp.c: Likewise.
45020         * tests/test-c-strstr.c: Likewise.
45021         * tests/test-canonicalize-lgpl.c: Likewise.
45022         * tests/test-canonicalize.c: Likewise.
45023         * tests/test-carray_list.c: Likewise.
45024         * tests/test-ceilf.c: Likewise.
45025         * tests/test-ceill.c: Likewise.
45026         * tests/test-count-one-bits.c: Likewise.
45027         * tests/test-crc.c: Likewise.
45028         * tests/test-dirname.c: Likewise.
45029         * tests/test-fbufmode.c: Likewise.
45030         * tests/test-fcntl.c: Likewise.
45031         * tests/test-fflush.c: Likewise.
45032         * tests/test-floorf.c: Likewise.
45033         * tests/test-floorl.c: Likewise.
45034         * tests/test-fopen.c: Likewise.
45035         * tests/test-fprintf-posix.c: Likewise.
45036         * tests/test-fprintf-posix.h: Likewise.
45037         * tests/test-fpurge.c: Likewise.
45038         * tests/test-freadable.c: Likewise.
45039         * tests/test-freadahead.c: Likewise.
45040         * tests/test-freading.c: Likewise.
45041         * tests/test-freopen.c: Likewise.
45042         * tests/test-frexp.c: Likewise.
45043         * tests/test-frexpl.c: Likewise.
45044         * tests/test-fseek.c: Likewise.
45045         * tests/test-fseeko.c: Likewise.
45046         * tests/test-fseterr.c: Likewise.
45047         * tests/test-fstrcmp.c: Likewise.
45048         * tests/test-ftell.c: Likewise.
45049         * tests/test-ftello.c: Likewise.
45050         * tests/test-fwritable.c: Likewise.
45051         * tests/test-fwriting.c: Likewise.
45052         * tests/test-getaddrinfo.c: Likewise.
45053         * tests/test-getpass.c: Likewise.
45054         * tests/test-gettimeofday.c: Likewise.
45055         * tests/test-hmac-md5.c: Likewise.
45056         * tests/test-hmac-sha1.c: Likewise.
45057         * tests/test-iconv.c: Likewise.
45058         * tests/test-iconvme.c: Likewise.
45059         * tests/test-inttypes.c: Likewise.
45060         * tests/test-isnan.c: Likewise.
45061         * tests/test-isnanf.c: Likewise.
45062         * tests/test-isnanl-nolibm.c: Likewise.
45063         * tests/test-isnanl.c: Likewise.
45064         * tests/test-isnanl.h: Likewise.
45065         * tests/test-ldexpl.c: Likewise.
45066         * tests/test-linked_list.c: Likewise.
45067         * tests/test-linkedhash_list.c: Likewise.
45068         * tests/test-locale.c: Likewise.
45069         * tests/test-localename.c: Likewise.
45070         * tests/test-lock.c: Likewise.
45071         * tests/test-lseek.c: Likewise.
45072         * tests/test-malloca.c: Likewise.
45073         * tests/test-math.c: Likewise.
45074         * tests/test-mbscasecmp.c: Likewise.
45075         * tests/test-mbscasestr1.c: Likewise.
45076         * tests/test-mbscasestr2.c: Likewise.
45077         * tests/test-mbscasestr3.c: Likewise.
45078         * tests/test-mbscasestr4.c: Likewise.
45079         * tests/test-mbschr.c: Likewise.
45080         * tests/test-mbscspn.c: Likewise.
45081         * tests/test-mbsncasecmp.c: Likewise.
45082         * tests/test-mbspbrk.c: Likewise.
45083         * tests/test-mbspcasecmp.c: Likewise.
45084         * tests/test-mbsrchr.c: Likewise.
45085         * tests/test-mbsspn.c: Likewise.
45086         * tests/test-mbsstr1.c: Likewise.
45087         * tests/test-mbsstr2.c: Likewise.
45088         * tests/test-mbsstr3.c: Likewise.
45089         * tests/test-md5.c: Likewise.
45090         * tests/test-memmem.c: Likewise.
45091         * tests/test-netinet_in.c: Likewise.
45092         * tests/test-open.c: Likewise.
45093         * tests/test-printf-frexp.c: Likewise.
45094         * tests/test-printf-frexpl.c: Likewise.
45095         * tests/test-printf-posix.c: Likewise.
45096         * tests/test-printf-posix.h: Likewise.
45097         * tests/test-rbtree_list.c: Likewise.
45098         * tests/test-rbtree_oset.c: Likewise.
45099         * tests/test-rbtreehash_list.c: Likewise.
45100         * tests/test-read-file.c: Likewise.
45101         * tests/test-rijndael.c: Likewise.
45102         * tests/test-search.c: Likewise.
45103         * tests/test-signbit.c: Likewise.
45104         * tests/test-sleep.c: Likewise.
45105         * tests/test-snprintf-posix.c: Likewise.
45106         * tests/test-snprintf-posix.h: Likewise.
45107         * tests/test-snprintf.c: Likewise.
45108         * tests/test-sprintf-posix.c: Likewise.
45109         * tests/test-sprintf-posix.h: Likewise.
45110         * tests/test-stat-time.c: Likewise.
45111         * tests/test-stdbool.c: Likewise.
45112         * tests/test-stdint.c: Likewise.
45113         * tests/test-stdio.c: Likewise.
45114         * tests/test-stdlib.c: Likewise.
45115         * tests/test-stpncpy.c: Likewise.
45116         * tests/test-strcasestr.c: Likewise.
45117         * tests/test-striconv.c: Likewise.
45118         * tests/test-striconveh.c: Likewise.
45119         * tests/test-striconveha.c: Likewise.
45120         * tests/test-string.c: Likewise.
45121         * tests/test-sys_select.c: Likewise.
45122         * tests/test-sys_socket.c: Likewise.
45123         * tests/test-sys_stat.c: Likewise.
45124         * tests/test-sys_time.c: Likewise.
45125         * tests/test-sysexits.c: Likewise.
45126         * tests/test-time.c: Likewise.
45127         * tests/test-tls.c: Likewise.
45128         * tests/test-trunc.c: Likewise.
45129         * tests/test-truncf.c: Likewise.
45130         * tests/test-truncl.c: Likewise.
45131         * tests/test-unistd.c: Likewise.
45132         * tests/test-vasnprintf-posix.c: Likewise.
45133         * tests/test-vasnprintf-posix2.c: Likewise.
45134         * tests/test-vasnprintf.c: Likewise.
45135         * tests/test-vasprintf-posix.c: Likewise.
45136         * tests/test-vasprintf.c: Likewise.
45137         * tests/test-verify.c: Likewise.
45138         * tests/test-vfprintf-posix.c: Likewise.
45139         * tests/test-vprintf-posix.c: Likewise.
45140         * tests/test-vsnprintf-posix.c: Likewise.
45141         * tests/test-vsnprintf.c: Likewise.
45142         * tests/test-vsprintf-posix.c: Likewise.
45143         * tests/test-wchar.c: Likewise.
45144         * tests/test-wctype.c: Likewise.
45145         * tests/test-wcwidth.c: Likewise.
45146         * tests/test-xstrtol.c: Likewise.
45147         * tests/test-xvasprintf.c: Likewise.
45148         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45149         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45150         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45151         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45152         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45153         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45154         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45155         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45156         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45157         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45158         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45159         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45160         * tests/uniname/test-uninames.c: Likewise.
45161         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45162         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45163         * tests/unistdio/test-u16-printf1.h: Likewise.
45164         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45165         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45166         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45167         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45168         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45169         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45170         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45171         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45172         * tests/unistdio/test-u32-printf1.h: Likewise.
45173         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45174         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45175         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45176         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45177         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45178         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45179         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45180         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45181         * tests/unistdio/test-u8-printf1.h: Likewise.
45182         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45183         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45184         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45185         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45186         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45187         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45188         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45189         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45190         * tests/unistdio/test-ulc-printf1.h: Likewise.
45191         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45192         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45193         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45194         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45195         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45196         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45197         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45198         * tests/uniwidth/test-u16-width.c: Likewise.
45199         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45200         * tests/uniwidth/test-u32-width.c: Likewise.
45201         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45202         * tests/uniwidth/test-u8-width.c: Likewise.
45203         * tests/uniwidth/test-uc_width.c: Likewise.
45204         * config/srclist-update: Likewise.
45205         (fixlicense): Update to GPLv3+.
45206
45207         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45208         * tests/test-tsearch.c: Change copyright notice.
45209
45210         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45211         * lib/c-strcaseeq.h: Change copyright notice.
45212         * lib/streq.h: Likewise.
45213         * lib/uniconv.h: Likewise.
45214         * lib/uniconv/u-conv-from-enc.h: Likewise.
45215         * lib/uniconv/u-conv-to-enc.h: Likewise.
45216         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45217         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45218         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45219         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45220         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45221         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45222         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45223         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45224         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45225         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45226         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45227         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45228         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45229         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45230         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45231         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45232         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45233         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45234         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45235         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45236         * lib/uniname.h: Likewise.
45237         * lib/uniname/uniname.c: Likewise.
45238         * lib/unistdio.h: Likewise.
45239         * lib/unistdio/u-asnprintf.h: Likewise.
45240         * lib/unistdio/u-asprintf.h: Likewise.
45241         * lib/unistdio/u-printf-args.c: Likewise.
45242         * lib/unistdio/u-printf-args.h: Likewise.
45243         * lib/unistdio/u-printf-parse.h: Likewise.
45244         * lib/unistdio/u-snprintf.h: Likewise.
45245         * lib/unistdio/u-sprintf.h: Likewise.
45246         * lib/unistdio/u-vasprintf.h: Likewise.
45247         * lib/unistdio/u-vsnprintf.h: Likewise.
45248         * lib/unistdio/u-vsprintf.h: Likewise.
45249         * lib/unistdio/u16-asnprintf.c: Likewise.
45250         * lib/unistdio/u16-asprintf.c: Likewise.
45251         * lib/unistdio/u16-printf-parse.c: Likewise.
45252         * lib/unistdio/u16-snprintf.c: Likewise.
45253         * lib/unistdio/u16-sprintf.c: Likewise.
45254         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45255         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45256         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45257         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45258         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45259         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45260         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45261         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45262         * lib/unistdio/u16-vasnprintf.c: Likewise.
45263         * lib/unistdio/u16-vasprintf.c: Likewise.
45264         * lib/unistdio/u16-vsnprintf.c: Likewise.
45265         * lib/unistdio/u16-vsprintf.c: Likewise.
45266         * lib/unistdio/u32-asnprintf.c: Likewise.
45267         * lib/unistdio/u32-asprintf.c: Likewise.
45268         * lib/unistdio/u32-printf-parse.c: Likewise.
45269         * lib/unistdio/u32-snprintf.c: Likewise.
45270         * lib/unistdio/u32-sprintf.c: Likewise.
45271         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45272         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45273         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45274         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45275         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45276         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45277         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45278         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45279         * lib/unistdio/u32-vasnprintf.c: Likewise.
45280         * lib/unistdio/u32-vasprintf.c: Likewise.
45281         * lib/unistdio/u32-vsnprintf.c: Likewise.
45282         * lib/unistdio/u32-vsprintf.c: Likewise.
45283         * lib/unistdio/u8-asnprintf.c: Likewise.
45284         * lib/unistdio/u8-asprintf.c: Likewise.
45285         * lib/unistdio/u8-printf-parse.c: Likewise.
45286         * lib/unistdio/u8-snprintf.c: Likewise.
45287         * lib/unistdio/u8-sprintf.c: Likewise.
45288         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45289         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45290         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45291         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45292         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45293         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45294         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45295         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45296         * lib/unistdio/u8-vasnprintf.c: Likewise.
45297         * lib/unistdio/u8-vasprintf.c: Likewise.
45298         * lib/unistdio/u8-vsnprintf.c: Likewise.
45299         * lib/unistdio/u8-vsprintf.c: Likewise.
45300         * lib/unistdio/ulc-asnprintf.c: Likewise.
45301         * lib/unistdio/ulc-asprintf.c: Likewise.
45302         * lib/unistdio/ulc-printf-parse.c: Likewise.
45303         * lib/unistdio/ulc-snprintf.c: Likewise.
45304         * lib/unistdio/ulc-sprintf.c: Likewise.
45305         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45306         * lib/unistdio/ulc-vasprintf.c: Likewise.
45307         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45308         * lib/unistdio/ulc-vsprintf.c: Likewise.
45309         * lib/unistr.h: Likewise.
45310         * lib/unistr/u-cpy-alloc.h: Likewise.
45311         * lib/unistr/u-cpy.h: Likewise.
45312         * lib/unistr/u-endswith.h: Likewise.
45313         * lib/unistr/u-move.h: Likewise.
45314         * lib/unistr/u-set.h: Likewise.
45315         * lib/unistr/u-startswith.h: Likewise.
45316         * lib/unistr/u-stpcpy.h: Likewise.
45317         * lib/unistr/u-stpncpy.h: Likewise.
45318         * lib/unistr/u-strcat.h: Likewise.
45319         * lib/unistr/u-strcpy.h: Likewise.
45320         * lib/unistr/u-strcspn.h: Likewise.
45321         * lib/unistr/u-strdup.h: Likewise.
45322         * lib/unistr/u-strlen.h: Likewise.
45323         * lib/unistr/u-strncat.h: Likewise.
45324         * lib/unistr/u-strncpy.h: Likewise.
45325         * lib/unistr/u-strnlen.h: Likewise.
45326         * lib/unistr/u-strpbrk.h: Likewise.
45327         * lib/unistr/u-strspn.h: Likewise.
45328         * lib/unistr/u-strstr.h: Likewise.
45329         * lib/unistr/u-strtok.h: Likewise.
45330         * lib/unistr/u16-check.c: Likewise.
45331         * lib/unistr/u16-chr.c: Likewise.
45332         * lib/unistr/u16-cmp.c: Likewise.
45333         * lib/unistr/u16-cpy-alloc.c: Likewise.
45334         * lib/unistr/u16-cpy.c: Likewise.
45335         * lib/unistr/u16-endswith.c: Likewise.
45336         * lib/unistr/u16-mblen.c: Likewise.
45337         * lib/unistr/u16-mbsnlen.c: Likewise.
45338         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45339         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45340         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45341         * lib/unistr/u16-mbtouc.c: Likewise.
45342         * lib/unistr/u16-mbtoucr.c: Likewise.
45343         * lib/unistr/u16-move.c: Likewise.
45344         * lib/unistr/u16-next.c: Likewise.
45345         * lib/unistr/u16-prev.c: Likewise.
45346         * lib/unistr/u16-set.c: Likewise.
45347         * lib/unistr/u16-startswith.c: Likewise.
45348         * lib/unistr/u16-stpcpy.c: Likewise.
45349         * lib/unistr/u16-stpncpy.c: Likewise.
45350         * lib/unistr/u16-strcat.c: Likewise.
45351         * lib/unistr/u16-strchr.c: Likewise.
45352         * lib/unistr/u16-strcmp.c: Likewise.
45353         * lib/unistr/u16-strcpy.c: Likewise.
45354         * lib/unistr/u16-strcspn.c: Likewise.
45355         * lib/unistr/u16-strdup.c: Likewise.
45356         * lib/unistr/u16-strlen.c: Likewise.
45357         * lib/unistr/u16-strmblen.c: Likewise.
45358         * lib/unistr/u16-strmbtouc.c: Likewise.
45359         * lib/unistr/u16-strncat.c: Likewise.
45360         * lib/unistr/u16-strncmp.c: Likewise.
45361         * lib/unistr/u16-strncpy.c: Likewise.
45362         * lib/unistr/u16-strnlen.c: Likewise.
45363         * lib/unistr/u16-strpbrk.c: Likewise.
45364         * lib/unistr/u16-strrchr.c: Likewise.
45365         * lib/unistr/u16-strspn.c: Likewise.
45366         * lib/unistr/u16-strstr.c: Likewise.
45367         * lib/unistr/u16-strtok.c: Likewise.
45368         * lib/unistr/u16-to-u32.c: Likewise.
45369         * lib/unistr/u16-to-u8.c: Likewise.
45370         * lib/unistr/u16-uctomb-aux.c: Likewise.
45371         * lib/unistr/u16-uctomb.c: Likewise.
45372         * lib/unistr/u32-check.c: Likewise.
45373         * lib/unistr/u32-chr.c: Likewise.
45374         * lib/unistr/u32-cmp.c: Likewise.
45375         * lib/unistr/u32-cpy-alloc.c: Likewise.
45376         * lib/unistr/u32-cpy.c: Likewise.
45377         * lib/unistr/u32-endswith.c: Likewise.
45378         * lib/unistr/u32-mblen.c: Likewise.
45379         * lib/unistr/u32-mbsnlen.c: Likewise.
45380         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45381         * lib/unistr/u32-mbtouc.c: Likewise.
45382         * lib/unistr/u32-mbtoucr.c: Likewise.
45383         * lib/unistr/u32-move.c: Likewise.
45384         * lib/unistr/u32-next.c: Likewise.
45385         * lib/unistr/u32-prev.c: Likewise.
45386         * lib/unistr/u32-set.c: Likewise.
45387         * lib/unistr/u32-startswith.c: Likewise.
45388         * lib/unistr/u32-stpcpy.c: Likewise.
45389         * lib/unistr/u32-stpncpy.c: Likewise.
45390         * lib/unistr/u32-strcat.c: Likewise.
45391         * lib/unistr/u32-strchr.c: Likewise.
45392         * lib/unistr/u32-strcmp.c: Likewise.
45393         * lib/unistr/u32-strcpy.c: Likewise.
45394         * lib/unistr/u32-strcspn.c: Likewise.
45395         * lib/unistr/u32-strdup.c: Likewise.
45396         * lib/unistr/u32-strlen.c: Likewise.
45397         * lib/unistr/u32-strmblen.c: Likewise.
45398         * lib/unistr/u32-strmbtouc.c: Likewise.
45399         * lib/unistr/u32-strncat.c: Likewise.
45400         * lib/unistr/u32-strncmp.c: Likewise.
45401         * lib/unistr/u32-strncpy.c: Likewise.
45402         * lib/unistr/u32-strnlen.c: Likewise.
45403         * lib/unistr/u32-strpbrk.c: Likewise.
45404         * lib/unistr/u32-strrchr.c: Likewise.
45405         * lib/unistr/u32-strspn.c: Likewise.
45406         * lib/unistr/u32-strstr.c: Likewise.
45407         * lib/unistr/u32-strtok.c: Likewise.
45408         * lib/unistr/u32-to-u16.c: Likewise.
45409         * lib/unistr/u32-to-u8.c: Likewise.
45410         * lib/unistr/u32-uctomb.c: Likewise.
45411         * lib/unistr/u8-check.c: Likewise.
45412         * lib/unistr/u8-chr.c: Likewise.
45413         * lib/unistr/u8-cmp.c: Likewise.
45414         * lib/unistr/u8-cpy-alloc.c: Likewise.
45415         * lib/unistr/u8-cpy.c: Likewise.
45416         * lib/unistr/u8-endswith.c: Likewise.
45417         * lib/unistr/u8-mblen.c: Likewise.
45418         * lib/unistr/u8-mbsnlen.c: Likewise.
45419         * lib/unistr/u8-mbtouc-aux.c: Likewise.
45420         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45421         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45422         * lib/unistr/u8-mbtouc.c: Likewise.
45423         * lib/unistr/u8-mbtoucr.c: Likewise.
45424         * lib/unistr/u8-move.c: Likewise.
45425         * lib/unistr/u8-next.c: Likewise.
45426         * lib/unistr/u8-prev.c: Likewise.
45427         * lib/unistr/u8-set.c: Likewise.
45428         * lib/unistr/u8-startswith.c: Likewise.
45429         * lib/unistr/u8-stpcpy.c: Likewise.
45430         * lib/unistr/u8-stpncpy.c: Likewise.
45431         * lib/unistr/u8-strcat.c: Likewise.
45432         * lib/unistr/u8-strchr.c: Likewise.
45433         * lib/unistr/u8-strcmp.c: Likewise.
45434         * lib/unistr/u8-strcpy.c: Likewise.
45435         * lib/unistr/u8-strcspn.c: Likewise.
45436         * lib/unistr/u8-strdup.c: Likewise.
45437         * lib/unistr/u8-strlen.c: Likewise.
45438         * lib/unistr/u8-strmblen.c: Likewise.
45439         * lib/unistr/u8-strmbtouc.c: Likewise.
45440         * lib/unistr/u8-strncat.c: Likewise.
45441         * lib/unistr/u8-strncmp.c: Likewise.
45442         * lib/unistr/u8-strncpy.c: Likewise.
45443         * lib/unistr/u8-strnlen.c: Likewise.
45444         * lib/unistr/u8-strpbrk.c: Likewise.
45445         * lib/unistr/u8-strrchr.c: Likewise.
45446         * lib/unistr/u8-strspn.c: Likewise.
45447         * lib/unistr/u8-strstr.c: Likewise.
45448         * lib/unistr/u8-strtok.c: Likewise.
45449         * lib/unistr/u8-to-u16.c: Likewise.
45450         * lib/unistr/u8-to-u32.c: Likewise.
45451         * lib/unistr/u8-uctomb-aux.c: Likewise.
45452         * lib/unistr/u8-uctomb.c: Likewise.
45453         * lib/unitypes.h: Likewise.
45454         * lib/uniwidth.h: Likewise.
45455         * lib/uniwidth/cjk.h: Likewise.
45456         * lib/uniwidth/u16-strwidth.c: Likewise.
45457         * lib/uniwidth/u16-width.c: Likewise.
45458         * lib/uniwidth/u32-strwidth.c: Likewise.
45459         * lib/uniwidth/u32-width.c: Likewise.
45460         * lib/uniwidth/u8-strwidth.c: Likewise.
45461         * lib/uniwidth/u8-width.c: Likewise.
45462         * lib/uniwidth/width.c: Likewise.
45463
45464 2007-10-07  Bruno Haible  <bruno@clisp.org>
45465
45466         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
45467         The file is still under LGPL (see modules/inttypes).
45468
45469 2007-10-06  Bruno Haible  <bruno@clisp.org>
45470
45471         * modules/trunc (Dependencies): Add 'extensions'.
45472         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
45473         Reported by Ben Pfaff <blp@gnu.org>.
45474
45475 2007-10-06  Bruno Haible  <bruno@clisp.org>
45476
45477         * modules/freopen-tests: New file.
45478         * tests/test-freopen.c: New file.
45479
45480         * modules/fopen-tests: New file.
45481         * tests/test-fopen.c: New file.
45482
45483         * modules/fopen: New file.
45484         * lib/fopen.c: New file.
45485         * m4/fopen.m4: New file.
45486         * modules/freopen: New file.
45487         * lib/freopen.c: New file.
45488         * m4/freopen.m4: New file.
45489         * lib/stdio.in.h (fopen, freopen): New declarations.
45490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
45491         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45492         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
45493         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45494         * doc/functions/fopen.texi: Mention the 'fopen' module.
45495         * doc/functions/freopen.texi: Mention the 'freopen' module.
45496
45497 2007-10-06  Bruno Haible  <bruno@clisp.org>
45498
45499         * modules/open-tests: New file.
45500         * tests/test-open.c: New file.
45501
45502         * modules/open: New file.
45503         * lib/open.c: New file.
45504         * m4/open.m4: New file.
45505         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
45506         lib/open.c does.
45507         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
45508         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
45509         macros.
45510         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
45511         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
45512         REPLACE_OPEN.
45513         * doc/functions/open.texi: Mention the 'open' module.
45514
45515 2007-10-04  Bruno Haible  <bruno@clisp.org>
45516
45517         * modules/ceill-tests: New file.
45518         * tests/test-ceill.c: New file.
45519
45520         * modules/ceill: New file.
45521         * lib/ceill.c: Replace entire file.
45522         * m4/ceill.m4: New file.
45523         * lib/math.in.h (ceill): Replace declaration.
45524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
45525         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
45526         * doc/functions/ceill.texi: Mention the 'ceill' module.
45527         * modules/mathl (Files): Remove lib/ceill.c.
45528         (Depends-on): Add ceill.
45529
45530 2007-10-04  Bruno Haible  <bruno@clisp.org>
45531
45532         * modules/ceilf-tests: New file.
45533         * tests/test-ceilf.c: New file.
45534
45535         * modules/ceilf: New file.
45536         * lib/ceil.c: New file.
45537         * lib/ceilf.c: New file.
45538         * m4/ceilf.m4: New file.
45539         * lib/math.in.h (ceilf): New declaration.
45540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
45541         HAVE_DECL_CEILF.
45542         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
45543         HAVE_DECL_CEILF.
45544         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
45545
45546 2007-10-04  Bruno Haible  <bruno@clisp.org>
45547
45548         * modules/floorl-tests: New file.
45549         * tests/test-floorl.c: New file.
45550
45551         * modules/floorl: New file.
45552         * lib/floorl.c: Replace entire file.
45553         * m4/floorl.m4: New file.
45554         * lib/math.in.h (floorl): Replace declaration.
45555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45556         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45557         * doc/functions/floorl.texi: Mention the 'floorl' module.
45558         * modules/mathl (Files): Remove lib/floorl.c.
45559         (Depends-on): Add floorl.
45560
45561 2007-10-04  Bruno Haible  <bruno@clisp.org>
45562
45563         * modules/floorf-tests: New file.
45564         * tests/test-floorf.c: New file.
45565
45566         * modules/floorf: New file.
45567         * lib/floor.c: New file.
45568         * lib/floorf.c: New file.
45569         * m4/floorf.m4: New file.
45570         * lib/math.in.h (floorf): New declaration.
45571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45572         HAVE_DECL_FLOORF.
45573         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45574         HAVE_DECL_FLOORF.
45575         * doc/functions/floorf.texi: Mention the 'floorf' module.
45576
45577 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45578             Bruno Haible  <bruno@clisp.org>
45579
45580         Advertise for the Git server instead of the CVS server.
45581         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45582         repository instead of the CVS one.
45583         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45584         about all VCS systems generically.
45585         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45586
45587 2007-10-04  Bruno Haible  <bruno@clisp.org>
45588
45589         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45590         means.
45591         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45592
45593 2007-10-04  Bruno Haible  <bruno@clisp.org>
45594
45595         * modules/truncl-tests: New file.
45596         * tests/test-truncl.c: New file.
45597
45598         * modules/truncl: New file.
45599         * lib/truncl.c: New file.
45600         * m4/truncl.m4: New file.
45601         * lib/math.in.h (truncl): New declaration.
45602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45603         HAVE_DECL_TRUNCL.
45604         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45605         HAVE_DECL_TRUNCL.
45606         * doc/functions/truncl.texi: Mention the 'truncl' module.
45607
45608 2007-10-04  Bruno Haible  <bruno@clisp.org>
45609
45610         * modules/truncf-tests: New file.
45611         * tests/test-truncf.c: New file.
45612
45613         * modules/truncf: New file.
45614         * lib/trunc.c: Make paramerizable through USE_* macros.
45615         * lib/truncf.c: New file.
45616         * m4/truncf.m4: New file.
45617         * lib/math.in.h (truncf): New declaration.
45618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45619         HAVE_DECL_TRUNCF.
45620         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45621         HAVE_DECL_TRUNCF.
45622         * doc/functions/truncf.texi: Mention the 'truncf' module.
45623
45624 2007-10-03  Bruno Haible  <bruno@clisp.org>
45625
45626         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45627         augmentation also for tests modules.
45628         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45629         * modules/atexit-tests (Makefile.am): Likewise.
45630         * modules/binary-io-tests (Makefile.am): Likewise.
45631         * modules/c-strcase-tests (Makefile.am): Likewise.
45632         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45633         * modules/canonicalize-tests (Makefile.am): Likewise.
45634         * modules/closein-tests (Makefile.am): Likewise.
45635         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45636         * modules/freadahead-tests (Makefile.am): Likewise.
45637         * modules/fseek-tests (Makefile.am): Likewise.
45638         * modules/fseeko-tests (Makefile.am): Likewise.
45639         * modules/ftell-tests (Makefile.am): Likewise.
45640         * modules/ftello-tests (Makefile.am): Likewise.
45641         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45642         * modules/isnanl-tests (Makefile.am): Likewise.
45643         * modules/lseek-tests (Makefile.am): Likewise.
45644         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45645         * modules/mbscasestr-tests (Makefile.am): Likewise.
45646         * modules/mbschr-tests (Makefile.am): Likewise.
45647         * modules/mbscspn-tests (Makefile.am): Likewise.
45648         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45649         * modules/mbspbrk-tests (Makefile.am): Likewise.
45650         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45651         * modules/mbsrchr-tests (Makefile.am): Likewise.
45652         * modules/mbsspn-tests (Makefile.am): Likewise.
45653         * modules/mbsstr-tests (Makefile.am): Likewise.
45654         * modules/printf-posix-tests (Makefile.am): Likewise.
45655         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45656         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45657         * modules/tsearch-tests (Makefile.am): Likewise.
45658         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45659         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45660         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45661         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45662         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45663         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45664         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45665         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45666         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45667         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45668         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45669         * modules/xstrtol-tests (Makefile.am): Likewise.
45670         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45671         * modules/yesno-tests (Makefile.am): Likewise.
45672
45673 2007-10-03  Bruno Haible  <bruno@clisp.org>
45674
45675         * modules/trunc-tests: New file.
45676         * tests/test-trunc.c: New file.
45677
45678         * modules/trunc: New file.
45679         * lib/trunc.c: New file.
45680         * m4/trunc.m4: New file.
45681         * lib/math.in.h (trunc): New declaration.
45682         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45683         HAVE_DECL_TRUNC.
45684         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45685         HAVE_DECL_TRUNC.
45686         * doc/functions/trunc.texi: Mention the 'trunc' module.
45687
45688 2007-10-03  Bruno Haible  <bruno@clisp.org>
45689
45690         * tests/test-fpending.c: New file, mostly copied
45691         from coreutils/lib/t-fpending.c.
45692         * modules/fpending-tests: New file.
45693
45694 2007-10-03  Bruno Haible  <bruno@clisp.org>
45695
45696         Port the stdio extensions to QNX (untested).
45697         * lib/fseterr.c (fseterr): Add support for QNX.
45698         * lib/fbufmode.c (fbufmode): Likewise.
45699         * lib/freadable.c (freadable): Likewise.
45700         * lib/fwritable.c (fwritable): Likewise.
45701         * lib/freading.c (freading): Likewise.
45702         * lib/fwriting.c (fwriting): Likewise.
45703         * lib/freadahead.c (freadahed): Likewise.
45704         * lib/fpurge.c (fpurge): Likewise.
45705         * lib/fseeko.c (rpl_fseeko): Likewise.
45706
45707 2007-10-03  Bruno Haible  <bruno@clisp.org>
45708             Jim Meyering  <jim@meyering.net>
45709             Eric Blake  <ebb9@byu.net>
45710
45711         * doc/relocatable.texi: Use @command instead of @program.
45712
45713 2007-10-02  Jim Meyering  <jim@meyering.net>
45714
45715         Perform one more "_.h" -> ".in.h" substitution.
45716         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45717         instead of unistd_.h here, too.
45718
45719 2007-10-01  Bruno Haible  <bruno@clisp.org>
45720
45721         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45722         Needed for the alloca-opt module.
45723
45724 2007-09-30  Bruno Haible  <bruno@clisp.org>
45725
45726         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45727         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45728         alloca_.h.
45729         * lib/argz.in.h: Renamed from lib/argz_.h.
45730         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45731         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45732         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45733         byteswap_.h.
45734         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45735         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45736         dirent_.h.
45737         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45738         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45739         fcntl_.h.
45740         * lib/float.in.h: Renamed from lib/float_.h.
45741         * modules/float (Files, Makefile.am): Use float.in.h instead of
45742         float_.h.
45743         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45744         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45745         fnmatch_.h.
45746         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45747         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45748         getopt_.h.
45749         * lib/glob.in.h: Renamed from lib/glob_.h.
45750         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45751         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45752         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45753         iconv_.h.
45754         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45755         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45756         inttypes_.h.
45757         * lib/locale.in.h: Renamed from lib/locale_.h.
45758         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45759         locale_.h.
45760         * lib/math.in.h: Renamed from lib/math_.h.
45761         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45762         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45763         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45764         of netinet_in_.h. Add dependency.
45765         * lib/poll.in.h: Renamed from lib/poll_.h.
45766         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45767         * lib/search.in.h: Renamed from lib/search_.h.
45768         * modules/search (Files, Makefile.am): Use search.in.h instead of
45769         search_.h.
45770         * lib/signal.in.h: Renamed from lib/signal_.h.
45771         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45772         _signal.h.
45773         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45774         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45775         stdbool_.h.
45776         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45777         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45778         stdint_.h.
45779         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45780         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45781         stdio_.h.
45782         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45783         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45784         stdlib_.h.
45785         * lib/string.in.h: Renamed from lib/string_.h.
45786         * modules/string (Files, Makefile.am): Use string.in.h instead of
45787         string_.h.
45788         * doc/gnulib-tool.texi (Initial import): Update.
45789         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45790         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45791         of sys_select_.h. Add dependency.
45792         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45793         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45794         of sys_socket_.h.
45795         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45796         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45797         sys_stat_.h.
45798         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45799         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45800         sys_time_.h.
45801         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45802         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45803         sysexits_.h.
45804         * lib/time.in.h: Renamed from lib/time_.h.
45805         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45806         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45807         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45808         unistd_.h.
45809         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45810         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45811         wchar_.h.
45812         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45813         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45814         wctype_.h.
45815         * build-aux/bootstrap (slurp): Update.
45816         * lib/.cppi-disable: Update.
45817
45818 2007-09-30  Bruno Haible  <bruno@clisp.org>
45819
45820         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45821         Needed on BeOS.
45822
45823 2007-09-30  Bruno Haible  <bruno@clisp.org>
45824
45825         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45826
45827 2007-09-29  Bruno Haible  <bruno@clisp.org>
45828
45829         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45830
45831 2007-09-29  Bruno Haible  <bruno@clisp.org>
45832
45833         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45834         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45835         * build-aux/install-reloc: Compile also areadlink.c.
45836         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45837
45838 2007-09-29  Bruno Haible  <bruno@clisp.org>
45839
45840         * gnulib-tool (func_emit_initmacro_done): Indentation.
45841
45842 2007-09-29  Bruno Haible  <bruno@clisp.org>
45843
45844         * README: Add CVS checkout update instructions.
45845         Info from Bob Proulx <bob@proulx.com>.
45846
45847 2007-09-28  Eric Blake  <ebb9@byu.net>
45848
45849         Provide move-if-change.
45850         * build-aux/move-if-change: New file, based on best practice
45851         rather than any canonical upstream location.
45852
45853 2007-09-28  Jim Meyering  <jim@meyering.net>
45854
45855         Fix canonicalize loop-detection corner case.
45856         Do not attempt to stat the symlink values stored via seen_triple.
45857         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45858         on linux-2.6.18, (but not 2.6.22).
45859         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45860         triple_compare.  The former compares dev,ino,filename, while the latter
45861         would actually stat dirname(filename) when dev and ino were equal.
45862         * lib/hash-triple.c: Install <string.h>.
45863         (STREQ): Define.
45864         (triple_compare_ino_str): New function.
45865         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45866
45867 2007-09-28  Eric Blake  <ebb9@byu.net>
45868
45869         Enforce that AC_REPLACE_FUNCS files exist.
45870         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45871         override check for typos.
45872
45873         Fix test-closein on Solaris 10.
45874         * tests/test-closein.c (main): Don't assume stdin can be inherited
45875         closed on all systems.
45876         * tests/test-closein.sh: Likewise.
45877         Reported by Piotr Tarnowski.
45878
45879 2007-09-28  Jim Meyering  <jim@meyering.net>
45880
45881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45882
45883 2007-09-27  Jim Meyering  <jim@meyering.net>
45884
45885         canonicalize: Avoid a false-positive cycle failure.
45886         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45887         Sort.  Remove cycle-check.
45888         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45889         not cycle-check.h.
45890         (seen_triple): New function.
45891         (canonicalize_filename_mode): Use it instead of cycle-check.
45892         * tests/test-canonicalize.c: Add a test for this bug.
45893         * tests/test-canonicalize.sh: Set up and run the test.
45894
45895         New module, file-set, from coreutils.
45896         * modules/file-set: Define it.
45897         * lib/file-set.c, lib/file-set.h: Implement.
45898
45899         New module, hash-triple, from coreutils.
45900         * modules/hash-triple: Define it.
45901         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45902
45903 2007-09-25  Eric Blake  <ebb9@byu.net>
45904
45905         Fix strerror on Interix.
45906         * lib/string_.h (strerror): Declare replacement.
45907         * doc/functions/strerror.texi (strerror): Document the Interix
45908         shortcoming.
45909         * modules/string (Makefile.am): Support new hooks.
45910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45911         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45912         gl_FUNC_STRERROR_SEPARATE.
45913         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45914         * lib/strerror.c (rpl_strerror): Provide replacement.
45915         * modules/strerror (Depends-on): Add string.
45916         (configure.ac): Detect use of module.
45917         * tests/test-strerror.c: New file.
45918         * modules/strerror-tests: New test module.
45919         * modules/argp (Depends-on): Add strerror.
45920         * modules/error (Depends-on): Likewise.
45921         Reported by Martin Koeppe.
45922
45923 2007-09-24  Bruno Haible  <bruno@clisp.org>
45924
45925         * README: Update git instructions.
45926
45927 2007-09-24  Eric Blake  <ebb9@byu.net>
45928
45929         Revert fpending breakage from 2007-09-08.
45930         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45931         __fpending.c.
45932
45933 2007-09-24  Jim Meyering  <jim@meyering.net>
45934
45935         filenamecat.c: Add a test.
45936         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45937         showing how the function works when DIR is the empty string.
45938
45939 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45940
45941         * tests/test-canonicalize.sh: Turn on executable bit.
45942
45943 2007-09-19  Eric Blake  <ebb9@byu.net>
45944
45945         * README: Update CVS instructions.
45946
45947 2007-09-18  Bruno Haible  <bruno@clisp.org>
45948
45949         * modules/areadlink: New file.
45950         * lib/areadlink.h (areadlink): New declaration.
45951         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45952
45953 2007-09-17  Jim Meyering  <jim@meyering.net>
45954
45955         * lib/savewd.c (ESTALE) [!defined]: Define.
45956         Reported to be required on Interix by Martin Koeppe.
45957
45958 2007-09-17  Bruno Haible  <bruno@clisp.org>
45959
45960         * gnulib-tool (func_version): Use $version.
45961
45962 2007-09-16  Bruno Haible  <bruno@clisp.org>
45963
45964         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45965         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45966         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45967         Reported by Greg Schafer <gschafer@zip.com.au>.
45968
45969 2007-09-15  Bruno Haible  <bruno@clisp.org>
45970
45971         * gnulib-tool (sed): Try a little harder to make bash understand the
45972         alias.
45973         Reported by Bruce Korb <bruce.korb@gmail.com>.
45974
45975 2007-09-13  Eric Blake  <ebb9@byu.net>
45976
45977         * ChangeLog: Remove conflict markers.
45978
45979 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45980
45981         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45982         Reported by Bruno Haible <bruno@clisp.org>.
45983
45984 2007-09-12  Bruno Haible  <bruno@clisp.org>
45985
45986         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45987         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45988         is not defined.
45989
45990 2007-09-12  Eric Blake  <ebb9@byu.net>
45991
45992         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45993         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45994         Autoconf definition.
45995         * modules/euidaccess (Depends-on): Add extensions, for
45996         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45997         * modules/fnmatch (Depends-on): Likewise.
45998         * modules/getaddrinfo (Depends-on): Likewise.
45999         * modules/getdelim (Depends-on): Likewise.
46000         * modules/getline (Depends-on): Likewise.
46001         * modules/getsubopt (Depends-on): Likewise.
46002         * modules/gettext (Depends-on): Likewise.
46003         * modules/group-member (Depends-on): Likewise.
46004         * modules/mbchar (Depends-on): Likewise.
46005         * modules/memmem (Depends-on): Likewise.
46006         * modules/mempcpy (Depends-on): Likewise.
46007         * modules/memrchr (Depends-on): Likewise.
46008         * modules/pagealign_alloc (Depends-on): Likewise.
46009         * modules/readutmp (Depends-on): Likewise.
46010         * modules/stpcpy (Depends-on): Likewise.
46011         * modules/stpncpy (Depends-on): Likewise.
46012         * modules/strchrnul (Depends-on): Likewise.
46013         * modules/strndup (Depends-on): Likewise.
46014         * modules/strsep (Depends-on): Likewise.
46015         * modules/strverscmp (Depends-on): Likewise.
46016         * modules/vasprintf (Depends-on): Likewise.
46017         * modules/wcwidth (Depends-on): Likewise.
46018         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46019         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46020         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46021         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46022         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46023         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46024         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46025         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46026         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46027         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46028         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46029         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46030         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46031         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46032         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46033         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46034         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46035         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46036         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46037         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46038         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46039         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46040         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46041         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46042         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46044         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46045         so that lock.m4 can be used in gettext without extensions module.
46046
46047 2007-09-11  Bruno Haible  <bruno@clisp.org>
46048
46049         * m4/isc-posix.m4: Remove file.
46050         Suggested by Eric Blake.
46051
46052 2007-09-11  Eric Blake  <ebb9@byu.net>
46053
46054         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46055
46056 2007-09-10  Bruno Haible  <bruno@clisp.org>
46057
46058         * posix-modules: Fix typo in error message.
46059         Reported by Matt <mkraai@beckman.com>.
46060
46061 2007-09-09  Bruno Haible  <bruno@clisp.org>
46062
46063         * doc/functions/getdelim.texi: Update list of platforms lacking the
46064         function.
46065         * doc/functions/getline.texi: Likewise.
46066
46067 2007-09-09  Jim Meyering  <jim@meyering.net>
46068
46069         * lib/hash.c (hash_initialize): Detect calloc failure.
46070         Reported by Bruno Haible.
46071
46072 2007-09-09  Bruno Haible  <bruno@clisp.org>
46073
46074         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46075         malloc or realloc fails.
46076
46077 2007-09-09  Bruno Haible  <bruno@clisp.org>
46078
46079         * modules/getcwd (Depends-on): Add malloc-posix.
46080         * modules/glob (Depends-on): Likewise.
46081         * modules/putenv (Depends-on): Likewise.
46082         * modules/strdup (Depends-on): Likewise.
46083         * modules/getdelim (Depends-on): Add realloc-posix.
46084         * modules/read-file (Depends-on): Likewise.
46085
46086 2007-09-09  Bruno Haible  <bruno@clisp.org>
46087
46088         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46089         (gl_FUNC_MALLOC_POSIX): Require it.
46090         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46091         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46092         * modules/realloc (Files): Add m4/malloc.m4.
46093         * modules/calloc (Files): Likewise.
46094
46095 2007-09-09  Bruno Haible  <bruno@clisp.org>
46096
46097         * modules/malloc-posix: New file.
46098         * modules/malloc (Depends-on): Add malloc-posix.
46099         * lib/malloc.c: Include errno.h.
46100         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46101         and a POSIX-compatible malloc into a single function. Set ENOMEM
46102         when returning NULL.
46103         * m4/malloc.m4: New file.
46104         * doc/functions/malloc.texi: Mention the malloc-posix module.
46105         * lib/stdlib_.h (malloc): New declaration.
46106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46107         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46108         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46109         and HAVE_MALLOC_POSIX.
46110
46111 2007-09-09  Bruno Haible  <bruno@clisp.org>
46112
46113         * modules/realloc-posix: New file.
46114         * modules/realloc (Depends-on): Add realloc-posix.
46115         * lib/realloc.c: Include errno.h.
46116         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46117         and a POSIX-compatible realloc into a single function. Set ENOMEM
46118         when returning NULL.
46119         * m4/realloc.m4: New file.
46120         * doc/functions/realloc.texi: Mention the realloc-posix module.
46121         * lib/stdlib_.h (realloc): New declaration.
46122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46123         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46124         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46125         and HAVE_REALLOC_POSIX.
46126
46127 2007-09-09  Bruno Haible  <bruno@clisp.org>
46128
46129         * modules/calloc-posix: New file.
46130         * modules/calloc (Depends-on): Add calloc-posix.
46131         * lib/calloc.c: Include errno.h.
46132         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46133         and a POSIX-compatible calloc into a single function. Set ENOMEM
46134         when returning NULL.
46135         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46136         * doc/functions/calloc.texi: Mention the calloc-posix module.
46137         * lib/stdlib_.h (calloc): New declaration.
46138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46139         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46140         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46141         and HAVE_CALLOC_POSIX.
46142
46143 2007-09-09  Bruno Haible  <bruno@clisp.org>
46144
46145         Allow for modules to show an arbitrary notice.
46146         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46147         * gnulib-tool: New option --extract-notice.
46148         (func_usage): Document it.
46149         (sed_extract_prog): Update.
46150         (func_get_notice): New function.
46151         (func_modules_notice): New function.
46152         (func_import, func_create_testdir): Invoke it.
46153         Suggested by Jim Meyering.
46154
46155 2007-09-09  Bruno Haible  <bruno@clisp.org>
46156
46157         * gnulib-tool: New options --verbose, --quiet.
46158         (func_usage): Document them.
46159         (verbose): New variable.
46160         (func_execute_command): New function.
46161         (func_import): Don't show the module list and the file list if
46162         $verbose < 0.
46163         (func_create_testdir): Likewise. Use func_execute_command.
46164         (func_create_megatestdir): Use func_execute_command.
46165
46166 2007-09-08  Bruno Haible  <bruno@clisp.org>
46167
46168         * gnulib-tool (func_import): Prefer rsync over wget when available,
46169         for fetching the PO files.
46170
46171 2007-09-08  Bruno Haible  <bruno@clisp.org>
46172
46173         * posix-modules: New file. Portions copied from gnulib-tool.
46174         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46175
46176 2007-09-08  Jim Meyering  <jim@meyering.net>
46177
46178         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46179         * lib/fpending.h: Rename from __fpending.h.
46180         * lib/fpending.c: Rename from __fpending.c.
46181         Include "fpending.h", not "__fpending.h".
46182         * lib/__fpending.h, lib/__fpending.c: Remove files.
46183         * modules/fpending (Files): Reflect new file names.
46184         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46185
46186 2007-09-08  Bruno Haible  <bruno@clisp.org>
46187
46188         * m4/inttypes-h.m4: Remove stub file.
46189
46190 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46191
46192         * doc/headers/stdint.texi: Discuss #include_next issue.
46193
46194 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46195
46196         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46197
46198 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46199
46200         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46201         in variable name.
46202
46203 2007-09-03  Jim Meyering  <jim@meyering.net>
46204
46205         New module: git-version-gen.
46206         * modules/git-version-gen: New file.
46207
46208         Import changes from coreutils for bootstrap script.
46209
46210         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46211
46212         bootstrap: uses rsync to download the .po files
46213         * build-aux/bootstrap (po_download_command_format): New global.
46214         (download_po_files): Use rsync.
46215         (update_po_files): Don't remove .po files after download,
46216         so future rsync runs can take advantage of the copies.
46217
46218         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46219
46220         Solve the unnecessary-.po-file-regeneration problem once and for all.
46221         * build-aux/bootstrap (download_po_files): New function, renamed from
46222         get_translations.  Now, downloads, but doesn't update LINGUAS.
46223         (update_po_files): New function.
46224
46225         bootstrap: Ignore more.
46226         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46227         uniwidth to e.g., lib/.gitignore.
46228         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46229
46230         * build-aux/bootstrap: New setting: vc_ignore.
46231         (insert_sorted_if_absent): Create $file if absent.
46232         Adapt to new, possibly empty, list: $vc_ignore.
46233
46234         bootstrap: generate more ignorable names
46235         * build-aux/bootstrap (slurp): When generating ignorable names,
46236         also map .sin to .sed, .gperf to .c, and .y to .c.
46237
46238 2007-09-03  Jim Meyering  <jim@meyering.net>
46239
46240         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46241         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46242
46243 2007-09-02  Bruno Haible  <bruno@clisp.org>
46244
46245         Fix mis-recognition of 'mcs' on QNX 6.
46246         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46247         output contains the string "Mono".
46248         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46249         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46250
46251 2007-09-01  Bruno Haible  <bruno@clisp.org>
46252
46253         Fix collision between uniwidth/* and linebreak modules.
46254         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46255         u32_width): Remove declarations.
46256         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46257         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46258         streq3, streq2, streq1, streq0): Remove functions.
46259         (STREQ): Remove macro.
46260         (is_cjk_encoding): Remove function.
46261         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46262         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46263         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46264         * NEWS: Document the change.
46265
46266 2007-09-01  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/streq.h: Add double-inclusion guard.
46269
46270 2007-09-01  Karl Berry  <karl@gnu.org>
46271
46272         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46273
46274 2007-08-28  Jim Meyering  <jim@meyering.net>
46275
46276         Rename mreadlink_with_size to areadlink_with_size.
46277         * NEWS: Document the change.
46278         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46279         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46280         * lib/mreadlink.h: Rename this to...
46281         * lib/areadlink.h: ...this.
46282         * modules/mreadlink-with-size: Rename this to...
46283         * modules/areadlink-with-size: ...this.
46284         * lib/canonicalize.c: Reflect the renaming.
46285         * modules/canonicalize: Likewise.
46286
46287 2007-08-26  Bruno Haible  <bruno@clisp.org>
46288
46289         * gnulib-tool (func_import): When deciding which files to remove,
46290         consider also dangling symbolic links.
46291         Reported by Eric Blake.
46292
46293 2007-08-26  Bruno Haible  <bruno@clisp.org>
46294
46295         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46296
46297 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46298
46299         * lib/readline.c: Don't include getline.h, the prototype is now
46300         found in stdio.h.
46301
46302 2007-08-23  Jim Meyering  <jim@meyering.net>
46303
46304         Getdelim touchup.
46305         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46306         around the funlockfile call, since funlockfile never sets errno.
46307         Don't set errno upon failed realloc.
46308
46309 2007-08-22  Eric Blake  <ebb9@byu.net>
46310
46311         Getline touchups.
46312         * lib/getdelim.c (getdelim): Revert regression that required *n to
46313         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46314         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46315         getdelim, rather than whether implementation is missing.
46316         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46317         * lib/stdio_.h (getline): Also declare if replacement is
46318         required.
46319         * doc/functions/getdelim.texi: New file.
46320         * doc/functions/getline.texi: Likewise.
46321         * doc/gnulib.texi (Function Substitutes): Add new files.
46322         Reported by Bruno Haible.
46323
46324 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46325
46326         * users.txt: Add Guile.
46327
46328 2007-08-22  Eric Blake  <ebb9@byu.net>
46329
46330         * tests/test-getdelim.c (main): Use remove, not unlink.
46331         * tests/test-getline.c (main): Likewise.
46332
46333         Move getline and getdelim into stdio.h, per POSIX 200x.
46334         * modules/getline (Files): Remove getline.h.
46335         (Depends-on): Add stdio.
46336         (configure.ac): Add module indicator.
46337         * modules/getdelim (Files): Remove getdelim.h.
46338         (Depends-on): Add stdio.
46339         (configure.ac): Add module indicator.
46340         * modules/stdio (Makefile.am): Work with new indicators.
46341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46342         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
46343         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46344         * lib/getdelim.h: Delete.
46345         * lib/getline.h: Delete.
46346         * lib/stdio_.h (getdelim, getline): Declare.
46347         * modules/getdelim-tests: New module.
46348         * modules/getline-tests: Likewise.
46349         * tests/test-getdelim.c: New file.
46350         * tests/test-getline.c: Likewise.
46351         * NEWS: Document the change.
46352         * lib/getline.c: Update choice of header.
46353         * lib/csharpcomp.c: Likewise.
46354         * lib/getpass.c: Likewise.
46355         * lib/javacomp.c: Likewise.
46356         * lib/javaversion.c: Likewise.
46357         * lib/yesno.c: Likewise.
46358         * lib/getdelim.c: Likewise.
46359         (getdelim): Set errno on failure, and avoid memory leak.
46360
46361 2007-08-19  Bruno Haible  <bruno@clisp.org>
46362
46363         * modules/closein (Depends-on): Add freadahead.
46364         * lib/closein.c: Include freadahead.h.
46365         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
46366         is zero.
46367
46368 2007-08-19  Bruno Haible  <bruno@clisp.org>
46369
46370         * modules/freadahead-tests: New file.
46371         * tests/test-freadahead.sh: New file.
46372         * tests/test-freadahead.c: New file.
46373
46374         * modules/freadahead: New file.
46375         * lib/freadahead.h: New file.
46376         * lib/freadahead.c: New file.
46377         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
46378         fbufmode, fpurge, freadable, fwritable.
46379
46380 2007-08-19  Eric Blake  <ebb9@byu.net>
46381
46382         Test yesno in combination with closein.
46383         * lib/yesno.c (yesno): Document use of stdin.
46384         * modules/yesno-tests (Files): New module.
46385         * tests/test-yesno.c (main): New file.
46386         * tests/test-yesno.sh: Likewise.
46387
46388 2007-08-19  Bruno Haible  <bruno@clisp.org>
46389
46390         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
46391         * lib/fseeko.c (rpl_fseeko): Likewise.
46392         * lib/fseterr.c (fseterr): Likewise.
46393
46394 2007-08-19  Bruno Haible  <bruno@clisp.org>
46395
46396         * tests/test-lseek.c (main): Disable a test for BeOS.
46397         * doc/functions/lseek.texi: Document the BeOS bug.
46398
46399 2007-08-19  Bruno Haible  <bruno@clisp.org>
46400             Eric Blake  <ebb9@byu.net>
46401
46402         * lib/lseek.c: Include <sys/stat.h>.
46403         (rpl_lseek): Add workaround code also for Unix platforms.
46404         Needed for BeOS.
46405         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
46406         * doc/functions/lseek.texi: Document BeOS definiency.
46407
46408 2007-08-18  Bruno Haible  <bruno@clisp.org>
46409
46410         * modules/fstrcmp-tests: New file.
46411         * tests/test-fstrcmp.c: New file.
46412
46413 2007-08-18  Bruno Haible  <bruno@clisp.org>
46414
46415         * modules/fstrcmp: New file, from GNU gettext with modifications.
46416         * lib/fstrcmp.h: New file, from GNU gettext.
46417         * lib/fstrcmp.c: New file, from GNU gettext.
46418         * MODULES.html.sh (String handling): Add fstrcmp.
46419
46420 2007-08-18  Bruno Haible  <bruno@clisp.org>
46421
46422         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
46423         'bool'.
46424         (diag, compareseq): Remove const from the ctxt argument.
46425         (USE_HEURISTIC): Undefine at the end.
46426
46427 2007-08-18  Jim Meyering  <jim@meyering.net>
46428
46429         New file: lib/idcache.h
46430         * NEWS: Mention the addition.
46431         * modules/idcache (Files): Add lib/idcache.h
46432         * lib/idcache.c: Include "idcache.h".
46433         Don't include <sys/types.h>.
46434         Add a FIXME comment.
46435         Move file-scoped "static" declarations to the top.
46436         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
46437
46438 2007-08-17  Bruno Haible  <bruno@clisp.org>
46439         and Paul Eggert  <eggert@cs.ucla.edu>
46440
46441         * MODULES.html.sh: Add diffseq.
46442         * modules/diffseq: New file.
46443         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
46444         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
46445
46446 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46447
46448         Import changes from coreutils for bootstrap script.
46449
46450         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
46451
46452         * build-aux/bootstrap (slurp): Work even in environments where
46453         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
46454         current code does not slurp files whose names start with ".", and
46455         this looks like it might be a troublesome area.
46456
46457         2007-07-11  Jim Meyering  <jim@meyering.net>
46458
46459         If there's a GPL vN copyright comment, require that N == 3.
46460
46461         2007-07-08  Jim Meyering  <jim@meyering.net>
46462
46463         Run the coreutils-specific code only if tests/Makefile.am.in exists.
46464         * build-aux/bootstrap (mam_template): Move definition out of loop.
46465
46466         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
46467
46468         * build-aux/bootstrap (symlink_to_dir): Rename function from
46469         symlink_to_gnulib.  Add a directory parameter.  Update all
46470         callers.
46471         (cp_mark_as_generated): Also check for -- and link to -- files in
46472         gl/.
46473
46474         2007-07-08  Jim Meyering  <jim@meyering.net>
46475
46476         Adapt to deeper hierarchy in gnulib.
46477         * build-aux/bootstrap (symlink_to_dir): If the destination
46478         directory doesn't exist, create it. This is required at least for
46479         "lib/uniwidth/cjk.h".
46480
46481         2007-05-15  Jim Meyering  <jim@meyering.net>
46482
46483         * build-aux/bootstrap: Now that generated Makefile.am files
46484         are no longer under version control, they must be created at
46485         bootstrap time.
46486
46487 2007-08-14  Ben Pfaff  <blp@gnu.org>
46488
46489         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
46490
46491 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46492
46493         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
46494         given the changes below.
46495         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
46496         even on hosts that have padding bits beyond the supported 64.
46497
46498 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46499
46500         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
46501         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
46502         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
46503         depends on it.
46504         (xstrtol_error): Remove.
46505         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
46506         but with a different signature.
46507         (ATTRIBUTE_NORETURN, __attribute__): New macros.
46508         * lib/xstrtol-error.c: Include exitfail.h.
46509         (xstrtol_fatal): New function, with a different signature from the
46510         old xstrtol_error, so that the caller need not worry about passing
46511         in an exit status, or about storage management of the option argument.
46512         (xstrtol_error): Now a static function.  Redo signature to
46513         implement xstrtol_fatal.  Output the correct number of hyphens in
46514         front of the option so that the caller need not worry about
46515         storage management.
46516         (N_): New macro.
46517         (_): Remove; not used now.
46518         * modules/xstrtol: Depend on getopt.
46519         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
46520         of old STRTOL_FATAL_ERROR macro.
46521         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
46522         of test program.
46523         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
46524         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
46525
46526 2007-08-08  Eric Blake  <ebb9@byu.net>
46527
46528         * lib/xstrtol-error.c: Add missing include.
46529
46530         Move xstrtol messages into gnulib domain, when --pobase is used.
46531         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
46532         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
46533         * modules/xstrtol (Files): Distribute new file.
46534         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
46535         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
46536         * tests/test-xstrtol.c: ...into new file.
46537         * tests/test-xstrtoul.c: Also test xstrtoul.
46538         * tests/test-xstrtoimax.c: Also test xstrtoimax.
46539         * tests/test-xstrtoumax.c: Also test xstrtoumax.
46540         * tests/test-xstrtol.sh: Drive the tests.
46541         * tests/test-xstrtoimax.sh: Likewise.
46542         * tests/test-xstrtoumax.sh: Likewise.
46543         * modules/xstrtol-tests: New module.
46544         * modules/xstrtoimax-tests: Likewise.
46545         * modules/xstrtoumax-tests: Likewise.
46546
46547 2007-08-08  Jim Meyering  <jim@meyering.net>
46548
46549         New function: mfile_name_concat.
46550         * lib/filenamecat.c (mfile_name_concat): New function, just like
46551         file_name_concat, but return NULL upon failure rather than exiting
46552         with a diagnostic.
46553         * lib/filenamecat.h: Declare it.
46554
46555 2007-08-07  Bruno Haible  <bruno@clisp.org>
46556
46557         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46558         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46559         warning from gcc.
46560         Reported by Eric Blake.
46561
46562 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46563
46564         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46565         * modules/crypto/arcfour (License): Likewise.
46566         * modules/crypto/des-tests (License): Likewise.
46567         * modules/crypto/gc-arctwo-tests (License): Likewise.
46568         * modules/crypto/gc-des-tests (License): Likewise.
46569         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46570         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46571         * modules/crypto/gc-md2-tests (License): Likewise.
46572         * modules/crypto/gc-md4-tests (License): Likewise.
46573         * modules/crypto/gc-md5-tests (License): Likewise.
46574         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46575         * modules/crypto/gc-rijndael-tests (License): Likewise.
46576         * modules/crypto/gc-sha1-tests (License): Likewise.
46577         * modules/crypto/gc-tests (License): Likewise.
46578         * modules/crypto/hmac-md5 (License): Likewise.
46579         * modules/crypto/hmac-sha1 (License): Likewise.
46580         * modules/crypto/md2-tests (License): Likewise.
46581         * modules/crypto/md4-tests (License): Likewise.
46582         * modules/crypto/md5 (License): Likewise.
46583         * modules/crypto/rijndael (License): Likewise.
46584         * modules/crypto/sha1 (License): Likewise.
46585         * modules/memxor (License): Likewise.
46586
46587 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46588         and Bruno Haible  <bruno@clisp.org>
46589
46590         * NEWS: Describe interface changes to human, xstrtol.
46591         * lib/human.h: Include <xstrtol.h>.
46592         (human_options): Return enum strtol_error, not int.  Remove
46593         bool arg; take int * instead.
46594         * lib/human.c: Don't include "gettext.h".
46595         (_): Remove; no longer used.
46596         Don't include <xstrtol.h>, since human.h does it.
46597         (human_options): Adjust to abovementioned interface changes.
46598         Do not report error to stderr; that's now the caller's
46599         responsibility.
46600         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46601         interface change.
46602         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46603         Str, Argument_type_string.  All uses changed.  Put " argument"
46604         in diagnostics to make them clearer.  Change wording of suffix
46605         message for clarity.
46606         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46607         Argument_type_string.
46608         (STRTOL_FATAL_WARN): Remove; no longer used.
46609         * modules/human (Depends-on): Remove gettext-h.
46610
46611 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46612
46613         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46614
46615 2007-07-31  Bruno Haible  <bruno@clisp.org>
46616
46617         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46618         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46619         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46620
46621 2007-07-31  Bruno Haible  <bruno@clisp.org>
46622
46623         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46624         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46625
46626 2007-07-30  Bruno Haible  <bruno@clisp.org>
46627
46628         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46629         * modules/c-ctype (License): Likewise.
46630         * modules/c-strcase (License): Likewise.
46631         * modules/check-version (License): Likewise.
46632         * modules/iconv (License): Likewise.
46633         * modules/iconv_open (License): Likewise.
46634         * modules/read-file (License): Likewise.
46635         * modules/striconv (License): Likewise.
46636         * modules/strverscmp (License): Likewise.
46637         * modules/vasprintf (License): Likewise.
46638         * modules/crypto/des (License): Likewise.
46639         * modules/crypto/gc (License): Likewise.
46640         * modules/crypto/gc-arcfour (License): Likewise.
46641         * modules/crypto/gc-arctwo (License): Likewise.
46642         * modules/crypto/gc-des (License): Likewise.
46643         * modules/crypto/gc-hmac-md5 (License): Likewise.
46644         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46645         * modules/crypto/gc-md2 (License): Likewise.
46646         * modules/crypto/gc-md4 (License): Likewise.
46647         * modules/crypto/gc-md5 (License): Likewise.
46648         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46649         * modules/crypto/gc-random (License): Likewise.
46650         * modules/crypto/gc-rijndael (License): Likewise.
46651         * modules/crypto/gc-sha1 (License): Likewise.
46652         * modules/crypto/md2 (License): Likewise.
46653         * modules/crypto/md4 (License): Likewise.
46654
46655 2007-07-30  Jim Meyering  <jim@meyering.net>
46656
46657         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46658         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46659         it has valid stat data.  This bug would cause du not to count the
46660         sizes of inaccessible directories.
46661         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46662         in <http://bugzilla.redhat.com/250077>.
46663
46664 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46665             Bruno Haible  <bruno@clisp.org>
46666
46667         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46668         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46669         #include_next, gives a diagnostic about it, but reports no error in
46670         the exit code.
46671         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46672
46673 2007-07-24  Ben Pfaff  <blp@gnu.org>
46674
46675         Improve name: "count-one-bits" is better than "popcount".
46676         * MODULES.html.sh: Update name.
46677         * lib/popcount.h: Renamed lib/count-one-bits.h.
46678         (popcount): Renamed count_one_bits.
46679         (popcountl): Renamed count_one_bits_l.
46680         (popcountll): Renamed count_one_bits_ll.
46681         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46682         * modules/popcount: Renamed module/count-one-bits.
46683         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46684         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46685
46686 2007-07-23  Ben Pfaff  <blp@gnu.org>
46687
46688         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46689         better code generation, and add U to large constants to avoid
46690         warnings, in non-GCC case.
46691         Suggested by Bruno Haible.
46692
46693 2007-07-23  Ben Pfaff  <blp@gnu.org>
46694
46695         * lib/popcount.h: Use verify_true instead of if...abort.
46696         * modules/popcount: Depend on verify module.
46697         Suggested by Jim Meyering.
46698
46699 2007-07-23  Bruno Haible  <bruno@clisp.org>
46700
46701         * gnulib-tool (func_import): Create a .cvsignore file also when the
46702         directory is not yet in CVS but the toplevel directory is. When
46703         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46704         Reported by Karl Berry.
46705
46706 2007-07-22  Ben Pfaff  <blp@gnu.org>
46707
46708         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46709         case.
46710         Suggested by Eric Blake.
46711
46712 2007-07-22  Ben Pfaff  <blp@gnu.org>
46713
46714         New module: popcount.
46715         * MODULES.html.sh: Add popcount.
46716         * modules/popcount: New file.
46717         * modules/popcount-tests: New file.
46718         * tests/test-popcount.c: New file.
46719         * lib/popcount.h: New file.
46720         * m4/popcount.m4: New file.
46721
46722 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46723
46724         * build-aux/announce-gen: Update to GPLv3.
46725
46726         * build-aux/config.guess: Update from config.
46727
46728 2007-07-21  Bruno Haible  <bruno@clisp.org>
46729
46730         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46731         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46732
46733 2007-07-20  Jim Meyering  <jim@meyering.net>
46734
46735         * check-module: Diagnose a self-dependency.
46736
46737 2007-07-19  Bruno Haible  <bruno@clisp.org>
46738
46739         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46740         empty.
46741         Reported by Eric Blake.
46742
46743 2007-07-18  Bruno Haible  <bruno@clisp.org>
46744
46745         * gnulib-tool: New options --po-base, --po-domain.
46746         (func_usage): Document them.
46747         (pobase, po_domain): New variables.
46748         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46749         DEFAULT_TEXT_DOMAIN.
46750         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46751         (func_import): Consider pobase and po_domain. Create a po/ directory.
46752         (func_create_testdir): Set pobase and po_domain to empty.
46753         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46754         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46755
46756 2007-07-18  Bruno Haible  <bruno@clisp.org>
46757
46758         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46759         EXTRA_DIST augmentation for files in build-aux/.
46760
46761 2007-07-16  Bruno Haible  <bruno@clisp.org>
46762
46763         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46764         * modules/getdelim (License): Likewise.
46765
46766 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46767
46768         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46769         * modules/d-type (License): Likewise.
46770         * modules/extensions (License): Likewise.
46771         * modules/fnmatch (License): Likewise.
46772         * modules/fseeko (License): Likewise.
46773         * modules/getaddrinfo (License): Likewise.
46774         * modules/getline (License): Likewise.
46775         * modules/getlogin_r (License): Likewise.
46776         * modules/getpass (License): Likewise.
46777         * modules/gettimeofday (License): Likewise.
46778         * modules/glob (License): Likewise.
46779         * modules/inet_ntop (License): Likewise.
46780         * modules/malloc (License): Likewise.
46781         * modules/malloca (License): Likewise.
46782         * modules/memmem (License): Likewise.
46783         * modules/mempcpy (License): Likewise.
46784         * modules/memset (License): Likewise.
46785         * modules/minmax (License): Likewise.
46786         * modules/mktime (License): Likewise.
46787         * modules/netinet_in (License): Likewise.
46788         * modules/pathmax (License): Likewise.
46789         * modules/poll (License): Likewise.
46790         * modules/regex (License): Likewise.
46791         * modules/snprintf (License): Likewise.
46792         * modules/stdbool (License): Likewise.
46793         * modules/stdint (License): Likewise.
46794         * modules/stdio (License): Likewise.
46795         * modules/strcase (License): Likewise.
46796         * modules/strcasestr (License): Likewise.
46797         * modules/strdup (License): Likewise.
46798         * modules/string (License): Likewise.
46799         * modules/strndup (License): Likewise.
46800         * modules/strnlen (License): Likewise.
46801         * modules/strpbrk (License): Likewise.
46802         * modules/strptime (License): Likewise.
46803         * modules/strsep (License): Likewise.
46804         * modules/sys_select (License): Likewise.
46805         * modules/sys_socket (License): Likewise.
46806         * modules/sys_stat (License): Likewise.
46807         * modules/sys_time (License): Likewise.
46808         * modules/time (License): Likewise.
46809         * modules/time_r (License): Likewise.
46810         * modules/timegm (License): Likewise.
46811         * modules/unistd (License): Likewise.
46812         * modules/vsnprintf (License): Likewise.
46813         * modules/wctype (License): Likewise.
46814
46815 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46816
46817         * modules/argz (License): LGPLv2+.
46818
46819 2007-07-15  Karl Berry  <karl@gnu.org>
46820
46821         * doc/gnulib.texi: revise node structure per new fdl.texi.
46822
46823 2007-07-14  Bruno Haible  <bruno@clisp.org>
46824
46825         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46826         the output file.
46827         * lib/uniname/uninames.h: Regenerated.
46828
46829 2007-07-14  Karl Berry  <karl@gnu.org>
46830
46831         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46832         omitting sectioning and index commands.
46833
46834 2007-07-13  Bruno Haible  <bruno@clisp.org>
46835
46836         New gnulib-tool option --more-symlinks.
46837         * gnulib-tool (func_usage): Document --more-symlinks.
46838         (do_copyrights): New variable.
46839         Recognize option --more-symlinks.
46840         (func_import): Don't add a copyright notice transform to
46841         sed_transform_lib_file if do_copyrights is empty.
46842
46843 2007-07-13  Bruno Haible  <bruno@clisp.org>
46844
46845         * lib/vasnprintf.c (decimal_point_char): Define also if
46846         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46847         && !NEED_PRINTF_DIRECTIVE_A.
46848         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46849         Gary V. Vaughan <gary@gnu.org>.
46850
46851 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46852
46853         * lib/inttypes_.h: Undo previous change, since it was fixed
46854         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46855
46856 2007-07-13  Bruno Haible  <bruno@clisp.org>
46857
46858         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46859         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46860
46861 2007-07-13  Jim Meyering  <jim@meyering.net>
46862
46863         df: Don't fail for Tru64's "file-on-file mount".
46864         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46865         so we fall through and use statfs instead.  Details here:
46866         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46867         Reported by Albert Chin.
46868
46869 2007-07-13  Bruno Haible  <bruno@clisp.org>
46870
46871         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46872         * modules/configmake (License): Likewise.
46873         * modules/gettext (License): Likewise.
46874         * modules/gettext-h (License): Likewise.
46875         * modules/include_next (License): Likewise.
46876         * modules/link-warning (License): Likewise.
46877         * modules/localcharset (License): Likewise.
46878         * modules/localename (License): Likewise.
46879         * modules/lock (License): Likewise.
46880         * modules/relocatable-lib-lgpl (License): Likewise.
46881         * modules/size_max (License): Likewise.
46882         * modules/vasnprintf (License): Likewise.
46883         * modules/wchar (License): Likewise.
46884         * modules/xsize (License): Likewise.
46885
46886 2007-07-13  Bruno Haible  <bruno@clisp.org>
46887
46888         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46889         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46890
46891 2007-07-12  Bruno Haible  <bruno@clisp.org>
46892
46893         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46894         in the modules files.
46895
46896 2007-07-11  Karl Berry  <karl@gnu.org>
46897
46898         * MODULES.html.sh (func_module): use
46899          sed -e '\|^'"${includefile}"'$|d'
46900          instead of /.../d, to avoid errors on $includefile's containing /.
46901
46902 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46903
46904         * gnulib-tool (func_import): Avoid duplication of --avoid
46905         statements
46906         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46907         names to `_' in variable names.
46908
46909 2007-07-10  Eric Blake  <ebb9@byu.net>
46910
46911         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46912         * NEWS: Document this change.
46913
46914 2007-07-08  Bruno Haible  <bruno@clisp.org>
46915
46916         Update to Unicode 5.0.
46917         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46918         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46919         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46920         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46921         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46922         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46923         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46924         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46925         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46926         U+10A3F, U+1D242..U+1D244.
46927         (nonspacing_table_ind): Update.
46928         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46929         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46930
46931 2007-07-08  Bruno Haible  <bruno@clisp.org>
46932
46933         Update to Unicode 5.0.
46934         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46935         code transform. Extend the name index field of unicode_name_to_code and
46936         unicode_code_to_name from 16 to 24 bits.
46937         * lib/uniname/uniname.c (unicode_character_name,
46938         unicode_name_character): Add the range 0x12xxx to the code transform.
46939         * lib/uniname/uninames.h: Regenerated.
46940         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46941
46942 2007-07-07  Bruno Haible  <bruno@clisp.org>
46943
46944         * modules/wcwidth-tests: New file.
46945         * tests/test-wcwidth.c: New file.
46946
46947         Work around MacOS X wcwidth() bug.
46948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46949         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46950         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46951         original wcwidth in non-UTF-8 locales.
46952         * modules/wcwidth (Depends-on): Add localcharset, streq,
46953         uniwidth/width.
46954         * doc/functions/wcwidth.texi: Update.
46955
46956 2007-07-07  Bruno Haible  <bruno@clisp.org>
46957
46958         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46959         (wcwidth): New declaration.
46960         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46961         macros.
46962         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46963         here. Prepare for creating <wchar.h> unconditionally.
46964         * modules/wchar (Depends-on): Add link-warning.
46965         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46966         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46967         * lib/wcwidth.h: Remove file.
46968         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46969         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46970         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46971         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46972         (Include): Replace wcwidth.h with <wchar.h>.
46973         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46974         * lib/mbchar.h: Don't include wcwidth.h.
46975         * lib/mbswidth.c: Likewise.
46976         * NEWS: Mention the change.
46977
46978 2007-07-07  Bruno Haible  <bruno@clisp.org>
46979
46980         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46981         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46982         definition with an external declaration.
46983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46984         defined as a function. Remove AC_C_INLINE requirement.
46985         * modules/wcwidth (Files): Add lib/wcwidth.c.
46986         (Makefile.am): Remove redundant statement.
46987
46988 2007-07-07  Bruno Haible  <bruno@clisp.org>
46989
46990         * MODULES.html.sh (Unicode string functions): Add the new modules.
46991
46992         * tests/uniwidth/test-u32-strwidth.c: New file.
46993         * modules/uniwidth/u32-strwidth-tests: New file.
46994
46995         * lib/uniwidth/u32-strwidth.c: New file.
46996         * modules/uniwidth/u32-strwidth: New file.
46997
46998         * tests/uniwidth/test-u16-strwidth.c: New file.
46999         * modules/uniwidth/u16-strwidth-tests: New file.
47000
47001         * lib/uniwidth/u16-strwidth.c: New file.
47002         * modules/uniwidth/u16-strwidth: New file.
47003
47004         * tests/uniwidth/test-u8-strwidth.c: New file.
47005         * modules/uniwidth/u8-strwidth-tests: New file.
47006
47007         * lib/uniwidth/u8-strwidth.c: New file.
47008         * modules/uniwidth/u8-strwidth: New file.
47009
47010         * tests/uniwidth/test-u32-width.c: New file.
47011         * modules/uniwidth/u32-width-tests: New file.
47012
47013         * lib/uniwidth/u32-width.c: New file.
47014         * modules/uniwidth/u32-width: New file.
47015
47016         * tests/uniwidth/test-u16-width.c: New file.
47017         * modules/uniwidth/u16-width-tests: New file.
47018
47019         * lib/uniwidth/u16-width.c: New file.
47020         * modules/uniwidth/u16-width: New file.
47021
47022         * tests/uniwidth/test-u8-width.c: New file.
47023         * modules/uniwidth/u8-width-tests: New file.
47024
47025         * lib/uniwidth/u8-width.c: New file.
47026         * modules/uniwidth/u8-width: New file.
47027
47028         * tests/uniwidth/test-uc_width.c: New file.
47029         * modules/uniwidth/width-tests: New file.
47030
47031         * lib/uniwidth/width.c: New file, from GNU libiconv.
47032         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47033         * modules/uniwidth/width: New file.
47034
47035         * lib/uniwidth.h: New file, from GNU libiconv.
47036         * modules/uniwidth/base: New file.
47037
47038 2007-07-07  Bruno Haible  <bruno@clisp.org>
47039
47040         * lib/uniname.h: New file, from GNU gettext.
47041         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47042         * lib/uniname/uninames.h: New file, from GNU gettext.
47043         * lib/uniname/uniname.c: New file, from GNU gettext.
47044         * tests/uniname/test-uninames.sh: New file.
47045         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47046         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47047         * modules/uniname/base: New file.
47048         * modules/uniname/uniname: New file.
47049         * modules/uniname/uniname-tests: New file.
47050         * MODULES.html.sh (Unicode string functions): Add the new modules.
47051
47052 2007-07-06  Bruno Haible  <bruno@clisp.org>
47053
47054         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47055
47056 2007-07-06  Bruno Haible  <bruno@clisp.org>
47057
47058         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47059         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47060         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47061         include <sys/time.h>.
47062         Reported by Eric Blake.
47063
47064 2007-07-06  Eric Blake  <ebb9@byu.net>
47065
47066         Fix testing canonicalize on cygwin.
47067         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47068         Revert patch from 2007-06-19.
47069         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47070         canonicalize module is also in use.
47071         * tests/test-canonicalize.c: New file.
47072         * tests/test-canonicalize.sh: Likewise.
47073         * modules/canonicalize-tests: Likewise.
47074
47075 2007-07-06  Jim Meyering  <jim@meyering.net>
47076
47077         * lib/getugroups.c (getugroups): Detect getgrent failure.
47078         Adjust comment to reflect reality: this function may return -1.
47079
47080 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47081
47082         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47083         the new TP address.
47084         (usage): Fix typo
47085         (gnulib_mk): New variable.
47086
47087 2007-07-05  Jim Meyering  <jim@meyering.net>
47088
47089         Don't let endgrent clobber errno, no matter how improbable.
47090         * lib/getugroups.c (getugroups): Save and restore errno around
47091         endgrent call.
47092
47093         Close the group DB even when failing with 2^31 or more members.
47094         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47095
47096 2007-07-04  Jim Meyering  <jim@meyering.net>
47097
47098         * lib/getugroups.h: New file.
47099         * lib/getugroups.c: Include "getugroups.h".
47100         Remove uses of "register" keyword.
47101         Move local variable, "cp", down into scope where used.
47102         Give "username" parameter the "const" attribute.
47103         * modules/getugroups (Files): Add lib/getugroups.h
47104
47105 2007-07-04  Karl Berry  <karl@gnu.org>
47106
47107         * MODULES.html.sh (func_all_modules): Complete rename of
47108         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47109
47110 2007-07-02  Bruno Haible  <bruno@clisp.org>
47111
47112         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47113         mode, when inttypes.h comes from gnulib.
47114         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47115
47116 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47117
47118         * NEWS: Mention lgpl module name change.
47119
47120         * modules/lgpl-2.1: Renamed from lgpl.
47121
47122         * NEWS: Mention gpl module name change.
47123
47124         * modules/gpl-3.0: New file, based on gpl-2.0.
47125
47126         * modules/gpl-2.0: Renamed from gpl.
47127
47128         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47129         doc/gpl-2.0.texi.
47130
47131 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47132
47133         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47134         #define __STDC_LIMIT_MACROS temporarily while including
47135         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47136         Problem reported by Joel E. Denny in
47137         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47138
47139 2007-07-01  Bruno Haible  <bruno@clisp.org>
47140
47141         * lib/unistdio.h: New file.
47142         * lib/unistdio/u-asnprintf.h: New file.
47143         * lib/unistdio/u-asprintf.h: New file.
47144         * lib/unistdio/u-printf-args.c: New file.
47145         * lib/unistdio/u-printf-args.h: New file.
47146         * lib/unistdio/u-printf-parse.h: New file.
47147         * lib/unistdio/u-snprintf.h: New file.
47148         * lib/unistdio/u-sprintf.h: New file.
47149         * lib/unistdio/u-vasprintf.h: New file.
47150         * lib/unistdio/u-vsnprintf.h: New file.
47151         * lib/unistdio/u-vsprintf.h: New file.
47152         * lib/unistdio/ulc-asnprintf.c: New file.
47153         * lib/unistdio/ulc-asprintf.c: New file.
47154         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47155         * lib/unistdio/ulc-printf-parse.c: New file.
47156         * lib/unistdio/ulc-snprintf.c: New file.
47157         * lib/unistdio/ulc-sprintf.c: New file.
47158         * lib/unistdio/ulc-vasnprintf.c: New file.
47159         * lib/unistdio/ulc-vasprintf.c: New file.
47160         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47161         * lib/unistdio/ulc-vsnprintf.c: New file.
47162         * lib/unistdio/ulc-vsprintf.c: New file.
47163         * lib/unistdio/u8-asnprintf.c: New file.
47164         * lib/unistdio/u8-asprintf.c: New file.
47165         * lib/unistdio/u8-printf-parse.c: New file.
47166         * lib/unistdio/u8-snprintf.c: New file.
47167         * lib/unistdio/u8-sprintf.c: New file.
47168         * lib/unistdio/u8-vasnprintf.c: New file.
47169         * lib/unistdio/u8-vasprintf.c: New file.
47170         * lib/unistdio/u8-vsnprintf.c: New file.
47171         * lib/unistdio/u8-vsprintf.c: New file.
47172         * lib/unistdio/u8-u8-asnprintf.c: New file.
47173         * lib/unistdio/u8-u8-asprintf.c: New file.
47174         * lib/unistdio/u8-u8-snprintf.c: New file.
47175         * lib/unistdio/u8-u8-sprintf.c: New file.
47176         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47177         * lib/unistdio/u8-u8-vasprintf.c: New file.
47178         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47179         * lib/unistdio/u8-u8-vsprintf.c: New file.
47180         * lib/unistdio/u16-asnprintf.c: New file.
47181         * lib/unistdio/u16-asprintf.c: New file.
47182         * lib/unistdio/u16-printf-parse.c: New file.
47183         * lib/unistdio/u16-snprintf.c: New file.
47184         * lib/unistdio/u16-sprintf.c: New file.
47185         * lib/unistdio/u16-vasnprintf.c: New file.
47186         * lib/unistdio/u16-vasprintf.c: New file.
47187         * lib/unistdio/u16-vsnprintf.c: New file.
47188         * lib/unistdio/u16-vsprintf.c: New file.
47189         * lib/unistdio/u16-u16-asnprintf.c: New file.
47190         * lib/unistdio/u16-u16-asprintf.c: New file.
47191         * lib/unistdio/u16-u16-snprintf.c: New file.
47192         * lib/unistdio/u16-u16-sprintf.c: New file.
47193         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47194         * lib/unistdio/u16-u16-vasprintf.c: New file.
47195         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47196         * lib/unistdio/u16-u16-vsprintf.c: New file.
47197         * lib/unistdio/u32-asnprintf.c: New file.
47198         * lib/unistdio/u32-asprintf.c: New file.
47199         * lib/unistdio/u32-printf-parse.c: New file.
47200         * lib/unistdio/u32-snprintf.c: New file.
47201         * lib/unistdio/u32-sprintf.c: New file.
47202         * lib/unistdio/u32-vasnprintf.c: New file.
47203         * lib/unistdio/u32-vasprintf.c: New file.
47204         * lib/unistdio/u32-vsnprintf.c: New file.
47205         * lib/unistdio/u32-vsprintf.c: New file.
47206         * lib/unistdio/u32-u32-asnprintf.c: New file.
47207         * lib/unistdio/u32-u32-asprintf.c: New file.
47208         * lib/unistdio/u32-u32-snprintf.c: New file.
47209         * lib/unistdio/u32-u32-sprintf.c: New file.
47210         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47211         * lib/unistdio/u32-u32-vasprintf.c: New file.
47212         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47213         * lib/unistdio/u32-u32-vsprintf.c: New file.
47214         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47215         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47216         * tests/unistdio/test-ulc-printf1.h: New file.
47217         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47218         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47219         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47220         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47221         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47222         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47223         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47224         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47225         * tests/unistdio/test-u8-asnprintf1.c: New file.
47226         * tests/unistdio/test-u8-asnprintf1.h: New file.
47227         * tests/unistdio/test-u8-printf1.h: New file.
47228         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47229         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47230         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47231         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47232         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47233         * tests/unistdio/test-u8-vasprintf1.c: New file.
47234         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47235         * tests/unistdio/test-u8-vsprintf1.c: New file.
47236         * tests/unistdio/test-u16-asnprintf1.c: New file.
47237         * tests/unistdio/test-u16-asnprintf1.h: New file.
47238         * tests/unistdio/test-u16-printf1.h: New file.
47239         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47240         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47241         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47242         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47243         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47244         * tests/unistdio/test-u16-vasprintf1.c: New file.
47245         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47246         * tests/unistdio/test-u16-vsprintf1.c: New file.
47247         * tests/unistdio/test-u32-asnprintf1.c: New file.
47248         * tests/unistdio/test-u32-asnprintf1.h: New file.
47249         * tests/unistdio/test-u32-printf1.h: New file.
47250         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47251         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47252         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47253         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47254         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47255         * tests/unistdio/test-u32-vasprintf1.c: New file.
47256         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47257         * tests/unistdio/test-u32-vsprintf1.c: New file.
47258         * modules/unistdio/base: New file.
47259         * modules/unistdio/u-printf-args: New file.
47260         * modules/unistdio/ulc-asnprintf: New file.
47261         * modules/unistdio/ulc-asprintf: New file.
47262         * modules/unistdio/ulc-fprintf: New file.
47263         * modules/unistdio/ulc-printf-parse: New file.
47264         * modules/unistdio/ulc-snprintf: New file.
47265         * modules/unistdio/ulc-sprintf: New file.
47266         * modules/unistdio/ulc-vasnprintf: New file.
47267         * modules/unistdio/ulc-vasprintf: New file.
47268         * modules/unistdio/ulc-vfprintf: New file.
47269         * modules/unistdio/ulc-vsnprintf: New file.
47270         * modules/unistdio/ulc-vsprintf: New file.
47271         * modules/unistdio/u8-asnprintf: New file.
47272         * modules/unistdio/u8-asprintf: New file.
47273         * modules/unistdio/u8-printf-parse: New file.
47274         * modules/unistdio/u8-snprintf: New file.
47275         * modules/unistdio/u8-sprintf: New file.
47276         * modules/unistdio/u8-vasnprintf: New file.
47277         * modules/unistdio/u8-vasprintf: New file.
47278         * modules/unistdio/u8-vsnprintf: New file.
47279         * modules/unistdio/u8-vsprintf: New file.
47280         * modules/unistdio/u8-u8-asnprintf: New file.
47281         * modules/unistdio/u8-u8-asprintf: New file.
47282         * modules/unistdio/u8-u8-snprintf: New file.
47283         * modules/unistdio/u8-u8-sprintf: New file.
47284         * modules/unistdio/u8-u8-vasnprintf: New file.
47285         * modules/unistdio/u8-u8-vasprintf: New file.
47286         * modules/unistdio/u8-u8-vsnprintf: New file.
47287         * modules/unistdio/u8-u8-vsprintf: New file.
47288         * modules/unistdio/u16-asnprintf: New file.
47289         * modules/unistdio/u16-asprintf: New file.
47290         * modules/unistdio/u16-printf-parse: New file.
47291         * modules/unistdio/u16-snprintf: New file.
47292         * modules/unistdio/u16-sprintf: New file.
47293         * modules/unistdio/u16-vasnprintf: New file.
47294         * modules/unistdio/u16-vasprintf: New file.
47295         * modules/unistdio/u16-vsnprintf: New file.
47296         * modules/unistdio/u16-vsprintf: New file.
47297         * modules/unistdio/u16-u16-asnprintf: New file.
47298         * modules/unistdio/u16-u16-asprintf: New file.
47299         * modules/unistdio/u16-u16-snprintf: New file.
47300         * modules/unistdio/u16-u16-sprintf: New file.
47301         * modules/unistdio/u16-u16-vasnprintf: New file.
47302         * modules/unistdio/u16-u16-vasprintf: New file.
47303         * modules/unistdio/u16-u16-vsnprintf: New file.
47304         * modules/unistdio/u16-u16-vsprintf: New file.
47305         * modules/unistdio/u32-asnprintf: New file.
47306         * modules/unistdio/u32-asprintf: New file.
47307         * modules/unistdio/u32-printf-parse: New file.
47308         * modules/unistdio/u32-snprintf: New file.
47309         * modules/unistdio/u32-sprintf: New file.
47310         * modules/unistdio/u32-vasnprintf: New file.
47311         * modules/unistdio/u32-vasprintf: New file.
47312         * modules/unistdio/u32-vsnprintf: New file.
47313         * modules/unistdio/u32-vsprintf: New file.
47314         * modules/unistdio/u32-u32-asnprintf: New file.
47315         * modules/unistdio/u32-u32-asprintf: New file.
47316         * modules/unistdio/u32-u32-snprintf: New file.
47317         * modules/unistdio/u32-u32-sprintf: New file.
47318         * modules/unistdio/u32-u32-vasnprintf: New file.
47319         * modules/unistdio/u32-u32-vasprintf: New file.
47320         * modules/unistdio/u32-u32-vsnprintf: New file.
47321         * modules/unistdio/u32-u32-vsprintf: New file.
47322         * modules/unistdio/ulc-asnprintf-tests: New file.
47323         * modules/unistdio/ulc-vasnprintf-tests: New file.
47324         * modules/unistdio/ulc-vasprintf-tests: New file.
47325         * modules/unistdio/ulc-vsnprintf-tests: New file.
47326         * modules/unistdio/ulc-vsprintf-tests: New file.
47327         * modules/unistdio/u8-asnprintf-tests: New file.
47328         * modules/unistdio/u8-vasnprintf-tests: New file.
47329         * modules/unistdio/u8-vasprintf-tests: New file.
47330         * modules/unistdio/u8-vsnprintf-tests: New file.
47331         * modules/unistdio/u8-vsprintf-tests: New file.
47332         * modules/unistdio/u16-asnprintf-tests: New file.
47333         * modules/unistdio/u16-vasnprintf-tests: New file.
47334         * modules/unistdio/u16-vasprintf-tests: New file.
47335         * modules/unistdio/u16-vsnprintf-tests: New file.
47336         * modules/unistdio/u16-vsprintf-tests: New file.
47337         * modules/unistdio/u32-asnprintf-tests: New file.
47338         * modules/unistdio/u32-vasnprintf-tests: New file.
47339         * modules/unistdio/u32-vasprintf-tests: New file.
47340         * modules/unistdio/u32-vsnprintf-tests: New file.
47341         * modules/unistdio/u32-vsprintf-tests: New file.
47342         * MODULES.html.sh (Unicode string functions): Add the new modules.
47343
47344 2007-07-01  Bruno Haible  <bruno@clisp.org>
47345
47346         * lib/sprintf.c (sprintf): Limit the available length estimation,
47347         to avoid address wraparound.
47348         * lib/vsprintf.c (vsprintf): Likewise.
47349         * modules/sprintf-posix (Dependencies): Add stdint.
47350         * modules/vsprintf-posix (Dependencies): Likewise.
47351
47352 2007-07-01  Bruno Haible  <bruno@clisp.org>
47353
47354         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
47355         Windows PATH as well. Conservative double-quoting. Comments.
47356
47357 2007-07-01  Bruno Haible  <bruno@clisp.org>
47358             Eric Blake  <ebb9@byu.net>
47359             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47360
47361         * gnulib-tool (self_abspathname): Fix algorithm to cope with
47362         empty components in $PATH, denoting '.'.
47363
47364 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47365
47366         * gnulib-tool: Fix indentation.
47367         (func_create_megatestdir): Likewise.
47368         Report by Bruno Haible.
47369
47370 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47371
47372         Sync from Automake.
47373         * build-aux/gnupload: Fix shell portability issues with for loops.
47374         Report by Karl Berry.
47375
47376 2007-06-29  Simon Josefsson  <simon@josefsson.org>
47377
47378         * build-aux/maint.mk (POURL): Use translationproject.org.
47379
47380 2007-06-27  Simon Josefsson  <simon@josefsson.org>
47381             Bruno Haible  <bruno@clisp.org>
47382
47383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
47384         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
47385         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
47386         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
47387         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
47388
47389 2007-06-27  Bruno Haible  <bruno@clisp.org>
47390
47391         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
47392         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
47393
47394 2007-06-26  Karl Berry  <karl@gnu.org>
47395
47396         * MODULES.html.sh: remove xreadlink-with-size.
47397
47398 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47399
47400         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
47401         method that I hope also handles the double-include problem noted
47402         by Bruno Haible in
47403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
47404
47405 2007-06-23  Bruno Haible  <bruno@clisp.org>
47406
47407         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47408         Don't let the 'mostlyclean' target fail if the last subdirectory could
47409         not be removed.
47410         Reported by Karl Berry.
47411
47412 2007-06-23  Bruno Haible  <bruno@clisp.org>
47413
47414         * gnulib-tool (echo): Add a speedier workaround for ksh.
47415         * tests/test-echo.sh: Likewise.
47416
47417 2007-06-23  Bruno Haible  <bruno@clisp.org>
47418
47419         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
47420         * tests/test-echo.sh: Likewise.
47421
47422 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47423
47424         * gnulib-tool (IFS): Initialize early, so we don't set it to
47425         empty later.
47426         (self_abspathname): Rewrite algorithm to set it, reindent.
47427         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
47428         (func_create_megatestdir): Merge some sed scripts.
47429
47430 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
47433         exposed by Sun Studio 11 cc on Solaris 8.
47434
47435 2007-06-22  Bruno Haible  <bruno@clisp.org>
47436
47437         * gnulib-tool (echo): Ensure the echo primitive does not interpret
47438         backslashes.
47439         * tests/test-echo.sh: New file.
47440
47441 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47442
47443         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
47444         simplify `sed_replace_build_aux' scripts, they are portable but
47445         echoing them with `echo' is not.
47446         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
47447
47448 2007-06-21  Karl Berry  <karl@gnu.org>
47449
47450         * config/srclist.txt: guess we can't handle the licenses via
47451         srclist at the moment.
47452
47453 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47454
47455         * MODULES.html.sh: Add include_next.
47456         * modules/include_next: New file.
47457
47458 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47459
47460         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
47461         INCLUDE_NEXT.
47462         (gl_CHECK_NEXT_HEADERS): New macro.
47463         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
47464         the obsolescent gl_ABSOLUTE_HEADER.
47465         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
47466         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
47467         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
47468         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47469         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47470         * m4/math_h.m4 (gl_MATH_H): Likewise.
47471         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47472         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47473         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47474         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47475         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47476         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47477         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47478         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47479         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
47482         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
47483         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47484         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47485         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47486         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47487         * m4/inttypes.m4 (gl_INTTYPES_H): Define
47488         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
47489         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
47490         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
47491         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
47492         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
47493         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
47494         * lib/float_.h: Likewise.
47495         * lib/inttypes_.h: Likewise.
47496         * lib/math_.h: Likewise.
47497         * lib/search_.h: Likewise.
47498         * lib/signal_.h: Likewise.
47499         * lib/stdint_.h: Likewise.
47500         * lib/stdio_.h: Likewise.
47501         * lib/stdlib_.h: Likewise.
47502         * lib/string_.h: Likewise.
47503         * lib/sys_stat_.h: Likewise.
47504         * lib/sys_time_.h: Likewise.
47505         * lib/time_.h: Likewise.
47506         * lib/unistd_.h: Likewise.
47507         * lib/wchar_.h: Likewise.
47508         * lib/wctype_.h: Likewise.
47509         * lib/dirent_.h: Likewise.
47510         * lib/iconv_.h: Likewise.
47511         * lib/locale_.h: Likewise.
47512         * lib/netinet_in_.h: Likewise.
47513         * lib/sys_select_.h: Likewise.
47514         * lib/sys_socket_.h: Likewise.
47515         * lib/sysexits_.h: Likewise.
47516         * modules/fcntl (Depends-on): Depend on include_next, not
47517         absolute_header.
47518         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
47519         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
47520         * modules/fchdir: Likewise.
47521         * modules/float: Likewise.
47522         * modules/iconv_open: Likewise.
47523         * modules/inttypes: Likewise.
47524         * modules/locale: Likewise.
47525         * modules/math: Likewise.
47526         * modules/netinet_in: Likewise.
47527         * modules/search: Likewise.
47528         * modules/signal: Likewise.
47529         * modules/stdint: Likewise.
47530         * modules/stdio: Likewise.
47531         * modules/stdlib: Likewise.
47532         * modules/string: Likewise.
47533         * modules/sys_select: Likewise.
47534         * modules/sys_socket: Likewise.
47535         * modules/sys_stat: Likewise.
47536         * modules/sys_time: Likewise.
47537         * modules/sysexits: Likewise.
47538         * modules/time: Likewise.
47539         * modules/unistd: Likewise.
47540         * modules/wchar: Likewise.
47541         * modules/wctype: Likewise.
47542         * modules/sys_stat: Change maintainer to "all".
47543         * modules/unistd: Likewise.
47544
47545 2007-06-20  Karl Berry  <karl@gnu.org>
47546
47547         * config/srclist.txt: track www changes in license files.
47548
47549 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
47550
47551         * build-aux/bootstrap: Remove stray dot.
47552         Make sure build_aux settings are honored when linking
47553         gnulib_extra_files.
47554
47555 2007-06-19  Eric Blake  <ebb9@byu.net>
47556
47557         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47558         Allow compilation on cygwin.
47559
47560 2007-06-19  Jim Meyering  <jim@meyering.net>
47561
47562         xreadlink-with-size: Remove module.  No longer used.
47563         Ex-callers now use xreadlink or mreadlink-with-size.
47564         * modules/xreadlink-with-size: Remove module.
47565         * lib/xreadlink-with-size.c: Remove file.
47566         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47567         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47568         just before the function definition *is* accurate.
47569
47570         Eliminate one way canonicalize_filename_mode could exit.
47571         * lib/canonicalize.c (canonicalize_filename_mode):
47572         Use mreadlink_with_size, not xreadlink_with_size.
47573
47574 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47575
47576         Detect porting problems to FreeBSD/arm, which has time_t wider than
47577         long int.  Original problem reported for GNU diff by Xin Li in
47578         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47579         * modules/getdate (Depends-on): Add intprops, verify.
47580         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47581         is an integer type no wider than long int.
47582
47583 2007-06-18  Jim Meyering  <jim@meyering.net>
47584
47585         New module: mreadlink-with-size.
47586         * MODULES.html.sh: Add mreadlink-with-size.
47587         * modules/mreadlink-with-size: New module
47588         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47589         not xreadlink-with-size.
47590         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47591
47592 2007-06-16  Bruno Haible  <bruno@clisp.org>
47593
47594         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47595         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47596         Reported by Gary V. Vaughan <gary@gnu.org>.
47597
47598 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47599
47600         Revamp lchown so that it lives in unistd.h where it belongs.
47601         * lib/lchown.h: Remove.
47602         * lib/dirchownmod.c: Don't include lib/lchown.h.
47603         * lib/fchownat.c: Likewise.
47604         * lib/openat.c: Likewise.
47605         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47606         does not follow symlinks.
47607         (EOPNOTSUPP): Define if not defined.
47608         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47609         is defined to 0.
47610         (lchown): New decl.
47611         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47612         Do not check for lchown decl.
47613         Set REPLACE_LCHOWN.
47614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47615         REPLACE_LCHOWN.
47616         * modules/chown: Make it clear it follows symlinks.
47617         * modules/lchown: Make it clear it doesn't follow symlinks.
47618         (Files): Remove lib/lchown.h
47619         (Depends-on): Add unistd.
47620         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47621         (Include): Include <unistd.h>, not "lchown.h".
47622         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47623         REPLACE_LCHOWN.
47624
47625 2007-06-15  Jim Meyering  <jim@meyering.net>
47626
47627         Change license (GPL to LGPL) of fsusage and dependents.
47628         * modules/fsusage (License): Change to LGPL.
47629         * modules/full-read (License): Likewise.
47630         * modules/full-write (License): Likewise.
47631         * modules/safe-read (License): Likewise.
47632         * modules/safe-write (License): Likewise.
47633
47634 2007-06-14  Ben Pfaff  <blp@gnu.org>
47635
47636         Missing part of allocsa -> malloca transition.
47637         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47638         gl_MALLOCA.
47639
47640 2007-06-12  Bruno Haible  <bruno@clisp.org>
47641
47642         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47643         to ia64, x86_64, i386.
47644         Reported by Eric Blake.
47645
47646 2007-06-12  Bruno Haible  <bruno@clisp.org>
47647
47648         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47649         cross-compiling to x86_64.
47650
47651 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47652
47653         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47654         glitch reported by Ralf Wildenhues in
47655         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47656
47657         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47658         Vin Shelton.
47659
47660 2007-06-11  Bruno Haible  <bruno@clisp.org>
47661
47662         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47663         replacement string.
47664         Reported by Eric Blake.
47665
47666 2007-06-10  Bruno Haible  <bruno@clisp.org>
47667
47668         Prepare vasnprintf code for use with Unicode strings.
47669         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47670         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47671         TYPE_U32_STRING.
47672         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47673         a_u32_string variants.
47674         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47675         * lib/printf-args.c: Don't include config.h and the specification
47676         header if PRINTF_FETCHARGS is already defined.
47677         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47678         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47679         TYPE_U16_STRING, TYPE_U32_STRING.
47680         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47681         u16_directive, u16_directives, u32_directive, u32_directives): New
47682         types.
47683         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47684         New declarations.
47685         * lib/printf-parse.c: Don't include config.h and the specification
47686         header if PRINTF_PARSE is already defined. Eliminate the set of
47687         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47688         them now. Include c-ctype.h.
47689         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47690         directive and CHAR_T_ONLY_ASCII.
47691         * lib/vasnprintf.c: Don't include config.h and the specification header
47692         if VASNPRINTF is already defined.
47693         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47694         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47695         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47696         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47697         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47698         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47699         code accordingly.
47700         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47701         pad_ourselves also in this case, with the 'c' and 's' directives, and
47702         with a different notion of "width".
47703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47704
47705 2007-06-10  Bruno Haible  <bruno@clisp.org>
47706
47707         * modules/unistr/u32-mbsnlen: New file.
47708         * lib/unistr/u32-mbsnlen.c: New file.
47709
47710         * modules/unistr/u16-mbsnlen: New file.
47711         * lib/unistr/u16-mbsnlen.c: New file.
47712
47713         * modules/unistr/u8-mbsnlen: New file.
47714         * lib/unistr/u8-mbsnlen.c: New file.
47715
47716         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47717         declarations.
47718
47719 2007-06-10  Bruno Haible  <bruno@clisp.org>
47720
47721         * lib/string_.h (mbsnlen): New declaration.
47722         * lib/mbsnlen.c: New file.
47723         * m4/mbsnlen.m4: New file.
47724         * modules/mbsnlen: New file.
47725         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47726         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47727         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47728
47729 2007-06-10  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47732
47733 2007-06-10  Bruno Haible  <bruno@clisp.org>
47734
47735         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47736         * lib/mbuiter.h: Likewise.
47737
47738 2007-06-10  Bruno Haible  <bruno@clisp.org>
47739
47740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47741         declaration.
47742
47743 2007-06-10  Karl Berry  <karl@gnu.org>
47744
47745         * config/srclist.txt: remove gettext entries, Bruno prefers
47746         to update individually.
47747
47748 2007-06-10  Bruno Haible  <bruno@clisp.org>
47749
47750         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47751         'maxlen'. Ensure only length + width bytes are allocated, not
47752         length + 1 + width.
47753
47754 2007-06-09  Bruno Haible  <bruno@clisp.org>
47755
47756         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47757         (CHAR_T): Remove macro.
47758         (VASNPRINTF): Update.
47759
47760 2007-06-09  Bruno Haible  <bruno@clisp.org>
47761
47762         * MODULES.html.sh (Unicode string functions): Add the new modules.
47763
47764         * modules/uniconv/u32-conv-to-enc: New file.
47765         * lib/uniconv/u32-conv-to-enc.c: New file.
47766         * modules/uniconv/u32-conv-to-enc-tests: New file.
47767         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47768
47769         * modules/uniconv/u16-conv-to-enc: New file.
47770         * lib/uniconv/u16-conv-to-enc.c: New file.
47771         * lib/uniconv/u-conv-to-enc.h: New file.
47772         * modules/uniconv/u16-conv-to-enc-tests: New file.
47773         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47774
47775         * modules/uniconv/u8-conv-to-enc: New file.
47776         * lib/uniconv/u8-conv-to-enc.c: New file.
47777         * modules/uniconv/u8-conv-to-enc-tests: New file.
47778         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47779
47780         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47781         u32_conv_to_encoding): New declarations.
47782
47783 2007-06-09  Bruno Haible  <bruno@clisp.org>
47784
47785         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47786
47787 2007-06-09  Bruno Haible  <bruno@clisp.org>
47788
47789         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47790         * modules/malloca: Renamed from modules/allocsa, updated.
47791         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47792         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47793         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47794         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47795         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47796         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47797         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47798         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47799         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47800         * modules/c-strcasestr (Depends-on): Update.
47801         * lib/c-strcasestr.c: Update.
47802         * modules/c-strstr (Depends-on): Update.
47803         * lib/c-strstr.c: Update.
47804         * modules/canonicalize-lgpl (Depends-on): Update.
47805         * lib/canonicalize-lgpl.c: Update.
47806         * modules/clean-temp (Depends-on): Update.
47807         * lib/clean-temp.c: Update.
47808         * modules/csharpcomp (Depends-on): Update.
47809         * lib/csharpcomp.c: Update.
47810         * modules/csharpexec (Depends-on): Update.
47811         * lib/csharpexec.c: Update.
47812         * modules/javacomp (Depends-on): Update.
47813         * lib/javacomp.c: Update.
47814         * modules/javaexec (Depends-on): Update.
47815         * lib/javaexec.c: Update.
47816         * modules/mbscasestr (Depends-on): Update.
47817         * lib/mbscasestr.c: Update.
47818         * modules/mbsstr (Depends-on): Update.
47819         * lib/mbsstr.c: Update.
47820         * modules/setenv (Depends-on): Update.
47821         * lib/setenv.c: Update.
47822         * modules/strcasestr (Depends-on): Update.
47823         * lib/strcasestr.c: Update.
47824         * modules/striconveha (Depends-on): Update.
47825         * lib/striconveha.c: Update.
47826         * modules/relocatable-prog-wrapper (Files): Update.
47827         * lib/relocwrapper.c: Update.
47828         * build-aux/install-reloc: Update.
47829         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47830
47831 2007-06-08  Bruno Haible  <bruno@clisp.org>
47832
47833         Port to uClibc.
47834         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47835         * lib/fpurge.c (fpurge): Likewise.
47836         * lib/freading.c (freading): Likewise.
47837         * lib/fseeko.c (rpl_fseeko): Likewise.
47838         * lib/fseterr.c (fseterr): Likewise.
47839         * lib/fwriting.c (fwriting): Likewise.
47840         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47841
47842 2007-06-08  Bruno Haible  <bruno@clisp.org>
47843
47844         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47845         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47846         * modules/gettext (Files): Add m4/intlmacosx.m4.
47847
47848 2007-06-07  Bruno Haible  <bruno@clisp.org>
47849
47850         * modules/localename-tests: New file.
47851         * tests/test-localename.c: New file.
47852
47853         New module 'localename'.
47854         * lib/localename.h: New file.
47855         * lib/localename.c: New file, from GNU gettext.
47856         * m4/localename.m4: New file.
47857         * modules/localename: New file.
47858
47859 2007-06-07  Bruno Haible  <bruno@clisp.org>
47860
47861         Work around the lack of <wchar.h> on some builds of uClibc.
47862         * doc/headers/wchar.texi: Update.
47863         * lib/wchar_.h: Include <wchar.h> only if it exists.
47864         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47865         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47866         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47867         doesn't exist.
47868         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47869         * modules/mbfile (Depends-on): Add wchar.
47870         * modules/mbiter (Depends-on): Likewise.
47871         * modules/mbuiter (Depends-on): Likewise.
47872         Reported by Simon Josefsson.
47873
47874 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47875
47876         Work around problem reported by Steven M. Schweda in
47877         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47878         Tru64 5.1B with the Compaq compiler environment installed declares
47879         an 'isblank' function but does not define it in the C library.
47880         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47881         * lib/regex_internal.h (isblank): Likewise.
47882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47883         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47884
47885 2007-06-05  Bruno Haible  <bruno@clisp.org>
47886
47887         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47888         ia64.
47889         * modules/printf-safe: New file.
47890         * modules/fprintf-posix (Depends-on): Add printf-safe.
47891         * modules/printf-posix (Depends-on): Likewise.
47892         * modules/snprintf-posix (Depends-on): Likewise.
47893         * modules/sprintf-posix (Depends-on): Likewise.
47894         * modules/vasnprintf-posix (Depends-on): Likewise.
47895         * modules/vasprintf-posix (Depends-on): Likewise.
47896         * modules/vfprintf-posix (Depends-on): Likewise.
47897         * modules/vprintf-posix (Depends-on): Likewise.
47898         * modules/vsnprintf-posix (Depends-on): Likewise.
47899         * modules/vsprintf-posix (Depends-on): Likewise.
47900         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47901         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47902         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47903         "no" on i386, x86_64, ia64.
47904         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47905         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47906         on i386, x86_64, ia64.
47907         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47908         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47909         on i386, x86_64, ia64.
47910         * tests/test-vasnprintf-posix.c: Include float.h.
47911         (LDBL80_WORDS): New macro.
47912         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47913         on i386, x86_64, ia64.
47914         * tests/test-vasprintf-posix.c: Include float.h.
47915         (LDBL80_WORDS): New macro.
47916         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47917         on i386, x86_64, ia64.
47918         * tests/test-snprintf-posix.c: Include float.h.
47919         * tests/test-sprintf-posix.c: Likewise.
47920         * tests/test-vsnprintf-posix.c: Likewise.
47921         * tests/test-vsprintf-posix.c: Likewise.
47922
47923 2007-06-05  Bruno Haible  <bruno@clisp.org>
47924
47925         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47926         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47927         non-IEEE numbers on i386, x86_64, ia64.
47928         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47929         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47930         * tests/test-isnanl.h: Include float.h.
47931         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47932
47933 2007-06-05  Bruno Haible  <bruno@clisp.org>
47934
47935         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47936         also the %a / %A. Handle the %a / %A code before this extra handling.
47937
47938 2007-06-05  Bruno Haible  <bruno@clisp.org>
47939
47940         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47941         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47942
47943 2007-06-05  Bruno Haible  <bruno@clisp.org>
47944
47945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47946         typo in variable name.
47947
47948 2007-06-05  Eric Blake  <ebb9@byu.net>
47949
47950         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47951         Reported by Simon Josefsson.
47952
47953 2007-06-04  Bruno Haible  <bruno@clisp.org>
47954
47955         Avoid test failures on some PowerPC platforms.
47956         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47957         Define differently for PowerPC.
47958         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47959         Reported by Gary V. Vaughan <gary@gnu.org>.
47960
47961 2007-06-02  Bruno Haible  <bruno@clisp.org>
47962
47963         Fix test-stdint failure on FreeBSD/ia64.
47964         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47965         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47966         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47967         * doc/headers/stdint.texi: Update.
47968
47969 2007-06-01  Bruno Haible  <bruno@clisp.org>
47970
47971         * tests/test-binary-io.c (main): Pass a third argument to open().
47972         Reported by Gary V. Vaughan <gary@gnu.org>.
47973
47974 2007-06-01  Bruno Haible  <bruno@clisp.org>
47975
47976         * doc/functions/frexpl.texi: Update for mingw.
47977
47978 2007-06-01  Bruno Haible  <bruno@clisp.org>
47979
47980         * tests/test-lseek.c (main): Disable test of errno for invalid third
47981         argument.
47982         * doc/functions/lseek.texi: Update.
47983         Reported by Gary V. Vaughan <gary@gnu.org>.
47984
47985 2007-05-28  Bruno Haible  <bruno@clisp.org>
47986
47987         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47988
47989 2007-05-31  Eric Blake  <ebb9@byu.net>
47990
47991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47992         cross compiling.
47993
47994 2007-05-30  Eric Blake  <ebb9@byu.net>
47995         and Bruno Haible  <bruno@clisp.org>
47996
47997         Work around mingw test failures exposed by m4-1.4.9b.
47998         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47999         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48000         moment.
48001
48002 2007-05-30  Bruno Haible  <bruno@clisp.org>
48003
48004         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48005         assuming that they are closed. Needed on HP-UX 11.
48006
48007 2007-05-29  Bruno Haible  <bruno@clisp.org>
48008
48009         Fix a problem with #include_next.
48010         * lib/dirent_.h: Split the double-inclusion guard.
48011         * lib/fcntl_.h: Likewise.
48012         * lib/float_.h: Likewise.
48013         * lib/iconv_.h: Likewise.
48014         * lib/inttypes_.h: Likewise.
48015         * lib/locale_.h: Likewise.
48016         * lib/math_.h: Likewise.
48017         * lib/netinet_in_.h: Likewise.
48018         * lib/search_.h: Likewise.
48019         * lib/signal_.h: Likewise.
48020         * lib/stdint_.h: Likewise.
48021         * lib/stdio_.h: Likewise.
48022         * lib/stdlib_.h: Likewise.
48023         * lib/string_.h: Likewise.
48024         * lib/sys_select_.h: Likewise.
48025         * lib/sys_socket_.h: Likewise.
48026         * lib/sys_stat_.h: Likewise.
48027         * lib/sys_time_.h: Likewise.
48028         * lib/sysexits_.h: Likewise.
48029         * lib/time_.h: Likewise.
48030         * lib/unistd_.h: Likewise.
48031         * lib/wchar_.h: Likewise.
48032         * lib/wctype_.h: Likewise.
48033
48034 2007-05-29  Bruno Haible  <bruno@clisp.org>
48035
48036         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48037         for the moment.
48038
48039 2007-05-29  Bruno Haible  <bruno@clisp.org>
48040
48041         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48042         invocation.
48043         Reported by Eric Blake.
48044
48045 2007-05-29  Bruno Haible  <bruno@clisp.org>
48046
48047         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48048         compiling case.
48049
48050 2007-05-29  Eric Blake  <ebb9@byu.net>
48051             Bruno Haible  <bruno@clisp.org>
48052
48053         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48054         cross compiles.
48055
48056 2007-05-28  Eric Blake  <ebb9@byu.net>
48057
48058         * modules/closein-tests (test_closein_LDADD): Support test on
48059         cygwin with libtool.
48060
48061 2007-05-28  Bruno Haible  <bruno@clisp.org>
48062
48063         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48064         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48065         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48066         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48067         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48068         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48069         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48070         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48071         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48072
48073 2007-05-28  Eric Blake  <ebb9@byu.net>
48074
48075         Unconditionally include <config.h> in unit tests.
48076         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48077         * tests/test-allocsa.c, tests/test-arcfour.c,
48078         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48079         tests/test-array_list.c, tests/test-array_oset.c,
48080         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48081         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48082         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48083         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48084         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48085         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48086         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48087         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48088         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48089         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48090         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48091         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48092         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48093         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48094         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48095         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48096         test-md5.c, test-memmem.c, test-printf-posix.c,
48097         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48098         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48099         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48100         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48101         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48102         test-vasnprintf-posix2.c, test-vasnprintf.c,
48103         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48104         test-vfprintf-posix.c, test-vprintf-posix.c,
48105         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48106         test-xvasprintf.c: Likewise.
48107
48108 2007-05-28  Bruno Haible  <bruno@clisp.org>
48109
48110         * gnulib-tool (func_import): Remember the --with-tests command-line
48111         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48112         Reported by Eric Blake.
48113
48114 2007-05-28  Bruno Haible  <bruno@clisp.org>
48115
48116         * modules/ftell-tests: New file.
48117         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48118         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48119
48120         * lib/ftell.c: New file.
48121         * modules/ftell: New file.
48122         * m4/ftell.m4: New file.
48123         * doc/functions/ftell.texi: Update.
48124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48125         REPLACE_FTELL.
48126         * lib/stdio_.h (rpl_ftell): New declaration.
48127         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48128         REPLACE_FTELL.
48129
48130 2007-05-28  Eric Blake  <ebb9@byu.net>
48131
48132         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48133
48134 2007-05-28  Bruno Haible  <bruno@clisp.org>
48135
48136         * modules/fseek-tests: New file.
48137         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48138         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48139
48140         * lib/fseek.c: New file.
48141         * modules/fseek: New file.
48142         * m4/fseek.m4: New file.
48143         * doc/functions/fseek.texi: Update.
48144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48145         REPLACE_FSEEK.
48146         * lib/stdio_.h (rpl_fseek): New declaration.
48147         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48148         REPLACE_FSEEK.
48149
48150 2007-05-28  Bruno Haible  <bruno@clisp.org>
48151
48152         * lib/stdio_.h (fflush): More comments.
48153
48154 2007-05-28  Bruno Haible  <bruno@clisp.org>
48155
48156         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48157         runtime test.
48158
48159 2007-05-28  Eric Blake  <ebb9@byu.net>
48160
48161         Improve lseek module.
48162         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48163         * lib/unistd_.h (lseek): Scale back link warning message.
48164         * tests/test-lseek.c: Beef up test.
48165         * tests/test-lseek.sh: Exercise more facets of lseek.
48166         Reported by Bruno Haible.
48167
48168 2007-05-28  Bruno Haible  <bruno@clisp.org>
48169
48170         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48171         to define.
48172
48173 2007-05-27  Bruno Haible  <bruno@clisp.org>
48174
48175         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48176
48177 2007-05-27  Bruno Haible  <bruno@clisp.org>
48178
48179         * modules/openmp: New file.
48180         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48181         Noah Misch.
48182
48183 2007-05-26  Bruno Haible  <bruno@clisp.org>
48184
48185         * modules/chdir-long (Depends-on): Add fchdir.
48186         * modules/chdir-safer (Depends-on): Likewise.
48187         * modules/fts (Depends-on): Likewise.
48188         * modules/fts-lgpl (Depends-on): Likewise.
48189         * modules/openat (Depends-on): Likewise.
48190         * modules/savewd (Depends-on): Likewise.
48191
48192 2007-05-24  Eric Blake  <ebb9@byu.net>
48193
48194         Fix lseek on mingw.
48195         * modules/lseek: New module.
48196         * m4/lseek.m4: New file.
48197         * lib/lseek.c: New file.
48198         * modules/lseek-tests: New file.
48199         * tests/test-lseek.c: New file.
48200         * tests/test-lseek.sh: New file.
48201         * MODULES.html.sh: Document lseek module.
48202         * modules/fflush (Depends-on): Add lseek, fseeko.
48203         * modules/fseeko (Depends-on): Likewise.
48204         * modules/ftello (Depends-on): Likewise.
48205         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48206         broken.
48207         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48208         broken.
48209         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48210         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48211         * lib/ftello.c (rpl_ftello): Likewise.
48212         * tests/test-fseeko.c (main): Test this.
48213         * tests/test-fseeko.sh: Likewise.
48214         * tests/test-ftello.c (main): Likewise.
48215         * tests/test-ftello.sh: Likewise.
48216         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48217         implies replacing fseek.
48218         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48219         HAVE_FTELLO.
48220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48221         * modules/unistd (Makefile.am): Likewise.
48222         * lib/unistd_.h (lseek): Declare a replacement.
48223         * doc/functions/lseek.texi (lseek): Document this fix.
48224         * doc/functions/fseek.texi (fseek): Likewise.
48225         * doc/functions/ftell.texi (ftell): Likewise.
48226
48227 2007-05-24  Bruno Haible  <bruno@clisp.org>
48228
48229         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48230         in the printed representation of a NaN.
48231         * tests/test-vasprintf-posix.c (test_function): Likewise.
48232         * tests/test-snprintf-posix.h (test_function): Likewise.
48233         * tests/test-sprintf-posix.h (test_function): Likewise.
48234         Reported by Eric Blake.
48235
48236 2007-05-23  Eric Blake  <ebb9@byu.net>
48237
48238         Fix fseeko/ftello on cygwin 1.5.24.
48239         * doc/functions/fseeko.texi (fseeko): Document the fix.
48240         * doc/functions/ftello.texi (ftello): Document the fix.
48241         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48242         * doc/functions/stdout.text (stdout): New file.
48243         * doc/functions/stderr.text (stderr): New file.
48244         * doc/gnulib.texi (Function Substitutes): Use new files.
48245         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48246         prior to 1.7.0.
48247         * tests/test-ftello.c (main): Likewise for ftello.
48248         * tests/test-fseeko.sh: New file.
48249         * tests/test-ftello.sh: New file.
48250         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48251         with seekable stdin.
48252         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48253         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48254         (gl_REPLACE_FSEEKO): New macro.
48255         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48256         * modules/fseeko (Files): Distribute fseeko.c.
48257         * modules/ftello (Files): Distribute ftello.c.
48258         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48259         mode.
48260         * lib/ftello.c (rpl_ftello): New file.
48261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48262         fseeko, ftello.
48263         (gl_STDIN_LARGE_OFFSET): New macro.
48264         * modules/stdio (Makefile.am): Perform the replacement.
48265         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48266
48267 2007-05-23  Bruno Haible  <bruno@clisp.org>
48268
48269         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48270         GNULIB_POSIXCHECK is defined.
48271
48272 2007-05-21  Bruno Haible  <bruno@clisp.org>
48273
48274         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48275         Check also the output for NaN arguments. When cross-compiling, guess
48276         no on IRIX.
48277         * lib/vasnprintf.c: Update comments.
48278         * tests/test-vasnprintf-posix.c (strisnan): New function.
48279         (test_function): Use it.
48280         * tests/test-vasprintf-posix.c (strisnan): New function.
48281         (test_function): Use it.
48282         * tests/test-snprintf-posix.h (strisnan): New function.
48283         (test_function): Use it.
48284         * tests/test-sprintf-posix.h (strisnan): New function.
48285         (test_function): Use it.
48286         Reported by Eric Blake.
48287
48288 2007-05-20  Bruno Haible  <bruno@clisp.org>
48289
48290         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48291         numbers that fails on BeOS.
48292         * doc/functions/frexpl.texi: Update.
48293
48294 2007-05-20  Jim Meyering  <jim@meyering.net>
48295
48296         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48297         forced upon us by glibc-2.6.
48298
48299 2007-05-20  Bruno Haible  <bruno@clisp.org>
48300
48301         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48302         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48303         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48304         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48305         NEED_PRINTF_INFINITE.
48306         (is_infinitel): New function.
48307         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48309         gl_PREREQ_VASNPRINTF_INFINITE.
48310         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48311         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48312         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48313         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48314         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48315         gl_PREREQ_VASNPRINTF_INFINITE.
48316         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48317         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48318         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48319         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48320         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48321         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48322         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48323         * doc/functions/fprintf.texi: Update.
48324         * doc/functions/printf.texi: Update.
48325         * doc/functions/snprintf.texi: Update.
48326         * doc/functions/sprintf.texi: Update.
48327         * doc/functions/vfprintf.texi: Update.
48328         * doc/functions/vprintf.texi: Update.
48329         * doc/functions/vsnprintf.texi: Update.
48330         * doc/functions/vsprintf.texi: Update.
48331
48332 2007-05-20  Bruno Haible  <bruno@clisp.org>
48333
48334         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48335         was not found in libc.
48336         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48337
48338 2007-05-20  Bruno Haible  <bruno@clisp.org>
48339
48340         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48341         printed as "-nan" instead of "nan".
48342         * tests/test-vasprintf-posix.c (test_function): Likewise.
48343         * tests/test-snprintf-posix.h (test_function): Likewise.
48344         * tests/test-sprintf-posix.h (test_function): Likewise.
48345         Needed for HP-UX 11.
48346
48347 2007-05-20  Jim Meyering  <jim@meyering.net>
48348
48349         Fix buggy test for the fchownat-deref bug.
48350         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
48351         symlink required for the run-test.  Without it, this test would
48352         always declare that fchownat doesn't work, and client code would
48353         unnecessarily use the replacement function with fixed libc.
48354         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
48355         Reported by Greg Schafer.
48356
48357 2007-05-19  Bruno Haible  <bruno@clisp.org>
48358
48359         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
48360         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
48361         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
48362         Needed for IRIX 6.5 and Solaris 2.5.1.
48363
48364 2007-05-19  Bruno Haible  <bruno@clisp.org>
48365
48366         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
48367         (test_function): Skip tests involving -0.0 on platforms where
48368         -0.0 = 0.0.
48369         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
48370         (test_function): Skip tests involving -0.0 on platforms where
48371         -0.0 = 0.0.
48372         * tests/test-snprintf-posix.h (have_minus_zero): New function.
48373         (test_function): Skip tests involving -0.0 on platforms where
48374         -0.0 = 0.0.
48375         * tests/test-sprintf-posix.h (have_minus_zero): New function.
48376         (test_function): Skip tests involving -0.0 on platforms where
48377         -0.0 = 0.0.
48378         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
48379         tests.
48380         * tests/test-printf-posix.h (test_function): Likewise.
48381         * tests/test-printf-posix.output: Remove all -0.0 related results.
48382         Needed for IRIX 6.5.
48383
48384 2007-05-19  Bruno Haible  <bruno@clisp.org>
48385
48386         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48387         printed as "nan0x7fffffff" instead of "nan".
48388         * tests/test-vasprintf-posix.c (test_function): Likewise.
48389         * tests/test-snprintf-posix.h (test_function): Likewise.
48390         * tests/test-sprintf-posix.h (test_function): Likewise.
48391         * tests/test-fprintf-posix.h (NaN): Remove macro.
48392         (test_function): Remove all NaN related tests.
48393         * tests/test-printf-posix.h (NaN): Remove macro.
48394         (test_function): Remove all NaN related tests.
48395         * tests/test-printf-posix.output: Remove all NaN related results.
48396         Needed for IRIX 6.5.
48397
48398 2007-05-19  Bruno Haible  <bruno@clisp.org>
48399
48400         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
48401         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
48402
48403 2007-05-19  Bruno Haible  <bruno@clisp.org>
48404
48405         * lib/float_.h: New file.
48406         * m4/float_h.m4: New file.
48407         * modules/float: New file.
48408         * modules/isnanl (Dependencies): Add float.
48409         * modules/isnanl-nolibm (Dependencies): Likewise.
48410         * modules/mathl (Dependencies): Likewise.
48411         * modules/printf-frexpl (Dependencies): Likewise.
48412         * modules/signbit (Dependencies): Likewise.
48413         * modules/vasnprintf (Dependencies): Likewise.
48414         * doc/headers/float.texi: Update.
48415
48416 2007-05-19  Jim Meyering  <jim@meyering.net>
48417
48418         * lib/utimens.c (gl_futimens): Rename from futimens,
48419         now that glibc-2.6 declares futimens.
48420         * lib/utimens.h: Likewise.
48421
48422 2007-05-19  Bruno Haible  <bruno@clisp.org>
48423
48424         Avoid test failures on mingw.
48425         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
48426         * tests/test-printf-posix.sh: Likewise.
48427         * tests/test-vfprintf-posix.sh: Likewise.
48428         * tests/test-vprintf-posix.sh: Likewise.
48429
48430 2007-05-19  Bruno Haible  <bruno@clisp.org>
48431
48432         Fix *printf result for NaN, Inf, -0.0 on mingw.
48433         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
48434         * lib/vasnprintf.c: Include math.h and isnan.h.
48435         (is_infinite_or_zero): New function.
48436         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
48437         values in the %f, %F, %e, %E, %g, %G directives.
48438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
48439         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48440         gl_PRINTF_INFINITE and test its result. Invoke
48441         gl_PREREQ_VASNPRINTF_INFINITE.
48442         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48443         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48444         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48445         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48446         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48447         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48448         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48449         * doc/functions/fprintf.texi: Update.
48450         * doc/functions/printf.texi: Update.
48451         * doc/functions/snprintf.texi: Update.
48452         * doc/functions/sprintf.texi: Update.
48453         * doc/functions/vfprintf.texi: Update.
48454         * doc/functions/vprintf.texi: Update.
48455         * doc/functions/vsnprintf.texi: Update.
48456         * doc/functions/vsprintf.texi: Update.
48457
48458 2007-05-19  Bruno Haible  <bruno@clisp.org>
48459
48460         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
48461         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
48462         Instead of multiplying with 10^k, set extra_zeroes to k.
48463         (scale10_round_long_double): Remove function.
48464
48465 2007-05-18  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
48468         introduced on 2007-05-06.
48469
48470 2007-05-18  Bruno Haible  <bruno@clisp.org>
48471
48472         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
48473         %g directives.
48474         * tests/test-vasprintf-posix.c (test_function): Likewise.
48475         * tests/test-snprintf-posix.h (test_function): Likewise.
48476         * tests/test-sprintf-posix.h (test_function): Likewise.
48477
48478 2007-05-18  Bruno Haible  <bruno@clisp.org>
48479
48480         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
48481         (strmatch): New function.
48482         (test_function): Test the %f directive on numbers of various exponents.
48483         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
48484         (strmatch): New function.
48485         (test_function): Test the %f directive on numbers of various exponents.
48486         * tests/test-snprintf-posix.h (strmatch): New function.
48487         (test_function): Test the %f directive on numbers of various exponents.
48488         * tests/test-sprintf-posix.h (strmatch): New function.
48489         (test_function): Test the %f directive on numbers of various exponents.
48490         * tests/test-snprintf-posix.c (SIZEOF): New macro.
48491         * tests/test-sprintf-posix.c (SIZEOF): New macro.
48492         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
48493         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
48494
48495 2007-05-18  Bruno Haible  <bruno@clisp.org>
48496
48497         Add support for 'long double' number output.
48498         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
48499         * lib/vasnprintf.c: Include math.h and float+.h.
48500         (mp_limb_t): New type.
48501         (GMP_LIMB_BITS): New macro.
48502         (mp_twolimb_t): New type.
48503         (GMP_TWOLIMB_BITS): New macro.
48504         (mpn_t): New type.
48505         (multiply, divide, convert_to_decimal, decode_long_double,
48506         scale10_round_long_double, scale10_round_decimal_long_double,
48507         floorlog10l): New functions.
48508         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
48509         for the %f, %F, %e, %E, %g, %G directives.
48510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
48511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48512         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
48513         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
48514         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48515         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48516         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48517         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48518         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48520         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48521         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
48522         * modules/snprintf-posix (Depends-on): Likewise.
48523         * modules/sprintf-posix (Depends-on): Likewise.
48524         * modules/vasnprintf-posix (Depends-on): Likewise.
48525         * modules/vasprintf-posix (Depends-on): Likewise.
48526         * modules/vfprintf-posix (Depends-on): Likewise.
48527         * modules/vsnprintf-posix (Depends-on): Likewise.
48528         * modules/vsprintf-posix (Depends-on): Likewise.
48529         * modules/vasnprintf (Files): Add lib/float+.h.
48530         * doc/functions/fprintf.texi: Update.
48531         * doc/functions/printf.texi: Update.
48532         * doc/functions/snprintf.texi: Update.
48533         * doc/functions/sprintf.texi: Update.
48534         * doc/functions/vfprintf.texi: Update.
48535         * doc/functions/vprintf.texi: Update.
48536         * doc/functions/vsnprintf.texi: Update.
48537         * doc/functions/vsprintf.texi: Update.
48538
48539 2007-05-18  Bruno Haible  <bruno@clisp.org>
48540
48541         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
48542
48543 2007-05-18  Bruno Haible  <bruno@clisp.org>
48544
48545         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
48546         for printing 64-bit integers. Needed for mingw.
48547
48548 2007-05-18  Bruno Haible  <bruno@clisp.org>
48549
48550         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48551         gl_FUNC_FREXPL_WORKS.
48552         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48553
48554 2007-05-18  Bruno Haible  <bruno@clisp.org>
48555
48556         * modules/frexpl-nolibm-tests: New file.
48557
48558         * modules/frexpl-nolibm: New file.
48559         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48560
48561 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48562
48563         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48564         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48565         GCC 4.2, which otherwise issues a lot of warnings.
48566         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48567         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48568         Likewise.
48569         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48570         * modules/iconv_open (iconv.h): Likewise.
48571         * modules/locale (locale.h): Likewise.
48572         * modules/netinet_in (netinet/in.h): Likewise.
48573         * modules/sys_select (sys_select.h): Likewise.
48574         * modules/sys_socket (sys/socket.h): Likewise.
48575         * modules/sys_stat (sys/stat.h): Likewise.
48576         * modules/sysexits (sysexits.h): Likewise.
48577         * modules/unistd (unistd.h): Likewise.
48578
48579 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48580
48581         * modules/closein-tests (Makefile.am): Distribute
48582         `test-closein.sh'.
48583
48584 2007-05-17  Bruno Haible  <bruno@clisp.org>
48585
48586         * tests/test-printf-posix.output: Renamed from
48587         tests/test-fprintf-posix.out.
48588         * modules/fprintf-posix-tests: Update.
48589         * modules/printf-posix-tests: Update.
48590         * modules/vfprintf-posix-tests: Update.
48591         * modules/vprintf-posix-tests: Update.
48592         * tests/test-fprintf-posix.sh: Update.
48593         * tests/test-printf-posix.sh: Update.
48594         * tests/test-vfprintf-posix.sh: Update.
48595         * tests/test-vprintf-posix.sh: Update.
48596         Reported by Ralf Wildenhues.
48597
48598 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48599
48600         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48601         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48602         GCC 4.2, which otherwise issues a lot of warnings.
48603         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48604         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48605         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48606         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48607         it should no longer be needed.
48608         * lib/string_.h: Likewise.
48609         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48610         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48611         * modules/inttypes (inttypes.h): Likewise.
48612         * modules/math (math.h): Likewise.
48613         * modules/search (search.h): Likewise.
48614         * modules/signal (signal.h): Likewise.
48615         * modules/stdint (stdint.h): Likewise.
48616         * modules/stdio (stdio.h): Likewise.
48617         * modules/stdlib (stdlib.h): Likewise.
48618         * modules/string (string.h): Likewise.
48619         * modules/sys_time (sys/time.h): Likewise.
48620         * modules/time (time.h): Likewise.
48621         * modules/wchar (wchar.h): Likewise.
48622         * modules/wctype (wtype.h): Likewise.
48623
48624 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48625
48626         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48627
48628 2007-05-13  Bruno Haible  <bruno@clisp.org>
48629
48630         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48631         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48632         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48633         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48634         (gl_PREREQ_STRTOK_R): Don't require it here.
48635
48636 2007-05-13  Bruno Haible  <bruno@clisp.org>
48637
48638         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48639         when used in C++ mode.
48640
48641 2007-05-12  Bruno Haible  <bruno@clisp.org>
48642
48643         * lib/linebuffer.h: Tweak doc.
48644         * lib/linebuffer.c: Likewise.
48645
48646 2007-05-12  James Youngman  <jay@gnu.org>
48647
48648         * lib/linebuffer.c (readlinebuffer_delim): New function,
48649         like readlinebuffer, but use a caller-specified delimiter.
48650         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48651         as the delimiter.
48652         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48653
48654 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48655
48656         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48657         * modules/openat (Files): Remove openat-die.c.
48658         (Depends-on): Add openat-die.
48659         * modules/openat-die: New module.
48660
48661 2007-05-06  Bruno Haible  <bruno@clisp.org>
48662
48663         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48664         Update with info about Cygwin.
48665         * doc/functions/fprintf.texi: Update.
48666         * doc/functions/printf.texi: Update.
48667         * doc/functions/snprintf.texi: Update.
48668         * doc/functions/sprintf.texi: Update.
48669         * doc/functions/vfprintf.texi: Update.
48670         * doc/functions/vprintf.texi: Update.
48671         * doc/functions/vsnprintf.texi: Update.
48672         * doc/functions/vsprintf.texi: Update.
48673         Reported by Eric Blake.
48674
48675 2007-05-06  Bruno Haible  <bruno@clisp.org>
48676
48677         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48678         padding ourselves for the floating-point directives.
48679         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48681         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48682         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48683         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48684         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48685         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48687         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48688         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48689         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48690         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48691         * tests/test-snprintf-posix.h (test_function): Also check the width
48692         and some flags in the %f directive.
48693         * tests/test-sprintf-posix.h (test_function): Likewise.
48694         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48695         * tests/test-vasprintf-posix.c (test_function): Likewise.
48696         * doc/functions/fprintf.texi: Update.
48697         * doc/functions/printf.texi: Update.
48698         * doc/functions/snprintf.texi: Update.
48699         * doc/functions/sprintf.texi: Update.
48700         * doc/functions/vfprintf.texi: Update.
48701         * doc/functions/vprintf.texi: Update.
48702         * doc/functions/vsnprintf.texi: Update.
48703         * doc/functions/vsprintf.texi: Update.
48704
48705 2007-05-06  Bruno Haible  <bruno@clisp.org>
48706
48707         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48708         pass the ' flag character to sprintf or snprintf.
48709         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48710         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48712         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48713         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48714         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48715         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48716         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48717         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48718         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48720         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48721         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48722         flag.
48723         * tests/test-sprintf-posix.h (test_function): Likewise.
48724         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48725         * tests/test-vasprintf-posix.c (test_function): Likewise.
48726         * doc/functions/fprintf.texi: Update.
48727         * doc/functions/printf.texi: Update.
48728         * doc/functions/snprintf.texi: Update.
48729         * doc/functions/sprintf.texi: Update.
48730         * doc/functions/vfprintf.texi: Update.
48731         * doc/functions/vprintf.texi: Update.
48732         * doc/functions/vsnprintf.texi: Update.
48733         * doc/functions/vsprintf.texi: Update.
48734
48735 2007-05-01  Bruno Haible  <bruno@clisp.org>
48736
48737         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48738
48739 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48740
48741         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48742         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48743
48744 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48745
48746         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48747         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48748         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48749
48750 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48751
48752         * lib/argp-help.c (struct hol_entry): New member `ord'.
48753         (HOL_ENTRY_PTRCMP): Use ord for comparison
48754         (hol_sort): Initialize ord.
48755
48756 2007-05-01  Bruno Haible  <bruno@clisp.org>
48757
48758         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48759         Reported by Eric Blake.
48760         * doc/gnulib.texi (Function Substitutes): Update.
48761
48762 2007-05-01  Bruno Haible  <bruno@clisp.org>
48763
48764         * doc/functions.texi: Remove file, now redundant through
48765         doc/functions/*.texi.
48766
48767 2007-05-01  Bruno Haible  <bruno@clisp.org>
48768
48769         * modules/argp (Depends-on): Add sleep.
48770
48771 2007-05-01  Bruno Haible  <bruno@clisp.org>
48772
48773         * modules/sleep-tests: New file.
48774         * tests/test-sleep.c: New file.
48775
48776         * modules/sleep: New file.
48777         * lib/sleep.c: New file.
48778         * m4/sleep.m4: New file.
48779         * lib/unistd_.h (sleep): New declaration.
48780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48781         HAVE_SLEEP.
48782         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48783         * doc/functions/sleep.texi: Document the sleep module.
48784
48785 2007-05-01  Bruno Haible  <bruno@clisp.org>
48786
48787         * lib/sigprocmask.h: Remove file.
48788         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48789         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48790         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48791         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48792         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48793         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48794         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48795         HAVE_SIGSET_T as a shell variable.
48796         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48797         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48798         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48799         (Depends-on): Add signal. Remove verify.
48800         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48801         (Include): Mention <signal.h> instead of sigprocmask.h.
48802         * NEWS: Mention the change.
48803         * lib/fatal-signal.c: Don't include sigprocmask.h.
48804
48805 2007-05-01  Bruno Haible  <bruno@clisp.org>
48806
48807         * modules/signal: New file.
48808         * lib/signal_.h: New file.
48809         * m4/signal_h.m4: New file.
48810
48811 2007-05-01  Bruno Haible  <bruno@clisp.org>
48812
48813         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48814         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48815         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48816         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48817
48818 2007-05-01  Bruno Haible  <bruno@clisp.org>
48819
48820         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48821         configure time.
48822         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48823         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48824         * modules/sys_stat (Makefile.am): Substitute their values into
48825         sys/stat.h.
48826
48827 2007-05-01  Bruno Haible  <bruno@clisp.org>
48828
48829         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48830         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48831         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48832
48833 2007-05-01  Bruno Haible  <bruno@clisp.org>
48834
48835         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48836         'assert' module here.
48837
48838 2007-05-01  Bruno Haible  <bruno@clisp.org>
48839
48840         * doc/functions/*.texi: New files.
48841         * doc/functions/google-ranking.txt: New file.
48842         * doc/gnulib.texi (Function Substitutes): New chapter.
48843         (ctime, inet_ntoa): Remove sections.
48844         * doc/ctime.texi: Remove file.
48845         * doc/inet_ntoa.texi: Remove file.
48846         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48847         dependencies.
48848         (%.info): New rule, specifying a --reference-limit.
48849
48850 2007-05-01  Bruno Haible  <bruno@clisp.org>
48851
48852         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48853
48854 2007-05-01  Bruno Haible  <bruno@clisp.org>
48855
48856         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48857         the portability of 'mkdir' to mingw systems.
48858
48859 2007-05-01  Bruno Haible  <bruno@clisp.org>
48860
48861         * doc/headers/google-ranking.txt: New file.
48862
48863 2007-04-30  Eric Blake  <ebb9@byu.net>
48864
48865         Prefer fseeko to fseek.
48866         * modules/getpass (Depends-on): Add fseeko.
48867         * lib/getpass.c (getpass): Use fseeko, not fseek.
48868
48869 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48870
48871         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48872         assumes the sorting is stable, while most qsort implementations
48873         are not.  Use argument addresses to ensure they never compare as
48874         equal.
48875
48876         * tests/test-argp-2.sh (usage-indent test): Fix output
48877         (func_compare): Restore diff options
48878         * tests/test-argp.c: Restore #include "progname.h"
48879
48880 2007-04-29  Bruno Haible  <bruno@clisp.org>
48881
48882         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48884         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48885         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48886         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48887         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48888         (TESTS, check_PROGRAMS): Add test-snprintf.
48889         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48890         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48891         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48892         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48893         assertions that fail on HP-UX, OSF/1, or IRIX.
48894         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48895
48896 2007-04-29  Bruno Haible  <bruno@clisp.org>
48897
48898         * MODULES.html.sh (posix_functions): Remove 'contents'.
48899
48900 2007-04-29  Karl Berry  <karl@gnu.org>
48901
48902         * config/srclist.txt (gendocs_template_min): new entry.
48903
48904 2007-04-29  Bruno Haible  <bruno@clisp.org>
48905
48906         Work around fpurge bug on BSD systems.
48907         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48908         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48909         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48910         fpurge to rpl_fpurge if the system already has this function.
48911         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48912         the case where the system already has this function. Correct invariants
48913         on BSD systems.
48914         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48915         BSD systems.
48916
48917 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48918
48919         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48920         proposed by Sven Verdoolaege.
48921
48922         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48923         options.
48924         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48925         (usage and help tests): Update
48926
48927 2007-04-29  Bruno Haible  <bruno@clisp.org>
48928
48929         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48930         Print more information in case of failure. Disable a test on BeOS.
48931
48932 2007-04-29  Bruno Haible  <bruno@clisp.org>
48933
48934         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48935         This helps debugging on systems on which no gdb is available.
48936
48937 2007-04-29  Bruno Haible  <bruno@clisp.org>
48938
48939         * lib/freading.h: Improve comments.
48940         * lib/fwriting.h: Likewise.
48941         * tests/test-freading.c (main): Don't check freading immediately after
48942         repositioning. Needed for glibc.
48943
48944 2007-04-29  Bruno Haible  <bruno@clisp.org>
48945
48946         * lib/freading.c (freading): Trivial simplification.
48947
48948 2007-04-28  Bruno Haible  <bruno@clisp.org>
48949
48950         * tests/test-fwriting.c (main): Also test the interaction between
48951         fflush and fwriting.
48952         * modules/fwriting-tests (Depends-on): Add fflush.
48953
48954         * tests/test-freading.c (main): Also test the interaction between
48955         fflush and freading.
48956         * modules/freading-tests (Depends-on): Add fflush.
48957
48958 2007-04-28  Bruno Haible  <bruno@clisp.org>
48959
48960         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48961         fseeko and ftello.
48962         Suggested by Eric Blake.
48963
48964 2007-04-28  Jim Meyering  <jim@meyering.net>
48965
48966         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48967         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48968         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48969
48970 2007-04-27  Eric Blake  <ebb9@byu.net>
48971
48972         * doc/headers/assert.texi (assert.h): Document assert module use.
48973
48974 2007-04-27  Bruno Haible  <bruno@clisp.org>
48975
48976         * doc/headers/*.texi: New files.
48977         * doc/gnulib.texi (Header File Substitutes): New chapter.
48978         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48979         dependencies.
48980         (standards.info ,standards.html, standards.dvi): Update dependencies.
48981         (mostlyclean, clean): New targets.
48982
48983 2007-04-27  Bruno Haible  <bruno@clisp.org>
48984
48985         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48986         * modules/sysexits (Files, Makefile.am): Update.
48987
48988         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48989         * modules/sys_socket (Files, Makefile.am): Update.
48990
48991         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48992         * modules/sys_stat (Files, Makefile.am): Update.
48993
48994 2007-04-27  Eric Blake  <ebb9@byu.net>
48995
48996         * lib/freading.h: Improve comments.
48997         * lib/fwriting.h: Likewise.
48998         * lib/fflush.c: Likewise.
48999
49000         Fix closein for mingw.
49001         * modules/closein-tests: Add tests for closein.
49002         * tests/test-closein.c: New file.
49003         * tests/test-closein.sh: Likewise.
49004         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49005         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49006
49007 2007-04-27  Bruno Haible  <bruno@clisp.org>
49008
49009         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49010         version is < 6.
49011         * lib/math_.h [__DECC]: Likewise.
49012         * lib/stdio_.h [__DECC]: Likewise.
49013         * lib/stdlib_.h [__DECC]: Likewise.
49014         * lib/string_.h [__DECC]: Likewise.
49015         * lib/time_.h [__DECC]: Likewise.
49016         * lib/wchar_.h [__DECC]: Likewise.
49017         * lib/wctype_.h [__DECC]: Likewise.
49018
49019 2007-04-27  Bruno Haible  <bruno@clisp.org>
49020
49021         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49022
49023 2007-04-27  Bruno Haible  <bruno@clisp.org>
49024
49025         * lib/fflush.c: Add comments.
49026         * modules/fpurge-tests (Depends-on): Add fflush.
49027         * modules/freadable-tests (Depends-on): Likewise.
49028         * modules/fwritable-tests (Depends-on): Likewise.
49029
49030 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49031
49032         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49033         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49034         Report by Bruno Haible <bruno@clisp.org>.
49035
49036 2007-04-26  Eric Blake  <ebb9@byu.net>
49037
49038         Fix fflush on mingw.
49039         * modules/fflush (Depends-on): Add freading.
49040         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49041         but unread data.
49042
49043 2007-04-26  Eric Blake  <ebb9@byu.net>
49044         and Bruno Haible  <bruno@clisp.org>
49045
49046         Implement freading and fwriting.
49047         * lib/freading.c: New file.
49048         * lib/freading.h: Likewise.
49049         * m4/freading.m4: Likewise.
49050         * modules/freading: Likewise.
49051         * modules/freading-tests: Likewise.
49052         * tests/test-freading.c: Likewise.
49053         * lib/fwriting.c: New file.
49054         * lib/fwriting.h: Likewise.
49055         * m4/fwriting.m4: Likewise.
49056         * modules/fwriting: Likewise.
49057         * modules/fwriting-tests: Likewise.
49058         * tests/test-fwriting.c: Likewise.
49059         * MODULES.html.sh (File stream based Input/Output): Mention them.
49060
49061 2007-04-26  Bruno Haible  <bruno@clisp.org>
49062
49063         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49064         'long' when we assume it.
49065         Suggested by Eric Blake.
49066
49067 2007-04-26  Bruno Haible  <bruno@clisp.org>
49068
49069         Ensure fseeko, ftello are declared on glibc systems.
49070         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49071         * modules/fseeko (configure.ac-early): Likewise.
49072         * modules/ftello (configure.ac-early): Likewise.
49073         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49074         AC_FUNC_FSEEKO for this.
49075         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49076         (gl_CHECK_FSEEKO): Remove macro.
49077
49078 2007-04-26  Bruno Haible  <bruno@clisp.org>
49079
49080         * tests/test-fflush.c (main): Also check the ftell result after
49081         fflush and fseek/fseeko.
49082         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49083         file descriptor position cache in the stream.
49084         * lib/fseeko.c (rpl_fseeko): Likewise.
49085
49086 2007-04-26  Bruno Haible  <bruno@clisp.org>
49087
49088         * modules/fflush-tests (Depends-on): Add fseeko.
49089
49090 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49091             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49092
49093         * lib/argz_.h: ensure error_t definition is obtained in same
49094         mechanism system argz.h would have.
49095         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49096         argz facilities are known bad.  Err on the side of caution if
49097         cross-compiling.
49098
49099 2007-04-25  Eric Blake  <ebb9@byu.net>
49100
49101         * lib/fpurge.c (includes): Use stdlib.h for free.
49102         * tests/test-fflush.c (main): Also test fflush-fseeko.
49103
49104 2007-04-25  Bruno Haible  <bruno@clisp.org>
49105
49106         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49107         * lib/fseeko.c: New file.
49108         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49109         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49110         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49111         gl_FUNC_FSEEKO.
49112         (gl_FUNC_FSEEKO): Invoke it.
49113         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49114         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49115         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49116
49117 2007-04-25  Bruno Haible  <bruno@clisp.org>
49118
49119         * modules/fflush (Depends-on): Add ftello.
49120
49121 2007-04-25  Bruno Haible  <bruno@clisp.org>
49122
49123         * modules/ftello-tests: New file.
49124         * tests/test-ftello.c: New file.
49125
49126         * modules/ftello: New file.
49127         * m4/ftello.m4: New file.
49128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49129         HAVE_FTELLO.
49130         * lib/stdio_.h (ftello): New declaration.
49131         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49132         HAVE_FTELLO.
49133
49134 2007-04-25  Bruno Haible  <bruno@clisp.org>
49135
49136         * modules/fseeko-tests: New file.
49137         * tests/test-fseeko.c: New file.
49138
49139         * modules/fseeko: New file.
49140         * m4/fseeko.m4: New file.
49141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49142         HAVE_FSEEKO.
49143         * lib/stdio_.h (fseeko): New declaration.
49144         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49145         HAVE_FSEEKO.
49146
49147 2007-04-25  Bruno Haible  <bruno@clisp.org>
49148
49149         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49150
49151 2007-04-25  Bruno Haible  <bruno@clisp.org>
49152
49153         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49154         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49155         * tests/test-unistd.c: Likewise.
49156         * tests/test-fcntl.c: Likewise.
49157
49158 2007-04-23  Eric Blake  <ebb9@byu.net>
49159
49160         * lib/fflush.c: Fix missing include.
49161         Reported by Bruno Haible.
49162
49163 2007-04-23  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49166         Reported by Eric Blake.
49167
49168 2007-04-23  Bruno Haible  <bruno@clisp.org>
49169
49170         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49171
49172 2007-04-23  Bruno Haible  <bruno@clisp.org>
49173
49174         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49175
49176 2007-04-23  Bruno Haible  <bruno@clisp.org>
49177
49178         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49179         Needed on HP-UX 11.
49180
49181 2007-04-16  Eric Blake  <ebb9@byu.net>
49182
49183         Make fflush rely on fpurge.
49184         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49185         open coding all variants.
49186         * modules/fflush (Depends-on): Add fpurge and unistd.
49187         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49188         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49189
49190         Fix --with-tests compilation on cygwin.
49191         * modules/argmatch-tests (Makefile.am): List gnulib library first
49192         in LDADD.
49193         * modules/argp-tests (Makefile.am): Likewise.
49194         * modules/array-list-tests (Makefile.am): Likewise.
49195         * modules/array-oset-tests (Makefile.am): Likewise.
49196         * modules/avltree-list-tests (Makefile.am): Likewise.
49197         * modules/avltree-oset-tests (Makefile.am): Likewise.
49198         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49199         * modules/carray-list-tests (Makefile.am): Likewise.
49200         * modules/dirname-tests (Makefile.am): Likewise.
49201         * modules/frexp-tests (Makefile.am): Likewise.
49202         * modules/isnanl-tests (Makefile.am): Likewise.
49203         * modules/linked-list-tests (Makefile.am): Likewise.
49204         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49205         * modules/lock-tests (Makefile.am): Likewise.
49206         * modules/rbtree-list-tests (Makefile.am): Likewise.
49207         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49208         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49209         * modules/tls-tests (Makefile.am): Likewise.
49210         * modules/tsearch-tests (Makefile.am): Likewise.
49211         * modules/xvasprintf-tests (Makefile.am): Likewise.
49212
49213         Fix fpurge for cygwin.
49214         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49215         value.
49216         * modules/fpurge-tests (Depends-on): Clean up trash.
49217
49218 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49219
49220         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49221
49222         * m4/autobuild.m4: Re-indent.
49223
49224 2007-04-13  Bruno Haible  <bruno@clisp.org>
49225
49226         * modules/fpurge-tests: New file.
49227         * tests/test-fpurge.c: New file.
49228
49229         * modules/fpurge: New file.
49230         * lib/fpurge.h: New file.
49231         * lib/fpurge.c: New file.
49232         * m4/fpurge.m4: New file.
49233
49234 2007-04-13  Bruno Haible  <bruno@clisp.org>
49235
49236         * modules/fbufmode-tests: New file.
49237         * tests/test-fbufmode.c: New file.
49238
49239         * modules/fbufmode: New file.
49240         * lib/fbufmode.h: New file.
49241         * lib/fbufmode.c: New file.
49242         * m4/fbufmode.m4: New file.
49243
49244 2007-04-13  Bruno Haible  <bruno@clisp.org>
49245
49246         * modules/fwritable-tests: New file.
49247         * tests/test-fwritable.c: New file.
49248
49249         * modules/fwritable: New file.
49250         * lib/fwritable.h: New file.
49251         * lib/fwritable.c: New file.
49252         * m4/fwritable.m4: New file.
49253
49254 2007-04-13  Bruno Haible  <bruno@clisp.org>
49255
49256         * modules/freadable-tests: New file.
49257         * tests/test-freadable.c: New file.
49258
49259         * modules/freadable: New file.
49260         * lib/freadable.h: New file.
49261         * lib/freadable.c: New file.
49262         * m4/freadable.m4: New file.
49263
49264 2007-04-13  Bruno Haible  <bruno@clisp.org>
49265
49266         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49267         MOSTLYCLEANFILES.
49268
49269 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49270
49271         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49272         gzip bootstrap.conf to avoid dragging in i18n machinery.
49273         (gnulib_tool_option): Use it.
49274
49275 2007-04-13  Bruno Haible  <bruno@clisp.org>
49276
49277         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49278         %F directives.
49279         * tests/test-vasprintf-posix.c (test_function): Likewise.
49280         * tests/test-snprintf-posix.h (test_function): Likewise.
49281         * tests/test-sprintf-posix.h (test_function): Likewise.
49282         * tests/test-fprintf-posix.h (test_function): Likewise.
49283         * tests/test-printf-posix.h (test_function): Likewise.
49284         * tests/test-fprintf-posix.out: Likewise.
49285
49286 2007-04-13  Bruno Haible  <bruno@clisp.org>
49287
49288         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49289         * modules/tls-tests (configure.ac): Likewise.
49290         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49291
49292 2007-04-13  Bruno Haible  <bruno@clisp.org>
49293
49294         * lib/tls.c (glthread_tls_get): Fix return type.
49295         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49296
49297 2007-04-12  Eric Blake  <ebb9@byu.net>
49298
49299         * modules/gettime (Depends-on): Remove gettime.
49300         Reported by Dmitry V. Levin.
49301
49302 2007-04-12  Bruno Haible  <bruno@clisp.org>
49303
49304         * modules/fflush (Include): Mention <stdio.h>.
49305         * modules/strtoimax (Include): Mention <inttypes.h>.
49306         * modules/strtoumax (Include): Likewise.
49307
49308 2007-04-12  Eric Blake  <ebb9@byu.net>
49309
49310         * .cvsignore: New file.
49311         * .gitignore: Likewise.
49312
49313 2007-04-12  Bruno Haible  <bruno@clisp.org>
49314
49315         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49316         not before, since $(LDADD) often contains libgnu.a.
49317         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49318         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49319         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49320         Needed on Cygwin.
49321
49322 2007-04-12  Eric Blake  <ebb9@byu.net>
49323
49324         Work around glibc's failure to flush stdin on fclose.
49325         * lib/closein.c (close_stdin): Flush stdin before closing.
49326
49327         Work around glibc's failure to reset seekable stdin on exit.
49328         * modules/closein: New module.
49329         * lib/closein.c: New file.
49330         * lib/closein.h: Likewise.
49331         * m4/closein.m4: Likewise.
49332         * MODULES.html.sh (File stream based Input/Output): Document it.
49333
49334 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49335
49336         * gnulib-tool: Rename generated 'autobuild' script to
49337         'do-autobuild' in --create-megatestdir output.
49338
49339         * doc/gnulib.texi (Build robot for gnulib): Fix.
49340
49341 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49342
49343         * modules/sysexits (Depends-on): Add absolute-header.
49344
49345 2007-04-12  Eric Blake  <ebb9@byu.net>
49346
49347         No need to preserve errno on success.
49348         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
49349         Reported by Bruno Haible.
49350
49351 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49352
49353         * MODULES.html.sh (Support for maintaining and releasing
49354         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
49355
49356 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49357
49358         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
49359
49360 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49361
49362         * modules/autobuild: New module.
49363
49364         * m4/autobuild.m4: New file.
49365
49366 2007-04-11  Bruno Haible  <bruno@clisp.org>
49367
49368         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
49369         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
49370         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
49371         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
49372         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49373         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49374         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49376         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49377         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49378         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
49379         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49380         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49381         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
49382         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49383         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
49385         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49386         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49387         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
49388         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49389         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
49391         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49392         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
49394         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49395         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49396         Reported by Eric Blake.
49397
49398 2007-04-11  Bruno Haible  <bruno@clisp.org>
49399
49400         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
49401
49402 2007-04-10  Bruno Haible  <bruno@clisp.org>
49403
49404         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
49405         for NaN and Infinity. Needed on FreeBSD 6.1.
49406         * tests/test-vasnprintf-posix.c (test_function): Undo last change
49407         regarding results for "%010a" of Infinity and NaN.
49408         * tests/test-vasprintf-posix.c (test_function): Likewise.
49409         * tests/test-snprintf-posix.h (test_function): Likewise.
49410         * tests/test-sprintf-posix.h (test_function): Likewise.
49411         * tests/test-fprintf-posix.h (test_function): Likewise.
49412         * tests/test-printf-posix.h (test_function): Likewise.
49413         * tests/test-fprintf-posix.out: Likewise.
49414
49415 2007-04-10  Bruno Haible  <bruno@clisp.org>
49416
49417         * modules/locale-tests: New file.
49418         * tests/test-locale.c: New file.
49419
49420         * modules/locale: New file.
49421         * lib/locale_.h: New file.
49422         * m4/locale_h.m4: New file.
49423
49424 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
49425             Bruno Haible  <bruno@clisp.org>
49426
49427         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
49428         be determined, test for availability of the copysignf, copysign,
49429         copysignl functions.
49430         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
49431         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
49432         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
49433
49434 2007-04-09  Eric Blake  <ebb9@byu.net>
49435
49436         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
49437         * modules/stdio (Makefile.am): Support fflush.
49438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49439         * modules/fflush: New file.
49440         * lib/fflush.c: Likewise.
49441         * m4/fflush.m4: Likewise.
49442         * modules/fflush-tests: New test.
49443         * tests/test-fflush.c: Likewise.
49444         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
49445
49446 2007-04-06  Bruno Haible  <bruno@clisp.org>
49447
49448         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
49449         (VASNPRINTF): Use signbit for faster determination whether to print a
49450         minus sign.
49451         * modules/vasnprintf (Files): Remove lib/float+.h.
49452         * modules/fprintf-posix (Depends-on): Add signbit.
49453         * modules/snprintf-posix (Depends-on): Likewise.
49454         * modules/sprintf-posix (Depends-on): Likewise.
49455         * modules/vasnprintf-posix (Depends-on): Likewise.
49456         * modules/vasprintf-posix (Depends-on): Likewise.
49457         * modules/vfprintf-posix (Depends-on): Likewise.
49458         * modules/vsnprintf-posix (Depends-on): Likewise.
49459         * modules/vsprintf-posix (Depends-on): Likewise.
49460
49461 2007-04-06  Bruno Haible  <bruno@clisp.org>
49462
49463         * tests/test-frexp.c (main): Test also the sign bit of zero results.
49464         * tests/test-frexpl.c (main): Likewise.
49465         * tests/test-ldexpl.c (main): Likewise.
49466         * modules/frexp-tests (Depends-on): Add signbit.
49467         * modules/frexpl-tests (Depdends-on): Likewise.
49468         * modules/ldexpl-tests (Depdends-on): Likewise.
49469
49470 2007-04-06  Bruno Haible  <bruno@clisp.org>
49471
49472         * modules/signbit-tests: New file.
49473         * tests/test-signbit.c: New file.
49474
49475         * modules/signbit: New file.
49476         * lib/signbitf.c: New file.
49477         * lib/signbitd.c: New file.
49478         * lib/signbitl.c: New file.
49479         * m4/signbit.m4: New file.
49480         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
49481         (signbit): New macro.
49482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
49483         REPLACE_SIGNBIT.
49484         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
49485         REPLACE_FREXPL into math.h.
49486
49487 2007-04-06  Bruno Haible  <bruno@clisp.org>
49488
49489         * modules/isnanf-nolibm-tests: New file.
49490         * tests/test-isnanf.c: New file.
49491
49492         * modules/isnanf-nolibm: New file.
49493         * lib/isnanf.h: New file.
49494         * lib/isnanf.c: New file.
49495         * lib/isnan.c: Consider the USE_FLOAT macro.
49496         * m4/isnanf.m4: New file.
49497
49498 2007-04-06  Bruno Haible  <bruno@clisp.org>
49499
49500         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
49501         (Link): New section.
49502
49503         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
49504
49505 2007-04-06  Bruno Haible  <bruno@clisp.org>
49506
49507         Assume the 'long double' type.
49508         * m4/longdouble.m4: Remove file.
49509         * config/srclist.txt: Don't mention longdouble.m4.
49510         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
49511         * lib/float+.h: Likewise.
49512         * lib/frexp.c: Likewise.
49513         * lib/printf-args.h: Likewise.
49514         * lib/printf-args.c: Likewise.
49515         * lib/printf-frexp.c: Likewise.
49516         * lib/printf-parse.c: Likewise.
49517         * lib/vasnprintf.c: Likewise.
49518         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
49519         * m4/intl.m4: Likewise.
49520         * m4/isnanl.m4: Likewise.
49521         * m4/printf.m4: Likewise.
49522         * m4/printf-frexpl.m4: Likewise.
49523         * m4/vasnprintf.m4: Likewise.
49524         * modules/allocsa (Files): Remove m4/longdouble.m4.
49525         * modules/gettext (Files): Likewise.
49526         * modules/relocatable-prog-wrapper (Files): Likewise.
49527         * modules/vasnprintf (Files): Likewise.
49528         * modules/isnanl (Files): Likewise.
49529         (Include): Simplify.
49530         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
49531         (Include): Simplify.
49532         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
49533         (Include): Simplify.
49534         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
49535         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49536         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
49537         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49538         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49539         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49540         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
49541         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49542         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49543         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49544         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
49545         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49546         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
49547         * tests/test-isnanl.c: Likewise.
49548         * tests/test-snprintf-posix.h: Likewise.
49549         * tests/test-sprintf-posix.h: Likewise.
49550         * tests/test-vasnprintf-posix.c: Likewise.
49551         * tests/test-vasnprintf-posix2.c: Likewise.
49552         * tests/test-vasprintf-posix.c: Likewise.
49553
49554 2007-04-06  Bruno Haible  <bruno@clisp.org>
49555
49556         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49557         * lib/math_.h [__DECC]: Include the overridden include file through
49558         #include_next, outside the double-inclusion guard.
49559         * lib/stdio_.h [__DECC]: Likewise.
49560         * lib/stdlib_.h [__DECC]: Likewise.
49561         * lib/string_.h [__DECC]: Likewise.
49562         * lib/time_.h [__DECC]: Likewise.
49563         * lib/wchar_.h [__DECC]: Likewise.
49564         * lib/wctype_.h [__DECC]: Likewise.
49565         * lib/inttypes_.h [__DECC]: Likewise.
49566         Reported by Albert Chin <china@thewrittenword.com> in
49567         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49568
49569 2007-04-04  Eric Blake  <ebb9@byu.net>
49570
49571         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49572         1.5.x.
49573
49574 2007-04-04  Bruno Haible  <bruno@clisp.org>
49575
49576         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49577         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49578
49579 2007-04-04  Bruno Haible  <bruno@clisp.org>
49580
49581         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49582         results for "%010a" of Infinity and NaN.
49583         * tests/test-vasprintf-posix.c (test_function): Likewise.
49584         * tests/test-snprintf-posix.h (test_function): Likewise.
49585         * tests/test-sprintf-posix.h (test_function): Likewise.
49586         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49587         * tests/test-printf-posix.h (test_function): Likewise.
49588         * tests/test-fprintf-posix.out: Update.
49589         Needed for FreeBSD 6.1.
49590
49591 2007-04-04  Bruno Haible  <bruno@clisp.org>
49592
49593         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49594         directly used by the gnulib modules nor by gnulib-tool.
49595
49596 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49597
49598         * DEPENDENCIES: Give overall description of version dependency
49599         desirability.  Use more-typical names for apps.
49600         Add shell, coreutils, diffutils, grep, tar, gzip.
49601
49602 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49603
49604         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49605
49606 2007-04-04  Karl Berry  <karl@gnu.org>
49607
49608         * MODULES.html.sh (func_module): missing '.
49609
49610 2007-04-03  Bruno Haible  <bruno@clisp.org>
49611
49612         * modules/argmatch-tests (Makefile.am): New variable
49613         test_argmatch_LDADD.
49614         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49615         * modules/array-list-tests (Makefile.am): New variable
49616         test_array_list_LDADD.
49617         * modules/array-oset-tests (Makefile.am): New variable
49618         test_array_oset_LDADD.
49619         * modules/avltree-list-tests (Makefile.am): New variable
49620         test_avltree_list_LDADD.
49621         * modules/avltree-oset-tests (Makefile.am): New variable
49622         test_avltree_oset_LDADD.
49623         * modules/avltreehash-list-tests (Makefile.am): New variable
49624         test_avltreehash_list_LDADD.
49625         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49626         test_canonicalize_lgpl_LDADD.
49627         * modules/carray-list-tests (Makefile.am): New variable
49628         test_carray_list_LDADD.
49629         * modules/dirname-tests (Makefile.am): New variable
49630         test_dirname_LDADD.
49631         * modules/linked-list-tests (Makefile.am): New variable
49632         test_linked_list_LDADD.
49633         * modules/linkedhash-list-tests (Makefile.am): New variable
49634         test_linkedhash_list_LDADD.
49635         * modules/rbtree-list-tests (Makefile.am): New variable
49636         test_rbtree_list_LDADD.
49637         * modules/rbtree-oset-tests (Makefile.am): New variable
49638         test_rbtree_oset_LDADD.
49639         * modules/rbtreehash-list-tests (Makefile.am): New variable
49640         test_rbtreehash_list_LDADD.
49641         * modules/xvasprintf-tests (Makefile.am): New variable
49642         test_xvasprintf_LDADD.
49643         Reported by Eric Blake.
49644
49645 2007-04-03  Eric Blake  <ebb9@byu.net>
49646
49647         * DEPENDENCIES: Weaken m4 requirements.
49648
49649 2007-04-03  Bruno Haible  <bruno@clisp.org>
49650
49651         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49652         * modules/isnanl-tests (configure.ac): Likewise.
49653
49654 2007-04-03  Ben Pfaff  <blp@gnu.org>
49655
49656         * modules/iconv_open: Add $(srcdir)/ to source directory
49657         references in Makefile fragments that call gperf, to fix VPATH
49658         builds.
49659
49660 2007-04-03  Bruno Haible  <bruno@clisp.org>
49661
49662         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49663         * lib/ldexpl.c: Undo last change.
49664
49665 2007-04-03  Bruno Haible  <bruno@clisp.org>
49666
49667         * modules/printf-frexpl (Depends-on): Undo last change.
49668         (Files): Add m4/ldexpl.m4.
49669
49670 2007-04-03  Bruno Haible  <bruno@clisp.org>
49671
49672         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49673         * modules/isnanl (Link): New section.
49674
49675         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49676         * modules/frexp (Link): New section.
49677
49678         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49679         * modules/frexpl (Link): New section.
49680
49681         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49682         * modules/ldexpl (Link): New section.
49683
49684 2007-04-03  Bruno Haible  <bruno@clisp.org>
49685
49686         * modules/TEMPLATE-EXTENDED: New file.
49687         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49688
49689 2007-04-03  Bruno Haible  <bruno@clisp.org>
49690
49691         * DEPENDENCIES: New file.
49692         Suggested by Simon Josefsson.
49693
49694 2007-04-03  Bruno Haible  <bruno@clisp.org>
49695
49696         * doc/gnulib.texi: Escape @.
49697
49698 2007-04-03  James Youngman  <jay@gnu.org>
49699         and Paul Eggert  <eggert@cs.ucla.edu>
49700
49701         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49702         birthtime on all systems that have birthtime, not just those which
49703         use st_birthtimensec rather than st_birthtim.  Putting zero in
49704         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49705         that the birth time is not available for files on an NFS mount.
49706
49707 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49708
49709         * modules/memxor: Move back from crypto/, suggested by Bruno.
49710         * modules/crypto/hmac-sha1: Fix memxor dependency.
49711
49712         * modules/crypto/gc: Moved from ../.
49713
49714 2007-04-02  Eric Blake  <ebb9@byu.net>
49715
49716         * lib/ldexpl.c (includes): Avoid libm.
49717
49718         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49719
49720 2007-04-02  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49723         on IRIX.
49724
49725 2007-04-02  Bruno Haible  <bruno@clisp.org>
49726
49727         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49728         x86 or x86_64 platforms running MacOS X.
49729         Reported by Ryan Schmidt <@ryandesign.com>.
49730
49731 2007-04-02  Bruno Haible  <bruno@clisp.org>
49732
49733         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49734         i386.
49735
49736 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49737
49738         * modules/crypto/arcfour: Moved from ../.
49739         * modules/crypto/arcfour-tests: Moved from ../.
49740         * modules/crypto/arctwo: Moved from ../.
49741         * modules/crypto/arctwo-tests: Moved from ../.
49742         * modules/crypto/des: Moved from ../.
49743         * modules/crypto/des-tests: Moved from ../.
49744         * modules/crypto/gc-arcfour: Moved from ../.
49745         * modules/crypto/gc-arcfour-tests: Moved from ../.
49746         * modules/crypto/gc-arctwo: Moved from ../.
49747         * modules/crypto/gc-arctwo-tests: Moved from ../.
49748         * modules/crypto/gc-des: Moved from ../.
49749         * modules/crypto/gc-des-tests: Moved from ../.
49750         * modules/crypto/gc-hmac-md5: Moved from ../.
49751         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49752         * modules/crypto/gc-hmac-sha1: Moved from ../.
49753         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49754         * modules/crypto/gc-md2: Moved from ../.
49755         * modules/crypto/gc-md2-tests: Moved from ../.
49756         * modules/crypto/gc-md4: Moved from ../.
49757         * modules/crypto/gc-md4-tests: Moved from ../.
49758         * modules/crypto/gc-md5: Moved from ../.
49759         * modules/crypto/gc-md5-tests: Moved from ../.
49760         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49761         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49762         * modules/crypto/gc-random: Moved from ../.
49763         * modules/crypto/gc-rijndael: Moved from ../.
49764         * modules/crypto/gc-rijndael-tests: Moved from ../.
49765         * modules/crypto/gc-sha1: Moved from ../.
49766         * modules/crypto/gc-sha1-tests: Moved from ../.
49767         * modules/crypto/gc-tests: Moved from ../.
49768         * modules/crypto/hmac-md5: Moved from ../.
49769         * modules/crypto/hmac-md5-tests: Moved from ../.
49770         * modules/crypto/hmac-sha1: Moved from ../.
49771         * modules/crypto/hmac-sha1-tests: Moved from ../.
49772         * modules/crypto/md2: Moved from ../.
49773         * modules/crypto/md2-tests: Moved from ../.
49774         * modules/crypto/md4: Moved from ../.
49775         * modules/crypto/md4-tests: Moved from ../.
49776         * modules/crypto/md5: Moved from ../.
49777         * modules/crypto/md5-tests: Moved from ../.
49778         * modules/crypto/memxor: Moved from ../.
49779         * modules/crypto/rijndael: Moved from ../.
49780         * modules/crypto/rijndael-tests: Moved from ../.
49781         * modules/crypto/sha1: Moved from ../.
49782
49783 2007-03-30  James Youngman  <jay@gnu.org>
49784
49785         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49786         rename() to change the ctime of a file (because ctime is unaffected
49787         by rename on jfs2 on AIX 5.1).
49788         (main): Start by doing cleanup, in case a previous run failed leaving
49789         test files behind.
49790
49791 2007-03-31  Bruno Haible  <bruno@clisp.org>
49792
49793         Support old proprietary implementations of iconv.
49794         * modules/iconv_open: New file.
49795         * lib/iconv_.h: New file.
49796         * m4/iconv_h.m4: New file.
49797         * lib/iconv_open.c: New file.
49798         * lib/iconv_open-aix.gperf: New file.
49799         * lib/iconv_open-hpux.gperf: New file.
49800         * lib/iconv_open-irix.gperf: New file.
49801         * lib/iconv_open-osf.gperf: New file.
49802         * m4/iconv_open.m4: New file.
49803         * modules/linebreak (Depends-on): Add iconv_open.
49804         * modules/striconv (Depends-on): Likewise.
49805         * modules/striconveh (Depends-on): Likewise.
49806         * modules/unicodeio (Depends-on): Likewise.
49807         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49808         (iconv_t)(-1).
49809         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49810         conversion if cd is (iconv_t)(-1).
49811         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49812         is not possible.
49813
49814 2007-03-31  Bruno Haible  <bruno@clisp.org>
49815
49816         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49817         work on Solaris either. Protect also second use of "autodetect_jp".
49818
49819 2007-03-31  Bruno Haible  <bruno@clisp.org>
49820
49821         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49822         the function is not present.
49823
49824 2007-03-31  Bruno Haible  <bruno@clisp.org>
49825
49826         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49827         the function is not present.
49828
49829 2007-03-31  Bruno Haible  <bruno@clisp.org>
49830
49831         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49832         a bug in HP-UX iconv_open().
49833
49834 2007-03-31  Bruno Haible  <bruno@clisp.org>
49835
49836         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49837         (Mathematics <math.h>): New section, add fpieee.
49838         (Input/output <stdio.h>): Add fseterr.
49839         (Mathematics <math.h>): New section, add printf-frexp.
49840         (Container data structures): Add sublist.
49841         (Core language properties): Add fpucw, inline.
49842         (Functions for greatest-width integer types <inttypes.h>): Add
49843         imaxabs, imaxdiv, inttypes.
49844         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49845         isnanl-nolibm, ldexp.
49846         (Mathematics <math.h>): New section, add printf-frexpl.
49847         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49848         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49849         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49850         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49851         (Unicode string functions): Add unistr/u*-mbtoucr.
49852         (Java): Add javacomp-script, javaexec-script.
49853         (C#): Add csharpcomp-script, csharpexec-script.
49854         (Support for building libraries and executables): Add havelib,
49855         relocatable-*.
49856         (Support for maintaining and releasing projects): Renamed from
49857         'Support for maintaining and release projects'. Add announce-gen.
49858
49859 2007-03-31  Bruno Haible  <bruno@clisp.org>
49860
49861         * README: Talk primarily about git.
49862         (git and CVS): Renamed from CVS.
49863         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49864         gnulib is available through git.
49865         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49866
49867 2007-03-30  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49870         * lib/poll_.h: Likewise.
49871         * lib/stat_.h: Likewise.
49872         * lib/sys_time_.h: Likewise.
49873         * lib/sysexit_.h: Likewise.
49874         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49875         * lib/stdbool_.h: Likewise.
49876         * lib/byteswap_.h: Add double-inclusion guard.
49877
49878 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49879
49880         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49881
49882 2007-03-30  Karl Berry  <karl@gnu.org>
49883
49884         * config/srclist-update: double space after USA in the license
49885         substitution, since that's how it's usually (?) written.
49886
49887 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49888
49889         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49890         reported by Bruno Haible.
49891
49892 2007-03-29  Bruno Haible  <bruno@clisp.org>
49893
49894         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49895         a bug in AIX iconv().
49896
49897 2007-03-29  Bruno Haible  <bruno@clisp.org>
49898
49899         * modules/ldexpl-tests: New file.
49900         * tests/test-ldexpl.c: New file.
49901
49902 2007-03-29  Bruno Haible  <bruno@clisp.org>
49903
49904         * lib/ldexpl.c: Include fpucw.h.
49905         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49906         multiplication.
49907         * modules/ldexpl (Depends-on): Add fpucw.
49908
49909 2007-03-29  Bruno Haible  <bruno@clisp.org>
49910
49911         * modules/ldexpl: New file.
49912         * m4/ldexpl.m4: New file.
49913         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49914         set.
49915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49916         REPLACE_LDEXPL.
49917         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49918         REPLACE_LDEXPL.
49919         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49920         gl_FUNC_LDEXPL_WORKS.
49921         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49922         * modules/mathl (Files): Remove lib/ldexpl.c.
49923         (Depends-on): Add ldexpl.
49924
49925 2007-03-29  Bruno Haible  <bruno@clisp.org>
49926
49927         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49928
49929 2007-03-29  Bruno Haible  <bruno@clisp.org>
49930
49931         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49932         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49933         and possibly also HP-UX.
49934         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49935         work on AIX, IRIX, HP-UX, OSF/1.
49936         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49937         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49938         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49939         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49940         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49941         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49942
49943 2007-03-29  Bruno Haible  <bruno@clisp.org>
49944
49945         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49946
49947 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49948
49949         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49950         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49951
49952 2007-03-29  Eric Blake  <ebb9@byu.net>
49953
49954         * lib/acl-internal.h: Remove redundant include.
49955         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49956         Cygwin when a file is locked.
49957
49958 2007-03-29  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49961         file.
49962         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49963
49964 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49965
49966         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49967         try to remove a parent directory if the child couldn't be removed
49968         (except for the first rmdir, which could fail because the child
49969         doesn't exist).  Problem reported by Jeff Blaine in
49970         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49971
49972 2007-03-28  Bruno Haible  <bruno@clisp.org>
49973
49974         * lib/striconveh.c (utf8conv_carefully): New function.
49975         (mem_cd_iconveh_internal): Invoke it.
49976
49977 2007-03-28  Bruno Haible  <bruno@clisp.org>
49978
49979         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49980         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49981         input.
49982         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49983         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49984         unistr/u8-uctomb.
49985
49986 2007-03-28  Bruno Haible  <bruno@clisp.org>
49987
49988         * modules/unistr/u8-mbtoucr: New file.
49989         * lib/unistr/u8-mbtoucr.c: New file.
49990         * modules/unistr/u16-mbtoucr: New file.
49991         * lib/unistr/u16-mbtoucr.c: New file.
49992         * modules/unistr/u16-mbtoucr: New file.
49993         * lib/unistr/u16-mbtoucr.c: New file.
49994         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49995
49996 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49997             Bruno Haible  <bruno@clisp.org>
49998
49999         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50000         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50001         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50002
50003         * m4/stdio_h.m4: Add stubs for vasprintf too.
50004
50005         * modules/stdio: Support vasprintf in sed command.
50006
50007         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50008         vasprintf.h.  Add stdio module indicator.
50009
50010         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50011         vasprintf.h.
50012
50013         * lib/vasprintf.h: File removed.
50014
50015         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50016         * lib/vasprintf.c: Ditto.
50017         * lib/xvasprintf.c: Ditto.
50018         * tests/test-vasprintf-posix.c: Ditto.
50019         * tests/test-vasprintf.c: Ditto.
50020
50021 2007-03-27  Bruno Haible  <bruno@clisp.org>
50022
50023         Make vasnprintf multithread-safe.
50024         * lib/vasnprintf.c (decimal_point_char): New function.
50025         (VASNPRINTF): Use it.
50026         Suggested by Simon Josefsson.
50027
50028 2007-03-27  Eric Blake  <ebb9@byu.net>
50029
50030         Support sub-second birthtime on cygwin.
50031         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50032         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50033         (get_stat_birthtime): Also work with st_birthtim.
50034
50035 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50036
50037         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50038         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50039         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50040         (get_stat_birthtime_ns): Simplify compile-time tests.
50041         (get_stat_birthtime): Change the API to look like
50042         get_stat_mtime etc., except return a negative tv_nsec on error.
50043         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50044         Don't check for "spare" fields.
50045         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50046         or for struct stat.st_birthtime, as these tests aren't used.
50047         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50048
50049 2007-03-27  Bruno Haible  <bruno@clisp.org>
50050
50051         * lib/stat-time.h: Include <sys/stat.h>.
50052
50053 2007-03-27  James Youngman  <jay@gnu.org>
50054
50055         * lib/stat-time.h (get_stat_birthtime): New function for
50056           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50057         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50058           and its variants.
50059         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50060         * modules/stat-time-test: New file.
50061         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50062
50063 2007-03-26  Bruno Haible  <bruno@clisp.org>
50064
50065         Better support of signalling NaNs.
50066         * lib/atanl.c: Include isnanl.h.
50067         (atanl): Perform test for NaN at the beginning of the function and
50068         through a call to isnanl.
50069         * lib/cosl.c: Include isnanl.h.
50070         (cosl): Perform test for NaN at the beginning of the function and
50071         through a call to isnanl.
50072         * lib/ldexpl.c: Include isnanl.h.
50073         (ldexpl): Perform test for NaN through a call to isnanl.
50074         * lib/logl.c: Include isnanl.h.
50075         (logl): Perform test for NaN at the beginning of the function and
50076         through a call to isnanl.
50077         * lib/sinl.c: Include isnanl.h.
50078         (sinl): Perform test for NaN at the beginning of the function and
50079         through a call to isnanl.
50080         * lib/sqrtl.c: Include isnanl.h.
50081         (sqrtl): Perform test for NaN at the beginning of the function and
50082         through a call to isnanl.
50083         * lib/tanl.c: Include isnanl.h.
50084         (tanl): Perform test for NaN at the beginning of the function and
50085         through a call to isnanl.
50086         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50087         * modules/mathl (Depends-on): Add isnanl.
50088
50089 2007-03-26  Eric Blake  <ebb9@byu.net>
50090
50091         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50092         regression in logic sense of previous patch.
50093
50094 2007-03-26  Bruno Haible  <bruno@clisp.org>
50095
50096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50097         unportable shell command "if ! ...".
50098         Reported by Ralf Wildenhues.
50099
50100 2007-03-25  Bruno Haible  <bruno@clisp.org>
50101
50102         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50103         <sysexits.h> file, and only add EX_CONFIG.
50104         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50105         absolute file name and whether it is sufficient. Substitute also
50106         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50107         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50108         ABSOLUTE_SYSEXITS_H into sysexits.h.
50109
50110 2007-03-25  Bruno Haible  <bruno@clisp.org>
50111
50112         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50113         hints is NULL.
50114
50115 2007-03-25  Bruno Haible  <bruno@clisp.org>
50116
50117         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50118         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50119
50120 2007-03-25  Bruno Haible  <bruno@clisp.org>
50121
50122         * lib/vasnprintf.c: Include langinfo.h.
50123         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50124         multithread-safe.
50125         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50126         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50127         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50129         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50131         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50133         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50134         Reported by Simon Josefsson.
50135
50136 2007-03-25  Bruno Haible  <bruno@clisp.org>
50137
50138         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50139         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50140         * modules/vasnprintf (Depends-on): Add stdint.
50141
50142 2007-03-25  Bruno Haible  <bruno@clisp.org>
50143
50144         * modules/fpieee: New file.
50145         * m4/fpieee.m4: New file.
50146         * modules/isnan-nolibm (Depends-on): Add fpieee.
50147         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50148         * modules/isnanl (Depends-on): Add fpieee.
50149
50150 2007-03-25  Bruno Haible  <bruno@clisp.org>
50151
50152         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50153
50154 2007-03-25  Bruno Haible  <bruno@clisp.org>
50155
50156         Avoid test failures on IRIX 6.5.
50157         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50158         (main): Use it.
50159         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50160         macros.
50161         (main): Use them.
50162
50163 2007-03-25  Bruno Haible  <bruno@clisp.org>
50164
50165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50166         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50167         exists but doesn't work.
50168         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50169         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50171         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50172
50173 2007-03-25  Bruno Haible  <bruno@clisp.org>
50174
50175         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50176         returns inf. Needed on IRIX 6.5.
50177
50178 2007-03-25  Bruno Haible  <bruno@clisp.org>
50179
50180         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50181         (main): Use isnanl instead of x != x idiom.
50182         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50183
50184         * tests/test-frexp.c: Include isnan.h.
50185         (main): Use isnan instead of x != x idiom.
50186         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50187
50188 2007-03-25  Bruno Haible  <bruno@clisp.org>
50189
50190         * tests/test-frexp.c (NaN): New function/macro.
50191         (main): Use it instead of 0.0 / 0.0.
50192         * tests/test-isnan.c (NaN): New function/macro.
50193         (main): Use it instead of 0.0 / 0.0.
50194         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50195         (test_function): Use it instead of 0.0 / 0.0.
50196         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50197         (test_function): Use it instead of 0.0 / 0.0.
50198         * tests/test-snprintf-posix.h (NaN): New function/macro.
50199         (test_function): Use it instead of 0.0 / 0.0.
50200         * tests/test-sprintf-posix.h (NaN): New function/macro.
50201         (test_function): Use it instead of 0.0 / 0.0.
50202         * tests/test-fprintf-posix.h (NaN): New function/macro.
50203         (test_function): Use it instead of 0.0 / 0.0.
50204         * tests/test-printf-posix.h (NaN): New function/macro.
50205         (test_function): Use it instead of 0.0 / 0.0.
50206
50207         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50208
50209 2007-03-25  Bruno Haible  <bruno@clisp.org>
50210
50211         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50212
50213 2007-03-25  Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/regexec.c (merge_state_with_log): Make static.
50216
50217 2007-03-25  Bruno Haible  <bruno@clisp.org>
50218
50219         * lib/trigl.c (kernel_rem_pio2): Make static.
50220
50221 2007-03-25  Bruno Haible  <bruno@clisp.org>
50222
50223         * lib/sincosl.c (sincosl_table): Make static.
50224
50225 2007-03-25  Bruno Haible  <bruno@clisp.org>
50226
50227         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50228         if the compiler does not support C99.
50229
50230 2007-03-25  Bruno Haible  <bruno@clisp.org>
50231
50232         * modules/time (Makefile.am): Ensure all rule action lines start with a
50233         tab.
50234
50235 2007-03-24  Bruno Haible  <bruno@clisp.org>
50236
50237         * modules/tsearch-tests: New file.
50238         * tests/test-tsearch.sh: New file.
50239         * tests/test-tsearch.c: New file, mostly copied from glibc.
50240
50241         * modules/search-tests: New file.
50242         * tests/test-search.c: New file.
50243
50244         * modules/search: New file.
50245         * lib/search_.h: New file, incorporating lib/tsearch.h.
50246         * m4/search_h.m4: New file.
50247         * lib/tsearch.h: Remove file.
50248         * lib/tsearch.c: Include search.h instead of tsearch.h.
50249         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50250         HAVE_TSEARCH.
50251         * modules/tsearch (Files): Remove lib/tsearch.h.
50252         (Depends-on): Add search.
50253         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50254         (Include): Change tsearch.h into search.h.
50255
50256 2007-03-24  Bruno Haible  <bruno@clisp.org>
50257
50258         * modules/fpucw: New file.
50259         * lib/fpucw.h: New file.
50260         * lib/frexp.c: Include fpucw.h.
50261         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50262         (FUNC): Use them.
50263         * lib/printf-frexp.c: Include fpucw.h.
50264         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50265         (FUNC): Use them.
50266         * lib/vasnprintf.c: Include fpucw.h.
50267         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50268         'long double' calculations.
50269         * tests/test-frexpl.c: Include fpucw.h.
50270         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50271         * tests/test-printf-frexpl.c: Include fpucw.h.
50272         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50273         * modules/frexpl (Depends-on): Add fpucw.
50274         * modules/printf-frexpl (Depends-on): Likewise.
50275         * modules/fprintf-posix (Depends-on): Likewise.
50276         * modules/snprintf-posix (Depends-on): Likewise.
50277         * modules/sprintf-posix (Depends-on): Likewise.
50278         * modules/vasnprintf-posix (Depends-on): Likewise.
50279         * modules/vasprintf-posix (Depends-on): Likewise.
50280         * modules/vfprintf-posix (Depends-on): Likewise.
50281         * modules/vsnprintf-posix (Depends-on): Likewise.
50282         * modules/vsprintf-posix (Depends-on): Likewise.
50283         * modules/frexpl-tests (Depends-on): Likewise.
50284         * modules/printf-frexpl-tests (Depends-on): Likewise.
50285
50286 2007-03-24  Bruno Haible  <bruno@clisp.org>
50287
50288         * lib/float+.h: New file.
50289         * lib/isnan.c: Include float+.h.
50290         (SIZE): New macro.
50291         (FUNC): Compare only SIZE bytes of the value.
50292         * lib/vasnprintf.c: Include float+.h.
50293         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50294         SIZEOF_LDBL or SIZEOF_DBL bytes.
50295         * modules/isnan-nolibm (Files): Add lib/float+.h.
50296         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50297         * modules/isnanl (Files): Add lib/float+.h.
50298         * modules/vasnprintf (Files): Add lib/float+.h.
50299
50300 2007-03-24  Bruno Haible  <bruno@clisp.org>
50301
50302         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50303         include isnanl-nolibm.h.
50304
50305 2007-03-24  Bruno Haible  <bruno@clisp.org>
50306
50307         * tests/test-read-file.c (main): Don't produce spurious output for
50308         expected situations. Make the test fail if it encountered unexpected
50309         results.
50310
50311 2007-03-24  Bruno Haible  <bruno@clisp.org>
50312
50313         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50314         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50315
50316 2007-03-24  Bruno Haible  <bruno@clisp.org>
50317
50318         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50319
50320 2007-03-24  Bruno Haible  <bruno@clisp.org>
50321
50322         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50323         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50324
50325         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50326         * modules/utf8-ucs4: Turn into a symbolic link to module
50327         unistr/u8-mbtouc.
50328
50329         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50330         utf8-ucs4-unsafe.
50331         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50332         unistr/u8-mbtouc-unsafe.
50333
50334         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50335         * modules/utf16-ucs4: Turn into a symbolic link to module
50336         unistr/u16-mbtouc.
50337
50338         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50339         utf16-ucs4-unsafe.
50340         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
50341         unistr/u16-mbtouc-unsafe.
50342
50343         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
50344         * modules/ucs4-utf8: Turn into a symbolic link to module
50345         unistr/u8-ubtomb.
50346
50347         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
50348         * modules/ucs4-utf16: Turn into a symbolic link to module
50349         unistr/u16-ubtomb.
50350
50351 2007-03-24  Bruno Haible  <bruno@clisp.org>
50352
50353         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
50354         Enable the function only if HAVE_INLINE.
50355         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
50356         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50357         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
50358         Enable the function only if HAVE_INLINE.
50359         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
50360         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50361         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
50362         Enable the function only if HAVE_INLINE.
50363         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
50364         Enable the function only if HAVE_INLINE.
50365         * modules/utf8-ucs4: Update.
50366         * modules/utf8-ucs4-unsafe: Update.
50367         * modules/utf16-ucs4: Update.
50368         * modules/utf16-ucs4-unsafe: Update.
50369         * modules/ucs4-utf8: Update.
50370         * modules/ucs4-utf16: Update.
50371
50372 2007-03-24  Bruno Haible  <bruno@clisp.org>
50373
50374         * lib/utf8-ucs4.h: Remove file.
50375         * lib/utf8-ucs4-unsafe.h: Remove file.
50376         * lib/utf16-ucs4.h: Remove file.
50377         * lib/utf16-ucs4-unsafe.h: Remove file.
50378         * lib/ucs4-utf8.h: Remove file.
50379         * lib/ucs4-utf16.h: Remove file.
50380         * lib/unistr.h: Include their previous contents.
50381         * m4/utf-ucs4.m4: Remove file.
50382         * m4/ucs4-utf.m4: Remove file.
50383         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
50384         (Depends-on): Add unistr/base.
50385         (configure.ac): Remove gl_UTF_UCS4.
50386         (Makefile.am): Update.
50387         (Include): Change to unistr.h.
50388         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
50389         (Depends-on): Add unistr/base.
50390         (configure.ac): Remove gl_UTF_UCS4.
50391         (Makefile.am): Update.
50392         (Include): Change to unistr.h.
50393         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
50394         (Depends-on): Add unistr/base.
50395         (configure.ac): Remove gl_UTF_UCS4.
50396         (Makefile.am): Update.
50397         (Include): Change to unistr.h.
50398         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
50399         (Depends-on): Add unistr/base.
50400         (configure.ac): Remove gl_UTF_UCS4.
50401         (Makefile.am): Update.
50402         (Include): Change to unistr.h.
50403         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
50404         (Depends-on): Add unistr/base.
50405         (configure.ac): Remove gl_UCS4_UTF.
50406         (Makefile.am): Update.
50407         (Include): Change to unistr.h.
50408         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
50409         (Depends-on): Add unistr/base.
50410         (configure.ac): Remove gl_UCS4_UTF.
50411         (Makefile.am): Update.
50412         (Include): Change to unistr.h.
50413         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
50414         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
50415         utf8-ucs4-unsafe.h.
50416         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
50417         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
50418         utf16-ucs4-unsafe.h.
50419         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
50420         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
50421         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
50422         * lib/unistr/u8-strchr.c: Likewise.
50423         * lib/unistr/u8-strrchr.c: Likewise.
50424         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
50425         * lib/unistr/u16-strchr.c: Likewise.
50426         * lib/unistr/u16-strrchr.c: Likewise.
50427         * lib/striconveh.c: Update.
50428         * lib/linebreak.c: Update.
50429
50430 2007-03-24  Bruno Haible  <bruno@clisp.org>
50431
50432         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
50433         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
50434
50435 2007-03-22  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
50438
50439 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50440
50441         * MODULES.html.sh (File system functions): New module write-any-file.
50442         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
50443         * m4/write-any-file.m4: New files.
50444
50445 2007-03-23  Eric Blake  <ebb9@byu.net>
50446
50447         * gnulib-tool: Rearrange space-tab sequences, since some editors
50448         like to eat them.
50449
50450 2007-03-23  Eric Blake  <ebb9@byu.net>
50451
50452         * lib/version-etc.c (version_etc_va): Update license wording to
50453         be more concise.  Recommended by Richard Stallman.
50454
50455 2007-03-22  Bruno Haible  <bruno@clisp.org>
50456
50457         * lib/poll.c (MSG_PEEK): New fallback definition.
50458
50459 2007-03-22  Bruno Haible  <bruno@clisp.org>
50460
50461         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
50462         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
50463         (main): Update.
50464         Fixes a compilation error on BeOS.
50465
50466 2007-03-22  Bruno Haible  <bruno@clisp.org>
50467
50468         * modules/frexpl-tests: New file.
50469         * tests/test-frexpl.c: New file.
50470
50471         * modules/frexpl: New file.
50472         * m4/frexpl.m4: New file.
50473         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
50474         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
50475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
50476         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
50477         (Depends-on): Add frexpl. Remove isnanl-nolibm.
50478         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
50479
50480 2007-03-22  Bruno Haible  <bruno@clisp.org>
50481
50482         * lib/frexpl.c: Share code with lib/frexp.c.
50483         * modules/mathl (Files): Add lib/frexp.c.
50484         (Depends-on): Add isnanl-nolibm.
50485
50486 2007-03-22  Bruno Haible  <bruno@clisp.org>
50487
50488         * modules/printf-frexp (Files): Add m4/frexp.m4.
50489         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
50490         only if the found frexp function actually works.
50491
50492 2007-03-22  Bruno Haible  <bruno@clisp.org>
50493
50494         * lib/frexp.c: Remove older implementation that uses divisions.
50495
50496 2007-03-21  Bruno Haible  <bruno@clisp.org>
50497
50498         * modules/frexp-tests: New file.
50499         * tests/test-frexp.c: New file.
50500
50501         * modules/frexp: New file.
50502         * lib/frexp.c: New file.
50503         * m4/frexp.m4: New file.
50504         * lib/math_.h (frexp): New declaration.
50505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
50506         REPLACE_FREXP.
50507         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
50508
50509 2007-03-21  Bruno Haible  <bruno@clisp.org>
50510
50511         * modules/isnanl-tests: New file.
50512         * tests/test-isnanl.c: New file.
50513
50514         * modules/isnanl: New file.
50515         * lib/isnanl.h: New file.
50516         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
50517         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
50518         gl_FUNC_ISNANL_WORKS.
50519         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
50520         New macros.
50521
50522 2007-03-21  Bruno Haible  <bruno@clisp.org>
50523
50524         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
50525         lib/isnanl.h.
50526         (Include): Update.
50527         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
50528         * lib/vasnprintf.c: Update.
50529         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
50530         tests/test-isnanl.h, remove tests/test-isnanl.c.
50531         (Makefile.am): Update.
50532         * tests/test-isnanl-nolibm.c: New file.
50533         * tests/test-isnanl.h: New file.
50534         * tests/test-isnanl.c: Remove file.
50535
50536 2007-03-21  Jim Meyering  <jim@meyering.net>
50537
50538         When trying to open ".", treat ESTALE like EACCES.
50539         * lib/savewd.c (savewd_save): Resort to forking not just upon
50540         failure with EACCES, but also when errno is ESTALE.
50541
50542 2007-03-20  Bruno Haible  <bruno@clisp.org>
50543
50544         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
50545         Needed on AIX 5.1. Reported by Matthew Woehlke.
50546
50547 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50548
50549         Suggestions by Bruno Haible:
50550         * lib/acl-internal.h: Include "gettext.h" rather than rolling
50551         our own.
50552         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50553         * modules/acl (Depends-on): Add gettext.
50554
50555 2007-03-19  Bruno Haible  <bruno@clisp.org>
50556
50557         * modules/iconvme: Remove file.
50558         * lib/iconvme.h: Remove file.
50559         * lib/iconvme.c: Remove file.
50560         * m4/iconvme.m4: Remove file.
50561
50562 2007-03-19  Bruno Haible  <bruno@clisp.org>
50563
50564         * doc/relocatable-maint.texi: Break long shell script line.
50565         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50566
50567 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50568
50569         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50570         handle file_has_acl.
50571         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50572         * lib/acl.c: Move header inclusions and related macro defns into
50573         lib/acl-internal.h.
50574         (S_ISLNK): Remove defn, since that's now done for us.
50575         (file_has_acl): Move to lib/file-has-acl.c.
50576         Call acl_trivial if available.  This is the crucial part of the fix.
50577         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50578         shared within the library.  Rewrite a bit, partly to make it compatible
50579         with the GNU coding style.
50580         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50581         Remove unnecessary double-quotes.
50582         Don't test for acl_to_text; the build will catch that.
50583         Replace acl_entries if it doesn't exist and it is needed.
50584         Check for -lsec and acl_trivial (as used on Solaris 10).
50585         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50586         lib/file-has-acl.c.
50587         (Depends-on): Add sys_stat, for S_ISLNK.
50588
50589 2007-03-19  Ben Pfaff  <blp@gnu.org>
50590
50591         * doc/gnulib.texi: Fix typos.
50592         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50593
50594 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50595
50596         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50597         If size is zero here, buf must be zero.
50598
50599 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50600
50601         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50602         <bruno@clisp.org>.
50603
50604 2007-03-18  Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50607         Suggested by Eric Blake.
50608
50609 2007-03-18  Ben Pfaff  <blp@gnu.org>
50610
50611         * doc/relocatable.texi: Recommend using as prefix a directory
50612         that does not exist and will never be created.  Based on
50613         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50614         and others.
50615
50616 2007-03-17  Bruno Haible  <bruno@clisp.org>
50617
50618         * lib/fchownat.c: Include lchown.h.
50619
50620 2007-03-17  Bruno Haible  <bruno@clisp.org>
50621
50622         Fix endless loop when the given allocated size was > INT_MAX.
50623         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50624         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50625         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50626         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50627         * lib/sprintf.c (sprintf): Likewise.
50628
50629 2007-03-17  Bruno Haible  <bruno@clisp.org>
50630
50631         * tests/test-argp-2.sh (func_compare): Output a context diff.
50632
50633 2007-03-17  Bruno Haible  <bruno@clisp.org>
50634
50635         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50636         locale's decimal-point character.
50637
50638 2007-03-17  Bruno Haible  <bruno@clisp.org>
50639
50640         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50641         before comparing it. Needed because on some platforms (e.g. x86) a
50642         'long double' occupies less bytes than sizeof (long double).
50643
50644 2007-03-17  Bruno Haible  <bruno@clisp.org>
50645
50646         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50647         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50648         * tests/test-getaddrinfo.c (simple): Likewise.
50649         * tests/test-read-file.c (main): Likewise.
50650
50651 2007-03-17  Bruno Haible  <bruno@clisp.org>
50652
50653         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50654
50655 2007-03-17  Bruno Haible  <bruno@clisp.org>
50656
50657         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50658         unused variable.
50659
50660 2007-03-17  Bruno Haible  <bruno@clisp.org>
50661
50662         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50663         * tests/test-c-strncasecmp.c: Likewise.
50664
50665 2007-03-17  Bruno Haible  <bruno@clisp.org>
50666
50667         * modules/stdlib (Depends-on): Add unistd.
50668         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50669         Needed for MacOS X 10.3.
50670
50671 2007-03-17  Bruno Haible  <bruno@clisp.org>
50672
50673         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50674
50675 2007-03-17  Bruno Haible  <bruno@clisp.org>
50676
50677         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50678
50679 2007-03-17  Bruno Haible  <bruno@clisp.org>
50680
50681         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50682         to reflect files copied from gnulib (with or without modifications).
50683         Suggested by Jim Meyering.
50684
50685 2007-03-17  Eric Blake  <ebb9@byu.net>
50686
50687         * NEWS: Document stdlib change from 2007-02-18.
50688
50689 2007-03-17  Jim Meyering  <jim@meyering.net>
50690
50691         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50692         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50693         someone uses a name containing shell meta-characters.
50694         Reported by Alfred M. Szmidt.
50695
50696         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50697
50698 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50699
50700         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50701         and copy gettext configuration files only if configure.ac contains
50702         a use of AM_GNU_GETTEXT_VERSION.
50703
50704 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50705
50706         * build-aux/bootstrap (gnulib_name): New variable.
50707         (gnulib_tool_options): Use it.
50708
50709 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50710
50711         * tests/test-des.c: Use new namespace.
50712
50713 2007-03-15  Bruno Haible  <bruno@clisp.org>
50714
50715         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50716         Reported by James Youngman <jay@gnu.org>.
50717
50718 2007-03-15  Bruno Haible  <bruno@clisp.org>
50719
50720         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50721         declared prototype. Needed with cc on OSF/1 5.1.
50722
50723 2007-03-15  Bruno Haible  <bruno@clisp.org>
50724
50725         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50726         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50727         (struct gl_list_implementation): Add dispose_fn argument to the
50728         'create_empty', 'create' methods.
50729         (struct gl_list_impl_base): Add field 'dispose_fn'.
50730         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50731         argument.
50732         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50733         dispose_fn argument.
50734         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50735         dispose_fn on the dropped values.
50736         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50737         dispose_fn argument.
50738         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50739         dropped values.
50740         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50741         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50742         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50743         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50744         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50745         argument.
50746         (gl_tree_list_free): Call dispose_fn on the dropped values.
50747         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50748         the dropped values.
50749         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50750         Add dispose_fn argument.
50751         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50752         Call dispose_fn on the dropped values.
50753         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50754         Add dispose_fn argument.
50755         (gl_sublist_create): Initialize the 'dispose_fn' field.
50756         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50757         * tests/test-array_list.c (main): Update.
50758         * tests/test-carray_list.c (main): Update.
50759         * tests/test-avltree_list.c (main): Update.
50760         * tests/test-rbtree_list.c (main): Update.
50761         * tests/test-avltreehash_list.c (main): Update.
50762         * tests/test-rbtreehash_list.c (main): Update.
50763         * tests/test-linked_list.c (main): Update.
50764         * tests/test-linkedhash_list.c (main): Update.
50765         * tests/test-array_oset.c (main): Update.
50766
50767 2007-03-15  Bruno Haible  <bruno@clisp.org>
50768
50769         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50770         (gl_oset_create_empty): Add dispose_fn argument.
50771         (struct gl_oset_implementation): Add dispose_fn argument to
50772         'create_empty' method.
50773         (struct gl_oset_impl_base): Add dispose_fn field.
50774         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50775         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50776         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50777         values.
50778         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50779         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50780         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50781         dropped value.
50782         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50783         dropped value.
50784         * tests/test-array_oset.c (main): Update.
50785         * tests/test-avltree_oset.c (main): Update.
50786         * tests/test-rbtree_oset.c (main): Update.
50787         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50788
50789 2007-03-13  Bruno Haible  <bruno@clisp.org>
50790
50791         * tests/test-stdbool.c (i): Update after last patch.
50792
50793 2007-03-12  Bruno Haible  <bruno@clisp.org>
50794
50795         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50796         the iswprint macro. Needed on Solaris 2.5.1.
50797
50798 2007-03-12  Bruno Haible  <bruno@clisp.org>
50799
50800         * tests/test-printf-frexp.c (main): Declare x as volatile.
50801
50802 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50803
50804         * doc/gnulib.texi (Build robot for gnulib): New section.
50805
50806 2007-03-12  Jim Meyering  <jim@meyering.net>
50807
50808         * build-aux/bootstrap: New file.
50809         * build-aux/bootstrap.conf: New file, from coreutils.
50810
50811 2007-03-11  Bruno Haible  <bruno@clisp.org>
50812
50813         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50814
50815 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50816
50817         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50818         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50819         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50820
50821 2007-03-11  Bruno Haible  <bruno@clisp.org>
50822
50823         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50824         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50825
50826 2007-03-11  Bruno Haible  <bruno@clisp.org>
50827
50828         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50829         formula. Needed for SunPRO C 5.0.
50830
50831 2007-03-11  Bruno Haible  <bruno@clisp.org>
50832
50833         * modules/long-options (Depends-on): Add getopt.
50834
50835 2007-03-11  Bruno Haible  <bruno@clisp.org>
50836
50837         * modules/modechange (Depends-on): Add stdbool.
50838
50839 2007-03-11  Bruno Haible  <bruno@clisp.org>
50840
50841         * modules/i-ring (Depends-on): Add stdbool.
50842
50843 2007-03-11  Bruno Haible  <bruno@clisp.org>
50844
50845         * modules/gc-des (Depends-on): Add stdbool.
50846
50847 2007-03-11  Bruno Haible  <bruno@clisp.org>
50848
50849         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50850
50851 2007-03-11  Bruno Haible  <bruno@clisp.org>
50852
50853         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50854
50855 2007-03-11  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50858
50859 2007-03-11  Bruno Haible  <bruno@clisp.org>
50860
50861         * lib/vasnprintf.c (sprintf): Undefine.
50862
50863 2007-03-11  Bruno Haible  <bruno@clisp.org>
50864
50865         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50866         initializers in SunPRO C and Compaq C compilers.
50867
50868 2007-03-11  Bruno Haible  <bruno@clisp.org>
50869
50870         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50871         decrementing code ANSI C compliant.
50872
50873 2007-03-11  Bruno Haible  <bruno@clisp.org>
50874
50875         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50876         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50877
50878 2007-03-11  Bruno Haible  <bruno@clisp.org>
50879
50880         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50881         <stdbool.h> substitute doesn't pass.
50882
50883 2007-03-11  Bruno Haible  <bruno@clisp.org>
50884
50885         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50886
50887 2007-03-11  Bruno Haible  <bruno@clisp.org>
50888
50889         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50890         script, for submission to autobuild.josefsson.org.
50891
50892 2007-03-10  Bruno Haible  <bruno@clisp.org>
50893
50894         * modules/canonicalize-lgpl-tests: New file.
50895         * tests/test-canonicalize-lgpl.sh: New file.
50896         * tests/test-canonicalize-lgpl.c: New file.
50897
50898         * modules/c-strcase-tests: New file.
50899         * tests/test-c-strcase.sh: New file.
50900         * tests/test-c-strcasecmp.c: New file.
50901         * tests/test-c-strncasecmp.c: New file.
50902
50903         * modules/atexit-tests: New file.
50904         * tests/test-atexit.sh: New file.
50905         * tests/test-atexit.c: New file.
50906
50907 2007-03-10  Bruno Haible  <bruno@clisp.org>
50908
50909         * tests/test-binary-io.sh: Use temporary filenames that are not so
50910         likely to clash with those of other tests (in a parallel make).
50911         * tests/test-binary-io.c: Likewise.
50912
50913 2007-03-10  Bruno Haible  <bruno@clisp.org>
50914
50915         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50916         fallback; use #error instead.
50917         Suggested by Simon Josefsson.
50918
50919 2007-03-10  Bruno Haible  <bruno@clisp.org>
50920
50921         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50922         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50923         first and the last.
50924
50925 2007-03-10  Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50928
50929 2007-03-10  Bruno Haible  <bruno@clisp.org>
50930
50931         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50932         "make distcheck".
50933         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50934         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50935         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50936
50937 2007-03-10  Bruno Haible  <bruno@clisp.org>
50938
50939         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50940         variable.
50941         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50942         variable.
50943
50944 2007-03-09  Eric Blake  <ebb9@byu.net>
50945         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50946
50947         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50948         types are not being provided by gnulib.
50949         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50950         types are supported.
50951
50952 2007-03-10  Bruno Haible  <bruno@clisp.org>
50953
50954         * lib/stdio_.h (__attribute__): New macro.
50955         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50956         vsprintf): Specify __attribute__ __format__ for GCC.
50957         Suggested by Eric Blake.
50958
50959 2007-03-09  Bruno Haible  <bruno@clisp.org>
50960
50961         * modules/printf-posix-tests: New file.
50962         * tests/test-printf-posix.sh: New file.
50963         * tests/test-printf-posix.c: New file.
50964
50965         * modules/printf-posix: New file.
50966         * lib/printf.c: New file.
50967         * m4/printf-posix-rpl.m4: New file.
50968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50969         REPLACE_PRINTF.
50970         * lib/stdio_.h (printf): New declaration.
50971         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50972         ____strfmon____): New macros.
50973         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50974         REPLACE_PRINTF.
50975
50976 2007-03-09  Bruno Haible  <bruno@clisp.org>
50977
50978         * tests/test-vasnprintf-posix2.sh: New file.
50979         * tests/test-vasnprintf-posix2.c: New file.
50980         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50981         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50982         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50983
50984         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50985         a locale dependent decimal point, rather than always '.'.
50986
50987 2007-03-09  Eric Blake  <ebb9@byu.net>
50988
50989         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50990         spite of platforms like Tandem/NSK that define it to -1.
50991
50992 2007-03-08  Bruno Haible  <bruno@clisp.org>
50993
50994         * modules/vprintf-posix-tests: New file.
50995         * tests/test-vprintf-posix.sh: New file.
50996         * tests/test-vprintf-posix.c: New file.
50997         * tests/test-printf-posix.h: New file.
50998
50999         * modules/vprintf-posix: New file.
51000         * lib/vprintf.c: New file.
51001         * m4/vprintf-posix.m4: New file.
51002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51003         REPLACE_VPRINTF.
51004         * lib/stdio_.h (vprintf): New declaration.
51005         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51006         REPLACE_VPRINTF.
51007
51008 2007-03-08  Bruno Haible  <bruno@clisp.org>
51009
51010         * modules/fprintf-posix-tests: New file.
51011         * tests/test-fprintf-posix.sh: New file.
51012         * tests/test-fprintf-posix.c: New file.
51013
51014         * modules/fprintf-posix: New file.
51015         * lib/fprintf.c: New file.
51016         * m4/fprintf-posix.m4: New file.
51017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51018         REPLACE_FPRINTF.
51019         * lib/stdio_.h (fprintf): New declaration.
51020         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51021         REPLACE_FPRINTF.
51022
51023 2007-03-08  Bruno Haible  <bruno@clisp.org>
51024
51025         * modules/vfprintf-posix-tests: New file.
51026         * tests/test-vfprintf-posix.sh: New file.
51027         * tests/test-vfprintf-posix.c: New file.
51028         * tests/test-fprintf-posix.h: New file.
51029         * tests/test-fprintf-posix.out: New file.
51030
51031         * modules/vfprintf-posix: New file.
51032         * lib/vfprintf.c: New file.
51033         * m4/vfprintf-posix.m4: New file.
51034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51035         REPLACE_VFPRINTF.
51036         * lib/stdio_.h (vfprintf): New declaration.
51037         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51038         REPLACE_VFPRINTF.
51039
51040 2007-03-08  Bruno Haible  <bruno@clisp.org>
51041
51042         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51043
51044 2007-03-08  Bruno Haible  <bruno@clisp.org>
51045
51046         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51047         instead of 'expr' invocations.
51048         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51049         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51051         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51053         Suggested by Paul Eggert.
51054
51055 2007-03-08  Bruno Haible  <bruno@clisp.org>
51056
51057         * modules/fseterr-tests: New file.
51058         * tests/test-fseterr.c: New file.
51059
51060         * modules/fseterr: New file.
51061         * lib/fseterr.h: New file.
51062         * lib/fseterr.c: New file.
51063
51064 2007-03-08  Bruno Haible  <bruno@clisp.org>
51065
51066         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51067         * lib/getopt_.h: Likewise.
51068         * lib/mbswidth.h: Likewise.
51069         * lib/setenv.h: Likewise.
51070         * lib/vasnprintf.h: Likewise.
51071         * lib/vasprintf.h: Likewise.
51072         * lib/verror.h: Likewise.
51073         * lib/xsetenv.h: Likewise.
51074         * lib/xvasprintf.h: Likewise.
51075
51076 2007-03-08  Jim Meyering  <jim@meyering.net>
51077
51078         * users.txt: Add parted.
51079
51080         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51081
51082 2007-03-07  Bruno Haible  <bruno@clisp.org>
51083
51084         * m4/printf.m4: Make the shell script snippets copy&pastable.
51085
51086 2007-03-02  Bruno Haible  <bruno@clisp.org>
51087
51088         * lib/netinet_in_.h: New file.
51089         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51090         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51091         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51092         (Depends-on): Add absolute-header.
51093         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51094         into netinet/in.h.
51095
51096 2007-03-03  Bruno Haible  <bruno@clisp.org>
51097
51098         * lib/sys_select_.h: New file.
51099         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51100         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51101         * modules/sys_select (Files): Add lib/sys_select_.h.
51102         (Depends-on): Add absolute-header.
51103         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51104         into sys/select.h.
51105
51106 2007-03-02  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51109         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51110         values.
51111         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51112         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51113         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51114         * modules/sys_socket (Depends-on): Add absolute-header.
51115         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51116         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51117         (Include): Remove requirement of inclusion of <sys/types.h>.
51118
51119 2007-03-02  Bruno Haible  <bruno@clisp.org>
51120
51121         * lib/byteswap_.h (bswap_32): Fix formula.
51122
51123 2007-03-06  Bruno Haible  <bruno@clisp.org>
51124
51125         * modules/sprintf-posix-tests: New file.
51126         * tests/test-sprintf-posix.c: New file.
51127
51128         * modules/sprintf-posix: New file.
51129         * lib/sprintf.c: New file.
51130         * m4/sprintf-posix.m4: New file.
51131         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51132         REPLACE_SPRINTF.
51133         * lib/stdio_.h (sprintf): New declaration.
51134         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51135         REPLACE_SPRINTF.
51136
51137 2007-03-06  Bruno Haible  <bruno@clisp.org>
51138
51139         * modules/vsprintf-posix-tests: New file.
51140         * tests/test-vsprintf-posix.c: New file.
51141         * tests/test-sprintf-posix.h: New file.
51142
51143         * modules/vsprintf-posix: New file.
51144         * lib/vsprintf.c: New file.
51145         * m4/vsprintf-posix.m4: New file.
51146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51147         REPLACE_VSPRINTF.
51148         * lib/stdio_.h (vsprintf): New declaration.
51149         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51150         REPLACE_VSPRINTF.
51151
51152 2007-03-06  Bruno Haible  <bruno@clisp.org>
51153
51154         * modules/vsnprintf (Depend-on): Remove minmax.
51155
51156 2007-03-06  Bruno Haible  <bruno@clisp.org>
51157
51158         * modules/snprintf-posix-tests: New file.
51159         * tests/test-snprintf-posix.c: New file.
51160
51161         * modules/snprintf-posix: New file.
51162         * m4/snprintf-posix.m4: New file.
51163         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51164         gl_FUNC_SNPRINTF.
51165         (gl_FUNC_SNPRINTF): Invoke it.
51166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51167         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51168         is set.
51169         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51170
51171 2007-03-06  Bruno Haible  <bruno@clisp.org>
51172
51173         * modules/vsnprintf-posix-tests: New file.
51174         * tests/test-vsnprintf-posix.c: New file.
51175         * tests/test-snprintf-posix.h: New file.
51176
51177         * modules/vsnprintf-posix: New file.
51178         * m4/vsnprintf-posix.m4: New file.
51179         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51180         gl_FUNC_VSNPRINTF.
51181         (gl_FUNC_VSNPRINTF): Invoke it.
51182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51183         * lib/stdio_.h (vsnprintf): Define as a replacement if
51184         REPLACE_VSNPRINTF is set.
51185         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51186
51187 2007-03-06  Bruno Haible  <bruno@clisp.org>
51188
51189         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51191
51192 2007-03-06  Bruno Haible  <bruno@clisp.org>
51193
51194         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51195         (asinl): Declare also if HAVE_DECL_ASINL is set.
51196         (atanl): Declare also if HAVE_DECL_ATANL is set.
51197         (ceill): Declare also if HAVE_DECL_CEILL is set.
51198         (cosl): Declare also if HAVE_DECL_COSL is set.
51199         (expl): Declare also if HAVE_DECL_EXPL is set.
51200         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51201         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51202         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51203         (logl): Declare also if HAVE_DECL_LOGL is set.
51204         (sinl): Declare also if HAVE_DECL_SINL is set.
51205         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51206         (tanl): Declare also if HAVE_DECL_TANL is set.
51207         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51209         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51210         declaration of frexpl, ldexpl.
51211         * modules/printf-frexpl (Depends-on): Add math.
51212         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51213
51214 2007-03-05  Bruno Haible  <bruno@clisp.org>
51215
51216         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51217         frexpl and ldexpl are declared.
51218         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51219
51220 2007-03-05  Bruno Haible  <bruno@clisp.org>
51221
51222         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51223         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51224
51225 2007-03-05  Bruno Haible  <bruno@clisp.org>
51226
51227         * lib/stdio_.h: Include <stddef.h>.
51228
51229 2007-03-05  Bruno Haible  <bruno@clisp.org>
51230
51231         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51232
51233 2007-03-05  Bruno Haible  <bruno@clisp.org>
51234
51235         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51236         NetBSD 4, from Ralf Wildenhues.
51237
51238 2007-03-04  Bruno Haible  <bruno@clisp.org>
51239
51240         * lib/vasprintf.h: Update #if logic for the case when the functions
51241         exist but are overridden.
51242
51243 2007-03-04  Bruno Haible  <bruno@clisp.org>
51244
51245         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51246         implementations: glibc-2.4 and MacOS X 10.3.
51247         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51248         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51249         * tests/test-vasprintf-posix.c (test_function): Likewise.
51250
51251 2007-03-04  Bruno Haible  <bruno@clisp.org>
51252
51253         * modules/vasprintf-posix-tests: New file.
51254         * tests/test-vasprintf-posix.c: New file.
51255
51256         * modules/vasprintf-posix: New file.
51257         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51258         defined.
51259         * m4/vasprintf-posix.m4: New file.
51260         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51261         gl_FUNC_VASPRINTF.
51262         (gl_FUNC_VASPRINTF): Invoke it.
51263         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51264         here.
51265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51266
51267 2007-03-04  Bruno Haible  <bruno@clisp.org>
51268
51269         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51270         REPLACE_GETTIMEOFDAY.
51271         * modules/sys_time (Makefile.am): Likewise.
51272         * m4/sys_time_h.m4: Likewise.
51273         * m4/gettimeofday.m4: Likewise.
51274
51275 2007-03-04  Bruno Haible  <bruno@clisp.org>
51276
51277         * modules/vasnprintf-posix-tests: New file.
51278         * tests/test-vasnprintf-posix.c: New file.
51279
51280         * modules/vasnprintf-posix: New file.
51281         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51282         printf-frexpl.h.
51283         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51284         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51285         REPLACE_VASNPRINTF is defined.
51286         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51287         gl_FUNC_VASNPRINTF.
51288         (gl_FUNC_VASNPRINTF): Invoke it.
51289         * m4/vasnprintf-posix.m4: New file.
51290         * m4/printf.m4: New file.
51291
51292 2007-03-04  Bruno Haible  <bruno@clisp.org>
51293
51294         Compile progreloc.c only if --enable-relocatable is specified.
51295         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51296         if --enable-relocatable was specified.
51297         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51298         lib_SOURCES.
51299
51300 2007-03-04  Jim Meyering  <jim@meyering.net>
51301
51302         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51303         Use it consistently, rather than enumerating errno constants.
51304
51305 2007-03-04  Bruno Haible  <bruno@clisp.org>
51306
51307         * modules/xvasprintf-tests: New file.
51308         * tests/test-xvasprintf.c: New file.
51309
51310         * modules/vasprintf-tests: New file.
51311         * tests/test-vasprintf.c: New file.
51312
51313         * modules/vasnprintf-tests: New file.
51314         * tests/test-vasnprintf.c: New file.
51315
51316         * modules/vsnprintf-tests: New file.
51317         * tests/test-vsnprintf.c: New file.
51318
51319         * modules/snprintf-tests: New file.
51320         * tests/test-snprintf.c: New file.
51321
51322 2007-03-04  Bruno Haible  <bruno@clisp.org>
51323
51324         Compile relocatable.c only if --enable-relocatable is specified.
51325         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51326         gl_RELOCATABLE_LIBRARY.
51327         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51328         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51329         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51330         gl_RELOCATABLE_LIBRARY.
51331         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51332         (Makefile.am): Remove lib_SOURCES.
51333         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51334         gl_RELOCATABLE_LIBRARY.
51335         (Makefile.am): Remove lib_SOURCES.
51336         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51337         always.
51338         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51339         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51340
51341 2007-03-04  Bruno Haible  <bruno@clisp.org>
51342
51343         * modules/argmatch-tests: New file.
51344         * tests/test-argmatch.c: New file.
51345
51346         * tests/test-allocsa.c (main): Halve the number of loop runs.
51347
51348         * modules/alloca-opt-tests: New file.
51349         * tests/test-alloca-opt.c: New file.
51350
51351 2007-03-04  Jim Meyering  <jim@meyering.net>
51352
51353         Work around difference between Linux ACLs and Solaris 10 ZFS.
51354         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
51355         for EINVAL.
51356
51357 2007-03-03  Bruno Haible  <bruno@clisp.org>
51358
51359         * modules/relocatable-prog (Depends-on): Add back progreloc's
51360         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
51361
51362 2007-03-03  Bruno Haible  <bruno@clisp.org>
51363
51364         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
51365         * modules/relocatable-lib: New file.
51366
51367 2007-03-03  Bruno Haible  <bruno@clisp.org>
51368
51369         * modules/relocatable-prog: Renamed from modules/relocatable.
51370         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
51371
51372 2007-03-03  Bruno Haible  <bruno@clisp.org>
51373
51374         * modules/relocatable-script (Files): Add doc/relocatable.texi,
51375         m4/relocatable-lib.m4.
51376         (Depends-on): Remove 'relocatable'.
51377         (configure.ac): Add gl_RELOCATABLE_NOP.
51378
51379 2007-03-03  Bruno Haible  <bruno@clisp.org>
51380
51381         * modules/relocatable-prog-wrapper: New file.
51382         * modules/relocatable (Depends-on): Add it. Remove all other
51383         dependencies except progname.
51384         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
51385
51386         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
51387         (gl_FUNC_STRERROR): Nop.
51388         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
51389
51390         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
51391         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
51392
51393         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
51394         (gl_FUNC_READLINK): Update.
51395
51396         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
51397
51398 2007-03-03  Bruno Haible  <bruno@clisp.org>
51399
51400         * lib/xreadlink.c: Include <unistd.h> unconditionally.
51401         * modules/xreadlink (Depends-on): Add unistd.
51402         * modules/xreadlink-with-size (Depends-on): Likewise.
51403
51404 2007-03-03  Bruno Haible  <bruno@clisp.org>
51405
51406         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
51407         extracted from gt_FUNC_SETENV.
51408         (gt_FUNC_SETENV): Remove macro.
51409         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
51410         remove gt_FUNC_SETENV.
51411
51412 2007-03-03  Bruno Haible  <bruno@clisp.org>
51413
51414         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
51415         ENABLE_RELOCATABLE here.
51416         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
51417
51418 2007-03-03  Bruno Haible  <bruno@clisp.org>
51419
51420         * modules/rbtreehash-list-tests (Depends-on): Add progname.
51421         * tests/test-rbtreehash_list.c: Include progname.h.
51422         (main): Call set_program_name.
51423
51424         * modules/rbtree-oset-tests (Depends-on): Add progname.
51425         * tests/test-rbtree_oset.c: Include progname.h.
51426         (main): Call set_program_name.
51427
51428         * modules/rbtree-list-tests (Depends-on): Add progname.
51429         * tests/test-rbtree_list.c: Include progname.h.
51430         (main): Call set_program_name.
51431
51432         * modules/linked-list-tests (Depends-on): Add progname.
51433         * tests/test-linked_list.c: Include progname.h.
51434         (main): Call set_program_name.
51435
51436 2007-03-03  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
51439         All uses of __restrict changed to _Restrict_.
51440         * lib/glob_.h (__restrict): Remove macro.
51441
51442 2007-03-02  Bruno Haible  <bruno@clisp.org>
51443
51444         * modules/gettext (configure.ac): Require gettext infrastructure
51445         from version 0.16.1.
51446
51447 2007-03-02  Bruno Haible  <bruno@clisp.org>
51448
51449         * modules/linkedhash-list-tests (Depends-on): Add progname.
51450         * tests/test-linkedhash_list.c: Include progname.h.
51451         (main): Call set_program_name.
51452
51453         * modules/carray-list-tests (Depends-on): Add progname.
51454         * tests/test-carray_list.c: Include progname.h.
51455         (main): Call set_program_name.
51456
51457         * modules/avltreehash-list-tests (Depends-on): Add progname.
51458         * tests/test-avltreehash_list.c: Include progname.h.
51459         (main): Call set_program_name.
51460
51461         * modules/avltree-oset-tests (Depends-on): Add progname.
51462         * tests/test-avltree_oset.c: Include progname.h.
51463         (main): Call set_program_name.
51464
51465         * modules/avltree-list-tests (Depends-on): Add progname.
51466         * tests/test-avltree_list.c: Include progname.h.
51467         (main): Call set_program_name.
51468
51469         * modules/array-oset-tests (Depends-on): Add progname.
51470         * tests/test-array_oset.c: Include progname.h.
51471         (main): Call set_program_name.
51472
51473         * modules/array-list-tests (Depends-on): Add progname.
51474         * tests/test-array_list.c: Include progname.h.
51475         (main): Call set_program_name.
51476
51477         * modules/argp-tests (Depends-on): Add progname.
51478         * tests/test-argp.c: Include argp.h first. Include progname.h.
51479         (main): Call set_program_name.
51480
51481 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
51482
51483         * doc/gnulib-tool.texi (Initial import): Reword description of
51484         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
51485         limited effect even if defined after the first system include.
51486
51487 2007-03-01  Bruno Haible  <bruno@clisp.org>
51488
51489         * build-aux/config.libpath: Update to libtool-1.5.22.
51490         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51491
51492 2007-03-01  Bruno Haible  <bruno@clisp.org>
51493
51494         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
51495         foo_CFLAGS.
51496         Reported by Ralf Wildenhues.
51497
51498 2007-03-01  Bruno Haible  <bruno@clisp.org>
51499
51500         * build-aux/install-reloc: Remove object files left over by some
51501         compilers.
51502         Reported by Ralf Wildenhues.
51503
51504 2007-03-01  Bruno Haible  <bruno@clisp.org>
51505
51506         * build-aux/install-reloc: Break long lines.
51507
51508 2007-03-01  Bruno Haible  <bruno@clisp.org>
51509
51510         * doc/relocatable.texi: Document that it may not work on OpenBSD.
51511         Reported by Ralf Wildenhues.
51512
51513 2007-03-01  Bruno Haible  <bruno@clisp.org>
51514
51515         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
51516         include ordering constraints.
51517
51518 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51519
51520         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
51521         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
51522         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
51523         as another example.
51524         * lib/time_.h: Fix misspelling.
51525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51526         Require gl_HEADER_TIME_H_DEFAULTS.
51527         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
51528         * m4/time_r.m4 (gl_TIME_R): Likewise.
51529         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
51530
51531 2007-03-01  Bruno Haible  <bruno@clisp.org>
51532
51533         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
51534         * m4/utimens.m4 (gl_UTIMENS): Likewise.
51535
51536 2007-03-01  Jim Meyering  <jim@meyering.net>
51537
51538         * modules/xreadlink (Maintainer): Add my name.
51539         * modules/xreadlink-with-size (Depends-on): Alphabetize.
51540
51541 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
51542             Bruno Haible  <bruno@clisp.org>
51543
51544         * build-aux/install-reloc: Compile also c-ctype.c.
51545         * build-aux/relocatable.sh.in: New file.
51546         * doc/relocatable.texi: New file.
51547         * doc/relocatable-maint.texi: New file.
51548         * doc/gnulib.texi: Include relocatable-maint.texi.
51549         * lib/progreloc.c: Include unistd.h unconditionally.
51550         * lib/relocwrapper.c: Include unistd.h unconditionally.
51551         Include c-ctype.h.
51552         (add_dotbin): Use c_tolower.
51553         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51554         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51555         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51556         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51557         to m4/relocatable-lib.m4.
51558         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51559         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51560         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51561         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51562         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51563         * modules/relocatable: New file.
51564         * modules/relocatable-lib: New file.
51565         * modules/relocatable-script: New file.
51566
51567 2007-02-28  Bruno Haible  <bruno@clisp.org>
51568
51569         Import --enable-relocatable infrastructure.
51570         * build-aux/config.libpath: New file, from GNU gettext.
51571         * build-aux/install-reloc: New file, from GNU gettext.
51572         * build-aux/reloc-ldflags: New file, from GNU gettext.
51573         * lib/relocatable.h: New file, from GNU gettext.
51574         * lib/relocatable.c: New file, from GNU gettext.
51575         * lib/relocwrapper.c: New file, from GNU gettext.
51576         * m4/relocatable.m4: New file, from GNU gettext.
51577
51578 2007-02-28  Bruno Haible  <bruno@clisp.org>
51579
51580         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51581
51582         * modules/xreadlink: New file, from GNU gettext with modifications.
51583         * lib/xreadlink.c: New file, from GNU gettext.
51584         * lib/xreadlink.h: Add comments.
51585         (xreadlink): New declaration.
51586
51587         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51588         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51589         lib/xreadlink-with-size.c.
51590         (configure.ac): Remove gl_XREADLINK invocation.
51591         (Makefile.am): Augment lib_SOURCES.
51592         * m4/xreadlink.m4: Remove file.
51593         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51594         (xreadlink_with_size): Renamed from xreadink.
51595         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51596         * modules/canonicalize (Depends-on): Replace xreadlink with
51597         xreadlink-with-size.
51598         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51599
51600 2007-02-25  Jim Meyering  <jim@meyering.net>
51601
51602         * build-aux/announce-gen: When complaining about excess arguments,
51603         list them.
51604
51605 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51606
51607         * README: Document signed integer overflow situation more
51608         accurately.
51609
51610 2007-02-25  Bruno Haible  <bruno@clisp.org>
51611
51612         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51613         'a' or 'A' conversion.
51614
51615 2007-02-25  Bruno Haible  <bruno@clisp.org>
51616
51617         * modules/filename: Renamed from modules/pathname.
51618         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51619         lib/concatpath.c with lib/concat-filename.c.
51620         (Makefile.am): Update.
51621         (Include): Replace pathname.h with filename.h.
51622         * lib/filename.h: Renamed from lib/pathname.h.
51623         (concatenated_filename): Renamed from concatenated_pathname.
51624         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51625         (concatenated_filename): Renamed from concatenated_pathname.
51626         * lib/findprog.c: Include filename.h instead of pathname.h.
51627         (find_in_path): Update.
51628         * lib/javacomp.c: Include filename.h instead of pathname.h.
51629         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51630         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51631         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51632         is_oldgcj_14_13_usable, is_javac_usable): Update.
51633         * lib/javaexec.c: Include filename.h instead of pathname.h.
51634         (execute_java_class): Update.
51635         * modules/findprog: Update.
51636         * modules/javacomp: Update.
51637         * modules/javaexec: Update.
51638         * MODULES.html.sh (File system functions): Add 'filename', remove
51639         'pathname'.
51640
51641 2007-02-25  Bruno Haible  <bruno@clisp.org>
51642
51643         * modules/printf-frexpl-tests: New file.
51644         * tests/test-printf-frexpl.c: New file.
51645
51646         * modules/printf-frexpl: New file.
51647         * lib/printf-frexpl.h: New file.
51648         * lib/printf-frexpl.c: New file.
51649         * m4/printf-frexpl.m4: New file.
51650
51651 2007-02-25  Bruno Haible  <bruno@clisp.org>
51652
51653         * modules/printf-frexp-tests: New file.
51654         * tests/test-printf-frexp.c: New file.
51655
51656         * modules/printf-frexp: New file.
51657         * lib/printf-frexp.h: New file.
51658         * lib/printf-frexp.c: New file.
51659         * m4/printf-frexp.m4: New file.
51660
51661 2007-02-25  Bruno Haible  <bruno@clisp.org>
51662
51663         Assume automake >= 1.10 for the tests.
51664         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51665         * modules/arctwo-tests: Likewise.
51666         * modules/argp-tests: Likewise.
51667         * modules/avltree-list-tests: Likewise.
51668         * modules/avltree-oset-tests: Likewise.
51669         * modules/avltreehash-list-tests: Likewise.
51670         * modules/carray-list-tests: Likewise.
51671         * modules/crc-tests: Likewise.
51672         * modules/des-tests: Likewise.
51673         * modules/gc-arcfour-tests: Likewise.
51674         * modules/gc-arctwo-tests: Likewise.
51675         * modules/gc-des-tests: Likewise.
51676         * modules/gc-hmac-md5-tests: Likewise.
51677         * modules/gc-hmac-sha1-tests: Likewise.
51678         * modules/gc-md2-tests: Likewise.
51679         * modules/gc-md4-tests: Likewise.
51680         * modules/gc-md5-tests: Likewise.
51681         * modules/gc-pbkdf2-sha1-tests: Likewise.
51682         * modules/gc-rijndael-tests: Likewise.
51683         * modules/gc-sha1-tests: Likewise.
51684         * modules/gc-tests: Likewise.
51685         * modules/getaddrinfo-tests: Likewise.
51686         * modules/hmac-md5-tests: Likewise.
51687         * modules/hmac-sha1-tests: Likewise.
51688         * modules/linked-list-tests: Likewise.
51689         * modules/linkedhash-list-tests: Likewise.
51690         * modules/lock-tests: Likewise.
51691         * modules/md2-tests: Likewise.
51692         * modules/md4-tests: Likewise.
51693         * modules/md5-tests: Likewise.
51694         * modules/rbtree-list-tests: Likewise.
51695         * modules/rbtree-oset-tests: Likewise.
51696         * modules/rbtreehash-list-tests: Likewise.
51697         * modules/read-file-tests: Likewise.
51698         * modules/rijndael-tests: Likewise.
51699         * modules/stdint-tests: Likewise.
51700         * modules/tls-tests: Likewise.
51701
51702 2007-02-24  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51705         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51706         function; instead check whether isnan with a double argument links.
51707         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51708         function; instead check whether isnan with a 'long double' argument
51709         links.
51710         Reported by Eric Blake <ebb9@byu.net>.
51711
51712 2007-02-24  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51715         defined.
51716         * lib/isnanl.c: Remove all code. Just include isnan.c.
51717         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51718
51719 2007-02-25  Jim Meyering  <jim@meyering.net>
51720
51721         Avoid conflicting types for 'unsetenv' on FreeBSD.
51722         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51723         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51724         in stdlib.h.
51725
51726 2007-02-24  Bruno Haible  <bruno@clisp.org>
51727
51728         * modules/isnanl-nolibm-tests: New file.
51729         * tests/test-isnanl.c: New file.
51730
51731         * modules/isnanl-nolibm: New file.
51732         * lib/isnanl.h: New file.
51733         * lib/isnanl.c: New file.
51734         * m4/isnanl.m4: New file.
51735
51736 2007-02-24  Bruno Haible  <bruno@clisp.org>
51737
51738         * modules/isnan-nolibm-tests: New file.
51739         * tests/test-isnan.c: New file.
51740
51741         * modules/isnan-nolibm: New file.
51742         * lib/isnan.h: New file.
51743         * lib/isnan.c: New file.
51744         * m4/isnan.m4: New file.
51745
51746 2007-02-24  Bruno Haible  <bruno@clisp.org>
51747
51748         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51749         assume that an exponent fits in 20 bits.
51750
51751 2007-02-24  Jim Meyering  <jim@meyering.net>
51752
51753         * m4/regex.m4: Update the description of the configure-time option,
51754         --without-included-regex, to state accurately what the defaults are,
51755         and perhaps to give people an idea why using this option is risky.
51756
51757 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51758
51759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51760         loops on small arguments.  This attempts to avoid the problem
51761         Bruno Haible reported for AIX 4.3.2 in
51762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51763
51764 2007-02-23  Bruno Haible  <bruno@clisp.org>
51765
51766         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51767         Needed for help2man.
51768
51769 2007-02-23  Karl Berry  <karl@gnu.org>
51770
51771         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51772         exists, foo.h should be cvs-ignored, not committed.
51773
51774 2007-02-23  Eric Blake  <ebb9@byu.net>
51775
51776         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51777         * lib/stat-time.h (includes): Likewise.
51778         * lib/utimecmp.c (includes): Likewise.
51779         * lib/utimens.h (includes): Likewise.
51780         * lib/getdate.y (includes): Also include "timespec.h" for use
51781         internal to the module.
51782         * modules/utimens (Depends-on): Revert yesterday's patch.
51783         * modules/nanosleep (Depends-on): Add missing dependency.
51784
51785 2007-02-22  Bruno Haible  <bruno@clisp.org>
51786
51787         * lib/glob.c: Don't include getlogin_r.h.
51788
51789 2007-02-22  Jim Meyering  <jim@meyering.net>
51790
51791         * modules/utimens (Depends-on): Add timespec, required for
51792         utimens.h's inclusion of timespec.h.
51793
51794 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51795
51796         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51797         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51798         Schwab in
51799         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51800         I'll try to think of a better way to fix the Solaris problem.
51801
51802         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51803         like glibc; on Solaris 10, it fails with errno == EINVAL.
51804         POSIX says the behavior is unspecified if the first argument is NULL,
51805         so play it safe and never pass NULL to the system getcwd.
51806
51807 2007-02-21  Jim Meyering  <jim@meyering.net>
51808
51809         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51810         of gettimeofday.  It would conflict with the one now always
51811         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51812         an IRIX 6.5 build failure.
51813
51814 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51815
51816         Minor fixups to port to Solaris 10 with Sun C 5.8.
51817         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51818         * modules/getcwd (Depends-on): Add dirfd.
51819         * lib/putenv.c (putenv): #undef it.
51820         (rpl_putenv): New decl.
51821         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51822
51823 2007-02-20  Bruno Haible  <bruno@clisp.org>
51824
51825         * modules/stdio-tests: New file.
51826         * tests/test-stdio.c: New file.
51827
51828         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51829         (Depends-on): Add stdio.
51830         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51831         (Include): Use <stdio.h> instead of vsnprintf.h.
51832         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51833         HAVE_DECL_VSNPRINTF.
51834         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51835
51836         * modules/snprintf (Files): Remove lib/snprintf.h.
51837         (Depends-on): Add stdio.
51838         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51839         (Include): Use <stdio.h> instead of snprintf.h.
51840         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51841         HAVE_DECL_SNPRINTF.
51842         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51843         * lib/getaddrinfo.c: Likewise.
51844
51845         * modules/stdio: New file.
51846         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51847         * lib/snprintf.h: Remove file.
51848         * lib/vsnprintf.h: Remove file.
51849         * lib/.cppi-disable: Remove snprintf.h.
51850         * m4/stdio_h.m4: New file.
51851         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51852
51853 2007-02-20  Jim Meyering  <jim@meyering.net>
51854
51855         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51856         used by e.g., mingw.  From Bruno Haible.
51857
51858 2007-02-19  Bruno Haible  <bruno@clisp.org>
51859
51860         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51861         warnings.
51862         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51863
51864 2007-02-19  Bruno Haible  <bruno@clisp.org>
51865
51866         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51867         from mingw users.
51868
51869 2007-02-19  Bruno Haible  <bruno@clisp.org>
51870
51871         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51872         warnings.
51873         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51874
51875 2007-02-19  Jim Meyering  <jim@meyering.net>
51876
51877         Don't use FD after a successful "fdopendir (fd)".
51878         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51879         Reset it by calling dirfd on the just-obtained DIR*.
51880
51881         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51882         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51883
51884 2007-02-18  Bruno Haible  <bruno@clisp.org>
51885
51886         * lib/readlink.c: Include <unistd.h>.
51887         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51888         HAVE_READLINK.
51889         * modules/readlink (Depends-on): Add unistd.
51890         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51891         (Include): Add <unistd.h>.
51892
51893         * lib/getlogin_r.h: Remove file.
51894         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51895         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51896         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51897         HAVE_DECL_GETLOGIN_R.
51898         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51900         (Include): Use <unistd.h> instead of getlogin_r.h.
51901
51902         * lib/getcwd.h: Remove file.
51903         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51904         * lib/xgetcwd.c: Likewise.
51905         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51906         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51907         * modules/getcwd (Files): Remove lib/getcwd.h.
51908         (Depends-on): Add unistd.
51909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51910         (Include): Use <unistd.h> instad of getcwd.h.
51911
51912         * lib/ftruncate.c: Include <unistd.h> first.
51913         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51914         Set HAVE_FTRUNCATE.
51915         * modules/ftruncate (Depends-on): Add unistd.
51916         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51917
51918         * lib/fchdir.c: Include <unistd.h> first.
51919         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51920         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51921         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51922         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51923         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51924
51925         * lib/dup2.c: Include <unistd.h> first.
51926         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51927         HAVE_DUP2.
51928         * modules/dup2 (Depends-on): Add unistd.
51929         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51930
51931         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51932         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51933         REPLACE_CHOWN. Don't define chown as a macro here.
51934         * modules/chown (Depends-on): Add unistd.
51935         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51936
51937         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51938         Add definition for GL_LINK_WARNING.
51939         (chown, dup2): New declarations.
51940         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51941         link warning.
51942         (ftruncate): New declaration.
51943         (getcwd): New declaration, taken from old getcwd.h.
51944         (getlogin_r): New declaration, taken from old getlogin_r.h.
51945         (readlink): New declaration.
51946         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51947         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51948         (gl_PREREQ_UNISTD): Remove macro.
51949         (gl_UNISTD_MODULE_INDICATOR): New macro.
51950         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51951         many new variables. Don't set UNISTD_H.
51952         * modules/unistd (Description): Change.
51953         (Depends-on): Add link-warning.
51954         (configure.ac): Update.
51955         (Makefile.am): Create unistd.h always. Substitute many new variables
51956         into it.
51957
51958 2007-02-18  Bruno Haible  <bruno@clisp.org>
51959
51960         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51961         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51962         HAVE_GETSUBOPT.
51963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51964         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51965         * lib/getsubopt.h: Remove file.
51966         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51967         (Depends-on): Add stdlib.
51968         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51969         (Includes): Use <stdlib.h> instead of getsubopt.h.
51970         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51971         Set HAVE_GETSUBOPT.
51972         * lib/getsubopt.c: Don't include getsubopt.h.
51973
51974 2007-02-18  Bruno Haible  <bruno@clisp.org>
51975
51976         * modules/fchdir (Depends-on): Add dup2.
51977
51978 2007-02-18  Bruno Haible  <bruno@clisp.org>
51979
51980         * lib/stdlib_.h: Handle glibc's special invocation convention
51981         specially.
51982
51983 2007-02-18  Bruno Haible  <bruno@clisp.org>
51984
51985         * modules/stdlib-tests: New file.
51986         * tests/test-stdlib.c: New file.
51987
51988         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51989         (Depends-on): Add stdlib.
51990         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51991         (Includes): Use <stdlib.h> instead of mkstemp.h.
51992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51993         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51994         * lib/mkstemp.c: Don't include mkstemp.h.
51995         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51996         * lib/stdlib--.h: Don't include mkstemp.h.
51997
51998         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51999         (Depends-on): Add stdlib.
52000         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52001         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52002         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52003         HAVE_MKDTEMP.
52004         * lib/mkdtemp.c: Don't include mkdtemp.h.
52005         * lib/clean-temp.c: Don't include mkdtemp.h.
52006
52007         * modules/exit (Files): Remove lib/exit.h.
52008         (Depends-on): Add stdlib.
52009         (Makefile.am): Remove lib_SOURCES.
52010         (Include): Use <stdlib.h> instead of exit.h.
52011         * lib/argmatch.c: Don't include exit.h.
52012         * lib/execute.c: Likewise.
52013         * lib/pagealign_alloc.c: Likewise.
52014         * lib/pipe.c: Likewise.
52015         * lib/wait-process.c: Likewise.
52016         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52017         * lib/exitfail.c: Likewise.
52018         * lib/savewd.c: Likewise.
52019         * lib/xsetenv.c: Likewise.
52020
52021         * modules/stdlib: New file.
52022         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52023         and extra comments about mkstemp().
52024         * lib/exit.h: Remove file.
52025         * lib/mkdtemp.h: Remove file.
52026         * lib/mkstemp.h: Remove file.
52027         * m4/stdlib_h.m4: New file.
52028         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52029
52030 2007-02-18  Bruno Haible  <bruno@clisp.org>
52031
52032         * modules/math-tests: New file.
52033         * tests/test-math.c: New file.
52034
52035         * modules/math: New file.
52036         * modules/mathl (Files): Remove lib/mathl.h.
52037         (Depends-on): Add math.
52038         (Makefile.am): Don't mention mathl.h.
52039         (Include): Use <math.h> instead of mathl.h.
52040         * lib/math_.h: New file.
52041         * lib/mathl.h: Remove file.
52042         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52043         mathl.h.
52044         * lib/asinl.c: Likewise.
52045         * lib/atanl.c: Likewise.
52046         * lib/ceill.c: Likewise.
52047         * lib/cosl.c: Likewise.
52048         * lib/expl.c: Likewise.
52049         * lib/floorl.c: Likewise.
52050         * lib/frexpl.c: Likewise.
52051         * lib/ldexpl.c: Likewise.
52052         * lib/logl.c: Likewise.
52053         * lib/sincosl.c: Likewise.
52054         * lib/sinl.c: Likewise.
52055         * lib/sqrtl.c: Likewise.
52056         * lib/tanl.c: Likewise.
52057         * lib/trigl.c: Likewise.
52058         * m4/math_h.m4: New file.
52059         * MODULES.html.sh (Mathematics): Add math.
52060
52061 2007-02-17  Bruno Haible  <bruno@clisp.org>
52062
52063         * modules/wctype-tests: New file.
52064         * tests/test-wctype.c: New file.
52065
52066         * modules/wchar-tests: New file.
52067         * tests/test-wchar.c: New file.
52068
52069         * modules/unistd-tests: New file.
52070         * tests/test-unistd.c: New file.
52071
52072         * modules/time-tests: New file.
52073         * tests/test-time.c: New file.
52074
52075         * modules/sysexits-tests: New file.
52076         * tests/test-sysexits.c: New file.
52077
52078         * modules/sys_time-tests: New file.
52079         * tests/test-sys_time.c: New file.
52080
52081         * modules/sys_stat-tests: New file.
52082         * tests/test-sys_stat.c: New file.
52083
52084         * modules/sys_socket-tests: New file.
52085         * tests/test-sys_socket.c: New file.
52086
52087         * modules/sys_select-tests: New file.
52088         * tests/test-sys_select.c: New file.
52089
52090         * modules/string-tests: New file.
52091         * tests/test-string.c: New file.
52092
52093         * modules/stdbool-tests: New file.
52094         * tests/test-stdbool.c: New file.
52095
52096         * modules/netinet_in-tests: New file.
52097         * tests/test-netinet_in.c: New file.
52098
52099         * modules/inttypes-tests: New file.
52100         * tests/test-inttypes.c: New file.
52101
52102         * modules/fcntl-tests: New file.
52103         * tests/test-fcntl.c: New file.
52104
52105         * modules/byteswap-tests: New file.
52106         * tests/test-byteswap.c: New file.
52107
52108         * modules/arpa_inet-tests: New file.
52109         * tests/test-arpa_inet.c: New file.
52110
52111 2007-02-17  Bruno Haible  <bruno@clisp.org>
52112
52113         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52114         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52115         if the corresponding module is not enabled. Emit link warnings if
52116         the function is used nevertheless.
52117         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52118         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52119         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52120         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52121         * modules/inttypes (Depends-on): Add link-warning.
52122         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52123         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52124         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52125         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52126         * modules/imaxdiv (configure.ac): Likewise.
52127         * modules/strtoimax (configure.ac): Likewise.
52128         * modules/strtoumax (configure.ac): Likewise.
52129
52130 2007-02-17  Bruno Haible  <bruno@clisp.org>
52131
52132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52133         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52134         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52135         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52136
52137 2007-02-17  Bruno Haible  <bruno@clisp.org>
52138
52139         * modules/link-warning: New file.
52140         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52141         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52142         * modules/string (Depends-on): Add link-warning.
52143         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52144         string.h.
52145         * MODULES.html.sh (Support for building libraries and executables): Add
52146         link-warning.
52147
52148 2007-02-17  Bruno Haible  <bruno@clisp.org>
52149
52150         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52151         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52152         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52153         long lines.
52154
52155 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52156             Bruno Haible  <bruno@clisp.org>
52157
52158         * modules/tmpfile: New file.
52159         * lib/tmpfile.c: New file.
52160         * m4/tmpfile.m4: New file.
52161         * MODULES.html.sh (func_all_modules): New section "Input/output".
52162
52163 2007-02-15  Bruno Haible  <bruno@clisp.org>
52164
52165         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52166         (supports_delete_on_close): New function.
52167         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52168
52169 2007-02-14  Bruno Haible  <bruno@clisp.org>
52170
52171         * modules/mbspcasecmp-tests: New file.
52172         * tests/test-mbspcasecmp.sh: New file.
52173         * tests/test-mbspcasecmp.c: New file.
52174
52175         New module mbspcasecmp.
52176         * modules/mbspcasecmp: New file.
52177         * lib/mbspcasecmp.c: New file.
52178         * lib/string_.h (strncasecmp): Change warning message.
52179         (mbspcasecmp): New declaration.
52180         * m4/mbspcasecmp.m4: New file.
52181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52182         GNULIB_MBSPCASECMP.
52183         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52184         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52185
52186 2007-02-14  Bruno Haible  <bruno@clisp.org>
52187
52188         * modules/mbsncasecmp-tests: New file.
52189         * tests/test-mbsncasecmp.sh: New file.
52190         * tests/test-mbsncasecmp.c: New file.
52191
52192         New module mbsncasecmp.
52193         * modules/mbsncasecmp: New file.
52194         * lib/mbsncasecmp.c: New file.
52195         * lib/string_.h (mbsncasecmp): New declaration.
52196         * m4/mbsncasecmp.m4: New file.
52197         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52198         GNULIB_MBSNCASECMP.
52199         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52200         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52201
52202 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52203
52204         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52205         Verify that it doesn't overlap with our flags.
52206         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52207         do not have the desired effect in multibyte locales; instead, use
52208         mbscasecmp.
52209         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52210         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52211         we don't require GNU fnmatch ourselves (if our users require it, they
52212         should do so explicitly).
52213
52214         Fix regex code so it doesn't rely on strcasecmp.
52215         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52216         Otherwise, include gnulib's langinfo.h.
52217         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52218         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52219         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52220         * modules/regex (FILES): Remove m4/codeset.m4.
52221         (Depends-on): Add localcharset.  Remove strcase.
52222
52223 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52224
52225         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52226         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52227
52228 2007-02-13  Bruno Haible  <bruno@clisp.org>
52229
52230         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52231         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52232
52233 2007-02-12  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52236         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52237         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52238         time warning rather than a link error.
52239
52240 2007-02-12  Bruno Haible  <bruno@clisp.org>
52241
52242         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52243         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52244         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52245
52246 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52247
52248         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52249         args, not 2.
52250
52251 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52252
52253         New module 'time', so that apps can include <time.h> as per
52254         POSIX and GNU instead of separate include files like time_r.h
52255         and timegm.h.  This implementation tries out a simpler approach
52256         for replacing decls in standard include files (as compared to
52257         the string module), somewhat as an experiment.
52258
52259         * config/srclist.txt: Comment out mktime.c for now.
52260         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52261         since it doesn't apply any more.  Use generic wording instead.
52262         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52263         'time'.
52264         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52265         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52266         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52267         Don't include <sys/types.h>; no longer needed since we assume C89.
52268         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52269         * lib/strftime.c: Likewise.
52270         * lib/time_r.c: Likewise.
52271         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52272         * lib/nanosleep.c: Include <time.h> first, to check interface.
52273         * lib/strptime.c: Likewise.
52274         * lib/time_r.c: Likewise.
52275         * lib/timegm.c: Likewise.
52276         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52277         needed.
52278         * lib/timegm.c: Don't include timegm.h; no longer needed.
52279         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52280         time.h now handles any problems in that area.
52281         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52282         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52283         that time.h defines struct timespec.
52284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52285         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52286         handles that.
52287         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52288         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52289         needed.  Set REPLACE_LOCALTIME.
52290         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52291         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52292         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52293         nanosleep; time_h.m4 now does that.  Don't require
52294         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52295         module handles this now.
52296         * modules/getdate (Depends-on): Remove timespec.  Add time.
52297         * modules/nanosleep (Depends-on): Likewise.
52298         * modules/stat-time (Depends-on): Likewise.
52299         * modules/nanosleep (Include): Include time.h, not timespec.h.
52300         * modules/strptime (Files): Remove lib/strptime.h.
52301         (Depends-on): Add extensions, time.
52302         (Include): Include time.h, not strptime.h.
52303         * modules/time_r (Files): Remove lib/time_r.h.
52304         (Depends-on): Add time.
52305         (Include): Include time.h, not time_r.h.
52306         * modules/timegm: Likewise.
52307         * modules/timespec (Description): Now does timespec-related decls
52308         of our own, instead of struct timespec itself.
52309         (Depends-on): Add time; remove extensions.
52310         (Maintainer): Add self.
52311         * modules/utimecmp (Depends-on): Add time; remove timespec.
52312         * modules/utimens (Depends-on): Likewise.
52313         * modules/xnanosleep (Depends-on): Likewise.
52314
52315 2007-02-11  Bruno Haible  <bruno@clisp.org>
52316
52317         * lib/c-strstr.c: Include allocsa.h.
52318         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52319         * lib/c-strcasestr.c: Include allocsa.h.
52320         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52321         * lib/strcasestr.c: Include allocsa.h.
52322         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52323         * lib/mbsstr.c: Include allocsa.h.
52324         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52325         allocsa/freesa instead of malloc/free.
52326         * lib/mbscasestr.c: Include allocsa.h.
52327         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52328         allocsa/freesa instead of malloc/free.
52329         * modules/c-strstr (Depends-on): Add allocsa.
52330         * modules/c-strcasestr (Depends-on): Likewise.
52331         * modules/strcasestr (Depends-on): Likewise.
52332         * modules/mbsstr (Depends-on): Likewise.
52333         * modules/mbscasestr (Depends-on): Likewise.
52334
52335 2007-02-11  Bruno Haible  <bruno@clisp.org>
52336
52337         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52338
52339         * modules/mbsspn-tests: New file.
52340         * tests/test-mbsspn.sh: New file.
52341         * tests/test-mbsspn.c: New file.
52342
52343 2007-02-11  Bruno Haible  <bruno@clisp.org>
52344
52345         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
52346
52347         * modules/mbspbrk-tests: New file.
52348         * tests/test-mbspbrk.sh: New file.
52349         * tests/test-mbspbrk.c: New file.
52350
52351 2007-02-11  Bruno Haible  <bruno@clisp.org>
52352
52353         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
52354         unneeded cast.
52355
52356         * modules/mbscspn-tests: New file.
52357         * tests/test-mbscspn.sh: New file.
52358         * tests/test-mbscspn.c: New file.
52359
52360 2007-02-11  Bruno Haible  <bruno@clisp.org>
52361
52362         * modules/mbscasecmp-tests: New file.
52363         * tests/test-mbscasecmp.sh: New file.
52364         * tests/test-mbscasecmp.c: New file.
52365
52366 2007-02-11  Bruno Haible  <bruno@clisp.org>
52367
52368         Ensure O(n) worst-case complexity of mbscasestr.
52369         * lib/mbscasestr.c: Include stdbool.h.
52370         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52371         functions.
52372         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
52373         the bookkeeping indicates that it's worth it.
52374         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
52375
52376         * modules/mbscasestr-tests: New file.
52377         * tests/test-mbscasestr1.c: New file.
52378         * tests/test-mbscasestr2.sh: New file.
52379         * tests/test-mbscasestr2.c: New file.
52380         * tests/test-mbscasestr3.sh: New file.
52381         * tests/test-mbscasestr3.c: New file.
52382         * tests/test-mbscasestr4.sh: New file.
52383         * tests/test-mbscasestr4.c: New file.
52384         * m4/locale-tr.m4: New file.
52385
52386 2007-02-11  Bruno Haible  <bruno@clisp.org>
52387
52388         Ensure O(n) worst-case complexity of mbsstr.
52389         * lib/mbsstr.c: Include stdbool.h.
52390         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52391         functions.
52392         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
52393         bookkeeping indicates that it's worth it.
52394         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
52395
52396         * modules/mbsstr-tests: New file.
52397         * tests/test-mbsstr1.c: New file.
52398         * tests/test-mbsstr2.sh: New file.
52399         * tests/test-mbsstr2.c: New file.
52400         * tests/test-mbsstr3.sh: New file.
52401         * tests/test-mbsstr3.c: New file.
52402         * m4/locale-fr.m4: New file.
52403
52404 2007-02-11  Bruno Haible  <bruno@clisp.org>
52405
52406         * lib/mbsrchr.c (mbsrchr): Fix bug.
52407
52408         * modules/mbsrchr-tests: New file.
52409         * tests/test-mbsrchr.sh: New file.
52410         * tests/test-mbsrchr.c: New file.
52411
52412 2007-02-11  Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/mbschr.c (mbschr): Fix bug.
52415
52416         * modules/mbschr-tests: New file.
52417         * tests/test-mbschr.sh: New file.
52418         * tests/test-mbschr.c: New file.
52419         * m4/locale-zh.m4: New file.
52420
52421 2007-02-11  Bruno Haible  <bruno@clisp.org>
52422
52423         Support for copying multibyte string iterators.
52424         * lib/mbiter.h: Include <string.h>.
52425         (mbiter_multi_copy): New function.
52426         (mbi_copy): New macro.
52427         * lib/mbuiter.h: Include <string.h>.
52428         (mbuiter_multi_copy): New function.
52429         (mbui_copy): New macro.
52430
52431 2007-02-11  Bruno Haible  <bruno@clisp.org>
52432
52433         New module mbslen.
52434         * modules/mbslen: New file.
52435         * lib/mbslen.c: New file.
52436         * lib/string_.h (mbslen): New declaration.
52437         * m4/mbslen.m4: New file.
52438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52439         GNULIB_MBSLEN.
52440         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
52441         * MODULES.html.sh (Internationalization functions): Add mbslen.
52442
52443 2007-02-11  Bruno Haible  <bruno@clisp.org>
52444
52445         Ensure O(n) worst-case complexity of strcasestr substitute.
52446         * lib/strcasestr.c: Include stdbool.h.
52447         (knuth_morris_pratt): New function.
52448         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52449         bookkeeping indicates that it's worth it.
52450         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
52451
52452         * modules/strcasestr-tests: New file.
52453         * tests/test-strcasestr.c: New file.
52454
52455 2007-02-11  Bruno Haible  <bruno@clisp.org>
52456
52457         Ensure O(n) worst-case complexity of c_strcasestr.
52458         * lib/c-strcasestr.c: Include stdbool.h, string.h.
52459         (knuth_morris_pratt): New function.
52460         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
52461         the bookkeeping indicates that it's worth it.
52462         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
52463
52464         * modules/c-strcasestr-tests: New file.
52465         * tests/test-c-strcasestr.c: New file.
52466
52467 2007-02-11  Bruno Haible  <bruno@clisp.org>
52468
52469         Ensure O(n) worst-case complexity of c_strstr.
52470         * lib/c-strstr.c: Include stdbool.h, string.h.
52471         (knuth_morris_pratt): New function.
52472         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52473         bookkeeping indicates that it's worth it.
52474         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
52475
52476         * lib/c-strstr.c: Complete rewrite for maintainability.
52477
52478         * modules/c-strstr-tests: New file.
52479         * tests/test-c-strstr.c: New file.
52480
52481 2007-02-11  Bruno Haible  <bruno@clisp.org>
52482
52483         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
52484         5.2.1 and earlier, whereby \055 was treated just like the range
52485         delimiter '-'.
52486         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52487
52488 2007-02-08  Bruno Haible  <bruno@clisp.org>
52489
52490         * modules/regex (Depends-on): Add stdbool.
52491         Reported by Dalibor Topic <robilad@kaffe.org>.
52492
52493 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52494
52495         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
52496         Prefer returning from main to exiting from it.
52497         Remove unnecessary parens after sizeof.
52498
52499 2007-02-05  Bruno Haible  <bruno@clisp.org>
52500
52501         New module mbssep.
52502         * modules/mbssep: New file.
52503         * lib/mbssep.c: New file.
52504         * lib/string_.h (strsep): Add a conditional link warning.
52505         (mbssep): New declaration.
52506         * m4/mbssep.m4: New file.
52507         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52508         GNULIB_MBSSEP.
52509         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
52510         * MODULES.html.sh (Internationalization functions): Add mbssep.
52511
52512 2007-02-05  Bruno Haible  <bruno@clisp.org>
52513
52514         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
52515         Optimize search in case of 1 delimiter.
52516
52517 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52518
52519         * lib/acl.h: Include sys/types.h before sys/acl.h.
52520
52521 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52522
52523         Merge upstream fix for glibc bugzilla #3957:
52524
52525         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
52526
52527         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
52528         bit for RE_HAT_LISTS_NOT_NEWLINE.
52529         (build_charclass_op): Remove bogus comment.
52530
52531 2007-02-05  Simon Josefsson  <simon@josefsson.org>
52532
52533         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
52534
52535 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52536
52537         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
52538         * lib/memmem.c [!defined _LIBC]: Include config.h.
52539
52540 2007-02-04  Bruno Haible  <bruno@clisp.org>
52541
52542         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
52543         warning message.
52544
52545 2007-02-04  Bruno Haible  <bruno@clisp.org>
52546
52547         New module mbstok_r.
52548         * modules/mbstok_r: New file.
52549         * lib/mbstok_r.c: New file.
52550         * lib/string_.h (strtok_r): Change argument names to match the
52551         comments. Add a conditional link warning.
52552         (mbstok_r): New declaration.
52553         * m4/mbstok_r.m4: New file.
52554         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52555         GNULIB_MBSTOK_R.
52556         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52557         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52558
52559 2007-02-04  Bruno Haible  <bruno@clisp.org>
52560
52561         New module mbsspn.
52562         * modules/mbsspn: New file.
52563         * lib/mbsspn.c: New file.
52564         * lib/string_.h (strspn): Add a conditional link warning.
52565         (mbsspn): New declaration.
52566         * m4/mbsspn.m4: New file.
52567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52568         GNULIB_MBSSPN.
52569         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52570         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52571
52572 2007-02-04  Bruno Haible  <bruno@clisp.org>
52573
52574         New module mbspbrk.
52575         * modules/mbspbrk: New file.
52576         * lib/mbspbrk.c: New file.
52577         * lib/string_.h (strpbrk): Add a conditional link warning.
52578         (mbspbrk): New declaration.
52579         * m4/mbspbrk.m4: New file.
52580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52581         GNULIB_MBSPBRK.
52582         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52583         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52584
52585 2007-02-04  Bruno Haible  <bruno@clisp.org>
52586
52587         New module mbscspn.
52588         * modules/mbscspn: New file.
52589         * lib/mbscspn.c: New file.
52590         * lib/string_.h (strcspn): Add a conditional link warning.
52591         (mbscspn): New declaration.
52592         * m4/mbscspn.m4: New file.
52593         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52594         GNULIB_MBSCSPN.
52595         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52596         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52597
52598 2007-02-04  Bruno Haible  <bruno@clisp.org>
52599
52600         New module mbscasestr, reduced goal of strcasestr.
52601         * modules/mbscasestr: New file.
52602         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52603         (mbscasestr): Renamed from strcasestr.
52604         * lib/strcasestr.c: Don't include mbuiter.h.
52605         (strcasestr): Remove support for multibyte locales.
52606         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52607         Change the conditional link warning.
52608         (mbscasestr): New declaration.
52609         * m4/mbscasestr.m4: New file.
52610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52611         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52612         REPLACE_STRCASESTR.
52613         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52615         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52616         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52617         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52618         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52619         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52620         (Depends-on): Remove mbuiter.
52621         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52622
52623 2007-02-04  Bruno Haible  <bruno@clisp.org>
52624
52625         Simplify handling of strncasecmp.
52626         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52627         the conditional link warning.
52628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52629         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52630         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52631         * modules/strcase (configure.ac): Don't invoke
52632         gl_STRING_MODULE_INDICATOR.
52633         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52634
52635 2007-02-04  Bruno Haible  <bruno@clisp.org>
52636
52637         New module mbscasecmp, reduced goal of strcasecmp.
52638         * modules/mbscasecmp: New file.
52639         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52640         (mbscasecmp): Renamed from strcasecmp.
52641         * lib/strcasecmp.c: Don't include mbuiter.h.
52642         (strcasecmp): Remove support for multibyte locales.
52643         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52644         Change the conditional link warning.
52645         (mbscasecmp): New declaration.
52646         * m4/mbscasecmp.m4: New file.
52647         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52648         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52649         REPLACE_STRCASECMP.
52650         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52652         GNULIB_MBSCASECMP.
52653         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52654         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52655         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52656         (Depends-on): Remove mbuiter.
52657         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52658
52659 2007-02-04  Bruno Haible  <bruno@clisp.org>
52660
52661         New module mbsstr. Remove module strstr.
52662         * modules/mbsstr: New file.
52663         * modules/strstr: Remove file.
52664         * lib/mbsstr.c: Renamed from lib/strstr.c.
52665         (mbsstr): Renamed from strstr.
52666         * lib/string_.h (strstr): Remove declaration. Change the conditional
52667         link warning.
52668         (mbsstr): New declaration.
52669         * m4/mbsstr.m4: New file.
52670         * m4/strstr.m4: Remove file.
52671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52672         REPLACE_STRSTR.
52673         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52674         Don't initialize GNULIB_STRSTR.
52675         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52676         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52677         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52678         (Support for systems lacking ANSI C 89): Remove strstr.
52679
52680 2007-02-04  Bruno Haible  <bruno@clisp.org>
52681
52682         New module mbsrchr.
52683         * modules/mbsrchr: New file.
52684         * lib/mbsrchr.c: New file.
52685         * lib/string_.h (strrchr): Add a conditional link warning.
52686         (mbsrchr): New declaration.
52687         * m4/mbsrchr.m4: New file.
52688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52689         GNULIB_MBSRCHR.
52690         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52691         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52692
52693 2007-02-04  Bruno Haible  <bruno@clisp.org>
52694
52695         New module mbschr.
52696         * modules/mbschr: New file.
52697         * lib/mbschr.c: New file.
52698         * lib/string_.h (strchr): Add a conditional link warning.
52699         (mbschr): New declaration.
52700         * m4/mbschr.m4: New file.
52701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52702         GNULIB_MBSCHR.
52703         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52704         * MODULES.html.sh (Internationalization functions): Add mbschr.
52705
52706 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52707
52708         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52709
52710         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52711
52712 2007-02-04  Bruno Haible  <bruno@clisp.org>
52713
52714         New module description section 'configure.ac-early'.
52715         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52716         (func_get_autoconf_early_snippet): New function.
52717         (func_import, func_create_testdir): Use it. Remove special cases for
52718         modules 'extensions' and 'lock'.
52719         * modules/extensions (configure.ac-early): Require
52720         gl_USE_SYSTEM_EXTENSIONS.
52721         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52722
52723 2007-02-04  Bruno Haible  <bruno@clisp.org>
52724
52725         Make use of gcj-4.3's -fsource and -ftarget option.
52726         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52727         and if so try the options -fsource and -ftarget.
52728         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52729         source_version, ftarget_option, target_version arguments.
52730         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52731         (is_envjavac_oldgcj_14_14_usable): Renamed from
52732         is_envjavac_gcj_14_14_usable.
52733         (is_envjavac_oldgcj_14_13_usable): Renamed from
52734         is_envjavac_gcj_14_13_usable.
52735         (is_gcj_present): Update.
52736         (is_gcj_43, is_gcj43_usable): New functions.
52737         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52738         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52739         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52740         try the options -fsource and -ftarget.
52741
52742 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52743
52744         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52745         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52746         larger value.
52747
52748 2007-02-03  Jim Meyering  <jim@meyering.net>
52749
52750         Give tools a better chance to allocate space for very large buffers.
52751         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52752
52753         Make pwd and readlink work also when run with an unreadable parent dir
52754         on systems with openat support.
52755         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52756         provided getcwd function, even when we have openat support.
52757         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52758
52759 2007-02-02  Bruno Haible  <bruno@clisp.org>
52760
52761         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52762         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52763         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52764         portability problems if one of these functions is only used on specific
52765         platforms.
52766         Reported by Paul Eggert.
52767
52768 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52769
52770         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52771         is causing more trouble than it's curing.
52772         * lib/regex_internal.h (__mempcpy): Remove.
52773         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52774         (and make the code a tad smaller to boot).
52775         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52776
52777 2007-02-02  Jim Meyering  <jim@meyering.net>
52778
52779         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52780         section, not in the Makefile.am: one.
52781
52782 2007-02-02  Eric Blake  <ebb9@byu.net>
52783
52784         * lib/strchrnul.c: Always include config.h first.
52785
52786         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52787         gnulib strstr is not necessary here.
52788
52789 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52790
52791         * m4/socklen.m4: Fix typo.
52792
52793 2007-02-02  Eric Blake  <ebb9@byu.net>
52794
52795         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52796         * modules/netinet_in (Makefile.am): Likewise.
52797
52798 2007-02-01  Bruno Haible  <bruno@clisp.org>
52799
52800         * lib/string_.h (GL_LINK_WARNING): New macro.
52801         (strcasecmp, strstr, strcasestr): If provided by the system,
52802         conditionally define as a macro that leads to a warning instead of to
52803         an error.
52804         (strncasecmp): Conditionally define as a macro that leads to a warning.
52805
52806 2007-02-01  Karl Berry  <karl@gnu.org>
52807
52808         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52809
52810 2007-02-01  Bruno Haible  <bruno@clisp.org>
52811
52812         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52813         renamings.
52814
52815 2007-02-01  Eric Blake  <ebb9@byu.net>
52816
52817         * modules/regex (Depends-on): Revert dependence on mempcpy.
52818         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52819         module's definition of mempcpy.
52820         Reported by Paul Eggert.
52821
52822 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52823
52824         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52825         the symbol XYZ before redefining it.  This fixes a problem with
52826         programs that don't use XYZ, when compiled on systems that define
52827         XYZ to something else.
52828
52829 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52830
52831         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52832         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52833         writeable to group or other and (2) is intended to have a special
52834         mode bit that is set or cleared.  In such a case, the directory
52835         should be neither group- nor other-writeable until the special
52836         mode bits are right.
52837
52838 2007-01-31  Eric Blake  <ebb9@byu.net>
52839
52840         * modules/mountlist (Depends-on): Add strstr.
52841
52842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52843         bug.
52844         * modules/string (Makefile.am): Remove redundant replacement.
52845         * modules/regex (Depends-on): Add mempcpy.
52846
52847 2007-01-31  Bruno Haible  <bruno@clisp.org>
52848
52849         New module description field 'Link'.
52850         * gnulib-tool (func_usage): Document --extract-link-directive.
52851         (sed_extract_prog): Recognize 'Link' directive.
52852         (func_get_link_directive): New function.
52853         (func_import): Show summary of link directives.
52854         Handle --extract-link-directive option.
52855         * modules/acl (Link): New section.
52856         * modules/clock-time (Link): New section.
52857         * modules/euidaccess (Link): New section.
52858         * modules/gettext (Link): New section.
52859         * modules/iconv (Link): New section.
52860         * modules/lock (Link): New section.
52861         * modules/nanosleep (Link): New section.
52862         * modules/readline (Link): New section.
52863
52864 2007-01-27  Bruno Haible  <bruno@clisp.org>
52865
52866         Enforce the use of gnulib modules for unportable <string.h> functions.
52867         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52868         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52869         (gl_HEADER_STRING_H_BODY): Require it.
52870         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52871         the symbol XYZ to one that gives a link error.
52872         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52873         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52874         * modules/mempcpy (configure.ac): Likewise.
52875         * modules/memrchr (configure.ac): Likewise.
52876         * modules/stpcpy (configure.ac): Likewise.
52877         * modules/stpncpy (configure.ac): Likewise.
52878         * modules/strcase (configure.ac): Likewise.
52879         * modules/strcasestr (configure.ac): Likewise.
52880         * modules/strchrnul (configure.ac): Likewise.
52881         * modules/strdup (configure.ac): Likewise.
52882         * modules/strndup (configure.ac): Likewise.
52883         * modules/strnlen (configure.ac): Likewise.
52884         * modules/strpbrk (configure.ac): Likewise.
52885         * modules/strsep (configure.ac): Likewise.
52886         * modules/strstr (configure.ac): Likewise.
52887         * modules/strtok_r (configure.ac): Likewise.
52888
52889 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52890
52891         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52892
52893 2007-01-30  Jim Meyering  <jim@meyering.net>
52894
52895         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52896
52897 2007-01-29  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52900         * lib/execute.c: Likewise.
52901         * lib/pipe.c: Likewise.
52902         * lib/printf-args.h: Likewise.
52903         * lib/printf-args.c: Likewise.
52904         * lib/printf-parse.c: Likewise.
52905         * lib/vasnprintf.c: Likewise.
52906
52907 2007-01-29  Eric Blake  <ebb9@byu.net>
52908
52909         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52910         declaration.
52911
52912 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52913
52914         * lib/strptime.h (strptime): Use 'restrict' for args where
52915         POSIX requires this.
52916         * lib/strptime.c (strptime): Likewise.
52917         Change license notice from LGPL to GPL, since gnulib-tool will
52918         change this as needed.
52919         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52920         defined.
52921         Include "strptime.h" first, to check interface.
52922         Do not #undef _LIBC and _NL_CURRENT.
52923         Do not include <stdlib.h>; no longer needed.
52924         Include "time_r.h" and declare ptime_locale_status
52925         only if _LIBC is not defined.
52926         (__P): Remove unused macro.
52927         (match_string): Bring back glibc version, but use it only if _LIBC
52928         is defined.
52929         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52930         Remove unnecessary assertion and abort() call.
52931         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52932         * m4/strptime.m4: Fix serial number comment.
52933         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52934         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52935         (Depends-on): Add time_r.
52936
52937 2007-01-29  Bruno Haible  <bruno@clisp.org>
52938
52939         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52940         strptime.
52941         * modules/strptime (Depends-on): Add stdbool.
52942         * lib/strptime.h: Include <time.h> always. Add comments.
52943
52944 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52945
52946         * modules/strptime: New file.
52947         * lib/strptime.h: New file.
52948         * lib/strptime.c: New file.
52949         * m4/strptime.m4: New file.
52950
52951 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52952
52953         * MODULES.html.sh: New module mpsort.
52954         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52955
52956         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52957         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52958         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52959         All uses changed.
52960         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52961         All uses changed.
52962         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52963         to _Restrict_.
52964         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52965         the parameter matches the prototype.
52966
52967 2007-01-28  Jim Meyering  <jim@meyering.net>
52968
52969         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52970         sys/time.h here, reverting that part of the previous patch:
52971         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52972
52973 2007-01-28  Bruno Haible  <bruno@clisp.org>
52974
52975         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52976         value of $(SYS_TIME_H).
52977         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52978         remove it conditionally, too. [added by Jim Meyering]
52979         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52980         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52981         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52982         GETTIMEOFDAY_REPLACEMENT to 1.
52983
52984 2007-01-28  Bruno Haible  <bruno@clisp.org>
52985
52986         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52987         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52989         Set UNISTD_H instead of UNISTD_H2.
52990         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52991
52992 2007-01-28  Bruno Haible  <bruno@clisp.org>
52993
52994         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52995         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52996
52997 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52998
52999         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53000         (func_create_testdir): Ensure C locale for `grep' and `tr'
53001         character ranges.
53002         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53003         ACLOCAL_AMFLAGS parsing state machine.
53004
53005 2007-01-27  Bruno Haible  <bruno@clisp.org>
53006
53007         * modules/unistr/base: Update.
53008
53009 2007-01-27  Bruno Haible  <bruno@clisp.org>
53010
53011         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53012         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53013         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53014         modules/unistr/u32-mbtouc.
53015         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53016         * lib/unistr.h: Update.
53017         * lib/linebreak.c: Update.
53018         * modules/unistr/u32-mbtouc: Renamed from
53019         modules/unistr/u32-mbtouc-safe.
53020         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53021         * lib/unistr.h: Update.
53022         * lib/unistr/u32-to-u8.c: Update.
53023         * lib/unistr/u32-to-u16.c: Update.
53024
53025 2007-01-27  Bruno Haible  <bruno@clisp.org>
53026
53027         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53028         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53029         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53030         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53031         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53032         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53033         modules/unistr/u16-mbtouc.
53034         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53035         * lib/unistr.h: Update.
53036         * lib/linebreak.c: Update.
53037         * modules/linebreak: Update.
53038         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53039         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53040         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53041         * modules/unistr/u16-mbtouc: Renamed from
53042         modules/unistr/u16-mbtouc-safe.
53043         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53044         * lib/unistr.h: Update.
53045         * lib/unistr/u16-to-u8.c: Update.
53046         * modules/unistr/u16-to-u8: Update.
53047         * lib/unistr/u16-to-u32.c: Update.
53048         * modules/unistr/u16-to-u32: Update.
53049
53050 2007-01-27  Bruno Haible  <bruno@clisp.org>
53051
53052         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53053         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53054         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53055         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53056         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53057         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53058         modules/unistr/u8-mbtouc.
53059         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53060         * lib/unistr.h: Update.
53061         * lib/striconveh.c: Update.
53062         * modules/striconveh: Update.
53063         * lib/linebreak.c: Update.
53064         * modules/linebreak: Update.
53065         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53066         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53067         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53068         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53069         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53070         * lib/unistr.h: Update.
53071         * lib/striconveh.c: Update.
53072         * modules/striconveh: Update.
53073         * lib/unistr/u8-to-u16.c: Update.
53074         * modules/unistr/u8-to-u16: Update.
53075         * lib/unistr/u8-to-u32.c: Update.
53076         * modules/unistr/u8-to-u32: Update.
53077
53078 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53079
53080         Sync from Libtool.
53081         * lib/argz.c: Do not include strings.h nor memory.h, include
53082         string.h unconditionally.  Patch by Simon Josefsson.
53083
53084 2007-01-27  Bruno Haible  <bruno@clisp.org>
53085
53086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53087         from gl_HEADER_STRING_H_BODY.
53088         (gl_HEADER_STRING_H_BODY): Require it.
53089         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53090         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53091         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53092         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53094         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53096         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53097         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53098         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53099         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53100         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53101         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53102         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53103         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53104
53105 2007-01-27  Bruno Haible  <bruno@clisp.org>
53106
53107         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53108         check_PROGRAMS into noinst_PROGRAMS.
53109         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53110         check_PROGRAMS in this case.
53111         (func_import): Set for_test to false.
53112         (func_create_testdir): Set for_test to true.
53113
53114 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53115             Bruno Haible  <bruno@clisp.org>
53116
53117         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53118         (Depends-on): Add string.
53119         (Includes): Use <string.h> instead of strcasestr.h.
53120         * modules/string (Makefile.am): Also substitute the value of
53121         REPLACE_STRCASESTR.
53122         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53123         assume strcasestr is declared in <string.h> not <strings.h>. Also
53124         set REPLACE_STRCASESTR.
53125         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53126         REPLACE_STRCASESTR.
53127         * lib/strcasestr.h: Remove file.
53128         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53129         * lib/string_.h (strcasestr): New declaration.
53130
53131 2007-01-27  Bruno Haible  <bruno@clisp.org>
53132
53133         * lib/string_.h: Use 'extern'.
53134
53135 2007-01-27  Jim Meyering  <jim@meyering.net>
53136
53137         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53138         of set-but-not-used local, "q".
53139
53140         * lib/mempcpy.c: Include <config.h> before <string.h>.
53141         This fixes a compilation error on HP-UX, due to the system's
53142         "restrict"-using mempcpy prototype.
53143
53144 2007-01-26  Bruno Haible  <bruno@clisp.org>
53145
53146         Small optimization.
53147         * lib/javacomp.c: Include c-strstr.h.
53148          (is_envjavac_gcj): Use c_strstr instead of strstr.
53149         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53150
53151 2007-01-26  Bruno Haible  <bruno@clisp.org>
53152
53153         * MODULES.html.sh (Unicode string functions): Add the new modules.
53154
53155         * modules/uniconv/u32-strconv-to-locale: New file.
53156         * lib/uniconv/u32-strconv-to-locale.c: New file.
53157
53158         * modules/uniconv/u16-strconv-to-locale: New file.
53159         * lib/uniconv/u16-strconv-to-locale.c: New file.
53160
53161         * modules/uniconv/u8-strconv-to-locale: New file.
53162         * lib/uniconv/u8-strconv-to-locale.c: New file.
53163
53164         * modules/uniconv/u32-strconv-from-locale: New file.
53165         * lib/uniconv/u32-strconv-from-locale.c: New file.
53166
53167         * modules/uniconv/u16-strconv-from-locale: New file.
53168         * lib/uniconv/u16-strconv-from-locale.c: New file.
53169
53170         * modules/uniconv/u8-strconv-from-locale: New file.
53171         * lib/uniconv/u8-strconv-from-locale.c: New file.
53172
53173         * modules/uniconv/u32-strconv-to-enc: New file.
53174         * lib/uniconv/u32-strconv-to-enc.c: New file.
53175         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53176         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53177
53178         * modules/uniconv/u16-strconv-to-enc: New file.
53179         * lib/uniconv/u16-strconv-to-enc.c: New file.
53180         * lib/uniconv/u-strconv-to-enc.h: New file.
53181         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53182         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53183
53184         * modules/uniconv/u8-strconv-to-enc: New file.
53185         * lib/uniconv/u8-strconv-to-enc.c: New file.
53186         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53187         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53188
53189         * modules/uniconv/u32-strconv-from-enc: New file.
53190         * lib/uniconv/u32-strconv-from-enc.c: New file.
53191         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53192         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53193
53194         * modules/uniconv/u16-strconv-from-enc: New file.
53195         * lib/uniconv/u16-strconv-from-enc.c: New file.
53196         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53197         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53198
53199         * modules/uniconv/u8-strconv-from-enc: New file.
53200         * lib/uniconv/u8-strconv-from-enc.c: New file.
53201         * lib/uniconv/u-strconv-from-enc.h: New file.
53202         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53203         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53204
53205         * modules/uniconv/u32-conv-from-enc: New file.
53206         * lib/uniconv/u32-conv-from-enc.c: New file.
53207         * modules/uniconv/u32-conv-from-enc-tests: New file.
53208         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53209
53210         * modules/uniconv/u16-conv-from-enc: New file.
53211         * lib/uniconv/u16-conv-from-enc.c: New file.
53212         * lib/uniconv/u-conv-from-enc.h: New file.
53213         * modules/uniconv/u16-conv-from-enc-tests: New file.
53214         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53215
53216         * modules/uniconv/u8-conv-from-enc: New file.
53217         * lib/uniconv/u8-conv-from-enc.c: New file.
53218         * modules/uniconv/u8-conv-from-enc-tests: New file.
53219         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53220
53221         * modules/uniconv/base: New file.
53222         * lib/uniconv.h: New file.
53223
53224 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53225
53226         * doc/gnulib-tool.texi (Initial import): Update to match current
53227         behavior with strdup module.
53228         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53229         * lib/memmem.h: Remove; all uses removed.  This is now done
53230         by <string.h>.
53231         * lib/mempcpy.h: Likewise.
53232         * lib/memrchr.h: Likewise.
53233         * lib/stpcpy.h: Likewise.
53234         * lib/stpncpy.h: Likewise.
53235         * lib/strcase.h: Likewise.
53236         * lib/strchrnul.h: Likewise.
53237         * lib/strdup.h: Likewise.
53238         * lib/strndup.h: Likewise.
53239         * lib/strnlen.h: Likewise.
53240         * lib/strpbrk.h: Likewise.
53241         * lib/strsep.h: Likewise.
53242         * lib/strstr.h: Likewise.
53243         * lib/strtok_r.h: Likewise.
53244         * lib/string_.h: New file.
53245         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53246         Rely on <string.h> instead.
53247         * lib/canon-host.c: Likewise.
53248         * lib/chdir-long.c: Likewise.
53249         * lib/concatpath.c: Likewise.
53250         * lib/exclude.c: Likewise.
53251         * lib/fchdir.c: Likewise.
53252         * lib/getaddrinfo.c: Likewise.
53253         * lib/getcwd.c: Likewise.
53254         * lib/getsubopt.c: Likewise.
53255         * lib/glob.c: Likewise.
53256         * lib/hard-locale.c: Likewise.
53257         * lib/iconvme.c: Likewise.
53258         * lib/javacomp.c: Likewise.
53259         * lib/mempcpy.c: Likewise.
53260         * lib/memrchr.c: Likewise.
53261         * lib/regex_internal.h: Likewise.
53262         * lib/stpncpy.c: Likewise.
53263         * lib/strcasecmp.c: Likewise.
53264         * lib/strchrnul.c: Likewise.
53265         * lib/strdup.c: Likewise.
53266         * lib/striconv.c: Likewise.
53267         * lib/striconveh.c: Likewise.
53268         * lib/striconveha.c: Likewise.
53269         * lib/strncasecmp.c: Likewise.
53270         * lib/strndup.c: Likewise.
53271         * lib/strnlen.c: Likewise.
53272         * lib/strsep.c: Likewise.
53273         * lib/strstr.c: Likewise.
53274         * lib/strtok_r.c: Likewise.
53275         * lib/userspec.c: Likewise.
53276         * lib/w32spawn.h: Likewise.
53277         * lib/xstrndup.c: Likewise.
53278         * lib/mountlist.c (strstr): Remove decl.
53279         * m4/string_h.m4: New file.
53280         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53281         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53282         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53283         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53284         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53285         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53286         Set REPLACE_STRCASECMP if necessary.
53287         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53288         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53289         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53290         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53291         HAVE_DECL_STRDUP if necessary.
53292         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53293         since gl_FUNC_STRNDUP does that now.
53294         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53295         Check for decl here...
53296         (gl_PREREQ_STRNLEN): ... not here.
53297         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53298         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53299         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53300         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53301         necessary.
53302         * modules/string: New file.
53303         * modules/memmem (Files): Remove special-purpose include file.
53304         (Depends-on): Add string.
53305         (Include): Include <string.h>, not the removed file.
53306         * modules/mempcpy: Likewise.
53307         * modules/memrchr: Likewise.
53308         * modules/stpcpy: Likewise.
53309         * modules/stpncpy: Likewise.
53310         * modules/strcase: Likewise.
53311         * modules/strchrnul: Likewise.
53312         * modules/strdup: Likewise.
53313         * modules/strndup: Likewise.
53314         * modules/strnlen: Likewise.
53315         * modules/strpbrk: Likewise.
53316         * modules/strsep: Likewise.
53317         * modules/strstr: Likewise.
53318         * modules/strtok_r: Likewise.
53319         * tests/test-dirname.c: Don't include "strdup.h", since
53320         <string.h> now suffices.
53321         * tests/test-memmem.c: Don't include "memmem.h", since
53322         <string.h> now suffices.
53323
53324 2007-01-25  Bruno Haible  <bruno@clisp.org>
53325
53326         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53327         *resultp is 0.
53328
53329         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53330         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53331         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53332         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53333
53334         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53335         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53336         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53337         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53338         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53339         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53340
53341 2007-01-24  Bruno Haible  <bruno@clisp.org>
53342
53343         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
53344         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
53345         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
53346         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
53347         gl_FUNC_FTS_CORE.
53348         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
53349         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
53350         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53351         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
53352         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
53353         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
53354         gl_FUNC_FCHOWNAT.
53355         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
53356         gl_FUNC_STRFTIME.
53357         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
53358         Reported by Ralf Wildenhues.
53359
53360 2007-01-24  Bruno Haible  <bruno@clisp.org>
53361
53362         Drop AC_REQUIRE calls that are redundant with the module dependencies.
53363         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
53364         gl_GETADDRINFO.
53365         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
53366         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
53367         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
53368
53369 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
53370
53371         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
53372         Don't use 'exit'; just return from 'main'.
53373         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
53374
53375         * lib/fnmatch_.h: Readjust white space and comments to match
53376         glibc, to avoid spurious diffs.
53377
53378 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53379
53380         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
53381         2004-12-01 change by Jakub Jelinek, since this code won't compile
53382         if !LIBC.  Problem reported by Bob Proulx.
53383
53384 2007-01-23  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/striconveh.c: Include c-strcaseeq.h.
53387         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
53388         * modules/striconveh (Depends-on): Add c-strcaseeq.
53389
53390 2007-01-23  Bruno Haible  <bruno@clisp.org>
53391
53392         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
53393
53394         * modules/c-strcaseeq: New file.
53395         * lib/c-strcaseeq.h: New file.
53396
53397         * modules/streq: New file.
53398         * lib/streq.h: New file.
53399
53400 2007-01-23  Bruno Haible  <bruno@clisp.org>
53401
53402         * modules/striconveha-tests: New file.
53403         * tests/test-striconveha.c: New file.
53404
53405         * lib/striconveha.h: Include <stdbool.h>.
53406         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
53407         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
53408         (mem_iconveha_notranslit): Renamed from mem_iconveha.
53409         (mem_iconveha): New function.
53410         (str_iconveha_notranslit): Renamed from str_iconveha.
53411         (str_iconveha): New function.
53412         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
53413         c-strcase.
53414
53415 2007-01-23  Bruno Haible  <bruno@clisp.org>
53416
53417         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
53418         encodings without forgiving before trying any encoding with handler.
53419         (str_iconveha): Try all encodings without forgiving before trying any
53420         encoding with handler.
53421
53422 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53423
53424         Import the following changes from libc.
53425
53426         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53427
53428         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
53429
53430         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53431
53432         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
53433         normal_bracket label.
53434
53435         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
53436
53437         [BZ #361]
53438         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
53439         to normal_bracket after fetching the next character.
53440
53441 2007-01-22  Bruno Haible  <bruno@clisp.org>
53442
53443         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
53444         argument.
53445         * lib/striconveh.c (iconv_carefully_1): New function.
53446         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
53447         argument.
53448         (str_cd_iconveh): Update.
53449         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
53450         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
53451         * tests/test-striconveh.c (MAGIC): New macro.
53452         (new_offsets): New function.
53453         (main): Test call with and without offsets.
53454
53455 2007-01-22  Bruno Haible  <bruno@clisp.org>
53456
53457         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
53458         * modules/sys_select (Makefile.am): Likewise.
53459         * modules/sys_socket (Makefile.am): Likewise.
53460         * modules/sys_time (Makefile.am): Likewise.
53461
53462 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53463
53464         * modules/gettimeofday (License): Change from GPL to LGPL, since
53465         gettimeofday is a library function.
53466
53467 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53468
53469         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
53470
53471 2007-01-21  Bruno Haible  <bruno@clisp.org>
53472
53473         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
53474
53475 2007-01-21  Bruno Haible  <bruno@clisp.org>
53476
53477         * modules/striconveha: New file.
53478         * lib/striconveha.h: New file.
53479         * lib/striconveha.c: New file.
53480         * MODULES.html.sh (Internationalization functions): Add striconveha.
53481         * lib/striconv.c (str_iconv): Optimize the case of an empty input
53482         string.
53483         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
53484
53485 2007-01-21  Bruno Haible  <bruno@clisp.org>
53486
53487         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
53488         * lib/striconveh.c (str_iconveh): Likewise.
53489
53490 2007-01-21  Bruno Haible  <bruno@clisp.org>
53491
53492         * lib/striconveh.h (mem_iconveh): New declaration.
53493         * lib/striconveh.c (mem_iconveh): New function.
53494         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
53495
53496 2007-01-21  Bruno Haible  <bruno@clisp.org>
53497
53498         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
53499
53500         * lib/striconveh.h (mem_cd_iconveh): Change specification.
53501         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
53502         original result buffer.
53503         (str_cd_iconveh): Update.
53504         * tests/test-striconveh.c (main): Update.
53505
53506         * lib/striconv.h (mem_cd_iconv): Change specification.
53507         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
53508         result buffer.
53509         (str_cd_iconv): Update.
53510         * tests/test-striconv.c (main): Update.
53511
53512 2007-01-21  Bruno Haible  <bruno@clisp.org>
53513
53514         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
53515
53516 2007-01-20  Jim Meyering  <jim@meyering.net>
53517
53518         * lib/userspec.c (parse_with_separator): If a user or group string
53519         starts with "+", skip the corresponding name-to-ID look-up, since
53520         such a look-up must fail: user and group names may not include "+".
53521
53522 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53523
53524         * lib/poll.c: Include sys/time.h and time.h unconditionally,
53525         since we now assume the sys_time module.
53526         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
53527         check for sys/time.h; no longer needed.
53528         * modules/poll (Depends-on): Depend on sys_time.
53529
53530 2007-01-18  Bruno Haible  <bruno@clisp.org>
53531
53532         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
53533         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53534
53535         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
53536         gettimeofday.
53537
53538         * tests/test-gettimeofday.c: Include <time.h>.
53539         (dummy): Remove variable.
53540
53541         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
53542         gl_HEADER_SYS_TIME_H.
53543         (gl_HEADER_SYS_TIME_H): New macro.
53544
53545         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
53546         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53547         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53548         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
53549         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53550         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
53551         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
53552         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53553         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53554         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53555         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53556
53557         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53558         last change; it caused a compilation error when cross-compiling to
53559         Cygwin.
53560
53561 2007-01-18  Jim Meyering  <jim@meyering.net>
53562
53563         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53564         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53565         than the race-prone "test -d sys || mkdir sys".
53566         (configure.ac): Use AC_PROG_MKDIR_P.
53567         * modules/sys_select: Likewise.
53568         * modules/sys_socket: Likewise.
53569         * modules/sys_time: Likewise.
53570
53571 2007-01-18  Eric Blake  <ebb9@byu.net>
53572
53573         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53574         replace gettimeofday.
53575         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53576         name, to avoid infinite recursion.
53577
53578 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53579
53580         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53581         module sys_time.
53582         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53583         assume timespec.h defines struct timeval.
53584         * lib/settime.c: Likewise.
53585         * lib/utimens.c: Likewise.
53586         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53587         since we now assume the gettimeofday module.
53588         * lib/tempname.c (__gen_tempname): Likewise.
53589         * lib/gettimeofday.h: Remove.
53590         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53591         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53592         Include <time.h>, for 'time()'.
53593         (localtime_buffer_addr): Also use this workaround if
53594         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53595         to simplify the uses.  All uses changed.
53596         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53597         that #undef is inside {}, and 'const' follows type name consistently.
53598         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53599         (gettimeofday): Do not use the maximum possible value for
53600         tv->tv_usec, since that might break usages other than ls.c.
53601         Instead, we'll leave ls.c alone.  This undoes today's patch
53602         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53603         we've never observed the problem but might as well keep the
53604         canary.
53605         * lib/nanosleep.c: Include timespec.h first, for interface check.
53606         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53607         now assume the sys_time module.
53608         * lib/tempname.c: Likewise.
53609         * lib/timespec.h: Likewise.
53610         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53611         needed.
53612         * lib/strftime.c: Likewise.
53613         * lib/timespec.h: Likewise.
53614         * lib/posixtm.c: Include posixtm.h first, for interface check.
53615         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53616         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53617         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53618         * lib/sys_time_.h: New file.
53619         * lib/timespec.h (struct timespec): Use long int, not long.
53620         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53621         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53622         Remove obsolescent call to AC_HEADER_TIME.
53623         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53625         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53626         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53627         Likewise.
53628         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53629         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53630         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53631         into the sys_time module.  Check for gettimeofday just once.
53632         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53633         for gettimeofday signature to just check the signature.  Merely
53634         compile it, since linking doesn't test signature.  Improve test for
53635         whether gettimeofday.o is actually needed.
53636         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53637         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53638         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53639         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53640         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53641         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53642         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53643         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53644         than worrying about sys/time.h.
53645         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53646         Don't bother worrying about TIME_WITH_SYS_TIME.
53647         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53648         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53649         * m4/sys_time_h.m4: New file.
53650         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53651         Don't include sys/time.h.  Return from main rather than exiting.
53652         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53653         all uses changed.
53654         * modules/gethrxtime (Depends-on): Add sys_time.
53655         * modules/gettime (Depends-on): Likewise.
53656         * modules/gettimeofday (Depends-on): Likewise.
53657         * modules/nanosleep (Depends-on): Likewise.
53658         * modules/settime (Depends-on): Likewise.
53659         * modules/tempname (Depends-on): Likewise.
53660         * modules/utimens (Depends-on): Likewise.
53661         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53662         (Include:) Change back to <sys/time.h>.
53663         (Maintainer:) Add self.
53664         * modules/sys_time: New file.
53665         * modules/tempname (Depends-on): Add gettimeofday.
53666         * tests/test-gettimeofday.c: Include <sys/time.h>
53667         rather than gettimeofday.h.
53668
53669 2007-01-17  Bruno Haible  <bruno@clisp.org>
53670
53671         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53672         the license default to GPL.
53673         (func_create_testdir): Don't complain if a module is LGPL and its
53674         tests module depends on GPLed modules.
53675
53676 2007-01-17  Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/gettimeofday.c (gettimeofday): Add code for the case
53679         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53680         maximum possible value for tv->tv_usec, rather than the minimum one.
53681
53682 2005-10-08  Martin Lambers  <marlam@marlam.de>
53683 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53684 2007-01-16  Bruno Haible  <bruno@clisp.org>
53685
53686         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53687         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53688         gl_FUNC_GETTIMEOFDAY.
53689         (Include): Add gettimeofday.h.
53690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53691         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53692         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53693         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53694         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53695         * lib/gettimeofday.h: New file.
53696         * lib/gettimeofday.c: Include <sys/timeb.h>.
53697         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53698         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53699         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53700         fall back on time().
53701
53702         * tests/test-gettimeofday.c: New file.
53703         * modules/gettimeofday-tests: New file.
53704
53705 2007-01-16  Eric Blake  <ebb9@byu.net>
53706
53707         * modules/fnmatch (Depends-on): Depend on wchar.
53708         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53709         * m4/fnmatch.m4: Likewise.
53710         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53711         * m4/mbchar.m4: Likewise.
53712         * modules/mbswidth (Depends-on): Depend on wchar.
53713         * lib/mbswidth.c: Assume <wchar.h>.
53714         * m4/mbswidth.m4: Likewise.
53715         * modules/quotearg (Depends-on): Depend on wchar.
53716         * lib/quotearg.c: Assume <wchar.h>.
53717         * m4/quotearg.m4: Likewise.
53718         * modules/regex (Depends-on): Depend on wchar.
53719         * lib/regex_internal.h: Assume <wchar.h>.
53720         * m4/regex.m4: Likewise.
53721         * modules/stdint (Depends-on): Depend on wchar.
53722         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53723         * m4/stdint.m4: Likewise.
53724         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53725         * modules/strftime (Depends-on): Depend on wchar.
53726         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53727         * modules/strtol (Depends-on): Depend on wchar.
53728         * lib/strtol.c: Assume <wchar.h>.
53729         * modules/wcwidth (Depends-on): Depend on wchar.
53730         * lib/wcwidth.h: Assume <wchar.h>.
53731         * m4/wcwidth.m4: Likewise.
53732
53733 2007-01-16  Bruno Haible  <bruno@clisp.org>
53734
53735         * modules/csharpexec-script: New, created from...
53736         * modules/csharpexec: ... this.
53737
53738 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53739
53740         * modules/javaexec-script: New, created from...
53741         * modules/javaexec: ... this.
53742
53743 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53744
53745         * modules/poll (Dependencies): Add sys_select.
53746
53747 2007-01-15  Jim Meyering  <jim@meyering.net>
53748
53749         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53750         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53751         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53752         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53753
53754 2007-01-15  Bruno Haible  <bruno@clisp.org>
53755
53756         * modules/striconveh: New file.
53757         * lib/striconveh.h: New file.
53758         * lib/striconveh.c: New file.
53759         * MODULES.html.sh (Internationalization functions): Add striconveh.
53760
53761         * modules/striconveh-tests: New file.
53762         * tests/test-striconveh.c: New file.
53763
53764 2007-01-15  Bruno Haible  <bruno@clisp.org>
53765
53766         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53767         not from GNU libiconv or GNU libc.
53768
53769 2007-01-15  Bruno Haible  <bruno@clisp.org>
53770
53771         * doc/gnulib-intro.texi (Copyright): Explain the different license
53772         terms for module descriptions, autoconf macros, tests, documentation.
53773
53774 2007-01-14  Bruno Haible  <bruno@clisp.org>
53775
53776         * modules/striconv-tests: New file.
53777         * tests/test-striconv.c: New file.
53778
53779 2007-01-14  Bruno Haible  <bruno@clisp.org>
53780
53781         * modules/iconv-tests: New file.
53782         * tests/test-iconv.c: New file.
53783
53784 2007-01-14  Bruno Haible  <bruno@clisp.org>
53785
53786         * gnulib-tool (func_get_license): For test modules, use the license of
53787         the main module.
53788
53789 2007-01-14  Bruno Haible  <bruno@clisp.org>
53790
53791         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53792         if iconv is found to exist.
53793
53794 2007-01-14  Bruno Haible  <bruno@clisp.org>
53795
53796         * modules/c-ctype-tests: New file.
53797         * tests/test-c-ctype.c: New file.
53798
53799 2007-01-14  Bruno Haible  <bruno@clisp.org>
53800
53801         * modules/binary-io-tests: New file.
53802         * tests/test-binary-io.sh: New file.
53803         * tests/test-binary-io.c: New file.
53804
53805 2007-01-14  Bruno Haible  <bruno@clisp.org>
53806
53807         * modules/array-oset-tests: New file.
53808         * tests/test-array_oset.c: New file.
53809
53810 2007-01-14  Bruno Haible  <bruno@clisp.org>
53811
53812         * modules/array-list-tests: New file.
53813         * tests/test-array_list.c: New file.
53814
53815 2007-01-14  Bruno Haible  <bruno@clisp.org>
53816
53817         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53818         and make.
53819         Reported by Simon Josefsson in
53820         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53821
53822 2007-01-14  Bruno Haible  <bruno@clisp.org>
53823
53824         * modules/allocsa-tests: New file.
53825         * tests/test-allocsa.c: New file.
53826
53827 2007-01-14  Bruno Haible  <bruno@clisp.org>
53828
53829         * modules/fchdir (Depends-on): Add absolute-header.
53830         * modules/unistd (Depends-on): Likewise.
53831
53832 2006-12-30  Bruno Haible  <bruno@clisp.org>
53833
53834         * modules/fchdir: New file.
53835         * modules/unistd (Files): Add lib/unistd_.h.
53836         (Makefile.am): Generate unistd.h from unistd_.h.
53837         * lib/fchdir.c: New file.
53838         * lib/dirent_.h: New file.
53839         * lib/unistd_.h: New file.
53840         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53841         * m4/fchdir.m4: New file.
53842         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53843         (gl_HEADER_UNISTD): Invoke it.
53844         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53845         function.
53846         * lib/backupfile.c (opendir, closedir): Undefine.
53847         * lib/chown.c (open, close): Undefine.
53848         * lib/clean-temp.c (open, close): Undefine.
53849         * lib/copy-file.c (open, close): Undefine.
53850         * lib/execute.c (open, close): Undefine.
53851         * lib/fsusage.c (open, close): Undefine.
53852         * lib/gc-gnulib.c (open, close): Undefine.
53853         * lib/getcwd.c (opendir, closedir): Undefine.
53854         * lib/glob.c (opendir, closedir): Undefine.
53855         * lib/javacomp.c (open, close): Undefine.
53856         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53857         * lib/openat-proc.c (open, close): Undefine.
53858         * lib/pagealign_alloc.c (open, close): Undefine.
53859         * lib/pipe.c (open, close): Undefine.
53860         * lib/progreloc.c (open, close): Undefine.
53861         * lib/savedir.c (opendir, closedir): Undefine.
53862         * lib/utime.c (open, close): Undefine.
53863         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53864
53865 2007-01-10  Bruno Haible  <bruno@clisp.org>
53866
53867         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53868
53869 2007-01-12  Eric Blake  <ebb9@byu.net>
53870
53871         Provide a robust <wchar.h>.  Further simplifications are now
53872         possible in other modules, but not included here.
53873         * modules/wchar: New module.
53874         * m4/wchar.m4: New file.
53875         * lib/wchar_.h: Likewise.
53876         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53877         of the new module.
53878         * MODULES.html.sh (Extended multibyte and wide character utilities):
53879         New section.
53880
53881 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53882
53883         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53884         to a reasonable default for memory allocation.
53885         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53886         file system that reports garbage st_size values for symlinks.
53887         Problem reported by Liyang Hu.
53888
53889 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53890
53891         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53892         Emacs .#* auto-save files).
53893
53894 2007-01-11  Bruno Haible  <bruno@clisp.org>
53895
53896         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53897         directory.
53898
53899 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53900
53901         Use @...@ consistently in lib/wctype_.h.
53902         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53903         on it being set to 1 or 0.
53904         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53905         go back to AC_SUBSTing it.
53906         * modules/wctype (Makefile.am): Undo previous change.
53907
53908 2007-01-10  Eric Blake  <ebb9@byu.net>
53909
53910         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53911         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53912         * modules/wctype (Makefile.am): Likewise.
53913         Reported by Chris McGuire.
53914
53915 2007-01-10  Jim Meyering  <jim@meyering.net>
53916
53917         fts.c: a small readability/maintainability improvement
53918         * lib/fts.c (fts_read): Make this code slightly more readable and
53919         maintainable by hoisting the "sp->fts_cur = p" assignments to
53920         immediately follow the statements that set P.  Derived from
53921         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53922
53923 2007-01-10  Eric Blake  <ebb9@byu.net>
53924
53925         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53926         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53928         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53929         Reported by Chris McGuire.
53930
53931 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53932
53933         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53934         in sed script.
53935
53936 2007-01-09  Bruno Haible  <bruno@clisp.org>
53937
53938         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53939         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53940         variables.
53941         (func_module): Use them.
53942
53943 2007-01-09  Bruno Haible  <bruno@clisp.org>
53944
53945         * modules/unistr/base: New file.
53946         * lib/unistr.h: New file.
53947
53948         * modules/unistr/u8-to-u16: New file.
53949         * lib/unistr/u8-to-u16.c: New file.
53950
53951         * modules/unistr/u8-to-u32: New file.
53952         * lib/unistr/u8-to-u32.c: New file.
53953
53954         * modules/unistr/u16-to-u8: New file.
53955         * lib/unistr/u16-to-u8.c: New file.
53956
53957         * modules/unistr/u16-to-u32: New file.
53958         * lib/unistr/u16-to-u32.c: New file.
53959
53960         * modules/unistr/u32-to-u8: New file.
53961         * lib/unistr/u32-to-u8.c: New file.
53962
53963         * modules/unistr/u32-to-u16: New file.
53964         * lib/unistr/u32-to-u16.c: New file.
53965
53966         * modules/unistr/u8-check: New file.
53967         * modules/unistr/u16-check: New file.
53968         * modules/unistr/u32-check: New file.
53969         * lib/unistr/u8-check.c: New file.
53970         * lib/unistr/u16-check.c: New file.
53971         * lib/unistr/u32-check.c: New file.
53972
53973         * modules/unistr/u8-chr: New file.
53974         * modules/unistr/u16-chr: New file.
53975         * modules/unistr/u32-chr: New file.
53976         * lib/unistr/u8-chr.c: New file.
53977         * lib/unistr/u16-chr.c: New file.
53978         * lib/unistr/u32-chr.c: New file.
53979
53980         * modules/unistr/u8-cmp: New file.
53981         * modules/unistr/u16-cmp: New file.
53982         * modules/unistr/u32-cmp: New file.
53983         * lib/unistr/u8-cmp.c: New file.
53984         * lib/unistr/u16-cmp.c: New file.
53985         * lib/unistr/u32-cmp.c: New file.
53986
53987         * modules/unistr/u8-cpy: New file.
53988         * modules/unistr/u16-cpy: New file.
53989         * modules/unistr/u32-cpy: New file.
53990         * lib/unistr/u8-cpy.c: New file.
53991         * lib/unistr/u16-cpy.c: New file.
53992         * lib/unistr/u32-cpy.c: New file.
53993         * lib/unistr/u-cpy.h: New file.
53994
53995         * modules/unistr/u8-cpy-alloc: New file.
53996         * modules/unistr/u16-cpy-alloc: New file.
53997         * modules/unistr/u32-cpy-alloc: New file.
53998         * lib/unistr/u8-cpy-alloc.c: New file.
53999         * lib/unistr/u16-cpy-alloc.c: New file.
54000         * lib/unistr/u32-cpy-alloc.c: New file.
54001         * lib/unistr/u-cpy-alloc.h: New file.
54002
54003         * modules/unistr/u8-endswith: New file.
54004         * modules/unistr/u16-endswith: New file.
54005         * modules/unistr/u32-endswith: New file.
54006         * lib/unistr/u8-endswith.c: New file.
54007         * lib/unistr/u16-endswith.c: New file.
54008         * lib/unistr/u32-endswith.c: New file.
54009         * lib/unistr/u-endswith.h: New file.
54010
54011         * modules/unistr/u8-mblen: New file.
54012         * modules/unistr/u16-mblen: New file.
54013         * modules/unistr/u32-mblen: New file.
54014         * lib/unistr/u8-mblen.c: New file.
54015         * lib/unistr/u16-mblen.c: New file.
54016         * lib/unistr/u32-mblen.c: New file.
54017
54018         * modules/unistr/u8-mbtouc: New file.
54019         * modules/unistr/u16-mbtouc: New file.
54020         * modules/unistr/u32-mbtouc: New file.
54021         * lib/unistr/u8-mbtouc.c: New file.
54022         * lib/unistr/u16-mbtouc.c: New file.
54023         * lib/unistr/u32-mbtouc.c: New file.
54024
54025         * modules/unistr/u8-mbtouc-safe: New file.
54026         * modules/unistr/u16-mbtouc-safe: New file.
54027         * modules/unistr/u32-mbtouc-safe: New file.
54028         * lib/unistr/u8-mbtouc-safe.c: New file.
54029         * lib/unistr/u16-mbtouc-safe.c: New file.
54030         * lib/unistr/u32-mbtouc-safe.c: New file.
54031
54032         * modules/unistr/u8-move: New file.
54033         * modules/unistr/u16-move: New file.
54034         * modules/unistr/u32-move: New file.
54035         * lib/unistr/u8-move.c: New file.
54036         * lib/unistr/u16-move.c: New file.
54037         * lib/unistr/u32-move.c: New file.
54038         * lib/unistr/u-move.h: New file.
54039
54040         * modules/unistr/u8-next: New file.
54041         * modules/unistr/u16-next: New file.
54042         * modules/unistr/u32-next: New file.
54043         * lib/unistr/u8-next.c: New file.
54044         * lib/unistr/u16-next.c: New file.
54045         * lib/unistr/u32-next.c: New file.
54046
54047         * modules/unistr/u8-prev: New file.
54048         * modules/unistr/u16-prev: New file.
54049         * modules/unistr/u32-prev: New file.
54050         * lib/unistr/u8-prev.c: New file.
54051         * lib/unistr/u16-prev.c: New file.
54052         * lib/unistr/u32-prev.c: New file.
54053
54054         * modules/unistr/u8-set: New file.
54055         * modules/unistr/u16-set: New file.
54056         * modules/unistr/u32-set: New file.
54057         * lib/unistr/u8-set.c: New file.
54058         * lib/unistr/u16-set.c: New file.
54059         * lib/unistr/u32-set.c: New file.
54060         * lib/unistr/u-set.h: New file.
54061
54062         * modules/unistr/u8-startswith: New file.
54063         * modules/unistr/u16-startswith: New file.
54064         * modules/unistr/u32-startswith: New file.
54065         * lib/unistr/u8-startswith.c: New file.
54066         * lib/unistr/u16-startswith.c: New file.
54067         * lib/unistr/u32-startswith.c: New file.
54068         * lib/unistr/u-startswith.h: New file.
54069
54070         * modules/unistr/u8-stpcpy: New file.
54071         * modules/unistr/u16-stpcpy: New file.
54072         * modules/unistr/u32-stpcpy: New file.
54073         * lib/unistr/u8-stpcpy.c: New file.
54074         * lib/unistr/u16-stpcpy.c: New file.
54075         * lib/unistr/u32-stpcpy.c: New file.
54076         * lib/unistr/u-stpcpy.h: New file.
54077
54078         * modules/unistr/u8-stpncpy: New file.
54079         * modules/unistr/u16-stpncpy: New file.
54080         * modules/unistr/u32-stpncpy: New file.
54081         * lib/unistr/u8-stpncpy.c: New file.
54082         * lib/unistr/u16-stpncpy.c: New file.
54083         * lib/unistr/u32-stpncpy.c: New file.
54084         * lib/unistr/u-stpncpy.h: New file.
54085
54086         * modules/unistr/u8-strcat: New file.
54087         * modules/unistr/u16-strcat: New file.
54088         * modules/unistr/u32-strcat: New file.
54089         * lib/unistr/u8-strcat.c: New file.
54090         * lib/unistr/u16-strcat.c: New file.
54091         * lib/unistr/u32-strcat.c: New file.
54092         * lib/unistr/u-strcat.h: New file.
54093
54094         * modules/unistr/u8-strchr: New file.
54095         * modules/unistr/u16-strchr: New file.
54096         * modules/unistr/u32-strchr: New file.
54097         * lib/unistr/u8-strchr.c: New file.
54098         * lib/unistr/u16-strchr.c: New file.
54099         * lib/unistr/u32-strchr.c: New file.
54100
54101         * modules/unistr/u8-strcmp: New file.
54102         * modules/unistr/u16-strcmp: New file.
54103         * modules/unistr/u32-strcmp: New file.
54104         * lib/unistr/u8-strcmp.c: New file.
54105         * lib/unistr/u16-strcmp.c: New file.
54106         * lib/unistr/u32-strcmp.c: New file.
54107
54108         * modules/unistr/u8-strcpy: New file.
54109         * modules/unistr/u16-strcpy: New file.
54110         * modules/unistr/u32-strcpy: New file.
54111         * lib/unistr/u8-strcpy.c: New file.
54112         * lib/unistr/u16-strcpy.c: New file.
54113         * lib/unistr/u32-strcpy.c: New file.
54114         * lib/unistr/u-strcpy.h: New file.
54115
54116         * modules/unistr/u8-strcspn: New file.
54117         * modules/unistr/u16-strcspn: New file.
54118         * modules/unistr/u32-strcspn: New file.
54119         * lib/unistr/u8-strcspn.c: New file.
54120         * lib/unistr/u16-strcspn.c: New file.
54121         * lib/unistr/u32-strcspn.c: New file.
54122         * lib/unistr/u-strcspn.h: New file.
54123
54124         * modules/unistr/u8-strdup: New file.
54125         * modules/unistr/u16-strdup: New file.
54126         * modules/unistr/u32-strdup: New file.
54127         * lib/unistr/u8-strdup.c: New file.
54128         * lib/unistr/u16-strdup.c: New file.
54129         * lib/unistr/u32-strdup.c: New file.
54130         * lib/unistr/u-strdup.h: New file.
54131
54132         * modules/unistr/u8-strlen: New file.
54133         * modules/unistr/u16-strlen: New file.
54134         * modules/unistr/u32-strlen: New file.
54135         * lib/unistr/u8-strlen.c: New file.
54136         * lib/unistr/u16-strlen.c: New file.
54137         * lib/unistr/u32-strlen.c: New file.
54138         * lib/unistr/u-strlen.h: New file.
54139
54140         * modules/unistr/u8-strmblen: New file.
54141         * modules/unistr/u16-strmblen: New file.
54142         * modules/unistr/u32-strmblen: New file.
54143         * lib/unistr/u8-strmblen.c: New file.
54144         * lib/unistr/u16-strmblen.c: New file.
54145         * lib/unistr/u32-strmblen.c: New file.
54146
54147         * modules/unistr/u8-strmbtouc: New file.
54148         * modules/unistr/u16-strmbtouc: New file.
54149         * modules/unistr/u32-strmbtouc: New file.
54150         * lib/unistr/u8-strmbtouc.c: New file.
54151         * lib/unistr/u16-strmbtouc.c: New file.
54152         * lib/unistr/u32-strmbtouc.c: New file.
54153
54154         * modules/unistr/u8-strncat: New file.
54155         * modules/unistr/u16-strncat: New file.
54156         * modules/unistr/u32-strncat: New file.
54157         * lib/unistr/u8-strncat.c: New file.
54158         * lib/unistr/u16-strncat.c: New file.
54159         * lib/unistr/u32-strncat.c: New file.
54160         * lib/unistr/u-strncat.h: New file.
54161
54162         * modules/unistr/u8-strncmp: New file.
54163         * modules/unistr/u16-strncmp: New file.
54164         * modules/unistr/u32-strncmp: New file.
54165         * lib/unistr/u8-strncmp.c: New file.
54166         * lib/unistr/u16-strncmp.c: New file.
54167         * lib/unistr/u32-strncmp.c: New file.
54168
54169         * modules/unistr/u8-strncpy: New file.
54170         * modules/unistr/u16-strncpy: New file.
54171         * modules/unistr/u32-strncpy: New file.
54172         * lib/unistr/u8-strncpy.c: New file.
54173         * lib/unistr/u16-strncpy.c: New file.
54174         * lib/unistr/u32-strncpy.c: New file.
54175         * lib/unistr/u-strncpy.h: New file.
54176
54177         * modules/unistr/u8-strnlen: New file.
54178         * modules/unistr/u16-strnlen: New file.
54179         * modules/unistr/u32-strnlen: New file.
54180         * lib/unistr/u8-strnlen.c: New file.
54181         * lib/unistr/u16-strnlen.c: New file.
54182         * lib/unistr/u32-strnlen.c: New file.
54183         * lib/unistr/u-strnlen.h: New file.
54184
54185         * modules/unistr/u8-strpbrk: New file.
54186         * modules/unistr/u16-strpbrk: New file.
54187         * modules/unistr/u32-strpbrk: New file.
54188         * lib/unistr/u8-strpbrk.c: New file.
54189         * lib/unistr/u16-strpbrk.c: New file.
54190         * lib/unistr/u32-strpbrk.c: New file.
54191         * lib/unistr/u-strpbrk.h: New file.
54192
54193         * modules/unistr/u8-strrchr: New file.
54194         * modules/unistr/u16-strrchr: New file.
54195         * modules/unistr/u32-strrchr: New file.
54196         * lib/unistr/u8-strrchr.c: New file.
54197         * lib/unistr/u16-strrchr.c: New file.
54198         * lib/unistr/u32-strrchr.c: New file.
54199
54200         * modules/unistr/u8-strspn: New file.
54201         * modules/unistr/u16-strspn: New file.
54202         * modules/unistr/u32-strspn: New file.
54203         * lib/unistr/u8-strspn.c: New file.
54204         * lib/unistr/u16-strspn.c: New file.
54205         * lib/unistr/u32-strspn.c: New file.
54206         * lib/unistr/u-strspn.h: New file.
54207
54208         * modules/unistr/u8-strstr: New file.
54209         * modules/unistr/u16-strstr: New file.
54210         * modules/unistr/u32-strstr: New file.
54211         * lib/unistr/u8-strstr.c: New file.
54212         * lib/unistr/u16-strstr.c: New file.
54213         * lib/unistr/u32-strstr.c: New file.
54214         * lib/unistr/u-strstr.h: New file.
54215
54216         * modules/unistr/u8-strtok: New file.
54217         * modules/unistr/u16-strtok: New file.
54218         * modules/unistr/u32-strtok: New file.
54219         * lib/unistr/u8-strtok.c: New file.
54220         * lib/unistr/u16-strtok.c: New file.
54221         * lib/unistr/u32-strtok.c: New file.
54222         * lib/unistr/u-strtok.h: New file.
54223
54224         * modules/unistr/u8-uctomb: New file.
54225         * modules/unistr/u16-uctomb: New file.
54226         * modules/unistr/u32-uctomb: New file.
54227         * lib/unistr/u8-uctomb.c: New file.
54228         * lib/unistr/u16-uctomb.c: New file.
54229         * lib/unistr/u32-uctomb.c: New file.
54230
54231         * MODULES.html.sh (Unicode string functions): Add the new modules.
54232
54233 2007-01-08  Bruno Haible  <bruno@clisp.org>
54234
54235         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54236         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54237         subdirectories.
54238
54239 2007-01-08  Karl Berry  <karl@gnu.org>
54240
54241         * doc/error.texi: mention that main() fns must set program_name
54242         when progname is used.
54243
54244 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54245
54246         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54247         WCTYPE_H is empty, for the benefit of builds from non-distclean
54248         directories.  Problem reported by Eric Blake in
54249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54250
54251 2007-01-08  Bruno Haible  <bruno@clisp.org>
54252
54253         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54254         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54255         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54256         PROVIDE_CANONICALIZE_FILENAME_MODE.
54257         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54258
54259 2007-01-08  Bruno Haible  <bruno@clisp.org>
54260
54261         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54262         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54263         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54264         * lib/fts.c: Likewise.
54265         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54266
54267 2006-12-25  Bruno Haible  <bruno@clisp.org>
54268
54269         * modules/utf8-ucs4-safe: New file.
54270         * lib/utf8-ucs4-safe.h: New file.
54271         * lib/unistr/utf8-ucs4-safe.c: New file.
54272
54273         * modules/utf16-ucs4-safe: New file.
54274         * lib/utf16-ucs4-safe.h: New file.
54275         * lib/unistr/utf16-ucs4-safe.c: New file.
54276
54277         * MODULES.html.sh (Unicode string functions): Add the new modules.
54278
54279 2007-01-08  Bruno Haible  <bruno@clisp.org>
54280
54281         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54282         (Depends-on): Add unitypes.
54283         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54284         (u8_mbtouc_aux): Move out to separate file.
54285         (u8_mbtouc): Use ucs4_t, uint8_t types.
54286         * lib/unistr/utf8-ucs4.c: New file.
54287
54288         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54289         (Depends-on): Add unitypes.
54290         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54291         (u16_mbtouc_aux): Move out to separate file.
54292         (u16_mbtouc): Use ucs4_t, uint16_t types.
54293         * lib/unistr/utf16-ucs4.c: New file.
54294
54295         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54296         (Depends-on): Add unitypes.
54297         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54298         (u8_uctomb_aux): Move out to separate file.
54299         (u8_uctomb): Use ucs4_t, uint8_t types.
54300         * lib/unistr/ucs4-utf8.c: New file.
54301
54302         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54303         (Depends-on): Add unitypes.
54304         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54305         (u16_uctomb_aux): Move out to separate file.
54306         (u16_uctomb): Use ucs4_t, uint16_t types.
54307         * lib/unistr/ucs4-utf16.c: New file.
54308
54309 2006-12-25  Bruno Haible  <bruno@clisp.org>
54310
54311         * modules/unitypes: New file.
54312         * lib/unitypes.h: New file.
54313         * MODULES.html.sh (func_all_modules): New section "Unicode string
54314         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54315         this section. Add unitypes.
54316
54317 2007-01-08  Bruno Haible  <bruno@clisp.org>
54318
54319         Avoid variable names that conflict with those from libtool.
54320         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54321         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54322         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54323         library_names_spec to acl_library_names_spec, hardcode_* to
54324         acl_hardcode_*.
54325         Reported by Ralf Wildenhues.
54326
54327 2007-01-08  Bruno Haible  <bruno@clisp.org>
54328
54329         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54330         definition.
54331         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54332         definition.
54333         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54334         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54335         definition.
54336         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54337         definition.
54338         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54339         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54340         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
54341         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
54342         definition.
54343         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
54344         definition.
54345         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
54346         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
54347         GC_USE_<algorithm>.
54348         * lib/gc-libgcrypt.c: Likewise.
54349         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
54350         * modules/gc-arctwo (configure.ac): Likewise.
54351         * modules/gc-des (configure.ac): Likewise.
54352         * modules/gc-hmac-md5 (configure.ac): Likewise.
54353         * modules/gc-hmac-sha1 (configure.ac): Likewise.
54354         * modules/gc-md2 (configure.ac): Likewise.
54355         * modules/gc-md4 (configure.ac): Likewise.
54356         * modules/gc-md5 (configure.ac): Likewise.
54357         * modules/gc-random (configure.ac): Likewise.
54358         * modules/gc-rijndael (configure.ac): Likewise.
54359         * modules/gc-sha1 (configure.ac): Likewise.
54360
54361 2007-01-08  Bruno Haible  <bruno@clisp.org>
54362
54363         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
54364         macro definition.
54365         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
54366         definition.
54367         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
54368         definition.
54369         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
54370         * modules/fcntl-safer (configure.ac): Likewise.
54371         * modules/fopen-safer (configure.ac): Likewise.
54372         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
54373         GNULIB_FWRITEERROR macro definition.
54374
54375 2007-01-08  Bruno Haible  <bruno@clisp.org>
54376
54377         * m4/gnulib-common.m4: New file.
54378         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
54379         (func_get_filelist): Add m4/gnulib-common.m4.
54380
54381 2007-01-08  Bruno Haible  <bruno@clisp.org>
54382
54383         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
54384         command.
54385
54386 2007-01-08  Jim Meyering  <jim@meyering.net>
54387
54388         Use a more robust test for a "can't happen" condition.
54389         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
54390         narrowed the st_size value.  Presuming the "can't happen" condition
54391         is true, that narrowing could conceivably convert an invalid st_size
54392         value into a valid one.  Instead, use a change based on Matthew
54393         Woehlke's original patch.
54394
54395         Slight readability improvement: use an assert-like macro
54396         in place of literal "abort ()" uses.
54397         * lib/fts.c (fts_assert): Define.
54398         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
54399         Use this macro instead of a bare 'abort'.
54400
54401 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
54402
54403         Don't worry about using IRIX 5.3's wctype.h broken definitions;
54404         simply work around them.
54405         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
54406         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
54407         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
54408         declaring.
54409         Don't bother to define as macros, since the standard doesn't require it.
54410         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
54411         longer worry about IRIX 5.3.
54412         (HAVE_WCTYPE_CTMP_BUG): Remove.
54413
54414 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54415
54416         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
54417         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
54418         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54419         Problems reported by Georg Schwarz for IRIX 5.3.
54420
54421         * gnulib-tool (autoconf_minversion): Take the maximum version number
54422         found, not the minimum.  Problem reported by James Youngman.
54423
54424 2007-01-03  Karl Berry  <karl@gnu.org>
54425
54426         * doc/error.texi: new file, explaining interaction with progname.
54427         * doc/gnulib.texi: include it.  Update copyright.
54428
54429 2007-01-03  Simon Josefsson  <simon@josefsson.org>
54430
54431         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
54432         AC_CANONICAL_HOST, to improve autobuild outputs.
54433
54434 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
54435             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54436
54437         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
54438         sockets, server sockets, and other file descriptors.  Count errors
54439         to compute the return value.  Reorder the code a bit to be easier
54440         to follow.  Don't set event bits that were not requested (except
54441         POLLERR and POLLHUP).
54442
54443 2007-01-01  Bruno Haible  <bruno@clisp.org>
54444
54445         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
54446
54447 2007-01-03  Jim Meyering  <jim@meyering.net>
54448
54449         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
54450
54451 2007-01-02  Bruno Haible  <bruno@clisp.org>
54452
54453         * modules/settime (Include): Require timespec.h.
54454         * modules/nanosleep (Include): Likewise.
54455
54456 2007-01-01  Bruno Haible  <bruno@clisp.org>
54457
54458         * gnulib-tool (func_emit_copyright_notice): Bump year.
54459         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
54460
54461 2007-01-01  Bruno Haible  <bruno@clisp.org>
54462
54463         Improve support for OpenBSD.
54464         * build-aux/config.rpath (libname_spec): Export.
54465         (library_names_spec): New variable. Export.
54466         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
54467         library_names_spec from the config.rpath output. Locate shared library
54468         through the name pattern in library_names_spec.
54469
54470 2007-01-01  Eric Blake  <ebb9@byu.net>
54471
54472         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
54473
54474 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
54475
54476         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
54477         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
54478         assume the C locale, and avoid an "eval" that could cause trouble.
54479         Problem with SORT reported by Bob Proulx.
54480
54481         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
54482         Define.  Trivial patch from Henning Nielsen Lund, originally
54483         sent to bug-grep@gnu.org today.
54484
54485 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54486
54487         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
54488         struct stat.  Problem reported by Henning Nielsen Lund.
54489         * lib/acl.c: Include acl.h first, to check interface.  Don't
54490         bother to include sys/types.h and sys/stat.h again.
54491
54492 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54493
54494         Import the following change from libc; problem reported by
54495         Sven Verdoolaege.
54496
54497         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
54498
54499         [BZ #1373]
54500         * lib/argp.h: Remove __NTH for __argp_usage inline function.
54501
54502 2006-12-28  Jim Meyering  <jim@meyering.net>
54503
54504         * build-aux/announce-gen: Do not assume that the package
54505         builds any of tar.gz, tar.bz2, and .xdelta files.
54506         Suggestion from Simon Josefsson.
54507
54508 2006-12-28  Simon Josefsson  <simon@josefsson.org>
54509
54510         * modules/announce-gen: New file.
54511
54512 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
54513
54514         * lib/mbchar.h: Just include <wctype.h>; the wctype module
54515         handles its gotchas now.
54516         * lib/mbswidth.c: Likewise.
54517         * lib/wcwidth.h: Likewise.
54518         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
54519         and iswcntrl; the wctype module does this stuff now.
54520         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54521         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54522         * modules/mbchar (Depends-on): Add wctype.
54523         * modules/mbswidth (Depends-on): Likewise.
54524         * modules/wcwidth (Depends-on): Likewise.
54525
54526 2006-12-27  Eric Blake  <ebb9@byu.net>
54527
54528         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
54529         module uses more than what <wctype.h> is required to provide.
54530
54531 2006-12-26  Eric Blake  <ebb9@byu.net>
54532
54533         * gnulib-tool (sed_extract_prog): Avoid space-tab.
54534
54535 2006-12-26  Eric Blake  <ebb9@byu.net>
54536
54537         * modules/absolute-header: New module.
54538         * modules/fcntl (Depends-on): Depend on it.
54539         * modules/inttypes (Depends-on): Likewise.
54540         * modules/stdint (Depends-on): Likewise.
54541         * modules/sys_stat (Depends-on): Likewise.
54542         * modules/wctype (Depends-on): Likewise.
54543         * MODULES.html.sh (Support for building libraries and
54544         executables): Document it.
54545
54546 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54547
54548         * gnulib-tool (SED): Remove, undoing previous change.
54549         The problem was that it broke coreutils on Solaris, because
54550         "sed --posix" leaked into a makefile.
54551         (sed): New alias, if 'alias' and GNU sed.
54552
54553 2006-12-24  Jim Meyering  <jim@meyering.net>
54554
54555         Work around an fchownat bug in glibc-2.4:
54556         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54557         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54558         in spite of the -P option.
54559         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54560         New macros.
54561         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54562         * modules/openat (Files): Add lib/fchownat.c.
54563         * lib/openat.c (fchownat): Don't define here.  Move to...
54564         * lib/fchownat.c: ...this new file.
54565
54566 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54567
54568         Fix bug reported by Bruno Haible in
54569         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54570         where quotearg.c didn't compile on Mac OS X 10.2 because it
54571         lacks <wchar.h> and wint_t.
54572         * lib/wctype_.h (__wctype_wint_t): New type.
54573         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54574         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54575         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54576         Arg is now of type __wctype_wint_t, not wint_t.
54577         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54578         substitute HAVE_WINT_T.
54579         * modules/wctype (Files): Add m4/wint_t.m4.
54580         (wctype.h): Substitute HAVE_WINT_T.
54581
54582 2006-12-23  Bruno Haible  <bruno@clisp.org>
54583
54584         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54585
54586 2006-12-23  Bruno Haible  <bruno@clisp.org>
54587
54588         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54589         S_ISLNK.
54590         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54591         mingw.
54592
54593 2006-12-22  Bruno Haible  <bruno@clisp.org>
54594
54595         * lib/copy-file.c: Include acl.h.
54596         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54597         Close the file descriptors only after being done with copy_acl.
54598         * modules/copy-file (Depends-on): Add acl.
54599
54600 2006-12-22  Bruno Haible  <bruno@clisp.org>
54601
54602         * gnulib-tool (SED): New variable.
54603         Use $SED instead of sed everywhere.
54604
54605 2006-12-22  Bruno Haible  <bruno@clisp.org>
54606
54607         * modules/no-c++: New file.
54608         * m4/no-c++.m4: New file.
54609         * MODULES.html.sh (Support for building libraries and executables):
54610         Add no-c++.
54611
54612 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54613
54614         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54615         Include <limits.h>, and use its INT_MAX to rewrite the
54616         j loop so that it does not overflow 'int'.  Problem reported by
54617         Ralf Wildenhues in
54618         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54619         Play it safe by shifting left by 1 rather than multiplying by 2,
54620         as GCC is less likely to optimize this away when the value
54621         is signed (when it assumes overflow leads to undefined behavior).
54622         Also, don't assume time_t uses two's complement.
54623
54624 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54625
54626         * MODULES.html.sh: New module wctype.
54627         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54628         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54629         <wctype.h>, since the new wctype module should fix this.
54630         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54631         the wctype module should arrange for it.
54632         * lib/regex_internal.h: Likewise.
54633         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54634         since the wctype module should handle this now.
54635         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54636         * modules/fnmatch (Depends-on): Add wctype.
54637         * modules/quotearg (Depends-on): Likewise.
54638         * modules/regex (Depends-on): Likewise.
54639
54640 2006-12-19  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54643         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54644
54645 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54646
54647         * modules/savewd (Depends-on): Fix dependency on fcntl.
54648
54649 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54650
54651         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54652         conforms to C99, rather than relying on the user's environment
54653         setting of STDINT_H.
54654
54655 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54656         and Eric Blake  <ebb9@byu.net>
54657
54658         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54659         This is more consistent with the other defines here.
54660         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54661         Port to z/OS.  Problem reported by Paul Gilmartin.
54662         Change local vars to use gl_ prefix rather than ac_.
54663         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54664         with other defines.
54665         * modules/double-slash-root: New module.
54666         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54667         (Depends-on): Add double-slash-root.
54668         * MODULES.html.sh (File system functions): Mention new module.
54669
54670 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54671
54672         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54673         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54674         This is for the benefit of gzip, which doesn't do i18n.
54675
54676 2006-12-12  Jim Meyering  <jim@meyering.net>
54677
54678         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54679         Reported by Andreas Schwab <schwab@suse.de>.
54680
54681 2006-12-12  Bruno Haible  <bruno@clisp.org>
54682
54683         Merge these changes.
54684         2006-09-05  Bruno Haible  <bruno@clisp.org>
54685         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54686         iconv_alloc succeeded.
54687         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54688         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54689         test for " && dest " at the end - dest is always != NULL there. Call
54690         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54691         with 2xNULL arguments, also to flush the state storage. Handle the
54692         IRIX iconv behaviour. Realloc the final result, to throw away unused
54693         memory.
54694
54695 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54696
54697         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54698         and fchmodat unconditionally, since glibc 2.4 has them.
54699         Problem reported by Arkadiusz Miskiewicz.
54700
54701 2006-12-10  Bruno Haible  <bruno@clisp.org>
54702
54703         * gnulib-tool (func_import): Show the include files only for those
54704         modules that are copied and specified.
54705         Reported by Karl Berry.
54706
54707 2006-12-08  Jim Meyering  <jim@meyering.net>
54708
54709         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54710         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54711
54712         * build-aux/announce-gen: Add two new options, both optional:
54713         --bootstrap-tools=TOOL_LIST
54714               a comma-separated list of tools, e.g.,
54715               autoconf,automake,bison,gnulib
54716         --gnulib-snapshot-date=DATE
54717               if gnulib is in the bootstrap tool list,
54718               then report this as the snapshot date.
54719               If not specified, use the current date/time.
54720               If you specify a date here, be sure it's UTC.
54721
54722 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54723
54724         * tests/test-argp-2.sh: Fix test to match actual output.
54725         (func_compare): Fix sed script to be portable.
54726
54727 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54728
54729         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54730         workaround for this case.  It is not autoconfigured now; offhand
54731         it's hard to see how to autoconfigure it.
54732
54733 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54734
54735         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54736         a directory that is about to be chowned.  Such a directory's
54737         initial file permissions should permit the owner only and this
54738         should not be changed until after the chown, since the group and
54739         other bits would be incorrect if they granted permission before
54740         the chown.
54741
54742         Fix porting problem for iswctype reported by Georg Schwarz in:
54743         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54744         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54745         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54746         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54747         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54748
54749 2006-12-03  Jim Meyering  <jim@meyering.net>
54750
54751         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54752         p->fts_statp may not yet be defined.
54753         (fts_read): Instead, set it in the caller, once p->fts_statp is
54754         sure to be defined, and corresponds to a top-level directory.
54755         This bug made du -x fail.  Here's the coreutils test case:
54756         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54757         Reported by Mike Frysinger.
54758
54759 2006-12-01  Jim Meyering  <jim@meyering.net>
54760
54761         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54762         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54763         Reported by Simon Josefsson.
54764
54765 2006-11-30  Jim Meyering  <jim@meyering.net>
54766
54767         * m4/warning.m4: Use the all-permissive copyright notice
54768         recommended by RMS (rather than LGPL).
54769         * m4/vararrays.m4: Likewise.
54770         * m4/flexmember.m4: Likewise.
54771
54772 2006-11-29  Bruno Haible  <bruno@clisp.org>
54773
54774         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54775         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54776         using +=.
54777         Reported by Simon Josefsson <simon@josefsson.org>.
54778
54779 2006-11-28  James Youngman <jay@gnu.org>
54780
54781         * README: Advise users that they might find the bug-gnulib@gnu.org
54782         and autotools-announce@gnu.org mailing lists useful.
54783
54784 2006-11-28  Bruno Haible  <bruno@clisp.org>
54785
54786         * m4/ptrdiff_max.m4: Remove file.
54787
54788 2006-11-21  Bruno Haible  <bruno@clisp.org>
54789
54790         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54791         _AC_COMPUTE_INT.
54792         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54793         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54794         _AC_COMPUTE_INT.
54795         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54796         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54797         _AC_COMPUTE_INT.
54798         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54799
54800 2006-11-28  Jim Meyering  <jim@meyering.net>
54801
54802         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54803         warning from "gcc -Wshadow" about shadowing the builtin.
54804
54805 2006-11-27  Bruno Haible  <bruno@clisp.org>
54806
54807         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54808         _AC_COMPUTE_INT.
54809         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54810
54811 2006-11-27  Bruno Haible  <bruno@clisp.org>
54812             Paul Eggert  <eggert@cs.ucla.edu>
54813
54814         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54815
54816 2006-11-26  Bruno Haible  <bruno@clisp.org>
54817
54818         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54819         noinst_LTLIBRARIES.
54820
54821 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54822             Bruno Haible  <bruno@clisp.org>
54823
54824         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54825         if compiling with "gcc -ansi".
54826
54827 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54828
54829         Fix some incompatibilities with gcc -ansi -pedantic.
54830         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54831         if compiling pedantically with GCC, unless it's C99 or later.
54832         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54833         it mishandles gcc -ansi -pedantic as well.
54834         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54835         if gcc -pedantic.
54836         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54837         initializers for struct if -pedantic, unless it's C99 or later.
54838
54839 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54840
54841         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54842         Don't close an fd more than once. Identical atimes indicate
54843         success, not failure.
54844
54845 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54846
54847         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54848
54849 2006-11-23  Jim Meyering  <jim@meyering.net>
54850
54851         * build-aux/announce-gen: New file.  From coreutils.
54852
54853 2006-11-22  Jim Meyering  <jim@meyering.net>
54854
54855         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54856         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54857         (fts_read): Use a temporary to narrow the overused st_size member
54858         before using it in a switch statement.  Reported by Matthew Woehlke.
54859
54860         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54861         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54862
54863 2006-11-20  Bruno Haible  <bruno@clisp.org>
54864
54865         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54866         changequote instead of pairs of brackets.
54867         Reported by Andreas Schwab <schwab@suse.de>.
54868
54869 2006-11-21  Jim Meyering  <jim@meyering.net>
54870
54871         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54872         so as to remain compatible with older compilers.
54873         Patch from Michael Deutschmann.
54874
54875 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54876
54877         * MODULES.html.sh (File system functions): Add openat.
54878
54879         * lib/openat.h (rpl_fstatat): New macro, if
54880         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54881         (fstatat): Define to rpl_fstatat under the same conditions,
54882         unless COMPILING_FSTATAT.
54883         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54884         seems to have the bug.
54885         * lib/fstatat.c: New file.
54886         * modules/openat (Files): Add it.
54887
54888 2006-11-20  Bruno Haible  <bruno@clisp.org>
54889
54890         * Makefile: New file.
54891
54892 2006-11-20  Jim Meyering  <jim@meyering.net>
54893
54894         The beginnings of syntax-related checks for gnulib.
54895         * lib/Makefile: New file.
54896         * lib/t-idcache: New script.  Ensure that the two halves of
54897         idcache.c stay in sync.
54898
54899         * lib/idcache.c: Adjust comments in user- and group- portions to
54900         be more accurate, and to be consistent with one another.
54901
54902 2006-11-20  Jim Meyering  <jim@meyering.net>
54903
54904         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54905         continue using the flexible array member (thus, this module performs
54906         half as many malloc calls), with the addition that...
54907         (getgroup, getuser): Consistently record a non-match via an empty
54908         "name" string, and map an empty string match to a NULL return value.
54909         * modules/idcache (Depends-on): Re-add flexmember.
54910
54911         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54912         (getuidbyname, getgroup, getgidbyname): Likewise.
54913
54914         Use cleaner syntax: NULL rather than 0.
54915         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54916
54917 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54918
54919         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54920         It mishandled the case where the group was missing.
54921         Problem reported by Greg Schafer.
54922         * modules/idcache: Likewise.
54923
54924 2006-11-18  Jim Meyering  <jim@meyering.net>
54925
54926         * check-module (%exempt_header): Add exception for some
54927         conditionally-included headers.
54928
54929         * modules/i-ring (Depends-on): Add verify.
54930         (License): Change to LGPL.
54931
54932 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54933
54934         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54935         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54936         and inttostr.h.  Use snprintf rather than uinttostr, so that
54937         LGPLed code doesn't depend on GPLed.
54938
54939 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54940
54941         * modules/inline (License): Change from GPL to LGPL.
54942
54943 2006-11-17  Jim Meyering  <jim@meyering.net>
54944
54945         * modules/d-type (License): Switch to LGPL.
54946
54947 2006-11-15  Bruno Haible  <bruno@clisp.org>
54948
54949         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54950
54951 2006-11-15  Eric Blake  <ebb9@byu.net>
54952
54953         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54954         the module dependency.
54955
54956 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54957             Bruno Haible  <bruno@clisp.org>
54958
54959         * gnulib-tool (func_create_testdir): Add license consistency check.
54960
54961 2006-11-15  Eric Blake  <ebb9@byu.net>
54962
54963         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54964         random "(cached)" in configure output.
54965
54966 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54967
54968         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54969         test for conforming inttypes.h is both announced and cached.
54970
54971         * MODULES.html.sh (seen_modules, seen_files): New variables.
54972         (func_module): Rewrite to use a few less gnulib-tool and sed
54973         invocations.  Avoid a couple of quadratic algorithms for ...
54974         (missed_modules, missed_files): ... these, with ...
54975         (func_append, func_tmpdir): ... these new functions, from
54976         gnulib-tool.  Analogously, install traps for cleanup.
54977
54978         * tests/test-gc.c (main): Remove unused variables.
54979         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54980
54981 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54982
54983         * modules/inttostr (License): Change to LGPL.
54984
54985 2006-11-14  Eric Blake  <ebb9@byu.net>
54986
54987         * modules/tempname (License): Change to LGPL.
54988
54989 2006-11-14  Eric Blake  <ebb9@byu.net>
54990
54991         * doc/functions.texi (Function Portability): *printf functions on
54992         Cygwin now understand all POSIX size specifiers.
54993
54994 2006-11-14  Bruno Haible  <bruno@clisp.org>
54995
54996         * modules/c-ctype (License): Change to LGPL.
54997
54998 2006-11-12  Bruno Haible  <bruno@clisp.org>
54999
55000         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55001         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55002         for GNOME libraries, for which the include files are installed in
55003         subdirectories of $prefix/include.
55004
55005 2006-11-12  Bruno Haible  <bruno@clisp.org>
55006
55007         * m4/lib-link.m4: Require at least autoconf-2.54.
55008         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55009         name to underscores for the --with option.
55010
55011 2006-11-13  Bruno Haible  <bruno@clisp.org>
55012
55013         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55014         the tests directory.
55015         Reported by Ralf Wildenhues.
55016
55017 2006-11-13  Bruno Haible  <bruno@clisp.org>
55018
55019         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55020         (func_emit_initmacro_end): Undo the override here.
55021         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55022         Works around the famous automake error in coreutils.
55023
55024 2006-11-13  Eric Blake  <ebb9@byu.net>
55025
55026         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55027         element, not its node.
55028
55029 2006-11-12  Bruno Haible  <bruno@clisp.org>
55030
55031         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55032         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55033
55034 2006-11-12  Bruno Haible  <bruno@clisp.org>
55035
55036         * gnulib-tool: New option --local-symlink.
55037         (func_usage): Document it.
55038         (lsymbolic): New variable.
55039         (func_import, func_create_testdir): If --symlink was not specified,
55040         test whether --local-symlink was specified and the file comes from
55041         the local_gnulib_dir.
55042
55043 2006-11-12  Bruno Haible  <bruno@clisp.org>
55044
55045         * gnulib-tool (func_ln): New function.
55046         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55047
55048 2006-11-12  Bruno Haible  <bruno@clisp.org>
55049
55050         Finish support for source files in subdirectories.
55051         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55052         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55053         AUTOMAKE_OPTIONS.
55054         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55055
55056 2006-11-12  Bruno Haible  <bruno@clisp.org>
55057
55058         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55059         EXTRA_lib_SOURCES augmentation.
55060         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55061
55062 2006-11-12  Jim Meyering  <jim@meyering.net>
55063
55064         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55065         file descriptors.  This also averts a failure on systems with
55066         native openat support when a traversed directory lacks "x" access.
55067         * lib/fts_.h: Include "i-ring.h"
55068         (struct FTS) [fts_fd_ring]: New member.
55069         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55070         (FCHDIR): Add parentheses.
55071         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55072         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55073         When descending, rather than simply closing the previous
55074         fts_cwd_fd value, push that file descriptor onto the ring.
55075         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55076         (fts_open): Initialize the new fd_ring member.
55077         (fts_close): Clear the ring.
55078         (fts_safe_changedir): When possible, use our new fd_ring to skip
55079         the diropen and fstat and dev/ino comparison that would normally
55080         accompany a virtual `chdir ("..")'.
55081
55082         * modules/fts (Depends-on): Add i-ring.
55083         * modules/i-ring: New module.
55084         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55085         * m4/i-ring.m4: New file.
55086
55087 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55088
55089         * gnulib-tool (func_create_testdir): Fix replacement of
55090         `build-aux' in configure.ac.  Run autotools in gltests
55091         subdirectory.
55092         (func_create_testdir, func_create_megatestdir, test): There is
55093         no need for '--force' in most autotool invocations in a new
55094         tree.  Actually fail the whole test if any of the tools, or the
55095         configure or make stages fail.
55096
55097         Sync from Automake.
55098         * build-aux/gnupload: Revert last change.  Add pointer to upload
55099         instructions of the GNU Maintenance Instructions.
55100         Suggestion by Karl Berry.
55101
55102 2006-11-10  Jim Meyering  <jim@meyering.net>
55103
55104         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55105
55106 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55107
55108         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55109         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55110         (bind_textdomain_codeset) [! ENABLE_NLS]:
55111         Evaluate all the arguments.  That way, callers get compatible behavior
55112         if the arguments have side effects.  Also, it avoids some GCC
55113         diagnostics in some cases; Joel E. Denny reported problems when Bison
55114         was configured with --enable-gcc-warnigs.
55115
55116 2006-11-10  Jim Meyering  <jim@meyering.net>
55117
55118         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55119         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55120         account.
55121
55122 2006-11-10  Jim Meyering  <jim@meyering.net>
55123
55124         * modules/inline: New file/module.
55125         * modules/xalloc (Files): Remove m4/inline.m4.
55126         (Depends-on): Add inline, instead.
55127         * modules/oset: Likewise.
55128         * modules/list: Likewise.
55129
55130 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55131
55132         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55133         Problem reported by Matthew Woehlke.
55134
55135 2006-11-09  Bruno Haible  <bruno@clisp.org>
55136
55137         * lib/tempname.c (gen_tempname): Remove variant that invokes
55138         __gen_tempname.
55139         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55140         __gen_tempname.
55141
55142 2006-11-08  Bruno Haible  <bruno@clisp.org>
55143
55144         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55145         to 'yes' instead of 'cross-compiling'.
55146
55147 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55148
55149         * lib/quotearg.h (quotearg_free): New decl.
55150         * lib/quotearg.c (quotearg_free): New function.
55151         (slot0, nslots, slotvec0, slotvec):
55152         Now file-scope so that quotearg_free can get at them.
55153
55154 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55155
55156         Sync from Automake.
55157         * build-aux/gnupload: Add missing 'gnu' to example URL.
55158         Report by Karl Berry.
55159
55160 2006-11-08  Bruno Haible  <bruno@clisp.org>
55161
55162         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55163         Suggested by Paul Eggert.
55164
55165 2006-11-08  Jim Meyering  <jim@meyering.net>
55166
55167         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55168         It's already included if !_LIBC.
55169         (fts_safe_changedir): Add a comment.
55170
55171 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55172
55173         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55174         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55175         Matthew Woehlke.
55176
55177         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55178         definitions up, to avoid colliding with change below.
55179         (static_inline) [HAVE_INLINE]: New macro.
55180         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55181         Provide extern decls when !HAVE_INLINE.  Do not define unless
55182         static_inline is defined, either by us or by xmalloc.c.  Use
55183         static_inline rather than static inline.
55184         (XCALLOC): Optimize sizeof(T) = 1 case.
55185         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55186
55187 2006-11-07  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55190         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55191         AC_C_INLINE.
55192         * modules/xalloc (Files): Add m4/inline.m4.
55193
55194 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55195
55196         * README: Fix typo.
55197         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55198         (Miscellanous Notes): ...from this.
55199
55200 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55201
55202         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55203         Mention that offsetof should be used instead of sizeof.
55204         From Bruno Haible.
55205
55206 2006-11-07  Bruno Haible  <bruno@clisp.org>
55207
55208         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55209
55210 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55211
55212         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55213         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55214         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55215         (gl_tree_add_before, gl_tree_add_after):
55216         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55217         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55218         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55219         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55220         (gl_linked_add_after, gl_linked_add_at): Likewise.
55221         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55222         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55223         (gl_tree_add_before, gl_tree_add_after): Likewise.
55224         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55225         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55226         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55227
55228 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55229
55230         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55231
55232 2006-11-06  Bruno Haible  <bruno@clisp.org>
55233
55234         * m4/inline.m4: New file.
55235         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55236         * modules/list (Files): Add m4/inline.m4.
55237         * modules/oset (Files): Likewise.
55238
55239 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55240
55241         * lib/idcache.c: Include <stddef.h>, for offsetof.
55242         (struct userid.name): Change from char * to a flexible array member.
55243         All uses changed.
55244         * modules/idcache (Depends-on): Add flexmember.
55245
55246         * MODULES.html.sh (Core language properties): New module flexmember.
55247         * modules/flexmember, m4/flexmember.m4: New files.
55248
55249         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55250         inline functions that are identical with the old xnmalloc_inline,
55251         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55252         that we can avoid some unnecessary integer multiplications and
55253         divisions in the common case where the element size is known at
55254         compile time.
55255         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55256         needed.
55257         (xnboundedmalloc): Remove.
55258         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55259         arguments, for consistency with rest of this header.
55260         (xcharalloc): Rewrite using XNMALLOC.
55261         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55262         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55263         versions have been moved to lib/xalloc.h and renamed to be the
55264         non-*_inline versions.
55265         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55266         and xnrealloc functions, since those functions are now inline and
55267         now call us.
55268         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55269         renaming described above.
55270         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55271         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55272         captures the dependency in AC_C_INLINE.
55273
55274         New module canonicalize-lgpl, proposed by Charles Wilson in
55275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55276         with a few small changes afterwards.
55277         * MODULES.html.sh (File system functions): New module
55278         canonicalize-lgpl.
55279         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55280         and canonicalize_file_name.
55281         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55282         * modules/canonicalize-lgpl: New files.
55283
55284 2006-11-05  Bruno Haible  <bruno@clisp.org>
55285
55286         * gnulib-tool (func_import, func_create_testdir): Create directories
55287         also for files in subdirectories of lib/.
55288
55289 2006-11-05  Bruno Haible  <bruno@clisp.org>
55290
55291         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55292         ANSI C compliant.
55293
55294 2006-11-03  Bruno Haible  <bruno@clisp.org>
55295
55296         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55297         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55298         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55299         (xnboundedmalloc): New inline function.
55300         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55301         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55302         xmalloc.
55303         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55304         xmalloc.
55305         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55306         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55307         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55308         xmalloc.
55309         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55310         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55311         xmalloc.
55312         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55313         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55314         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55315         xmalloc.
55316         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55317         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55318         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55319         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55320         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55321         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55322         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55323
55324 2006-11-03  Bruno Haible  <bruno@clisp.org>
55325
55326         * lib/c-ctype.h [C++]: Define functions without name mangling.
55327         * lib/fwriteerror.h [C++]: Likewise.
55328         * lib/gcd.h [C++]: Likewise.
55329         * lib/linebreak.h [C++]: Likewise.
55330
55331 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55332
55333         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55334         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55335         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55336         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55337         Check for functions and headers just once.
55338         Check for declaration of canonicalize_file_name.
55339         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55340
55341 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55342
55343         * gnulib-tool (func_import): Fix typo in actioncmd.
55344
55345 2006-11-02  Bruno Haible  <bruno@clisp.org>
55346
55347         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
55348         newline sequence in the Makefile.am snippet as a space, like "make"
55349         does.
55350         Reported by Roger Persson <perrog@gmail.com>.
55351
55352 2006-11-01  Bruno Haible  <bruno@clisp.org>
55353
55354         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
55355         already declared in <string.h>.
55356         * lib/strcase.h (strncasecmp): Don't declare it if yes.
55357
55358 2006-11-01  Bruno Haible  <bruno@clisp.org>
55359
55360         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
55361         * lib/strcase.h: Include <string.h>.
55362         (strcasecmp): Define to rpl_strcasecmp here.
55363
55364 2006-11-01  Bruno Haible  <bruno@clisp.org>
55365
55366         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
55367
55368 2006-11-01  Eric Blake  <ebb9@byu.net>
55369
55370         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
55371
55372         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
55373
55374 2006-10-29  Bruno Haible  <bruno@clisp.org>
55375
55376         Make it compile in C++ mode.
55377         * lib/full-write.c (full_rw): Add a cast.
55378
55379 2006-11-01  Bruno Haible  <bruno@clisp.org>
55380
55381         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
55382         be POSIX compliant.
55383         Reported by Roger Persson <perrog@gmail.com>.
55384
55385 2006-11-01  Eric Blake  <ebb9@byu.net>
55386
55387         * lib/getopt_.h: Fix comments.
55388
55389 2006-10-31  Eric Blake  <ebb9@byu.net>
55390
55391         * modules/tmpdir (Depends-on): Add sys_stat.
55392         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
55393         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
55394         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
55395         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
55396         tempname.
55397
55398 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         Avoid some C++ diagnostics reported by Bruno Haible.
55401         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
55402         xmalloc.
55403         (quotearg_alloc): Use xcharalloc rather than xmalloc.
55404         (struct slotvec): Move to top level.
55405         (quotearg_n_options): Rewrite to avoid xmalloc.
55406         * lib/xalloc.h (xcharalloc): New function.
55407         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
55408         [defined __cplusplus]: Add function template that provides result
55409         type propagation.  This part of the change is from Bruno Haible.
55410
55411 2006-10-29  Bruno Haible  <bruno@clisp.org>
55412
55413         Make it compile in C++ mode.
55414         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
55415         * lib/strnlen1.c (strnlen1): Cast memchr result.
55416         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
55417         * lib/clean-temp.c (string_equals, string_hash): Add casts.
55418         (create_temp_dir): Rename local variable 'template'.
55419         (compile_csharp_using_sscli): Add cast.
55420         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
55421         * lib/findprog.c (find_in_path): Likewise.
55422         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
55423         * lib/wait-process.c (register_slave_subprocess): Likewise.
55424
55425 2006-10-22  Bruno Haible  <bruno@clisp.org>
55426
55427         * modules/tsearch: New file.
55428         * lib/tsearch.h: New file.
55429         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
55430         * m4/tsearch.m4: New file.
55431         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
55432
55433 2006-10-29  Eric Blake  <ebb9@byu.net>
55434
55435         * lib/arcfour.c: Assume config.h.
55436         * lib/arctwo.c: Likewise.
55437         * lib/base64.c: Likewise.
55438         * lib/check-version.c: Likewise.
55439         * lib/crc.c: Likewise.
55440         * lib/des.c: Likewise.
55441         * lib/gc-gnulib.c: Likewise.
55442         * lib/gc-libgcrypt.c: Likewise.
55443         * lib/gc-pbkdf2-sha1.c: Likewise.
55444         * lib/getaddrinfo.c: Likewise.
55445         * lib/getdelim.c: Likewise.
55446         * lib/getline.c: Likewise.
55447         * lib/hmac-md5.c: Likewise.
55448         * lib/hmac-sha1.c: Likewise.
55449         * lib/iconvme.c: Likewise.
55450         * lib/md2.c: Likewise.
55451         * lib/md4.c: Likewise.
55452         * lib/memxor.c: Likewise.
55453         * lib/read-file.c: Likewise.
55454         * lib/readline.c: Likewise.
55455         * lib/rijndael-alg-fst.c: Likewise.
55456         * lib/rijndael-api-fst.c: Likewise.
55457         * lib/xgetdomainname.c: Likewise.
55458
55459 2006-10-28  Eric Blake  <ebb9@byu.net>
55460
55461         * lib/xstrndup.c: Assume config.h.
55462
55463 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55464
55465         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
55466         stat-macros.h is now for our own macros, whereas stat_h is for
55467         macros in the <sys/stat.h> name space.
55468         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
55469         (STAT_MACROS_H): Remove.
55470         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
55471         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
55472         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
55473         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
55474         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
55475         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
55476         Move these macros to ...
55477         * lib/stat_.h: here.  Don't include stat-macros.h.
55478         * lib/canonicalize.c: Don't include stat-macros.h.
55479         * lib/chown.c: Likewise.
55480         * lib/euidaccess.c: Likewise.
55481         * lib/file-type.c: Likewise.
55482         * lib/filemode.c: Likewise.
55483         * lib/glob.c: Likewise.
55484         * lib/isapipe.c: Likewise.
55485         * lib/lchown.c: Likewise.
55486         * lib/lstat.c: Likewise.
55487         * lib/mkdir-p.c: Likewise.
55488         * lib/rmdir.c: Likewise.
55489         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
55490         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
55491         unless mkdir isn't declared, to speed up 'configure'.
55492         Always create sys/stat.h, since it's unlikely any real sys/stat.h
55493         would define all the S_* symbols.
55494         * modules/canonicalize (Depends-on):
55495         Depend on sys_stat, not stat-macros.
55496         * modules/chown: Likewise.
55497         * modules/euidaccess: Likewise.
55498         * modules/filemode: Likewise.
55499         * modules/file-type: Likewise.
55500         * modules/glob: Likewise.
55501         * modules/isapipe: Likewise.
55502         * modules/lchown: Likewise.
55503         * modules/lstat: Likewise.
55504         * modules/mkancesdirs: Likewise.
55505         * modules/rmdir: Likewise.
55506         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
55507         * modules/modechange: Likewise.
55508         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
55509         (configure.ac): Remove gl_STAT_MACROS.
55510         * modules/sys_stat (Depends-on): Remove stat-macros.
55511
55512 2006-10-27  Bruno Haible  <bruno@clisp.org>
55513
55514         * m4/signed.m4: Remove file.
55515         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
55516         invocation.
55517         * modules/vasnprintf (Files): Remove m4/signed.m4.
55518
55519 2006-10-27  Bruno Haible  <bruno@clisp.org>
55520
55521         Update to GNU gettext 0.16.
55522         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
55523         m4/inttypes-h.m4, m4/signed.m4.
55524         * m4/gettext.m4: Update to GNU gettext 0.16.
55525         * m4/intl.m4: New file, from GNU gettext.
55526         * m4/intldir.m4: New file, from GNU gettext.
55527         * config/srclist.txt: Update
55528
55529 2006-10-27  Eric Blake  <ebb9@byu.net>
55530
55531         * MODULES.html.sh: Document tempname.
55532         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
55533         dependencies.
55534         (Files): Move lib/tempname.c...
55535         * modules/tempname: ...to this new module.
55536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
55537         (gl_PREREQ_TEMPNAME): Move...
55538         * m4/tempname.m4: ...to this new file.
55539         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
55540         * modules/sys_stat (Depends-on): Add stat-macros.
55541         * lib/stat_.h (includes): Pick up stat macros.
55542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
55543         if stat macros are broken.
55544         * lib/tempname.c (includes): No need to include "stat-macros.h".
55545         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
55546         (direxists, __path_search) [!_LIBC]: Don't compile these in
55547         gnulib; the tmpdir module covers that.
55548         * lib/tempname.h: New file.
55549
55550 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55551
55552         * COPYING: Explain how gnulib-tool converts licence headers.
55553         Almost all wording by Eric Blake.
55554
55555 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55556
55557         * lib/mbchar.h (is_basic_table): Make read-only.
55558         * lib/mbchar.c (is_basic_table): Likewise.
55559         Reported by John Darrington.
55560
55561 2006-10-25  Bruno Haible  <bruno@clisp.org>
55562
55563         * lib/progname.h (set_program_name): Undefine before defining.
55564
55565 2006-10-25  Bruno Haible  <bruno@clisp.org>
55566
55567         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55568         false for non-gcc C++ compilers.
55569         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55570
55571 2006-10-24  Bruno Haible  <bruno@clisp.org>
55572
55573         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55574         iconv implementations like Irix iconv.
55575
55576 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55577
55578         * modules/vararrays: New file.
55579         * m4/vararrays.m4: New file, taken from diffutils.
55580         * MODULES.html.sh: New module vararrays.
55581
55582 2006-10-24  Karl Berry  <karl@gnu.org>
55583
55584         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55585         Don't call GNU Unix.
55586
55587 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55588
55589         * users.txt: Add Libtool.
55590
55591         Sync from Libtool:
55592
55593         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55596         to gnulib's policy of including config.h unconditionally.
55597
55598 2006-10-24  Bruno Haible  <bruno@clisp.org>
55599
55600         * modules/wcwidth (Files): Add m4/wint_t.m4.
55601         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55602         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55603
55604 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55605
55606         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55607         to pacify GCC with some -W flags enabled.  Problem reported by
55608         Bruno Haible.
55609
55610 2006-10-24  Jim Meyering  <jim@meyering.net>
55611
55612         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55613         Reported by Karl Berry.
55614
55615 2006-10-23  Bruno Haible  <bruno@clisp.org>
55616
55617         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55618
55619 2006-10-24  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/gl_list.h: Use C comment style, not C++ comment style.
55622
55623 2006-10-23  Eric Blake  <ebb9@byu.net>
55624
55625         * lib/getaddrinfo.c (includes): Add missing include.
55626
55627 2006-10-23  Bruno Haible  <bruno@clisp.org>
55628             Paul Eggert  <eggert@cs.ucla.edu>
55629
55630         Ability to rename obstack_free.
55631         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55632         obstack_free.
55633         (obstack_free): Invoke the __obstack_free macro.
55634         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55635
55636 2006-10-23  Bruno Haible  <bruno@clisp.org>
55637             Paul Eggert  <eggert@cs.ucla.edu>
55638
55639         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55640         __argc, __argv from the declaration. (They are defined as macros on
55641         mingw.)
55642
55643 2006-10-22  Bruno Haible  <bruno@clisp.org>
55644
55645         * doc/gnulib-intro.texi: New file.
55646         * doc/gnulib.texi: Include it.
55647
55648 2006-10-21  Bruno Haible  <bruno@clisp.org>
55649
55650         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55651         "Introduction", "Miscellanous Notes", "Particular Modules".
55652
55653 2006-10-21  Bruno Haible  <bruno@clisp.org>
55654
55655         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55656         Change mostlyclean-local rule to avoid sh syntax error from bash
55657         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55658
55659 2006-10-23  Jim Meyering  <jim@meyering.net>
55660
55661         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55662         in place of snprintf.
55663
55664         * modules/inttostr (Files): Add lib/uinttostr.c.
55665         * lib/uinttostr.c (inttostr): New file/function.
55666         * lib/inttostr.h (uinttostr): Declare.
55667         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55668         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55669         Add uinttostr.
55670         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55671
55672 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55673
55674         * lib/canonicalize.c (ELOOP): Define if not already defined.
55675         Problem reported by Bruno Haible in
55676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55677
55678 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55679
55680         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55681         Problem reported by Perry Smith and Ville Laurikari.
55682
55683         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55684         uses.
55685
55686 2006-10-19  Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55689         for mingw.
55690
55691 2006-10-19  Bruno Haible  <bruno@clisp.org>
55692
55693         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55694         Needed for mingw.
55695
55696 2006-10-19  Bruno Haible  <bruno@clisp.org>
55697
55698         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55699
55700 2006-10-19  Bruno Haible  <bruno@clisp.org>
55701
55702         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55703         it.
55704
55705 2006-10-19  Bruno Haible  <bruno@clisp.org>
55706
55707         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55708         invocation.
55709
55710 2006-10-19  Bruno Haible  <bruno@clisp.org>
55711
55712         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55713         mountlist by default.
55714
55715 2006-10-16  Bruno Haible  <bruno@clisp.org>
55716
55717         * lib/c-strstr.c: Include c-strstr.h.
55718
55719 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55720
55721         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55722         in a slash.
55723
55724 2006-10-18  Bruno Haible  <bruno@clisp.org>
55725
55726         * lib/lock.h [C++]: Wrap definitions in extern "C".
55727
55728 2006-10-18  Bruno Haible  <bruno@clisp.org>
55729
55730         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55731         gl_LIBOBJS list.
55732
55733 2006-10-18  Bruno Haible  <bruno@clisp.org>
55734
55735         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55736
55737 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55738
55739         * lib/xstrtol.h: Include gettext.h.
55740         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55741         Problem reported by Eric Blake.
55742         * modules/xstrtol (Depends-on): Add gettext-h.
55743
55744 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55745
55746         * lib/strftime.c (advance): New macro.
55747         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55748         incomplete type, so you can't add 0 to it.  Problem and patch
55749         reported by Eelco Dolstra for dietlibc.
55750
55751 2006-10-18  Jim Meyering  <jim@meyering.net>
55752
55753         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55754         type for a local, and rename it: s/up/user_proc/.
55755
55756 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55757
55758         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55759         READ_UTMP_USER_PROCESS.
55760         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55761
55762 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55763
55764         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55765         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55766
55767 2006-10-17  Eric Blake  <ebb9@byu.net>
55768
55769         * lib/sigprocmask.c (sigprocmask): Fix typo.
55770
55771         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55772
55773         * modules/clean-temp (Makefile.am): Don't add to make output...
55774         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55775         config.h.
55776
55777 2006-10-17  Bruno Haible  <bruno@clisp.org>
55778
55779         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55780         differently if DEFAULT_TEXT_DOMAIN is set.
55781
55782 2006-10-16  Bruno Haible  <bruno@clisp.org>
55783
55784         * lib/clean-temp.c: Include fwriteerror.h.
55785
55786 2006-10-16  Bruno Haible  <bruno@clisp.org>
55787
55788         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55789
55790 2006-10-16  Bruno Haible  <bruno@clisp.org>
55791
55792         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55793         * lib/sigprocmask.h: Include <sys/types.h>.
55794         (sigset_t): Use the system's definition if present.
55795
55796 2006-10-17  Eric Blake  <ebb9@byu.net>
55797
55798         * lib/xvasprintf.c (includes): Assume config.h.
55799         * lib/xasprintf.c (includes): Likewise.
55800
55801 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55802
55803         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55804         at least as wide as intmax_t.
55805
55806 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55807
55808         (Imported from Automake.)
55809         * build-aux/gnupload: Update to version 1.1 of directive file.
55810
55811 2006-10-16  Eric Blake  <ebb9@byu.net>
55812
55813         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55814         match Automake 1.10a.
55815
55816 2006-10-14  Bruno Haible  <bruno@clisp.org>
55817
55818         * modules/sigprocmask: New file.
55819         * lib/sigprocmask.h: New file.
55820         * lib/sigprocmask.c: New file.
55821         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55822         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55823         request sigprocmask.o.
55824         (gl_PREREQ_SIGPROCMASK): New macro.
55825         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55826         (Depends-on): Add sigprocmask.
55827         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55828         gt_SIGNALBLOCKING. Test for 'raise' only once.
55829         * lib/fatal-signal.c: Include sigprocmask.h.
55830         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55831         unblock_fatal_signals): Define always.
55832         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55833         sigprocmask.
55834
55835 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55836
55837         Sync from Automake.
55838         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55839         which incorrectly sets the mode of an existing destination
55840         directory.  In some cases the unpatched install-sh could do the
55841         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55842         system.  We hope this is rare in practice, but it's clearly worth
55843         fixing.  Problem reported by Alex Unleashed in
55844         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55845         Also, don't bother to check for -m bugs unless we're using -m;
55846         suggested by Stepan Kasal.
55847
55848 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55849
55850         Sync from Automake.
55851         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55852         `-c' flag, so they appear at the same position as in %FASTDEP%
55853         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55854         which ignores unknown options only after the first non-option.
55855         Bug report against M4 by Nelson H. F. Beebe.
55856
55857 2006-10-13  Jim Meyering  <jim@meyering.net>
55858
55859         Fix a bug in yesterday's change.
55860         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55861         p->fts_statp->st_dev would be used uninitialized.
55862         Ensures that we always call fts_stat on the very first entry.
55863         Miklos Szeredi reported that find -xdev stopped working.
55864
55865 2006-10-12  Bruno Haible  <bruno@clisp.org>
55866
55867         * gnulib-tool (func_get_automake_snippet): Append an automatically
55868         computed EXTRA_DIST augmentation.
55869         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55870         * modules/alloca-opt (Makefile.am): Likewise.
55871         * modules/allocsa (Makefile.am): Likewise.
55872         * modules/arcfour (Makefile.am): Likewise.
55873         * modules/arctwo (Makefile.am): Likewise.
55874         * modules/argmatch (Makefile.am): Likewise.
55875         * modules/argz (Makefile.am): Likewise.
55876         * modules/atexit (Makefile.am): Likewise.
55877         * modules/backupfile (Makefile.am): Likewise.
55878         * modules/byteswap (Makefile.am): Likewise.
55879         * modules/c-strtod (Makefile.am): Likewise.
55880         * modules/c-strtold (Makefile.am): Likewise.
55881         * modules/calloc (Makefile.am): Likewise.
55882         * modules/canon-host (Makefile.am): Likewise.
55883         * modules/canonicalize (Makefile.am): Likewise.
55884         * modules/chdir-long (Makefile.am): Likewise.
55885         * modules/chdir-safer (Makefile.am): Likewise.
55886         * modules/check-version (Makefile.am): Likewise.
55887         * modules/chown (Makefile.am): Likewise.
55888         * modules/cloexec (Makefile.am): Likewise.
55889         * modules/close-stream (Makefile.am): Likewise.
55890         * modules/closeout (Makefile.am): Likewise.
55891         * modules/crc (Makefile.am): Likewise.
55892         * modules/csharpexec (Makefile.am): Likewise.
55893         * modules/cycle-check (Makefile.am): Likewise.
55894         * modules/des (Makefile.am): Likewise.
55895         * modules/dev-ino (Makefile.am): Likewise.
55896         * modules/dirfd (Makefile.am): Likewise.
55897         * modules/dirname (Makefile.am): Likewise.
55898         * modules/dup2 (Makefile.am): Likewise.
55899         * modules/eealloc (Makefile.am): Likewise.
55900         * modules/error (Makefile.am): Likewise.
55901         * modules/euidaccess (Makefile.am): Likewise.
55902         * modules/exclude (Makefile.am): Likewise.
55903         * modules/exitfail (Makefile.am): Likewise.
55904         * modules/fcntl-safer (Makefile.am): Likewise.
55905         * modules/fcntl (Makefile.am): Likewise.
55906         * modules/file-type (Makefile.am): Likewise.
55907         * modules/fileblocks (Makefile.am): Likewise.
55908         * modules/filemode (Makefile.am): Likewise.
55909         * modules/filenamecat (Makefile.am): Likewise.
55910         * modules/fnmatch (Makefile.am): Likewise.
55911         * modules/fopen-safer (Makefile.am): Likewise.
55912         * modules/fpending (Makefile.am): Likewise.
55913         * modules/fprintftime (Makefile.am): Likewise.
55914         * modules/free (Makefile.am): Likewise.
55915         * modules/fsusage (Makefile.am): Likewise.
55916         * modules/ftruncate (Makefile.am): Likewise.
55917         * modules/fts (Makefile.am): Likewise.
55918         * modules/gc-arcfour (Makefile.am): Likewise.
55919         * modules/gc-des (Makefile.am): Likewise.
55920         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55921         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55922         * modules/gc-md4 (Makefile.am): Likewise.
55923         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55924         * modules/gc-sha1 (Makefile.am): Likewise.
55925         * modules/gc (Makefile.am): Likewise.
55926         * modules/getaddrinfo (Makefile.am): Likewise.
55927         * modules/getcwd (Makefile.am): Likewise.
55928         * modules/getdelim (Makefile.am): Likewise.
55929         * modules/getdomainname (Makefile.am): Likewise.
55930         * modules/getgroups (Makefile.am): Likewise.
55931         * modules/gethostname (Makefile.am): Likewise.
55932         * modules/gethrxtime (Makefile.am): Likewise.
55933         * modules/getline (Makefile.am): Likewise.
55934         * modules/getloadavg (Makefile.am): Likewise.
55935         * modules/getlogin_r (Makefile.am): Likewise.
55936         * modules/getndelim2 (Makefile.am): Likewise.
55937         * modules/getopt (Makefile.am): Likewise.
55938         * modules/getpagesize (Makefile.am): Likewise.
55939         * modules/getpass-gnu (Makefile.am): Likewise.
55940         * modules/getpass (Makefile.am): Likewise.
55941         * modules/getsubopt (Makefile.am): Likewise.
55942         * modules/gettime (Makefile.am): Likewise.
55943         * modules/gettimeofday (Makefile.am): Likewise.
55944         * modules/getugroups (Makefile.am): Likewise.
55945         * modules/getusershell (Makefile.am): Likewise.
55946         * modules/glob (Makefile.am): Likewise.
55947         * modules/group-member (Makefile.am): Likewise.
55948         * modules/hard-locale (Makefile.am): Likewise.
55949         * modules/hash (Makefile.am): Likewise.
55950         * modules/hmac-md5 (Makefile.am): Likewise.
55951         * modules/hmac-sha1 (Makefile.am): Likewise.
55952         * modules/human (Makefile.am): Likewise.
55953         * modules/idcache (Makefile.am): Likewise.
55954         * modules/imaxabs (Makefile.am): Likewise.
55955         * modules/imaxdiv (Makefile.am): Likewise.
55956         * modules/inet_ntop (Makefile.am): Likewise.
55957         * modules/inet_pton (Makefile.am): Likewise.
55958         * modules/intprops (Makefile.am): Likewise.
55959         * modules/inttostr (Makefile.am): Likewise.
55960         * modules/inttypes (Makefile.am): Likewise.
55961         * modules/isapipe (Makefile.am): Likewise.
55962         * modules/javaversion (Makefile.am): Likewise.
55963         * modules/lchmod (Makefile.am): Likewise.
55964         * modules/lchown (Makefile.am): Likewise.
55965         * modules/localcharset (Makefile.am): Likewise.
55966         * modules/long-options (Makefile.am): Likewise.
55967         * modules/lstat (Makefile.am): Likewise.
55968         * modules/malloc (Makefile.am): Likewise.
55969         * modules/mathl (Makefile.am): Likewise.
55970         * modules/mbchar (Makefile.am): Likewise.
55971         * modules/md2 (Makefile.am): Likewise.
55972         * modules/md4 (Makefile.am): Likewise.
55973         * modules/md5 (Makefile.am): Likewise.
55974         * modules/memcasecmp (Makefile.am): Likewise.
55975         * modules/memchr (Makefile.am): Likewise.
55976         * modules/memcmp (Makefile.am): Likewise.
55977         * modules/memcoll (Makefile.am): Likewise.
55978         * modules/memcpy (Makefile.am): Likewise.
55979         * modules/memmem (Makefile.am): Likewise.
55980         * modules/memmove (Makefile.am): Likewise.
55981         * modules/mempcpy (Makefile.am): Likewise.
55982         * modules/memrchr (Makefile.am): Likewise.
55983         * modules/memset (Makefile.am): Likewise.
55984         * modules/memxor (Makefile.am): Likewise.
55985         * modules/mkancesdirs (Makefile.am): Likewise.
55986         * modules/mkdir-p (Makefile.am): Likewise.
55987         * modules/mkdir (Makefile.am): Likewise.
55988         * modules/mkdtemp (Makefile.am): Likewise.
55989         * modules/mkstemp (Makefile.am): Likewise.
55990         * modules/mktime (Makefile.am): Likewise.
55991         * modules/modechange (Makefile.am): Likewise.
55992         * modules/mountlist (Makefile.am): Likewise.
55993         * modules/nanosleep (Makefile.am): Likewise.
55994         * modules/obstack (Makefile.am): Likewise.
55995         * modules/openat (Makefile.am): Likewise.
55996         * modules/pagealign_alloc (Makefile.am): Likewise.
55997         * modules/pathmax (Makefile.am): Likewise.
55998         * modules/physmem (Makefile.am): Likewise.
55999         * modules/poll (Makefile.am): Likewise.
56000         * modules/posixtm (Makefile.am): Likewise.
56001         * modules/posixver (Makefile.am): Likewise.
56002         * modules/putenv (Makefile.am): Likewise.
56003         * modules/quote (Makefile.am): Likewise.
56004         * modules/quotearg (Makefile.am): Likewise.
56005         * modules/raise (Makefile.am): Likewise.
56006         * modules/read-file (Makefile.am): Likewise.
56007         * modules/readline (Makefile.am): Likewise.
56008         * modules/readlink (Makefile.am): Likewise.
56009         * modules/readtokens (Makefile.am): Likewise.
56010         * modules/readutmp (Makefile.am): Likewise.
56011         * modules/realloc (Makefile.am): Likewise.
56012         * modules/regex (Makefile.am): Likewise.
56013         * modules/rename-dest-slash (Makefile.am): Likewise.
56014         * modules/rename (Makefile.am): Likewise.
56015         * modules/rijndael (Makefile.am): Likewise.
56016         * modules/rmdir (Makefile.am): Likewise.
56017         * modules/rpmatch (Makefile.am): Likewise.
56018         * modules/safe-read (Makefile.am): Likewise.
56019         * modules/safe-write (Makefile.am): Likewise.
56020         * modules/same-inode (Makefile.am): Likewise.
56021         * modules/same (Makefile.am): Likewise.
56022         * modules/save-cwd (Makefile.am): Likewise.
56023         * modules/savedir (Makefile.am): Likewise.
56024         * modules/setenv (Makefile.am): Likewise.
56025         * modules/settime (Makefile.am): Likewise.
56026         * modules/sha1 (Makefile.am): Likewise.
56027         * modules/sig2str (Makefile.am): Likewise.
56028         * modules/snprintf (Makefile.am): Likewise.
56029         * modules/stat-macros (Makefile.am): Likewise.
56030         * modules/stat-time (Makefile.am): Likewise.
56031         * modules/stdbool (Makefile.am): Likewise.
56032         * modules/stdint (Makefile.am): Likewise.
56033         * modules/stdlib-safer (Makefile.am): Likewise.
56034         * modules/stpcpy (Makefile.am): Likewise.
56035         * modules/stpncpy (Makefile.am): Likewise.
56036         * modules/strcase (Makefile.am): Likewise.
56037         * modules/strcasestr (Makefile.am): Likewise.
56038         * modules/strchrnul (Makefile.am): Likewise.
56039         * modules/strcspn (Makefile.am): Likewise.
56040         * modules/strdup (Makefile.am): Likewise.
56041         * modules/strerror (Makefile.am): Likewise.
56042         * modules/strftime (Makefile.am): Likewise.
56043         * modules/strndup (Makefile.am): Likewise.
56044         * modules/strnlen (Makefile.am): Likewise.
56045         * modules/strpbrk (Makefile.am): Likewise.
56046         * modules/strsep (Makefile.am): Likewise.
56047         * modules/strstr (Makefile.am): Likewise.
56048         * modules/strtod (Makefile.am): Likewise.
56049         * modules/strtoimax (Makefile.am): Likewise.
56050         * modules/strtok_r (Makefile.am): Likewise.
56051         * modules/strtol (Makefile.am): Likewise.
56052         * modules/strtoll (Makefile.am): Likewise.
56053         * modules/strtoul (Makefile.am): Likewise.
56054         * modules/strtoull (Makefile.am): Likewise.
56055         * modules/strtoumax (Makefile.am): Likewise.
56056         * modules/strverscmp (Makefile.am): Likewise.
56057         * modules/sys_socket (Makefile.am): Likewise.
56058         * modules/sys_stat (Makefile.am): Likewise.
56059         * modules/sysexits (Makefile.am): Likewise.
56060         * modules/time_r (Makefile.am): Likewise.
56061         * modules/timegm (Makefile.am): Likewise.
56062         * modules/timespec (Makefile.am): Likewise.
56063         * modules/tmpfile-safer (Makefile.am): Likewise.
56064         * modules/trim (Makefile.am): Likewise.
56065         * modules/unistd-safer (Makefile.am): Likewise.
56066         * modules/unlinkdir (Makefile.am): Likewise.
56067         * modules/unlocked-io (Makefile.am): Likewise.
56068         * modules/userspec (Makefile.am): Likewise.
56069         * modules/utime (Makefile.am): Likewise.
56070         * modules/utimecmp (Makefile.am): Likewise.
56071         * modules/utimens (Makefile.am): Likewise.
56072         * modules/vasnprintf (Makefile.am): Likewise.
56073         * modules/vasprintf (Makefile.am): Likewise.
56074         * modules/vsnprintf (Makefile.am): Likewise.
56075         * modules/xalloc (Makefile.am): Likewise.
56076         * modules/xgetcwd (Makefile.am): Likewise.
56077         * modules/xnanosleep (Makefile.am): Likewise.
56078         * modules/xreadlink (Makefile.am): Likewise.
56079         * modules/xstrtod (Makefile.am): Likewise.
56080         * modules/xstrtol (Makefile.am): Likewise.
56081         * modules/xstrtold (Makefile.am): Likewise.
56082         * modules/yesno (Makefile.am): Likewise.
56083         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56084
56085 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56086
56087         * modules/error (Makefile.am): Distribute files through
56088         EXTRA_DIST, not lib_SOURCES.
56089
56090 2006-10-12  Eric Blake  <ebb9@byu.net>
56091
56092         * modules/error (Makefile.am): Distribute files in /lib.
56093         * modules/obstack (Makefile.am): Likewise.
56094
56095 2006-10-12  Bruno Haible  <bruno@clisp.org>
56096
56097         * modules/acl (Makefile.am): Distribute all files in lib/ through
56098         EXTRA_DIST.
56099         * modules/arcfour (Makefile.am): Likewise.
56100         * modules/arctwo (Makefile.am): Likewise.
56101         * modules/argmatch (Makefile.am): Likewise.
56102         * modules/argz (Makefile.am): Likewise.
56103         * modules/atexit (Makefile.am): Likewise.
56104         * modules/backupfile (Makefile.am): Likewise.
56105         * modules/c-strtod (Makefile.am): Likewise.
56106         * modules/c-strtold (Makefile.am): Likewise.
56107         * modules/calloc (Makefile.am): Likewise.
56108         * modules/canon-host (Makefile.am): Likewise.
56109         * modules/canonicalize (Makefile.am): Likewise.
56110         * modules/chdir-long (Makefile.am): Likewise.
56111         * modules/chdir-safer (Makefile.am): Likewise.
56112         * modules/check-version (Makefile.am): Likewise.
56113         * modules/chown (Makefile.am): Likewise.
56114         * modules/cloexec (Makefile.am): Likewise.
56115         * modules/close-stream (Makefile.am): Likewise.
56116         * modules/closeout (Makefile.am): Likewise.
56117         * modules/crc (Makefile.am): Likewise.
56118         * modules/cycle-check (Makefile.am): Likewise.
56119         * modules/des (Makefile.am): Likewise.
56120         * modules/dirfd (Makefile.am): Likewise.
56121         * modules/dirname (Makefile.am): Likewise.
56122         * modules/dup2 (Makefile.am): Likewise.
56123         * modules/euidaccess (Makefile.am): Likewise.
56124         * modules/exclude (Makefile.am): Likewise.
56125         * modules/exitfail (Makefile.am): Likewise.
56126         * modules/fcntl-safer (Makefile.am): Likewise.
56127         * modules/file-type (Makefile.am): Likewise.
56128         * modules/fileblocks (Makefile.am): Likewise.
56129         * modules/filemode (Makefile.am): Likewise.
56130         * modules/filenamecat (Makefile.am): Likewise.
56131         * modules/fnmatch (Makefile.am): Likewise.
56132         * modules/fopen-safer (Makefile.am): Likewise.
56133         * modules/fpending (Makefile.am): Likewise.
56134         * modules/fprintftime (Makefile.am): Likewise.
56135         * modules/free (Makefile.am): Likewise.
56136         * modules/fsusage (Makefile.am): Likewise.
56137         * modules/ftruncate (Makefile.am): Likewise.
56138         * modules/fts (Makefile.am): Likewise.
56139         * modules/gc (Makefile.am): Likewise.
56140         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56141         * modules/getaddrinfo (Makefile.am): Likewise.
56142         * modules/getcwd (Makefile.am): Likewise.
56143         * modules/getdelim (Makefile.am): Likewise.
56144         * modules/getdomainname (Makefile.am): Likewise.
56145         * modules/getgroups (Makefile.am): Likewise.
56146         * modules/gethostname (Makefile.am): Likewise.
56147         * modules/gethrxtime (Makefile.am): Likewise.
56148         * modules/getline (Makefile.am): Likewise.
56149         * modules/getloadavg (Makefile.am): Likewise.
56150         * modules/getlogin_r (Makefile.am): Likewise.
56151         * modules/getopt (Makefile.am): Likewise.
56152         * modules/getpass (Makefile.am): Likewise.
56153         * modules/getpass-gnu (Makefile.am): Likewise.
56154         * modules/getsubopt (Makefile.am): Likewise.
56155         * modules/gettime (Makefile.am): Likewise.
56156         * modules/gettimeofday (Makefile.am): Likewise.
56157         * modules/getugroups (Makefile.am): Likewise.
56158         * modules/getusershell (Makefile.am): Likewise.
56159         * modules/glob (Makefile.am): Likewise.
56160         * modules/group-member (Makefile.am): Likewise.
56161         * modules/hard-locale (Makefile.am): Likewise.
56162         * modules/hash (Makefile.am): Likewise.
56163         * modules/hmac-md5 (Makefile.am): Likewise.
56164         * modules/hmac-sha1 (Makefile.am): Likewise.
56165         * modules/human (Makefile.am): Likewise.
56166         * modules/idcache (Makefile.am): Likewise.
56167         * modules/imaxabs (Makefile.am): Likewise.
56168         * modules/imaxdiv (Makefile.am): Likewise.
56169         * modules/inet_ntop (Makefile.am): Likewise.
56170         * modules/inet_pton (Makefile.am): Likewise.
56171         * modules/inttostr (Makefile.am): Likewise.
56172         * modules/isapipe (Makefile.am): Likewise.
56173         * modules/lchown (Makefile.am): Likewise.
56174         * modules/long-options (Makefile.am): Likewise.
56175         * modules/lstat (Makefile.am): Likewise.
56176         * modules/malloc (Makefile.am): Likewise.
56177         * modules/mathl (Makefile.am): Likewise.
56178         * modules/mbchar (Makefile.am): Likewise.
56179         * modules/md2 (Makefile.am): Likewise.
56180         * modules/md4 (Makefile.am): Likewise.
56181         * modules/md5 (Makefile.am): Likewise.
56182         * modules/memcasecmp (Makefile.am): Likewise.
56183         * modules/memchr (Makefile.am): Likewise.
56184         * modules/memcmp (Makefile.am): Likewise.
56185         * modules/memcoll (Makefile.am): Likewise.
56186         * modules/memcpy (Makefile.am): Likewise.
56187         * modules/memmem (Makefile.am): Likewise.
56188         * modules/memmove (Makefile.am): Likewise.
56189         * modules/mempcpy (Makefile.am): Likewise.
56190         * modules/memrchr (Makefile.am): Likewise.
56191         * modules/memset (Makefile.am): Likewise.
56192         * modules/memxor (Makefile.am): Likewise.
56193         * modules/mkancesdirs (Makefile.am): Likewise.
56194         * modules/mkdir (Makefile.am): Likewise.
56195         * modules/mkdir-p (Makefile.am): Likewise.
56196         * modules/mkdtemp (Makefile.am): Likewise.
56197         * modules/mkstemp (Makefile.am): Likewise.
56198         * modules/mktime (Makefile.am): Likewise.
56199         * modules/modechange (Makefile.am): Likewise.
56200         * modules/mountlist (Makefile.am): Likewise.
56201         * modules/nanosleep (Makefile.am): Likewise.
56202         * modules/openat (Makefile.am): Likewise.
56203         * modules/pagealign_alloc (Makefile.am): Likewise.
56204         * modules/physmem (Makefile.am): Likewise.
56205         * modules/poll (Makefile.am): Likewise.
56206         * modules/posixtm (Makefile.am): Likewise.
56207         * modules/posixver (Makefile.am): Likewise.
56208         * modules/putenv (Makefile.am): Likewise.
56209         * modules/quote (Makefile.am): Likewise.
56210         * modules/quotearg (Makefile.am): Likewise.
56211         * modules/raise (Makefile.am): Likewise.
56212         * modules/read-file (Makefile.am): Likewise.
56213         * modules/readline (Makefile.am): Likewise.
56214         * modules/readlink (Makefile.am): Likewise.
56215         * modules/readtokens (Makefile.am): Likewise.
56216         * modules/readutmp (Makefile.am): Likewise.
56217         * modules/realloc (Makefile.am): Likewise.
56218         * modules/regex (Makefile.am): Likewise.
56219         * modules/rename (Makefile.am): Likewise.
56220         * modules/rename-dest-slash (Makefile.am): Likewise.
56221         * modules/rijndael (Makefile.am): Likewise.
56222         * modules/rmdir (Makefile.am): Likewise.
56223         * modules/rpmatch (Makefile.am): Likewise.
56224         * modules/safe-read (Makefile.am): Likewise.
56225         * modules/safe-write (Makefile.am): Likewise.
56226         * modules/same (Makefile.am): Likewise.
56227         * modules/save-cwd (Makefile.am): Likewise.
56228         * modules/savedir (Makefile.am): Likewise.
56229         * modules/setenv (Makefile.am): Likewise.
56230         * modules/settime (Makefile.am): Likewise.
56231         * modules/sha1 (Makefile.am): Likewise.
56232         * modules/sig2str (Makefile.am): Likewise.
56233         * modules/snprintf (Makefile.am): Likewise.
56234         * modules/stdlib-safer (Makefile.am): Likewise.
56235         * modules/stpcpy (Makefile.am): Likewise.
56236         * modules/stpncpy (Makefile.am): Likewise.
56237         * modules/strcase (Makefile.am): Likewise.
56238         * modules/strcasestr (Makefile.am): Likewise.
56239         * modules/strchrnul (Makefile.am): Likewise.
56240         * modules/strcspn (Makefile.am): Likewise.
56241         * modules/strdup (Makefile.am): Likewise.
56242         * modules/strerror (Makefile.am): Likewise.
56243         * modules/strftime (Makefile.am): Likewise.
56244         * modules/strndup (Makefile.am): Likewise.
56245         * modules/strnlen (Makefile.am): Likewise.
56246         * modules/strpbrk (Makefile.am): Likewise.
56247         * modules/strsep (Makefile.am): Likewise.
56248         * modules/strstr (Makefile.am): Likewise.
56249         * modules/strtod (Makefile.am): Likewise.
56250         * modules/strtoimax (Makefile.am): Likewise.
56251         * modules/strtok_r (Makefile.am): Likewise.
56252         * modules/strtol (Makefile.am): Likewise.
56253         * modules/strtoll (Makefile.am): Likewise.
56254         * modules/strtoul (Makefile.am): Likewise.
56255         * modules/strtoull (Makefile.am): Likewise.
56256         * modules/strtoumax (Makefile.am): Likewise.
56257         * modules/strverscmp (Makefile.am): Likewise.
56258         * modules/time_r (Makefile.am): Likewise.
56259         * modules/timegm (Makefile.am): Likewise.
56260         * modules/tmpfile-safer (Makefile.am): Likewise.
56261         * modules/unistd-safer (Makefile.am): Likewise.
56262         * modules/unlinkdir (Makefile.am): Likewise.
56263         * modules/userspec (Makefile.am): Likewise.
56264         * modules/utime (Makefile.am): Likewise.
56265         * modules/utimecmp (Makefile.am): Likewise.
56266         * modules/utimens (Makefile.am): Likewise.
56267         * modules/vasnprintf (Makefile.am): Likewise.
56268         * modules/vasprintf (Makefile.am): Likewise.
56269         * modules/vsnprintf (Makefile.am): Likewise.
56270         * modules/xalloc (Makefile.am): Likewise.
56271         * modules/xgetcwd (Makefile.am): Likewise.
56272         * modules/xnanosleep (Makefile.am): Likewise.
56273         * modules/xreadlink (Makefile.am): Likewise.
56274         * modules/xstrtod (Makefile.am): Likewise.
56275         * modules/xstrtol (Makefile.am): Likewise.
56276         * modules/xstrtold (Makefile.am): Likewise.
56277         * modules/yesno (Makefile.am): Likewise.
56278
56279 2006-10-12  Jim Meyering  <jim@meyering.net>
56280
56281         * m4/getloadavg.m4: Revert the change below.
56282
56283         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56284         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56285         fail with a symlink, which is what coreutils' ./bootstrap now
56286         creates by default.
56287
56288 2006-10-12  Bruno Haible  <bruno@clisp.org>
56289
56290         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56291         mingw.
56292         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56293         MSVC and mingw explicitly.
56294
56295 2006-10-11  Simon Josefsson  <jas@extundo.com>
56296             Bruno Haible  <bruno@clisp.org>
56297
56298         Add support for multiple gnulib-tool invocations in the scope of a
56299         single configure.ac file.
56300         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56301         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56302         with the same contents as the _LIBADD variable.
56303         (func_emit_initmacro_start, func_emit_initmacro_end,
56304         func_emit_initmacro_done): New functions.
56305         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56306         gl_LIBOBJS and gl_LTLIBOBJS.
56307
56308 2006-10-11  Bruno Haible  <bruno@clisp.org>
56309
56310         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56311         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56312         autoreconf. Instead, invoke autopoint explicitly but move back the
56313         *.m4 files from gnulib.
56314
56315 2006-10-11  Bruno Haible  <bruno@clisp.org>
56316
56317         * gnulib-tool (func_usage): Make module names after --create-testdir
56318         optional.
56319         (func_create_testdir): If no module was specified, use nearly all
56320         modules.
56321
56322 2006-10-12  Jim Meyering  <jim@meyering.net>
56323
56324         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56325         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56326         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56327         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56328         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56329         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56330         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56331         (fts_set_stat_required): New function.
56332         (fts_open): Defer the calls to fts_stat, if possible or requested.
56333         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56334         into fts_stat itself.
56335         (fts_read): Perform any required (deferred) fts_stat call.
56336         (fts_build): Likewise, for the directory we're about to open and read.
56337         In the readdir loop, carefully decide whether each entry will require
56338         an eventual call to fts_stat, using dirent.d_type info if available.
56339         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56340         a command line argument into this function.  Update all callers.
56341         Map a return value of FTS_DOT to FTS_D for a command line argument.
56342         * modules/fts (Depends-on): Add d-type.  Alphabetize.
56343         Thanks to Miklos Szeredi for his tenacity and for the initial
56344         bug report about "find" failing on a FUSE-based file system.
56345
56346         * lib/fts.c (fts_open): Use consistent indentation.
56347
56348 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56349
56350         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
56351         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
56352         reported by Jim Meyering.  All uses of cache variables renamed
56353         to match Autoconf's.
56354         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
56355         the other one.
56356
56357         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56358         Fix misspelling in diagnostic.
56359
56360 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56361
56362         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
56363         defined.  Problem reported by Matthew Woehlke.
56364
56365         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
56366         Add support for Tandem NonStop R series.
56367         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
56368         Use new macro.
56369
56370         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
56371         (has_trailing_slash): Omit size arg; all callers changed.
56372         Omit 'inline', since it doesn't help performance and we'd
56373         need to configure it.
56374         Don't count //, ///, etc. as having a trailing slash.
56375         As a side effect, this removes a C99ism reported by Matthew Woehlke.
56376         (rpl_rename_dest_slash): On failure, use rename's errno rather
56377         than (in some cases) an incorrect or junk errno.
56378         Simplify code by removing need to compute length; this does
56379         cause it to make two passes instead of one over the file name,
56380         but it's worth it.
56381
56382         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
56383         change, since Autoconf's version may no longer be appropriate now
56384         that we are using CVS Autoconf's version.  Add support for Tandem.
56385
56386 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56387             Bruno Haible  <bruno@clisp.org>
56388
56389         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
56390         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
56391         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
56392         gl_AC_TYPE_LONG_LONG.
56393
56394         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
56395         instead of HAVE_LONG_LONG.
56396         * lib/printf-args.c (printf_fetchargs): Likewise.
56397         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
56398         * lib/vasnprintf.c (VASNPRINTF): Likewise.
56399         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
56400         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
56401         gl_AC_TYPE_LONG_LONG.
56402
56403 2006-10-11  Bruno Haible  <bruno@clisp.org>
56404
56405         * m4/longlong.m4: Add comments.
56406         * m4/ulonglong.m4: Likewise.
56407
56408 2006-10-10  Bruno Haible  <bruno@clisp.org>
56409
56410         Make it possible to #define stpcpy, strdup to aliases.
56411         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
56412         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
56413
56414 2006-10-10  Bruno Haible  <bruno@clisp.org>
56415
56416         Make it possible to #define gcd to an alias.
56417         * lib/gcd.c: Include config.h.
56418
56419 2006-10-10  Bruno Haible  <bruno@clisp.org>
56420
56421         Make it possible to #define c_isascii to an alias.
56422         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
56423         defined. Undefine the macros before defining them, to avoid gcc
56424         warnings.
56425         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
56426         define NO_C_CTYPE_MACROS early.
56427
56428 2006-10-10  Bruno Haible  <bruno@clisp.org>
56429
56430         Make it possible to #define set_program_name to an alias.
56431         * lib/progname.c: Don't undefine set_program_name; instead, undefine
56432         ENABLE_RELOCATABLE early.
56433
56434 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56435
56436         Port to Tandem NSK OSS, which has 64-bit signed int but at most
56437         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
56438         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
56439         More generally, don't assume that 64-bit signed int is available
56440         if unsigned int is, and vice versa.
56441         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
56442         unsigned symbols, not on their signed counterparts.
56443         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
56444         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
56445         (UINT64_C, UINTMAX_C):
56446         Likewise.
56447         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
56448         unsigned counterparts.
56449         (Have_long_long, Unsigned): New macros.
56450         (Int): Renamed from INT.
56451         (strtoimax): Use the new macros.
56452         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
56453         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
56454         * modules/inttypes (inttypes.h): Substitute
56455         HAVE_UNSIGNED_LONG_LONG_INT.
56456         * modules/stdint (stdint.h): Likewise.
56457         (Files): Add m4/ulonglong.m4.
56458
56459 2006-10-10  Bruno Haible  <bruno@clisp.org>
56460
56461         Fix a gcc -Wshadow warning.
56462         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
56463         to 'bucket'.
56464         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
56465         gl_linked_indexof_from_to): Likewise.
56466         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
56467         Likewise.
56468         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
56469         Likewise.
56470         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
56471         Reported by Eric Blake.
56472
56473 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
56474
56475         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
56476         for NetBSD.  Problem reported by Bruno Haible.
56477
56478 2006-10-09  Jim Meyering  <jim@meyering.net>
56479
56480         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
56481         Patch from Bruno Haible.
56482
56483 2006-10-09  Jim Meyering  <jim@meyering.net>
56484
56485         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
56486         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
56487         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
56488
56489 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56490
56491         Don't include <config.h> twice; this doesn't work in some cases,
56492         e.g., when config.h has "#define intmax_t long long int" and
56493         we include <config.h>, <inttypes.h>, <config.h> in that order.
56494         Problem reported by Matthew Woehlke in:
56495         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
56496         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
56497         * lib/fts-cycle.c: Don't include config.h.
56498         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
56499         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
56500         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
56501         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
56502         inttypes.h.
56503         * lib/xstrtoumax.c: Likewise.
56504         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
56505         __strtol and the like, so that this module is more like its siblings.
56506         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
56507         Remove; no longer needed now that we assume gnulib inttypes.h.
56508
56509 2006-10-08  Bruno Haible  <bruno@clisp.org>
56510
56511         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56512         option.
56513
56514 2006-10-07  Jim Meyering  <jim@meyering.net>
56515
56516         * modules/inttypes (inttypes.h): Revert what seems to have been
56517         an inadvertent part of today's change: use "|", not "/" in the
56518         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
56519
56520 2006-10-07  Bruno Haible  <bruno@clisp.org>
56521
56522         * modules/sublist: New file.
56523
56524 2006-10-07  Bruno Haible  <bruno@clisp.org>
56525
56526         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
56527         * modules/argz (argz.h): Likewise.
56528         * modules/arpa_inet (arpa/inet.h): Likewise.
56529         * modules/byteswap (byteswap.h): Likewise.
56530         * modules/configmake (configmake.h): Likewise.
56531         * modules/fcntl (fcntl.h): Likewise.
56532         * modules/fnmatch (fnmatch.h): Likewise.
56533         * modules/getopt (getopt.h): Likewise.
56534         * modules/glob (glob.h): Likewise.
56535         * modules/inttypes (inttypes.h): Likewise.
56536         * modules/netinet_in (netinet/in.h): Likewise.
56537         * modules/poll (poll.h): Likewise.
56538         * modules/stdbool (stdbool.h): Likewise.
56539         * modules/stdint (stdint.h): Likewise.
56540         * modules/sys_select (sys/select.h): Likewise.
56541         * modules/sys_socket (sys/socket.h): Likewise.
56542         * modules/sys_stat (sys/stat.h): Likewise.
56543         * modules/sysexits (sysexits.h): Likewise.
56544         * modules/unistd (unistd.h): Likewise.
56545         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56546         Add a "DO NOT EDIT" comment to the generated file.
56547         (func_import): Likewise for gnulib-comp.m4.
56548
56549 2006-10-07  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/gl_sublist.h: New file.
56552         * lib/gl_sublist.c: New file.
56553
56554 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56555
56556         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56557         name (relative to the original working directory) and the file
56558         name component (relative to the temporary working directory).  All
56559         callers changed.
56560         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56561         * lib/mkdir-p.c (make_dir_parents): Likewise.
56562         * lib/mkdir-p.h (make_dir_parents): Likewise.
56563
56564 2006-10-06  Eric Blake  <ebb9@byu.net>
56565
56566         Define several macros for use by the clean-temp module.
56567         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56568         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56569         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56570
56571         * lib/clean-temp.h (close_stream_temp): New declaration.
56572         * lib/clean-temp.c (includes): Pull in headers according to what
56573         other modules are in use.
56574         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56575
56576 2006-10-06  Bruno Haible  <bruno@clisp.org>
56577
56578         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56579         instead of fopen, fwriteerror.
56580
56581 2006-10-06  Bruno Haible  <bruno@clisp.org>
56582
56583         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56584         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56585         int.
56586         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56587         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56588         Return an error indicator.
56589         Suggested by Eric Blake.
56590
56591 2006-10-06  Bruno Haible  <bruno@clisp.org>
56592
56593         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56594         Reported by Eric Blake.
56595
56596 2006-10-06  Bruno Haible  <bruno@clisp.org>
56597
56598         * modules/closeout (Description): Mention stderr too.
56599
56600 2006-10-06  Bruno Haible  <bruno@clisp.org>
56601         and Paul Eggert  <eggert@cs.ucla.edu>
56602
56603         * lib/closeout.c (close_stdout): Also close stderr.
56604         * lib/closeout.h: Update comment.
56605
56606 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56607
56608         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56609         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56610         * lib/dirchownmod.c: Include lchown.h.
56611         * lib/lchown.c: Don't include files that lchown.h now includes.
56612         Don't declare chown, since lchown.h now does that.
56613         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56614         (lchown): Define to rpl_chown if lchown is declared but
56615         does not exist.  Declare using a prototype if lchown is not
56616         declared.  Add a copyright notice.
56617         * lib/mkstemp.h: Include <unistd.h>.
56618         * lib/openat.c: Include lchown.h.
56619
56620         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56621         we now test for that separately.
56622         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56623         rather than O_NOFOLLOW, when testing whether it's possible to
56624         avoid a race condition reliably.
56625         * lib/savewd.c (savewd_chdir): Likewise.
56626
56627         Remove macros that are no longer needed now that stdint.h is
56628         reliable.
56629         * lib/fsusage.c (UINTMAX_MAX): Remove.
56630         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56631         * lib/utimecmp.c (SIZE_MAX): Remove.
56632
56633         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56634
56635         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56636         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56637         O_NOATIME works.
56638
56639 2006-10-05  Bruno Haible  <bruno@clisp.org>
56640
56641         * lib/gl_list.h (gl_sortedlist_search_from_to,
56642         gl_sortedlist_indexof_from_to): New declarations.
56643         (gl_list_implementation): New fields sortedlist_search_from_to,
56644         sortedlist_indexof_from_to.
56645         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56646         inline functions.
56647         * lib/gl_list.c (gl_sortedlist_search_from_to,
56648         gl_sortedlist_indexof_from_to): New functions.
56649         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56650         function.
56651         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56652         (gl_array_sortedlist_search_from_to): New function.
56653         (gl_array_list_implementation): Update.
56654         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56655         function.
56656         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56657         (gl_carray_sortedlist_search_from_to): New function.
56658         (gl_carray_list_implementation): Update.
56659         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56660         gl_linked_sortedlist_indexof_from_to): New functions.
56661         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56662         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56663         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56664         gl_tree_sortedlist_indexof_from_to): New functions.
56665         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56666         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56667         Update.
56668         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56669         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56670         Update.
56671
56672 2006-10-05  Bruno Haible  <bruno@clisp.org>
56673
56674         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56675         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56676         (struct gl_list_implementation): Add fields search_from_to,
56677         indexof_from_to. Remove fields search, indexof.
56678         (gl_list_search): Use the search_from_to method.
56679         (gl_list_search_from, gl_list_search_from_to): New functions.
56680         (gl_list_indexof): Use the indexof_from_to method.
56681         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56682         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56683         (gl_list_search_from, gl_list_search_from_to): New functions.
56684         (gl_list_indexof): Use the indexof_from_to method.
56685         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56686         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56687         gl_array_indexof. Add start_index, end_index arguments.
56688         (gl_array_search_from_to): Renamed from gl_array_search. Add
56689         start_index, end_index arguments.
56690         (gl_array_remove, gl_array_list_implementation): Update.
56691         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56692         gl_carray_indexof. Add start_index, end_index arguments.
56693         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56694         start_index, end_index arguments.
56695         (gl_carray_remove, gl_carray_list_implementation): Update.
56696         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56697         gl_linked_search. Add start_index, end_index arguments.
56698         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56699         start_index, end_index arguments.
56700         (gl_linked_remove): Update.
56701         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56702         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56703         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56704         field to 'size_t'.
56705         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56706         gl_tree_search. Add start_index, end_index arguments.
56707         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56708         start_index, end_index arguments.
56709         (gl_tree_remove): Update.
56710         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56711         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56712         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56713         function.
56714         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56715         gl_tree_search. Add start_index, end_index arguments.
56716         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56717         start_index, end_index arguments.
56718         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56719         Update.
56720         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56721
56722 2006-10-05  Bruno Haible  <bruno@clisp.org>
56723
56724         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56725
56726         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56727         fwriteerror_temp): New declarations.
56728         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56729         (descriptors): New variable.
56730         (cleanup): First, close the descriptors.
56731         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56732         fclose_temp, fwriteerror_temp): New functions.
56733
56734 2006-10-04  Jim Meyering  <jim@meyering.net>
56735
56736         * lib/fts.c (fts_open): Tiny comment change.
56737
56738 2006-10-04  Bruno Haible  <bruno@clisp.org>
56739
56740         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56741         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56742         gl_LOCK_BODY.
56743         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56744         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56745         gl_LOCK_EARLY_BODY.
56746         (gl_LOCK): Require gl_LOCK_BODY.
56747
56748 2006-10-04  Bruno Haible  <bruno@clisp.org>
56749
56750         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56751         (gl_oset_search_atleast): New declaration.
56752         (struct gl_oset_implementation): Add field 'search_atleast'.
56753         (gl_oset_search_atleast): New inline function.
56754         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56755         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56756         (gl_array_oset_implementation): Update.
56757         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56758         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56759         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56760
56761 2006-10-04  Bruno Haible  <bruno@clisp.org>
56762
56763         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56764
56765 2006-10-03  Bruno Haible  <bruno@clisp.org>
56766
56767         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56768         from gl_avltreehash_list_implementation.
56769
56770 2006-10-03  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/gl_oset.c (gl_oset_add): Fix return type.
56773
56774 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56775
56776         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56777
56778 2006-10-02  Eric Blake  <ebb9@byu.net>
56779
56780         * modules/strnlen (Depends-on): Add extensions.
56781
56782 2006-10-02  Eric Blake  <ebb9@byu.net>
56783
56784         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56785         definition in 2.60+.
56786
56787 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56788
56789         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56790         checks.
56791
56792 2006-10-02  Bruno Haible  <bruno@clisp.org>
56793
56794         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56795         to the AUTOMAKE_OPTIONS.
56796         Reported by Jim Meyering.
56797
56798 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56799
56800         Work around bug in Solaris 10 /proc file system:
56801         /proc/self/fd/NNN/.. isn't the parent directory of
56802         the directory whose file descriptor is NNN.  This needs to
56803         be worked around at run time, not compile time, since a
56804         program might be built on Solaris 8, where things work, and
56805         run on Solaris 10.
56806         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56807         to use the following interface instead:
56808         (OPENAT_BUFFER_SIZE): New macro.
56809         (openat_proc_name): New function.
56810         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56811         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56812         Likewise.
56813         * lib/openat-proc.c: New file.
56814         * modules/openat (Files): Add lib/openat-proc.c.
56815         (Depends-on): Add same-inode, stdbool.
56816         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56817
56818 2006-09-29  Bruno Haible  <bruno@clisp.org>
56819
56820         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56821         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56822         argument. Set stdout_closed before testing for ferror, not after.
56823         (fwriteerror, fwriteerror_no_ebadf): New functions.
56824
56825 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56826
56827         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56828
56829 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56830
56831         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56832         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56833
56834 2006-09-28  Jim Meyering  <jim@meyering.net>
56835
56836         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56837         Include <unistd.h>.
56838
56839 2006-09-28  Bruno Haible  <bruno@clisp.org>
56840
56841         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56842         * modules/linkedhash-list (Depends-on): Likewise.
56843         * modules/rbtreehash-list (Depends-on): Likewise.
56844
56845 2006-09-28  Bruno Haible  <bruno@clisp.org>
56846
56847         * lib/strndup.h: Simplify the redefinition of strndup.
56848         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56849         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56850
56851 2006-09-28  Bruno Haible  <bruno@clisp.org>
56852
56853         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56854         * lib/gl_linkedhash_list.c: Likewise.
56855         * lib/gl_rbtreehash_list.c: Likewise.
56856
56857 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56858
56859         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56860         getaddrinfo.
56861
56862         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56863         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56864         it causes <stdio_ext.h> to cause a compile-time error.
56865         Problem reported by Nelson H. F. Beebe.
56866         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56867         of HAVE_DECL___PENDING.
56868
56869         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56870         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56871         declaration.
56872
56873 2006-09-27  Jim Meyering  <jim@meyering.net>
56874
56875         This file could end up with a definition for a function
56876         named __strndup, rather than rpl_strndup on a system with
56877         incomplete weak_alias support.
56878         * lib/strndup.c (strndup): Rename from __strndup.
56879         Remove #defines that used to map __strndup to strndup.
56880         Don't use K&R prototypes.
56881         Remove LIBC-related code, since this file is not sync'd with glibc.
56882         * lib/strndup.h: Revamp, accordingly.
56883         * m4/strndup.m4: Modernize.
56884
56885 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56886
56887         * modules/savewd (Depends-on): Add 'raise'.
56888         * lib/savewd.c: Include <signal.h>, for 'raise'.
56889
56890 2006-09-26  Jim Meyering  <jim@meyering.net>
56891
56892         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56893         when we detect Darwin 8.7.0's acl_get_file bug.
56894         Rearrange to perform the new (below) run-test while $LIBS
56895         contains any acl-related library.  Set USE_ACL at the end.
56896         (gl_ACL_GET_FILE): New function.
56897
56898 2006-09-26  Eric Blake  <ebb9@byu.net>
56899
56900         * lib/verror.c: Include <config.h> unconditionally.
56901
56902 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56903
56904         * modules/clock-time (Maintainer): Add self.
56905         * modules/getlogin_r (Depends-on): Add extensions.
56906
56907 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56908
56909         * modules/clock-time: New module.
56910         * modules/nanosleep (Depends-on): Add clock-time.
56911         * modules/gethrxtime (Depends-on): Likewise.
56912         * modules/gettime (Depends-on): Likewise.
56913         * modules/settime (Depends-on): Likewise.
56914
56915         * modules/fts-lgpl: Depend on openat.
56916         * modules/mkancesdirs: Depend on savewd.
56917         * modules/mkdir-p: Likewise.
56918
56919 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56920
56921         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56922
56923         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56924         `gl_have_arbitrary_file_name_length_limit' to
56925         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56926         actually works between configure runs.
56927
56928 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56929             Bruno Haible  <bruno@clisp.org>
56930
56931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56932
56933 2006-09-25  Jim Meyering  <jim@meyering.net>
56934
56935         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56936         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56937
56938 2006-09-25  Eric Blake  <ebb9@byu.net>
56939
56940         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56941         exec's in 2006-09-18 patch when shuffling fds.
56942
56943 2006-09-25  Bruno Haible  <bruno@clisp.org>
56944
56945         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56946         Reported by Jim Meyering.
56947
56948 2006-09-24  Jim Meyering  <jim@meyering.net>
56949
56950         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56951         compare a pointer against a literal "0".  That caused failures with
56952         at least HP-UX's hpcc.
56953
56954 2006-09-22  Simon Josefsson  <jas@extundo.com>
56955
56956         * modules/gc-sha1:
56957         * modules/gc-md4:
56958         * modules/gc-hmac-sha1:
56959         * modules/gc-hmac-md5:
56960         * modules/gc-des:
56961         * modules/gc-arcfour: Distribute more files.
56962
56963 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56964
56965         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56966         (gl_linked_iterator_from_to): Initialize struct completely.
56967         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56968         (gl_tree_iterator_from_to): Likewise
56969         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56970         * lib/gl_array_list.c [lint] (gl_array_iterator)
56971         (gl_array_iterator_from_to): Likewise.
56972         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56973         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56974         (gl_carray_iterator_from_to): Likewise.
56975
56976         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56977         * lib/md4.c (md4_process_block): Remove unused variable.
56978         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56979         parentheses for clarity.
56980
56981 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56982
56983         * modules/bison-i18n (Depends-on): Add gettext.
56984
56985 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56986
56987         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56988         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56989         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56990         also add missing comma that caused broken test.
56991         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56992         stdlib.h, for `abort'.
56993         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56994         variables.
56995         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56996         include unistd.h if present, for `rmdir'.
56997         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56998         variables.
56999         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57000         in the process include standard headers for prototypes.
57001         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57002         gets declared on GNU/Linux.
57003         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57004         unistd.h, for `rmdir'.
57005         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57006
57007         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57008         always true.
57009         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57010
57011         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57012
57013 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57014
57015         * gnulib-tool (func_version): Create output all at once.  This
57016         may help avoid triggering unnecessary SIGPIPEs, and at any
57017         rate it doesn't hurt.
57018
57019 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57020             Bruno Haible  <bruno@clisp.org>
57021
57022         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57023         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57024         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57025
57026         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57027         (gl_FUNC_VASPRINTF): Invoke it.
57028
57029 2006-09-22  Bruno Haible  <bruno@clisp.org>
57030
57031         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57032         getloadavg.c as first argument.
57033
57034 2006-09-22  Bruno Haible  <bruno@clisp.org>
57035
57036         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57037         at the beginning of the gl_INIT macro.
57038         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57039         gl_GETLOADAVG.
57040
57041 2006-09-22  Bruno Haible  <bruno@clisp.org>
57042
57043         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57044         module.
57045         Suggested by Ralf Wildenhues.
57046
57047 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57048
57049         Import this patch from libc:
57050
57051         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57052
57053         * lib/regex_internal.c (re_string_reconstruct): Handle
57054         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57055         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57056         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57057         re_string_context_at.
57058
57059         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57060         now requires it.
57061         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57062         gl_REGEX now does it for us.
57063         (gl_REGEX): Add test taken from
57064         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57065
57066         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57067         Check that large offsets work.  Modernize Autoconf usages.
57068         Prefer "yes" to mean a good thing rather than a bad.
57069         Don't put "#define mkstemp" in config.h, as this might interfere
57070         with standard system headers that "#define mkstemp mkstemp64".
57071
57072         * modules/mkstemp (Depends-on): Add extensions, so that
57073         mkstemp is visible on some platforms.
57074         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57075         (Include): Change to "mkstemp.h" from <stdlib.h>.
57076         (Files): Add mkstemp.h.
57077
57078         * lib/mkstemp.h: New file, since some standard headers
57079         #define mkstemp.
57080         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57081         Include "mkstemp.h".
57082         Make the _LIBC code resemble glibc original more,
57083         e.g., use K&R style.
57084         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57085         (mkstemp): Remove, since mkstemp.h does this for us.
57086         * lib/stdlib--.h: Include mkstemp.h.
57087
57088         Import this patch from libc:
57089
57090         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57091
57092         * lib/tempname.c (__gen_tempname): Change attempts_min
57093         into a macro.  Use preprocessor to decide how to initialize
57094         attempts [Coverity CID 67].
57095
57096 2006-09-20  Bruno Haible  <bruno@clisp.org>
57097
57098         * lib/mkdtemp.c: Import from libc.
57099         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57100                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57101                 attempts_min into a macro.  Use preprocessor to decide how to
57102                 initialize attempts [Coverity CID 67].
57103         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57104                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57105                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57106
57107 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57108
57109         * gnulib-tool (func_exit): New function, to allow to pass the
57110         exit status portably through the trap.  Use everywhere.
57111         (--help, --version): Signal a write error.
57112         (trap): catch SIGPIPE, for write errors.
57113         Exit at the end of the trap, with the correct exit status.
57114
57115 2006-09-19  Karl Berry  <karl@gnu.org>
57116
57117         * doc/gnulib.texi: note about the license texinfo files.
57118
57119 2006-09-19  Eric Blake  <ebb9@byu.net>
57120
57121         * gnulib-tool: Avoid space-tab.
57122
57123 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57124
57125         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57126         that prevented coreutils 6.1 from building.  Problem reported
57127         by Petter Reinholdtsen.
57128
57129 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57130
57131         * gnulib-tool (avoidlist): Fix typo that broke options like
57132         --avoid=lock that are used by coreutils bootstrap.
57133
57134 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57135
57136         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57137         more systematically.
57138
57139 2006-09-18  Jim Meyering  <jim@meyering.net>
57140
57141         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57142
57143 2006-09-18  Bruno Haible  <bruno@clisp.org>
57144
57145         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57146
57147 2006-09-18  Bruno Haible  <bruno@clisp.org>
57148
57149         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57150         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57151         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57152         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57153         * m4/gettext.m4: Require autoconf >= 2.52.
57154         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57155         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57156         of gl_cv_header_inttypes_h.
57157
57158 2006-09-18  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/javaversion.c: Include configmake.h.
57161
57162 2006-09-18  Bruno Haible  <bruno@clisp.org>
57163
57164         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57165         avoid that the while loops be executed in a subshell.
57166
57167 2006-09-18  Bruno Haible  <bruno@clisp.org>
57168
57169         * MODULES.html.sh (func_module): Break long lines.
57170         Suggested by Bruce Korb <bkorb@gnu.org>.
57171
57172 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57173
57174         Speed up by a factor of 1.12.
57175         * gnulib-tool (nl): New variable.
57176         (func_import): Rewrite include directive extraction to only read each
57177         directive once.
57178
57179 2006-09-17  Bruno Haible  <bruno@clisp.org>
57180
57181         * modules/javaversion (Makefile.am): Remove DEFS setting.
57182         (Depends-on): Add configmake, for PKGDATADIR definition.
57183
57184 2006-09-17  Bruno Haible  <bruno@clisp.org>
57185
57186         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57187
57188 2006-09-17  Bruno Haible  <bruno@clisp.org>
57189
57190         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57191         (func_modules_transitive_closure, func_modules_add_dummy,
57192         func_modules_to_filelist, func_import, func_create_testdir,
57193         func_create_megatestdir, ...): Use it wherever possible.
57194         Suggested by Ralf Wildenhues.
57195
57196 2006-09-16  Karl Berry  <karl@gnu.org>
57197
57198         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57199         to avoid sectioning errors.
57200         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57201         [ifinfo]: blank line after @center-ed titles.
57202         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57203         Spell FSF address consistently with others.
57204         (These changes approved by rms.)
57205
57206 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57207
57208         Speed up by a factor of 1.61.
57209         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57210         already checked module names again.
57211
57212 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57213
57214         Speed up by a factor of 1.13.
57215         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57216         for new_files, and the input to func_add_or_update.
57217
57218 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57219
57220         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57221         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57222
57223 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57224
57225         * modules/mkancesdirs (Depends-on): Add fcntl.
57226         * modules/savewd: New file.
57227         * MODULES.html.sh (File system functions): Add savewd.
57228
57229         * modules/configmake (Makefile.am): Add support for the
57230         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57231
57232 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57233
57234         * m4/savewd.m4: New file.
57235
57236 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57237
57238         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57239         (dirchownmod): New arg FD.  All callers changed.
57240         Use FD rather than opening the directory ourself, as opening is
57241         now the caller's responsibility.
57242         * lib/dirchownmod.h: Likewise.
57243         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57244         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57245         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57246         (test_dir): Remove.
57247         (mkancesdirs): Return length of prefix of FILE that has already
57248         been made, or -2 if there is a child doing the work.  Redo
57249         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57250         ".", and treat ".." specially since it might stray back into
57251         already-created areas.  Use a subprocess if necessary.  New arg
57252         WD; all users changed.  MAKE_DIR function should now return 1
57253         if it creates a directory that is not readable.  Return -2 if
57254         a child process is spun off.
57255         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57256         Adjust signature to match code.
57257         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57258         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57259         all users changed.
57260         * lib/savewd.c, lib/savewd.h: New files.
57261
57262 2006-09-15  Jim Meyering  <jim@meyering.net>
57263
57264         * modules/rename-dest-slash: New module.
57265         * MODULES.html.sh (posix_compat): Add it here.
57266
57267         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57268
57269 2006-09-15  Jim Meyering  <jim@meyering.net>
57270
57271         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57272         file.
57273
57274         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57275
57276 2006-09-15  Jim Meyering  <jim@meyering.net>
57277
57278         * lib/rename-dest-slash.c (has_trailing_slash): Use
57279         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57280         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57281         test before testing whether SRC is a directory.
57282         Suggestions from Bruno Haible.
57283
57284         Avoid a warning about an unused variable.
57285         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57286         into the #ifdef block where it's used.
57287
57288         * lib/rename-dest-slash.c: New file.
57289
57290 2006-09-14  Bruno Haible  <bruno@clisp.org>
57291
57292         * lib/allocsa.c: Include <config.h> unconditionally.
57293         * lib/asnprintf.c: Likewise.
57294         * lib/asprintf.c: Likewise.
57295         * lib/c-strcasecmp.c: Likewise.
57296         * lib/c-strcasestr.c: Likewise.
57297         * lib/c-strncasecmp.c: Likewise.
57298         * lib/c-strstr.c: Likewise.
57299         * lib/classpath.c: Likewise.
57300         * lib/clean-temp.c: Likewise.
57301         * lib/concatpath.c: Likewise.
57302         * lib/copy-file.c: Likewise.
57303         * lib/csharpcomp.c: Likewise.
57304         * lib/csharpexec.c: Likewise.
57305         * lib/execute.c: Likewise.
57306         * lib/fatal-signal.c: Likewise.
57307         * lib/findprog.c: Likewise.
57308         * lib/fwriteerror.c: Likewise.
57309         * lib/gl_array_list.c: Likewise.
57310         * lib/gl_array_oset.c: Likewise.
57311         * lib/gl_avltree_list.c: Likewise.
57312         * lib/gl_avltree_oset.c: Likewise.
57313         * lib/gl_avltreehash_list.c: Likewise.
57314         * lib/gl_carray_list.c: Likewise.
57315         * lib/gl_linked_list.c: Likewise.
57316         * lib/gl_linkedhash_list.c: Likewise.
57317         * lib/gl_list.c: Likewise.
57318         * lib/gl_oset.c: Likewise.
57319         * lib/gl_rbtree_list.c: Likewise.
57320         * lib/gl_rbtree_oset.c: Likewise.
57321         * lib/gl_rbtreehash_list.c: Likewise.
57322         * lib/imaxabs.c: Likewise.
57323         * lib/imaxdiv.c: Likewise.
57324         * lib/javacomp.c: Likewise.
57325         * lib/javaexec.c: Likewise.
57326         * lib/javaversion.c: Likewise.
57327         * lib/linebreak.c: Likewise.
57328         * lib/localcharset.c: Likewise.
57329         * lib/lock.c: Likewise.
57330         * lib/mbchar.c: Likewise.
57331         * lib/mbswidth.c: Likewise.
57332         * lib/mkdtemp.c: Likewise.
57333         * lib/pipe.c: Likewise.
57334         * lib/printf-args.c: Likewise.
57335         * lib/printf-parse.c: Likewise.
57336         * lib/progname.c: Likewise.
57337         * lib/progreloc.c: Likewise.
57338         * lib/readlink.c: Likewise.
57339         * lib/sh-quote.c: Likewise.
57340         * lib/stpcpy.c: Likewise.
57341         * lib/stpncpy.c: Likewise.
57342         * lib/strcasecmp.c: Likewise.
57343         * lib/strcasestr.c: Likewise.
57344         * lib/strcspn.c: Likewise.
57345         * lib/striconv.c: Likewise.
57346         * lib/strncasecmp.c: Likewise.
57347         * lib/strnlen1.c: Likewise.
57348         * lib/strstr.c: Likewise.
57349         * lib/strtok_r.c: Likewise.
57350         * lib/tls.c: Likewise.
57351         * lib/tmpdir.c: Likewise.
57352         * lib/unicodeio.c: Likewise.
57353         * lib/unsetenv.c: Likewise.
57354         * lib/vasnprintf.c: Likewise.
57355         * lib/vasprintf.c: Likewise.
57356         * lib/wait-process.c: Likewise.
57357         * lib/xallocsa.c: Likewise.
57358         * lib/xsetenv.c: Likewise.
57359         * lib/xstriconv.c: Likewise.
57360
57361 2006-09-13  Simon Josefsson  <jas@extundo.com>
57362
57363         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
57364         that internally, suggested by Ralf Wildenhues
57365         <Ralf.Wildenhues@gmx.de>.
57366
57367 2006-09-13  Simon Josefsson  <jas@extundo.com>
57368
57369         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
57370         @LIBOBJS@.
57371         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57372
57373 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57374
57375         * lib/_fpending.c: Include <config.h> unconditionally, since we no
57376         longer worry about uses that don't define HAVE_CONFIG_H.
57377         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
57378         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
57379         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
57380         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
57381         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
57382         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
57383         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
57384         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
57385         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
57386         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
57387         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
57388         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
57389         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
57390         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
57391         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
57392         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
57393         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
57394         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
57395         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
57396         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
57397         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
57398         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
57399         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
57400         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
57401         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
57402         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
57403         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
57404         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
57405         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
57406         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
57407         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
57408         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
57409         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
57410         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
57411         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
57412         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
57413         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
57414         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
57415         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
57416         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
57417         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
57418         Likewise.
57419
57420 2006-09-13  Eric Blake  <ebb9@byu.net>
57421
57422         * lib/getopt.c: Fix typo in last commit.
57423
57424 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57425
57426         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
57427         dgettext.
57428
57429 2006-09-12  Jim Meyering  <jim@meyering.net>
57430
57431         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
57432         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
57433         Reported by Nelson H. F. Beebe.
57434
57435 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57436
57437         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
57438         program_invocation_name and program_invocation_short_name are
57439         initialized.
57440         * lib/argp-namefrob.h: Move declarations of program_invocation_name
57441         and program_invocation_short_name to argp.h, so they are visible
57442         to user programs.
57443         * lib/argp.h: Likewise
57444
57445 2006-09-10  Bruno Haible  <bruno@clisp.org>
57446
57447         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57448         m4/inttypes_h.m4, m4/uintmax_t.m4.
57449
57450 2006-09-10  Bruno Haible  <bruno@clisp.org>
57451
57452         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
57453         gl_AC_TYPE_UINTMAX_T.
57454
57455 2006-09-10  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
57458
57459 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57460
57461         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
57462         convention.  Text proposed by Bruno Haible.
57463         (struct argp_option): Document the use of N_() wrappers.
57464
57465         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
57466         '\v', and translate the two parts separately, instead of feeding
57467         the whole string to gettext.  This allows to exclude
57468         '\v' from the strings visible to the translator by writing doc
57469         strings as N_("..") "\v" N_("..").
57470
57471 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
57472
57473         * config/srclist.txt: Undo latest change; the bug was fixed.
57474
57475 2006-09-09  Bruno Haible  <bruno@clisp.org>
57476
57477         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
57478         assignments if building a library without libtool.
57479         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
57480         in func_emit_lib_Makefile_am.
57481         (func_import): When building a static library libfoo.a, arrange to
57482         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
57483         (func_create_testdir): Likewise.
57484         * modules/gc (configure.ac, Makefile.am): If building statically,
57485         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
57486         * modules/iconvme (configure.ac, Makefile.am): Likewise.
57487         * modules/striconv (configure.ac, Makefile.am): Likewise.
57488         Based on a suggestion by Ralf Wildenhues.
57489
57490 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57491
57492         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57493         Check for unistd.h too, since Autoconf doesn't assume POSIX.
57494         Also:
57495
57496         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57497         Add year_2050_test to catch glibc bug 2821
57498         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57499
57500         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57501         Prefer #ifdef to #if.
57502
57503         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
57504         Return from 'main' instead of calling 'exit'.
57505
57506 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57507
57508         * lib/mktime.c (guess_time_tm): Fix bug where mktime
57509         returned the maximum time_t value rather than (time_t) -1.
57510         Problem originally reported by William Bardwell
57511         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57512
57513         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57514         Moved to here ...
57515         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57516         ... from here.
57517
57518 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57519
57520         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
57521         2821 is fixed.
57522
57523 2006-09-08  Jim Meyering  <jim@meyering.net>
57524
57525         Don't make generated files read-only.  That would bother too many
57526         people.  However, do retain the ability to work when targets are
57527         read-only: remove the destination and temporary files before writing
57528         them (when generated via sed or echo), or by using the -f option for
57529         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
57530         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57531         * modules/byteswap, modules/configmake, modules/fcntl:
57532         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57533         * modules/localcharset, modules/netinet_in, modules/poll:
57534         * modules/stdbool, modules/stdint, modules/sys_select:
57535         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57536
57537 2006-09-08  Jim Meyering  <jim@meyering.net>
57538
57539         Avoid new build failure on FreeBSD 6.0.
57540         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
57541         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
57542         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
57543
57544 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57545
57546         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
57547
57548 2006-09-07  Jim Meyering  <jim@meyering.net>
57549
57550         Fix global typo in last change: use chmod u-w, not chmod u-x.
57551         Spotted by Paul Eggert and Bruce Korb.
57552         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57553         * modules/byteswap, modules/configmake, modules/fcntl:
57554         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57555         * modules/localcharset, modules/netinet_in, modules/poll:
57556         * modules/stdbool, modules/stdint, modules/sys_select:
57557         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57558
57559 2006-09-06  Jim Meyering  <jim@meyering.net>
57560
57561         Make generated files be read-only.
57562         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57563         Ensure that each generated file is now read-only.
57564         * modules/argz: Likewise.
57565         * modules/arpa_inet: Likewise.
57566         * modules/byteswap: Likewise.
57567         * modules/configmake: Likewise.
57568         * modules/fcntl: Likewise.
57569         * modules/fnmatch: Likewise.
57570         * modules/getopt: Likewise.
57571         * modules/glob: Likewise.
57572         * modules/inttypes: Likewise.
57573         * modules/netinet_in: Likewise.
57574         * modules/poll: Likewise.
57575         * modules/stdbool: Likewise.
57576         * modules/stdint: Likewise.
57577         * modules/sys_select: Likewise.
57578         * modules/sys_socket: Likewise.
57579         * modules/sys_stat: Likewise.
57580         * modules/sysexits: Likewise.
57581         * modules/localcharset: Same as above, but continue using temporary
57582         file named "t-$@" (why different?) rather than the "$@-t" used
57583         everywhere else.
57584
57585         * modules/sysexits (Makefile.am): Replace literal occurrences
57586         of "sysexit.h" more readable, and more consistent, "$@".
57587
57588 2006-09-06  Bruno Haible  <bruno@clisp.org>
57589
57590         * modules/striconv: New file.
57591         * modules/xstriconv: New file.
57592         * MODULES.html.sh (Internationalization functions): Add striconv,
57593         xstriconv.
57594
57595 2006-09-06  Bruno Haible  <bruno@clisp.org>
57596
57597         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57598         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57599         not using libtool correctly.
57600
57601 2006-09-06  Bruno Haible  <bruno@clisp.org>
57602
57603         * lib/striconv.h: New file.
57604         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57605         iconvstring.c.
57606         * lib/xstriconv.h: New file.
57607         * lib/xstriconv.c: New file.
57608
57609 2006-09-06  Bruno Haible  <bruno@clisp.org>
57610
57611         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57612         lib_..._LDFLAGS.
57613
57614 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57615
57616         * lib/argz_.h: Sync from Libtool.
57617
57618         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57619                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57620
57621         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57622
57623 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57624
57625         * modules/trim: New file.
57626
57627 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57628
57629         * lib/trim.h: New file.
57630         * lib/trim.c: New file.
57631
57632 2006-09-05  Bruno Haible  <bruno@clisp.org>
57633
57634         * MODULES.html.sh (String handling): Add trim.
57635
57636 2006-09-04  Karl Berry  <karl@gnu.org>
57637
57638         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57639         until next release.
57640
57641 2006-09-03  Bruno Haible  <bruno@clisp.org>
57642
57643         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57644         correctly.
57645
57646 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57647
57648         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57649         not gl_GETLOADAVG.  Omit unneeded semicolons.
57650         Problems reported by Ralf Wildenhues in
57651         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57652         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57653         at the end, which is the usual gnulib style.
57654
57655         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57656         of doing all the work ourselves.
57657         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57658         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57659
57660 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57661
57662         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57663         Problem reported by Ralf Wildenhues in
57664         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57665
57666         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57667         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57668
57669 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57670
57671         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57672         yesterday's patch by changing test -n to test -z.
57673
57674 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57675
57676         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57677         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57678         the former is now obsolescent.
57679
57680         * modules/chdir-long (Depends-on): Add fcntl.
57681
57682 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57683
57684         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57685         obsolescent, and programs should use gnulib instead.
57686         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57687         but with prefixes changed.
57688
57689 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57690
57691         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57692         or stdbool.h, because they might not exist while configuring.
57693
57694         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57695         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57696         does that for us.
57697         (O_DIRECTORY): Remove.
57698
57699 2006-08-31  Eric Blake  <ebb9@byu.net>
57700
57701         * gnulib-tool: Don't let emacs change spaces to TAB.
57702
57703 2006-08-31  Bruno Haible  <bruno@clisp.org>
57704
57705         * gnulib-tool: When calling func_import more than once, do it in a
57706         subshell.
57707         Reported by Eric Blake <ebb9@byu.net>.
57708
57709 2006-08-31  Bruno Haible  <bruno@clisp.org>
57710
57711         * gnulib-tool (nl): Remove variable.
57712         (sed_transform_lib_file): Use more robust test for config-h module.
57713         (func_import): Fix typo in 2006-08-25 patch.
57714
57715 2006-08-31  Bruno Haible  <bruno@clisp.org>
57716
57717         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57718         specified, augment Makefile.am variables instead of assigning them.
57719
57720 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57721
57722         Work around a bug in both the Linux and SunOS 64-bit kernels:
57723         nanosleep mishandles sleeps for longer than 2**31 seconds.
57724         Problem reported by Frank v Waveren in
57725         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57726         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57727         Check for nanosleep bug.
57728         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57729
57730 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57731
57732         Work around a bug in both the Linux and SunOS 64-bit kernels:
57733         nanosleep mishandles sleeps for longer than 2**31 seconds.
57734         Problem reported by Frank v Waveren in
57735         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57736         * lib/nanosleep.c (BILLION): New constant.
57737         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57738         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57739         implementation.
57740
57741 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57742
57743         * modules/nanosleep (Depends-on): Add gettime.
57744
57745 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57746         and Simon Josefsson  <jas@extundo.com>
57747         and Oskar Liljeblad  <oskar@osk.mine.nu>
57748
57749         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57750         * gnulib-tool (func_import): New license type 'unmodifiable license
57751         text'.
57752         * modules/fdl: Use it.  Longer description.
57753         * module/gpl, module/lgpl: New files.
57754
57755 2006-08-30  Jim Meyering  <jim@meyering.net>
57756
57757         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57758         shadowing the parameter.
57759
57760 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57761
57762         Sync from Libtool:
57763
57764         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57765
57766         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57767         sharing with gnulib.  Report by Eric Blake.
57768
57769 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57770
57771         * modules/isapipe: New file.
57772         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57773
57774 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57775
57776         * modules/configmake (Makefile.am): Add a comment, and omit
57777         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57778         by Bruno Haible.
57779
57780 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57781
57782         * m4/isapipe.m4: New file.
57783
57784 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57785
57786         * lib/isapipe.c, lib/isapipe.h: New files.
57787
57788 2006-08-29  Jim Meyering  <jim@meyering.net>
57789
57790         * modules/configmake (Makefile.am): Make configmake.h depend on
57791         Makefile.  Otherwise, a stale configmake.h could hang around.
57792
57793 2006-08-29  Eric Blake  <ebb9@byu.net>
57794
57795         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57796         resolution of upstream bug 3044.
57797
57798 2006-08-29  Bruno Haible  <bruno@clisp.org>
57799
57800         * modules/localcharset (Depends-on): Add configmake.
57801         (Makefile.am): Remove setting of LIBDIR through DEFS.
57802
57803 2006-08-29  Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57806         defined.
57807
57808 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * modules/fcntl: New file.
57811         * modules/chdir-safer (Depends-on): Add fcntl.
57812         * modules/fts: Likewise.
57813         * modules/mkdir-p: Likewise.
57814
57815         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57816         This undoes the most recent change, since we're now addressing the
57817         problem in a different way.
57818
57819         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57820         into output, since the output might be called Makefile.am even
57821         if $makefile_name is something different.
57822         (func_import): Use $makefile_am rather than
57823         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57824         empty.
57825
57826         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57827
57828 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57829
57830         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57831         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57832         recent change to stdint.m4, since we're now addressing the problem in a
57833         different way.
57834
57835 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57836
57837         * m4/fcntl_h.m4: New file.
57838
57839 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57840
57841         * lib/fcntl_.h: New file.
57842         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57843         the fcntl module.
57844         * lib/dirchownmod.c: Likewise.
57845         * lib/fts.c: Likewise.
57846
57847         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57848         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57849         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57850         just before including <inttypes.h>, to avoid circular inclusion.
57851
57852 2006-08-28  Jim Meyering  <jim@meyering.net>
57853
57854         * doc/visibility.texi: Actually read and correct the grammar of the
57855         sentence affected by yesterday's change.
57856
57857 2006-08-28  Eric Blake  <ebb9@byu.net>
57858
57859         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57860         needs wrapper.
57861
57862 2006-08-28  Eric Blake  <ebb9@byu.net>
57863
57864         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57865
57866 2006-08-28  Eric Blake  <ebb9@byu.net>
57867
57868         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57869
57870 2006-08-28  Bruno Haible  <bruno@clisp.org>
57871
57872         * modules/c-strstr: New file, from GNU gettext.
57873         * MODULES.html.sh (String handling): Add c-strstr.
57874
57875 2006-08-28  Bruno Haible  <bruno@clisp.org>
57876
57877         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57878         macros.
57879         Reported by Eric Blake.
57880
57881 2006-08-28  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57884         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57885         * lib/vasprintf.c: Include errno.h, limits.h.
57886         (EOVERFLOW): New fallback definition.
57887         (vasprintf): Test here whether the string length is > INT_MAX.
57888         * lib/vsnprintf.c: Include errno.h, limits.h.
57889         (EOVERFLOW): New fallback definition.
57890         (vsnprintf): Fix bug when generated string was too long for the buffer.
57891         Test here whether the string length is > INT_MAX.
57892
57893 2006-08-28  Bruno Haible  <bruno@clisp.org>
57894
57895         * lib/inttypes_.h (SCNX*): Remove definitions.
57896         Reported by Eric Blake.
57897
57898 2006-08-28  Bruno Haible  <bruno@clisp.org>
57899
57900         * lib/c-strstr.h: New file, from GNU gettext.
57901         * lib/c-strstr.c: New file, from GNU gettext.
57902
57903 2006-08-28  Bruno Haible  <bruno@clisp.org>
57904
57905         * gnulib-tool: Reorder some statements.
57906
57907 2006-08-28  Bruno Haible  <bruno@clisp.org>
57908
57909         * gnulib-tool: New option --makefile-name.
57910         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57911         $makefile_name.
57912         (func_import): Write $makefile_name to the cache file, and read it from
57913         there unless explicitly specified. Use $makefile_name as file name
57914         instead of Makefile.am. Adjust the recommendations accordingly.
57915
57916 2006-08-28  Bruno Haible  <bruno@clisp.org>
57917
57918         * gnulib-tool (func_verify_module): Check against misapplying patch.
57919
57920 2006-08-28  Bruno Haible  <bruno@clisp.org>
57921
57922         * gnulib-tool (func_relativize, func_relconcat): New functions.
57923         Give an error if --local-dir is given with --update.
57924         Remove trailing slashes from $local_gnulib_dir.
57925         (func_import): Store the relativized $local_gnulib_dir in
57926         gnulib-cache.m4, and read it from there if not specified explicitly.
57927
57928 2006-08-28  Bruno Haible  <bruno@clisp.org>
57929
57930         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57931         is the current directory. Respect also $local_gnulib_dir.
57932
57933 2006-08-28  Bruno Haible  <bruno@clisp.org>
57934             Simon Josefsson  <jas@extundo.com>
57935
57936         BeOS portability.
57937         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57938
57939 2006-08-27  Jim Meyering  <jim@meyering.net>
57940
57941         * doc/visibility.texi: Remove duplicate word: "pointer".
57942
57943 2006-08-26  Bruno Haible  <bruno@clisp.org>
57944
57945         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57946         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57947         (Makefile.am): Create inttypes.h from inttypes_.h.
57948         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57949
57950         * modules/imaxabs: New file.
57951
57952         * modules/imaxdiv: New file.
57953
57954 2006-08-26  Bruno Haible  <bruno@clisp.org>
57955
57956         * m4/inttypes.m4: New file.
57957         * m4/_inttypes_h.m4: Remove file.
57958         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57959         PRI_MACROS_BROKEN.
57960         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57961
57962         * m4/imaxabs.m4: New file.
57963
57964         * m4/imaxdiv.m4: New file.
57965
57966 2006-08-26  Bruno Haible  <bruno@clisp.org>
57967
57968         * lib/inttypes_.h: New file.
57969         * lib/inttypes.h: Remove file.
57970         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57971
57972         * lib/imaxabs.c: New file.
57973
57974         * lib/imaxdiv.c: New file.
57975
57976 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57977
57978         New config-h module, so that "make" output needn't be cluttered
57979         by -DHAVE_CONFIG_H.
57980         * MODULES.html.sh (Support for building libraries and executables):
57981         Add config-h.
57982         * modules/config-h: New file.
57983         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57984         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57985         the config-h module is used.
57986
57987         New configmake module, so that "make" output needn't be cluttered
57988         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57989         * MODULES.html.sh (Support for building libraries and executables):
57990         Add configmake.
57991         * modules/configmake: New file.
57992
57993 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57994
57995         * m4/config-h.m4: New file.
57996
57997 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57998
57999         * config/srclist.txt: Add elisp-comp.
58000
58001 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58002
58003         * MODULES.html.sh (Support for building libraries and executables):
58004         Add elisp-comp.
58005         * build-aux/elisp-comp: New file.
58006         * modules/elisp-comp: New file.
58007
58008 2006-08-24  Bruno Haible  <bruno@clisp.org>
58009
58010         * gnulib-tool (func_create_testdir): Use non-default values of
58011         sourcebase and m4base.
58012
58013 2006-08-24  Bruno Haible  <bruno@clisp.org>
58014
58015         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58016         HTML structure.
58017
58018 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58019
58020         * modules/openat (Depends-on): Add lchown.
58021
58022 2006-08-23  Bruno Haible  <bruno@clisp.org>
58023
58024         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58025         of gl_LOCK_EARLY instead of gl_LOCK.
58026
58027 2006-08-23  Bruno Haible  <bruno@clisp.org>
58028
58029         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58030         on OSF/1 to no.
58031         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58032
58033 2006-08-23  Bruno Haible  <bruno@clisp.org>
58034
58035         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58036         as unusable.
58037
58038         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58039         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58040         (gl_LOCK): New macro.
58041
58042 2006-08-22  Simon Josefsson  <jas@extundo.com>
58043
58044         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58045         to md5 module.
58046
58047 2006-08-22  Simon Josefsson  <jas@extundo.com>
58048
58049         * MODULES.html.sh: Add "Support for maintaining and release
58050         projects".
58051
58052         * build-aux/gnupload: New file, from coreutils.
58053
58054 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58055
58056         Avoid the need for AC_LIBSOURCES in m4 macros.
58057         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58058         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58059         * modules/check-version (EXTRA_DIST): Add check-version.h.
58060         * modules/crc (EXTRA_DIST): Add crc.h.
58061         * modules/des (EXTRA_DIST): Add des.h.
58062         * modules/gc (EXTRA_DIST): Add gc.h.
58063         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58064         * modules/getline (EXTRA_DIST): Add getline.h.
58065         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58066         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58067         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58068         * modules/md2 (EXTRA_DIST): Add md2.h.
58069         * modules/md4 (EXTRA_DIST): Add md4.h.
58070         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58071         * modules/read-file (EXTRA_DIST): Add read-file.h.
58072         * modules/readline (EXTRA_DIST): Add readline.h.
58073         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58074         rijndael-api-fst.h.
58075
58076 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         * m4/rijndael.m4 (gl_ARCFOUR):
58079         * m4/arctwo.m4 (gl_ARCTWO):
58080         * m4/check-version.m4 (gl_CHECK_VERSION):
58081         * m4/crc.m4 (gl_CRC):
58082         * m4/des.m4 (gl_DES):
58083         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58084         * m4/gc.m4 (gl_GC):
58085         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58086         * m4/getline.m4 (gl_FUNC_GETLINE):
58087         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58088         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58089         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58090         * m4/md2.m4 (gl_MD2):
58091         * m4/md4.m4 (gl_MD4):
58092         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58093         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58094         * m4/readline.m4 (gl_FUNC_READLINE):
58095         * m4/rijndael.m4 (gl_RIJNDAEL):
58096         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58097         to get the necessary .h files and whatnot.
58098
58099 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58100
58101         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58102         gnulib rather than the other way around.
58103         * config/srclistvars.sh (COREUTILS): Remove.
58104
58105 2006-08-22  Jim Meyering  <jim@meyering.net>
58106
58107         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58108
58109         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58110
58111 2006-08-22  Eric Blake  <ebb9@byu.net>
58112
58113         * modules/regexprops-generic: New file.
58114         * MODULES.html.sh (Support for building documentation): List it.
58115
58116 2006-08-22  Eric Blake  <ebb9@byu.net>
58117
58118         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58119         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58120         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58121         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58122
58123 2006-08-22  Bruno Haible  <bruno@clisp.org>
58124
58125         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58126         and lib_LTLIBRARIES like the other lib_* variables.
58127
58128 2006-08-22  Bruno Haible  <bruno@clisp.org>
58129
58130         * build-aux/x-to-1.in: New file, from GNU gettext.
58131
58132 2006-08-22  Bruno Haible  <bruno@clisp.org>
58133
58134         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58135         <utmpx.h> exists.
58136
58137 2006-08-22  Bruno Haible  <bruno@clisp.org>
58138
58139         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58140         <utmpx.h> exists.
58141
58142 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58143
58144         BeOS portability.
58145         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58146         exist.
58147         Problem reported by Bruno Haible.
58148
58149 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         Avoid the need for AC_LIBSOURCES in m4 macros.
58152         * modules/acl (EXTRA_DIST): Add acl.h.
58153         * modules/argmatch (Files): Add m4/argmatch.m4.
58154         (configure.ac): Add gl_ARGMATCH.
58155         (EXTRA_DIST): Renamed from lib_SOURCES, for
58156         consistency with the other modules.  Remove argmatch.c.
58157         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58158         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58159         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58160         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58161         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58162         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58163         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58164         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58165         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58166         * modules/closeout (EXTRA_DIST): Add closeout.h.
58167         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58168         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58169         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58170         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58171         dirname.h; remove basename.c and stripslash.c.
58172         * modules/exclude (EXTRA_DIST): Add exclude.h.
58173         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58174         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58175         * modules/file-type (EXTRA_DIST): Add file-type.h.
58176         * modules/filemode (EXTRA_DIST): Add filemode.h.
58177         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58178         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58179         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58180         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58181         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58182         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58183         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58184         * modules/getdate (EXTRA_DIST): Add getdate.c.
58185         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58186         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58187         * modules/getpass (EXTRA_DIST): Add getpass.h.
58188         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58189         * modules/group-member (EXTRA_DIST): Add group-member.h.
58190         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58191         * modules/hash (EXTRA_DIST): Add hash.h.
58192         * modules/human (EXTRA_DIST): Add human.h.
58193         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58194         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58195         * modules/lchown (EXTRA_DIST): Add lchown.h.
58196         * modules/long-options (EXTRA_DIST): Add long-options.h.
58197         * modules/lstat (EXTRA_DIST): Add lstat.h.
58198         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58199         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58200         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58201         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58202         * modules/memxor (EXTRA_DIST): Add memxor.h.
58203         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58204         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58205         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58206         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58207         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58208         * modules/physmem (EXTRA_DIST): Add physmem.h.
58209         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58210         * modules/posixver (EXTRA_DIST): Add posixver.h.
58211         * modules/quote (EXTRA_DIST): Add quote.h.
58212         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58213         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58214         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58215         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58216         regex_internal.h regexec.c.
58217         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58218         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58219         * modules/same (EXTRA_DIST): Add same.h.
58220         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58221         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58222         * modules/savedir (EXTRA_DIST): Add savedir.h.
58223         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58224         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58225         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58226         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58227         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58228         * modules/strdup (EXTRA_DIST): Add strdup.h.
58229         * modules/strftime (EXTRA_DIST): Add strftime.h.
58230         * modules/strndup (EXTRA_DIST): Add strndup.h.
58231         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58232         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58233         * modules/time_r (EXTRA_DIST): Add time_r.h.
58234         * modules/timespec (EXTRA_DIST): Add timespec.h.
58235         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58236         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58237         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58238         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58239         * modules/userspec (EXTRA_DIST): Add userspec.h.
58240         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58241         * modules/utimens (EXTRA_DIST): Add utimens.h.
58242         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58243         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58244         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58245         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58246         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58247         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58248         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58249         * modules/yesno (EXTRA_DIST): Add yesno.h.
58250
58251 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58252
58253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58254
58255         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58256         * m4/dev-ino.m4, same-inode.m4: Remove.
58257
58258         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58259         * m4/acl.m4 (AC_FUNC_ACL):
58260         * m4/backupfile.m4 (gl_BACKUPFILE):
58261         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58262         * m4/canon-host.m4 (gl_CANON_HOST):
58263         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58264         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58265         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58266         * m4/cloexec.m4 (gl_CLOEXEC):
58267         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58268         * m4/closeout.m4 (gl_CLOSEOUT):
58269         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58270         * m4/dirname.m4 (gl_DIRNAME):
58271         * m4/exclude.m4 (gl_EXCLUDE):
58272         * m4/exitfail.m4 (gl_EXITFAIL):
58273         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58274         * m4/file-type.m4 (gl_FILE_TYPE):
58275         * m4/filemode.m4 (gl_FILEMODE):
58276         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58277         * m4/fpending.m4 (gl_FUNC_FPENDING):
58278         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58279         * m4/fts.m4 (gl_FUNC_FTS):
58280         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58281         * m4/getdate.m4 (gl_GETDATE):
58282         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58283         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58284         * m4/getpass.m4 (gl_FUNC_GETPASS):
58285         * m4/gettime.m4 (gl_GETTIME):
58286         * m4/getugroups.m4 (gl_GETUGROUPS):
58287         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58288         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58289         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58290         * m4/hash.m4 (gl_HASH):
58291         * m4/idcache.m4 (gl_IDCACHE):
58292         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58293         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58294         * m4/long-options.m4 (gl_LONG_OPTIONS):
58295         * m4/lstat.m4 (gl_FUNC_LSTAT):
58296         * m4/md5.m4 (gl_MD5):
58297         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58298         * m4/memcoll.m4 (gl_MEMCOLL):
58299         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58300         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58301         * m4/memxor.m4 (gl_MEMXOR):
58302         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58303         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58304         * m4/modechange.m4 (gl_MODECHANGE):
58305         * m4/mountlist.m4 (gl_MOUNTLIST):
58306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58307         * m4/openat.m4 (gl_FUNC_OPENAT):
58308         * m4/pathmax.m4 (gl_PATHMAX):
58309         * m4/physmem.m4 (gl_PHYSMEM):
58310         * m4/posixtm.m4 (gl_POSIXTM):
58311         * m4/posixver.m4 (gl_POSIXVER):
58312         * m4/quote.m4 (gl_QUOTE):
58313         * m4/quotearg.m4 (gl_QUOTEARG):
58314         * m4/readtokens.m4 (gl_READTOKENS):
58315         * m4/readutmp.m4 (gl_READUTMP):
58316         * m4/regex.m4 (gl_REGEX):
58317         * m4/safe-read.m4 (gl_SAFE_READ):
58318         * m4/safe-write.m4 (gl_SAFE_WRITE):
58319         * m4/same.m4 (gl_SAME):
58320         * m4/save-cwd.m4 (gl_SAVE_CWD):
58321         * m4/savedir.m4 (gl_SAVEDIR):
58322         * m4/settime.m4 (gl_SETTIME):
58323         * m4/sha1.m4 (gl_SHA1):
58324         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58325         * m4/stat-macros.m4 (gl_STAT_MACROS):
58326         * m4/stat-time.m4 (gl_STAT_TIME):
58327         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58328         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58329         * m4/strdup.m4 (gl_FUNC_STRDUP):
58330         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58331         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58332         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58333         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58334         * m4/time_r.m4 (gl_TIME_R):
58335         * m4/timespec.m4 (gl_TIMESPEC):
58336         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58337         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58338         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58339         * m4/userspec.m4 (gl_USERSPEC):
58340         * m4/utimecmp.m4 (gl_UTIMECMP):
58341         * m4/utimens.m4 (gl_UTIMENS):
58342         * m4/xalloc.m4 (gl_XALLOC):
58343         * m4/xgetcwd.m4 (gl_XGETCWD):
58344         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
58345         * m4/xreadlink.m4 (gl_XREADLINK):
58346         * m4/xstrtod.m4 (gl_XSTRTOD):
58347         * m4/yesno.m4 (gl_YESNO):
58348         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58349         to get the necessary .h files and whatnot.
58350
58351 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
58352             Bruno Haible  <bruno@clisp.org>
58353
58354         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
58355         /bin/sh understanding of '!' conditional negation.
58356
58357 2006-08-21  Jim Meyering  <jim@meyering.net>
58358
58359         * modules/openat (Depends-on): Really alphabetize.
58360
58361         * modules/acl (Depends-on): Add error and quote.
58362
58363         * check-module (find_included_lib_files): Add at-func.c to the
58364         ok-to-include-more-than-once white list.
58365
58366         * modules/openat (Depends-on): Add lstat.  Alphabetize.
58367
58368 2006-08-21  Bruno Haible  <bruno@clisp.org>
58369
58370         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58371         Emit a pkgdata_DATA variable only if some snippets add contents to it.
58372         Reported by Martin Lambers <marlam@marlam.de>.
58373
58374 2006-08-21  Bruno Haible  <bruno@clisp.org>
58375
58376         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
58377         specify an installation location, don't emit a noinst_LIBRARIES or
58378         noinst_LTLIBRARIES assignment.
58379
58380 2006-08-21  Bruno Haible  <bruno@clisp.org>
58381
58382         BeOS portability.
58383         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
58384         BeOS has mbrtowc() but no <wctype.h>.
58385
58386 2006-08-21  Bruno Haible  <bruno@clisp.org>
58387
58388         BeOS portability.
58389         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
58390         exist.
58391
58392 2006-08-21  Bruno Haible  <bruno@clisp.org>
58393
58394         BeOS portability.
58395         * lib/mbchar.h: Include <wctype.h> only if it exists.
58396
58397 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58398
58399         Remove files that are no longer needed by their respective modules.
58400         * m4/obstack.m4: Remove.
58401         * m4/strerror_r.m4: Remove.
58402         * m4/uint32_t.m4: Remove.
58403         * m4/uintptr_t.m4: Remove.
58404         * m4/ullong_max.m4: Remove.
58405         * m4/xstrtoimax.m4: Remove.
58406         * m4/xstrtoumax.m4: Remove.
58407
58408         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
58409         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
58410         dependencies now capture this.
58411
58412         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
58413         Do not use AC_LIBSOURCES, since gnulib modules now do this.
58414         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
58415         * m4/human.m4 (gl_HUMAN): Likewise.
58416         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
58417         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
58418
58419         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
58420
58421         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
58422         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
58423         stdint.
58424         * m4/human.m4 (gl_HUMAN): Likewise.
58425         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
58426         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
58427         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58428         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58429         * m4/xstrtol (gl_XSTRTOL): Likewise.
58430
58431         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
58432         AC_TYPE_LONG_LONG_INT.
58433         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58434         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
58435         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
58436         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58437
58438         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
58439         on stdbool.
58440
58441         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
58442         (gl_PREREQ_XSTRTOUL): Remove.
58443
58444         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
58445
58446         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
58447         mode.
58448
58449 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58450
58451         Add and change modules to make it easier for coreutils to use
58452         gnulib-tool.
58453         * modules/backupfile (Files): Remove m4/d-ino.m4.
58454         (Depends-on): Add d-ino.
58455         * modules/cycle-check (Depends-on): Add stdint.
58456         (lib_SOURCES): Add cycle-check.h.
58457         * modules/d-ino: New module.
58458         * modules/d-type: New module.
58459         * modules/error (Files): Remove m4/strerror_r.m4.
58460         * modules/filemode (Files): Add m4/st_dm_mode.m4.
58461         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58462         m4/inttypes_h.m4, m4/uintmax_t.m4.
58463         (Depends-on): Add stdint.
58464         (lib_SOURCES): Add fsusage.h.
58465         * modules/getcwd (Files): Remove d-ino.m4.
58466         (Depends-on): Add d-ino.
58467         * modules/getndelim2 (Depends-on): Add stdint.
58468         * modules/glob (Files): Remove m4/d-type.m4.
58469         (Depends-on): Add d-type.
58470         * modules/host-os: New module.
58471         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
58472         m4/inttypes_h.m4, m4/uintmax_t.m4.
58473         * Depends-on: Add stdint.
58474         (lib_SOURCES): Add human.h.
58475         * modules/inttostr (Files): Remove m4/intmax_t.m4,
58476         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
58477         m4/uintmax_t.m4, m4/ulonglong.m4.
58478         (Depends-on): Add stdint.
58479         (EXTRA_DIST): Add inttostr.h.
58480         * modules/lchmod: New module.
58481         * modules/link-follow: New module.
58482         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
58483         (Depends-on): Add lchmod.
58484         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
58485         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
58486         (Depends-on): Add stdint.
58487         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
58488         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
58489         (Depends-on): Add stdint.
58490         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
58491         * modules/perl: New module.
58492         * modules/regex (Depends-on): Add stdint.
58493         * modules/rmdir-errno: New module.
58494         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58495         m4/intmax_t.m4.
58496         (Depends-on): Add stdint.
58497         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58498         m4/uintmax_t.m4.
58499         (Depends-on): Add stdint.
58500         * modules/unlink-busy: New module.
58501         * modules/utimecmp (Depends-on): Add stdint.
58502         * modules/uptime: New module.
58503         * modules/winsz-ioctl: New module.
58504         * modules/winsz-termios: New module.
58505         * modules/xnanosleep (Depends-on): Add nanosleep.
58506         * modules/ullong_max: Remove.
58507         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
58508         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
58509         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
58510         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
58511         (Depends-on): Add inttypes.
58512         (lib_SOURCES): Add xstrtol.h.
58513         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
58514         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
58515         * MODULES.html.sh: Move 'assert' into the assert section.
58516         Move 'dummy' into the linking section.
58517         Remove ullong_max.
58518         Add section for compatibility checks for POSIX:2001 functions,
58519         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
58520         winsz-ioctl, and winsz-termios into it.
58521         Add lchmod.
58522         Add top-level Misc section and put host-os, perl, and uptime
58523         into it.
58524
58525 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
58528         now assume the stdint module.  Do not include inttypes.h.
58529         * lib/fsusage.h: Likewise.
58530         * lib/getndelim2.c: Likewise.
58531         * lib/human.h: Likewise.
58532         * lib/inttostr.h: Likewise.
58533         * lib/obstack.c: Likewise.
58534         * lib/regex_internal.h: Likewise.
58535         * lib/tempname.c: Likewise.
58536         * lib/utimecmp.c: Likewise.
58537         * lib/xstrtol.h: Likewise.
58538
58539         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
58540
58541         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
58542         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
58543         * lib/xtime.h: Likewise.
58544
58545 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58546
58547         * modules/openat (Files): Add lib/fchmodat.c.
58548         Fixes problem reported by Jay Youngman.
58549
58550 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58551
58552         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58553         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58554
58555 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58556             Bruno Haible  <bruno@clisp.org>
58557
58558         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58559         and is a script that invokes bison. Tighten the code. Add comments.
58560
58561 2006-08-18  Jim Meyering  <jim@meyering.net>
58562
58563         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58564         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58565         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58566         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58567
58568 2006-08-18  Bruno Haible  <bruno@clisp.org>
58569
58570         * modules/bison-i18n: New file.
58571         * MODULES.html.sh (Internationalization functions): Add it.
58572
58573 2006-08-18  Bruno Haible  <bruno@clisp.org>
58574
58575         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58576         sys/statvfs.h. When getmntinfo was found, check its declaration and
58577         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58578
58579 2006-08-18  Bruno Haible  <bruno@clisp.org>
58580
58581         * m4/bison-i18n.m4: New file, from bison.
58582
58583 2006-08-18  Bruno Haible  <bruno@clisp.org>
58584
58585         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58586         (ME_DUMMY): Treat "kernfs" as a dummy.
58587         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58588
58589 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58590
58591         Update from coreutils.
58592
58593         2006-08-15  Jim Meyering  <jim@meyering.net>
58594
58595         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58596
58597         2006-01-17  Jim Meyering  <jim@meyering.net>
58598
58599         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58600
58601         2006-01-11  Jim Meyering  <jim@meyering.net>
58602
58603         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58604         Check for the lchmod function.
58605
58606 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         Update from coreutils.
58609
58610         * lib/__fpending.h: Add copyright notice.
58611         * lib/fprintftime.h: Likewise.
58612         * lib/savedir.c: Use (C) in copyright notice.
58613         * lib/savedir.h: Likewise.
58614
58615         2006-08-15  Jim Meyering  <jim@meyering.net>
58616
58617         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58618         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58619         in support of the EXPECTED_ERRNO macro.
58620         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58621         definitions.  Instead, define the appropriate symbols and include
58622         "at-func.c".
58623         * lib/mkdirat.c (mkdirat): Likewise.
58624         * lib/fchmodat.c (fchmodat): Likewise.
58625         (ENOSYS): Remove definition.
58626         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58627         it.  Don't include "unistd--.h" -- it wasn't ever used.
58628
58629         2006-01-17  Jim Meyering  <jim@meyering.net>
58630
58631         Rewrite fts.c not to change the current working directory,
58632         by using openat, fstatat, fdopendir, etc..
58633
58634         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58635         (HAVE_OPENAT_SUPPORT): Define.
58636         [_LIBC] (fchdir): Don't undef or define; no longer used.
58637         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58638         Now, this `function' always succeeds, and consumes its file descriptor
58639         parameter -- so callers must not close such FDs.  Update callers.
58640         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58641         (diropen): Add parameter, SP.  Adjust all callers.
58642         Implement using diropen_fd, rather than open.
58643         (fts_open): Initialize new member, fts_cwd_fd.
58644         Remove fts_rft-setting code.
58645         (fts_close): Close fts_cwd_fd, if necessary.
58646         (__opendir2): Define in terms of opendir or opendirat,
58647         depending on whether the FST_NOCHDIR flag is set.
58648         (fts_build): Since fts_safe_changedir consumes its FD, and since
58649         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58650         and close the dup'd file descriptor upon failure.
58651         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58652         (fts_safe_changedir): Tweak semantics to reflect that this function
58653         now calls cwd_advance_fd and hence consumes its FD argument.
58654         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58655         [struct FTS] (fts_rft): Remove now-unused member.
58656         [struct FTS] (fts_cycle.state): Improve comment.
58657
58658         * lib/openat.c (openat_needs_fchdir): New function.
58659         * lib/openat.h (openat_needs_fchdir): Declare it.
58660
58661 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58662
58663         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58664         Problem and fix reported by Pádraig Brady in
58665         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58666
58667 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58670
58671 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         * lib/memcoll.c (memcoll): Optimize for the common case where the
58674         arguments are bytewise equal.
58675
58676 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58677
58678         * doc/regexprops-generic.texi: Add a copyright notice.
58679
58680 2006-08-15  Bruno Haible  <bruno@clisp.org>
58681
58682         * modules/tmpdir (License): Change to LGPL.
58683
58684 2006-08-15  Bruno Haible  <bruno@clisp.org>
58685
58686         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58687         module.
58688
58689 2006-08-14  Simon Josefsson  <jas@extundo.com>
58690
58691         * config/srclist.txt: Add gnupload.
58692
58693 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         Change copyright notice from LGPL 2 to GPL 2, since that's the
58696         standard form used in the gnulib repository.
58697         * tests/test-lock.c: Likewise.
58698         * tests/test-stdint.c: Likewise.
58699         * tests/test-tls.c: Likewise.
58700
58701         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58702         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58703         Add copyright notice.
58704
58705         * check-module: Add copyright notice.  Output a copyright
58706         notice if "--version" is specified.
58707         * modules/COPYING: New file.
58708         * tests/test-getaddrinfo.c: Add copyright notice.
58709         * tests/test-verify.c: Likewise.
58710
58711 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58712
58713         Change copyright notice from LGPL 2 to GPL 2, since that's the
58714         standard form used in the gnulib repository.
58715         * lib/lock.c: LGPL -> GPL.
58716         * lib/lock.h: Likewise.
58717         * lib/strnlen1.c: Likewise.
58718         * lib/strnlen1.h: Likewise.
58719         * lib/tls.c: Likewise.
58720         * lib/tls.h: Likewise.
58721         * lib/tmpdir.c: Likewise.
58722
58723         * lib/TODO: Remove; this belongs only in coreutils.
58724
58725 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         Add copyright notices to long-enough files that lack them, since
58728         otherwise the files aren't clearly free.  Use the same notice that
58729         getdate.texi already uses.
58730         * doc/alloca-opt.texi: Add copyright notice.
58731         * doc/alloca.texi: Likewise.
58732         * doc/ctime.texi: Likewise.
58733         * doc/functions.texi: Likewise.
58734         * doc/gcd.texi: Likewise.
58735         * doc/gnulib-tool.texi: Likewise.
58736         * doc/inet_ntoa.texi: Likewise.
58737         * doc/visibility.texi: Likewise.
58738
58739         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58740         * doc/quote.texi: Add copyright notice.
58741
58742         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58743         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58744         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58745         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58746         is now obsolete, and give a pointer to the Sun list.
58747         Add copyright notice.
58748
58749 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         * config/srclistvars.sh: Add copyright notice.
58752
58753 2006-08-14  Eric Blake  <ebb9@byu.net>
58754
58755         Import the following change from libc:
58756
58757         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58758
58759         Upstream bug 2997.
58760         * lib/misc/error.c: Add space between program name and message if file
58761         name is missing.
58762
58763 2006-08-12  Karl Berry  <karl@gnu.org>
58764
58765         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58766         remove, these originate in gnulib now.
58767
58768 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58769
58770         * doc/Makefile (standards.info standards.html standards.dvi):
58771         Also depend on make-stds.texi.
58772
58773 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58774
58775         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58776         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58777
58778         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58779         in wchar_t.  Problem reported by Eric Blake.
58780
58781         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58782         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58783         Also, help the compiler to keep LEN in a register.
58784
58785 2006-08-11  Eric Blake  <ebb9@byu.net>
58786
58787         * users.txt: Sort.  Add tar.
58788
58789 2006-08-11  Bruno Haible  <bruno@clisp.org>
58790
58791         * users.txt: New file.
58792
58793 2006-08-11  Bruno Haible  <bruno@clisp.org>
58794
58795         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58796         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58797
58798 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         * modules/snprintf (Depends-on): Remove minmax.
58801         (Maintainer): Add self and Bruno.
58802
58803 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58804
58805         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58806         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58807         (EOVERFLOW): Define if the system does not.
58808         Do not include "minmax.h"; it wasn't used.
58809         (snprintf): Don't assume size_t promotes to an unsigned type.
58810         Fix bug when generated string was too long for the buffer: the
58811         buffer's contents are supposed to be the initial prefix of the
58812         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58813         exceeds INT_MAX; do the check ourselves.
58814
58815         Import the following changes from libc:
58816
58817         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58818
58819         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58820         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58821         set wc to the byte which couldn't be converted.
58822         (re_string_reconstruct): Don't clear valid_raw_len before calling
58823         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58824         tip_context using re_string_context_at.
58825
58826         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58827
58828         * lib/posix/regex.h: g++ still cannot handled [restrict].
58829
58830         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58831
58832         * lib/posix/regex.h: Remove special handling for VMS.
58833
58834 2006-08-10  Jim Meyering  <jim@meyering.net>
58835
58836         * modules/same-inode: New module.
58837         * modules/dev-ino: New module.
58838         * modules/cycle-check: Depend on these modules, rather than simply
58839         including their .h files.
58840         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58841         required via m4/cycle-check.m4.
58842         * modules/same: Depend on new same-inode module, rather than
58843         including same-inode.h.
58844         * modules/chdir-safer: New file.
58845
58846         * modules/chown (Depends-on): Add stat-macros.
58847
58848 2006-08-10  Jim Meyering  <jim@meyering.net>
58849
58850         * m4/cycle-check.m4: New file.
58851         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58852         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58853
58854 2006-08-10  Eric Blake  <ebb9@byu.net>
58855
58856         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58857         in from original proposal.
58858
58859 2006-08-10  Eric Blake  <ebb9@byu.net>
58860         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58861
58862         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58863         namespace.
58864
58865 2006-08-10  Bruno Haible  <bruno@clisp.org>
58866
58867         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58868         as well.
58869
58870 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58871
58872         Sync from coreutils.
58873
58874         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58875
58876         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58877         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58878
58879 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         * modules/restrict: Remove; no longer needed now that we assume
58882         Autoconf 2.59 or later.
58883         * MODULES.html.sh: Remove 'restrict'.
58884         * modules/argp (Depends-on): Remove 'restrict'.
58885         * modules/base64 (Depends-on): Likewise.
58886         * modules/gc (Depends-on): Likewise.
58887         * modules/getaddrinfo (Depends-on): Likewise.
58888         * modules/glob (Depends-on): Likewise.
58889         * modules/inet_ntop (Depends-on): Likewise.
58890         * modules/inet_pton (Depends-on): Likewise.
58891         * modules/memxor (Depends-on): Likewise.
58892         * modules/regex (Depends-on): Likewise.
58893         * modules/strtok_r (Depends-on): Likewise.
58894         * modules/time_r (Depends-on): Likewise.
58895
58896 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58897
58898         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58899         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58900         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58901         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58902         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58903         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58904         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58905         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58906
58907         Merge from coreutils.
58908         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58909         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58910         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58911         * m4/time_r.m4 (gl_TIME_R): Likewise.
58912
58913 2006-08-09  Karl Berry  <karl@gnu.org>
58914
58915         * config/srclist.txt: no more gettext-tools, per Bruno.
58916
58917 2006-08-08  Eric Blake  <ebb9@byu.net>
58918
58919         * modules/verror: New module.
58920         * MODULES.html.sh: Document it.
58921
58922 2006-08-08  Eric Blake  <ebb9@byu.net>
58923
58924         * lib/verror.h, lib/verror.c: New files.
58925
58926 2006-08-08  Eric Blake  <ebb9@byu.net>
58927
58928         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58929         verror_at_line output complies with GNU Coding Standards even when
58930         file is NULL.
58931
58932 2006-08-07  Bruno Haible  <bruno@clisp.org>
58933
58934         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58935         versions of AIX.
58936         Reported by Ralf Wildenhues.
58937
58938 2006-08-07  Bruno Haible  <bruno@clisp.org>
58939
58940         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58941         in an AC_DEFUN. Needed so that the autoconf snippets can use
58942         AC_REQUIRE.
58943
58944 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58945
58946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58947         Initialize pkgdata_DATA.
58948         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58949         overriding it.
58950
58951 2006-08-06  Eric Blake  <ebb9@byu.net>
58952
58953         * lib/error.h: Fold in some upstream changes from glibc.
58954         * lib/error.c: Likewise.
58955
58956 2006-08-04  Bruno Haible  <bruno@clisp.org>
58957
58958         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58959         Make the mostlyclean-local rule depend on mostlyclean-generic.
58960         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58961
58962 2006-07-31  Bruno Haible  <bruno@clisp.org>
58963
58964         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58965         <stdlib.h>, <string.h>.
58966
58967 2006-07-30  Bruno Haible  <bruno@clisp.org>
58968
58969         * modules/readlink (License): Change to LGPL.
58970
58971 2006-07-30  Bruno Haible  <bruno@clisp.org>
58972
58973         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58974         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58975         set PKGDATADIR to point to it.
58976
58977 2006-07-30  Bruno Haible  <bruno@clisp.org>
58978
58979         * modules/csharpexec (configure.ac): Comment out macro invocation.
58980         * modules/javaexec (configure.ac): Likewise.
58981         * modules/javacomp-script (configure.ac): Likewise.
58982
58983         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58984
58985 2006-07-30  Bruno Haible  <bruno@clisp.org>
58986
58987         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58988         linked-list.
58989
58990 2006-07-30  Bruno Haible  <bruno@clisp.org>
58991
58992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58993
58994 2006-07-30  Bruno Haible  <bruno@clisp.org>
58995
58996         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58997         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58998         get removed.
58999
59000 2006-07-29  Bruno Haible  <bruno@clisp.org>
59001
59002         Make it possible for gnulib-tool to work with locally modified or
59003         augmented gnulib repositories.
59004         * gnulib-tool (func_usage): Document --local-dir option.
59005         (local_gnulib_dir): New variable.
59006         Handle --local-dir option.
59007         (func_lookup_file): New function.
59008         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59009         (func_get_description, func_get_filelist, func_get_description,
59010         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59011         func_get_automake_snippet, func_get_include_directive,
59012         func_get_license, func_get_maintainer): Use func_lookup_file.
59013         (func_import, func_create_testdir): Use func_lookup_file.
59014
59015 2006-07-29  Bruno Haible  <bruno@clisp.org>
59016
59017         * modules/setenv (Depends-on): Add unistd.
59018
59019 2006-07-29  Bruno Haible  <bruno@clisp.org>
59020
59021         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59022
59023 2006-07-29  Bruno Haible  <bruno@clisp.org>
59024
59025         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59026
59027 2006-07-29  Bruno Haible  <bruno@clisp.org>
59028
59029         * gnulib-tool (import, update): If there is no Makefile.am, look at
59030         aclocal.m4, instead of bailing out.
59031
59032 2006-07-29  Bruno Haible  <bruno@clisp.org>
59033
59034         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59035         Categorize the options by when they are useful.
59036
59037 2006-07-29  Bruno Haible  <bruno@clisp.org>
59038
59039         * gnulib-tool (func_usage): Document option --no-libtool.
59040         Handle option --no-libtool.
59041         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59042         for changed semantics of $libtool variable.
59043         (func_import): Likewise. If libtool is not used, show this through
59044         an option --no-libtool.
59045         (func_create_testdir): Update.
59046
59047 2006-07-29  Bruno Haible  <bruno@clisp.org>
59048
59049         * gnulib-tool (func_import): Extend error message about missing
59050         --doc-base.
59051
59052 2006-07-29  Bruno Haible  <bruno@clisp.org>
59053
59054         * gnulib-tool (func_import): Don't create the $docbase directory if
59055         there is no file to store there.
59056
59057 2006-07-29  Bruno Haible  <bruno@clisp.org>
59058
59059         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59060         relevant, look for configure.ac there, not in the current directory.
59061         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59062
59063 2006-07-29  Bruno Haible  <bruno@clisp.org>
59064
59065         * gnulib-tool (SORT): New variable.
59066         (func_usage): Undocument --assume-autoconf option.
59067         Remove --assume-autoconf option handling.
59068         (autoconf_minversion): Determine from the contents of configure.ac.
59069         (func_import): Remove autoconf_minversion handling.
59070         Suggested by Eric Blake.
59071
59072 2006-07-29  Bruno Haible  <bruno@clisp.org>
59073
59074         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59075
59076 2006-07-29  Bruno Haible  <bruno@clisp.org>
59077
59078         * config/srclist.txt (*setenv.[ch]): Remove rules.
59079
59080 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59081
59082         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59083
59084 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59085
59086         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59087         arpa/inet.h.
59088
59089 2006-07-28  Simon Josefsson  <jas@extundo.com>
59090
59091         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59092         * modules/inet_pton (Depends-on): Likewise.
59093
59094 2006-07-28  Simon Josefsson  <jas@extundo.com>
59095
59096         * m4/netinet_in_h.m4: New file.
59097
59098 2006-07-28  Simon Josefsson  <jas@extundo.com>
59099
59100         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59101         #include's.
59102
59103 2006-07-28  Simon Josefsson  <jas@extundo.com>
59104
59105         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59106         #include's.
59107
59108 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59109
59110         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59111         setgid on directories only if they set these bits.
59112         * lib/modechange.h: Remove obsolete comment about masks.
59113
59114 2006-07-28  Eric Blake  <ebb9@byu.net>
59115
59116         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59117         macro expansion.
59118
59119 2006-07-28  Bruno Haible  <bruno@clisp.org>
59120
59121         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59122
59123 2006-07-28  Bruno Haible  <bruno@clisp.org>
59124
59125         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59126
59127 2006-07-28  Bruno Haible  <bruno@clisp.org>
59128
59129         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59130         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59131         Define fallbacks.
59132         Avoids link error on FreeBSD 4.x.
59133         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59134
59135         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59136         encoding.
59137         * lib/mbswidth.c (iswcntrl): Likewise.
59138
59139 2006-07-27  Bruno Haible  <bruno@clisp.org>
59140
59141         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59142         test.
59143
59144 2006-07-27  Bruno Haible  <bruno@clisp.org>
59145
59146         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59147         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59148         defined.
59149
59150 2006-07-26  Eric Blake  <ebb9@byu.net>
59151
59152         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59153
59154 2006-07-26  Eric Blake  <ebb9@byu.net>
59155
59156         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59157         like mingw that lack mkstemp.
59158         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59159         avoid compilation warning on mingw.
59160
59161 2006-07-26  Bruno Haible  <bruno@clisp.org>
59162
59163         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59164         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59165         INT_FAST*_MIN, INTPTR_MIN.
59166
59167 2006-07-25  Bruno Haible  <bruno@clisp.org>
59168
59169         * modules/version-etc (Depends-on): Add stdarg.
59170
59171 2006-07-25  Bruno Haible  <bruno@clisp.org>
59172
59173         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59174         complex commands.
59175
59176 2006-07-25  Bruno Haible  <bruno@clisp.org>
59177
59178         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59179         defined in <stdarg.h> or config.h.
59180
59181 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59184         (gl_STDIO_SAFER): Remove.
59185
59186 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         * MODULES.html.sh (File stream based Input/Output):
59189         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59190         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59191         * modules/fopen-safer, modules/tmpfile-safer: New files.
59192         * modules/stdio-safer: Remove.
59193
59194 2006-07-24  Bruno Haible  <bruno@clisp.org>
59195
59196         * modules/tmpdir: New file.
59197         * MODULES.html.sh (File system functions): Add it.
59198
59199 2006-07-24  Bruno Haible  <bruno@clisp.org>
59200
59201         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59202         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59203
59204 2006-07-24  Bruno Haible  <bruno@clisp.org>
59205
59206         * modules/clean-temp: New file.
59207
59208 2006-07-24  Bruno Haible  <bruno@clisp.org>
59209
59210         * m4/tmpdir.m4: New file, from GNU gettext.
59211
59212 2006-07-24  Bruno Haible  <bruno@clisp.org>
59213
59214         * lib/tmpdir.h: New file, from GNU gettext.
59215         * lib/tmpdir.c: New file, from GNU gettext.
59216
59217 2006-07-24  Bruno Haible  <bruno@clisp.org>
59218
59219         * lib/clean-temp.h: New file, from GNU gettext.
59220         * lib/clean-temp.c: New file, from GNU gettext.
59221
59222 2006-07-23  Eric Blake  <ebb9@byu.net>
59223
59224         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59225         (Depends-on): Add binary-io.
59226
59227 2006-07-23  Eric Blake  <ebb9@byu.net>
59228
59229         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59230
59231 2006-07-23  Eric Blake  <ebb9@byu.net>
59232
59233         * lib/tmpfile-safer.c: New file.
59234         * lib/stdio-safer.h (fopen_safer): Add prototype.
59235         * lib/stdio--.h (tmpfile): Make safer.
59236
59237 2006-07-23  Bruno Haible  <bruno@clisp.org>
59238
59239         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59240         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59241         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59242         gl_linked_remove_at): Use it.
59243
59244 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59245         and Simon Josefsson <jas@extundo.com>
59246
59247         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59248
59249         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59250
59251 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59252
59253         * modules/close-stream: New file.
59254         * modules/closeout (Description): Make it clear that it exits
59255         with a diagnostic on error.
59256         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59257         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59258
59259 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59260
59261         * m4/close-stream.m4: New file.
59262
59263 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59264
59265         * lib/close-stream.c, lib/close-stream.h: New files.
59266
59267 2006-07-22  Bruno Haible  <bruno@clisp.org>
59268
59269         Merge from GNU gettext 0.15.
59270
59271         2006-05-01  Bruno Haible  <bruno@clisp.org>
59272
59273                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59274
59275         2006-07-22  Bruno Haible  <bruno@clisp.org>
59276
59277                 * modules/javaversion: New file.
59278                 * MODULES.html.sh (Java): Add javaversion.
59279
59280         2006-03-12  Bruno Haible  <bruno@clisp.org>
59281
59282                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59283
59284         2005-12-04  Bruno Haible  <bruno@clisp.org>
59285
59286                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59287                 (untested).
59288
59289         2006-06-21  Bruno Haible  <bruno@clisp.org>
59290
59291                 Avoid warnings from recent versions of mcs.
59292                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59293                 -o, -L, -r any more. Use options documented since mcs-1.0
59294                 instead. Similarly for -g.
59295
59296         2005-12-04  Bruno Haible  <bruno@clisp.org>
59297
59298                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59299                 .resources, not .resource.
59300
59301         2005-07-09  Bruno Haible  <bruno@clisp.org>
59302
59303                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59304                 add a .dll suffix.
59305                 Reported by Mark Junker <mjscod@gmx.de>.
59306
59307         2006-07-22  Bruno Haible  <bruno@clisp.org>
59308
59309                 * modules/gettext: Upgrade to gettext-0.15.
59310                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59311                 m4/visibility.m4.
59312                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59313
59314 2006-07-22  Bruno Haible  <bruno@clisp.org>
59315
59316         Merge from GNU gettext 0.15.
59317
59318         2006-03-25  Bruno Haible  <bruno@clisp.org>
59319
59320                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59321
59322         2006-07-21  Bruno Haible  <bruno@clisp.org>
59323
59324                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59325                 "1.1".
59326
59327         2006-05-09  Bruno Haible  <bruno@clisp.org>
59328
59329                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59330                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59331                 for the conftestver execution.
59332
59333         2006-05-01  Bruno Haible  <bruno@clisp.org>
59334
59335                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59336                 optional target-version argument. Verify that the compiler
59337                 groks source of the specified source-version, or add -source
59338                 option as necessary. Verify that the compiler produces
59339                 bytecode in the specified target-version, or add -target and
59340                 -source options as necessary. Make the result of the test
59341                 available as variable CONF_JAVAC. Also log error output in
59342                 config.log.
59343
59344         2006-03-11  Bruno Haible  <bruno@clisp.org>
59345
59346                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
59347
59348         2006-05-09  Bruno Haible  <bruno@clisp.org>
59349
59350                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
59351                 CLASSPATH_SEPARATOR to a semicolon.
59352
59353         2006-03-12  Bruno Haible  <bruno@clisp.org>
59354
59355                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
59356                 available as variable CONF_JAVA, for subsequent autoconf
59357                 tests. Also log error output in config.log.
59358
59359         2006-07-19  Bruno Haible  <bruno@clisp.org>
59360
59361                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
59362                 that getline works on glibc2 systems. Needed to avoid trouble
59363                 in relocatable.c.
59364                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
59365
59366         2005-12-04  Bruno Haible  <bruno@clisp.org>
59367
59368                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
59369                 launcher (untested).
59370
59371         2005-12-04  Bruno Haible  <bruno@clisp.org>
59372
59373                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
59374
59375         2006-07-22  Bruno Haible  <bruno@clisp.org>
59376
59377                 * gettext.m4: Update from GNU gettext-0.15.
59378                 * nls.m4: Likewise.
59379                 * po.m4: Likewise.
59380                 * inttypes-pri.m4: Likewise.
59381                 * inttypes-h.m4: Renamed from inttypes.m4.
59382                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
59383
59384 2006-07-22  Bruno Haible  <bruno@clisp.org>
59385
59386         Merge from GNU gettext 0.15.
59387
59388         2005-07-05  Bruno Haible  <bruno@clisp.org>
59389
59390                 * printf-args.c (printf_fetchargs): Work around broken
59391                 definition of wint_t on mingw.
59392
59393         2005-02-12  Bruno Haible  <bruno@clisp.org>
59394
59395                 * xallocsa.h: Add extern "C" for C++.
59396
59397         2006-05-17  Bruno Haible  <bruno@clisp.org>
59398
59399                 Cygwin portability.
59400                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
59401
59402         2006-04-30  Bruno Haible  <bruno@clisp.org>
59403
59404                 * progreloc.c: Include <mach-o/dyld.h> if available.
59405                 (find_executable): Use _NSGetExecutablePath when possible.
59406
59407         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59408
59409                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
59410                 function.
59411
59412         2005-12-29  Bruno Haible  <bruno@clisp.org>
59413
59414                 * progreloc.c (set_program_name_and_installdir): Fix
59415                 compilation error.
59416
59417         2005-12-04  Bruno Haible  <bruno@clisp.org>
59418
59419                 Cygwin portability.
59420                 * progreloc.c: Include <windows.h> also on Cygwin.
59421                 (find_executable): Add support for Cygwin.
59422                 (set_program_name_and_installdir): Handle also platforms with
59423                 nonempty EXEEXT.
59424
59425         2006-07-11  Bruno Haible  <bruno@clisp.org>
59426
59427                 * javacomp.c: Fix a comment.
59428                 Reported by Jim Meyering.
59429
59430         2006-04-30  Bruno Haible  <bruno@clisp.org>
59431
59432                 * javacomp.h (compile_java_class): Add source_version,
59433                 target_version arguments.
59434                 * javacomp.c: Rewritten to choose only a compiler that
59435                 respects the specified source_version and target_version.
59436
59437         2006-06-27  Bruno Haible  <bruno@clisp.org>
59438
59439                 Assume correct S_ISDIR macro.
59440                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
59441
59442         2006-07-22  Bruno Haible  <bruno@clisp.org>
59443
59444                 * javaversion.h: New file, from GNU gettext.
59445                 * javaversion.c: New file, from GNU gettext.
59446                 * javaversion.java: New file, from GNU gettext.
59447                 * javaversion.class: New file, from GNU gettext.
59448
59449         2006-05-17  Bruno Haible  <bruno@clisp.org>
59450
59451                 Cygwin portability.
59452                 * javaexec.c (execute_java_class): Test for jview program
59453                 also on Cygwin.
59454
59455         2006-04-09  Bruno Haible  <bruno@clisp.org>
59456
59457                 * fatal-signal.c: Don't include string.h.
59458                 (at_fatal_signal): Use a copying loop instead of memcpy.
59459
59460         2005-12-04  Bruno Haible  <bruno@clisp.org>
59461
59462                 * csharpexec.c: Add support for 'clix' launcher (untested).
59463                 (execute_csharp_using_sscli): New function.
59464                 (execute_csharp_program): Call it.
59465
59466         2006-06-21  Bruno Haible  <bruno@clisp.org>
59467
59468                 Avoid warnings from recent versions of mcs.
59469                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
59470                 -o, -L, -r any more. Use options documented since mcs-1.0
59471                 instead. Similarly for -g.
59472
59473         2005-07-09  Bruno Haible  <bruno@clisp.org>
59474
59475                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
59476                 add a .dll suffix.
59477                 Reported by Mark Junker <mjscod@gmx.de>.
59478
59479         2006-06-17  Bruno Haible  <bruno@clisp.org>
59480
59481                 * config.charset: Update for NetBSD 3.0.
59482
59483         2006-05-17  Bruno Haible  <bruno@clisp.org>
59484
59485                 Cygwin portability.
59486                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
59487
59488         2006-05-16  Bruno Haible  <bruno@clisp.org>
59489
59490                 * localcharset.c [CYGWIN]: Include <windows.h>.
59491                 (get_charset_aliases): For Cygwin, return the same CPxxx
59492                 aliases list as under WIN32.
59493                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
59494                 the environment variables. Fall back to GetACP().
59495
59496         2006-04-05  Bruno Haible  <bruno@clisp.org>
59497
59498                 * config.charset: Update Juan Manuel Guerrero's address.
59499
59500         2005-02-12  Bruno Haible  <bruno@clisp.org>
59501
59502                 * allocsa.h: Add extern "C" for C++.
59503
59504         2005-02-10  Bruno Haible  <bruno@clisp.org>
59505
59506                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
59507                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
59508
59509         2006-07-22  Bruno Haible  <bruno@clisp.org>
59510
59511                 * gettext.h: Update to GNU gettext-0.15.
59512
59513 2006-07-22  Bruno Haible  <bruno@clisp.org>
59514
59515         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
59516         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
59517         lib-prefix.m4, longdouble.m4, ssize_t.m4.
59518
59519 2006-07-21  Eric Blake  <ebb9@byu.net>
59520
59521         * modules/stdlib-safer: New file.
59522         * MODULES.html.sh (File stream based Input/Output): Add
59523         stdlib-safer.
59524
59525 2006-07-21  Eric Blake  <ebb9@byu.net>
59526
59527         * lib/stdlib-safer.h: New file from coreutils, required by
59528         stdlib--.h.
59529
59530 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
59531
59532         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
59533
59534 2006-07-20  Bruno Haible  <bruno@clisp.org>
59535
59536         * gnulib-tool: Recognize new option --assume-autoconf.
59537         (autoconf_minversion): New variable.
59538         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
59539
59540 2006-07-20  Bruno Haible  <bruno@clisp.org>
59541
59542         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
59543
59544 2006-07-19  Derek R. Price  <derek@ximbiot.com>
59545
59546         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
59547         Reindent and repaginate.
59548
59549 2006-07-19  Derek Price  <derek@ximbiot.com>
59550
59551         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
59552         Correct grammar.
59553
59554 2006-07-17  Bruno Haible  <bruno@clisp.org>
59555
59556         * modules/list: New file.
59557         * modules/array-list: New file.
59558         * modules/carray-list, modules/carray-list-tests: New files.
59559         * modules/linked-list, modules/linked-list-tests: New files.
59560         * modules/avltree-list, modules/avltree-list-tests: New files.
59561         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59562         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59563         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59564         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59565         * modules/oset: New file.
59566         * modules/array-oset: New file.
59567         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59568         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59569         * tests/test-carray_list.c: New file.
59570         * tests/test-linked_list.c: New file.
59571         * tests/test-avltree_list.c: New file.
59572         * tests/test-rbtree_list.c: New file.
59573         * tests/test-linkedhash_list.c: New file.
59574         * tests/test-avltreehash_list.c: New file.
59575         * tests/test-rbtreehash_list.c: New file.
59576         * tests/test-avltree_oset.c: New file.
59577         * tests/test-rbtree_oset.c: New file.
59578         * MODULES.html.sh (Container data structures): New section.
59579
59580 2006-07-17  Bruno Haible  <bruno@clisp.org>
59581
59582         * m4/gl_list.m4: New file.
59583
59584 2006-07-17  Bruno Haible  <bruno@clisp.org>
59585
59586         * lib/gl_list.h: New file.
59587         * lib/gl_list.c: New file.
59588         * lib/gl_array_list.h: New file.
59589         * lib/gl_array_list.c: New file.
59590         * lib/gl_carray_list.h: New file.
59591         * lib/gl_carray_list.c: New file.
59592         * lib/gl_linked_list.h: New file.
59593         * lib/gl_linked_list.c: New file.
59594         * lib/gl_anylinked_list1.h: New file.
59595         * lib/gl_anylinked_list2.h: New file.
59596         * lib/gl_avltree_list.h: New file.
59597         * lib/gl_avltree_list.c: New file.
59598         * lib/gl_anyavltree_list1.h: New file.
59599         * lib/gl_anyavltree_list2.h: New file.
59600         * lib/gl_rbtree_list.h: New file.
59601         * lib/gl_rbtree_list.c: New file.
59602         * lib/gl_anyrbtree_list1.h: New file.
59603         * lib/gl_anyrbtree_list2.h: New file.
59604         * lib/gl_anytree_list1.h: New file.
59605         * lib/gl_anytree_list2.h: New file.
59606         * lib/gl_linkedhash_list.h: New file.
59607         * lib/gl_linkedhash_list.c: New file.
59608         * lib/gl_anyhash_list1.h: New file.
59609         * lib/gl_anyhash_list2.h: New file.
59610         * lib/gl_avltreehash_list.h: New file.
59611         * lib/gl_avltreehash_list.c: New file.
59612         * lib/gl_rbtreehash_list.h: New file.
59613         * lib/gl_rbtreehash_list.c: New file.
59614         * lib/gl_anytreehash_list1.h: New file.
59615         * lib/gl_anytreehash_list2.h: New file.
59616
59617         * lib/gl_oset.h: New file.
59618         * lib/gl_oset.c: New file.
59619         * lib/gl_array_oset.h: New file.
59620         * lib/gl_array_oset.c: New file.
59621         * lib/gl_avltree_oset.h: New file.
59622         * lib/gl_avltree_oset.c: New file.
59623         * lib/gl_rbtree_oset.h: New file.
59624         * lib/gl_rbtree_oset.c: New file.
59625         * lib/gl_anytree_oset.h: New file.
59626
59627 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59628
59629         * m4/mkancesdirs.m4: New file.
59630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59631         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59632         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59633         it.
59634
59635 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59636
59637         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59638         * lib/mkancesdirs.h: New files.
59639         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59640         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59641         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59642         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59643         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59644         callers changed.  Revamp internals significantly, by not
59645         attempting to create directories that are temporarily more
59646         permissive than the final results.  Do not attempt to use
59647         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59648         This removes some race conditions, fixes some bugs, and simplifies
59649         things.  Use new dirchownmod function to do owner and mode changes.
59650         * lib/mkdir-p.h: Likewise.
59651         * lib/modechange.c (octal_to_mode): New function.
59652         (struct mode_change): New member mentioned.
59653         (make_node_op_equals): New arg mentioned.  All callers changed.
59654         (mode_compile): Keep track of which mode bits the user has explicitly
59655         mentioned.
59656         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59657         New arg PMODE_BITS, to keep track of which mode bits the user
59658         mentioned; it treats S_ISUID and S_ISGID speciall.
59659         All callers changed.
59660         * lib/modechange.h: Likewise.
59661
59662 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59663
59664         * MODULES.html.sh: Add mkancestors.
59665         * modules/mkancesdirs: New module.
59666         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59667         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59668         The chdir-safer and afs files are now orphans; I'll remove them
59669         unless someone speaks up.
59670         Add lib/dirchownmod.c, lib/dirchownmod.h.
59671         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59672         Add lchown, mkancesdirs.
59673         (Maintainer): Add self.
59674
59675 2006-07-15  Karl Berry  <karl@gnu.org>
59676
59677         * gnulib-tool: help message wording/arrangement.
59678
59679 2006-07-14  Simon Josefsson  <jas@extundo.com>
59680
59681         * doc/gnulib.texi (Libtool and Windows): New section.
59682
59683 2006-07-12  Simon Josefsson  <jas@extundo.com>
59684
59685         * modules/gendocs (License): Fix license, approved by Karl.
59686
59687 2006-07-12  Eric Blake  <ebb9@byu.net>
59688
59689         * MODULES.html.sh: Add gendocs.
59690
59691 2006-07-11  Eric Blake  <ebb9@byu.net>
59692
59693         * modules/fdl: New module, to install doc/fdl.texi.
59694         * MODULES.html.sh: Add new section for documentation modules.
59695         * gnulib-tool: Avoid space-tab.
59696         (--doc-base): New option, to manage files from doc.
59697
59698 2006-07-11  Eric Blake  <ebb9@byu.net>
59699
59700         * m4/absolute-header.m4: Fix comments to match recent change.
59701
59702 2006-07-11  Eric Blake  <ebb9@byu.net>
59703
59704         * gnulib-tool: List --doc-base before --tests-base.
59705
59706 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59707
59708         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59709
59710 2006-07-11  Bruno Haible  <bruno@clisp.org>
59711
59712         * README: Mention where to put documentation.
59713
59714 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59715
59716         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59717
59718 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59719
59720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59721         to stdint.m4.
59722
59723 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59726         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59727         "no/such/file/stdint.h" when there is no such file, so that
59728         the resulting C code can be parsed by dodgy compilers.
59729         Problems reported by Bob Proulx.
59730
59731 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59732
59733         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59734         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59735         macros into the GNU _D_EXACT_NAMLEN.
59736         * lib/savedir.c:  Likewise.
59737         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59738
59739 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59740         and Paul Eggert  <eggert@cs.ucla.edu>
59741
59742         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59743         * m4/savedir.m4:
59744         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59745         macros into the GNU _D_EXACT_NAMLEN.
59746
59747 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59748
59749         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59750         around the absolute name, to work around a problem with the HP-UX
59751         11.23 native C compiler, reported by Bob Proulx.
59752
59753 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59754
59755         * doc/maintain.texi, make-stds.texi: Sync from
59756         <http://savannah.gnu.org/projects/gnustandards>.
59757
59758 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59759
59760         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59761
59762 2006-07-09  Jim Meyering  <jim@meyering.net>
59763
59764         * m4/glob.m4: Remove a doubled word in a comment.
59765
59766 2006-07-09  Jim Meyering  <jim@meyering.net>
59767
59768         * lib/argp-pv.c: Remove a doubled word in a comment.
59769         * lib/check-version.c (check_version): Likewise.
59770         * lib/javacomp.c (compile_java_class): Likewise.
59771
59772 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59773
59774         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59775         for the benefit of people using Autoconf 2.60.  If you want to
59776         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59777         (or m4/onceonly.m4, if pre-2.57) manually.
59778
59779 2006-07-08  Jim Meyering  <jim@meyering.net>
59780
59781         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59782         comment.
59783         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59784         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59785         comment.
59786
59787 2006-07-08  Jim Meyering  <jim@meyering.net>
59788
59789         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59790
59791 2006-07-07  Simon Josefsson  <jas@extundo.com>
59792
59793         * tests/test-crc.c: Change expected crc value, the test vector
59794         were probably computed using the old broken crc.c?
59795
59796 2006-07-06  Simon Josefsson  <jas@extundo.com>
59797
59798         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59799         now the canonical place for the M4 file).
59800
59801         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59802         from the sys_socket dependency now.
59803
59804         * modules/inet_pton (Files): Ditto.
59805
59806         * modules/inet_ntop (Files): Ditto.
59807
59808 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59809
59810         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59811         not gl_PREREQ_GETUSERSHELL.
59812
59813 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59814
59815         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59816         with only one argument, for Autoconf 2.60.
59817         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59818         expand to nothing, so add a shell command to avoid syntax error.
59819         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59820
59821 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59822
59823         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59824
59825 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59826
59827         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59828         no longer needed.  Check for isblank decl.
59829         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59830         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59831         of existence.
59832
59833 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59834
59835         * lib/getloadavg.c: Use __VMS, not VMS.
59836         * lib/getopt.c: Likewise.
59837         * lib/getpagesize.h: Likewise.
59838         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59839         and probably does not work.
59840
59841 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59842
59843         * lib/.cppi-disable: Add wcwidth.
59844         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59845         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59846         (ISGRAPH): Remove.  All uses changed to isgraph.
59847         (FOLD) [!defined _LIBC]: Remove special case.
59848         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59849         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59850         HAVE_ISBLANK.
59851         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59852         case.
59853
59854 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59855
59856         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59857         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59858         brackets.  Other minor changes to suppress some compiler
59859         warnings.
59860
59861 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59862         and Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59865         of invoking obsolescent AC_HEADER_DIRENT macro.
59866         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59867         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59868         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59869         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59870         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59871         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59872         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59873         * m4/readdir.m4: Remove; no longer needed.
59874
59875 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59876         and Paul Eggert  <eggert@cs.ucla.edu>
59877
59878         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59879         Don't worry about this obsolete case any more.
59880         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59881         directories.
59882         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59883         worry about this obsolete case any more.
59884         * lib/fts.c: Likewise.
59885         * lib/getcwd.c: Likewise.
59886         * lib/glob.h: Likewise.
59887         * lib/savedir.c: Likewise.
59888
59889 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59890
59891         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59892         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59893         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59894         needed.
59895         All uses removed.
59896         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59897         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59898         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59899         needed.
59900         * m4/getdate.m4 (gl_GETDATE): Likewise.
59901         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59902         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59903         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59904         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59905         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59906         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59907         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59908         needed.
59909
59910 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * lib/memcasecmp.c: Include <limits.h>.
59913         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59914         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59915         Don't assume isdigit succeeds only on '0' through '9'.
59916
59917 2006-07-05  Eric Blake  <ebb9@byu.net>
59918
59919         * modules/getaddrinfo (Depends-on): Add snprintf.
59920
59921 2006-07-05  Eric Blake  <ebb9@byu.net>
59922
59923         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59924         to avoid 'header present but could not be compiled' on cygwin.
59925
59926 2006-07-05  Eric Blake  <ebb9@byu.net>
59927
59928         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59929         missing from netdb.h.
59930         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59931
59932 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59933
59934         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59935         no longer needed.
59936         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59937         * m4/getdate.m4 (gl_GETDATE): Likewise.
59938         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59939         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59940         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59941         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59942         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59943
59944 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59945
59946         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59947         All uses of is_space replaced by isspace.
59948         * lib/exit.h: Don't talk about STDC_HEADERS.
59949         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59950         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59951         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59952         replaced by isprint etc.
59953         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59954         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59955         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59956         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59957         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59958         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59959
59960 2006-07-05  Bruno Haible  <bruno@clisp.org>
59961
59962         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59963         the function exists, before testing against AIX.
59964         Reported by Martin Lambers <marlam@marlam.de>.
59965
59966 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59967
59968         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59969         From Mark D. Baushke.
59970
59971 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59972
59973         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59974         to the absolute name, not just one, to bypass Sun C 5.8's
59975         "warning: #include of /usr/include/... may be non-portable".
59976
59977 2006-07-04  Eric Blake  <ebb9@byu.net>
59978
59979         * modules/dirname-tests: New test module.
59980         * tests/test-dirname.c: New file, replacing dirname.c
59981         TEST_DIRNAME section that was recently deleted.
59982
59983 2006-07-04  Bruno Haible  <bruno@clisp.org>
59984
59985         Assume ANSI C header files and <ctype.h> functions.
59986         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59987         (mbsnwidth): Use isprint, iscntrl instead.
59988
59989 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         Merge from coreutils.
59992         * MODULES.html.sh: Add xstrtold.
59993         * modules/xstrtold: New file.
59994         * modules/cycle-check (Files): Add lib/same-inode.h.
59995         * modules/dirname (Files): Add m4/double-slash-root.m4.
59996         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59997         * modules/mkdir-p (Files): Add lib/same-inode.h.
59998         * modules/same (Files): Add lib/same-inode.h.
59999
60000 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60001
60002         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60003         This is to keep the terminology clean; POSIX talks about
60004         "absolute pathnames", not "full pathnames", but the GNU
60005         Coding Standards say to use "path" for something else;
60006         so use "absolute" to keep both sides happy.
60007         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60008         Set gl_absolute_header, not gl_full_header_path.
60009         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60010         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60011         All uses changed.
60012
60013         Merge from coreutils.
60014
60015         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60016
60017         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60018         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60019         want to require the building of c-strtod.o.
60020         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60021         needs -lm directly.
60022         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60023
60024         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60025
60026         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60027         --as-needed option if available.  Problem reported by Albert Chin in
60028         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60029         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60030         cc merely issues a bunch of annoying warnings for --as-needed
60031         (this problem was reported by Bob Proulx).  Also, try linking with
60032         -lm to detect a bug in binutils 2.16 (this problem was reported
60033         by Ralf Wildenhues).
60034
60035         2006-06-18  Jim Meyering  <jim@meyering.net>
60036
60037         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60038         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60039         macro.
60040         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60041         also check for glibc-2.4's abort-inducing bug.
60042
60043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60044         Low-probability clean-up should be to use rmdir to get rid of
60045         the just-created directory, not unlink.
60046
60047         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60048         configure fail, and request a bug report to inform us about it.
60049         Add a comment that, barring reports to the contrary, in 2007 we'll
60050         assume ftruncate is universally available.
60051
60052         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60053
60054         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60055
60056         2006-03-12  Jim Meyering  <jim@meyering.net>
60057
60058         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60059         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60060         * m4/same.m4 (gl_SAME): Likewise.
60061         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60062
60063         2006-03-11  Eric Blake  <ebb9@byu.net>
60064
60065         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60066         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60067         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60068         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60069
60070 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60071
60072         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60073         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60074         reported by Mark D. Baushke, one in
60075         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60076
60077         Merge from coreutils.
60078
60079         * lib/.cppi-disable: Add stdint_.h.
60080         * lib/.cvsignore: Add stdint.h.
60081
60082         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60085         both double and long double versions.
60086         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60087         * lib/xstrtold.c: New file.
60088         * lib/xstrtod.h (xstrtold): New decl.
60089
60090         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         * lib/filemode.c (setst): Remove.
60093         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60094         (arguably) clearer, and the generated code is a bit smaller on my
60095         Debian GNU/Linux stable x86 host.
60096
60097         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60098
60099         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60100         Assume that filemode.h includes sys/types.h and sys/stat.h.
60101         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60102         (ftypelet): Reorder to put common cases first, for efficiency.
60103         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60104         to do 'M'.
60105         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60106         of 10, for compatibility with FreeBSD.  All callers changed.
60107         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60108         types that can't be deduced solely from st_mode.  First arg is now a
60109         const pointer.
60110         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60111         (strmode): Renamed from mode_string.
60112         (filemodestring): New decl.
60113         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60114         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60115         needed.
60116         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60117
60118         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60119
60120         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60121         fsusage.h now does that.  Include fsusage.h first, to test interface.
60122         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60123         at most one method (the old code could have generated decls that
60124         didn't conform to C89, not that this was ever exercised).
60125         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60126
60127         2006-03-19  Jim Meyering  <jim@meyering.net>
60128
60129         Work even in a chroot where d_ino values for entries in "/"
60130         don't match the stat.st_ino values for the same names.
60131         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60132         number, iterate through all entries again, using lstat instead.
60133         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60134         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60135
60136         * lib/getcwd.c (__getcwd): Clarify a comment.
60137         Use memcpy in place of a call to strcpy.
60138
60139         2006-03-12  Jim Meyering  <jim@meyering.net>
60140
60141         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60142         matches that of the current directory (which we're about to chdir ".."
60143         out of), then save the dev-ino of the parent, instead.
60144
60145         * lib/same-inode.h (SAME_INODE): New file/macro.
60146         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60147         Include "same-inode.h", instead.
60148         * lib/same.c: Likewise.
60149         * lib/cycle-check.h: Include "same-inode.h".
60150         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60151         * lib/cycle-check.c (SAME_INODE): Remove definition.
60152         * lib/root-dev-ino.h: Include "same-inode.h".
60153
60154         2006-03-11  Eric Blake  <ebb9@byu.net>
60155
60156         * lib/same.c (same_name): s/base_name/last_component/
60157         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60158         * lib/filenamecat.c (file_name_concat): Likewise.
60159
60160         2006-03-11  Eric Blake  <ebb9@byu.net>,
60161                     Paul Eggert  <eggert@cs.ucla.edu>
60162
60163         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60164         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60165         drive prefix.
60166         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60167         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60168         (last_component): New method.
60169         * lib/dirname.c (dir_len): Determine when drive letters need a
60170         subsequent slash.  Preserve // when it is special.
60171         (dir_name): Don't append dot when drive letter is absolute.
60172         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60173         * lib/basename.c (base_name): New semantics - malloc the result.
60174         Preserve // when it is special.  Preserve relative files that look
60175         like drive letters.
60176         (base_len): Preserve // when it is special.
60177         (last_component): New method, similar to old base_name semantics.
60178         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60179         base_name.  Strip redundant slashes from ///.
60180
60181 2006-07-03  Jim Meyering  <jim@meyering.net>
60182
60183         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60184         macro is used before the first cycle_check call.
60185
60186 2006-07-03  Eric Blake  <ebb9@byu.net>
60187
60188         * modules/dirname (Depends-on): Add xstrndup.
60189
60190 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60193         test cases, so that config.log is a bit easier to follow.
60194
60195 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60196
60197         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60198         both are 64 bits, since this seems to be the tradition, and this
60199         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60200         we ever run into a host that prefers long long to long in this
60201         case, we'll need another configure-time test.  Problem reported by
60202         Jim Meyering.
60203
60204 2006-07-02  Eric Blake  <ebb9@byu.net>
60205
60206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60207
60208 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * modules/inttypes (Depends-on): No longer depends on stdint.
60211         * modules/stdint (Description): Say more about assumptions.
60212         Say that the fast types might differ.  Say macros are used.
60213         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60214         (Makefile.am): Revise list of substituted symbols to match
60215         new stdint.m4.
60216         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60217         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60218         * tests/test-stdint.c (verify_same_types)
60219         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60220         the code conforms to C99/C89.
60221         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60222         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60223
60224 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60225
60226         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60227         but fix a bug, by requiring at least 64 bits.
60228         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60229         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60230         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60231         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60232
60233         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60234         changes.  Make 2.59 a prerequisite.  Check and substitute for
60235         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60236         inttypes.h.  Do not use special include files; just use the
60237         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60238         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60239         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60240         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60241         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60242         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60243         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60244         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60245         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60246         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60247         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60248         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60249         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60250         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60251         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60252         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60253         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60254         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60255         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60256         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60257         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60258         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60259         not check for things that C99 does not require, e.g., int8_t.  If
60260         a test isn't needed unless <stdint.h> isn't working, and is
60261         unlikely to be needed for any other reason, then don't do it
60262         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60263         size_t, since we assume C89 freestanding at least.  Do not check
60264         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60265         the right thing even if the types are not defined.  Instead use:
60266         (gl_STDINT_TYPE_PROPERTIES): New macro.
60267         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60268         testing whether <sys/types.h> clashes, as Autoconf does this for
60269         us now.  All uses removed.
60270         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60271         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60272         (gl_CHECK_TYPE_SAME):
60273         Remove; no longer needed.
60274         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60275         exists, since we'll return 0 anyway in that case.
60276         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60277
60278 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60279
60280         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60281         possible collision with system files.
60282         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60283         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60284         WCHAR_MIN and WCHAR_MAX in this case.
60285         (<stddef.h>): Do not include; no longer needed.
60286         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60287         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60288         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60289         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60290         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60291         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60292         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60293         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60294         !defined(__c99))]: Include in this case too, since it's harmless
60295         now.
60296         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60297         dangerous to do so.
60298         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60299         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60300         (_STDINT_MIN, _STDINT_MAX): New macros.
60301         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60302         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60303         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60304         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60305         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60306         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60307         macros, not typedefs; this simplifies things quite a bit.
60308         Use long int for all types narrower than int64_t.
60309         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60310         Define in terms of long long int or int64_t or long int,
60311         not int64_t or int32_t.  This saves some compile-time testing.
60312         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60313         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60314         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60315         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60316         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60317         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60318         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60319         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60320         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60321         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60322         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60323         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60324         undef any previous version and define our own version, for
60325         simplicity and consistency with the new macros for types.
60326         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60327         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60328         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60329         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60330         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60331         @WINT_T_SUFFIX@ to keep things simple here.
60332         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60333         Simplify by assuming typical 8/16/32/64 host, since we're
60334         already doing that elsewhere anyway.
60335         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60336         and assume long long int is 64 bits if available.  This
60337         speeds up 'configure'.
60338
60339 2006-07-01  Eric Blake  <ebb9@byu.net>
60340
60341         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
60342         Reported by Andreas Buening.
60343
60344 2006-07-01  Eric Blake  <ebb9@byu.net>
60345
60346         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
60347
60348 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60349
60350         * lib/getaddrinfo.c: fixed typo
60351
60352 2006-06-29  Jim Meyering  <jim@meyering.net>
60353
60354         * modules/strftime (Maintainer): Add my name, since with the
60355         FPRINTFTIME changes strftime.c has forked from glibc.
60356
60357 2006-06-29  Eric Blake  <ebb9@byu.net>
60358
60359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
60360
60361 2006-06-29  Eric Blake  <ebb9@byu.net>
60362
60363         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
60364
60365 2006-06-29  Eric Blake  <ebb9@byu.net>
60366
60367         * lib/stat_.h: New file.
60368
60369 2006-06-29  Eric Blake  <ebb9@byu.net>
60370
60371         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
60372         unused static function.
60373
60374 2006-06-29  Eric Blake  <ebb9@byu.net>
60375
60376         * doc/functions.texi (Function Portability): Document missing lstat
60377         on mingw.
60378
60379 2006-06-29  Eric Blake  <ebb9@byu.net>
60380
60381         * MODULES.html.sh: Add sys_stat.
60382         * modules/sys_stat: New module.
60383         * modules/mkstemp (Depends-on): Add sys_stat.
60384
60385 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60386
60387         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
60388
60389 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60390
60391         * m4/c-bs-a.m4: Removed.
60392
60393 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60394
60395         * lib/strftime.c: Assume strftime() exists.
60396
60397 2006-06-29  Derek Price  <derek@ximbiot.com>
60398
60399         * modules/c-bs-a: Removed - \a is C89.
60400         * MODULES.html.sh: Remove c-bs-a.
60401
60402 2006-06-29  Bruno Haible  <bruno@clisp.org>
60403
60404         * modules/wcwidth (License): Change to LGPL.
60405
60406 2006-06-28  Simon Josefsson  <jas@extundo.com>
60407
60408         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
60409         on _WIN32.
60410
60411         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
60412         getnameinfo.
60413
60414 2006-06-28  Simon Josefsson  <jas@extundo.com>
60415
60416         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
60417
60418 2006-06-28  Simon Josefsson  <jas@extundo.com>
60419
60420         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
60421         functions there.  It will succeed on Windows XP, but on Windows
60422         2000 and (presumably) earlier, it will fail, and use the internal
60423         re-implementation.
60424         (use_win32_p): New function.
60425         (getaddrinfo): Use strtoul on servname, to support numeric ports.
60426         Support AI_NUMERICSERV to disable getservbyname.
60427         (getnameinfo): New function, only supports
60428         NI_NUMERICHOST|NI_NUMERICSERV for now.
60429
60430         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
60431         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
60432         getnameinfo.
60433
60434 2006-06-28  Eric Blake  <ebb9@byu.net>
60435
60436         * modules/wcwidth: New file.
60437         * modules/mbchar (Depends-on): Add wcwidth.
60438         * modules/mbswidth (Depends-on): Add wcwidth.
60439         * MODULES.html.sh: Add wcwidth.
60440
60441 2006-06-28  Eric Blake  <ebb9@byu.net>
60442
60443         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
60444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
60445
60446 2006-06-28  Eric Blake  <ebb9@byu.net>
60447
60448         * lib/xvasprintf.h: Fix comments.
60449
60450 2006-06-28  Eric Blake  <ebb9@byu.net>
60451
60452         * lib/mbchar.h (wcwidth): Include wcwidth.h.
60453         * lib/mbswidth.c (wcwidth): Move from here...
60454         * lib/wcwidth.h: ...to this new file.
60455
60456 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60457
60458         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
60459
60460         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
60461         it's obsolete.
60462         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
60463
60464 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60465
60466         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
60467         Autoconf 2.60 says this stuff was obsolete.
60468
60469 2006-06-28  Bruno Haible  <bruno@clisp.org>
60470
60471         * modules/wcwidth (Files): Add m4/wchar_t.m4.
60472
60473 2006-06-28  Bruno Haible  <bruno@clisp.org>
60474
60475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
60476         gt_TYPE_WCHAR_T.
60477
60478 2006-06-28  Bruno Haible  <bruno@clisp.org>
60479
60480         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
60481         declaration for wcwidth.
60482         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
60483
60484 2006-06-28  Bruno Haible  <bruno@clisp.org>
60485
60486         * lib/mkdtemp.c [MINGW]: Include <io.h>.
60487         (mkdir): Define using _mkdir.
60488
60489 2006-06-28  Bruno Haible  <bruno@clisp.org>
60490
60491         * lib/getaddrinfo.h: Fix POSIX URL.
60492         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
60493         _WIN32.
60494         (use_win32_p): Make static.
60495         (getaddrinfo): Reject service name if it is empty or does not consist
60496         solely of decimal digits, or if its value is > 65535.
60497         (getnameinfo): Remove useless casts.
60498
60499 2006-06-27  Simon Josefsson  <jas@extundo.com>
60500
60501         * modules/sys_select: New file, suggested by Bruno Haible, Paul
60502         Eggert and Martin Lambers.
60503
60504 2006-06-27  Simon Josefsson  <jas@extundo.com>
60505
60506         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
60507         Eggert and Martin Lambers.
60508
60509 2006-06-27  Bruno Haible  <bruno@clisp.org>
60510
60511         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
60512         result to 0, not to empty.
60513         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
60514
60515 2006-06-27  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
60518
60519 2006-06-26  Simon Josefsson  <jas@extundo.com>
60520
60521         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
60522         present.
60523
60524 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
60527         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
60528         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
60529
60530 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
60531
60532         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
60533
60534 2006-06-26  Bruno Haible  <bruno@clisp.org>
60535
60536         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
60537
60538 2006-06-26  Bruno Haible  <bruno@clisp.org>
60539
60540         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
60541
60542 2006-06-26  Bruno Haible  <bruno@clisp.org>
60543
60544         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
60545         SGI C compiler in pre-C99 mode.
60546         Suggested by Mark D. Baushke and Larry Jones.
60547
60548 2006-06-26  Bruno Haible  <bruno@clisp.org>
60549
60550         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
60551         WCHAR_MAX.
60552         Reported by Mark D. Baushke and Larry Jones.
60553
60554 2006-06-26  Bruno Haible  <bruno@clisp.org>
60555
60556         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60557         in pre-C99 mode.
60558         Suggested by Mark D. Baushke and Larry Jones.
60559
60560 2006-06-23  Simon Josefsson  <jas@extundo.com>
60561             Bruno Haible  <bruno@clisp.org>
60562
60563         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60564         Emit mostlyclean-local rule.
60565         (func_emit_tests_Makefile_am): Likewise.
60566         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60567
60568 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60569
60570         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60571
60572 2006-06-23  Bruno Haible  <bruno@clisp.org>
60573
60574         * tests/test-stdint.c: Update to match ISO C 99 Technical
60575         Corrigendum 1.
60576
60577 2006-06-23  Bruno Haible  <bruno@clisp.org>
60578
60579         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60580
60581 2006-06-23  Bruno Haible  <bruno@clisp.org>
60582
60583         * lib/stdint_.h: Treat IRIX like OpenBSD.
60584
60585 2006-06-23  Bruno Haible  <bruno@clisp.org>
60586
60587         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60588         ISO C 99 Technical Corrigendum 1.
60589
60590 2006-06-22  Simon Josefsson  <jas@extundo.com>
60591
60592         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60593         MinGW.
60594
60595 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60596
60597         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60598         needed.  Some compiler complained about some of them.  Problem reported
60599         by Larry Jones in
60600         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60601
60602 2006-06-21  Simon Josefsson  <jas@extundo.com>
60603
60604         * tests/test-getaddrinfo.c: New file.
60605
60606         * modules/getaddrinfo-tests: New file.
60607
60608         * MODULES.html.sh: Add inet_pton.
60609
60610         * modules/inet_pton: New file.
60611
60612 2006-06-21  Simon Josefsson  <jas@extundo.com>
60613
60614         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60615         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60616         of using the (limited) gnulib implementation on Windows XP.
60617
60618         * m4/inet_pton.m4: New file.
60619
60620 2006-06-21  Simon Josefsson  <jas@extundo.com>
60621
60622         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60623         variable.
60624
60625         * lib/socket_.h: Don't define WINVER.
60626
60627         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60628         slightly modified to work in gnulib.
60629
60630 2006-06-21  Simon Josefsson  <jas@extundo.com>
60631
60632         * doc/gnulib.texi (Windows sockets): Add.
60633
60634 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60635
60636         * lib/read-file.c (fread_file): Start with buffer allocation of
60637         0 bytes rather than 1 byte; this simplifies the code.
60638         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60639         code to free buffer and save/restore errno.
60640         (internal_read_file): Remove unused local.
60641
60642 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60643
60644         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60645         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60646         Problem reported by Denis Excoffier in
60647         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60648
60649 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60650
60651         * modules/sys_socket, modules/socklen: Include sys/types since
60652         FreeBSD 4.x's sys/socket.h needs it.
60653
60654 2006-06-19  Simon Josefsson  <jas@extundo.com>
60655
60656         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60657
60658 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60659
60660         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60661
60662 2006-06-19  Bruno Haible  <bruno@clisp.org>
60663
60664         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60665         and FULL_PATH_INTTYPES_H in angle brackets.
60666         Reported by Mark D. Baushke <mdb@gnu.org>.
60667
60668 2006-06-17  Eric Blake  <ebb9@byu.net>
60669
60670         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60671         errno.
60672
60673 2006-06-17  Bruno Haible  <bruno@clisp.org>
60674
60675         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60676         <sys/inttypes.h>.
60677
60678 2006-06-17  Bruno Haible  <bruno@clisp.org>
60679
60680         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60681         whether errno is declared. Assume <errno.h> declares errno.
60682
60683 2006-06-17  Bruno Haible  <bruno@clisp.org>
60684
60685         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60686
60687 2006-06-17  Bruno Haible  <bruno@clisp.org>
60688
60689         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60690         problem on Solaris 2.5.1.
60691
60692 2006-06-16  Eric Blake  <ebb9@byu.net>
60693
60694         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60695         * lib/unicodeio.c [!defined errno]: Likewise.
60696         * lib/strtol.c [!defined errno]: Likewise.
60697         * lib/strtod.c [!defined errno]: Likewise.
60698
60699 2006-06-15  Eric Blake  <ebb9@byu.net>
60700
60701         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60702
60703 2006-06-15  Eric Blake  <ebb9@byu.net>
60704
60705         * config/srclist.txt (ssize_t.m4): Lose sync.
60706
60707 2006-06-15  Bruno Haible  <bruno@clisp.org>
60708
60709         * modules/stdint (Files): Include m4/full-header-path.m4,
60710         m4/size_max.m4, m4/wchar_t.m4.
60711         (Makefile.am): Many more substitutions.
60712         * modules/stdint-tests: New file.
60713         * tests/test-stdint.c: New file.
60714
60715 2006-06-15  Bruno Haible  <bruno@clisp.org>
60716
60717         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60718         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60719         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60720         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60721         gl_CHECK_TYPE_SAME): New macros.
60722
60723 2006-06-15  Bruno Haible  <bruno@clisp.org>
60724
60725         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60726
60727 2006-06-15  Bruno Haible  <bruno@clisp.org>
60728
60729         * lib/stdint_.h: Rewritten to be fully auto-configured.
60730         Fixes bug on HP-UX/IA64.
60731
60732 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60733
60734         * lib/getdate.y (__attribute__): Don't define if already defined.
60735         Problem reported by Larry Jones.
60736         * lib/utimens.c (__attribute__): Likewise.
60737
60738 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60739
60740         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60741         reported by Andreas Schwab.
60742
60743 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60744             Bruno Haible  <bruno@clisp.org>
60745
60746         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60747         check for the declaration of strnlen and a run test that exposes the
60748         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60749         rpl_strndup.
60750
60751 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60752             Bruno Haible  <bruno@clisp.org>
60753
60754         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60755
60756 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60757
60758         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60759         compile test, for Tru64 4.0D.
60760
60761 2006-05-28  Karl Berry  <karl@gnu.org>
60762
60763         * config/srclist.txt (printf-args.c): lose sync.
60764
60765 2006-05-26  Martin Lambers  <marlam@marlam.de>
60766
60767         * lib/getpass.c: Updates the test for the native W32 API, and adds
60768         missing includes, thus fixing compilation warnings.
60769
60770 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60771
60772         * lib/exclude.c (exclude_fnmatch): New function.
60773         (excluded_file_name): Call exclude_fnmatch.
60774         * lib/exclude.h (excluded_file_name): New prototype
60775
60776 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60777
60778         * lib/tempname.c (small_open, large_open): New macros.
60779         (__open, __open64) [!_LIBC]: Remove.
60780         (__gen_tempname): Use small_open and large_open instead of __open
60781         and __open64.  This fixes a portability bug on HP-UX 11.11i
60782         reported by Simon Wing-Tang in
60783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60784
60785 2006-05-24  Bruno Haible  <bruno@clisp.org>
60786
60787         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60788         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60789         Reported by Thorsten Maerz <torte@netztorte.de> via
60790         Aaron Stone <aaron@serendipity.cx>.
60791
60792 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60793
60794         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60795         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60796         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60797         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60798         not really conditional on the cache.
60799         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60800
60801 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60802
60803         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60804         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60805         (my_usleep): Don't mishandle maximum value.
60806
60807 2006-05-19  Jim Meyering  <jim@meyering.net>
60808
60809         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60810
60811 2006-05-17  Bruno Haible  <bruno@clisp.org>
60812
60813         Cygwin portability.
60814         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60815
60816 2006-05-17  Bruno Haible  <bruno@clisp.org>
60817
60818         * lib/stdint_.h: Fix recognition of Cygwin.
60819
60820 2006-05-15  Bruno Haible  <bruno@clisp.org>
60821
60822         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60823         on libtool patch by Ralf Wildenhues.
60824
60825 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60826
60827         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60828         test for C99 conformance; (bool) 0.5 is an integer constant
60829         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60830         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60831
60832 2006-05-11  Simon Josefsson  <jas@extundo.com>
60833
60834         * m4/xvasprintf.m4: Fix obvious typo.
60835
60836 2006-05-11  Jim Meyering  <jim@meyering.net>
60837
60838         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60839         James Lemley.
60840
60841 2006-05-10  Simon Josefsson  <jas@extundo.com>
60842
60843         * lib/md4.c: Typo fix, update copyright years.
60844         (K1, K2): Don't use L because it turn computations into 64-bit on
60845         64-bit platforms.
60846
60847 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60848
60849         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60850         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60851         unwanted sign propagation, e.g., on hosts with 64-bit int.
60852         There still are some problems with reeelly weird theoretical hosts
60853         (e.g., 33-bit int) but it's not worth worrying about now.
60854         * lib/sha1.c (rol): Likewise.
60855         (K1, K2, K3, K4): Remove unnecessary L suffix.
60856
60857 2006-05-10  Bruno Haible  <bruno@clisp.org>
60858
60859         * lib/des.c: Cast to avoid warnings.
60860
60861 2006-05-09  Bruno Haible  <bruno@clisp.org>
60862
60863         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60864         (Depends-on): Depend also on xsize, stdarg.
60865         (configure.ac): Add gl_XVASPRINTF.
60866
60867 2006-05-09  Bruno Haible  <bruno@clisp.org>
60868
60869         * m4/xvasprintf.m4: New file.
60870
60871 2006-05-09  Bruno Haible  <bruno@clisp.org>
60872
60873         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60874         (EOVERFLOW): Define fallback value.
60875         (xstrcat): New function.
60876         (xvasprintf): Recognize the special case of a string concatenation.
60877
60878 2006-05-08  Eric Blake  <ebb9@byu.net>
60879
60880         * gnulib-tool (func_version): Base copyright year on CVS date.
60881         (func_emit_copyright_notice): New function.
60882         (func_emit_lib_Makefile_am): Use it.
60883         (func_emit_tests_Makefile_am): Likewise.
60884         (func_import): Likewise.
60885
60886 2006-05-08  Bruno Haible  <bruno@clisp.org>
60887
60888         * modules/stdarg: New file.
60889         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60890
60891 2006-05-08  Bruno Haible  <bruno@clisp.org>
60892
60893         * m4/stdarg.m4: New file, from GNU gettext.
60894
60895 2006-05-08  Bruno Haible  <bruno@clisp.org>
60896
60897         * config/srclist.txt (build-aux/config.rpath): different from latest
60898         release.
60899
60900 2006-05-08  Bruno Haible  <bruno@clisp.org>
60901
60902         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60903
60904 2006-05-05  Jim Meyering  <jim@meyering.net>
60905
60906         * m4/warning.m4: New file, derived from bison's file by the same name.
60907
60908 2006-05-03  Bruno Haible  <bruno@clisp.org>
60909
60910         * lib/stdint_.h: Shorter URL.
60911         * lib/inttypes.h: Likewise.
60912
60913 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60914
60915         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60916
60917 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60918
60919         * lib/verify.h: Document the internals better.  Most of this change
60920         was written by Bruno Haible.
60921
60922 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60923
60924         * doc/verify.texi: New file, partly based on a proposal by
60925         Bruno Haible.
60926
60927 2006-05-02  Bruno Haible  <bruno@clisp.org>
60928
60929         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60930         test from here...
60931         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60932
60933 2006-04-29  Bruno Haible  <bruno@clisp.org>
60934
60935         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60936         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60937
60938 2006-04-29  Bruno Haible  <bruno@clisp.org>
60939
60940         * gnulib-tool: Make --update option actually work.
60941
60942 2006-04-29  Bruno Haible  <bruno@clisp.org>
60943
60944         * doc/gcd.texi: New file.
60945         * doc/gnulib.texi: Include it.
60946
60947 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60948
60949         * lib/getdate.y (get_date): When adding relative date, start with the
60950         initial time, not with the result of the first mktime call.
60951
60952 2006-04-25  Bruno Haible  <bruno@clisp.org>
60953
60954         * gnulib-tool (func_import): Output the include directives in three
60955         blocks, sorted separately.
60956         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60957
60958 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60959
60960         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60961         to define main with arguments, for C++.  Reported by Eric Blake.
60962         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60963         Prefer 'int main ()' to 'int main (void)', for C++.
60964         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60965         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60966         for 'main', for C99 and C++.
60967
60968 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60969
60970         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60971         Don't assume that exit status -1 is valid.
60972         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60973         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60974         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60975         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60976         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60977         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60978         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60979         functions can be used without declaring them, or that you can
60980         exit with status -1.
60981         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60982
60983 2006-04-24  Karl Berry  <karl@gnu.org>
60984
60985         * config/srclist.txt (longdouble.m4): sync lost.
60986
60987 2006-04-24  Eric Blake  <ebb9@byu.net>
60988
60989         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60990
60991 2006-04-24  Bruno Haible  <bruno@clisp.org>
60992
60993         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60994         poll() implementation in AIX.
60995         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60996
60997 2006-04-24  Bruno Haible  <bruno@clisp.org>
60998
60999         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61000         assigned exactly once.
61001
61002 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61003             Bruno Haible  <bruno@clisp.org>
61004
61005         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61006         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61007         for AM_CPPFLAGS.
61008
61009 2006-04-23  Bruno Haible  <bruno@clisp.org>
61010
61011         * modules/copy-file: Depend on unistd.
61012         * modules/execute: Likewise.
61013         * modules/fatal-signal: Likewise.
61014         * modules/findprog: Likewise.
61015         * modules/mkdtemp : Likewise.
61016         * modules/pipe: Likewise.
61017         * modules/wait-process: Likewise.
61018
61019 2006-04-23  Bruno Haible  <bruno@clisp.org>
61020
61021         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61022         condition was already detected.
61023         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61024
61025 2006-04-23  Bruno Haible  <bruno@clisp.org>
61026
61027         * lib/copy-file.c: Include <unistd.h> unconditionally.
61028         * lib/execute.c: Likewise.
61029         * lib/fatal-signal.c: Likewise.
61030         * lib/findprog.c: Likewise.
61031         * lib/mkdtemp.c: Likewise.
61032         * lib/pipe.h: Likewise.
61033         * lib/pipe.c: Likewise.
61034         * lib/wait-process.h: Likewise.
61035
61036 2006-04-23  Bruno Haible  <bruno@clisp.org>
61037
61038         * gnulib-tool (func_usage): Fix --import description. Document
61039         --update.
61040         (func_import): Create temporary file in a temporary directory, if
61041         --dry-run is specified. Silence errors from 'grep' when there are no
61042         m4 files in $m4dir.
61043         (func_create_testdir): Silence errors from 'grep' when there are no
61044         m4 files in $m4dir.
61045         Reported by Karl Berry <karl@freefriends.org>.
61046
61047 2006-04-20  Bruno Haible  <bruno@clisp.org>
61048
61049         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61050         one argument, so that the code will be portable to Autoconf 2.60.
61051         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61052         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61053         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61054
61055 2006-04-19  Derek Price  <derek@ximbiot.com>
61056             Eric Blake  <ebb9@byu.net>
61057
61058         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61059         rather than "/full/path.h".  Update comment to match.  Shorten &
61060         generalize m4_translit call via AS_TR_CPP.
61061
61062 2006-04-19  Derek Price  <derek@ximbiot.com>
61063             Eric Blake  <ebb9@byu.net>
61064
61065         * lib/inttypes.h: Correct grammar in comment.
61066
61067 2006-04-18  Derek Price  <derek@ximbiot.com>
61068             Paul Eggert  <eggert@cs.ucla.edu>
61069
61070         * modules/inttypes: New file.
61071         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61072
61073 2006-04-18  Derek Price  <derek@ximbiot.com>
61074             Paul Eggert  <eggert@cs.ucla.edu>
61075
61076         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61077         New files.
61078
61079 2006-04-18  Derek Price  <derek@ximbiot.com>
61080             Paul Eggert  <eggert@cs.ucla.edu>
61081
61082         * lib/inttypes.h: New file.
61083         * lib/strtoimax.c: Assume <inttypes.h>.
61084
61085 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61088         isn't mounted.  Problem reported by Kir Kolyshkin.
61089
61090 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61091
61092         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61093         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61094         Derek R. Price.
61095         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61096         implementation.
61097
61098 2006-04-12  Eric Blake  <ebb9@byu.net>
61099
61100         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61101         is now done automatically by the corresponding Autoconf macro.
61102
61103 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61104
61105         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61106         time_r.h.
61107
61108 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61109
61110         Merge regex changes from libc, removing some of our
61111         POSIX-conformance changes that were rejected and redoing them in a
61112         less-intrusive way.
61113
61114         * lib/regcomp.c (re_compile_internal, init_dfa):
61115         Length arg is now size_t, not Idx.  All uses changed.
61116         (peek_token): Forward decl now says internal_function.
61117         (__re_error_msgid, __re_error_msgid_idx):
61118         Now static rather than extern with attribute_hidden.
61119         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61120         For some reason libc prefers K&R style defns for external functions.
61121         (regerror) [!defined _LIBC]: Likewise.
61122         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61123         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61124         (build_range_exp, build_collating_symbol):
61125         Use K&R-style defn.
61126         (re_compile_fastmap): Use '\0' to memset, not 0.
61127         (utf8_sb_map): Make the calculations more obvious.
61128         (init_dfa, parse_bracket_exp, build_charclass_op):
61129         Call calloc and cast result, as glibc does.
61130         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61131         (build_range_exp, build_collating_symbol):
61132         Now internal functions.
61133
61134         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61135
61136         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61137         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61138         Don't depend on VMS; depend on __VMS instead, for POSIX
61139         namespace cleanness.
61140         (regoff_t): Define to ssize_t, not long int.
61141
61142         Remove the REG_ macros named below.  Instead, make the old names
61143         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61144         __USE_GNU_REGEX.
61145         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61146         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61147         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61148         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61149         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61150         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61151         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61152         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61153         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61154         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61155         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61156         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61157         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61158         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61159         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61160         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61161         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61162         (REG_NREGS):
61163         Remove.  All uses replaced by the old RE_* names.
61164         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61165         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61166         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61167         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61168         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61169         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61170         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61171         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61172         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61173         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61174         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61175         Don't bother having these macros be independent of each others'
61176         values, since they no longer exist in the POSIX name space.
61177
61178         Rename the following member names back to their old names,
61179         unless !__USE_GNU_REGEX.  All uses changed back.
61180         (buffer): Renamed from re_buffer.
61181         (allocated): Renamed from re_allocated.
61182         (used): Renamed from re_used.
61183         (syntax): Renamed from re_syntax.
61184         (fastmap): Renamed from re_fastmap.
61185         (translate): Renamed from re_translate.
61186         (can_be_null): Renamed from re_can_be_null.
61187         (regs_allocated): Renamed from re_regs_allocated.
61188         (fastmap_accurate): Renamed from re_fastmap_accurate.
61189         (no_sub): Renamed from re_no_sub.
61190         (not_bol): Renamed from re_not_bol.
61191         (not_eol): Renamed from re_not_eol.
61192         (newline_anchor): Renamed from re_newline_anchor.
61193         (num_regs): Renamed from rm_num_regs.
61194         (start): Renamed from rm_start.
61195         (end): Renamed from rm_end.
61196
61197         (free_state): Move up a bit.
61198
61199         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61200         #define to be empty.
61201         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61202         when that is what is intended.
61203         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61204         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61205         (MAX): New macro.
61206         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61207         All uses changed back to re_malloc, etc.  It's now the caller's
61208         responsibility to check for overflow; all callers changed.
61209         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61210         (re_x2nrealloc): Remove.
61211         (free_state): Remove decl.
61212
61213         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61214         (re_set_registers, re_exec):
61215         Use K&R-style defn.
61216
61217         2006-01-31  Roland McGrath  <roland@redhat.com>
61218
61219         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61220         Reported by Mike Frysinger <vapier@gentoo.org>.
61221
61222         2006-01-15  Andreas Jaeger  <aj@suse.de>
61223
61224         [BZ #1950]
61225         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61226         build_wcs_upper_buffer change.
61227         (build_wcs_upper_buffer): Change return type.
61228
61229         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61230
61231         * lib/regex_internal.h: Include <stdint.h> if available.
61232
61233         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61234
61235         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61236
61237         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61238
61239         * lib/regcomp.c: Adjust for changed secondary hash function.
61240
61241         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61242
61243         * lib/regex.h: Pretty printing.
61244         Clean up namespace a bit.
61245
61246         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61247
61248         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61249         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61250
61251         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61252                     Ulrich Drepper  <drepper@redhat.com>
61253
61254         [BZ #1302]
61255         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61256         changed.
61257         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61258
61259         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61260
61261         [BZ #281]
61262         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61263         * lib/regcomp.c: Remove unnecessary uses of
61264         unsigned RE_TRANSLATE_TYPE.
61265         * lib/regex_internal.h: Likewise.
61266         * lib/regex_internal.c: Likewise.
61267         * lib/regexec.c: Likewise.
61268         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61269
61270         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61271
61272         * lib/regexec.c (find_recover_state): Remove unnecessary
61273         initialization.
61274         (transit_state_bkref): Make DFA a const pointer.
61275         (get_subexp): Likewise.
61276         (check_arrival): Likewise.
61277         (update_cur_sifted_state): Likewise.
61278         (re_search_internal): Likewise.
61279         (prune_impossible_nodes): Likewise.
61280         (acquire_init_state_context): Likewise.
61281         (proceed_next_node): Likewise.
61282         (set_regs): Likewise.
61283         (free_fail_stack_return): Likewise.
61284         (check_arrival_expand_ecl): Mark DFA parameter as const.
61285         (check_arrival_expand_ecl_sub): Likewise.
61286         (check_subexp_limits): Likewise.
61287         (sub_epsilon_src_nodes):  Likewise.
61288         (add_epsilon_src_nodes):  Likewise.
61289         (merge_state_array): Likewise.
61290         (update_regs): Likewise.
61291         (build_trtable): Likewise.
61292         (sift_states_backward): Mark MCTX parameter as const.
61293         (build_sifted_states): Likewise.
61294         (update_cur_sifted_state): Likewise.
61295         (sift_states_mkref): Likewise.
61296         (check_arrival_expand_ecl): Mark eclosure as const.
61297         (check_dst_limits_calc_pos_1): Likewise.
61298         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61299         pointer.
61300
61301         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61302
61303         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61304         (transit_state_sb): Likewise.
61305         (transit_state_mb): Likewise.
61306         (sift_states_iter_mb): Likewise.
61307         (check_arrival_add_next_nodes): Likewise.
61308         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61309         [_LIBC] (re_search_2_stub): Use mempcpy.
61310
61311         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61312         mbrtowc for very simple UTF-8 case.
61313
61314         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61315         a pointer-to-const.
61316         (re_acquire_state_context): Likewise.
61317         * lib/regex_internal.h: Adjust prototypes.
61318
61319         * lib/regex.c: Prevent using C++ compilers.
61320
61321         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61322         (re_acquire_state_context): Likewise.
61323
61324 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61325
61326         * modules/regex (Depends-on): Add ssize_t.
61327
61328 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61329
61330         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61331         translation table.
61332
61333 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61334
61335         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61336
61337 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61338             Bruno Haible  <bruno@clisp.org>
61339
61340         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
61341         <sys/types.h> and <inttypes.h>.
61342
61343 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61344
61345         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
61346         `__error_t_defined', so argp.h will not typedef the former.
61347
61348 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61349
61350         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
61351         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
61352         glibc names.  Even if glibc is changed to conform to POSIX, the
61353         traditional names will be available anyway, since regex depends on
61354         the extensions module.  Also, fix a longstanding typo in the
61355         implementation of Spencer ERE test #75 from grep 2.3.  Problems
61356         reported by Emanuele Giaquinta.  Also, change sense of cached
61357         variable, so that the message makes sense.
61358
61359 2006-03-24  Simon Josefsson  <jas@extundo.com>
61360
61361         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
61362         including some doc fixes.
61363         (base64_encode_alloc): Fix +1 bug on allocation failures.
61364
61365 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61366
61367         * lib/base64.c (base64_encode): Do not read past end of array with
61368         unsanitized input on systems with CHAR_BIT > 8.
61369
61370 2006-03-24  Eric Blake  <ebb9@byu.net>
61371
61372         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
61373
61374 2006-03-22  Karl Berry  <karl@gnu.org>
61375
61376         * config/srclist.txt (*setenv.[ch]): get from coreutils.
61377         * config/srclistvars.sh (COREUTILS): new var.
61378
61379 2006-03-17  Jim Meyering  <jim@meyering.net>
61380
61381         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
61382         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
61383
61384 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61385
61386         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
61387         no longer needs it.  Instead, check that regoff_t is as least
61388         as wide as ptrdiff_t.
61389
61390         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
61391         so that our regex.h stays compatible with the installed regex.
61392         This is helpful for installers who configure --without-included-regex.
61393         Problem reported by Emanuele Giaquinta.
61394
61395 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61396
61397         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
61398         Typedef to long int, not to off_, as POSIX will likely change
61399         in that direction.
61400
61401 2006-03-15  Eric Blake  <ebb9@byu.net>
61402
61403         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
61404
61405 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61406
61407         * lib/argp-help.c (validate_uparams): Fix typo
61408         * lib/argp-parse.c (argp_default_options): Consistently begin help
61409         messages with a lowercase letter.
61410
61411 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
61412
61413         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
61414         overrun buffers and shouldn't be used (much as gets shouldn't be
61415         used).
61416         * lib/time_r.c (asctime_r, ctime_r): Likewise.
61417
61418 2006-03-08  Simon Josefsson  <jas@extundo.com>
61419
61420         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
61421         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61422
61423 2006-03-08  Simon Josefsson  <jas@extundo.com>
61424
61425         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
61426         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61427
61428 2006-03-08  Simon Josefsson  <jas@extundo.com>
61429
61430         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
61431         signal that configure disabled the device.
61432
61433 2006-03-08  Simon Josefsson  <jas@extundo.com>
61434
61435         * build-aux/maint.mk: Fix refresh-po, to handle no translated
61436         languages.
61437
61438 2006-03-07  Simon Josefsson  <jas@extundo.com>
61439
61440         * modules/getopt (Depends-on): Add unistd.
61441
61442         * modules/unistd: New file.
61443
61444 2006-03-07  Simon Josefsson  <jas@extundo.com>
61445
61446         * modules/gc-random: New file.
61447
61448 2006-03-07  Simon Josefsson  <jas@extundo.com>
61449
61450         * m4/unistd_h.m4: New file.
61451
61452 2006-03-07  Simon Josefsson  <jas@extundo.com>
61453
61454         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
61455         test to be side-effect free by storing the result in the cache
61456         variable gl_cv_lib_readline, and moving the assignment of
61457         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
61458         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61459
61460 2006-03-07  Simon Josefsson  <jas@extundo.com>
61461
61462         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
61463         error on missing devices (the functions will return an error).
61464
61465         * m4/gc.m4: Move random stuff to gc-random.m4
61466
61467 2006-03-07  Simon Josefsson  <jas@extundo.com>
61468
61469         * lib/unistd_.h: New file.
61470
61471 2006-03-07  Simon Josefsson  <jas@extundo.com>
61472
61473         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
61474
61475 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61476
61477         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
61478         Problem reported by Juan Manuel Guerrero.
61479
61480 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61481
61482         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
61483         the unistd module.
61484         * lib/getlogin_r.c: Likewise.
61485         * lib/getlogin_r.h: Likewise.
61486         * lib/glob.c: Likewise.
61487         * lib/pagealign_alloc.c: Likewise.
61488         * lib/unistd_.h: Remove; no longer needed.
61489
61490 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61491
61492         * MODULES.html.sh (Support for systems lacking POSIX:2001):
61493         Add unistd.
61494         * modules/c-stack (Depends-on): Add unistd.
61495         * modules/getlogin_r: Likewise.
61496         * modules/glob: Likewise.
61497         * modules/pagealign_alloc: Likewise.
61498         * modules/unistd (Files): Remove lib/unistd_.h.
61499         (EXTRA_DIST): Remove.
61500         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
61501         need unistd_.h.
61502         (MOSTLYCLEANFILES): Remove unistd.h-t.
61503
61504 2006-03-03  Simon Josefsson  <jas@extundo.com>
61505
61506         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
61507
61508 2006-03-03  Simon Josefsson  <jas@extundo.com>
61509
61510         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
61511         libidn and bison.
61512
61513 2006-03-03  Simon Josefsson  <jas@extundo.com>
61514
61515         * build-aux/maint.mk: Add indent target.
61516
61517 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
61518
61519         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
61520         our replacement poll.h in any case, to avoid a differing
61521         declaration from a system header.  Seen on AIX.
61522
61523 2006-03-01  Simon Josefsson  <jas@extundo.com>
61524
61525         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
61526         <kasal@ucw.cz>.
61527
61528 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61529
61530         * modules/gettime (Depends-on): Add extensions module.
61531         * modules/nanosleep (Depends-on): Likewise.
61532         * modules/settime (Depends-on): Likewise.
61533
61534 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61535
61536         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
61537         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
61538         pedantically.
61539         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61540         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
61541
61542         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
61543         not "==".  Reported by Ralf Wildenhues.
61544
61545 2006-03-01  Karl Berry  <karl@gnu.org>
61546
61547         * doc/Copyright/request-*: new files, synced from gnuorg.
61548
61549 2006-03-01  Karl Berry  <karl@gnu.org>
61550
61551         * config/srclist.txt (Copyright/*): new entries.
61552
61553 2006-02-28  Simon Josefsson  <jas@extundo.com>
61554
61555         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61556
61557 2006-02-27  Simon Josefsson  <jas@extundo.com>
61558
61559         * lib/base64.h: Indent #define's.  From Jim Meyering
61560         <jim@meyering.net>.
61561
61562 2006-02-27  Jim Meyering  <jim@meyering.net>
61563
61564         Revert the change of 2006-02-24, so these files can continue
61565         to be sync'd from gettext.
61566         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61567         of `config.h'.
61568
61569 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61570
61571         * modules/intprops: New file.
61572         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61573         Add intprops.
61574         * modules/getloadavg (Files): Remove lib/intprops.h.
61575         (Depends-on): Add intprops.
61576         * modules/human: Likewise.
61577         * modules/inttostr: Likewise.
61578         * modules/openat: Likewise.
61579         * modules/sig2str: Likewise.
61580         * modules/userspec: Likewise.
61581         * modules/utimecmp: Likewise.
61582         * modules/xnanosleep: Likewise.
61583         * modules/xstrtol: Likewise.
61584
61585 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61586
61587         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61588         * modules/lock-tests (TESTS): Use $(EXEEXT).
61589         * modules/tls-tests: Likewise.
61590         * modules/argp-tests: Likewise.
61591         (check_PROGRAMS): New var, replacing...
61592         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61593
61594 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61595
61596         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61597         `config.h'.
61598
61599 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61602
61603 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61604
61605         Sync from coreutils.
61606         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61607         gl_CHDIR_SAFER.
61608
61609 2006-02-22  Jim Meyering  <jim@meyering.net>
61610
61611         Sync from coreutils.
61612         * m4/chdir-safer.m4: New file.
61613
61614 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61615
61616         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61617         AT_FDCWD exceeds INT_MAX.
61618         * lib/openat.h (AT_FDCWD): Likewise.
61619
61620 2006-02-17  Eric Blake  <address@hidden>
61621
61622         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61623
61624 2006-02-16  Simon Josefsson  <jas@extundo.com>
61625
61626         * modules/getaddrinfo (Depends-on): Add sys_socket.
61627
61628 2006-02-15  Simon Josefsson  <jas@extundo.com>
61629
61630         * build-aux/maint.mk: Add dsyntax-check rule.
61631
61632 2006-02-15  Eric Blake  <ebb9@byu.net>
61633
61634         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61635         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61636         'present but cannot compile' warnings on cygwin.
61637         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61638         use ws2tcpip.h if sys/socket.h works.
61639         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61640         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61641
61642 2006-02-14  Simon Josefsson  <jas@extundo.com>
61643
61644         * modules/maintainer-makefile (Files): Rename.
61645
61646         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61647         and (the local) Makefile.cfg to maint-cfg.mk.
61648
61649         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61650         to the latter.
61651
61652         * modules/maintainer-makefile: New module.
61653
61654         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61655         severaly stripped to make it possible to build it up from scratch
61656         with reliable tests.
61657
61658         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61659         fixes to permit overriding the default actions when configure and
61660         makefile are not available.
61661
61662 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61663
61664         Sync from coreutils.
61665         * modules/lstat (Depends-on): Don't depend on xalloc.
61666         (License): Change from GPL to LGPL, since this is now simply a
61667         replacement for a libc function.
61668
61669 2006-02-14  Jim Meyering  <jim@meyering.net>
61670
61671         Sync from coreutils.
61672
61673         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61674         failure on deficient systems, and simplify gnulib lgpl dependencies.
61675         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61676         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61677
61678         * lib/xalloc-die.c: Remove unused definition of N_.
61679
61680 2006-02-14  Jim Meyering  <jim@meyering.net>
61681
61682         Sync from coreutils.
61683         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61684         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61685         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61686         double-quote uses of that variable, to accommodate the rare case in
61687         which getmntent is available in none of the libraries checked.  This
61688         happens at least on FreeBSD 5.0.
61689
61690 2006-02-13  Simon Josefsson  <jas@extundo.com>
61691
61692         * gnulib-tool (Usage): Fix --import, from
61693         karl@freefriends.org (Karl Berry).
61694
61695 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61696
61697         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61698
61699 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61700
61701         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61702         "autoupdate" on 2005-12-12.
61703
61704 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61705
61706         * modules/closeout (Depends-on): Remove atexit.
61707
61708 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61709
61710         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61711         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61712
61713 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61714
61715         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61716         __EXTENSIONS__ if this causes compilation to fail.  Problem
61717         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61718         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61719
61720 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61721
61722         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61723         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61725         All uses changed.
61726
61727 2006-01-26  Simon Josefsson  <jas@extundo.com>
61728
61729         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61730         prototype is visible on mingw32.
61731
61732         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61733         for mingw32.
61734
61735         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61736         mingw32).
61737
61738 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61739
61740         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61741         attempt to open for write; this always fails, at least on POSIX
61742         hosts.  This reinstates the 2006-01-09 change, which was
61743         inadvertently removed.
61744
61745 2006-01-26  Bruno Haible  <bruno@clisp.org>
61746
61747         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61748         Reported by Paul Eggert.
61749
61750 2006-01-26  Bruno Haible  <bruno@clisp.org>
61751             Paul Eggert  <eggert@cs.ucla.edu>
61752
61753         * lib/stdbool_.h (_Bool)
61754         [(! (defined __cplusplus || defined __BEOS__)
61755           && !defined __GNUC__
61756           && !(defined __HP_cc || defined __xlc__
61757                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61758                || defined __sgi))]:
61759         #define to signed char in these cases too; this simplifies
61760         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61761         etc., separately) and makes it more conservative.
61762
61763 2006-01-25  Simon Josefsson  <jas@extundo.com>
61764
61765         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61766         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61767         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61768
61769 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61770
61771         * lib/argp-namefrob.h: Bugfix. Remove stray #
61772
61773 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61774
61775         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61776         so that we test the test.
61777         Check for yet another HP-UX cc bug involving *bool |= bool.
61778
61779 2006-01-25  Karl Berry  <karl@gnu.org>
61780
61781         * config/srclist.txt (vasnprintf.c): sync lost.
61782
61783 2006-01-25  Jim Meyering  <jim@meyering.net>
61784
61785         Sync from the stable (b5) branch of coreutils:
61786
61787         * lib/fts.c (fts_children): Don't let close() clobber errno from
61788         failed fchdir().
61789
61790         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61791         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61792         a dangling symlink.  That can also happen at least for ELOOP.
61793         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61794         FYI, this bug predates the inclusion of fts.c in coreutils.
61795
61796         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61797         in their own block, so pre-c99 compilers don't object.
61798
61799         Avoid the double-free (first in fts_read, second in fts_close) that
61800         would occur when an `active' directory is made inaccessible (e.g.,
61801         via chmod a-x) during a traversal.
61802         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61803         before returning.  Reproduce this failure by
61804         mkdir -p a/b; cd a; chmod a-x . b
61805         Reported by Stavros Passas.
61806
61807 2006-01-25  Jim Meyering  <jim@meyering.net>
61808
61809         * lib/fileblocks.c: Remove more useless parentheses.
61810         * lib/readutmp.h: Likewise.
61811
61812 2006-01-25  Bruno Haible  <bruno@clisp.org>
61813
61814         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61815         warnings.
61816         Reported by Paul Eggert.
61817
61818 2006-01-25  Bruno Haible  <bruno@clisp.org>
61819
61820         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61821         rid of a trap command. For Solaris sh.
61822         Reported by Mark D. Baushke <mdb@gnu.org>.
61823
61824 2006-01-24  Simon Josefsson  <jas@extundo.com>
61825
61826         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61827         Bruno.
61828
61829 2006-01-24  Karl Berry  <karl@gnu.org>
61830
61831         * config/srclist.txt (argp-namefrob.h): sync lost.
61832
61833 2006-01-24  Jim Meyering  <jim@meyering.net>
61834
61835         * modules/openat (Files): Add lib/intprops.h.
61836         From Mark D. Baushke.
61837
61838 2006-01-24  Jim Meyering  <jim@meyering.net>
61839
61840         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61841         Reported by Mark D. Baushke.
61842
61843 2006-01-24  Jim Meyering  <jim@meyering.net>
61844
61845         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61846
61847 2006-01-24  Bruno Haible  <bruno@clisp.org>
61848
61849         * modules/strnlen (Maintainer): Change from glibc to all.
61850
61851 2006-01-24  Bruno Haible  <bruno@clisp.org>
61852
61853         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61854         Patch by Paul Eggert.
61855
61856 2006-01-24  Bruno Haible  <bruno@clisp.org>
61857
61858         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61859         already has it.
61860         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61861         2005-11-26.
61862
61863         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61864         'signed char' to avoid problems with the built-in _Bool type.
61865         Reported by Paul Eggert on 2005-11-26.
61866
61867 2006-01-24  Bruno Haible  <bruno@clisp.org>
61868
61869         * gnulib-tool (func_import): Avoid constructing complicated sed
61870         expressions inside backquote.
61871         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61872
61873 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61874
61875         These changes imported from libc.
61876         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61877         test and two separate function calls.
61878         * lib/strndup.c (__strndup): Add libc_hidden_def.
61879
61880 2006-01-23  Simon Josefsson  <jas@extundo.com>
61881
61882         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61883         Remove the test_*_SOURCES variable: automake infers it by default.
61884         * modules/tls-tests: Likewise.
61885
61886 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61887
61888         Work around porting bugs reported by Dieter in
61889         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61890         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61891         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61892         Include "getopt.h" first, to check interface.
61893         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61894         !HAVE_DECL_GETENV.
61895         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61896         (__strndup): Revert to K&R-style function dfns, the glibc style.
61897         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61898         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61899         Include strnlen.h first, to get prototype properly.
61900         (strnlen): Renamed from __strnlen.
61901         Remove weak alias.
61902
61903 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61904
61905         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61906
61907 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61908
61909         * config/srclist.txt: Adjust to reflect glibc reorganization.
61910         This affects only comments.
61911
61912 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61913
61914          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61915          Reported by Bruce Korb <bkorb@gnu.org>.
61916
61917 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61920         to pacify gcc -Wswitch-default.
61921
61922 2006-01-22  Bruno Haible  <bruno@clisp.org>
61923
61924         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61925         temporary buffer for sprintf, take into account the precision also
61926         for 'd', 'i', 'u', 'o', 'x', 'X'.
61927
61928 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61929
61930         * modules/argp-tests: New module
61931         * tests/test-argp.c: New file
61932         * tests/test-argp-2.sh: New file
61933
61934 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61935
61936         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61937         (__argp_base_name): Removed
61938         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61939         typo.
61940         (__argp_base_name): Provide macro definition or extern declaration
61941         depending on the configuration
61942
61943 2006-01-20  Simon Josefsson  <jas@extundo.com>
61944
61945         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61946
61947 2006-01-20  Simon Josefsson  <jas@extundo.com>
61948
61949         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61950
61951 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61952
61953         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61954         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61955         Suggested by Bruno Haible.
61956
61957 2006-01-20  Karl Berry  <karl@gnu.org>
61958
61959         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61960         until changes propagate, I guess.
61961
61962 2006-01-19  Simon Josefsson  <jas@extundo.com>
61963
61964         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61965
61966 2006-01-19  Simon Josefsson  <jas@extundo.com>
61967
61968         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61969
61970 2006-01-19  Simon Josefsson  <jas@extundo.com>
61971
61972         * gnulib-tool: Set check_PROGRAMS.
61973
61974         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61975         modules/des-tests, modules/gc-arcfour-tests,
61976         modules/gc-arctwo-tests, modules/gc-des-tests,
61977         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61978         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61979         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61980         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61981         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61982         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61983         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61984         test_*_SOURCES.
61985
61986 2006-01-18  Simon Josefsson  <jas@extundo.com>
61987
61988         * modules/socklen (Depends-on): Depend on sys_socket.
61989
61990 2006-01-18  Simon Josefsson  <jas@extundo.com>
61991
61992         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61993         modules/des-tests, modules/gc-arcfour-tests,
61994         modules/gc-arctwo-tests, modules/gc-des-tests,
61995         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61996         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61997         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61998         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61999         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62000         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62001         $(EXEEXT) to automake TESTS variable, for mingw32.
62002
62003 2006-01-17  Simon Josefsson  <jas@extundo.com>
62004
62005         * modules/socklen (Include): Need sys/socket.h.
62006
62007 2006-01-17  Bruno Haible  <bruno@clisp.org>
62008
62009         * modules/ssize_t (Include): Add <sys/types.h>.
62010
62011 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62012
62013         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62014         it's not portable and it doesn't work with cross-compiles.
62015         Problem reported by Bruno Haible.  Fix missing-$ typo in
62016         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62017         -zignore from being used with Sun's C compiler.
62018
62019 2006-01-12  Simon Josefsson  <jas@extundo.com>
62020
62021         * lib/base64.c: Fix warning, reported by Bruno Haible
62022         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62023
62024 2006-01-12  Bruno Haible  <bruno@clisp.org>
62025
62026         * modules/ldd: New file.
62027         * build-aux/ldd.sh.in: New file.
62028         * MODULES.html.sh (Support for building libraries and executables): Add
62029         ldd.
62030
62031 2006-01-12  Bruno Haible  <bruno@clisp.org>
62032
62033         * m4/ldd.m4: New file.
62034
62035 2006-01-12  Bruno Haible  <bruno@clisp.org>
62036
62037         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62038         endless loop while replacing $auxdir with build-aux.
62039
62040 2006-01-11  Simon Josefsson  <jas@extundo.com>
62041
62042         * lib/stdint_.h (SIZE_MAX): Add missing (.
62043
62044 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62045
62046         Sync from coreutils.
62047         * lib/md5.c: Fix commentary typos.
62048         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62049         * lib/md5.h (__attribute__): Remove; unused.
62050         * lib/sha1.c: Fix commentary to match md5 better.
62051         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62052         so that we don't need to worry about alignment.  All uses changed.
62053         This merges the 2005-10-28 md5 change into sha1.
62054
62055 2006-01-11  Jim Meyering  <jim@meyering.net>
62056
62057         Sync from coreutils.
62058         * lib/md5.c (OP): Fix spacing.
62059
62060 2006-01-11  Bruno Haible  <bruno@clisp.org>
62061
62062         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62063         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62064         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62065
62066 2006-01-11  Bruno Haible  <bruno@clisp.org>
62067
62068         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62069         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62070         the "early" section as well.
62071
62072 2006-01-11  Bruno Haible  <bruno@clisp.org>
62073
62074         Avoid "ar: no archive members specified" error on MacOS X.
62075         * gnulib-tool (func_modules_add_dummy): New function.
62076         (func_import, func_create_testdir): Invoke it.
62077
62078 2006-01-11  Bruno Haible  <bruno@clisp.org>
62079
62080         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62081         with $auxdir in AC_CONFIG_FILES statements.
62082
62083 2006-01-11  Bruno Haible  <bruno@clisp.org>
62084
62085         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62086         Initialize also noinst_HEADERS to empty.
62087
62088 2006-01-11  Bruno Haible  <bruno@clisp.org>
62089
62090         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62091         variables.
62092         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62093         autoreconf.
62094
62095 2006-01-11  Bruno Haible  <bruno@clisp.org>
62096
62097         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62098         overridable by the user.
62099         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62100
62101 2006-01-10  Simon Josefsson  <jas@extundo.com>
62102
62103         * modules/sys_socket: New file.
62104
62105 2006-01-10  Simon Josefsson  <jas@extundo.com>
62106
62107         * m4/sys_socket_h.m4: New file.
62108
62109 2006-01-10  Simon Josefsson  <jas@extundo.com>
62110
62111         * lib/socket_.h: New file.
62112
62113 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         * modules/readutmp (Maintainer): Add myself.
62116
62117 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62118
62119         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62120         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62121         People who are still concerned with buggy memcmp implementations
62122         can invoke gl_FUNC_MEMCMP themselves.
62123
62124 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62125
62126         * lib/regex_internal.h (BITSET_WORD_BITS):
62127         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62128         preprocessor mishandles large unsigned values as if they were signed.
62129         Problem reported by Claudio Fontana in
62130         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62131
62132 2006-01-10  Jim Meyering  <jim@meyering.net>
62133
62134         Avoid the double-free (first in fts_read, second in fts_close) that
62135         would occur when an `active' directory is made inaccessible (e.g.,
62136         via chmod a-x) during a traversal.
62137         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62138         before returning.  Reproduce this failure by
62139         mkdir -p a/b; cd a; chmod a-x . b
62140         Reported by Stavros Passas.
62141
62142         Sync from coreutils.
62143         * lib/sha1.c: Tweak grammar in a comment.
62144
62145 2006-01-10  Jim Meyering  <jim@meyering.net>
62146
62147         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62148         Patch by Joerg Sonnenberger.
62149
62150 2006-01-10  Bruno Haible  <bruno@clisp.org>
62151
62152         * modules/readutmp: Depend on module free.
62153         * modules/strtok_r: Depend on module restrict.
62154
62155 2006-01-10  Bruno Haible  <bruno@clisp.org>
62156
62157         * modules/gettext (configure.ac): Add an invocation of
62158         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62159
62160 2006-01-10  Bruno Haible  <bruno@clisp.org>
62161
62162         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62163         Reported by Werner Lemberg <wl@gnu.org>.
62164
62165 2006-01-10  Bruno Haible  <bruno@clisp.org>
62166
62167         * lib/localcharset.c: Update from GNU gettext.
62168
62169 2006-01-10  Bruno Haible  <bruno@clisp.org>
62170
62171         * lib/argp.h (__const): Remove macro. Use const instead.
62172         * lib/argp-fmtstream.h (__const): Likewise.
62173         * lib/glob_.h (__const): Remove macro.
62174         * lib/glob-libc.h: Use const instead of __const.
62175
62176 2006-01-10  Bruno Haible  <bruno@clisp.org>
62177
62178         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62179         variable.
62180         Needed to avoid an automake error regarding the 'gettext' module.
62181
62182 2006-01-09  Simon Josefsson  <jas@extundo.com>
62183
62184         * modules/inet_ntop (Depends-on): Add restrict.
62185
62186 2006-01-09  Simon Josefsson  <jas@extundo.com>
62187
62188         * modules/gc-rijndael-tests (License): Put under LGPL.
62189
62190         * modules/gc-des-tests (License): Likewise.
62191
62192         * modules/gc-arcfour-tests (License): Likewise.
62193
62194         * modules/gc-arctwo-tests (License): Likewise.
62195
62196         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62197
62198         * modules/gc-hmac-sha1-tests (Files): Likewise.
62199
62200         * modules/gc-hmac-md5-tests (License): Likewise.
62201
62202         * modules/gc-sha1-tests (License): Likewise.
62203
62204         * modules/gc-md5-tests (License): Likewise.
62205
62206         * modules/gc-md4-tests (License): Likewise.
62207
62208         * modules/gc-md2-tests (License): Likewise.
62209
62210         * modules/gc-tests (License): Likewise.
62211
62212         * modules/des-tests (License): Likewise.
62213
62214         * modules/md4-tests (License): Likewise.
62215
62216         * modules/md2-tests (License): Likewise.
62217
62218 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62219
62220         Sync from coreutils:
62221
62222         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62223         * modules/lib-ignore: New file.
62224         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62225         chdir-safer.m4, lchmod.m4.
62226         * modules/openat: Add mkdirat.c, openat-priv.h.
62227
62228 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62229
62230         Sync from coreutils.
62231         * m4/lib-ignore.m4: New file.
62232         * m4/lchmod.m4: New file.
62233
62234 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62235
62236         Sync from coreutils.
62237         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62238         for write access: POSIX says that must fail.
62239         * lib/fts.c (diropen): Likewise.
62240         * lib/save-cwd.c (save_cwd): Likewise.
62241         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62242         well, for minor improvements on hosts that lack O_DIRECTORY.
62243         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62244         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62245         Fall back on chown if open failed with EACCES.
62246
62247         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62248         Report an error at compile-time if only a 1-second nominal clock
62249         resolution is found.
62250
62251         * lib/lchmod.h: New file.
62252         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62253         (make_dir_parents): Use lchown rather than chown, and
62254         lchmod rather than chmod.
62255
62256         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62257         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62258         "proc" reported by n0dalus.
62259
62260         * lib/mountlist.c: Include <limits.h>.
62261         (dev_from_mount_options)
62262         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62263         New function.  It no longer assumes "dev=" has the System V meaning
62264         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62265         (read_file_system_list)
62266         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62267         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62268         dev= in that case.
62269
62270         * lib/posixtm.h (PDS_PRE_2000): New macro.
62271         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62272         allow_century.  All usages changed.  Reject dates outside the range
62273         1969-1999 if PDS_PRE_2000 is used.
62274
62275 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62276
62277         Sync from coreutils.
62278         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62279         (Time of day items): Mention the possibility of leap seconds.
62280         Problem reported by Dr. David Alan Gilbert.
62281
62282 2006-01-09  Jim Meyering  <jim@meyering.net>
62283
62284         Sync from coreutils.
62285
62286         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62287
62288         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62289
62290         * lib/modechange.c (mode_compile): Reject an invalid mode string
62291         that starts with an octal digit.  From Andreas Gruenbacher.
62292
62293         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62294         and dup to open_safer and dup_safer, respectively.
62295         (openat_permissive): Fix typo in comment.
62296
62297         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62298         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62299         (_): Remove; no longer needed.
62300         (openat): Renamed from rpl_openat; no need for rpl_openat
62301         since openat.h renames openat for us.
62302         Replace most of the body with a call to openat_permissive,
62303         to avoid duplicate code.
62304         Port to (probably hypothetical) environments were mode_t is
62305         wider than int.
62306         (openat_permissive): Require mode arg, so that we can check
62307         types better.  Put it just after flags.  Change cwd failure
62308         indicator from pointer-to-bool to pointer-to-errno-value.
62309         All callers changed.
62310         Invoke openat_save_fail and/or openat_restore_fail if
62311         cwd_errno is null, so that openat can call us.
62312         (openat_permissive, fdopendir, fstatat, unlinkat):
62313         Simplify errno handling to avoid some duplicate code,
62314         as it's OK to set errno on success.
62315         * lib/openat.h: Revamp code so that function macros depend on
62316         __OPENAT_PREFIX only, not also on AT_FDCWD.
62317         (openat_ro): Remove.  Caller changed to use openat_permissive.
62318         (openat_permissive): Now a macro, if not a function.
62319         (openat_restore_fail, openat_save_fail): Now always functions,
62320         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62321
62322         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62323         and openat.c.
62324         * lib/mkdirat.c: Include openat-priv.h.
62325         Remove definitions of macros defined therein.
62326         * lib/openat.c: Likewise.
62327
62328         * lib/mkdirat.c (mkdirat): New file and function.
62329         * lib/openat.h (mkdirat): Declare.
62330
62331         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62332
62333         * lib/openat.h (openat_permissive): Declare.
62334         (openat_ro): Define.
62335
62336         * lib/openat.c (EXPECTED_ERRNO): New macro.
62337         (openat_permissive): New function -- used in remove.c rewrite.
62338         (all functions): Set errno just before returning, only if there
62339         was an actual failure.
62340         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
62341
62342         Emulate openat-family functions using Linux's procfs, if possible.
62343         Idea and some code based on Ulrich Drepper's glibc changes.
62344
62345         * lib/openat.c: (BUILD_PROC_NAME): New macro.
62346         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
62347         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
62348         before falling back on save_cwd and restore_cwd.
62349         (fdopendir, fstatat, unlinkat): Likewise.
62350
62351         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
62352         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
62353
62354         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
62355         as second argument to va_arg.  Otherwise, some versions of gcc
62356         warn that `if this code is reached, the program will abort'.
62357
62358 2006-01-09  Jim Meyering  <jim@meyering.net>
62359
62360         Sync from coreutils.
62361         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
62362         Require openat-priv.h.
62363
62364 2006-01-09  Bruno Haible  <bruno@clisp.org>
62365
62366         * modules/strnlen (Include): Use strnlen.h.
62367
62368 2006-01-09  Bruno Haible  <bruno@clisp.org>
62369
62370         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
62371
62372 2006-01-09  Bruno Haible  <bruno@clisp.org>
62373
62374         * lib/sysexit_.h (EX_OK): New macro.
62375         Suggested by Martin Lambers <marlam@marlam.de>.
62376
62377 2006-01-09  Bruno Haible  <bruno@clisp.org>
62378
62379         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
62380         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
62381
62382 2006-01-09  Bruno Haible  <bruno@clisp.org>
62383
62384         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
62385         numbers.
62386
62387 2006-01-09  Bruno Haible  <bruno@clisp.org>
62388
62389         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
62390         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
62391         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
62392         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
62393
62394 2006-01-09  Bruno Haible  <bruno@clisp.org>
62395
62396         * build-aux/javacomp.sh.in: New file, moved from lib/.
62397         * modules/javacomp-script (Files): Update.
62398         (configure.ac): Add AC_CONFIG_FILES invocation.
62399         (EXTRA_DIST): Remove variable.
62400
62401         * build-aux/javaexec.sh.in: New file, moved from lib/.
62402         * modules/javaexec (Files): Update.
62403         (configure.ac): Add AC_CONFIG_FILES invocation.
62404         (EXTRA_DIST): Remove javaexec.sh.in.
62405
62406         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
62407         * modules/csharpcomp-script (Files): Update.
62408         (configure.ac): Add AC_CONFIG_FILES invocation.
62409         (EXTRA_DIST): Remove variable.
62410
62411         * build-aux/csharpexec.sh.in: New file, moved from lib/.
62412         * modules/csharpexec (Files): Update.
62413         (configure.ac): Add AC_CONFIG_FILES invocation.
62414         (EXTRA_DIST): Remove csharpexec.sh.in.
62415
62416 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62417
62418         Sync from coreutils.
62419
62420         Add POSIX ACL support
62421         * lib/acl.h (copy_acl, set_acl): Add declarations.
62422         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
62423         systems other than Linux.
62424         (chmod_or_fchmod): New function: use fchmod when possible,
62425         and chmod otherwise.
62426         (file_has_acl): Add a POSIX ACL implementation, with a
62427         Linux-specific subcase.
62428         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
62429         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
62430         acls are unsupported.
62431         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
62432         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
62433         are unsupported.
62434
62435 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62436
62437         Sync from coreutils.
62438         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
62439
62440 2006-01-07  Bruno Haible  <bruno@clisp.org>
62441
62442         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
62443         gl_EARLY.
62444
62445 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62446
62447         * lib/strftime.c (tzname): Don't declare if it is already #defined.
62448         Problem reported for Mingw by Mark Junker.
62449
62450 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         * README: Gnulib normally doesn't generate a tarball.
62453
62454 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
62455
62456         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
62457         long int, not int, for nanosecond counts, so that people who are
62458         used to POSIX struct timespec won't be surprised.  Reported by Jim
62459         Meyering.
62460
62461 2005-12-28  Bruno Haible  <bruno@clisp.org>
62462
62463         * build-aux/config.rpath: Update from GNU gettext.
62464
62465 2005-12-16  Jim Meyering  <jim@meyering.net>
62466
62467         * modules/fprintftime: New module.
62468         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
62469
62470 2005-12-16  Jim Meyering  <jim@meyering.net>
62471
62472         * m4/fprintftime.m4: New file.
62473
62474 2005-12-16  Jim Meyering  <jim@meyering.net>
62475
62476         * lib/fprintftime.c, lib/fprintftime.h: New files.
62477
62478 2005-12-15  Simon Josefsson  <jas@extundo.com>
62479
62480         * modules/socklen (configure.ac): Fix M4 macro name, to align with
62481         new m4/socklen.m4.
62482
62483 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62484
62485         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
62486         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
62487
62488 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62489
62490         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
62491         * lib/argp-help.c (fill_in_uparams): Check if the constructed
62492         struct uparams is valid. Fall back to the default values if it is
62493         not.
62494
62495 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62496
62497         * modules/argp (Files): Add argp-pin.c
62498         (Depends-on): dirname
62499         (lib_SOURCES): Add argp-pin.c
62500
62501 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62502
62503         * m4/argp.m4:  Check if program_invocation_name and
62504         program_invocation_short_name are declared and define appropriate
62505         macros if they are not.
62506
62507 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62508
62509         * lib/argp-help.c (__argp_base_name): New function
62510         (__argp_short_program_name): Rewrite using __argp_base_name
62511         * lib/argp-namefrob.h: Define program_invocation_name and
62512         program_invocation_short_name if requested
62513         (__argp_base_name): Add prototype
62514         * lib/argp-parse.c (argp_def): Use gettext wrappers
62515         (argp_default_parser): Use __argp_base_name
62516         * lib/argp-pin.c: New file. Defines program_invocation_name and
62517         program_invocation_short_name on systems that lack them.
62518
62519 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62520
62521         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
62522         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62523         porting problem reported by Georg Schwarz in
62524         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62525
62526 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62527
62528         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
62529         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62530         porting problem reported by Georg Schwarz in
62531         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62532
62533 2005-12-05  Bruno Haible  <bruno@clisp.org>
62534
62535         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
62536         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
62537         Reported by Mark Junker <mjscod@gmx.de>.
62538
62539 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
62540
62541         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
62542         Use implementation from Albert Chin, with some
62543         comments/corrections by Stepan Kasal and myself.
62544
62545 2005-12-02  Bruno Haible  <bruno@clisp.org>
62546
62547         * gnulib-tool (func_import): Accept GPLed build tool modules when
62548         --lgpl is given.
62549         * modules/csharpcomp-script: New file.
62550         * modules/csharpcomp: Depend on it.
62551         * modules/javacomp-script: New file.
62552         * modules/javacomp: Depend on it.
62553         Suggested by Simon Josefsson.
62554
62555 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62556
62557         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62558         statement, to work around an HP-UX 10.20 compiler bug reported by
62559         Peter O'Gorman.
62560
62561 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62562
62563         * modules/savedir (Depends-on): Add openat.
62564
62565 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62566
62567         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62568         (uintmax_t) [defined uintmax_t]: Do not declare.
62569         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62570         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62571         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62572         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62573         sake of portability to weird hosts that C allows (though we don't
62574         know of any practical examples).
62575
62576         * lib/savedir.h (fdsavedir): New decl.
62577         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62578         contains most of the former guts of savedir.
62579         (savedir): Use savedirstream.
62580         Include "openat.h".
62581
62582 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         * modules/obstack (Files): Add m4/ulonglong.m4.
62585         Problem reported by Davide Angelocola.
62586
62587 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62588
62589         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62590         coreutils no longer futzes with rounding modes.
62591
62592 2005-11-14  Jim Meyering  <jim@meyering.net>
62593
62594         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62595         replacement of mkstemp.
62596
62597 2005-11-10  Simon Josefsson  <jas@extundo.com>
62598
62599         * lib/readline.c: Remove EOL.
62600
62601 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62602
62603         * modules/gethrxtime (Depends-on): Add gettime.
62604
62605 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62606
62607         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62608         or gettimeofday; no longer needed.
62609
62610 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62611
62612         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62613         time business.
62614         (gethrxtime) [! (HAVE_NANOUPTIME
62615         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62616         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62617         our own approximation.
62618
62619 2005-11-08  Eric Blake  <ebb9@byu.net>
62620
62621         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62622
62623 2005-11-08  Eric Blake  <ebb9@byu.net>
62624
62625         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62626
62627 2005-11-04  Bruno Haible  <bruno@clisp.org>
62628
62629         * gnulib-tool: Implement --update mode.
62630
62631 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         Fix porting problem reported by Theodoros V. Kalamatianos.
62634         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62635         Don't assume that futimes failing means we must fail.
62636
62637 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62640         variables to suggest the intended function of the PATH_MAX check.
62641
62642 2005-10-30  Kean Johnston  <jkj@sco.com>
62643
62644         Trivial changes to support SCO systems.
62645         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62646         as PATH_MAX.
62647         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62648         where __ptr is null when no I/O is pending.
62649
62650 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62651
62652         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62653         leave errno alone.  Problem reported by Dmitry V. Levin.
62654
62655 2005-10-28  Simon Josefsson  <jas@extundo.com>
62656
62657         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62658         Test more.
62659
62660         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62661
62662         * modules/md2, modules/md2-tests: New files.
62663
62664 2005-10-28  Simon Josefsson  <jas@extundo.com>
62665
62666         * m4/inet_ntop.m4: More tests.
62667
62668         * m4/gc-md2.m4, md2.m4: New file.
62669
62670 2005-10-28  Simon Josefsson  <jas@extundo.com>
62671
62672         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62673         "restrict" keywords, as per POSIX.  Protect the function
62674         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62675         Don't use K&R prototypes.  Check the sprintf return values.
62676         Re-define EAFNOSUPPORT if not present.  Indent.
62677
62678         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62679         suggested by Bruno Haible <bruno@clisp.org>.
62680
62681         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62682
62683         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62684
62685         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62686         libgcrypt).
62687
62688         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62689
62690         * lib/md2.h, lib/md2.c: New files.
62691
62692 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62693
62694         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62695         errno alone.  Problem reported by Frederic Jolliton.
62696
62697 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62698
62699         * modules/verify (License): Change from GPL to LGPL.  This is a
62700         tiny module and there are apparently near-equivalents that are
62701         under the BSD license.
62702
62703 2005-10-24  Simon Josefsson  <jas@extundo.com>
62704
62705         * modules/sha1: Relicense to LGPL.
62706
62707 2005-10-24  Simon Josefsson  <jas@extundo.com>
62708
62709         * lib/md4.h: Shrink buffer size, now that we changed the type.
62710
62711 2005-10-23  Simon Josefsson  <jas@extundo.com>
62712
62713         * gnulib-tool (func_import): Fix --tests-base.
62714
62715 2005-10-22  Simon Josefsson  <jas@extundo.com>
62716
62717         * modules/arcfour (Depends-on): Need stdint.
62718
62719 2005-10-22  Simon Josefsson  <jas@extundo.com>
62720
62721         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62722         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62723
62724 2005-10-22  Simon Josefsson  <jas@extundo.com>
62725
62726         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62727         suggested by Bruno Haible <bruno@clisp.org>.
62728
62729 2005-10-22  Simon Josefsson  <jas@extundo.com>
62730
62731         * lib/crc.h: Include stddef.h, for size_t.
62732
62733 2005-10-22  Simon Josefsson  <jas@extundo.com>
62734
62735         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62736         arcfour_context struct (simplify test vector testing in GNU
62737         Shishi).
62738
62739 2005-10-21  Simon Josefsson  <jas@extundo.com>
62740
62741         * modules/des, modules/des-tests: New files.
62742
62743         * modules/gc-des, modules/gc-des-tests: New files.
62744
62745         * tests/test-des.c, tests/test-gc-des.c: New file.
62746
62747 2005-10-21  Simon Josefsson  <jas@extundo.com>
62748
62749         * modules/arctwo, modules/arctwo-tests: New files.
62750
62751         * tests/test-arctwo.c: New file.
62752
62753         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62754
62755         * tests/test-gc-arctwo.c: New file.
62756
62757 2005-10-21  Simon Josefsson  <jas@extundo.com>
62758
62759         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62760         Bruno Haible <bruno@clisp.org>.
62761
62762         * m4/gc-des.m4: New file.
62763
62764 2005-10-21  Simon Josefsson  <jas@extundo.com>
62765
62766         * m4/arctwo.m4: New file.
62767
62768         * m4/gc-arctwo.m4: New file.
62769
62770 2005-10-21  Simon Josefsson  <jas@extundo.com>
62771
62772         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62773         block.
62774
62775 2005-10-21  Simon Josefsson  <jas@extundo.com>
62776
62777         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62778         <bruno@clisp.org>.
62779
62780         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62781
62782         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62783         Bruno Haible <bruno@clisp.org>.
62784
62785         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62786         <bruno@clisp.org>.
62787
62788 2005-10-21  Simon Josefsson  <jas@extundo.com>
62789
62790         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62791
62792 2005-10-21  Simon Josefsson  <jas@extundo.com>
62793
62794         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62795
62796 2005-10-21  Simon Josefsson  <jas@extundo.com>
62797
62798         * lib/des.h, lib/des.c: New files.
62799
62800         * lib/gc-gnulib.c: Support DES.c
62801
62802 2005-10-21  Simon Josefsson  <jas@extundo.com>
62803
62804         * lib/arctwo.h, lib/arctwo.c: New files.
62805
62806         * lib/gc-gnulib.c: Support ARCTWO.
62807
62808 2005-10-21  Simon Josefsson  <jas@extundo.com>
62809
62810         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62811         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62812
62813 2005-10-21  Simon Josefsson  <jas@extundo.com>
62814
62815         * gnulib-tool (func_import, func_create_testdir): Define automake
62816         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62817         Makefile.am snippet),
62818         suggested by Bruno Haible <bruno@clisp.org>.
62819
62820         * modules/gc (Makefile.am): Use it.
62821
62822 2005-10-21  Bruno Haible  <bruno@clisp.org>
62823
62824         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62825         patch.
62826
62827 2005-10-19  Simon Josefsson  <jas@extundo.com>
62828
62829         * tests/test-gc-rijndael.c: New file.
62830
62831         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62832
62833 2005-10-19  Simon Josefsson  <jas@extundo.com>
62834
62835         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62836         interface too.
62837
62838 2005-10-19  Simon Josefsson  <jas@extundo.com>
62839
62840         * tests/test-gc-arcfour.c: New file.
62841
62842         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62843
62844 2005-10-19  Simon Josefsson  <jas@extundo.com>
62845
62846         * modules/gc-md4, modules/gc-md4-tests: New file.
62847
62848         * tests/test-gc-md4.c: New file.
62849
62850 2005-10-19  Simon Josefsson  <jas@extundo.com>
62851
62852         * m4/gc-md4.m4: New file.
62853
62854 2005-10-19  Simon Josefsson  <jas@extundo.com>
62855
62856         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62857         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62858         <kasal@ucw.cz>.
62859
62860 2005-10-19  Simon Josefsson  <jas@extundo.com>
62861
62862         * m4/gc-arcfour.m4: New file.
62863
62864         * m4/gc-rijndael.m4: New file.
62865
62866 2005-10-19  Simon Josefsson  <jas@extundo.com>
62867
62868         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62869
62870 2005-10-19  Simon Josefsson  <jas@extundo.com>
62871
62872         * lib/gc-gnulib.c: Support ARCFOUR.
62873
62874 2005-10-19  Simon Josefsson  <jas@extundo.com>
62875
62876         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62877         support.
62878
62879         * lib/gc.h: Add ECB enum type.
62880
62881         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62882
62883 2005-10-18  Simon Josefsson  <jas@extundo.com>
62884
62885         * tests/test-md5.c: New file.
62886
62887         * modules/md5-tests: New file.
62888
62889 2005-10-18  Simon Josefsson  <jas@extundo.com>
62890
62891         * tests/test-md4.c: New file.
62892
62893         * modules/md4, modules/md4-tests: New files.
62894
62895 2005-10-18  Simon Josefsson  <jas@extundo.com>
62896
62897         * m4/md4.m4: New file.
62898
62899 2005-10-18  Simon Josefsson  <jas@extundo.com>
62900
62901         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62902
62903 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62904
62905         * gnulib-tool (func_create_testdir): Omit the second check whether
62906         BUILT_SOURCES in nonempty.
62907
62908 2005-10-17  Simon Josefsson  <jas@extundo.com>
62909
62910         * tests/test-rijndael.c: New file.
62911
62912 2005-10-17  Simon Josefsson  <jas@extundo.com>
62913
62914         * modules/sha1: Depend on stdint instead of md5.
62915
62916         * modules/md5: Depend on stdint, remove uint32_t.
62917
62918 2005-10-17  Simon Josefsson  <jas@extundo.com>
62919
62920         * modules/gc-sha1-tests: New file.
62921
62922         * tests/test-gc-sha1.c: New file.
62923
62924 2005-10-17  Simon Josefsson  <jas@extundo.com>
62925
62926         * m4/md5.m4: Remove call to uint32_t.m4.
62927
62928 2005-10-17  Simon Josefsson  <jas@extundo.com>
62929
62930         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62931
62932         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62933         md5.h.
62934
62935         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62936
62937         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62938
62939 2005-10-17  Simon Josefsson  <jas@extundo.com>
62940
62941         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62942
62943 2005-10-17  Simon Josefsson  <jas@extundo.com>
62944
62945         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62946
62947 2005-10-17  Simon Josefsson  <jas@extundo.com>
62948
62949         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62950
62951         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62952
62953 2005-10-17  Bruno Haible  <bruno@clisp.org>
62954
62955         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62956         that it can also be used in a test.
62957
62958 2005-10-16  Bruno Haible  <bruno@clisp.org>
62959
62960         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62961         TESTS_ENVIRONMENT, so that individual tests can augment it.
62962
62963         * gnulib-tool (func_create_testdir): Use an intermediate target for
62964         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62965         macros, like $(ALLOCA_H), which cannot be passed through the command
62966         line.
62967
62968 2005-10-15  Simon Josefsson  <jas@extundo.com>
62969
62970         * modules/rijndael-tests: New file.
62971
62972         * modules/rijndael: New file.
62973
62974 2005-10-15  Simon Josefsson  <jas@extundo.com>
62975
62976         * m4/rijndael.m4: New file.
62977
62978 2005-10-15  Simon Josefsson  <jas@extundo.com>
62979
62980         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62981
62982         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62983
62984 2005-10-14  Simon Josefsson  <jas@extundo.com>
62985
62986         * tests/test-arcfour.c: New file.
62987
62988         * modules/arcfour, modules/arcfour-tests: New files.
62989
62990 2005-10-14  Simon Josefsson  <jas@extundo.com>
62991
62992         * m4/arcfour.m4: New file.
62993
62994 2005-10-14  Simon Josefsson  <jas@extundo.com>
62995
62996         * lib/arcfour.h, lib/arcfour.c: New files.
62997
62998 2005-10-14  Roland McGrath  <roland@redhat.com>
62999
63000         Import from libc.  [BZ #1331]
63001         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63002         macro argument.
63003         Reported by Matej Vela <vela@debian.org>.
63004
63005 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63006
63007         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63008         include <wchar.h>; no longer needed.
63009
63010 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63011
63012         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63013
63014 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63015         and  Ulrich Drepper  <drepper@redhat.com>
63016
63017         Import from libc.
63018         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63019         instead of inline stream orientation test and two separate
63020         function calls.  Pay no attention to USE_IN_LIBIO.
63021
63022 2005-10-13  Simon Josefsson  <jas@extundo.com>
63023
63024         * modules/gc-hmac-md5-tests: New file.
63025
63026         * tests/test-gc-hmac-sha1.c: New file.
63027
63028         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63029
63030         * modules/gc-hmac-md5-tests: New file.
63031
63032         * tests/test-gc-md5.c: New file.
63033
63034         * modules/gc-md5-tests: New file.
63035
63036 2005-10-13  Simon Josefsson  <jas@extundo.com>
63037
63038         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63039         Move memory allocation outside of loop.
63040
63041 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63044         intermediate directory is in a read-only file system.  Problem
63045         reported by Eric Blake.
63046
63047 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63048
63049         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63050
63051 2005-10-12  Simon Josefsson  <jas@extundo.com>
63052
63053         * tests/test-hmac-sha1.c: New file.
63054
63055         * modules/hmac-sha1-tests: New file.
63056
63057         * modules/hmac-sha1: New file.
63058
63059 2005-10-12  Simon Josefsson  <jas@extundo.com>
63060
63061         * modules/gc-sha1: New file.
63062
63063 2005-10-12  Simon Josefsson  <jas@extundo.com>
63064
63065         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63066
63067         * tests/test-gc-pbkdf2-sha1.c: New file.
63068
63069 2005-10-12  Simon Josefsson  <jas@extundo.com>
63070
63071         * modules/gc-md5, modules/gc-hmac-md5: New files.
63072
63073         * modules/gc (Files): Remove md5, memxor and hmac files.
63074
63075 2005-10-12  Simon Josefsson  <jas@extundo.com>
63076
63077         * m4/gc-pbkdf2-sha1.m4: New file.
63078
63079         * m4/gc-hmac-sha1.m4: New file.
63080
63081         * m4/gc-sha1: New file.
63082
63083         * m4/hmac-sha1.m4: New file.
63084
63085 2005-10-12  Simon Josefsson  <jas@extundo.com>
63086
63087         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63088
63089         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63090
63091 2005-10-12  Simon Josefsson  <jas@extundo.com>
63092
63093         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63094         suggested by Bruno Haible <bruno@clisp.org>.
63095
63096 2005-10-12  Simon Josefsson  <jas@extundo.com>
63097
63098         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63099
63100 2005-10-12  Simon Josefsson  <jas@extundo.com>
63101
63102         * lib/gc-pbkdf2-sha1.c: New file.
63103
63104         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63105
63106 2005-10-12  Simon Josefsson  <jas@extundo.com>
63107
63108         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63109
63110         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63111
63112 2005-10-12  Simon Josefsson  <jas@extundo.com>
63113
63114         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63115         GC_USE_HMAC_MD5, respectively.
63116
63117         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63118         (gc_md5): Fix typo.
63119
63120         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63121
63122         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63123
63124         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63125
63126 2005-10-12  Bruno Haible  <bruno@clisp.org>
63127
63128         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63129         Reported by Stepan Kasal <kasal@ucw.cz>.
63130
63131 2005-10-11  Simon Josefsson  <jas@extundo.com>
63132
63133         * tests/test-crc.c: New file.
63134
63135         * modules/crc, modules/crc-tests: New files.
63136
63137 2005-10-11  Simon Josefsson  <jas@extundo.com>
63138
63139         * m4/crc.m4: New file.
63140
63141 2005-10-11  Simon Josefsson  <jas@extundo.com>
63142
63143         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63144
63145         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63146
63147         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63148
63149 2005-10-11  Simon Josefsson  <jas@extundo.com>
63150
63151         * lib/crc.h, lib/crc.c: New files.
63152
63153         * lib/gc.h (gc_hash_buffer): Add doc.
63154
63155 2005-10-11  Bruno Haible  <bruno@clisp.org>
63156
63157         * modules/c-strcasestr: New file.
63158         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63159
63160 2005-10-11  Bruno Haible  <bruno@clisp.org>
63161
63162         * modules/c-strcase: New file.
63163         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63164
63165 2005-10-11  Bruno Haible  <bruno@clisp.org>
63166
63167         * lib/strcasecmp.c: Include limits.h.
63168         (strcasecmp): Avoid integer overflow on exotic platforms.
63169         * lib/strncasecmp.c: Include limits.h.
63170         (strncasecmp): Avoid integer overflow on exotic platforms.
63171         Reported by Paul Eggert.
63172
63173 2005-10-11  Bruno Haible  <bruno@clisp.org>
63174
63175         * lib/c-strcasestr.h: New file, from GNU gettext.
63176         * lib/c-strcasestr.c: New file, from GNU gettext.
63177
63178 2005-10-11  Bruno Haible  <bruno@clisp.org>
63179
63180         * lib/c-strcase.h: New file, from GNU gettext.
63181         * lib/c-strcasecmp.c: New file, from GNU gettext.
63182         * lib/c-strncasecmp.c: New file, from GNU gettext.
63183
63184 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63185
63186         * modules/mempcpy (License): GPL -> LGPL.
63187         * modules/strchrnul (License): Likewise.
63188         * modules/sysexits (License): Likewise.
63189
63190 2005-10-08  Simon Josefsson  <jas@extundo.com>
63191
63192         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63193
63194 2005-10-07  Simon Josefsson  <jas@extundo.com>
63195
63196         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63197
63198 2005-10-06  Simon Josefsson  <jas@extundo.com>
63199
63200         * tests/test-hmac-md5.c: New file.
63201
63202         * modules/hmac-md5-tests: New file.
63203
63204         * modules/hmac-md5: New file.
63205
63206 2005-10-06  Simon Josefsson  <jas@extundo.com>
63207
63208         * m4/hmac-md5.m4: New file.
63209
63210         * m4/memxor.m4: Require gl_C_RESTRICT.
63211
63212 2005-10-06  Simon Josefsson  <jas@extundo.com>
63213
63214         * lib/memxor.c (memxor): Avoid casts and warnings.
63215
63216 2005-10-06  Simon Josefsson  <jas@extundo.com>
63217
63218         * lib/hmac-md5.c: New file.
63219
63220         * lib/hmac.h: New file.
63221
63222 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63223
63224         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63225         promotes to int, not unsigned int, to catch the AIX 5.3
63226         compiler bug.
63227
63228 2005-10-05  Simon Josefsson  <jas@extundo.com>
63229
63230         * modules/memxor: New file.
63231
63232         * modules/iconv (Files): Move config.rpath to havelib, it is used
63233         there.
63234
63235         * modules/havelib (Files): Add config.rpath.
63236
63237 2005-10-05  Simon Josefsson  <jas@extundo.com>
63238
63239         * m4/memxor.m4: New file.
63240
63241 2005-10-05  Simon Josefsson  <jas@extundo.com>
63242
63243         * lib/memxor.c (memxor): Fix compiler error.
63244
63245         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63246         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63247
63248         * lib/memxor.h, lib/memxor.c: New files.
63249
63250         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63251         we assume all systems have it, suggested by Jim Meyering
63252         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63253         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63254         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63255         same reasons.
63256
63257 2005-10-05  Simon Josefsson  <jas@extundo.com>
63258
63259         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63260
63261 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63262
63263         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63264         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63265         needed, since the source code now assumes these .h files.
63266
63267 2005-10-05  Derek Price  <derek@ximbiot.com>
63268
63269         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63270
63271 2005-10-05  Bruno Haible  <bruno@clisp.org>
63272
63273         * modules/stdint (License): Change to LGPL.
63274
63275 2005-10-04  Simon Josefsson  <jas@extundo.com>
63276
63277         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63278         D. Baushke" <mdb@gnu.org>.
63279
63280 2005-10-04  Bruno Haible  <bruno@clisp.org>
63281
63282         * lib/verify.h (verify_true): Provide alternative definition for C++.
63283
63284 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63285
63286         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63287         (SSIZE_MAX): New macro, if not already defined.
63288         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63289         than 2 GiB.
63290
63291 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         Sync from coreutils.
63294         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63295         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63296         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63297         ULLONG_MAX doesn't work with 2.7.2.1.
63298
63299 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63300
63301         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63302         From Ben Pfaff.
63303
63304         * modules/exclude (Depends-on): Depend on verify.
63305         * modules/strtoimax (Depends-on): Likewise.
63306         * modules/utimecmp (Depends-on): Likewise.
63307
63308 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63309
63310         * lib/exclude.c: Include verify.h.
63311         (verify): Remove.  All callers changed to use verify.h's version.
63312         * lib/strtoimax.c: Likewise.
63313         * lib/utimecmp.c: Likewis.e
63314
63315         Sync from coreutils.
63316         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63317         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63318         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63319         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63320         bother returning ENOSYS if settimeofday or stime fails; just let
63321         them return whatever errno they want to return.
63322         * lib/utimens.c: Include unistd.h, for dup2.
63323         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63324         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63325
63326 2005-10-02  Jim Meyering  <jim@meyering.net>
63327
63328         Sync from coreutils.
63329         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63330         from glibc-2.2.5 that fails for read-only files.
63331
63332 2005-10-02  Jim Meyering  <jim@meyering.net>
63333
63334         Sync from coreutils.
63335         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63336         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63337         `#if HAVE_CONFIG_H'.
63338         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63339         Remove AT_FDCWD test.
63340         Do not consume the fd unless successful.
63341         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
63342         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
63343         block, so that we don't even try to compile it if settimeofday is
63344         available.  This works around a compilation failure on OSF1 V5.1,
63345         due to stime requiring a `long int*' while tv_sec is `int'.
63346
63347 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
63348
63349         Sync from coreutils.
63350         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
63351         against `yes', rather than just testing for nonempty.
63352
63353 2005-10-01  Simon Josefsson  <jas@extundo.com>
63354
63355         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
63356         and Darwin.
63357
63358         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
63359         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
63360         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
63361         freeaddrinfo and gai_strerror are declared by the POSIX headers.
63362         Check if struct addrinfo is declared.
63363
63364 2005-10-01  Simon Josefsson  <jas@extundo.com>
63365
63366         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
63367         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
63368         AI_* and EAI_* definitions.  Protect function declarations.
63369
63370 2005-10-01  Jim Meyering  <jim@meyering.net>
63371
63372         Sync from coreutils.
63373
63374         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
63375         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
63376         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
63377         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63378         in the inet and nsl libraries.  Required on Solaris 5.7.
63379
63380 2005-10-01  Jim Meyering  <jim@meyering.net>
63381
63382         Sync from coreutils.
63383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63384         in the inet and nsl libraries.  Required on Solaris 5.7.
63385
63386 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
63387
63388         * lib/getdelim.c (getdelim): Remove unused variables.
63389
63390 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63391
63392         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
63393         so that the code works even with ancient cpp.  Portability problem
63394         with GCC 2.7.2.1 reported by Thomas M.Ott.
63395
63396 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63397
63398         * modules/regex (Depends-on): Add strcase.
63399
63400         * modules/gethostname (Licence): Change from GPL to LGPL, since
63401         gethostname.c is a trivial implementation of a standard library
63402         function.
63403         * modules/poll (License): Change from GPL to LGPL, since it's
63404         derived from LGPL code.
63405
63406 2005-09-27  Jim Meyering  <jim@meyering.net>
63407
63408         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
63409         HAVE_CONFIG_H.
63410
63411         * lib/intprops.h (signed_type_or_expr__): Define.
63412         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
63413         for unsigned types.
63414
63415 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63416
63417         * lib/verify.h (verify_expr): Remove, replacing with:
63418         (verify_true): New macro that returns true instead of void.
63419         (verify_type__): Remove.
63420         (verify): Use verify_true rather than verify_type__.
63421
63422 2005-09-26  Bruno Haible  <bruno@clisp.org>
63423
63424         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
63425         is necessary.
63426         (lib_SOURCES): Remove mbchar.c.
63427         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
63428         (Files): Add m4/mbrtowc.m4.
63429         * modules/mbiter: Likewise.
63430         * modules/mbuiter: Likewise.
63431
63432 2005-09-26  Bruno Haible  <bruno@clisp.org>
63433
63434         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
63435         compile mbchar.c if they are not both present.
63436         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
63437         * m4/mbiter.m4 (gl_MBITER): Likewise.
63438         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
63439         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
63440         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
63441
63442 2005-09-25  Jim Meyering  <jim@meyering.net>
63443
63444         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
63445         also uses socklen_t.
63446
63447 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
63448
63449         * lib/utimens.c (ENOSYS): Define if not already defined.
63450         (futimens): Support having a null PATH if the file descriptor
63451         is nonnegative.
63452
63453         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
63454         Remove.
63455         (__attribute): Define to empty unless GCC 3.1 or later.
63456         This works around a core dump on OpenBSD 3.4, which has GCC
63457         2.95.3, which dumps core when given __attribute__(()).  It also
63458         simplifies other tests, since we really don't want to bother with
63459         worrying about which ancient version of GCC supported what.
63460         Original problem reported by Yoann Vandoorselaere, with part of
63461         the fix suggested by Derek Price.
63462
63463 2005-09-24  Jim Meyering  <jim@meyering.net>
63464
63465         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
63466         so we can once again use a positive bitfield width of 1 -- now we
63467         don't have to explain why we were using a bitfield width of 2.
63468
63469 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63470
63471         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
63472         and similarly for the other external symbols.  Problem reported
63473         by James Gallager.
63474
63475         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
63476         bug reported by Jim Meyering.
63477
63478         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
63479         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
63480         not needed, since socklen is a prerequisite module.
63481
63482 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63483
63484         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
63485         Problem reported by Eric Blake.
63486         (getaddrinfo): Initialize se so that it's not garbage.
63487         Redo internal storage allocation so that it doesn't make unportable
63488         assumptions about alignment.
63489         Fix a memory leak.
63490
63491         * lib/utimens.c (futimens): Use futimesat if available.
63492         Prefer it to futimes since it doesn't have the futimes bug.
63493
63494         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
63495         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
63496         Instead, declare a function that returns a pointer to an array,
63497         and use verify_type__ to declare the size of the array.
63498         Problem and germ of a solution reported by Bruno Haible.
63499         (verify_type__): Use 2, not 1, for bitfield size, to avoid
63500         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
63501
63502 2005-09-23  Jim Meyering  <jim@meyering.net>
63503
63504         Sync from coreutils.
63505         Correct build failure (socklen_t not defined) on at least
63506         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
63507         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
63508
63509 2005-09-23  Jim Meyering  <jim@meyering.net>
63510
63511         * modules/getaddrinfo (Depends-on): Add socklen.
63512
63513 2005-09-23  Bruno Haible  <bruno@clisp.org>
63514
63515         * tests/test-verify.c: New file.
63516
63517 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         Sync from coreutils.
63520
63521         * modules/argmatch (Depends-on): Add verify.
63522         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
63523         unistd-safer.
63524         * modules/save-cwd (Depends-on): Likewise.
63525
63526         * modules/openat (Files): Add lib/openat-die.c.
63527         (Depends-on): Remove error, exitfail.
63528         Add dirname.
63529
63530         * modules/verify: New file.
63531         * MODULES.html.sh (Diagnostics <assert.h>): New section,
63532         with "verify" module.
63533
63534 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63535
63536         Sync from coreutils.
63537
63538         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
63539         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
63540         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
63541         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
63542         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
63543         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
63544         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
63545         Don't bother checking for string.h, stdlib.h, unistd.h.
63546         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
63547         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
63548         module's job.
63549         * m4/jm-macros.m4 (gl_MACROS): Likewise.
63550         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
63551
63552         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63553         (gl_GETDATE): Use it.
63554
63555         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63556
63557 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63558
63559         Sync from coreutils.
63560
63561         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63562         stat-time.h.
63563         * lib/argmatch.h: Include verify.h
63564         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63565         (ARGMATCH_ASSERT): Remove; unused.
63566         * lib/canonicalize.c: Assume STDC_HEADERS.
63567         * lib/exclude.c: Include "strcase.h".
63568         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63569         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63570         and stdio-safer.h.
63571         (getusershell): Call fopen, not fopen_safer.
63572         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63573         Do not include unistd-safer.h.
63574         (save_cwd): Don't call fd_safer; no longer needed
63575         now that we include fcntl--.h.
63576
63577         * lib/getdate.y (relative_time): New type.
63578         (RELATIVE_TIME_0): New constant.
63579         (parser_control): Use relative_time instead of doing it ourselves.
63580         (%union): Add new relative_time rel member.
63581         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63582         Now typeless.
63583         (relunit, relunit_snumber): Now of type rel.
63584         (zone, rel, relunit, get_date): Adjust to above changes.
63585
63586         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63587         Do not include unistd-safer.h.
63588         (getloadavg): Don't call fd_safer; no longer needed
63589         now that we include fcntl--.h.
63590
63591         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63592         (make_dir_parents): Treat ENOSYS like EEXIST.
63593
63594         Improve quality of diagnostics on restore_cwd failure.
63595         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63596         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63597         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63598         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63599         each time through the loop.  Do not diagnose restore_cwd failure;
63600         that is the caller's job (and perhaps the caller does not care).
63601
63602         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63603         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63604         If the file already exists but is not a directory, don't bother
63605         to try to make its parents.
63606         Close potential file descriptor leak if we can't chdir("/") (!).
63607         Don't always return true if chdir($PWD) fails; return true only
63608         if the requested action was done successfully (except for the
63609         chdir($PWD)).
63610         Don't log final directory unless we actually made it.
63611         Refactor to avoid duplicate code to fix up permissions.
63612         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63613
63614         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63615         to make it a bit faster and (I hope) clearer.
63616         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63617         Fix bug in formats like %2N.
63618
63619         * lib/verify.h: New file.
63620
63621 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63622
63623         Sync from coreutils.
63624         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63625
63626 2005-09-22  Jim Meyering  <jim@meyering.net>
63627
63628         Sync from coreutils.
63629
63630         * m4/lstat.m4 (gl_FUNC_LSTAT):
63631         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63632         Remove obsolete comment.
63633         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63634         * m4/xstrtod.m4: Likewise.
63635
63636         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63637
63638 2005-09-22  Jim Meyering  <jim@meyering.net>
63639
63640         Sync from coreutils.
63641
63642         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63643
63644         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63645         the .tm_year member, since otherwise gcc-4.0 would now warn about
63646         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63647
63648         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63649         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63650
63651         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63652         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63653         when run in a time zone for which daylight savings time is in effect
63654         for the starting date.
63655
63656         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63657         stop us from restricting permissions of just-created absolute-named
63658         directories.
63659         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63660         to restore initial working directory.
63661         * lib/mkdir-p.c (make_dir_parents): New parameter:
63662         different_working_dir, to tell caller if/when we change the working
63663         directory and are unable to return to the initial one.
63664         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63665         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63666         `return false'.  This fixes a bug introduced on 2004-07-30.
63667
63668         * lib/openat.c (fdopendir): Be sure to close the supplied
63669         file descriptor before returning.  This makes our replacement
63670         implementation a little closer to Solaris's, where fdopendir
63671         ties the file descriptor to the returned DIR* pointer.
63672         * lib/openat.c (unlinkat): New function.
63673         * lib/openat.h (unlinkat): Add prototype.
63674         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63675         (openat_restore_fail): Rename from openat_restore_die.
63676         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63677
63678         Provide an alternative to exiting immediately upon save_cwd or
63679         restore_cwd failure.  Now, an application can arrange e.g.,
63680         to perform a longjump in that case.
63681         * lib/openat.c: Include dirname.h.
63682         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63683         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63684         and openat_restore_die rather than calling error directly.
63685         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63686
63687         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63688         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63689         define.
63690
63691         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63692         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63693                             int utc, int nanoseconds);
63694         Background:
63695         date should not have to allocate a megabyte of virtual memory to
63696         handle a format argument like +%1048575T.  When implemented with
63697         strftime, it must allocate such a buffer, use strftime to fill it
63698         in, print it, then free it.
63699         With fprintftime, it simply prints everything and exits.
63700         With no need for memory allocation, that's one fewer way to fail.
63701         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63702         optional field width, not before, so we accept %9:z, not %:9z.
63703         (my_strftime): Be sure to use L_('x') for literals.
63704
63705         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63706         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63707         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63708         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63709         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63710         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63711         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63712         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63713         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63714         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63715         * lib/xgethostname.c, lib/xreadlink.c:
63716         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63717
63718         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63719         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63720         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63721         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63722         and don't include <sys/file.h>).
63723
63724 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63725
63726         Sync from coreutils.
63727
63728         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63729         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63730         [!LDAV_DONE]: Avoid unused variable warning.
63731
63732 2005-09-21  Bruno Haible  <bruno@clisp.org>
63733
63734         * lib/unicodeio.h (unicode_to_mb): New declaration.
63735
63736 2005-09-20  Derek Price  <derek@ximbiot.com>
63737
63738         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63739         getaddrinfo.h.
63740
63741 2005-09-20  Bruno Haible  <bruno@clisp.org>
63742
63743         * gnulib-tool: Remove trailing slashes from the values specified for
63744         --source-base, --m4-base, --tests-base, --aux-dir.
63745         Suggested by Simon Josefsson <jas@extundo.com>.
63746
63747 2005-09-20  Bruno Haible  <bruno@clisp.org>
63748
63749         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63750         func_modules_to_filelist, func_import, func_create_testdir): Make all
63751         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63752         change when gnulib-tool is invoked in a different locale.
63753
63754 2005-09-19  Simon Josefsson  <jas@extundo.com>
63755
63756         * m4/socklen.m4: Fix typo.
63757
63758 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63759
63760         Use a consistent style for including <config.h>.
63761         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63762         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63763         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63764         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63765         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63766         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63767         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63768         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63769         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63770         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63771         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63772         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63773         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63774         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63775         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63776         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63777         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63778         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63779         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63780         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63781         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63782         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63783         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63784         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63785         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63786         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63787         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63788         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63789         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63790         lib/xstrtoumax.c, lib/yesno.c:
63791         Standardize inclusion of config.h.
63792         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63793         lib/inttostr.h:  Removed inclusion of config.h from header files.
63794         * lib/inttostr.c:  Adjusted in-tree users.
63795         * lib/timespec.h: Remove superfluous warning to include config.h.
63796         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63797         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63798         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63799         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63800         config.h with HAVE_CONFIG_H.
63801
63802 2005-09-19  Jim Meyering  <jim@meyering.net>
63803
63804         * modules/pathmax (License): Change to LGPL.
63805
63806 2005-09-19  Derek Price  <derek@ximbiot.com>
63807
63808         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63809
63810 2005-09-19  Bruno Haible  <bruno@clisp.org>
63811
63812         * gnulib-tool (import): Provide default for --tests-base.
63813
63814 2005-09-19  Bruno Haible  <bruno@clisp.org>
63815
63816         * doc/quote.texi: New file, extracted from gnulib.texi.
63817         * doc/ctime.texi: New file, extracted from gnulib.texi.
63818         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63819         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63820         * doc/gnulib.texi: Include them.
63821
63822 2005-09-18  Bruno Haible  <bruno@clisp.org>
63823
63824         Portability fix.
63825         * gnulib-tool (func_readlink): New function.
63826         (func_ln_if_changed): Use it.
63827
63828 2005-09-18  Bruno Haible  <bruno@clisp.org>
63829
63830         * gnulib-tool: Support --with-tests also with --import.
63831         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63832         (func_import): Use variables $testsbase and $inctests. Emit a
63833         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63834         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63835         SUBDIRS += $testsdir.
63836         (func_create_testdir): Update.
63837
63838 2005-09-18  Bruno Haible  <bruno@clisp.org>
63839
63840         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63841         instead of $dry_run.
63842         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63843         (func_ln_if_changed): Don't handle dry-run here.
63844         (func_import): In dry-run mode, detect more precisely which actions
63845         would be performed, and don't use "...ing" verbs.
63846
63847 2005-09-18  Bruno Haible  <bruno@clisp.org>
63848
63849         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63850         (func_import): Use join on two temporary files instead of three nested
63851         loops, in order to determine which files are new or old.
63852
63853 2005-09-18  Bruno Haible  <bruno@clisp.org>
63854
63855         * gnulib-tool (func_import): Comment out code that spits out the
63856         new files with --dry-run.
63857
63858 2005-09-18  Bruno Haible  <bruno@clisp.org>
63859
63860         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63861
63862 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63863
63864         * lib/stat-time.h: New file.
63865         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63866         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63867         in a different way.
63868         (timespec_cmp): New function.
63869         * lib/utimecmp.c: Include stat-time.h.
63870         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63871         members exist, not on the obsolescent ST_MTIM_NSEC.
63872         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63873
63874 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63875
63876         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63877
63878 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63879
63880         * MODULES.html.sh (File system functions): Add stat-time.
63881         * modules/stat-time: New file.
63882         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63883         is now done in a different way, by the stat-time module.
63884         * modules/utimecmp (Depends-on): Add stat-time.
63885
63886 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63887
63888         * m4/st_mtim.m4: Remove.  Superseded by...
63889         * m4/stat-time.m4: New file.
63890         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63891         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63892
63893 2005-09-15  Derek Price  <derek@ximbiot.com>
63894
63895         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63896
63897 2005-09-15  Derek Price  <derek@ximbiot.com>
63898
63899         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63900         * lib/regex_internal.c: Ditto, using this...
63901         (__GNUC_PREREQ): ...new macro.
63902         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63903         using...
63904         (__GNUC_PREREQ): ...this new macro.
63905
63906         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63907
63908 2005-09-15  Derek Price  <derek@ximbiot.com>
63909             Paul Eggert  <eggert@cs.ucla.edu>
63910
63911         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63912         changes, consolidating in...
63913         * lib/regex_internal.h: ...this file.
63914
63915 2005-09-13  Jim Meyering  <jim@meyering.net>
63916
63917         * lib/canon-host.c: Filter through gnu indent and reword comments
63918         slightly.
63919         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63920
63921 2005-09-13  Derek Price  <derek@ximbiot.com>
63922
63923         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63924         failure.
63925         Reported by Jim Meyering  <jim@meyering.net>.
63926
63927 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63928
63929         * lib/base64.c: Typo.
63930         (base64_encode): Put b64str in initialized data section.
63931
63932 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63933
63934         Merge glibc and coreutils changes into gnulib, plus a few
63935         extra fixes.
63936         * lib/md5.c: Use #error rather than a string.
63937         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63938         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63939         (__attribute__): Define to empty for non recent-GCC.
63940         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63941         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63942         Renamed from their non-__ counterparts, with new macros replacing
63943         them if not _LIBC.  Add __THROW attribute.
63944         (rol): Remove.
63945         (struct md5_ctx): Align buffer if using GCC.
63946         * lib/sha1.h (struct sha1_ctx): Likewise.
63947         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63948         The old name was backwards.
63949         (NOTSWAP): Remove; not used.
63950         (rol): New macro, moved here from md5.h.
63951         (sha1_process_block): Remove a FIXME that doesn't make sense.
63952
63953 2005-09-12  Derek Price  <derek@ximbiot.com>
63954
63955         Return usable errors from canon-host.
63956         * lib/canon-host.h: New file.
63957         * lib/canon-host.c (canon_host): Wrap...
63958         (canon_host_r): ...this new function, which now relies exclusively on
63959         getaddrinfo.
63960         (ch_strerror): New function.
63961         (last_cherror): New global.
63962         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63963         interface.
63964         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63965         void *.
63966         (freeaddrinfo): Free ai->ai_canonname when set.
63967
63968 2005-09-12  Derek Price  <derek@ximbiot.com>
63969
63970         Make canon-host require getaddrinfo.
63971         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63972         AC_LIBSOURCE canon-host.h.  Call...
63973         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63974         gl_GETADDRINFO.
63975         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63976
63977 2005-09-12  Derek Price  <derek@ximbiot.com>
63978
63979         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63980         LGPL.
63981         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63982
63983 2005-09-12  Derek Price  <derek@ximbiot.com>
63984
63985         * lib/gai_strerror.c: Include config.h when available.  Include
63986         getaddrinfo.h before other headers to test interface.
63987         Reported by Larry Jones <lawrence.jones@ugs.com>.
63988
63989 2005-09-12  Derek Price  <derek@ximbiot.com>
63990             Paul Eggert  <eggert@cs.ucla.edu>
63991
63992         * modules/glob (Files): Add glob-libc.h.
63993
63994 2005-09-12  Derek Price  <derek@ximbiot.com>
63995             Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63998         glob_.h, glob-libc.h.
63999         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64000
64001 2005-09-12  Derek Price  <derek@ximbiot.com>
64002             Paul Eggert  <eggert@cs.ucla.edu>
64003
64004         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64005         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64006         protecting things that should be done only in gnulib contexts.
64007         * lib/glob_.h: New file, containing only the glob things needed for
64008         gnulib.
64009         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64010         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64011         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64012         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64013         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64014         and to respect the namespace rules better.
64015
64016 2005-09-08  Simon Josefsson  <jas@extundo.com>
64017
64018         * modules/socklen: New file.
64019
64020 2005-09-08  Simon Josefsson  <jas@extundo.com>
64021
64022         * m4/socklen.m4: New file.
64023
64024 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64025
64026         * modules/utimens (Files): Add m4/utimbuf.m4, since
64027         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64028         Reported by Sergey Poznyakoff.
64029
64030 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64031
64032         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64033         definitions, since that's the preferred style in glibc.
64034         Fix a minor spacing issue, and update copyright notice to match
64035         glibc's.
64036
64037 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64038
64039         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64040
64041 2005-09-06  Simon Josefsson  <jas@extundo.com>
64042
64043         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64044         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64045
64046 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64047
64048         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64049         warning.
64050
64051 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * config/srclist.txt: Add glibc bug 1302.
64054
64055 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64056
64057         Change bitset word type from unsigned int to unsigned long int,
64058         as this has better performance on typical 64-bit hosts.
64059         Port bitset code to hosts with unusual word sizes.
64060         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64061         (build_collating_symbol):
64062         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64063         argument is a bitset.  This is merely a style issue, but it makes
64064         it clearer that an entire array is expected.
64065         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64066         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64067         Port to the case where bitset_word is not the same as unsigned int.
64068         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64069         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64070         Likewise.
64071         * lib/regexec.c (check_dst_limits_calc_pos_1,
64072         check_subexp_matching_top):
64073         (build_trtable, group_nodes_into_DFAstates):
64074         Likewise.
64075         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64076         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64077         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64078         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64079         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64080         * lib/regcomp.c (optimize_subexps, lower_subexp):
64081         Work even if bitset_word has holes in its bitwise representation.
64082         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64083         * lib/regexec.c (check_dst_limits_calc_pos_1,
64084         check_subexp_matching_top):
64085         Likewise.
64086         * lib/regex_internal.c (re_string_reconstruct):
64087         Don't assume UCHAR_MAX == 255.
64088         * lib/regex_internal.h (bitset_set_all): Likewise.
64089         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64090         All uses changed.
64091         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64092         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64093         All uses changed.
64094         (BITSET_WORD_MAX): New macro.
64095         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64096         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64097         (bitset_empty, bitset_copy):
64098         Prefer sizeof (bitset) to multiplying it out ourselves.
64099         (bitset_not_merge): Remove; unused.
64100         (bitset_contain): Return bool, not unsigned int with one bit on.
64101         All callers changed.
64102         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64103         alignment than re_node_set; do this by defining a new internal
64104         type struct dests_alloc and using it to allocate memory.
64105
64106 2005-09-05  Bruno Haible  <bruno@clisp.org>
64107
64108         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64109         links.
64110
64111 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64112
64113         * modules/size_max (Makefile.am): Add size_max.h
64114
64115 2005-09-04  Derek Price  <derek@ximbiot.com>
64116
64117         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64118
64119 2005-09-03  Simon Josefsson  <jas@extundo.com>
64120
64121         * gnulib-tool: Fix typo.
64122
64123 2005-09-03  Simon Josefsson  <jas@extundo.com>
64124
64125         * config/srclist.txt: Add glibc bug 1293.
64126
64127 2005-09-03  Derek Price  <derek@ximbiot.com>
64128
64129         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64130         From Larry Jones <lawrence.jones@ugs.com>.
64131
64132 2005-09-02  Simon Josefsson  <jas@extundo.com>
64133
64134         * modules/socklen: New file.
64135
64136 2005-09-02  Simon Josefsson  <jas@extundo.com>
64137
64138         * modules/havelib: New module.
64139
64140         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64141         Use havelib.
64142
64143 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64144
64145         Check for arithmetic overflow when calculating sizes, to prevent
64146         some buffer-overflow issues.  These patches are conservative, in the
64147         sense that when I couldn't determine whether an overflow was possible,
64148         I inserted a run-time check.
64149         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64150         macros.
64151         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64152         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64153         (re_xnrealloc, re_x2nrealloc): New inline functions.
64154         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64155         parse_bracket_exp):
64156         (build_equiv_class, build_charclass): Check for arithmetic overflow
64157         in size expression calculations.
64158         * lib/regex_internal.c (re_string_realloc_buffers):
64159         (build_wcs_upper_buffer, re_node_set_add_intersect):
64160         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64161         (re_dfa_add_node, register_state): Likewise.
64162         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64163         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64164         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64165         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64166
64167 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64170         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64171
64172 2005-09-02  Bruno Haible  <bruno@clisp.org>
64173
64174         Support for lib vs. lib64 distinction on biarch platforms.
64175         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64176         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64177         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64178
64179 2005-09-02  Bruno Haible  <bruno@clisp.org>
64180
64181         * gnulib-tool (import): In the other first-use case, provide defaults
64182         as well.
64183
64184 2005-09-02  Bruno Haible  <bruno@clisp.org>
64185
64186         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64187         patches not yet found in the latest gettext release.
64188
64189 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64190
64191         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64192         to avoid a collision with bits/local_lim.h in glibc.
64193         All uses changed.  Problem reported by Dmitry V. Levin in
64194         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64195
64196         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64197         bugs in int versus size_t comparisons.
64198         (re_string_context_at): Fix bug where the code assumed that
64199         Idx is signed.
64200
64201         Use bool where appropriate.
64202         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64203         All callers changed.
64204         (calc_eclosure_iter): Likewise, for ROOT arg.
64205         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64206         (build_charclass_op): Likewise, for NON_MATCH arg.
64207         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64208         (re_string_construct_common): Likewise, for ICASE arg.
64209         * lib/regexec.c (re_search_2_stub, re_search_stub):
64210         Likewise, for RET_LEN arg.
64211         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64212         (set_regs): Likewise, for FL_BACKTRACK arg.
64213         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64214         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64215         (calc_eclosure_iter, parse_bracket_exp):
64216         Use bool for internal variables that are booleans.
64217         * lib/regexec.c (re_search_internal, check_matching,
64218         proceed_next_node):
64219         (set_regs, build_sifted_states, sift_states_bkref):
64220         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64221         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64222         (find_collation_sequence_value):
64223         Likewise.
64224         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64225         (re_node_set_compare):
64226         Return bool, not int. All callers changed.
64227         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64228         (build_trtable, check_node_accept): Likewise.
64229         * lib/regex_internal.h: Include stdbool.h.
64230
64231         Fix bugs uncovered when converting to bool.
64232         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64233         failure instead of charging ahead blindly.
64234         * lib/regex_internal.c (register_state): Likewise.
64235         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64236         for freeing internal storage.
64237         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64238         bitset pieces used as boolean, to avoid undefined behavior
64239         on hosts that do int overflow checking.
64240
64241 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64242
64243         * config/srclist.txt: Add glibc bugs 1285-1287.
64244
64245 2005-09-01  Jim Meyering  <jim@meyering.net>
64246
64247         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64248         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64249         Require gl_STAT_MACROS, too.
64250
64251 2005-09-01  Bruno Haible  <bruno@clisp.org>
64252
64253         * gnulib-tool (import): In the first-use case, provide defaults.
64254
64255 2005-09-01  Bruno Haible  <bruno@clisp.org>
64256
64257         * gnulib-tool (func_import): Remove the .tmp files.
64258
64259 2005-09-01  Bruno Haible  <bruno@clisp.org>
64260
64261         * gnulib-tool (func_import): Fix handling of symbolic links.
64262
64263 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64264
64265         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64266         old glibc regex code mishandles strings longer than 2**31 bytes.
64267         This patch fixes this when the regex code is used in gnulib
64268         (i.e., outside glibc).
64269
64270         This patch should not affect the use of the regex code inside
64271         glibc.  No doubt this problem also needs to be handled for glibc
64272         as well, but the result will be an incompatible change to the
64273         glibc ABI, and the old ABI will have to be supported too.  That
64274         can be the the subject for another patch.
64275
64276         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64277         governing whether the rest of this patch is active.  By default,
64278         the macro is disabled and the patch has no effect.
64279         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64280         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64281         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64282         (re_match_2, re_set_registers): Use the new types.
64283         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64284         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64285         New macros.
64286         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64287         (re_string_context_at, bin_tree_t, re_dfastate_t):
64288         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64289         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64290         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64291         (re_string_char_size_at, re_string_wchar_at):
64292         (re_string_elem_size_at):
64293         Use the new types and macros to port to 64-bit hosts.
64294         Use unsigned types for internal values, so that the code
64295         mostly works even for arrays larger than SSIZE_MAX.
64296         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64297         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64298         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64299         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64300         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64301         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64302         (calc_inveclosure, parse_dup_op, build_range_exp):
64303         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64304         (fetch_number, create_token_tree, mark_opt_subexp):
64305         Likewise.
64306         * lib/regex_internal.c (re_string_construct_common,
64307         create_ci_newstate):
64308         (create_cd_newstate, re_string_allocate, re_string_construct):
64309         (re_string_realloc_buffers, build_wcs_upper_buffer):
64310         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64311         (re_string_reconstruct, re_string_peek_byte_case):
64312         (re_string_fetch_byte_case, re_string_context_at):
64313         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64314         (re_node_set_init_copy, re_node_set_add_intersect):
64315         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64316         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64317         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64318         (re_acquire_state, re_acquire_state_context, register_state):
64319         Likewise.
64320         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64321         search_cur_bkref_entry):
64322         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64323         (re_search_internal, re_search_2_stub, re_search_stub)
64324         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64325         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64326         (update_cur_sifted_state, check_dst_limits):
64327         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64328         (check_subexp_limits, sift_states_bkref, merge_state_array):
64329         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64330         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64331         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64332         (expand_bkref_cache, check_node_accept_bytes):
64333         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64334         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64335         (acquire_init_state_context, check_halt_node_context):
64336         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64337         (sift_states_backward, clean_state_log_if_needed):
64338         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64339         (find_recover_state, transit_state_sb, transit_state_mb):
64340         (transit_state_bkref, build_trtable, match_ctx_clean):
64341         Likewise.
64342         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
64343         to work around an assumption that REG_MISSING is negative.
64344
64345         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
64346         (seek_collating_symbol_entry) [defined _LIBC]:
64347         (lookup_collation_sequence_value) [defined _LIBC]:
64348         (build_range_exp, build_collating_symbol) [defined _LIBC]:
64349         Use prototypes rather than old-style function definitions.
64350         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
64351         (transit_state_sb) [0]:
64352         (find_collation_sequence_value) [defined _LIBC]: Likewise.
64353
64354         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
64355         rm_eo.
64356
64357         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
64358         (optimize_subexps, lower_subexp):
64359         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
64360         since the signed shift might overflow.  Use 1u<<31 instead.
64361         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64362         Likewise.
64363         * lib/regexec.c (check_dst_limits_calc_pos_1,
64364         check_subexp_matching_top): Likewise.
64365
64366         * lib/regcomp.c (optimize_subexps, lower_subexp):
64367         Use CHAR_BIT rather than 8, for clarity.
64368         * lib/regexec.c (check_dst_limits_calc_pos_1):
64369         (check_subexp_matching_top): Likewise.
64370         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
64371         have to worry about portability issues when shifting it left.
64372         Remove no-longer-needed test for table_size > 0.
64373         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
64374         in a word, as the resulting behavior is undefined.
64375         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
64376         in one case, a <= should have been an <, and in another case the
64377         whole test was missing.
64378         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
64379         the standard name CHAR_BIT.
64380         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
64381         this is not true on one's complement and signed-magnitude hosts.
64382
64383         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
64384         next_last_offset.
64385         (struct re_dfa_t): Remove unused member states_alloc.
64386         * lib/regcomp.c (init_dfa): Don't initialize unused members.
64387
64388 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64389
64390         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
64391         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
64392         and large-file glibc and in 32-bit large-file Solaris.
64393
64394 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
64397         lengths fit in regoff_t; this isn't true if regoff_t is the same
64398         width as size_t.
64399         * lib/regex.c (re_search_internal): 5th arg is LAST_START
64400         (= START + RANGE) instead of RANGE.  This avoids overflow
64401         problems when regoff_t is the same width as size_t.
64402         All callers changed.
64403         (re_search_2_stub): Check for overflow when adding the
64404         sizes of the two strings.
64405         (re_search_stub): Check for overflow when adding START
64406         to RANGE; if it occurs, substitute the extreme value.
64407
64408 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64409
64410         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
64411
64412 2005-08-31  Jim Meyering  <jim@meyering.net>
64413
64414         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
64415         a pointer-to-const.
64416         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
64417         (register_state): Likewise.
64418         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
64419         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64420         (group_nodes_into_DFAstates): Likewise.
64421
64422 2005-08-31  Jim Meyering  <jim@meyering.net>
64423
64424         * check-module: Add a FIXME comment.
64425
64426 2005-08-31  Eric Blake  <ebb9@byu.net>
64427
64428         * modules/unistd-safer (Files): Add unistd--.h.
64429         * modules/stdio-safer (Files): Add stdio--.h.
64430
64431 2005-08-31  Derek Price  <derek@ximbiot.com>
64432
64433         * lib/getdelim.c (getdelim): Return EOF on EOF.
64434         Reported by Larry Jones <lawrence.jones@ugs.com>.
64435
64436 2005-08-31  Bruno Haible  <bruno@clisp.org>
64437
64438         Avoid unnecessary diffs in the generated lib/Makefile.am.
64439         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
64440         the generated files.
64441         (func_import): Don't set cmd.
64442
64443 2005-08-31  Bruno Haible  <bruno@clisp.org>
64444
64445         * lib/strstr.c: Include <stddef.h>, for NULL.
64446         * lib/strcasestr.c: Likewise.
64447         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64448
64449 2005-08-31  Bruno Haible  <bruno@clisp.org>
64450
64451         * gnulib-tool: New option --macro-prefix.
64452         (func_import): Use macro_prefix.
64453         (import): Handle option --macro-prefix.
64454
64455 2005-08-31  Bruno Haible  <bruno@clisp.org>
64456
64457         * gnulib-tool (import): Rename most ac_* variables to cached_*.
64458         Also use new variables cached_lgpl, cached_libtool.
64459
64460 2005-08-31  Bruno Haible  <bruno@clisp.org>
64461
64462         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
64463         always instantiating them.
64464
64465 2005-08-31  Bruno Haible  <bruno@clisp.org>
64466
64467         * gnulib-tool (func_import): Read the previous cached settings
64468         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
64469         earlier added by gnulib but are now dropped. Warn when a gnulib file
64470         overwrites a non-gnulib file.
64471
64472 2005-08-31  Bruno Haible  <bruno@clisp.org>
64473
64474         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
64475         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
64476         projects that don't keep autogenerated files in CVS. Put into
64477         actioncmd only the specified modules, not the transitive closure.
64478
64479 2005-08-31  Bruno Haible  <bruno@clisp.org>
64480
64481         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
64482         Create directories that shall be filled.
64483         (import): Don't look for gl_* macros in configure.ac. Recurse across
64484         all directories containing a gnulib-cache.m4 files, if meaningful.
64485
64486 2005-08-31  Bruno Haible  <bruno@clisp.org>
64487
64488         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
64489         (import): Set seen_libtool when we see gl_LIBTOOL.
64490
64491 2005-08-31  Bruno Haible  <bruno@clisp.org>
64492
64493         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
64494         declaration macro definitions from generated gnulib.m4.
64495
64496 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
64497
64498         * lib/iconvme.h: Add prototype for iconv_alloc.
64499
64500 2005-08-29  Simon Josefsson  <jas@extundo.com>
64501
64502         * lib/iconvme.c: Fix errno.
64503
64504 2005-08-29  Bruno Haible  <bruno@clisp.org>
64505
64506         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
64507         that it works when the directory contains spaces.
64508
64509 2005-08-29  Bruno Haible  <bruno@clisp.org>
64510
64511         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
64512
64513 2005-08-29  Bruno Haible  <bruno@clisp.org>
64514
64515         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
64516         Emit more advice.
64517
64518 2005-08-29  Bruno Haible  <bruno@clisp.org>
64519         and Stepan Kasal  <kasal@ucw.cz>
64520
64521         * check-module: If more parameters are given, check each of them
64522         separately; add more exceptions, as noted by Jim Meyering.
64523         (check_module): New procedure.
64524         (%exempt_header): Now contains all exceptions.
64525
64526 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
64527
64528         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
64529
64530 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64531
64532         * lib/iconvme.c: Split iconv_string into iconv_alloc.
64533
64534 2005-08-28  Bruno Haible  <bruno@clisp.org>
64535
64536         * m4/gnulib-tool.m4: New file.
64537
64538 2005-08-27  Jim Meyering  <jim@meyering.net>
64539
64540         * modules/unistd-safer (Files): Add pipe-safer.c.
64541         * modules/fcntl-safer (Files): Add creat-safer.c.
64542
64543 2005-08-27  Jim Meyering  <jim@meyering.net>
64544
64545         * m4/stdlib-safer.m4: New file.  From coreutils.
64546         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
64547         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
64548         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
64549         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
64550         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
64551
64552 2005-08-27  Jim Meyering  <jim@meyering.net>
64553
64554         * lib/fopen-safer.c: Merge minor changes from coreutils.
64555         * lib/dup-safer.c: Likewise.
64556         * lib/fd-safer.c: Likewise.
64557
64558         Merge from coreutils.
64559         * lib/stdio--.h: New file.
64560         * lib/stdlib--.h: New file.
64561         * lib/mkstemp-safer.c: New file.
64562
64563         GNU tar needs these.
64564         * lib/pipe-safer.c: New file.
64565         * lib/creat-safer.c: New file.
64566         * lib/fcntl--.h (creat): Define to creat_safer.
64567         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64568         * lib/unistd--.h (pipe): Define to pipe_safer.
64569         * lib/unistd-safer.h: Declare pipe_safer.
64570
64571 2005-08-26  Simon Josefsson  <jas@extundo.com>
64572
64573         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64574         Haible <bruno@clisp.org>.
64575
64576 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64577
64578         * lib/regex_internal.h: Remove all references to
64579         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64580         or better.
64581         (bitset_not, bitset_merge, bitset_not_merge):
64582         (bitset_mask, re_string_allocate, re_string_construct):
64583         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64584         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64585         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64586         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64587         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64588         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64589         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64590         (re_acquire_state_context):
64591         Remove unnecessary forward decls.
64592         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64593         Put __attribute at function definition,
64594         now that the function decl has been removed.
64595         * lib/regex_internal.c (re_string_peek_byte_case):
64596         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64597         Likewise.
64598
64599 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64600
64601         * m4/regex.m4: Add AC_PREREQ(2.50).
64602         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64603
64604 2005-08-25  Simon Josefsson  <jas@extundo.com>
64605
64606         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64607         __fsetlocking.
64608
64609 2005-08-25  Simon Josefsson  <jas@extundo.com>
64610
64611         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64612         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64613         GLIBC specific code.
64614
64615 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         Make regex safe for g++.  This fixes one real bug (an "err"
64618         that should have been "*err").  g++ problem reported by
64619         Sam Steingold.
64620         * lib/regex_internal.h (re_calloc): New macro, consistent with
64621         re_malloc etc.  All callers of calloc changed to use re_calloc.
64622         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64623         not int.  All callers changed.
64624         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64625         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64626         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64627         (find_recover_state): Change "err" to "*err"; this fixes what
64628         appears to be a real bug.
64629         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64630         versus int.
64631
64632 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64633
64634         * modules/regex (Depends-on): Add malloc, since the code
64635         assumes that !malloc(0) means failure.
64636
64637 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64638
64639         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64640
64641         alloca modernization/simplification for regex.
64642         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64643         needs to be at the start of the file, and can be moved into
64644         regex_internal.h and simplified.
64645         * lib/regex_internal.h: Include <alloca.h>.
64646         (__libc_use_alloca) [!defined _LIBC]: New macro.
64647         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64648         now works outside glibc.
64649
64650 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64651
64652         * config/srclist.txt: Add glibc bugs 1241, 1245.
64653
64654 2005-08-25  Jim Meyering  <jim@meyering.net>
64655
64656         * lib/open-safer.c: Include <config.h>.
64657         Otherwise, we'd lose LARGEFILE support in any file using
64658         e.g. "fcntl--.h"
64659
64660 2005-08-25  Bruno Haible  <bruno@clisp.org>
64661
64662         * m4/minmax.m4: Require autoconf 2.52.
64663         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64664         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64665         alternatives of translit over the alphabet.
64666         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64667
64668 2005-08-24  Simon Josefsson  <jas@extundo.com>
64669
64670         * tests/test-getpass.c: New file.
64671
64672 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64673
64674         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64675         for GNU regex features.
64676
64677 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64680         * lib/regex.h (regerror): Likewise.
64681
64682         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64683         requires this.  (The code never needed it.)
64684
64685         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64686         All uses of recently-renamed identifiers changed to use the new,
64687         POSIX-compliant names.  The code will build and run just fine
64688         without these changes, but it's better to eat our own dog food
64689         and use the standard-conforming names.
64690
64691         * lib/regex.h: Fix a multitude of POSIX name space violations.
64692         These changes have an effect only for programs that define
64693         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64694         do not change anything for programs compiled in the normal way.
64695         Also, there is no effect on the ABI.
64696
64697         (_REGEX_SOURCE): New macro.
64698         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64699         defined and _GNU_SOURCE is not; this fixes a name space violation.
64700
64701         Rename the following macros to obey POSIX requirements.
64702         The old names are still visible as macros if _REGEX_SOURCE is defined.
64703         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64704         RE_BACKSLASH_ESCAPE_IN_LISTS.
64705         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64706         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64707         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64708         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64709         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64710         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64711         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64712         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64713         (REG_INTERVALS): renamed from RE_INTERVALS.
64714         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64715         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64716         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64717         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64718         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64719         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64720         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64721         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64722         RE_UNMATCHED_RIGHT_PAREN_ORD.
64723         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64724         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64725         (REG_DEBUG): renamed from RE_DEBUG.
64726         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64727         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64728         unusual, since we can't clash with the POSIX REG_ICASE.
64729         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64730         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64731         (REG_NO_SUB): renamed from RE_NO_SUB.
64732         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64733         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64734         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64735         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64736         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64737         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64738         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64739         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64740         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64741         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64742         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64743         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64744         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64745         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64746         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64747         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64748         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64749         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64750         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64751         (REG_FIXED): Renamed from REGS_FIXED.
64752         (REG_NREGS): Renamed from RE_NREGS.
64753
64754         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64755         of other REG_* macros, since POSIX says the user is allowed to
64756         #undef these macros selectively.
64757
64758         (reg_errcode_t): Update comment stating what other tables need
64759         to be consistent.
64760
64761         Rename the following enum values to obey POSIX requirements.
64762         The old names are still visible as macros.
64763         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64764         is not defined, since GNU is supposed to be a superset of POSIX as
64765         much as possible, and since we want reg_errcode_t to be a signed
64766         type for implementation consistency.
64767         (_REG_NOERROR): Renamed from REG_NOERROR.
64768         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64769         (_REG_BADPAT): Renamed from REG_BADPAT.
64770         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64771         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64772         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64773         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64774         (_REG_EBRACK): Renamed from REG_EBRACK.
64775         (_REG_EPAREN): Renamed from REG_EPAREN.
64776         (_REG_EBRACE): Renamed from REG_EBRACE.
64777         (_REG_BADBR): Renamed from REG_BADBR.
64778         (_REG_ERANGE): Renamed from REG_ERANGE.
64779         (_REG_ESPACE): Renamed from REG_ESPACE.
64780         (_REG_BADRPT): Renamed from REG_BADRPT.
64781         (_REG_EEND): Renamed from REG_EEND.
64782         (_REG_ESIZE): Renamed from REG_ESIZE.
64783         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64784         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64785         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64786         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64787         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64788
64789         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64790         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64791         changed.  But support the old name if the new one is not defined
64792         and if _REGEX_SOURCE.
64793
64794         Change the following member names in struct re_pattern_buffer.
64795         The old names are still supported if !_REGEX_SOURCE.
64796         The new names are always supported, regardless of _REGEX_SOURCE.
64797         (re_buffer): Renamed from buffer.
64798         (re_allocated): Renamed from allocated.
64799         (re_used): Renamed from used.
64800         (re_syntax): Renamed from syntax.
64801         (re_fastmap): Renamed from fastmap.
64802         (re_translate): Renamed from translate.
64803         (re_can_be_null): Renamed from can_be_null.
64804         (re_regs_allocated): Renamed from regs_allocated.
64805         (re_fastmap_accurate): Renamed from fastmap_accurate.
64806         (re_no_sub): Renamed from no_sub.
64807         (re_not_bol): Renamed from not_bol.
64808         (re_not_eol): Renamed from not_eol.
64809         (re_newline_anchor): Renamed from newline_anchor.
64810
64811         Change the following member names in struct re_registers.
64812         The old names are still supported if !_REGEX_SOURCE.
64813         The new names are always supported, regardless of _REGEX_SOURCE.
64814         (rm_num_regs): Renamed from num_regs.
64815         (rm_start): Renamed from start.
64816         (rm_end): Renamed from end.
64817
64818         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64819         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64820         Prepend __ to parameter names.
64821
64822         Undo yesterday's changes.
64823
64824 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64825
64826         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64827         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64828         lib/regex.c.
64829
64830 2005-08-24  Jim Meyering  <jim@meyering.net>
64831
64832         Sync from coreutils.
64833         * m4/fcntl-safer.m4: New file.
64834
64835         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64836         and object files for this module.
64837
64838 2005-08-24  Jim Meyering  <jim@meyering.net>
64839
64840         Sync from coreutils.
64841         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64842
64843 2005-08-24  Jim Meyering  <jim@meyering.net>
64844
64845         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64846         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64847
64848 2005-08-24  Jim Meyering  <jim@meyering.net>
64849
64850         * modules/fcntl-safer: New module.
64851         * modules/fts (Depends-on): Add fcntl-safer.
64852         * MODULES.html.sh (File descriptor based Input/Output):
64853         Add fcntl-safer.
64854
64855 2005-08-24  Bruno Haible  <bruno@clisp.org>
64856
64857         Support for unit test modules.
64858         * modules/README: Mention tests modules.
64859         * modules/TEMPLATE-TESTS: New file.
64860         * gnulib-tool: New options --extract-tests-module, --with-tests and
64861         --tests-base (unused for the moment).
64862         (testsbase, inctests): New variables.
64863         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64864         (func_verify_module): Exclude TEMPLATE-TESTS.
64865         (func_verify_nontests_module, func_verify_tests_module): New functions.
64866         (func_get_dependencies): Add implicit dependency for tests modules.
64867         (func_get_tests_module): New function.
64868         (func_modules_transitive_closure): When --with-tests was specified,
64869         include the unit tests as well, unless explicitly avoided.
64870         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64871         (func_emit_tests_Makefile_am): New function.
64872         (func_create_testdir): When --with-tests was specified, emit a
64873         tests/ directory.
64874         * MODULES.html.sh (Future developments): Update.
64875
64876 2005-08-24  Bruno Haible  <bruno@clisp.org>
64877
64878         * modules/tls-tests: New file.
64879         * tests/test-tls.c: New file, from GNU gettext.
64880
64881 2005-08-24  Bruno Haible  <bruno@clisp.org>
64882
64883         * modules/lock-tests: New file.
64884         * tests/test-lock.c: New file, from GNU gettext.
64885
64886 2005-08-24  Bruno Haible  <bruno@clisp.org>
64887
64888         * lib/lock.h: Add multiple inclusion guard.
64889         * lib/tls.h: Add multiple inclusion guard.
64890
64891 2005-08-24  Bruno Haible  <bruno@clisp.org>
64892
64893         * gnulib-tool: Add support for the --aux-dir option to
64894         --create-testdir, --create-megatestdir, --test, --megatest.
64895         (func_create_testdir, func_create_megatestdir): Optionally emit a
64896         AC_CONFIG_AUX_DIR directive.
64897         (create-testdir, create-megatestdir, test, megatest): Provide a
64898         default value for $auxdir.
64899
64900 2005-08-24  Bruno Haible  <bruno@clisp.org>
64901
64902         * gnulib-tool (import): Use compound statement instead of subshell
64903         where possible.
64904
64905 2005-08-24  Bruno Haible  <bruno@clisp.org>
64906
64907         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64908
64909 2005-08-24  Bruno Haible  <bruno@clisp.org>
64910
64911         * gnulib-tool (func_version): Update.
64912
64913 2005-08-24  Bruno Haible  <bruno@clisp.org>
64914
64915         * gnulib-tool (func_import, func_create_testdir,
64916         func_create_megatestdir): Quote all autoconf macro arguments.
64917
64918 2005-08-24  Bruno Haible  <bruno@clisp.org>
64919
64920         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64921         option --force, because --force causes the aclocal.m4 of each
64922         subdirectory to be newer than the corresponding config.h.in.
64923
64924 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64927         All contents moved to gl_REGEX.
64928         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64929         assume that it does.
64930
64931 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64932
64933         * lib/regex.h (REG_NOSYS)
64934         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64935         Define, since POSIX requires it as of 2001.
64936         (_REG_ENOSYS)
64937         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64938         New private symbol, used to keep the enum signed in all cases.
64939         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64940         Youngman in
64941         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64942
64943         * lib/regex_internal.c (re_string_skip_chars, register_state):
64944         (calc_state_hash):
64945         Remove forward decls; no longer needed now that we use prototypes.
64946         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64947         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64948         (clean_state_log_if_needed): Likewise.
64949
64950 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64951
64952         * config/srclist.txt: Add glibc bugs 1231-1233.
64953
64954 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64955
64956         Fix problems reported by Sam Steingold in
64957         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64958         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64959         assumed that reg_errcode_t is a signed type, which is not
64960         necessarily true if _XOPEN_SOURCE is not defined.
64961         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64962         since some compilers warn about it otherwise.
64963
64964 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64965
64966         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64967         (init_word_char, create_initial_state, duplicate_node_closure):
64968         (fetch_token, peek_token_bracket, build_range_exp):
64969         (build_collating_symbol): Remove forward decls; no longer needed
64970         now that we use prototypes.
64971
64972         * lib/regcomp.c:
64973         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64974         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64975         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64976         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64977         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64978         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64979         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64980         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64981         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64982         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64983         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64984         (build_charclass, build_charclass_op, fetch_number, create_tree):
64985         (create_token_tree, mark_opt_subexp, duplicate_tree):
64986         Use prototypes rather than old-style definitions.
64987
64988         * lib/regex_internal.c:
64989         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64990         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64991         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64992         (re_string_reconstruct, re_string_peek_byte_case):
64993         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64994         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64995         (re_node_set_init_copy, re_node_set_add_intersect):
64996         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64997         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64998         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64999         (re_acquire_state, re_acquire_state_context, register_state):
65000         (create_ci_newstate, create_cd_newstate, free_state):
65001         Likewise.
65002         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65003         re_search_2):
65004         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65005         (re_search_internal, prune_impossible_nodes):
65006         (acquire_init_state_context, check_matching, static):
65007         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65008         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65009         (update_regs, sift_states_backward, build_sifted_states):
65010         (clean_state_log_if_needed, merge_state_array):
65011         (update_cur_sifted_state, add_epsilon_src_nodes):
65012         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65013         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65014         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65015         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65016         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65017         (check_arrival, check_arrival_add_next_nodes):
65018         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65019         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65020         (check_node_accept_bytes, check_node_accept, extend_buffers):
65021         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65022         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65023         (sift_ctx_init):
65024         Likewise.
65025
65026         * lib/regex_internal.h:
65027         (re_string_allocate, re_string_construct, re_string_reconstruct):
65028         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65029         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65030         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65031         (re_string_context_at, re_string_peek_byte_case):
65032         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65033         is defined, since we now use prototypes always.
65034
65035         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65036         C89 or better.  All uses removed.
65037
65038 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65039
65040         * config/srclist.txt: Add glibc bugs 1220-1227.
65041
65042 2005-08-20  Jim Meyering  <jim@meyering.net>
65043
65044         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65045         of unused local, dfa.
65046
65047 2005-08-20  Bruno Haible  <bruno@clisp.org>
65048
65049         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65050
65051 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65052
65053         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65054         (re_node_set_insert_last, re_dfa_add_node):
65055         Rename local variables to avoid GCC shadowing warnings.
65056
65057 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65060         [defined lint]: Suppress bogus uninitialized-variable warnings.
65061
65062         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65063         and let the caller return REG_ESPACE if out of space.  This
65064         removes an uninitialied-variable warning with GCC 4.0.1, and also
65065         avoids taking the address of a local variable.  All callers
65066         changed.
65067
65068 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65069
65070         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65071         $LIBCSRC/posix/regexec.c.
65072         Add glibc bug 1217 for regcomp.c.
65073
65074 2005-08-19  Jim Meyering  <jim@meyering.net>
65075
65076         * lib/regexec.c (proceed_next_node): Redo local variables to
65077         avoid GCC shadowing warnings.
65078
65079 2005-08-18  Bruno Haible  <bruno@clisp.org>
65080
65081         * lib/strstr.c (strstr): Fix return value in multibyte case.
65082         * lib/strcasestr.c (strcasestr): Likewise.
65083
65084 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65085
65086         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65087
65088 2005-08-17  Jim Meyering  <jim@meyering.net>
65089
65090         Make the %s format (seconds since the epoch) work for a negative
65091         number and when used with a zero-padded field width, e.g. %015s.
65092
65093         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65094         label so that it precedes the code to set `digits'.  Otherwise,
65095         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65096         print `00-22'.  Now, it prints `-0022', as it should.
65097
65098 2005-08-17  Bruno Haible  <bruno@clisp.org>
65099
65100         * modules/strstr (Files): Add m4/mbrtowc.m4.
65101         (Depends-on): Add mbuiter.
65102
65103 2005-08-17  Bruno Haible  <bruno@clisp.org>
65104
65105         * modules/strcasestr: New file.
65106         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65107         strcasestr.
65108
65109 2005-08-17  Bruno Haible  <bruno@clisp.org>
65110
65111         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65112
65113 2005-08-17  Bruno Haible  <bruno@clisp.org>
65114
65115         * modules/mbuiter: New file.
65116         * MODULES.html.sh (Extended multibyte and wide character utilities):
65117         Add mbuiter.
65118
65119 2005-08-17  Bruno Haible  <bruno@clisp.org>
65120
65121         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65122         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65123
65124 2005-08-17  Bruno Haible  <bruno@clisp.org>
65125
65126         * m4/strcasestr.m4: New file.
65127
65128 2005-08-17  Bruno Haible  <bruno@clisp.org>
65129
65130         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65131         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65132
65133 2005-08-17  Bruno Haible  <bruno@clisp.org>
65134
65135         * lib/strcasestr.h: New file.
65136         * lib/strcasestr.c: New file.
65137
65138 2005-08-17  Bruno Haible  <bruno@clisp.org>
65139
65140         * lib/strcasecmp.c: Use mbuiter.h.
65141
65142 2005-08-17  Bruno Haible  <bruno@clisp.org>
65143
65144         * lib/mbuiter.h: New file.
65145
65146 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65147
65148         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65149         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65150         and gl_GETOPT are both invoked via different paths (as happens
65151         with GNU tar CVS because it uses both argp and getopt), the former
65152         wins.
65153
65154 2005-08-16  Bruno Haible  <bruno@clisp.org>
65155
65156         * modules/tls: New file.
65157         * MODULES.html.sh (Multithreading): Add tls.
65158
65159 2005-08-16  Bruno Haible  <bruno@clisp.org>
65160
65161         * modules/strnlen1: New file.
65162         * MODULES.html.sh (String handling): Add strnlen1.
65163
65164 2005-08-16  Bruno Haible  <bruno@clisp.org>
65165
65166         * modules/strcase (Files): Add m4/mbrtowc.m4.
65167         (Depends-on): Add strnlen1, mbchar.
65168
65169 2005-08-16  Bruno Haible  <bruno@clisp.org>
65170
65171         * modules/mbiter: New file.
65172         * MODULES.html.sh (Extended multibyte and wide character utilities):
65173         Add mbiter.
65174
65175 2005-08-16  Bruno Haible  <bruno@clisp.org>
65176
65177         * modules/mbfile: New file.
65178         * MODULES.html.sh (Extended multibyte and wide character utilities):
65179         Add mbfile.
65180
65181 2005-08-16  Bruno Haible  <bruno@clisp.org>
65182
65183         * modules/mbchar: New file.
65184         * MODULES.html.sh (Extended multibyte and wide character utilities):
65185         New section.
65186
65187 2005-08-16  Bruno Haible  <bruno@clisp.org>
65188
65189         * m4/tls.m4: New file, from GNU gettext.
65190
65191 2005-08-16  Bruno Haible  <bruno@clisp.org>
65192
65193         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65194         always.
65195         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65196
65197 2005-08-16  Bruno Haible  <bruno@clisp.org>
65198
65199         * m4/mbiter.m4: New file.
65200
65201 2005-08-16  Bruno Haible  <bruno@clisp.org>
65202
65203         * m4/mbfile.m4: New file.
65204
65205 2005-08-16  Bruno Haible  <bruno@clisp.org>
65206
65207         * m4/mbchar.m4: New file.
65208
65209 2005-08-16  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/tls.h: New file, from GNU gettext.
65212         * lib/tls.c: New file, from GNU gettext.
65213
65214 2005-08-16  Bruno Haible  <bruno@clisp.org>
65215
65216         * lib/strnlen1.h: New file.
65217         * lib/strnlen1.c: New file.
65218
65219 2005-08-16  Bruno Haible  <bruno@clisp.org>
65220
65221         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65222         (mbi_init): Update.
65223         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65224         NUL byte, not after it.
65225
65226 2005-08-16  Bruno Haible  <bruno@clisp.org>
65227
65228         * lib/strcase.h (strcasecmp): Add note in comments.
65229         * lib/strncasecmp.c: Use code from strcasecmp.c.
65230         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65231         (strcasecmp): Work correctly in multibyte locales.
65232
65233 2005-08-16  Bruno Haible  <bruno@clisp.org>
65234
65235         * lib/mbiter.h: New file.
65236
65237 2005-08-16  Bruno Haible  <bruno@clisp.org>
65238
65239         * lib/mbfile.h: New file.
65240
65241 2005-08-16  Bruno Haible  <bruno@clisp.org>
65242
65243         * lib/mbchar.h: New file.
65244         * lib/mbchar.c: New file.
65245
65246 2005-08-16  Bruno Haible  <bruno@clisp.org>
65247
65248         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65249         the valid ones. Makes the comparison operations transitive:
65250         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65251         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65252
65253 2005-08-15  Simon Josefsson  <jas@extundo.com>
65254
65255         * modules/ssize_t (License): Change to 'unlimited'.
65256
65257         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65258
65259 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65260
65261         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65262         Add comments for each pending glibc patch.
65263
65264 2005-08-15  Bruno Haible  <bruno@clisp.org>
65265
65266         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65267         __cplusplus is defined.
65268
65269 2005-08-14  Jim Meyering  <jim@meyering.net>
65270
65271         Sync from coreutils.
65272
65273         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65274         Use the hash-table-based cycle-detection code not just when
65275         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65276         Reported by James Youngman in
65277         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65278         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65279         FTS_TIGHT_CYCLE_CHECK.
65280         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65281         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65282         once again.
65283         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65284         * lib/fts.c (fd_safer): Remove decl.
65285         Include fcntl--.h rather than unistd-safer.h
65286         (fts_safe_changedir): Don't call fd_safer; no longer needed
65287         now that we include fcntl--.h.
65288
65289 2005-08-12  Simon Josefsson  <jas@extundo.com>
65290
65291         * modules/getndelim2: Use ssize_t module.
65292         * modules/getnline: Likewise.
65293         * modules/safe-read: Likewise.
65294         * modules/xreadlink: Likewise.
65295
65296         * modules/ssize_t: New file.
65297
65298 2005-08-12  Simon Josefsson  <jas@extundo.com>
65299
65300         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65301
65302 2005-08-12  Simon Josefsson  <jas@extundo.com>
65303
65304         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65305         ssize_t.
65306
65307 2005-08-12  Simon Josefsson  <jas@extundo.com>
65308
65309         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65310         readline, getdelim and check_version.
65311         (Support for systems lacking ISO C 99: Sizes of integer types):
65312         Add size_max.
65313
65314 2005-08-12  Bruno Haible  <bruno@clisp.org>
65315
65316         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65317
65318 2005-08-11  Simon Josefsson  <jas@extundo.com>
65319
65320         * modules/readline: New file.
65321
65322         * modules/strnlen (Files): Add strnlen.h.
65323
65324 2005-08-11  Simon Josefsson  <jas@extundo.com>
65325
65326         * m4/readline.m4: New file.
65327
65328 2005-08-11  Simon Josefsson  <jas@extundo.com>
65329
65330         * lib/readline.h, readline.c: New file.
65331
65332 2005-08-11  Simon Josefsson  <jas@extundo.com>
65333
65334         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65335         gl_AVOID.
65336
65337 2005-08-11  Bruno Haible  <bruno@clisp.org>
65338
65339         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65340
65341 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
65342
65343         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
65344
65345 2005-08-10  Simon Josefsson  <jas@extundo.com>
65346
65347         * tests/test-iconvme.c: New file.
65348
65349 2005-08-10  Simon Josefsson  <jas@extundo.com>
65350
65351         * m4/strnlen.m4: New file.
65352
65353         * m4/strndup.m4: Don't check for strnlen declaration, done in
65354         strnlen.m4.
65355
65356 2005-08-10  Simon Josefsson  <jas@extundo.com>
65357
65358         * lib/strndup.c: Use strnlen.h.
65359
65360         * lib/strnlen.h: New file.
65361
65362 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65363
65364         * README: Typos.
65365
65366 2005-08-02  Simon Josefsson  <jas@extundo.com>
65367
65368         * modules/readline: New file.
65369
65370 2005-08-02  Simon Josefsson  <jas@extundo.com>
65371
65372         * modules/getdelim: New file.
65373
65374         * modules/getline: Rewrite, don't use getndelim2.
65375
65376 2005-08-02  Simon Josefsson  <jas@extundo.com>
65377
65378         * m4/getline.m4: Separate out getdelim stuff into separate module.
65379
65380         * m4/getdelim.m4: New file.
65381
65382 2005-08-02  Simon Josefsson  <jas@extundo.com>
65383
65384         * lib/getline.h, getline.c: Rewrite.
65385
65386         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
65387
65388 2005-07-31  Bruno Haible  <bruno@clisp.org>
65389
65390         * lib/lock.h (gl_lock_initializer): New macro.
65391         (gl_lock_define_initialized): Use it.
65392         (gl_rwlock_initializer): New macro.
65393         (gl_rwlock_define_initialized): Use it.
65394         (gl_recursive_lock_initializer): New macro.
65395         (gl_recursive_lock_define_initialized): Use it.
65396
65397 2005-07-30  Karl Berry  <karl@gnu.org>
65398
65399         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
65400         Report from Ben Pfaff, regarding getopt.
65401
65402 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
65403
65404         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
65405         normal way.
65406         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
65407         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
65408         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
65409         (gl_GETOPT): Use the new macros.  Most of the implementation
65410         is moved to the new macros.  This is for programs like Emacs
65411         that don't want all the functionality of gl_GETOPT.
65412
65413 2005-07-26  Bruno Haible  <bruno@clisp.org>
65414
65415         * m4/lock.m4: Update from GNU gettext.
65416
65417 2005-07-26  Bruno Haible  <bruno@clisp.org>
65418
65419         * lib/lock.h: Update from GNU gettext.
65420         * lib/lock.c: Update from GNU gettext.
65421
65422 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
65423
65424         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
65425         obsolescent AC_TRY_RUN.  Include the default includes files, for
65426         'exit'.
65427
65428 2005-07-24  Bruno Haible  <bruno@clisp.org>
65429
65430         * modules/visibility: New file.
65431         * MODULES.html.sh (Misc): Add visibility.
65432
65433 2005-07-24  Bruno Haible  <bruno@clisp.org>
65434
65435         * m4/visibility.m4: New file.
65436
65437 2005-07-24  Bruno Haible  <bruno@clisp.org>
65438
65439         * doc/visibility.texi: New file.
65440
65441 2005-07-22  Bruno Haible  <bruno@clisp.org>
65442
65443         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
65444         $(ALLOCA_H), redundant through BUILT_SOURCES.
65445         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
65446         redundant through BUILT_SOURCES.
65447         * modules/byteswap (Makefile.am): Remove explicit dependency on
65448         $(BYTESWAP_H), redundant through BUILT_SOURCES.
65449         * modules/fnmatch (Makefile.am): Remove explicit dependency on
65450         $(FNMATCH_H), redundant through BUILT_SOURCES.
65451         * modules/getopt (Makefile.am): Remove explicit dependency on
65452         $(GETOPT_H), redundant through BUILT_SOURCES.
65453         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
65454         redundant through BUILT_SOURCES.
65455         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
65456         redundant through BUILT_SOURCES.
65457         * modules/stdbool (Makefile.am): Remove explicit dependency on
65458         $(STDBOOL_H), redundant through BUILT_SOURCES.
65459         * modules/stdint (Makefile.am): Remove explicit dependency on
65460         $(STDINT_H), redundant through BUILT_SOURCES.
65461         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
65462         Remove explicit dependency on $(SYSEXITS_H).
65463         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
65464
65465 2005-07-18  Simon Josefsson  <jas@extundo.com>
65466
65467         * lib/check-version.c (check_version): Accept identical versions too.
65468
65469 2005-07-18  Bruno Haible  <bruno@clisp.org>
65470
65471         * modules/lock: New file.
65472         * MODULES.html.sh (Multithreading): New section.
65473
65474 2005-07-18  Bruno Haible  <bruno@clisp.org>
65475
65476         * m4/lock.m4: New file, from GNU gettext.
65477
65478 2005-07-18  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/lock.h: New file, from GNU gettext.
65481         * lib/lock.c: New file, from GNU gettext.
65482
65483 2005-07-18  Bruno Haible  <bruno@clisp.org>
65484
65485         * lib/lock.h (gl_once_t): New type.
65486         (gl_once_define, gl_once): New macros.
65487         * lib/lock.c (fresh_once): New variable.
65488         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
65489         functions.
65490
65491 2005-07-16  Simon Josefsson  <jas@extundo.com>
65492
65493         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
65494         workaround, suggested by Bruno.
65495
65496 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65497
65498         * modules/xalloc (Depends-on): Add xalloc-die.
65499         * modules/xvasprintf (Depends-on): Add xalloc-die.
65500
65501 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65502
65503         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
65504         with a minor change.
65505
65506 2005-07-15  Bruno Haible  <bruno@clisp.org>
65507
65508         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
65509         When using lib/poll.c, define poll as rpl_poll.
65510
65511 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
65512
65513         * modules/argp (Depends-on): Remove unlocked-io.
65514
65515 2005-07-14  Derek Price  <derek@ximbiot.com>
65516
65517         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
65518         for glob symlink bug.
65519
65520 2005-07-14  Bruno Haible  <bruno@clisp.org>
65521
65522         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
65523         Instead, test for *_unlocked function declarations directly.
65524
65525 2005-07-11  Simon Josefsson  <jas@extundo.com>
65526
65527         * modules/size_max: New file.
65528
65529         * modules/xsize: Depend on size_max module for size_max.m4.
65530
65531 2005-07-11  Simon Josefsson  <jas@extundo.com>
65532
65533         * lib/size_max.h: New file.
65534
65535 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
65538         copyright symbol and the year.
65539         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
65540         (version_etc_va): Use parameterized copyright notice.
65541         Reword to conform to the current GNU coding standards.
65542
65543 2005-07-11  Karl Berry  <karl@gnu.org>
65544
65545         * doc/gnulib.texi (Quoting): new node.
65546         (Initial import): more info, from Patrice.
65547
65548 2005-07-11  Bruno Haible  <bruno@clisp.org>
65549
65550         * gnulib-tool (func_usage): Document option --avoid.
65551         (Command line options): Handle --avoid.
65552         (func_acceptable): New function.
65553         (func_modules_transitive_closure): Use it.
65554
65555 2005-07-11  Bruno Haible  <bruno@clisp.org>
65556
65557         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65558         Reported by Jim Meyering.
65559
65560 2005-07-10  Bruno Haible  <bruno@clisp.org>
65561
65562         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65563         Needed when size_t is smaller than 'unsigned int'.
65564         Reported by Paul Eggert.
65565
65566 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65567
65568         * modules/argp (Depends-on): Add unlocked-io
65569
65570 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65571
65572         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65573         block of defines.
65574
65575 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65576
65577         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65578         fix now.
65579
65580 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65581         and Paul Eggert  <eggert@cs.ucla.edu>
65582
65583         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65584         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65585
65586 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65587
65588         * modules/regex (Files): Add lib/regex_internal.c,
65589         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65590         (Depends-on): Add extensions.
65591         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65592
65593 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65596         pathconf.
65597         * m4/same.m4 (gl_SAME): Likewise.
65598         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65599
65600         * m4/regex.m4: Adjust to new libc regex implementation.
65601         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65602         all the .c and .h parts of (the new) regex.
65603         Quote the m4 stuff better.
65604         Check for RE_ICASE bug of old gnulib.
65605         Check for REG_STARTEND of recent libc.
65606         Rename local variables from jm_* to gl_*.
65607         Quote operand of "test -f".
65608         Say "recent enough" version of libc, not "version 2".
65609         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65610         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65611         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65612         Remove check for btowc, isascii.
65613         Require AM_LANGINFO_CODESET.
65614
65615 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65616
65617         * lib/regex.c, regex.h: Sync from libc.
65618         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65619         * lib/regexec.c:
65620         New files, synced from libc, except that regex_internal.h
65621         currently has a small porting fix.
65622
65623 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65626         regex_internal.c, regexec.c.
65627         Add regex_internal.h too, but as a comment, since the libc version
65628         is currently broken in gnulib mode.
65629
65630 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65631
65632         Support programs like Emacs that use gnulib but not gettext.
65633         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65634         * modules/gettext-h: New file.
65635         * modules/gettext (Files): Remove lib/gettext.h.
65636         (Depends-on): Add gettext-h.
65637         (Makefile.am): Remove lib_SOURCES.
65638         * modules/argmatch, modules/c-stack, modules/closeout:
65639         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65640         * modules/execute, modules/file-type, modules/getaddrinfo:
65641         * modules/getopt, modules/human, modules/javacomp:
65642         * modules/javaexec, modules/mkdir-p, modules/obstack:
65643         * modules/openat, modules/pagealign_alloc, modules/pipe:
65644         * modules/quotearg, modules/regex, modules/rpmatch:
65645         * modules/unicodeio, modules/userspec, modules/version-etc:
65646         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65647         * modules/xsetenv:
65648         Depend on gettext-h, not gettext.
65649
65650 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         * gnulib-tool (func_import): Add support for 'public domain' license.
65653         * modules/alloca, modules/atexit, modules/memmove:
65654         Now public domain, not GPL.
65655         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65656         * modules/realloc, modules/strerror, modules/strtod:
65657         Now LGPL, not GPL.
65658
65659 2005-07-05  Bruno Haible  <bruno@clisp.org>
65660
65661         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65662         autoconf CVS. Needed for mingw.
65663
65664 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65665
65666         Remove the dependency of the strftime module on the tzset module.
65667         * modules/strftime (Depends-on): Remove dependency on tzset.
65668
65669 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65670
65671         Remove the dependency of the strftime module on the tzset module.
65672         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65673         gl_FUNC_TZSET_CLOBBER.
65674
65675 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65676
65677         Remove the dependency of the strftime module on the tzset module.
65678         * lib/strftime.c (my_strftime)
65679         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65680         Copy the input structure, to work around some of the bug with
65681         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65682         Solaris releases, you should also use the tzset module, but we won't
65683         require it as a dependency any more since we don't want LGPLed code
65684         to depend on GPLed code.
65685
65686 2005-07-02  Jim Meyering  <jim@meyering.net>
65687
65688         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65689         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65690         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65691         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65692
65693 2005-07-02  Jim Meyering  <jim@meyering.net>
65694
65695         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65696
65697 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65700         declares only 'struct timespec;' (!).
65701
65702 2005-07-01  Jim Meyering  <jim@meyering.net>
65703
65704         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65705         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65706         * lib/save-cwd.c, tempname.c:
65707         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65708         and don't include <sys/file.h>).
65709
65710 2005-06-29  Jim Meyering  <jim@meyering.net>
65711
65712         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65713         type name.  Use the variable name instead.
65714         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65715         Likewise.
65716
65717 2005-06-28  Simon Josefsson  <jas@extundo.com>
65718
65719         * modules/check-version (Files): Add check-version.m4.
65720
65721 2005-06-28  Simon Josefsson  <jas@extundo.com>
65722
65723         * m4/check-version.m4: New file, suggested by Jim Meyering
65724         <jim@meyering.net>.
65725
65726 2005-06-28  Simon Josefsson  <jas@extundo.com>
65727
65728         * lib/check-version.h, lib/check-version.c: New files.
65729
65730 2005-06-28  Simon Josefsson  <jas@extundo.com>
65731
65732         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65733         collision with global variable.  Better indentation.  Don't
65734         increment buffer pointer beyond buffer end.  Based on comments
65735         from Paul Eggert <eggert@cs.ucla.edu>.
65736
65737         * lib/base64.h: Indent.
65738
65739 2005-06-28  Simon Josefsson  <jas@extundo.com>
65740
65741         * doc/gnulib.texi (Library version handling): New section.
65742
65743 2005-06-28  Jim Meyering  <jim@meyering.net>
65744
65745         * check-module (find_included_lib_files): Hard-code another
65746         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65747         but modules/fts-lgpl (correctly) does not list those files.
65748
65749         * modules/canonicalize (Files): Add lib/pathmax.h.
65750
65751 2005-06-25  Simon Josefsson  <jas@extundo.com>
65752
65753         * modules/check-version: New file.
65754
65755 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65758         initializer of struct addrinfo, as an indication that we don't
65759         care how many members the structure has.
65760
65761 2005-06-24  Derek Price  <derek@ximbiot.com>
65762         and Bruno Haible  <bruno@clisp.org>
65763
65764         Remove stat module & update lstat.
65765         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65766         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65767         * m4/stat.m4: Remove this file.
65768
65769 2005-06-24  Derek Price  <derek@ximbiot.com>
65770         and Bruno Haible  <bruno@clisp.org>
65771
65772         Remove stat module & update lstat.
65773         * lib/stat.c: Remove this file...
65774         (slash_aware_lstat): ...moving this content and its support...
65775         * lib/lstat.c (rpl_lstat): ...into here.
65776         * lib/lstat.h: New file.
65777
65778 2005-06-24  Derek Price  <derek@ximbiot.com>
65779         and Bruno Haible  <bruno@clisp.org>
65780
65781         Remove stat module & update lstat.
65782         * config/srclist.txt (libc sources): Remove stat.
65783
65784 2005-06-24  Derek Price  <derek@ximbiot.com>
65785         and Bruno Haible  <bruno@clisp.org>
65786
65787         Remove stat module & update lstat.
65788         * MODULES.html.sh (stat): Remove.
65789         * MODULES.html: Regenerated.
65790         * modules/lstat (Description): Correct function name.
65791         (Files): Add "lstat.h".
65792         (Depends-on): Remove stat, add xalloc, stat-macros.
65793         * modules/stat: Remove this file.
65794         (Include): Add "lstat.h", remove <sys/stat.h>.
65795
65796 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65797
65798         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65799         (ranged_convert): Don't save conversion in a temporary struct.
65800         This causes a warning with GCC 4.0.0, and anyway in the typical
65801         case it's not worth the extra 100 bytes or so of code.
65802         (ranged_convert, __mktime_internal): When calling a function via a
65803         pointer P, use P () rather than (*P) (), as we now assume C89 or
65804         better.
65805
65806 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65809         "who -r" failed to give output.  Problem reported by Tim Waugh.
65810
65811         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65812         (xcalloc): Use it to avoid needless tests.
65813         Problem reported by Jim Meyering.
65814
65815 2005-06-20  Derek Price  <derek@ximbiot.com>
65816
65817         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65818         unnecessary for Autoconfs > 2.59c.
65819
65820 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65821
65822         * lib/argp.h (__option_is_short): Check upper limit of
65823         __key. Isprint() requires its argument to have the value
65824         of an unsigned char or EOF.
65825
65826 2005-06-16  Jim Meyering  <jim@meyering.net>
65827
65828         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65829         when either N or S is zero.
65830
65831 2005-06-16  Derek Price  <derek@ximbiot.com>
65832
65833         * m4/bison.m4: Declare YACC & YFLAGS precious.
65834
65835 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65836
65837         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65838         multibyte string or pattern, fall back on unibyte matching.
65839         Problem reported by James Youngman.
65840
65841 2005-06-08  Bruno Haible  <bruno@clisp.org>
65842
65843         * modules/csharpcomp: New file.
65844         * MODULES.html.sh (C#): Add csharpcomp.
65845
65846 2005-06-08  Bruno Haible  <bruno@clisp.org>
65847
65848         * m4/csharpcomp.m4: New file, from GNU gettext.
65849
65850 2005-06-08  Bruno Haible  <bruno@clisp.org>
65851
65852         * lib/csharpcomp.h: New file, from GNU gettext.
65853         * lib/csharpcomp.c: New file, from GNU gettext.
65854         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65855
65856 2005-06-08  Bruno Haible  <bruno@clisp.org>
65857
65858         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65859         warning on mingw.
65860
65861 2005-06-07  Derek Price  <derek@ximbiot.com>
65862
65863         Sync from CVS.
65864         * lib/glob_.h: Indent nested #ifdef.
65865
65866 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65867
65868         Sync from coreutils.
65869         Use "file name" when talking about file names, instead of "filename"
65870         or "path", as per the GNU coding standards.
65871         * lib/mkdir-p.c: Renamed from makepath.c.
65872         (make_dir_parents): Renamed from make_path.  All callers changed.
65873         * lib/mkdir-p.h: Likewise.  All includers changed.
65874         * lib/filenamecat.c: Renamed from path-concat.c.
65875         (file_name_concat): Renamed from path_concat.  All callers changed.
65876         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65877         * lib/filenamecat.h: Likewise.  All includers changed.
65878         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65879         in comments or local variable names.
65880         * lib/basename.c: Likewise.
65881         * lib/canonicalize.c, canonicalize.h: Likewise.
65882         * lib/dirname.c, dirname.h: Likewise.
65883         * lib/euidaccess.c: Likewise.
65884         * lib/exclude.c: Likewise
65885         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65886         * lib/fsusage.c, fsuage.h: Likewise.
65887         * lib/fts.c, fts_.h: Likewise.
65888         * lib/getcwd.c: Likewise.
65889         * lib/getloadavg.c: Likewise.
65890         * lib/mkstemp.c: Likewise.
65891         * lib/mountlist.c, mountlist.h: Likewise.
65892         * lib/openat.c, openat.h: Likewise.
65893         * lib/readlink-stub.c: Likewise.
65894         * lib/readutmp.c, readutmp.h: Likewise.
65895         * lib/rename.c: Likewise.
65896         * lib/rmdir.c: Likewise.
65897         * lib/same.c: Likewise.
65898         * lib/savedir.c: Likewise.
65899         * lib/stripslash.c: Likewise.
65900         * lib/tempname.c: Likewise.
65901         * lib/xreadlink.c: Likewise.
65902         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65903         All uses changed.
65904         * lib/exclude.h: Likewise.
65905
65906         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65907         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65908         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65909         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65910         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65911         files have been getting away with it for years (MORE/BSD 4.3
65912         is extinct now).
65913         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65914         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65915
65916         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65917         Define to 256, not 255, as per modern POSIX.
65918
65919 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65920
65921         Sync from coreutils.
65922         Use "file name" when talking about file names, instead of "filename"
65923         or "path", as per the GNU coding standards.
65924         * MODULES.html.sh: mkdir-p renamed from makepath.
65925         filenamecat renamed from path-concat.
65926         * modules/filenamecat: Renamed from modules/path-concat.
65927         (Files): filenamecat.h and filenamecat.c renamed from
65928         path-concat.h and path-concat.c.
65929         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65930         (Include): filenamecat.h, not path-concat.h.
65931         * modules/mkdir-p: Renamed from modules/makepath.
65932         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65933         makepath.c.
65934         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65935         (Include): mkdir-p.h, not makepath.h.
65936
65937 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65938
65939         Sync from coreutils.
65940         * m4/mkdir-p.m4: Renamed from makepath.m4.
65941         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65942         Rename files from makepath.c to mkdir-p.c, and from
65943         makepath.h to mkdir-p.h.
65944         * m4/filenamecat.m4: Renamed from path-concat.m4.
65945         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65946         Rename files from path-concat.c to filenamecat.c,
65947         and from path-concat.h to filenamecat.h.
65948         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65949         "file name" in local variables or comments.
65950         * m4/rename.m4: Likewise.
65951
65952 2005-06-01  Bruno Haible  <bruno@clisp.org>
65953
65954         * modules/csharpexec: New file.
65955         * MODULES.html.sh (C#): New section.
65956
65957 2005-06-01  Bruno Haible  <bruno@clisp.org>
65958
65959         * m4/csharp.m4: New file, from GNU gettext.
65960         * m4/csharpexec.m4: New file, from GNU gettext.
65961
65962 2005-06-01  Bruno Haible  <bruno@clisp.org>
65963
65964         * lib/csharpexec.h: New file, from GNU gettext.
65965         * lib/csharpexec.c: New file, from GNU gettext.
65966         * lib/csharpexec.sh.in: New file, from GNU gettext.
65967
65968 2005-05-31  Derek Price  <derek@ximbiot.com>
65969             Paul Eggert  <eggert@cs.ucla.edu>
65970
65971         Sync from cvs.
65972         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65973
65974 2005-05-31  Derek Price  <derek@ximbiot.com>
65975             Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         Sync from cvs.
65978         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65979
65980 2005-05-29  Derek Price  <derek@ximbiot.com>
65981
65982         * config/srclist.txt (glob_.h, glob.c): Add these files.
65983
65984 2005-05-29  Derek Price  <derek@ximbiot.com>
65985
65986         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65987         * modules/glob: New file.
65988         * modules/getlogin_r: Add link to POSIX spec in description.
65989
65990 2005-05-29  Derek Price  <derek@ximbiot.com>
65991             Paul Eggert  <eggert@cs.ucla.edu>
65992
65993         * m4/glob.m4: New file.
65994
65995 2005-05-29  Derek Price  <derek@ximbiot.com>
65996             Paul Eggert  <eggert@cs.ucla.edu>
65997
65998         * lib/glob_.h, lib/glob.c: New files.
65999
66000 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66001
66002         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66003         * modules/fts-lgpl (Depends-on): Remove gettext.
66004
66005 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66006
66007         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66008         and don't require gt_INTTYPES_PRI.
66009
66010 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66011
66012         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66013
66014         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66015         the configuration hassle isn't worth it.
66016         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66017         (LONGEST_MODIFIER, PRIuMAX): Remove.
66018
66019 2005-05-27  Bruno Haible  <bruno@clisp.org>
66020
66021         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66022
66023 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66024
66025         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66026         _POSIX_PTHREAD_SEMANTICS for Solaris.
66027
66028 2005-05-25  Derek Price  <derek@ximbiot.com>
66029
66030         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66031
66032 2005-05-25  Derek Price  <derek@ximbiot.com>
66033             Paul Eggert  <eggert@cs.ucla.edu>
66034
66035         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66036         * lib/getlogin_r.c, getlogin_r.h: New files.
66037
66038 2005-05-25  Bruno Haible  <bruno@clisp.org>
66039             Derek Price  <derek@ximbiot.com>
66040
66041         * lib/getlogin_r.h: Simplify API documentation.
66042
66043 2005-05-23  Derek Price  <derek@ximbiot.com>
66044
66045         * modules/minmax (Files): Add m4/minmax.m4.
66046         (configure.ac): Add gl_MINMAX.
66047
66048 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66049
66050         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66051         so that unistd-safer.h (GPL'ed code) need not be included.
66052
66053 2005-05-22  Bruno Haible  <bruno@clisp.org>
66054
66055         * m4/minmax.m4: New file.
66056         Based on a patch by Derek Price <derek@ximbiot.com>.
66057
66058 2005-05-22  Bruno Haible  <bruno@clisp.org>
66059
66060         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66061         (INT64_MIN): Fix definition.
66062         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66063
66064         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66065         NEED_SIGNED_INT_TYPES.
66066
66067         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66068         HAVE_SYSTEM_INTTYPES.
66069
66070 2005-05-22  Bruno Haible  <bruno@clisp.org>
66071
66072         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66073         Also include <sys/param.h> if it defines MIN, MAX.
66074         Based on a patch by Derek Price <derek@ximbiot.com>.
66075
66076 2005-05-21  Jim Meyering  <jim@meyering.net>
66077
66078         * modules/fts (Files): Add m4/inttypes-pri.m4.
66079         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66080
66081 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66082
66083         New fts module.
66084         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66085         (setup_dir, free_dir): New functions.
66086         (enter_dir, leave_dir): Define trivial
66087         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66088         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66089         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66090         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66091         Move to fts-cycle.c.
66092         (fts_open): Use setup_dir.
66093         (fts_close): Use free_dir.
66094         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66095         This adds a label and some gotos, but the alternatives were messier.
66096         Check for memory allocation failure when entering a dir.
66097         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66098         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66099         (FTS): New member fts_cycle, that is a union that contains the
66100         old active_dir_ht and cycle_state.  All uses changed to mention
66101         fts_cycle.ht and fts_cycle.state.
66102         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66103         fts.c, with the following changes:
66104         (setup_dir, free_dir): New functions.
66105         (enter_dir): Now returns bool.  Return true if successful, false
66106         if memory exhausted.  All callers changed.
66107         Do not bother partly cleaning up on
66108         memory allocation failure; that is free_dir's job.
66109         However, free ad if hash_insert fails, to avoid memory leak.
66110         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66111         fts->fts_options to see which union member to use.
66112
66113 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66114
66115         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66116         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66117
66118 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66119
66120         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66121
66122 2005-05-20  Jim Meyering  <jim@meyering.net>
66123
66124         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66125         Now a macro, to pacify GCC.
66126
66127 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66128
66129         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66130         of -1.
66131
66132 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66133
66134         * lib/chown.c (rpl_chown): Return -1 on failure.
66135
66136 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66137
66138         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66139         Don't check for stddef.h.
66140         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66141         don't use its results.
66142         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66143         since we include them unconditionally.  Don't require
66144         AM_STDBOOL_H, since stdbool is a prerequisite.
66145         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66146         since we assume C89 or better.
66147         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66148         as we don't use their results.
66149         Don't check for fchdir, memmove, memset, strrchr, as we use
66150         them unconditionally.
66151         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66152         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66153
66154 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66155
66156         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66157         Include <stddef.h> unconditionally, since we assume C89 now.
66158         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66159         * lib/fts.c: Include fts_.h first, to check interface.
66160         Do not include intprops.h; no longer needed.
66161         Include cycle-check.h and hash.h, since fts_.h no longer does.
66162         Remove unnecessary casts of closedir to void.
66163         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66164         decide whether to decrement nlinks.
66165         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66166         (FTS): Use struct hash_table * instead of Hash_table, so that
66167         we no longer need to include hash.h here.
66168
66169 2005-05-18  Jim Meyering  <jim@meyering.net>
66170
66171         * modules/dirfd (License): Change to LGPL.  Most of the code
66172         is already in the public domain.
66173
66174 2005-05-18  Jim Meyering  <jim@meyering.net>
66175
66176         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66177         Reported by Yoann Vandoorselaere.
66178
66179 2005-05-17  Jim Meyering  <jim@meyering.net>
66180
66181         * m4/fts.m4: New file, from coreutils.
66182
66183 2005-05-17  Jim Meyering  <jim@meyering.net>
66184
66185         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66186
66187 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66188
66189         Sync from coreutils.
66190         * m4/unlinkdir.m4: New file.
66191
66192 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66193
66194         Sync from coreutils.
66195         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66196         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66197         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66198         White space changes only.
66199         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66200         special.
66201         * lib/yesno.c: Include getline.h, not ctype.h.
66202         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66203         Use getline to remove arbitrary restriction on response length.
66204
66205 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66206
66207         * config/srclist-update: Spell out "Street" in FSF postal
66208         mail address; this is the style the FSF seems to prefer.
66209
66210         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66211         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66212         this updates FSF postal mail address.
66213
66214         Sync from coreutils.
66215         * modules/unlinkdir: New file.
66216         * modules/yesno (Depends-on): Add getline.
66217         * MODULES.html.sh (File system functions): Add unlinkdir.
66218
66219 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66220
66221         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66222         lib/strsep.h:
66223         Change the initial comment to refer to GPL, not LGPL.
66224         gnulib-tool will change it to LGPL as needed.
66225
66226         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66227         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66228         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66229         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66230         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66231         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66232         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66233         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66234         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66235         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66236         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66237         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66238         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66239         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66240         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66241         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66242         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66243         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66244         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66245         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66246         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66247         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66248         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66249         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66250         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66251         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66252         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66253         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66254         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66255         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66256         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66257         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66258         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66259         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66260         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66261         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66262         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66263         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66264         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66265         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66266         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66267         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66268         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66269         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66270         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66271         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66272         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66273         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66274         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66275         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66276         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66277         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66278         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66279         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66280         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66281         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66282         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66283         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66284         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66285         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66286         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66287         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66288         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66289         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66290         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66291         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66292         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66293         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66294         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66295         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66296         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66297         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66298         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66299         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66300         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66301         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66302         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66303         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66304         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66305         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66306         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66307         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66308         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66309         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66310         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66311         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66312         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66313         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66314         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66315         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66316         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66317         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66318         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66319         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66320         lib/yesno.c, lib/yesno.h:
66321         Update FSF postal mail address.
66322
66323 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66326         tests/test-memmem.c, tests/test-stpncpy.c:
66327         Update FSF postal mail address.
66328
66329 2005-05-13  Bruno Haible  <bruno@clisp.org>
66330
66331         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66332         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66333         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66334         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66335         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66336         Add support for 64-bit integers in the MSVC compiler.
66337
66338 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66339
66340         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
66341
66342 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
66343
66344         * gnulib-tool (func_import): Sort and uniquify recommended includes.
66345
66346 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
66347
66348         * doc/getdate.texi (General date syntax): Don't say that date
66349         date --iso-8601=ns generates acceptable dates; it doesn't yet.
66350         Problem reported by Nic Ferrier.
66351
66352 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66353
66354         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
66355         specified in ai_socktype. Fix invalid ai_protocol
66356         check. ai_protocol is usually set to 0 or depending on
66357         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
66358         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
66359         ai_socktype / ai_protocol in the returned addrinfo structure.
66360
66361 2005-05-10  Simon Josefsson  <jas@extundo.com>
66362
66363         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
66364         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66365
66366 2005-05-10  Karl Berry  <karl@gnu.org>
66367
66368         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
66369         (from http://www.gnu.org/licenses).
66370         * doc/COPYING.LIB: also rename to COPYING.LESSER.
66371         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
66372         fdl.texi suffices.
66373
66374 2005-05-10  Karl Berry  <karl@gnu.org>
66375
66376         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
66377         (COPYING.DOC): remove.
66378
66379         * config/srclist-update: new FSF address.
66380
66381 2005-05-10  Derek Price  <derek@ximbiot.com>
66382
66383         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
66384         possible.
66385
66386 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66387             Bruno Haible  <bruno@clisp.org>
66388
66389         * modules/inet_ntop: New file.
66390         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66391         inet_ntop.
66392
66393 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66394             Bruno Haible  <bruno@clisp.org>
66395
66396         * m4/inet_ntop.m4: New file.
66397
66398 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66399             Bruno Haible  <bruno@clisp.org>
66400
66401         * lib/inet_ntop.h: New file.
66402         * lib/inet_ntop.c: New file, from glibc with modifications.
66403
66404 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
66405
66406         * modules/time_r (License): Change to LGPL.
66407         * modules/extensions (License): Change to LGPL.  Actually,
66408         the license is more permissive than that, but currently gnulib-tool
66409         doesn't know how to handle more-permissive licenses.
66410
66411         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
66412         Problem reported by Dave Love.
66413
66414 2005-05-08  Jim Meyering  <jim@meyering.net>
66415
66416         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
66417         blank.
66418
66419 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66420
66421         * modules/argmatch (Depends-on): Add stdbool.
66422         * modules/backupfile (Depends-on): Likewise.
66423         * modules/chdir-long (Depends-on): Likewise.
66424         * modules/closeout (Depends-on): Likewise.
66425         * modules/cycle-check (Depends-on): Likewise.
66426         * modules/dirname (Depends-on): Likewise.
66427         * modules/fnmatch (Depends-on): Likewise.
66428         * modules/fsusage (Depends-on): Likewise.
66429         * modules/fwriteerror (Depends-on): Likewise.
66430         * modules/getcwd (Depends-on): Likewise.
66431         * modules/getloadavg (Depends-on): Likewise.
66432         * modules/hard-locale (Depends-on): Likewise.
66433         * modules/makepath (Depends-on): Likewise.
66434         * modules/mountlist (Depends-on): Likewise.
66435         * modules/nanosleep (Depends-on): Likewise.
66436         * modules/posixtm (Depends-on): Likewise.
66437         * modules/quotearg (Depends-on): Likewise.
66438         * modules/readtokens (Depends-on): Likewise.
66439         * modules/readtokens0 (Depends-on): Likewise.
66440         * modules/readutmp (Depends-on): Likewise.
66441         * modules/save-cwd (Depends-on): Likewise.
66442         * modules/strftime (Depends-on): Likewise.
66443         * modules/userspec (Depends-on): Likewise.
66444         * modules/utimecmp (Depends-on): Likewise.
66445         * modules/xgetcwd (Depends-on): Likewise.
66446         * modules/xnanosleep (Depends-on): Likewise.
66447         * modules/xstrtod (Depends-on): Likewise.
66448         * modules/yesno (Depends-on): Likewise.
66449
66450 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66451
66452         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
66453         needless checks.
66454
66455 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66456
66457         Merge from coreutils.  Among other things,
66458         add bulletproofing for cases where stdin, stdout, or stderr are closed.
66459         * lib/fd-safer.c: New file.
66460         * lib/fcntl-safer.h, open-safer.c: Remove.
66461         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
66462         * lib/dup-safer.c: Include unistd-safer.h first.
66463         Don't include errno.h.
66464         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
66465         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
66466         * lib/file-type.c: Rely on file-type.h change.
66467         * lib/getloadavg.c: Include unistd-safer.h.
66468         (getloadavg): Use safer open.
66469         * lib/getusershell.c: Include "stdio-safer.h".
66470         (getusershell): Use safer fopen.
66471         * lib/long-options.c (long_options): Use NULL rather than 0.
66472         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
66473         'free'.
66474         * lib/modechange.c: Likewise.
66475         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
66476         (MODE_DONE): New constant.
66477         (struct mode_change): Remove 'next' member.
66478         (make_node_op_equals): New function; like the old one of the
66479         same name, except it allocates an array.
66480         (mode_compile, mode_create_from_ref): Use it.
66481         (mode_compile): Allocate result as an array, not a linked list.
66482         Parse octal string ourself, so that we catch mistakes like "+0".
66483         (mode_adjust): Arg is an array, not a linked list.
66484         * lib/modechange.c: Include stat-macros.h, xalloc.h.
66485         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
66486         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
66487         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
66488         Remove.  This is now stat-macros.h's job.
66489         (talloc): Remove.  All callers replaced by xalloc, so that
66490         our invokers don't have to worry about reporting memory failures.
66491         (make_node_op_equals): Remove.
66492         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66493         New constants.
66494         (struct mode_change): Moved here from modechange.h.
66495         (mode_append_entry): Remove.
66496         (mode_compile): Remove MASKED_OPS arg, since it encouraged
66497         apps to have incorrect behavior.  Use simpler algorithm for head
66498         and tail.  Don't futz with umask; that's now the job of mode_adjust.
66499         Detect more invalid usages rather than having somewhat-random behavior.
66500         Don't insert an "a=" action, as that leads to incorrect behavior.
66501         (mode_compile, mode_create_from_ref): Return NULL on error instead
66502         of an enum, since now there's only one way to have an error.  All
66503         callers changed.
66504         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
66505         at the correct time.  Simplify calculation of "+u" and its ilk.
66506         Don't mishandle "+X".
66507         (mode_free): Remove "register" and localize decls.
66508         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66509         (struct mode_change): Move to modechange.c; callers don't
66510         need to see this stuff.
66511         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
66512         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
66513         (mode_change, mode_adjust): Reflect the new signatures noted above.
66514         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
66515         that might redefine system include files.
66516         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
66517         (my_usleep): Use NULL rather than (void *) 0.
66518         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
66519         Use siginterrupt to specify that system calls should be interrupted.
66520         (rpl_nanosleep): Move initialization of suspended closer to call of
66521         my_usleep.
66522         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
66523         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
66524         (desirable_utmp_entry): New function.
66525         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
66526         using x2nrealloc, to simplify logic.
66527         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
66528         size calculation.  Do not assume utmp file is a regular file.
66529         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
66530         (READ_UTMP_CHECK_PIDS): New constant.
66531         * lib/save-cwd.c: Include unistd-safer.h.
66532         (save_cwd): Use fd_safer.
66533         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
66534         [!_LIBC] Include "stat-macros.h" instead.
66535         * lib/unistd-safer.h (fd_safer): New decl.
66536
66537 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66538
66539         * modules/getloadavg (Depends-on): Add unistd-safer.
66540         * modules/getusershell (Depends-on): Add stdio-safer.
66541         * modules/lstat (Depends-on): Remove xalloc.
66542         * modules/mkstemp (Depends-on): Add stat-macros.
66543         * modules/modechange (Depends-on): Remove xstrtol.
66544         Add stat-macros, xalloc.
66545         * modules/save-cwd (Depends-on): Add unistd-safer.
66546         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
66547         * modules/unistd-safer (Files): Add lib/fd-safer.c
66548         (Makefile.am): Remove lib_SOURCES.
66549
66550         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
66551         Remove fcntl-safer; unistd-safer supersedes it.
66552
66553 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66556         AC_HEADER_STAT.
66557         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66558         (gl_PREREQ_CHOWN): Remove.
66559         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66560         it.  Don't require AC_HEADER_STAT.
66561         (gl_PREREQ_LSTAT): Remove.
66562         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66563         Don't require AC_HEADER_STAT.
66564         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66565         (gl_PREREQ_RMDIR): Remove.
66566         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66567         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66568         the stat-macros module a prerequisite.
66569         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66570         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66571         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66572         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66573         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66574         variable names.
66575         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66576         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66577         variable prefixes.
66578         * m4/fcntl-safer.m4: Remove.
66579         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66580         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66581         Invoke gl_PREREQ_FD_SAFER.
66582         (gl_PREREQ_FD_SAFER): New macro.
66583         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66584         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66585         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66586         Remove duplicate call to AC_LIBOBJ(readutmp).
66587         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66588
66589         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66590         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66591
66592 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66593
66594         * MODULES.html.sh (Misc): Add byteswap.
66595
66596 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66597
66598         * modules/getcwd (Depends-on): Add extensions.
66599         * modules/openat (Depends-on): Likewise.
66600
66601 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66602
66603         * modules/byteswap: New file.
66604
66605 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66606
66607         * m4/byteswap.m4: New file.
66608
66609 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66610
66611         * lib/byteswap_.h: New file.
66612
66613 2005-04-25  Karl Berry  <karl@gnu.org>
66614
66615         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66616
66617 2005-04-25  Albert Chin  <china@thewrittenword.com>
66618
66619         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66620         Toolkit C bug.
66621
66622 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66623
66624         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66625         (func_ln_if_changed) Remove forcibly for no error message
66626         in case file does not exist.
66627
66628 2005-04-19  Simon Josefsson  <jas@extundo.com>
66629
66630         * gnulib-tool (Options): Make --symlink mean --symbolic.
66631
66632 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66633
66634         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66635
66636 2005-04-16  Simon Josefsson  <jas@extundo.com>
66637
66638         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66639
66640 2005-04-15  Simon Josefsson  <jas@extundo.com>
66641
66642         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66643
66644 2005-04-15  Simon Josefsson  <jas@extundo.com>
66645
66646         * gnulib-tool: Rename --symlink to --symbolic.
66647
66648 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66649
66650         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66651         symbolic links to files instead of copying/moving.  Add --aux-dir,
66652         specifying directory relative --dir where auxiliary build tools
66653         are placed.
66654
66655 2005-04-14  Bruno Haible  <bruno@clisp.org>
66656
66657         * modules/allocsa (License): Change to LGPL.
66658         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66659
66660 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66661
66662         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66663         that "UTC +1 second" continues to work.  Problem reported
66664         by Dmitry V. Levin.
66665         (relunit_snumber): New rule.
66666         (relunit): Use it.
66667
66668 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66669
66670         * lib/getdate.y (universal_time_zone_table): New constant.
66671         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66672         universal_time_zone_table.
66673         (lookup_zone): Prefer universal_time_zone_table to
66674         local_time_zone_table, so that "GMT" time stamps are allowed in
66675         London during the summer.  Problem reported by Ian Abbott.
66676
66677 2005-04-12  Jim Meyering  <jim@meyering.net>
66678
66679         * lib/human.c (humblock): Set *options even when returning due to
66680         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66681         warning from gcc-4.
66682
66683 2005-04-09  Jim Meyering  <jim@meyering.net>
66684
66685         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66686         -Wuninitialized: initialize tm0.tm_year.
66687
66688 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66691         count, since there's no maximum.  All uses changed.
66692         Add member dsts_seen.
66693         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66694         not being INT_MAX.
66695         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66696         Use pc_rels_seen to decide whther a date is absolute.
66697
66698         * lib/getdate.y (number): Don't overwrite year.
66699         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66700         check.
66701
66702 2005-04-02  Simon Josefsson  <jas@extundo.com>
66703
66704         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66705         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66706
66707 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66708
66709         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66710         where no absolute path name can be longer than PATH_MAX.
66711
66712 2005-03-27  Jim Meyering  <jim@meyering.net>
66713
66714         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66715
66716 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66717
66718         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66719         "one's complement" -> "ones' complement" in comment, as per Knuth.
66720         "value of type" -> "type or expression" in comment.
66721         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66722
66723 2005-03-26  Jim Meyering  <jim@meyering.net>
66724
66725         Comment nits.
66726         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66727         Correct typos: s/or/of/.
66728
66729 2005-03-26  Jim Meyering  <jim@meyering.net>
66730
66731         * modules/check-include-files: Move to ../ and rename to...
66732         * check-module: ...this.
66733
66734 2005-03-25  Jim Meyering  <jim@meyering.net>
66735
66736         * modules/xvasprintf (Files): Add xalloc.h.
66737
66738 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66739
66740         * modules/gettext (Files): config/config.rpath ->
66741         build-aux/config.rpath
66742         * modules/iconv (Files): Likewise.
66743         Problem reported by Oskar Liljeblad.
66744
66745 2005-03-23  Jim Meyering  <jim@meyering.net>
66746
66747         * modules/check-include-files: New script to check for
66748         missing dependencies, multiple includes, etc.
66749
66750         * modules/c-strtold (Depends-on): Add xalloc.
66751         * modules/c-strtod (Depends-on): Add xalloc.
66752         * modules/hash (Depends-on): Add xalloc.
66753         (Files): Remove lib/xalloc.h.
66754
66755         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66756         * modules/userspec (Files): Add lib/inttostr.h.
66757
66758 2005-03-23  Jim Meyering  <jim@meyering.net>
66759
66760         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66761
66762 2005-03-22  Jim Meyering  <jim@meyering.net>
66763
66764         * modules/stat-macros: New module.
66765         * modules/canonicalize, modules/euidaccess, modules/file-type,
66766         * modules/filemode, modules/lchown, modules/makepath,
66767         * modules/rmdir, modules/stat: Depend on new stat-macros module
66768         rather than listing lib/stat-macros.h manually.
66769         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66770
66771 2005-03-22  Jim Meyering  <jim@meyering.net>
66772
66773         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66774
66775 2005-03-22  Bruno Haible  <bruno@clisp.org>
66776
66777         * config/srclist.txt: Replace target directory 'config' with
66778         'build-aux'.
66779         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66780         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66781         ../build-aux/.
66782
66783 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66784
66785         * modules/chdir-long (Depends-on): Add mempcpy.
66786
66787         * modules/acl, modules/backupfile, modules/c-strtod,
66788         modules/c-strtold, modules/canon-host, modules/canonicalize,
66789         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66790         modules/exclude, modules/exitfail, modules/file-type,
66791         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66792         modules/getdate, modules/getline, modules/getpagesize,
66793         modules/getpass, modules/getugroups, modules/group-member,
66794         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66795         modules/inttostr, modules/long-options, modules/makepath,
66796         modules/md5, modules/memcasecmp, modules/memcoll,
66797         modules/modechange, modules/mountlist, modules/path-concat,
66798         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66799         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66800         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66801         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66802         modules/strftime, modules/strndup, modules/strverscmp,
66803         modules/timespec, modules/unlocked-io, modules/userspec,
66804         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66805         modules/yesno:
66806         Remove lib_SOURCES line from Makefile.am section, as this is now
66807         done automatically by the corresponding Autoconf macro.
66808
66809 2005-03-21  Jim Meyering  <jim@meyering.net>
66810
66811         Changes imported from coreutils.
66812
66813         * lib/cycle-check.c: Don't include xalloc.h.
66814
66815         * lib/path-concat.c: Don't include assert.h.
66816         (path_concat): Remove assertion that would have triggered
66817         for ABASE starting with more than one slash.
66818         Reported by Andreas Schwab.
66819
66820         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66821         properly when ABASE is an absolute file name.
66822         Correct the description of this function.
66823         Include <assert.h>.
66824         Add an assertion and a test driver.
66825         This fixes a bug introduced on 2004-07-02.
66826         Andreas Schwab reported the resulting failure of cp --parents:
66827         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66828
66829 2005-03-21  Jim Meyering  <jim@meyering.net>
66830
66831         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66832         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66833
66834 2005-03-21  Jim Meyering  <jim@meyering.net>
66835         and  Paul Eggert  <eggert@cs.ucla.edu>
66836
66837         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66838         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66839         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66840         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66841         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66842         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66843         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66844         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66845         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66846         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66847         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66848         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66849         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66850         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66851         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66852         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66853         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66854         for these modules.
66855
66856 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66857
66858         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66859         (which shouldn't happen), generate nothing instead of returning 0
66860         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66861
66862 2005-03-16  Bruno Haible  <bruno@clisp.org>
66863
66864         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66865         HAVE_LONGLONG_64BIT.
66866
66867 2005-03-16  Bruno Haible  <bruno@clisp.org>
66868
66869         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66870         HAVE_LONGLONG_64BIT.
66871
66872 2005-03-16  Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66875         HAVE_LONGLONG_64BIT.
66876
66877 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66880         reliably distinguish strftime failure from empty output on POSIX
66881         hosts.
66882
66883 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66886         (iconv_string): Don't guess a size-zero buffer, as that might cause
66887         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66888         result would be 'too large', where 'too large' is (heuristically)
66889         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66890         overflow concerns.  This will prevent some unwanted malloc failures
66891         when the inputs are very large.
66892
66893 2005-03-15  Karl Berry  <karl@gnu.org>
66894
66895         * config/srclist.txt (config.rpath): from gettext.
66896         * config/config.rpath: update.
66897
66898 2005-03-15  Bruno Haible  <bruno@clisp.org>
66899
66900         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66901         to 'negate'.
66902
66903         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66904         variable.
66905
66906         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66907         results.
66908
66909 2005-03-14  Simon Josefsson  <jas@extundo.com>
66910
66911         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66912         <fx@gnu.org>.
66913
66914 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66915
66916         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66917         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66918         intprops.h.
66919         * lib/strtol.c: Likewise.
66920
66921 2005-03-14  Jim Meyering  <jim@meyering.net>
66922
66923         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66924         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66925         to be nonzero so that we (and caller) can detect the difference
66926         between a valid zero-length expansion and an error return, even
66927         when the underlying strftime fails before writing anything into
66928         that location.
66929
66930 2005-03-14  Bruno Haible  <bruno@clisp.org>
66931
66932         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66933         Update from GNU gettext 0.14.3.
66934
66935 2005-03-10  Jim Meyering  <jim@meyering.net>
66936
66937         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66938
66939 2005-03-10  Jim Meyering  <jim@meyering.net>
66940
66941         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66942         so that this module works on systems without fchdir.
66943
66944 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66945
66946         Factor int-properties macros into a single file, except for
66947         glibc-related files.
66948         * lib/intprops.h: New file.
66949         * lib/getloadavg.c: Include it instead of limits.h.
66950         (INT_STRLEN_BOUND): Remove.
66951         * lib/human.c: Include intprops.h.
66952         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66953         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66954         302/1000.
66955         * lib/inttostr.h: Include intprops.h instead of limits.h.
66956         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66957         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66958         for consistency with intprops.h.
66959         (time_t_is_integer, twos_complement_arithmetic): Use them.
66960         * lib/sig2str.h: Include <signal.h>, intprops.h.
66961         (INT_STRLEN_BOUND): Remove.
66962         * lib/strftime.c (TYPE_SIGNED): Remove.
66963         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66964         * lib/strtol.c: Adjust comments to match intprops.h.
66965         * lib/userspec.c: Include intprops.h.
66966         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66967         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66968         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66969         instead of rolling our own expressions.
66970         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66971
66972         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66973         instead of int.
66974         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66975         the right thing even if adding 1900 would overflow.  Similarly
66976         for tm_mon + 1 and tm_yday + 1.
66977         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66978         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66979         (DO_SIGNED_NUMBER): New macro.
66980         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66981
66982 2005-03-07  Bruno Haible  <bruno@clisp.org>
66983
66984         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66985
66986 2005-03-07  Bruno Haible  <bruno@clisp.org>
66987
66988         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66989
66990 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66991
66992         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66993         (func_import): Only replace files via --import when they have actually
66994         changed.
66995
66996 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66997
66998         * m4/mmap-anon.m4: New file.
66999         * m4/pagealign_alloc.m4: New file.
67000
67001 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67002             Bruno Haible  <bruno@clisp.org>
67003
67004         * modules/pagealign_alloc: New file.
67005         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67006
67007 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67008             Bruno Haible  <bruno@clisp.org>
67009
67010         * lib/pagealign_alloc.h: New file.
67011         * lib/pagealign_alloc.c: New file.
67012
67013 2005-03-03  Bruno Haible  <bruno@clisp.org>
67014
67015         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67016         Use an all-permissive copyright notice, recommended by RMS.
67017
67018 2005-03-02  Bruno Haible  <bruno@clisp.org>
67019
67020         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67021         of AIX, the replacement has to be done only after <string.h> is
67022         included, therefore not in config.h. stpncpy.h does the replacement,
67023         and stpncpy.c uses it.
67024
67025 2005-03-02  Bruno Haible  <bruno@clisp.org>
67026
67027         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67028         stpncpy.c uses it.
67029
67030 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67031
67032         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67033         The workaround isn't strictly needed for POSIX conformance, and
67034         it's too much of a pain to configure and maintain.  We'll ask
67035         people to fix their kernels instead.
67036         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67037         (NANOSLEEP_BUG_WORKAROUND): Remove.
67038         (xnanosleep): Remove the workaround.
67039
67040 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67041
67042         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67043         Reported by Derek Price.
67044         (Include): Add "timespec.h".
67045
67046         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67047
67048 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67049
67050         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67051         to detect nanosleep bug.
67052
67053 2005-03-01  Bruno Haible  <bruno@clisp.org>
67054
67055         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67056
67057 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67058
67059         * modules/gethrxtime: New file.
67060         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67061         (Depends-on): Add gethrxtime.
67062         (configure.ac): Add gl_XNANOSLEEP.
67063         (Makefile.am): Remove lib_SOURCES line.
67064
67065 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67066
67067         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67068         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67069
67070 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67071
67072         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67073         * lib/timespec.h (gettime): Return void, since it always
67074         succeeds now.  All uses changed.
67075         * lib/gettime.c (gettime) Likewise.
67076         [HAVE_NANOTIME]: Prefer nanotime.
67077         Assume gettimeofday succeeds, as POSIX requires.
67078         Assime time () succeeds, since other code already does.
67079         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67080         (timespec_subtract): Remove.
67081         (NANOSLEEP_BUG_WORKAROUND): New constant.
67082         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67083         things considerably.  Use it only on GNU/Linux hosts, since the
67084         workaround shouldn't be needed elsewhere.
67085
67086 2005-02-24  Bruno Haible  <bruno@clisp.org>
67087
67088         * modules/gettext (Files): Add m4/glibc2.m4.
67089
67090 2005-02-24  Bruno Haible  <bruno@clisp.org>
67091
67092         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67093         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67094         * m4/progtest.m4:
67095         Update from GNU gettext 0.14.2.
67096         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67097
67098 2005-02-24  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67101         * lib/config.charset: Update from GNU gettext 0.14.2.
67102
67103 2005-02-24  Bruno Haible  <bruno@clisp.org>
67104
67105         * lib/gettext.h: Update from GNU gettext 0.14.2.
67106
67107 2005-02-23  Simon Josefsson  <jas@extundo.com>
67108
67109         * m4/iconvme.m4: New file.
67110
67111 2005-02-23  Jim Meyering  <jim@meyering.net>
67112
67113         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67114         change.
67115         Thanks to Bruno Haible for catching it.
67116
67117 2005-02-22  Simon Josefsson  <jas@extundo.com>
67118
67119         * modules/iconvme: New file.
67120
67121         * MODULES.html.sh: Add iconvme.
67122
67123 2005-02-22  Simon Josefsson  <jas@extundo.com>
67124
67125         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67126
67127 2005-02-22  Simon Josefsson  <jas@extundo.com>
67128
67129         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67130
67131 2005-02-22  Jim Meyering  <jim@meyering.net>
67132
67133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67134         s/ifndef/ifdef/.
67135
67136 2005-02-20  Neil Conway  <neilc@samurai.com>
67137
67138         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67139         returned by OSX/Darwin if the specified buffer is not large
67140         enough for the hostname.
67141
67142 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67143
67144         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67145         pass it to _help, otherwise the latter coredumps trying to
67146         dereference state.root_argp.
67147
67148 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         * modules/chdir-long (Depends-on): Add memrchr.
67151         * modules/memrchr (Files): Add lib/memrchr.h.
67152         (Include): "memrchr.h".
67153
67154 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67155
67156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67157
67158 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67159
67160         * lib/memrchr.h: New file.
67161         * lib/chdir-long.c: Include it.
67162         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67163         Don't bother including stddef.h.
67164
67165 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67168         inclusion.
67169         Include <sys/types.h>, for dev_t.
67170         (ME_DUMMY, ME_REMOTE): Move from here....
67171         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67172         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67173         Dmitry V. Levin.
67174         Include mountlist.h first, to test the interface.
67175
67176 2005-01-29  Bruno Haible  <bruno@clisp.org>
67177
67178         * lib/progname.c (program_name): Initialize.
67179         Needed when linking statically on MacOS X.
67180
67181 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67182
67183         Sync from coreutils.
67184         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67185         (Depends-on): Add c-strtod.
67186         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67187
67188 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67189
67190         Sync from coreutils.
67191         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67192
67193         Remove files that are specific to coreutils.
67194         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67195
67196 2005-01-28  Bruno Haible  <bruno@clisp.org>
67197
67198         * modules/javacomp: New file.
67199         * MODULES.html.sh (Java): Add javacomp.
67200
67201 2005-01-28  Bruno Haible  <bruno@clisp.org>
67202
67203         * m4/javacomp.m4: New file, from GNU gettext.
67204
67205 2005-01-28  Bruno Haible  <bruno@clisp.org>
67206
67207         * lib/javacomp.sh.in: New file, from GNU gettext.
67208         * lib/javacomp.h: New file, from GNU gettext.
67209         * lib/javacomp.c: New file, from GNU gettext.
67210
67211 2005-01-26  Simon Josefsson  <jas@extundo.com>
67212
67213         * lib/gai_strerror.c: Use GPL in header.
67214
67215 2005-01-26  Bruno Haible  <bruno@clisp.org>
67216
67217         * modules/javaexec: New file.
67218         * MODULES.html.sh (Java): Add javaexec.
67219
67220 2005-01-26  Bruno Haible  <bruno@clisp.org>
67221
67222         * m4/javaexec.m4: New file, from GNU gettext.
67223
67224 2005-01-26  Bruno Haible  <bruno@clisp.org>
67225
67226         * lib/javaexec.sh.in: New file, from GNU gettext.
67227         * lib/javaexec.h: New file, from GNU gettext.
67228         * lib/javaexec.c: New file, from GNU gettext.
67229
67230 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67231
67232         * modules/lchown (Depends-on): Remove lchown.h
67233
67234 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67235
67236         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67237         must be defined if the header file was not found, in order
67238         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67239
67240 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67241
67242         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67243         initializers for struct pentry_state.
67244         (__argp_error): Check return value of __asprintf
67245         (__argp_failure): Translate error message
67246
67247         * lib/argp-parse.c: Removed braces around the expansion of N_()
67248
67249 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67252         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67253         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67254         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67255         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67256         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67257         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67258         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67259         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67260         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67261         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67262         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67263         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67264         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67265         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67266         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67267         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67268         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67269         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67270         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67271         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67272         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67273         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67274         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67275         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67276         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67277         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67278         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67279         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67280         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67281         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67282         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67283         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67284         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67285         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67286         Use an all-permissive copyright notice, recommended by RMS.
67287
67288 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67289
67290         * modules/chdir-long (Depends-on): Remove mempcpy.
67291
67292 2005-01-21  Jim Meyering  <jim@meyering.net>
67293
67294         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67295         same value as for Solaris 9.
67296
67297         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67298         component length.  This included changing the parameter to be
67299         of type `char *' rather than `char const *'.
67300         * lib/chdir-long.h (chdir_long): Update prototype.
67301
67302         * lib/openat.c (fdopendir, fstatat): New functions.
67303         * lib/openat.h: Include headers required for use of DIR and struct
67304         stat.
67305         [AT_SYMLINK_NOFOLLOW]: Define.
67306         (fdopendir, fstatat): Add prototypes.
67307
67308 2005-01-21  Bruno Haible  <bruno@clisp.org>
67309
67310         * modules/classpath: New file.
67311         * MODULES.html.sh (Java): Add classpath.
67312
67313 2005-01-21  Bruno Haible  <bruno@clisp.org>
67314
67315         * lib/classpath.h: New file, from GNU gettext.
67316         * lib/classpath.c: New file, from GNU gettext.
67317
67318 2005-01-20  Simon Josefsson  <jas@extundo.com>
67319
67320         * modules/version-etc-fsf: New file.
67321
67322 2005-01-20  Simon Josefsson  <jas@extundo.com>
67323
67324         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67325         * lib/version-etc.c: Remove version_etc_copyright.
67326         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67327         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67328
67329 2005-01-20  Simon Josefsson  <jas@extundo.com>
67330
67331         * lib/base64.h (isbase64): Add.
67332
67333         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67334         using a unsigned prototype, don't inline.
67335         (base64_decode): Use it.
67336
67337 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67340         it.
67341
67342 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67343
67344         * lib/save-cwd.c (save_cwd): Remove code to support the case
67345         where fchdir is missing or flaky.
67346
67347 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67348
67349         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
67350
67351 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67352
67353         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
67354         AC_LIBSOURCES now does this.
67355         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
67356         with new ullong_max module.
67357
67358 2005-01-19  Bruno Haible  <bruno@clisp.org>
67359
67360         * modules/sh-quote: New file.
67361         * MODULES.html.sh (Executing programs): Add sh-quote.
67362
67363 2005-01-19  Bruno Haible  <bruno@clisp.org>
67364
67365         * lib/sh-quote.h: New file, from GNU gettext.
67366         * lib/sh-quote.c: New file, from GNU gettext.
67367
67368 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67369
67370         Merge from coreutils.
67371         * m4/ullong_max.m4: New file.
67372         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
67373         (gl_MACROS): Assume localeconv exists.
67374
67375 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         Merge changes from coreutils, as described below in several
67378         changelogs dated today.
67379
67380         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
67381         (O_DIRECTORY): Remove; not needed here, since "." must be
67382         a directory.  All uses removed.
67383         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
67384         universal on Suns, and we also need to test for IRIX.
67385         Revamp code to use 'if' rather than '#if'.
67386         Avoid unnecessary comparison of cwd->desc to 0.
67387
67388         * lib/utimens.c (futimens): Robustify the previous patch, by checking
67389         for known valid error numbers rather than observed invalid ones.
67390
67391 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67392
67393         * modules/ullong_max: New file.
67394
67395         * modules/chdir-long, modules/openat: New files.
67396         * modules/save-cwd (Depends-on): Depend on chdir-long.
67397         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
67398
67399 2005-01-18  Jim Meyering  <jim@meyering.net>
67400
67401         Merge from coreutils.
67402         * m4/chdir-long.m4, m4/openat.m4: New files.
67403         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
67404         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
67405         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
67406         is sane and DOES follow symlinks.  Besides, testing 20 different
67407         systems found no broken chown implementations.
67408         Prompted by a change in rsync's copy of this macro.
67409         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
67410
67411         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
67412
67413         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
67414         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
67415         NULL-means-set-to-current-time semantics.
67416         Remove temporary file immediately, rather than waiting
67417         for configure's at-exit trap code to do it.
67418
67419 2005-01-18  Jim Meyering  <jim@meyering.net>
67420
67421         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67422
67423         * lib/utimens.c (futimens): Account for the fact that futimes
67424         can also fail with errno == ENOSYS or errno == ENOENT.
67425         Patch from Dmitry V. Levin.
67426
67427         Change the name of the robust chdir function from chdir to chdir_long.
67428         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
67429         (restore_cwd): Use chdir_long, not chdir.
67430         * lib/chdir-long.c: Renamed from chdir.c.
67431         * lib/chdir-long.h: Renamed from chdir.h.
67432         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
67433         Hurd.
67434
67435 2005-01-18  Bruno Haible  <bruno@clisp.org>
67436
67437         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
67438         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
67439         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
67440         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
67441         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
67442         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
67443         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
67444         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
67445         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
67446         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
67447         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
67448         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
67449         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
67450         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
67451         Use an all-permissive copyright notice, recommended by RMS.
67452
67453 2005-01-18  Bob Proulx  <bob@proulx.com>
67454
67455         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
67456         simplify offsetof() macro construct to avoid compile failure with
67457         native HP-UX 11.0 ANSI C compiler.
67458
67459 2005-01-17  Bruno Haible  <bruno@clisp.org>
67460
67461         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
67462         redundant because stpncpy.m4 takes care of it.
67463
67464 2005-01-17  Bruno Haible  <bruno@clisp.org>
67465
67466         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
67467
67468 2005-01-17  Bruno Haible  <bruno@clisp.org>
67469
67470         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
67471         used.
67472
67473 2005-01-17  Bruno Haible  <bruno@clisp.org>
67474
67475         * lib/fwriteerror.h (fwriteerror): Change specification to include
67476         fclose.
67477         * lib/fwriteerror.c: Include <stdbool.h>.
67478         (fwriteerror): At the end, close the file stream. Record whether
67479         stdout was already closed.
67480
67481 2005-01-17  Bruno Haible  <bruno@clisp.org>
67482
67483         * lib/execute.c (environ): Declare if needed.
67484         * lib/pipe.c (environ): Likewise.
67485         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
67486
67487 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67488
67489         * modules/argp: Depend on vsnprintf
67490
67491 2005-01-10  Jim Meyering  <jim@meyering.net>
67492
67493         * modules/closeout (Depends-on): Add atexit.
67494
67495 2005-01-06  Bruno Haible  <bruno@clisp.org>
67496
67497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
67498
67499 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67500
67501         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
67502         definitions to be after all include files, to avoid collisions.
67503         Problem reported by Bob Proulx.
67504
67505 2005-01-04  Jim Meyering  <jim@meyering.net>
67506
67507         Changes imported from coreutils.
67508         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
67509         as the mkstemp template, use a temporary directory and an
67510         8.3-friendly template to avoid trouble on systems like DJGPP.
67511         Reported by Juan M. Guerrero via Stepan Kasal.
67512         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
67513         close. Remove the temporary directory right away, rather than waiting
67514         for configure's at-exit trap code to do it.
67515         Suggestion from Stepan Kasal.
67516
67517 2005-01-01  Simon Josefsson  <jas@extundo.com>
67518
67519         * gnulib-tool: Print #include directives when --import'ing.
67520
67521 2004-12-28  Simon Josefsson  <jas@extundo.com>
67522
67523         * tests/test-base64.c: Include required header files.  Remove
67524         unused variables.
67525
67526 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * modules/error (Depends-on): Remove gettext.
67529
67530 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67531
67532         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
67533         not needed.  This removes a dependency on the gettext module.
67534         [defined _LIBC]: Do not include <libintl.h>; not needed.
67535
67536 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
67539         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
67540
67541 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
67544         HAVE_DECL_STRTOLD.
67545
67546 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67547
67548         * modules/getdate (Depends-on): Remove alloca-opt.
67549
67550 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67553
67554 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67555
67556         * lib/argp-parse.c: Include <stddef.h>.
67557         (alignof, alignto): New macros.
67558         (parser_init): Don't assume that void * is aligned sufficiently
67559         for struct option.
67560
67561         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67562         need to extend the stack.
67563         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67564         large.
67565
67566 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67567
67568         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67569
67570 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67571
67572         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67573         (2004-10-24) change.  Apparently this was a false alarm.
67574
67575         * modules/getdate: Depend on alloca-opt, not alloca.
67576
67577 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67578
67579         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67580         Remove now-obsolete comment about AIX.
67581         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67582         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67583         (YYMAXDEPTH): New macro.
67584
67585 2004-12-18  Simon Josefsson  <jas@extundo.com>
67586
67587         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67588
67589 2004-12-18  Bruno Haible  <bruno@clisp.org>
67590
67591         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67592
67593 2004-12-18  Bruno Haible  <bruno@clisp.org>
67594
67595         * lib/fatal-signal.c (fatal_signals): Make non-const.
67596         (init_fatal_signals): New function.
67597         (uninstall_handlers, install_handlers): Ignore signals that were set to
67598         SIG_IGN.
67599         (at_fatal_signal): Call init_fatal_signals.
67600         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67601         SIG_IGN.
67602         Reported by Paul Eggert.
67603
67604 2004-12-18  Bruno Haible  <bruno@clisp.org>
67605
67606         * doc/alloca.texi: New file.
67607         * doc/alloca-opt.texi: New file.
67608
67609 2004-12-17  Jim Meyering  <jim@meyering.net>
67610
67611         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67612         Otherwise, install-sh could exit with improper exit status when
67613         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67614
67615 2004-12-16  Simon Josefsson  <jas@extundo.com>
67616
67617         * tests/test-base64.c: Add license.
67618
67619 2004-12-15  Stepan Kasal  <address@hidden>
67620
67621         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67622
67623 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         * modules/getcwd (Files): Add m4/d-ino.m4.
67626         Suggested by Mark D. Baushke.
67627
67628 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * lib/getdate.y (textint): New member "negative".
67631         (time_zone_hhmm): New function.
67632         Expect 14 shift-reduce conflicts, not 13.
67633         (o_colon_minutes): New rule.
67634         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67635         (yylex): Set the "negative" member of signed numbers.
67636
67637 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67638
67639         * doc/getdate.texi (Time of day items, Time zone items):
67640         Describe new formats +00:00, UTC+00:00.
67641
67642 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67643
67644         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67645         spurious "-l"s.  Problem reported by Stepan Kasal.
67646
67647 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67648
67649         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67650         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67651
67652 2004-12-04  Simon Josefsson  <jas@extundo.com>
67653
67654         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67655         Vandoorselaere <yoann@prelude-ids.org>.
67656
67657 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         Changes imported from coreutils.
67660         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67661         exist.
67662         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67663
67664 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67665
67666         Changes imported from coreutils.
67667         * lib/hard-locale.c: Assume <locale.h> exists.
67668         Include "strdup.h".
67669         (GLIBC_VERSION): New macro.
67670         (hard_locale): Assume setlocale exists.
67671         Rewrite to avoid #ifdef.
67672         Use strdup rather than malloc + strcpy.
67673         * lib/human.c: Assume <locale.h> exists.
67674         (human_readable): Assume localeconv exists.
67675
67676 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67677
67678         * modules/hard-locale (Depends-on): Add strdup.
67679
67680 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67681
67682         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67683         convert T2, not T.  (Imported from libc.)
67684
67685 2004-11-30  Simon Josefsson  <jas@extundo.com>
67686
67687         * modules/restrict (License): Change to LGPL.
67688
67689 2004-11-30  Simon Josefsson  <jas@extundo.com>
67690
67691         * m4/restrict.m4: Add copyright and copying conditions.
67692
67693 2004-11-30  Simon Josefsson  <jas@extundo.com>
67694
67695         * m4/base64.m4: New file.
67696
67697 2004-11-30  Simon Josefsson  <jas@extundo.com>
67698
67699         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67700         base64.
67701
67702         * tests/test-base64.c: New file.
67703
67704         * modules/base64: New file.
67705
67706 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67707
67708         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67709         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67710
67711         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67712
67713 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67714
67715         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67716         (__getcwd.c): Don't restore errno; glibc doesn't.
67717         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67718         first, falling back to our code only if its results look suspicious.
67719         Ensure that the resulting buffer is only as large as necessary.
67720
67721         * lib/readutmp.c: Include readutmp.h first.
67722         Include <errno.h>, since readutmp.h no longer does that.
67723         * lib/readutmp.h: Don't include <errno.h>,
67724         <sys/param.h>, <time.h>; not needed to establish interface.
67725         (errno): Remove decl.
67726         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67727         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67728         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67729
67730 2004-11-28  Simon Josefsson  <jas@extundo.com>
67731
67732         * lib/base64.h, base64.c: New file.
67733
67734 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67735
67736         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67737
67738 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67739
67740         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67741         (Depends-on): Remove pathmax, same.  Add mempcpy.
67742         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67743         (Makefile.am): Append getcwd.h to lib_SOURCES.
67744         (Include): Add getcwd.h.
67745         (Maintainer): Change from Jim Meyering to "all, glibc",
67746         since getdate now uses intended-for-glibc code.
67747         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67748         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67749
67750 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67751
67752         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67753         HP's ANSI C compiler.
67754         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67755         Declaring int functions causes warnings on some modern systems and
67756         shouldn't be needed to compile on ancient ones.
67757         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67758         defined.
67759
67760         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67761         with the following changes.
67762         (__set_errno): Parenthesize properly.
67763         Include <stdbool.h>.
67764         (MIN, MAX, MATCHING_INO): New macros.
67765         (__getcwd): Define with prototype, not K&R form.
67766         Use heuristics to allocate default buffer on stack if possible.
67767         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67768         behavior, and to avoid the PATH_MAX limit when computing
67769         ../../../../...
67770         Use MATCHING_INO to compare inode number to file.
67771         Check for arithmetic overflow in size calculations.
67772         Fix bug in reallocation of dot array that caused getcwd to fail
67773         on directories nested deeper than 75.
67774         Be more careful about saving errno on error.
67775         Do not use realloc; use only free+malloc, as this is a bit
67776         more flexible and avoids a needless copy operation.
67777         Do not inspect st_dev and st_ino for symbolic links; POSIX
67778         doesn't specify the latter.
67779         Check for closedir errors.
67780         Avoid needless casts.
67781         Use "#ifdef weak_alias" around weak_alias, to be like other
67782         glibc code.
67783         The following changes to getcwd.c have effect only when used in
67784         gnulib; they have no effect inside glibc proper.
67785         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67786         as alloca isn't used.
67787         (alloca, __alloca): Likewise.
67788         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67789         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67790         unconditionally, as gnulib assumes C89 or better.
67791         Do not include <sys/param.h>.
67792         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67793         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67794         better.
67795         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67796         Include <dirent.h> in a way that is compatible with modern Autoconf.
67797         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67798         New macros, if not already defined.
67799         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67800         Use "_LIBC", not "defined _LIBC", for consistency.
67801         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67802         a mempcpy module.
67803         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67804         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67805         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67806         credit only to Jim Meyering and adjust the copyright dates.
67807         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67808         <stdlib.h>, <unistd.h>, "pathmax.h".
67809         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67810         (INITIAL_BUFFER_SIZE): Remove.
67811         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67812
67813 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67814
67815         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67816         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67817         Use the _ONCE methods, for efficiency.
67818         Check for fcntl.h.  In test program, include <errno.h>
67819         and <fcntl.h> if available.  Remove old K&R cruft from
67820         test program.  Check for common errors in GNU/Linux,
67821         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67822         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67823         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67824         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67825         name accordingly.
67826         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67827         accommodate new getcwd.c.
67828         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67829         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67830         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67831         that's all we need now.
67832
67833 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67834
67835         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67836         argp-parse.c depends on getopt internals, that means we should
67837         always use our getopt, to be on the safe side.
67838         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67839         order not to spoil the result of an eventual previous invocation
67840         of gl_GETOPT_SUBSTITUTE.
67841
67842 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67843
67844         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67845         redefinition warnings. To avoid them, include the defines
67846         in `#if !defined __need_getopt ... #endif'. The only place
67847         where __getopt_argv_const is used is in definitions
67848         of getopt_long and getopt_long_only below, which are as well
67849         protected by `#ifndef __need_getopt'.
67850         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67851         __need_getopt after including <stdio.h> and <unistd.h> These
67852         headers might have defined it.
67853
67854 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67855
67856         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67857
67858 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67859
67860         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67861         (futimens): New function, which uses futimes if available.
67862         (futimens, utimens): Support timespec==NULL, with same semantics
67863         as utime and utimens.
67864         * lib/utimens.h (futimens): New decl.
67865
67866 2004-11-23  Jim Meyering  <jim@meyering.net>
67867
67868         * lib/getopt_.h: Remove trailing blanks.
67869
67870 2004-11-23  Jim Meyering  <jim@meyering.net>
67871
67872         * lib/__fpending.c: Add comment.
67873
67874 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67875
67876         * modules/canonicalize (Depends-on): Add xreadlink.
67877         Problem reported by James Youngman.
67878
67879 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67880
67881         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67882         New macros.
67883         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67884         optopt): Use them instead of invoking ## directly; otherwise, the
67885         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67886
67887 2004-11-19  Bruno Haible  <bruno@clisp.org>
67888
67889         * lib/strtok_r.c: Move comments from here...
67890         * lib/strtok_r.h: ... to here.
67891
67892 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67895         implementations that mishandle size_t overflow.
67896
67897 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67900         might fail.  Problem reported by Yoann Vandoorselaere.
67901         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67902         implementations that mishandle size_t overflow.
67903
67904 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67905
67906         * modules/canon-host (Depends-on): Add strdup.
67907
67908 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67911
67912 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * lib/canon-host.c: Include "strdup.h".
67915         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67916         Use strdup instead of malloc/strcpy to duplicate strings.
67917
67918         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67919         (human_space_before_unit): New constant.
67920         * lib/human.c (human_readable): Support it.
67921
67922         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67923         (xgetcwd): Set errno correctly when failing.
67924         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67925         the failure is actually due to a PATH_MAX problem.
67926
67927         Further getopt changes to make it more likely that glibc will
67928         buy the changes back.
67929         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67930         (getopt): Use it, so to preserve glibc semantic
67931         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67932         when compiling for libc.
67933         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67934         (getopt_long, getopt_long_only): Use it.
67935
67936         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67937         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67938         (getopt): Argv is now char * const *, as per standard.
67939         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67940         not char *__getopt_argv_const *.
67941         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67942         _getopt_long_only_r): Likewise.
67943         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67944         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67945         _getopt_long_r, _getopt_long_only_r): Likewise.
67946         * lib/getopt_.h (__getopt_argv_const): Remove.
67947         (getopt): Argv is now char * const *, as per standard.
67948
67949         * lib/getdate.y (tORDINAL): New token.
67950         (day, relunit): Allow it for relative times.
67951         (relative_time_table): Use tORDINAL for ordinals.
67952
67953 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67956         Document that "second" isn't allowed as an ordinal number.
67957
67958 2004-11-16  Jim Meyering  <jim@meyering.net>
67959
67960         * modules/closeout (Depends-on): Add fpending.
67961
67962 2004-11-15  Jim Meyering  <jim@meyering.net>
67963
67964         * lib/closeout.c: Include "__fpending.h" once again.
67965         Include <stdbool.h>.
67966         (close_stdout): Don't fail just because stdout was closed initially,
67967         since some programs don't write to stdout in the normal course of
67968         operation (other than --version and --help), and we don't want this
67969         function to make e.g. `touch file >&-' fail.
67970         But do fail if it was closed and someone has tried to write to it.
67971         E.g., `printf foo >&-' must fail.
67972
67973 2004-11-13  Jim Meyering  <jim@meyering.net>
67974
67975         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67976
67977 2004-11-12  Simon Josefsson  <jas@extundo.com>
67978
67979         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67980         small doc fix is still pending.
67981
67982 2004-11-11  Simon Josefsson  <jas@extundo.com>
67983
67984         * modules/strtok_r: New file.
67985
67986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67987         strtok_r.
67988
67989 2004-11-11  Simon Josefsson  <jas@extundo.com>
67990
67991         * m4/strtok_r.m4: New file.
67992
67993         * m4/getopt.m4: Replace opterr.
67994
67995 2004-11-11  Simon Josefsson  <jas@extundo.com>
67996
67997         * lib/strtok_r.h, strtok_r.c: New file.
67998
67999 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68000
68001         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68002         of replacing opterr, getopt, etc.  This should handle the
68003         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68004
68005 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68006
68007         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68008         we can stop lying to compilers about the constness of argv when we
68009         are compiled outside glibc.
68010         (getopt, getopt_long, getopt_long_only): Use it.
68011         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68012         _getopt_internal, getopt): Likewise.
68013         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68014         _getopt_long_only_r): Likewise.
68015         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68016         _getopt_long_r, _getopt_long_only_r): Likewise.
68017
68018         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68019         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68020         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68021         the other external symbols.
68022         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68023         declaration, since the above renaming now works around collisions.
68024
68025 2004-11-11  Jim Meyering  <jim@meyering.net>
68026
68027         * lib/linebreak.c: Remove trailing blanks.
68028         * lib/alloca_.h: Likewise.
68029         * lib/acosl.c: Likewise.
68030         * lib/euidaccess.c: Likewise.
68031         * lib/allocsa.h: Likewise.
68032
68033 2004-11-10  Simon Josefsson  <jas@extundo.com>
68034
68035         * m4/getaddrinfo.m4: New file.
68036
68037 2004-11-10  Simon Josefsson  <jas@extundo.com>
68038
68039         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68040
68041 2004-11-10  Simon Josefsson  <jas@extundo.com>
68042
68043         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68044         getaddrinfo.
68045
68046         * modules/getaddrinfo: New file.
68047
68048 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68051
68052 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68053
68054         * lib/mktime.c (SHR): New macro, which is a portable
68055         substitute for >> that should work even on Crays.
68056         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68057         Problem reported by Mark D. Baushke in
68058         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68059         * lib/getdate.y (SHR): Likewise.
68060         (tm_diff): Use it.
68061         * lib/strftime.c (SHR): Likewise.
68062         (tm_diff): Use it.
68063         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68064         quote_these_too, so that right shifts are well defined.  All uses
68065         changed.
68066
68067 2004-11-10  Jim Meyering  <jim@meyering.net>
68068
68069         Ensure that no close failure goes unreported.
68070         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68071         return early when it seems there's nothing to flush.
68072         Don't include __fpending.h.
68073
68074 2004-11-10  Jim Meyering  <jim@meyering.net>
68075
68076         * modules/closeout (Depends-on): Remove fpending.
68077
68078 2004-11-10  Jim Meyering  <jim@meyering.net>
68079
68080         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68081
68082 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68083
68084         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68085         gl_FUNC_STRFTIME.
68086         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68087         and AC_REQUIRE when possible, to avoid duplicate checks.
68088         Check for <wchar.h>.
68089
68090 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68091
68092         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68093
68094 2004-11-09  Bruno Haible  <bruno@clisp.org>
68095
68096         * m4/sockpfaf.m4: New file.
68097
68098 2004-11-05  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68101         Reported by Mark D. Baushke <mdb@cvshome.org>.
68102
68103 2004-11-04  Bruno Haible  <bruno@clisp.org>
68104
68105         2004-09-11  Bruno Haible  <bruno@clisp.org>
68106                 * allocsa.valgrind: New file.
68107         2004-02-06  Bruno Haible  <bruno@clisp.org>
68108                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68109                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68110                 Reported by Christopher Seip <chris.seip@hp.com>.
68111
68112 2004-11-04  Bruno Haible  <bruno@clisp.org>
68113
68114         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68115         (Makefile.am): Distribute it.
68116
68117 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68120         with errno == ERANGE if the buffer is too small.
68121         Problem reported by Mark D. Baushke.
68122
68123 2004-11-03  Albert Chin  <china@thewrittenword.com>
68124             Paul Eggert  <eggert@cs.ucla.edu>
68125
68126         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68127         equivalent, substitute $ac_type for equivalent type rather than
68128         blindly using uint32_t *always* which won't work if uint32_t is not
68129         available.  Define _UINT32_T to work around typedef of uint32_t if
68130         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68131         2.5.1.
68132
68133 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68134
68135         * m4/jm-macros.m4: Sync from coreutils.
68136         (gl_MACROS): Check for mbrlen, for pathchk.
68137         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68138
68139 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         * lib/xreadlink.c (MAXSIZE): New macro.
68142         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68143         size does not exceed MAXSIZE.  Avoid cast.
68144         As suggested by Mark D. Baushke in
68145         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68146         if readlink fails with buffer size just under MAXSIZE, try again
68147         with MAXSIZE.
68148
68149 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68150
68151         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68152
68153 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68154         and  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68157         (get_date): Overparenthesize to avoid GCC warning.
68158
68159 2004-11-02  Bruno Haible  <bruno@clisp.org>
68160
68161         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68162         returns void.
68163
68164 2004-11-02  Bruno Haible  <bruno@clisp.org>
68165
68166         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68167         function returns void.
68168
68169 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68170
68171         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68172         fflush_unlocked, flockfile, funlockfile, funlockfile,
68173         fputs_unlocked, putc_unlocked.
68174
68175 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68176
68177         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68178         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68179         already declared.
68180
68181 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68182
68183         * modules/getdate (Files): Add doc/getdate.texi.
68184         (Depends-on): Add setenv, xalloc.
68185
68186 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         * lib/getdate.y: Add support for TZ="foo" within a date string.
68189         Fix some bugs near time_t boundaries.  Reject dates with
68190         out-of-range components, e.g., "Sept 31".
68191         Include <stdlib.h>, "setenv.h", "xalloc.h".
68192         (ISDIGIT_LOCALE): Remove; unused.
68193         Note that the TZ and time functions used here are not reentrant.
68194         (mktime_ok, get_tz): New functions.
68195         (TZBUFSIZE): New constant.
68196         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68197         This requires that we sometimes generate our own TZ="XXX..." setting.
68198
68199 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68200
68201         * doc/getdate.texi: New file, from coreutils with modifications for
68202         the new TZ parsing.
68203
68204 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68205
68206         * lib/mktime.c (not_equal_tm): Remove redundant check.
68207
68208 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * modules/regex (lib_SOURCES): Add regex.c.
68211         Reported by James Youngman in
68212         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68213
68214 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68215
68216         * lib/getdate.y: Use Bison 1.875 features, and some minor
68217         code cleanups.  This change does not affect semantics.
68218         Don't include <stdlib.h>; no longer needed.
68219         Don't include unlocked-io.h; only the "#if TEST" code uses
68220         stdio, and performance isn't crucial there.
68221         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68222         Bison 1.875 features as described below.
68223         All uses of "PC." replaced by "pc->".
68224         (YYSTYPE): Add a forward declaration.
68225         (yylex, yyerror): Use full prototypes in forward decls.
68226         Use "%pure-parser" rather than obsolescent "%pure_parser".
68227         Use %parse-param and %lex-param instead of obsolescent
68228         YYPARSE_PARAM and YYLEX_PARAM.
68229         (meridian_table, month_and_day_table, time_units_table,
68230         relative_time_table, time_zone_table, military_table,
68231         lookup_zone, lookup_word, get_date):
68232         Use NULL instead of 0 where appropriate.
68233         (to_hour): Avoid abort (), to avoid a dependency on
68234         stdlib.h.
68235         (yyerror, yylex): Now accepts parser_control * arg.
68236         (main) [TEST]: Use '\0' rather than 0 for char.
68237
68238 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68239
68240         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68241
68242 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68243
68244         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68245         It's now the caller's responsibility to handle the case where
68246         !HAVE_GETPAGESIZE && !defined getpagesize.
68247
68248         * lib/mktime.c (leapyear): Arg is long int, not int.
68249
68250 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68251
68252         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68253
68254 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68255
68256         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68257         missing.  Problem reported by James Youngman.
68258
68259 2004-10-16  Simon Josefsson  <jas@extundo.com>
68260
68261         * gnulib-tool: Fix comments.  Fix parse problem.
68262         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68263
68264 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68265
68266         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68267         implementation of getopt_long.  Problem reported by Alexander Taler in:
68268         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68269
68270 2004-10-15  Bruno Haible  <bruno@clisp.org>
68271
68272         * gnulib-tool: Untabify. Initialize supplied_libname.
68273         (func_usage): More homogenous output.
68274         (func_modules_transitive_closure, func_modules_to_filelist,
68275         func_emit_lib_Makefile_am): New functions.
68276         (func_import): New function, extracted from big case statement. Use
68277         func_get_license, func_modules_transitive_closure,
68278         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68279         opt_lgpl. Don't use test -a, as it's not portable.
68280         (func_create_testdir): Use func_modules_transitive_closure,
68281         func_modules_to_filelist, func_emit_lib_Makefile_am.
68282
68283 2004-10-15  Bruno Haible  <bruno@clisp.org>
68284
68285         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68286
68287 2004-10-15  Bruno Haible  <bruno@clisp.org>
68288
68289         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68290         the portions belonging to each module.
68291         Suggested by Derek Robert Price <derek@ximbiot.com>.
68292
68293 2004-10-12  Simon Josefsson  <jas@extundo.com>
68294
68295         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68296         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68297         to real functions.
68298
68299 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68300
68301         * modules/vsnprintf: New file.
68302
68303 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68304
68305         * m4/vsnprintf.m4: New file.
68306
68307 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68308
68309         * lib/vsnprintf.h: New file.
68310         * lib/vsnprintf.c: New file.
68311
68312 2004-10-11  Bruno Haible  <bruno@clisp.org>
68313
68314         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68315         vsnprintf.
68316
68317 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68318
68319         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68320
68321 2004-10-07  Bruno Haible  <bruno@clisp.org>
68322
68323         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68324         fits into the provided buffer.
68325
68326 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68327
68328         * lib/diacrit.c, diacrit.h: Add GPL notice.
68329
68330         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68331         notice.
68332         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68333         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68334         This avoids a potential constant-folding bug.
68335
68336 2004-10-05  Bruno Haible  <bruno@clisp.org>
68337
68338         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68339         for the declaration of strsep.
68340
68341 2004-10-05  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
68344
68345 2004-10-04  Simon Josefsson  <jas@extundo.com>
68346
68347         * modules/memmem: New file.
68348         * tests/test-memmem.c: New file.
68349         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
68350
68351 2004-10-04  Simon Josefsson  <jas@extundo.com>
68352
68353         * m4/memmem.m4: New file.
68354
68355 2004-10-04  Simon Josefsson  <jas@extundo.com>
68356
68357         * lib/memmem.h: New file.
68358         * lib/memmem.c: New file, taken from glibc.
68359
68360 2004-10-04  Simon Josefsson  <jas@extundo.com>
68361
68362         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
68363         '#ifdef USE_UNLOCKED_IO'.
68364
68365 2004-10-04  Simon Josefsson  <jas@extundo.com>
68366
68367         * config/srclist.txt: Add memmem from glibc.
68368
68369 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
68372
68373         * modules/argmatch, modules/argp, modules/closeout, modules/error,
68374         modules/exclude, modules/getdate, modules/getline,
68375         modules/getndelim2, modules/getpass, modules/getpass-gnu,
68376         modules/getusershell, modules/linebuffer, modules/md5,
68377         modules/mountlist, modules/posixtm, modules/readtokens,
68378         modules/readutmp, modules/regex, modules/sha1,
68379         modules/version-etc, modules/yesno:
68380         Remove dependency on unlocked-io.
68381
68382 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
68385
68386         * m4/unlocked-io.m4: Add copyright notice.
68387         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
68388
68389 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68390
68391         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
68392         * lib/xmalloc.c (xmemdup): Likewise.
68393         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
68394         XFREE): Remove these long-obsolescent macros.
68395         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
68396         * lib/xstrdup.c: Remove.
68397
68398         * lib/regex.c (re_comp): Cast gettext return value to char *,
68399         Problem reported by Martin Neitzel via Mark D. Baushke.
68400
68401 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68402
68403         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
68404         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
68405         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
68406         regex.c, sha1.c, version-etc.c, yesno.c:
68407         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
68408         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
68409         the includer's responsibility.
68410
68411         Sync from coreutils.
68412
68413         * lib/modechange.c (mode_compile): Don't decrement a pointer that
68414         points to the start of a string, as the C Standard says the
68415         resulting behavior is undefined.
68416
68417         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
68418         simple -> simple_backups, numbered_existing ->
68419         numbered_existing_backups, numbered -> numbered_backups
68420         to avoid shadowing problems.  All uses changed.
68421         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
68422         * lib/backupfile.c (check_extension, numbered_backup):
68423         Rename locals to avoid shadowing 'basename'.
68424         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
68425         once.
68426
68427         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
68428         * lib/.cvsignore: Add getopt.h.
68429
68430 2004-10-04  Bruno Haible  <bruno@clisp.org>
68431
68432         * modules/README: New file.
68433         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
68434         not a module.
68435
68436 2004-10-02  Jim Meyering  <jim@meyering.net>
68437
68438         * lib/dirfd.h, getpagesize.h: Add copyright notice.
68439
68440 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68441
68442         * modules/strsep: New file.
68443
68444 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68445
68446         * m4/strsep.m4: New file.
68447
68448 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68449
68450         * lib/strsep.h: New file.
68451         * lib/strsep.c: New file.
68452
68453 2004-10-01  Simon Josefsson  <jas@extundo.com>
68454
68455         * lib/snprintf.c (snprintf): Handle size==0.
68456
68457 2004-10-01  Simon Josefsson  <jas@extundo.com>
68458             Bruno Haible  <bruno@clisp.org>
68459
68460         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
68461         (snprintf): Declare 'args'.
68462
68463 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
68464
68465         * lib/snprintf.c: Remove comments as to why each header is needed.
68466
68467 2004-10-01  Bruno Haible  <bruno@clisp.org>
68468
68469         * MODULES.html.sh: Add strsep.
68470
68471 2004-09-30  Simon Josefsson  <jas@extundo.com>
68472
68473         * modules/snprintf: New file.
68474
68475 2004-09-30  Simon Josefsson  <jas@extundo.com>
68476
68477         * m4/snprintf.m4: New file.
68478
68479 2004-09-30  Simon Josefsson  <jas@extundo.com>
68480
68481         * lib/snprintf.h, lib/snprintf.c: New files.
68482
68483 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68484
68485         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
68486         (hol_entry_help): Never translate an empty string.
68487         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
68488         * lib/argp.h (OPTION_NO_TRANS): New option.
68489
68490 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68491
68492         * modules/argp (Maintainer): Replace Simon Josefsson
68493         by Sergey Poznyakoff.
68494
68495 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
68498         changes merged back into glibc.
68499
68500 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68501
68502         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
68503
68504 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68505
68506         * lib/xvasprintf.c: Include xalloc.h.
68507         (xvasprintf): Use xalloc_die, not xmalloc_die.
68508
68509 2004-09-29  Bruno Haible  <bruno@clisp.org>
68510
68511         * modules/alloca-opt: New file, derived from modules/alloca.
68512         * modules/allocsa: Depend on alloca-opt instead of alloca.
68513         * modules/setenv: Likewise.
68514         * modules/vasnprintf: Likewise.
68515         * MODULES.html.sh: Add alloca-opt.
68516
68517 2004-09-28  Simon Josefsson  <jas@extundo.com>
68518
68519         * gnulib-tool: New parameter --lgpl, to asseert that modules are
68520         LGPL, and to replace license template from GPL to LGPL.
68521
68522 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68523
68524         * modules/dummy: Change license to LGPL.
68525
68526 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
68529
68530 2004-09-24  Simon Josefsson  <jas@extundo.com>
68531
68532         * modules/minmax (License): Change from GPL to LGPL.
68533
68534 2004-09-23  Simon Josefsson  <jas@extundo.com>
68535
68536         * gnulib-tool (--import): Typo.
68537
68538 2004-09-23  Simon Josefsson  <jas@extundo.com>
68539
68540         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
68541
68542 2004-09-22  Bruno Haible  <bruno@clisp.org>
68543
68544         * modules/*: Add 'License' field.
68545         * gnulib-tool: Accept --extract-license option.
68546         (func_get_license): New function.
68547
68548 2004-09-21  Bruno Haible  <bruno@clisp.org>
68549
68550         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
68551         Reported by Simon Josefsson.
68552
68553 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68554
68555         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68556         gl_AC_TYPE_LONG_LONG.
68557
68558 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68559
68560         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68561
68562 2004-09-18  Simon Josefsson  <jas@extundo.com>
68563         and  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68566         calls with autoreconf.  Define GL_LIB.
68567
68568 2004-09-14  Karl Berry  <karl@gnu.org>
68569
68570         * config/srclist.txt: unsync setenv.c, sigh.
68571
68572 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68575         Problem reported by Bruno Haible in:
68576         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68577
68578 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68579
68580         * config/srclist.txt: Comment out argp-pvh.c.
68581
68582 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68585         in case some system header has #define'd it.  Problem reported by
68586         Soeren D. Schulze in
68587         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68588
68589 2004-09-09  Karl Berry  <karl@gnu.org>
68590
68591         * regex.[ch]: delete from the root.  These were supposed to be
68592                 synced with emacs cvs, but this has not happened for about
68593                 a year, and anyway nothing else uses emacs regex.[ch].
68594                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68595                 lib/regex[.ch] is untouched.
68596
68597 2004-09-09  Bruno Haible  <bruno@clisp.org>
68598
68599         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68600
68601 2004-09-09  Bruno Haible  <bruno@clisp.org>
68602
68603         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68604         modifications.
68605         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68606
68607 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68608
68609         * modules/xvasprintf: New file.
68610         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68611
68612 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68613
68614         * lib/xvasprintf.h: New file.
68615         * lib/xvasprintf.c: New file.
68616         * lib/xasprintf.c: New file.
68617
68618 2004-09-08  Bruno Haible  <bruno@clisp.org>
68619
68620         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68621
68622 2004-09-08  Bruno Haible  <bruno@clisp.org>
68623
68624         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68625         length is > INT_MAX.
68626         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68627         more.
68628
68629 2004-09-08  Bruno Haible  <bruno@clisp.org>
68630
68631         * lib/stdint_.h: New file, taken from GNU clisp.
68632
68633 2004-09-08  Bruno Haible  <bruno@clisp.org>
68634             Oskar Liljeblad  <oskar@osk.mine.nu>
68635
68636         * modules/stdint: New file.
68637         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68638
68639 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         Import from coreutils.
68642         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68643         strings on unbounded length.  alloca's performance benefits aren't
68644         that important here.
68645         (V_STRDUP): Remove.
68646         (parse_with_separator): New function, with most of the internals
68647         of the old parse_user_spec.  Allow user to omit both user and group,
68648         for compatibility with FreeBSD.
68649         Clone only the user name, not the entire spec.
68650         Do not set *uid, *gid unless entirely successful.
68651         Avoid memory leak in some failing cases.
68652         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68653         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68654         (parse_user_spec): Rewrite to use parse_with_separator.
68655
68656 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68657
68658         * modules/userspec: Don't depend on alloca.
68659
68660 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68661
68662         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68663
68664 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68667         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68668         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68669
68670 2004-08-16  Simon Josefsson  <jas@extundo.com>
68671
68672         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68673         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68674         Add --dry-run for --import.
68675         Let user provided command line parameters override configure.ac
68676         settings.
68677
68678 2004-08-12  Simon Josefsson  <jas@extundo.com>
68679
68680         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68681         as discussed with Paul Eggert in threads rooted at
68682         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68683         and
68684         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68685         Before, the test was empty, and relied on ELIDE_CODE in source
68686         code.)
68687         (gl_PREREQ_GETOPT): New macro.
68688         (gl_GETOPT): Use them.
68689
68690 2004-08-12  Simon Josefsson  <jas@extundo.com>
68691
68692         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68693         * lib/getopt_.h: Renamed from getopt.h.
68694
68695 2004-08-12  Simon Josefsson  <jas@extundo.com>
68696
68697         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68698         Change default library name from libfoo to libgnu.
68699         Now, if you have a configure.ac that says:
68700                 gl_SOURCE_BASE(gl)
68701                 gl_M4_BASE(gl/m4)
68702                 gl_MODULES(error getopt etcetera)
68703                 gl_INIT
68704         you can import all you need by running:
68705                 ../gnulib/gnulib-tool --import
68706
68707         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68708         (Makefile.am): Rewrite, use logic from argz.
68709         (Include): Use <getopt.h> instead of "getopt.h".
68710
68711 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68712
68713         * modules/argp (Files): Add m4/unlocked-io.m4.
68714         (Depends-on): Add extensions.
68715
68716 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68717
68718         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68719         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68720         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68721         Check for program_invocation_name, program_invocation_short_name,
68722         flockfile, funlockfile, features.h, _getopt_long_only_r.
68723
68724 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68727         its complicated substitute.
68728         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68729         and program_invocation_name.
68730         (__argp_basename) [!_LIBC]: Remove; the only use was
68731         replaced by its body.
68732         (__argp_short_program_name): Change condition from
68733         !defined __argp_short_program_name to
68734         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68735         to match argp-namefrob.h.
68736         (__argp_failure): Don't assume strerror_r returns char *.
68737         * lib/argp-parse.c (N_): Define unconditionally.
68738         (argp_default_options): Fill out initializers with 0 to avoid
68739         gcc warnings.
68740
68741 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68742
68743         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68744         getopt1.c.
68745
68746 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68747
68748         Merge from coreutils.
68749
68750         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68751
68752         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68753         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68754
68755 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68756
68757         Merge from coreutils.
68758
68759         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68760         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68761         for Reliant Unix 5.43.
68762
68763         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68764         (union fooround): Use uintmax_t, not long int.
68765         The rest is a merge from libc:
68766         [defined _LIBC]: Include <shlib-compat.h>.
68767         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68768
68769         * lib/settime.c (settime): Recode to avoid warning with
68770         Sun Forte C 6U2.
68771
68772         * lib/strverscmp.c: Convert to UTF-8.
68773
68774 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68775
68776         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68777         m4/uintmax_t.m4.
68778
68779 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         * modules/xalloc-die: New file.
68782         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68783
68784         * modules/md5 (Files): Add m4/uint32_t.m4.
68785         * modules/sha1: Renamed from modules/sha.
68786         (Files):
68787         Rename lib/sha.h to lib/sha1.h.
68788         Rename lib/sha.c to lib/sha1.c.
68789         Rename m4/sha.m4 to m4/sha1.m4.
68790         (lib_SOURCES): Likewise.
68791         (configure.ac): Rename gl_SHA to gl_SHA1.
68792         (Include): sha.h -> sha1.h.
68793
68794 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68795
68796         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68797         * m4/sha1.m4: Renamed from sha.m4.
68798         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68799
68800 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68801
68802         * lib/obstack.h (obstack_empty_p):
68803         Don't assume that chunk->contents is suitably aligned.
68804         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68805         Likewise. Problem reported by Benno in
68806         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68807
68808         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68809         readable.  This could be improved further but it'd take some work.
68810
68811 2004-08-08  Simon Josefsson  <jas@extundo.com>
68812
68813         * modules/xgethostname (Depends-on): Remove exit and error (not
68814         used).
68815
68816         * modules/getpass-gnu: Add getpass.h.
68817         (Depends-on): Add stdbool.
68818         * modules/getpass: Add getpass.h.
68819
68820 2004-08-08  Simon Josefsson  <jas@extundo.com>
68821
68822         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68823         Check getpass declaration.
68824
68825 2004-08-08  Simon Josefsson  <jas@extundo.com>
68826
68827         * lib/xgethostname.c: Don't include error.h (not used).
68828
68829         * lib/getpass.h: Add.
68830         * lib/getpass.c: Include getpass.h first.
68831
68832 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68833
68834         * lib/xalloc-die.c: New file.
68835         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68836         All uses removed.
68837         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68838         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68839         xalloc-die.c.
68840         (_, N_, xalloc_die): Move to xalloc-die.c.
68841         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68842         so that we needn't mess with xalloc_msg_memory_exhausted.
68843
68844         * lib/sha1.h: Renamed from sha.h.
68845         (SHA1_H): Renamed from _SHA_H.
68846         (sha1_ctx): Renamed from sha_ctx.
68847         (sha1_init_ctx): Renamed from sha_init_ctx.
68848         (sha1_process_block): Renamed from sha_process_block.
68849         (sha1_process_bytes): Renamed from sha_process_bytes.
68850         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68851         (sha1_read_ctx): Renamed from sha_read_ctx.
68852         (sha1_stream): Renamed from sha_stream.
68853         (sha1_buffer): Renamed from sha_buffer.
68854         * lib/sha1.c: Likewise; renamed from sha.c.
68855         Do not include <sys/types.h>.
68856         Include <stddef.h> rather than <stdlib.h>.
68857
68858 2004-08-08  Bruno Haible  <bruno@clisp.org>
68859
68860         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68861         FILESYSTEM_PREFIX_LEN.
68862         * lib/progreloc.c: Likewise.
68863         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68864
68865 2004-08-06  Simon Josefsson  <jas@extundo.com>
68866
68867         * modules/progname (Depends-on): Don't depend on stdbool.
68868
68869 2004-08-06  Simon Josefsson  <jas@extundo.com>
68870
68871         * modules/getsubopt: New file.
68872         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68873         getsubopt.
68874
68875 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68876
68877         More merge from coreutils.
68878
68879         * m4/utimens.m4, m4/utimecmp.m4: New files.
68880         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68881         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68882         prereq.m4, sha.m4: Import changes from coreutils.
68883
68884 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68885
68886         More merge from coreutils.
68887         * modules/raise, modules/readtokens0, modules/utimens:
68888         * modules/utimecmp, module/xnanosleep: New files.
68889         * modules/strftime: Add lib/strftime.h.
68890         Change include from <time.h> to "strftime.h".
68891         * modules/yesno: Add lib/yesno.h.
68892         * modules/backupfile: Remove lib/addext.c.
68893         * modules/euidaccess: Add stat-macros.h.
68894         * modules/canonicalize, modules/euidaccess,
68895         modules/filemode, modules/lchown, modules/makepath,
68896         modules/rmdir, modules/stat: Likewise.
68897
68898 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68899
68900         Merge from tar.
68901         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68902         SIZE_MAX is a valid preprocessor constant.
68903         (__argp_basename): Change from "#ifndef _LIBC"
68904         to "#ifndef __argp_short_program_name", so that
68905         we don't compile these functions for tar.
68906
68907         More merges from coreutils.
68908         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68909         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68910         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68911         * lib/addext.c: Remove; no longer needed.
68912         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68913         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68914         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68915         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68916         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68917         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68918         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68919         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68920         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68921         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68922         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68923         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68924         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68925         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68926         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68927         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68928         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68929         Import changes from coreutils.
68930
68931 2004-08-05  Simon Josefsson  <jas@extundo.com>
68932
68933         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68934
68935 2004-08-05  Simon Josefsson  <jas@extundo.com>
68936
68937         * m4/getsubopt.m4: New file.
68938
68939 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         Merge from coreutils.
68942
68943         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68944         * m4/getcwd-path-max.m4: New files.
68945
68946         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68947         FILESYSTEM_PREFIX_LEN ->
68948         FILE_SYSTEM_PREFIX_LEN.
68949         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68950         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68951         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68952         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68953
68954         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68955         prerequisite modules now handle the DOS stuff.
68956         Don't check for unistd.h.
68957
68958 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68959
68960         Merge from coreutils.
68961
68962         * lib/.gdb-history: Remove; this doesn't belong here.
68963
68964         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68965         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68966         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68967         * lib/getcwd.c: New files.
68968
68969         * lib/dirname.h: Include <stdbool.h>.
68970         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68971         for consistency with POSIX terminology.  All uses changed.
68972         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68973         (strip_trailing_slashes): Use bool for booleans.
68974         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68975
68976         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68977         sometimes returns a positive errno value even when it succeeds.
68978         (print_errno_message) [!LIBC]: Fall back on strerror if
68979         __strerror_r fails.
68980
68981         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68982         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68983         (longest_relative_suffix): New function.
68984         (path_concat): Use it.  Assume first argument is not NULL.
68985         Port to DOS.  Omit redundant separators.
68986         Report an error instead of returning NULL.
68987         Use mempcpy instead of memcpy.
68988         (xpath_concat): Remove: not declared or used.
68989
68990         * lib/same.h: Include <stdbool.h>
68991         (same_name): Return bool, not int.
68992         * lib/same.c (same_name): Likewise.
68993         (errno): Don't declare; we assume C89 or better now.
68994
68995         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68996         if not already defined.
68997
68998         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68999         * lib/dup-safer.c (errno): Likewise.
69000
69001 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         Merge from coreutils.
69004         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69005         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69006         * modules/path-concat: Don't depend on strdup.
69007
69008 2004-08-03  Simon Josefsson  <jas@extundo.com>
69009
69010         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69011         * lib/progname.h: Don't include stdbool.h.
69012
69013 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69016         * MODULES.html.sh (func_all_modules): Remove fatal.
69017
69018 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69019
69020         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69021
69022 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69025         working.
69026
69027 2004-08-02  Simon Josefsson  <jas@extundo.com>
69028
69029         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69030         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69031         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69032
69033 2004-08-01  Simon Josefsson  <jas@extundo.com>
69034
69035         * lib/xgetdomainname.c: Include stdlib.h, for free().
69036
69037 2004-07-19  Bruno Haible  <bruno@clisp.org>
69038
69039         * MODULES.html.sh (func_all_modules): Add dummy.
69040
69041 2004-07-16  Simon Josefsson  <jas@extundo.com>
69042
69043         * modules/dummy: New file.
69044
69045 2004-07-16  Simon Josefsson  <jas@extundo.com>
69046
69047         * lib/dummy.c: New file.
69048
69049 2004-07-16  Bruno Haible  <bruno@clisp.org>
69050
69051         * lib/backupfile.h: Add extern "C" for C++.
69052         * lib/closeout.h: Likewise.
69053         * lib/copy-file.h: Likewise.
69054         * lib/findprog.h: Likewise.
69055         * lib/full-write.h: Likewise.
69056         * lib/pathname.h: Likewise.
69057         * lib/progname.h: Likewise.
69058         * lib/stpcpy.h: Likewise.
69059         * lib/stpncpy.h: Likewise.
69060         * lib/strcase.h: Likewise.
69061         * lib/strstr.h: Likewise.
69062         * lib/xalloc.h: Likewise.
69063
69064         * lib/mbswidth.h: Add extern "C" for C++.
69065         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69066
69067 2004-07-13  Robert Millan  <robertmh@gnu.org>
69068
69069         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69070
69071 2004-07-09  Simon Josefsson  <jas@extundo.com>
69072
69073         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69074         failed without this.)
69075
69076 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69077
69078         * modules/chown (Files): Add lib/fchown-stub.c, since
69079         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69080
69081 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * lib/fchown-stub.c: New file.
69084
69085 2004-06-24  Jim Meyering  <jim@meyering.net>
69086
69087         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69088
69089 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         * modules/argz: Omit "#include".
69092
69093         * MODULES.html.sh (func_all_modules): Add calloc, to match
69094         2004-06-01 addition of calloc module.
69095
69096 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69097
69098         * m4/argz.m4: New file, which is autoupdated from libtool.
69099
69100 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69101
69102         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69103         libtool.
69104
69105 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69106
69107         * config/srclist-update: Don't insist on "USA." before the
69108         close-comment, as libtool omits the period and puts the */ on a
69109         separate line.
69110         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69111         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69112
69113 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69114
69115         * modules/argz: New file.
69116         * MODULES.html.sh (func_all_modules): Add argz.
69117
69118 2004-06-12  Jim Meyering  <jim@meyering.net>
69119         and  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * modules/hash (Files): Add lib/xalloc.h.
69122         * modules/pipe (Depends-on): Add wait-process.
69123         * modules/stat (Depends-on): Add xalloc.
69124         * modules/userspec (Files): Add lib/userspec.h.
69125         * modules/xstrto
69126
69127         Upgrade from gettext-0.13.
69128         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69129         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69130         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69131
69132 2004-06-10  Jim Meyering  <jim@meyering.net>
69133
69134         * lib/calloc.c: New file.
69135
69136 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69137
69138         * lib/getdate.y (yylex): Allow space between sign and number.
69139         Problem reported by Dan Jacobson.
69140
69141 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69142
69143         Merge from coreutils CVS.
69144
69145         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69146         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69147         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69148         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69149         xstrtol.m4: Fix copyright date and/or serial number.
69150
69151         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69152         See if we need an fchown replacement.
69153         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69154         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69155         and use the replacement function if we detect either defect.
69156
69157         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69158         gl_UTIMECMP.
69159
69160 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69161         and  Jim Meyering  <jim@meyering.net>
69162
69163         Merge from coreutils CVS.
69164
69165         * lib/stat-macros.h: New file, with contents from file-type.h
69166         and coreutils' system.h.
69167         * lib/file-type.c: Include "stat-macros.h".
69168         * lib/file-type.h (file_type): Move all macro definitions to new file,
69169         stat-macros.h.
69170
69171         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69172         Wrap old code with this conditional.
69173         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69174         function that does not dereference symlinks.
69175         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69176
69177         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69178         dependency problems.
69179         (xreadlink): Accept new arg SIZE, for efficiency.
69180         All decls and uses changed.
69181         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69182
69183         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69184         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69185
69186         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69187         sysexits.h.
69188
69189 2004-06-01  Jim Meyering  <jim@meyering.net>
69190
69191         * m4/calloc.m4: New file.
69192
69193 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69194
69195         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69196         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69197         Also, fix a typo in a diagnostic.
69198
69199 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69202         or AC_FUNC_REALLOC.
69203
69204 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69205
69206         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69207         macros to be defined.
69208         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69209         the allocator returns NULL because the requested size is zero.
69210
69211 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69212
69213         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69214         var.  Add comment explaining why libc still defines it.  This
69215         merges the following patch from glibc:
69216         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69217
69218 2004-05-20  Andreas Schwab  <schwab@suse.de>
69219
69220         * m4/free.m4: Replace free if it not known to work, not the other
69221         way round.
69222
69223 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69224
69225         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69226         present in glibc since revision 1.1 of this file.
69227         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69228         obstack_alignment_mask, obstack_alloc, obstack_base,
69229         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69230         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69231         obstack_grow0, obstack_init, obstack_int_grow,
69232         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69233         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69234         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69235         nonexistent functions.
69236
69237 2004-05-18  Karl Berry  <karl@gnu.org>
69238
69239         * config/srclist.txt: break link for vasnprintf.c.
69240
69241 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         Port obstack to the AS/400, where pointers are 16 bytes wide and
69244         you cannot cast an integer to a valid pointer.  This patch is
69245         currently waiting to be integrated into glibc; see
69246         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69247
69248         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69249         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69250         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69251         (struct obstack): temp member is now a union of a pointer and
69252         an integer, instead of an integer.  All integer uses changed.
69253         This does not affect the physical layout of struct obstack,
69254         except on hosts (like the AS/400) where the size or alignment of
69255         void * is greater than that of ptrdiff_t.
69256         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69257         __STDC__)]: Store temporary in pointer member of union, not
69258         integer member.
69259         * lib/obstack.c: Include <stddef.h>, for offsetof.
69260         (struct fooalign): Remove; it doesn't need a name.
69261         (union fooround): Change double to long double, and add void *.
69262         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69263         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69264         not a macro.  Hence the values are always int; so remove all
69265         casts-to-int in uses.
69266
69267 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69268
69269         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69270         we can get this patch merged into glibc.
69271
69272 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69273             Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * m4/argp: Depend on alloca.
69276
69277 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69278             Paul Eggert  <eggert@cs.ucla.edu>
69279
69280         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69281         freecoding.
69282
69283 2004-05-17  Bruno Haible  <bruno@clisp.org>
69284
69285         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69286         precision that consists of a '.' followed by an empty digit string.
69287         Patch by Tor Lillqvist <tml@iki.fi>.
69288
69289 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69290
69291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69292         for backward compatibility with older code.  We need our own
69293         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69294         it under some other name, and our alloca.h will define it.
69295
69296 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69297             Derek Price  <derek@ximbiot.com>
69298
69299         * lib/alloca.c: Include <alloca.h>, to get our interface.
69300         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69301         include <alloca.h> first.  Use C89 prototype for alloca; this
69302         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69303         Use #elif for simplicity, since we can assume C89 now.
69304         Don't try to source the system alloca.h since it will not be found
69305         and to prevent recursively including its replacement.
69306         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69307         * lib/regex.c: Likewise.
69308
69309 2004-05-16  Derek Price  <derek@ximbiot.com>
69310             Paul Eggert  <eggert@cs.ucla.edu>
69311
69312         getline cleanup.  This changes the getndelim2 API: both order of
69313         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69314         no delimiter).
69315
69316         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69317         interface does that.
69318         (getline): Always use getdelim, so that we don't have two
69319         copies of this code.
69320         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69321         if available.
69322         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69323         (GETNDELIM2_MAXIMUM): New macro.
69324         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69325         instead of the old practice of delim2==0.  All callers changed.
69326         Return -1 on overflow, instead of returning junk.
69327         Do not set *linesize unless allocation succeeds.
69328         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69329         that we include sys/types.h.
69330         * lib/getnline.h: Likewise.
69331         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69332         (getndelim2): Reorder arguments.
69333         * lib/getnline.c (getnline, getndelim):
69334         Don't discard the NMAX argument.
69335         (getnline): Invoke getndelim, to avoid code duplication.
69336         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69337         of (size_t) -1 by callers of the getnline family.
69338
69339 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
69342         Check for gettimeofday.
69343         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
69344         Check for settimeofday, stime.
69345
69346 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * lib/nanosleep.c (suspended): Change its type from int to
69349         sig_atomic_t volatile.
69350         (first_call): Make it private to rpl_nanosleep, and have it
69351         be zero initially as that's a bit faster.
69352         (my_usleep): Round up fractional times instead of truncating them,
69353         as this is the usual meaning for 'sleep'.
69354
69355         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
69356         doesn't work.
69357         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
69358         (ENOSYS): Define if not defined.
69359         (settime): Fall back on stime if it exists and settimeofday fails.
69360         But don't bother with fallbacks if a method fails with errno == EPERM.
69361
69362 2004-05-11  Jim Meyering  <jim@meyering.net>
69363
69364         Prior to this change, the save_cwd caller required read access to the
69365         current directory on most systems (ones with the fchdir function).
69366
69367         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
69368         fails, try write-only, and finally, resort to using xgetcwd.
69369
69370 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69371
69372         * lib/obstack.c, obstack.h: Import changes from libc.
69373
69374 2004-04-28  Bruno Haible  <bruno@clisp.org>
69375
69376         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
69377         also implicitly appends .exe to executables.
69378         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
69379         accepts Windows pathnames.
69380         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69381         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69382         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69383         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69384         Reported by Derek Robert Price <derek@ximbiot.com>.
69385
69386 2004-04-21  Karl Berry  <karl@gnu.org>
69387
69388         * config/srclist.txt (localcharset.c): break sync.
69389
69390 2004-04-20  Paul Eggert  <eggert@twinsun.com>
69391
69392         * m4/host-os.m4: Add a copyright notice.
69393
69394 2004-04-20  Jim Meyering  <jim@meyering.net>
69395
69396         Change UTILS_ to gl_ in AC_DEFINE'd names.
69397         Change utils_- and jm_-prefixed variables, too.
69398         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
69399         UTILS_FUNC_MKDIR_TRAILING_SLASH.
69400         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
69401
69402         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
69403         Don't emit trailing blanks.
69404         Also rename jm_-prefixed variables to have gl_ prefix.
69405
69406         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
69407         Also rename jm_-prefixed variables to have gl_ prefix.
69408
69409         * m4/jm-macros.m4: Reflect the renamings.
69410         * m4/prereq.m4: Likewise.
69411
69412 2004-04-20  Jim Meyering  <jim@meyering.net>
69413
69414         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
69415         memory.
69416
69417 2004-04-20  Jim Meyering  <jim@meyering.net>
69418             Bruno Haible  <bruno@clisp.org>
69419
69420         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
69421         memory when realloc fails.
69422
69423 2004-04-19  Jim Meyering  <jim@meyering.net>
69424
69425         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
69426         now that readutmp.c may call `free (0)'.
69427
69428 2004-04-19  Bruno Haible  <bruno@clisp.org>
69429
69430         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
69431         * m4/inttypes_h.m4: Likewise.
69432         * m4/stdint_h.m4: Likewise.
69433         * m4/intmax_t.m4: Likewise.
69434         * m4/uintmax_t.m4: Likewise.
69435
69436 2004-04-18  Jim Meyering  <jim@meyering.net>
69437
69438         * m4/prereq.m4: Don't forbid jm_ prefix.
69439
69440         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
69441         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
69442         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
69443         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
69444         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
69445         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
69446         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
69447         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
69448         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
69449         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
69450         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
69451         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
69452         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
69453         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
69454         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
69455         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
69456         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
69457         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
69458         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
69459
69460 2004-04-18  Jim Meyering  <jim@meyering.net>
69461
69462         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
69463         failure, don't leak memory and do call END_UTMP_ENT.
69464
69465 2004-04-16  Jim Meyering  <jim@meyering.net>
69466
69467         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
69468         coreutils' stat program.
69469         (gl_PREREQ): Don't require jm_PREREQ_STAT.
69470
69471 2004-04-11  Paul Eggert  <eggert@twinsun.com>
69472
69473         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
69474         C89.
69475         (CHAR_BIT): Remove, since we assume C89.
69476         Include <stdint.h> if available, as per current Autoconf CVS advice.
69477
69478 2004-03-31  Jim Meyering  <jim@meyering.net>
69479
69480         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
69481         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
69482         * m4/xalloc.m4: Likewise.
69483
69484 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69485
69486         Merge from coreutils.
69487
69488         * m4/inttostr.m4: New file.
69489         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
69490         Require AM_STDBOOL_H and gl_TIMESPEC instead.
69491         Require gl_CLOCK_TIME.
69492         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
69493
69494 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69495
69496         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
69497         not bool, to be more consistent with Unix conventions.
69498         Suggested by Bruno Haible.
69499
69500         Merge from coreutils.
69501
69502         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
69503         * lib/umaxtostr.c: New files.
69504
69505         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
69506         the usual <time.h> dance.
69507         (get_date): Change signature to support fractional time stamps.
69508         All callers changed.
69509         * lib/getdate.y: Include "getdate.h" first, as we can now
69510         assume C89 and don't need to worry about 'const'.
69511         Similarly, include "unlocked-io.h" near start, not in middle.
69512         Include <limits.h>.
69513         (textint.value): Use long int rather than int.
69514         (textint.digits): Use size_t rather than int.
69515         (BILLION, LOG10_BILLION): New constants.
69516         (parser_control): New member rel_ns.  Members day_ordinal,
69517         time_zone, month, day, hour, minutes, rel_year, rel_month,
69518         rel_day, rel_hour, rel_minutes, rel_seconds
69519         are now long int, not int.  Member seconds is now struct timespec,
69520         not int.  New member timespec_seen.  Members dates_seen, days_seen,
69521         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
69522         not int.
69523         (%union.intval): Now long int, not int.
69524         New member timespec.
69525         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
69526         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
69527         (spec): Now is a timespec or an item list.
69528         (timespec, items): New nonterminals.
69529         (time, rel, relunit, number, get_date):
69530         Add support for fractional seconds.
69531         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
69532         (gmtime, localtime, mktime): Remove decls; not needed with C89.
69533         (to_hour): First arg is now long int, not int.
69534         (to_year): Returns long int, not int.
69535         Don't treat year -70 like 70.
69536         (tm_diff): Returns long int, not int.
69537         (lookup_word): Use bool instead of int when appropriate.
69538         (yylex): Use size_t for count, not int.
69539         Detect overflow when parsing large integer constants.
69540         Add support for fractions.
69541         (get_date): Make pointers 'const' if possible.
69542         Use more-portable code to detect integer overflow.
69543         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
69544         Don't use ctime; it's not reliable if the year has >4 digits.
69545
69546         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
69547         This is for compatibility with BSD.
69548
69549         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
69550         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
69551         From coreutils' system.h.
69552
69553         * lib/userspec.c: Don't include "posixver.h".
69554         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69555         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69556         compatible extension.  Simplify code by removing a boolean int
69557         that was always nonzero if a string was nonnull.
69558
69559 2004-03-30  Jim Meyering  <jim@meyering.net>
69560
69561         Merge from coreutils.
69562
69563         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69564         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69565         on some systems one must include <grp.h> before it.
69566         Reported by Christian Krackowizer.
69567
69568 2004-03-30  Jim Meyering  <jim@meyering.net>
69569
69570         Merge from coreutils.
69571
69572         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69573
69574         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69575         an empty input stream.
69576
69577         * lib/readtokens.c: Include <stdbool.h>.
69578         (readtoken): Use `size_t' rather than int/long.
69579         All callers adjusted.
69580         Use `bool' rather than `int' where appropriate.
69581         Use memset rather than an explicit loop.
69582         Use x2nrealloc rather than xrealloc.
69583         Allow the use of `\0' as a delimiter.
69584         (readtokens): Likewise.
69585         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69586
69587 2004-03-30  Jim Meyering  <jim@meyering.net>
69588
69589         * m4/realloc.m4: Remove file, since now it does no more than
69590         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69591         the `configure.ac' section of module/realloc.
69592         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69593
69594 2004-03-30  Bruno Haible  <bruno@clisp.org>
69595
69596         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69597         nonnull.
69598
69599 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69600
69601         Merge changes to getloadavg.c from coreutils and Emacs.
69602
69603         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69604         Define to an expression, not to the empty string.
69605         Include cloexec.h and xalloc.h.
69606         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69607         Use set_cloexec_flag rather than rolling our own.
69608         * lib/cloexec.c, lib/cloexec.h: New files.
69609
69610 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69611
69612         * m4/cloexec.m4: New file.
69613
69614 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69615
69616         * lib/getopt.h: Sync with libc CVS.
69617
69618 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69619             Bruno Haible  <bruno@clisp.org>
69620
69621         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69622         mbswidth.
69623
69624 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69625             Bruno Haible  <bruno@clisp.org>
69626
69627         * lib/mbswidth.h: Include <wchar.h> only if
69628         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69629         <wchar.h>.
69630         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69631
69632 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69633
69634         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69635         Sync with libc CVS.
69636         * lib/getopt_int.h: New file, also synced from libc.
69637
69638 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69639
69640         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69641         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69642         Bring back getopt.c, getopt.h, getopt1.c.
69643
69644 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69645
69646         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69647         All uses changed.  Check for sa_sigaction member; this fixes
69648         a bug first reported by Jason Andrade in
69649         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69650
69651 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69652
69653         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69654         '#if' expressions.  Unlike the code it replaces, it does not
69655         depend on (defined _SC_PAGESIZE).  However, it does depend on
69656         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69657         first reported by Jason Andrade in
69658         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69659
69660 2004-02-25  Simon Josefsson  <jas@extundo.com>
69661
69662         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69663
69664 2004-02-25  Simon Josefsson  <jas@extundo.com>
69665
69666         * lib/strdup.h: New file.
69667         * lib/strdup.c: Include it.
69668         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69669         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69670
69671 2004-02-23  Karl Berry  <karl@gnu.org>
69672
69673         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69674         (from fencepost.gnu.org:/gd/gnuorg).
69675
69676 2004-02-23  Karl Berry  <karl@gnu.org>
69677
69678         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69679         * config/srclist.txt: add maintain/standards documents.
69680
69681 2004-02-18  Bruno Haible  <bruno@clisp.org>
69682
69683         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69684         Reported by Derek Robert Price <derek@ximbiot.com>.
69685
69686 2004-02-16  Karl Berry  <karl@gnu.org>
69687
69688         * config/mkinstalldirs, install-sh: update from automake.
69689
69690 2004-02-06  Karl Berry  <karl@gnu.org>
69691
69692         * m4/po.m4: update from gettext 0.14.1.
69693
69694 2004-02-06  Karl Berry  <karl@gnu.org>
69695
69696         * lib/config.charset: update from gettext 0.14.1.
69697
69698 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69699
69700         Add comments and code, prompted by suggestions from Bruno Haible
69701         for sh-quote.
69702         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69703         describing the enum quoting_style values.
69704         * lib/quotearg.c (quotearg_alloc): New function.
69705         (quotearg_buffer_restyled): Treat lone { and } as special.
69706         Treat = as special.  Work around bug with older shells
69707         that "see" a '\' that is really the 2nd byte of a multibyte char.
69708         Quote empty string with shell_quoting_style.
69709
69710 2004-02-03  Bruno Haible  <bruno@clisp.org>
69711
69712         * m4/pipe.m4: New file, from GNU gettext.
69713
69714 2004-02-03  Bruno Haible  <bruno@clisp.org>
69715
69716         * lib/pipe.h: New file, from GNU gettext.
69717         * lib/pipe.c: New file, from GNU gettext.
69718
69719 2004-01-27  Bruno Haible  <bruno@clisp.org>
69720
69721         * m4/execute.m4: New file, from GNU gettext.
69722
69723 2004-01-27  Bruno Haible  <bruno@clisp.org>
69724
69725         * lib/execute.h: New file, from GNU gettext.
69726         * lib/execute.c: New file, from GNU gettext.
69727         * lib/w32spawn.h: New file, from GNU gettext.
69728
69729 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69730
69731         Merge from diffutils.
69732
69733         * lib/file-type.c (file_type): Add typed memory objects.
69734         * lib/file-type.h (S_TYPEISTMO): New macro.
69735
69736         * lib/c-stack.h (c_stack_action): Remove argv argument.
69737         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69738         (die): Don't calculate message unless segv_action returns.
69739         (get_stack_location, min_address_from_argv, max_address_from_argv,
69740         volatile stack_base, volatile_stack_size): Remove.
69741         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69742         that every segmentation violation is a stack overflow.  (Ouch!)
69743         See Debian bug 136249 (still outstanding) for more info about why
69744         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69745
69746 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69747
69748         Exit-status fix from coreutils.
69749
69750         Use exit_failure consistently in place of EXIT_FAILURE,
69751         so that program exit statuses are consistent on failure.
69752
69753         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69754         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69755         * lib/argmatch.h: Comment fix to match the above.
69756         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69757         Now a macro referring to exit_failure, instead of a separate
69758         variable.  Include "exitfail.h" to get it.
69759         * lib/xstrtol.h: Include "exitfail.h".
69760         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69761
69762         * lib/long-options.c (parse_long_options): Use prototype
69763         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69764         for clarity.
69765
69766 2004-01-21  Jim Meyering  <jim@meyering.net>
69767
69768         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69769         so as not to conflict with a different-sized __mktime_internal
69770         function in GNU libc.
69771         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69772         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69773
69774 2004-01-20  Karl Berry  <karl@gnu.org>
69775
69776         * config/config.guess: update from config.
69777
69778         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69779
69780 2004-01-20  Bruno Haible  <bruno@clisp.org>
69781
69782         Safer stack allocation.
69783         * lib/setenv.c: Include allocsa.h.
69784         (alloca): Remove fallback definition.
69785         (freea): Remove macro.
69786         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69787         instead of freea.
69788
69789 2004-01-20  Bruno Haible  <bruno@clisp.org>
69790
69791         * m4/eealloc.m4: New file, from GNU gettext.
69792
69793 2004-01-20  Bruno Haible  <bruno@clisp.org>
69794
69795         * m4/allocsa.m4: New file, from GNU gettext.
69796
69797 2004-01-20  Bruno Haible  <bruno@clisp.org>
69798
69799         * lib/xallocsa.h: New file, from GNU gettext.
69800         * lib/xallocsa.c: New file, from GNU gettext.
69801
69802 2004-01-20  Bruno Haible  <bruno@clisp.org>
69803
69804         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69805
69806 2004-01-20  Bruno Haible  <bruno@clisp.org>
69807
69808         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69809         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69810         specially.
69811
69812 2004-01-20  Bruno Haible  <bruno@clisp.org>
69813
69814         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69815         patch.
69816
69817 2004-01-20  Bruno Haible  <bruno@clisp.org>
69818
69819         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69820
69821 2004-01-20  Bruno Haible  <bruno@clisp.org>
69822
69823         * lib/eealloc.h: New file.
69824
69825 2004-01-20  Bruno Haible  <bruno@clisp.org>
69826
69827         * lib/binary-io.h: Avoid warnings on Cygwin.
69828
69829 2004-01-20  Bruno Haible  <bruno@clisp.org>
69830
69831         * lib/allocsa.h: New file, from GNU gettext.
69832         * lib/allocsa.c: New file, from GNU gettext.
69833
69834 2004-01-18  Karl Berry  <karl@gnu.org>
69835
69836         * doc/gpl.texi, doc/lgpl.texi: new files.
69837
69838 2004-01-18  Karl Berry  <karl@gnu.org>
69839
69840         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69841         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69842
69843 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69844
69845         Merge from coreutils.
69846
69847         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69848         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69849         (gl_DEFAULT_POSIX2_VERSION): Move
69850         the documentation from 'configure' into 'config.hin',
69851         so that 'configure --help' isn't burdened by it and
69852         we don't have to worry about its formatting there.
69853         Reword the documentation so that it's more succinct
69854         and can be run together into a single paragraph.
69855         * m4/same.m4 (gl_SAME): Check for pathconf.
69856
69857 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69858
69859         Merge from coreutils.
69860
69861         * lib/posixver.c: Include posixver.h.
69862
69863         * lib/same.c: Include <stdbool.h>, <limits.h>.
69864         (_POSIX_NAME_MAX): Define if not defined.
69865         (MIN): New macro.
69866         (same_name): If file names are silently truncated, report
69867         that the file names are the same if they are the same after
69868         the silent truncation.
69869
69870         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69871         conversion function.
69872         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69873         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69874         longer needed.
69875
69876 2004-01-15  Jim Meyering  <jim@meyering.net>
69877
69878         Merge from coreutils.
69879
69880         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69881         if no library is required.
69882         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69883         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69884         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69885         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69886         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69887         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69888         value, $ac_cv_search_crypt, if it's "none required".
69889         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69890         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69891         not gl_FUNC_GETLOADAVG.
69892         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69893         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69894
69895 2004-01-15  Jim Meyering  <jim@meyering.net>
69896
69897         Merge from coreutils.
69898
69899         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69900         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69901         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69902
69903         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69904         optional configure-time default.
69905
69906         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69907
69908         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69909
69910 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69911
69912         Merge from coreutils.
69913
69914         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69915         value, $ac_cv_search_nanosleep, if it's "none required".
69916
69917 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69918
69919         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69920         with like-named macro in fnmatch.c.
69921         (EXT): Use an internal constant instead.
69922
69923         Merge fnmatch patches from glibc.
69924         * lib/fnmatch.c (mbsinit): Remove define.
69925         Add libc_hidden_ver (__fnmatch, fnmatch).
69926         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69927         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69928
69929 2004-01-14  Karl Berry  <karl@gnu.org>
69930
69931         * config/install-sh: update from automake.
69932
69933 2004-01-13  Karl Berry  <karl@gnu.org>
69934
69935         * config/install-sh: update from automake.
69936
69937 2004-01-09  Karl Berry  <karl@gnu.org>
69938
69939         * config/install-sh: update from automake.
69940
69941 2004-01-05  Karl Berry  <karl@gnu.org>
69942
69943         * config/config.{sub,guess}: update from config.
69944
69945 2003-12-31  Karl Berry  <karl@gnu.org>
69946
69947         * config/depcomp: update from automake.
69948
69949 2003-12-14  Karl Berry  <karl@gnu.org>
69950
69951         * lib/config.charset: update from gettext-runtime.
69952
69953 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69954
69955         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69956         Bug reported by Alfred M. Szmidt.
69957
69958 2003-12-03  Bruno Haible  <bruno@clisp.org>
69959
69960         * m4/gettext.m4: Upgrade from gettext-0.13.
69961         * m4/po.m4: Upgrade from gettext-0.13.
69962         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69963         * m4/intmax.m4: New file, from gettext-0.13.
69964         * m4/printf-posix.m4: New file, from gettext-0.13.
69965
69966 2003-11-29  Karl Berry  <karl@gnu.org>
69967
69968         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69969
69970 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69971             Bruno Haible  <bruno@clisp.org>
69972
69973         * lib/printf-parse.h: Don't include sys/types.h.
69974         (ARG_NONE): New macro.
69975         (char_directive): Change type of *arg_index fields to size_t.
69976         * lib/printf-parse.c: Don't include sys/types.h.
69977         (SSIZE_MAX): Remove macro.
69978         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69979         Remove unnecessary overflow check.
69980         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69981         fields.
69982
69983 2003-11-25  Bruno Haible  <bruno@clisp.org>
69984
69985         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69986
69987 2003-11-25  Bruno Haible  <bruno@clisp.org>
69988
69989         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69990         gt_TYPE_SSIZE_T.
69991
69992 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69993
69994         * modules/alloca: Remove dependency on xalloc.
69995
69996 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69997
69998         * lib/alloca.c: Remove dependency on xalloc module.
69999         (xalloc_die): Remove.
70000         (memory_full) [!defined emacs]: New macro.
70001         [!defined emacs]: Don't include xalloc.h.
70002         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70003         address arithmetic overflows.  Change datatypes a bit to avoid
70004         unnecessary casts.
70005
70006 2003-11-22  Jim Meyering  <jim@meyering.net>
70007
70008         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70009         s/size/size_t/.
70010
70011 2003-11-21  Karl Berry  <karl@gnu.org>
70012
70013         * config/config.{sub,guess}: update from config.
70014
70015 2003-11-18  Karl Berry  <karl@gnu.org>
70016
70017         * config/config.{sub,guess}: update from config.
70018
70019         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70020
70021 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70022
70023         * README: Mention that S+T cannot overflow if S is the size of
70024         an existing object and T is sufficiently small.
70025
70026 2003-11-17  Jim Meyering  <jim@meyering.net>
70027
70028         On systems without utime and without a utimes function capable of
70029         dealing with a NULL struct utimbuf* argument, this utime replacement
70030         could -- in unusual circumstances -- leak a file descriptor.
70031         * lib/utime.c: Include <unistd.h> and <errno.h>.
70032         (utime_null): Be sure to close `fd' and to preserve errno.
70033         Reported by Geoff Collyer via Arnold Robbins.
70034
70035 2003-11-17  Bruno Haible  <bruno@clisp.org>
70036
70037         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70038         (Depends-on): Add xsize.
70039
70040 2003-11-17  Bruno Haible  <bruno@clisp.org>
70041
70042         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70043
70044 2003-11-17  Bruno Haible  <bruno@clisp.org>
70045
70046         * lib/vasnprintf.c (alloca): Remove fallback definition.
70047         (freea): Remove definition.
70048         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70049         Reported by Paul Eggert.
70050
70051 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70052             Bruno Haible  <bruno@clisp.org>
70053
70054         Protect against address arithmetic overflow.
70055         * lib/printf-args.h: Include stddef.h.
70056         (arguments): Change type of field 'count' to size_t.
70057         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70058         'unsigned int' where appropriate.
70059         * lib/printf-parse.h: Include sys/types.h.
70060         (char_directive): Change type of *arg_index fields to ssize_t.
70061         (char_directives): Change type of fields 'count', max_*_length to
70062         size_t.
70063         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70064         (SSIZE_MAX): Define fallback value.
70065         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70066         instead of 'int' where appropriate. Check a_allocated, d_allocated
70067         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70068         * lib/vasnprintf.c: Include xsize.h.
70069         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70070         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70071         overflow. Avoid wraparound when converting a width or precision from
70072         decimal to binary.
70073
70074 2003-11-16  Bruno Haible  <bruno@clisp.org>
70075
70076         Update from GNU gettext.
70077         * lib/printf-parse.c: Generalize to it can be compiled for wide
70078         strings.
70079         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70080         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70081         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70082         SNPRINTF): New macros.
70083         Don't include <alloca.h> if the file is used inside libintl.
70084         (local_wcslen): New function, for Solaris 2.5.1.
70085         (VASNPRINTF): Use it instead of wcslen.
70086
70087 2003-11-16  Bruno Haible  <bruno@clisp.org>
70088
70089         * lib/xsize.h (xmax): New function.
70090         (xsum, xsum3, xsum4): Declare as "pure" functions.
70091
70092 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70093
70094         * modules/xalloc (Files): Undo latest change, since xalloc.h
70095         no longer needs SIZE_MAX or PTRDIFF_MAX.
70096
70097 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70098
70099         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70100         gl_PTRDIFF_MAX.
70101
70102 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70103
70104         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70105         "return", to pacify some unknown compiler.  Problem reported
70106         by Joerg Schilling.
70107
70108 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70109
70110         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70111         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70112         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70113         heuristic is just as accurate as far as we know, and it removes a
70114         dependency on size_max.m4 and ptrdiff_max.m4.
70115
70116 2003-11-11  Bruno Haible  <bruno@clisp.org>
70117
70118         * modules/xsize (Files): Add m4/size_max.m4.
70119         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70120
70121 2003-11-11  Bruno Haible  <bruno@clisp.org>
70122
70123         * m4/size_max.m4: New file.
70124         * m4/ptrdiff_max.m4: New file.
70125         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70126         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70127         (gl_XALLOC): Invoke it.
70128
70129 2003-11-11  Bruno Haible  <bruno@clisp.org>
70130
70131         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70132         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70133         defined.
70134
70135 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70136
70137         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70138         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70139         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70140         From Bruno Haible.
70141         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70142         not (size_t) -1, since it's defined here.
70143
70144 2003-11-09  Karl Berry  <karl@gnu.org>
70145
70146         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70147
70148 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70149
70150         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70151         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70152         Reject sizes of exactly SIZE_MAX bytes.
70153         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70154         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70155
70156 2003-11-05  Bruno Haible  <bruno@clisp.org>
70157
70158         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70159         SIZE_MAX defined in <limits.h> on Solaris.
70160
70161 2003-11-04  Jim Meyering  <jim@meyering.net>
70162
70163         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70164         variable names, rather than @VAR@.
70165         * modules/poll: Likewise.
70166
70167 2003-11-04  Bruno Haible  <bruno@clisp.org>
70168
70169         * modules/xsize: New file.
70170         * modules/linebreak: Depend on xsize.
70171         * MODULES.html.sh (func_all_modules): Add xsize.
70172
70173 2003-11-04  Bruno Haible  <bruno@clisp.org>
70174
70175         * m4/xsize.m4: New file.
70176
70177 2003-11-04  Bruno Haible  <bruno@clisp.org>
70178
70179         * lib/xsize.h: New file.
70180         * lib/linebreak.c: Include xsize.h.
70181         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70182         argument for overflow.
70183         Suggested by Paul Eggert.
70184
70185 2003-11-03  Karl Berry  <karl@gnu.org>
70186
70187         * config/config.{guess,sub}: update from config.
70188
70189 2003-11-03  Jim Meyering  <jim@meyering.net>
70190
70191         * modules/userspec (lib_SOURCES): Add userspec.h.
70192         (Include): Add "userspec.h".
70193         Improve description.
70194
70195 2003-11-03  Jim Meyering  <jim@meyering.net>
70196
70197         * lib/userspec.c: Include "userspec.h".
70198         * lib/userspec.h: New file.
70199
70200 2003-11-03  Bruno Haible  <bruno@clisp.org>
70201
70202         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70203
70204 2003-11-03  Bruno Haible  <bruno@clisp.org>
70205
70206         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70207         available, to avoid (extremely rare) race condition.
70208         Suggested by Paul Eggert.
70209
70210 2003-11-02  Karl Berry  <karl@gnu.org>
70211
70212         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70213
70214 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70215
70216         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70217         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70218         (read_filesystem_list): Set and use me_type_malloced.
70219         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70220         whatever the type happens to be), for brevity and consistency.
70221         Check for size calculation overflow on Alphas running OSF/1.
70222
70223 2003-10-31  Jim Meyering  <jim@meyering.net>
70224
70225         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70226
70227         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70228
70229 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70230             Bruno Haible  <bruno@clisp.org>
70231
70232         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70233         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70234
70235 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70236
70237         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70238         netbsd*-gnu*.  Suggested by Robert Millan.
70239
70240 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70241
70242         * modules/group-member: Depend on stdbool.
70243
70244 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70245
70246         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70247
70248 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70249
70250         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70251         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70252         after the 'gnu' in these cases.  This fixes some bugs in the
70253         previous change, and is based on suggestions by Robert Millan.
70254
70255 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70256
70257         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70258         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70259         no longer needed.
70260         * lib/quotearg.c (quotearg_n_options): Use it.
70261         * lib/group-member.c: Include <stdbool.h>.
70262         (free_group_info): Arg is now const *; don't free arg.
70263         (get_group_info): Now returns bool and accepts struct group_info *,
70264         rather than returning a malloc'ed struct group_info *.
70265         All uses changed.  Check for overflow in internal size calculation.
70266
70267         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70268         rather than xmalloc/xrealloc.
70269         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70270         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70271         conformance bug: the old code used a pointer after freeing the
70272         storage that it addressed.
70273         * lib/hash.c (hash_initialize): Simplify the code by using
70274         xalloc_oversized rather than doing it by hand.
70275         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70276         the buffer preserved.  Use free and xmalloc instead.
70277         * lib/quotearg.c (quotearg_n_options): Likewise.
70278         Use a simpler test for size overflow.  Don't use xalloc_oversized
70279         because unsigned int might be wider than size_t (!); this suggests
70280         that we should switch from unsigned int to size_t for slot numbers.
70281
70282 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70283
70284         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70285         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70286         NetBSD kernels.  Requested by Richard Stallman.
70287
70288 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70289
70290         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70291         to allocate the returned structure.  Do not allocate a subarray,
70292         as x2nrealloc will do that.
70293         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70294         instead of xnrealloc.
70295         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70296
70297 2003-10-27  Bruno Haible  <bruno@clisp.org>
70298
70299         * lib/stdbool_.h: Better support for BeOS.
70300
70301 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70302
70303         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70304         now uses inline.
70305
70306 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70307
70308         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70309         callers that want to do their own size-overflow checking.  Include
70310         <stdbool.h>, since xalloc_oversized returns bool.
70311         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70312         to use xalloc_oversized.
70313
70314         Add two functions x2realloc, x2nrealloc, for programs that grow
70315         arrays dynamically by doubling their sizes.
70316         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70317         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70318         New functions.
70319
70320         Port to C99 semantics for 'inline' of external functions.
70321         Bug reported by Bruno Haible.
70322         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70323         with the old contents of xnmalloc.
70324         (xnmalloc, xmalloc): Use it.
70325         (xnrealloc_inline): New static inline function,
70326         with the old contents of xnrealloc.
70327         (xnrealloc, xrealloc): Use it.
70328
70329         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70330         that.
70331
70332 2003-10-26  Karl Berry  <karl@gnu.org>
70333
70334         * config/srclist.txt (COPYING.DOC): no longer available from
70335         /gd/gnuorg; don't know where the ultimate source is.
70336
70337 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70338
70339         Fix several address-calculation bugs in the hash modules,
70340         plus some minor code cleanup.
70341
70342         * lib/hash.h: Include <stdbool.h>, for bool.
70343         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
70344         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
70345         hash_get_n_entries, hash_get_max_bucket_length,
70346         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
70347         hash_rehash): Use size_t rather than unsigned.
70348         * lib/hash.c (struct hash_table, hash_get_n_buckets,
70349         hash_get_n_buckets_used, hash_get_n_entries,
70350         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
70351         hash_get_entries, hash_do_for_each, hash_string, is_prime,
70352         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
70353         Likewise.
70354         (SIZE_MAX): Define if not defined.
70355         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
70356         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
70357         hash_print):
70358         Use const * when possible.
70359         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
70360         (check_tuning): Fix bug: if tuning parameters were very close to
70361         0 or 1, rounding errors could have caused subscript violations.
70362         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
70363         (hash_initialize): Add 'fail:' label
70364         to free table and return NULL, and use it to simplify code.
70365         Use calloc rather than clearing the storage ourself.
70366         (hash_initialize, hash_rehash): Check for arithmetic overflow in
70367         buffer size calculations.
70368         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
70369         Include <stddef.h>, for size_t.
70370         * lib/hash-pjw.c (hash_pjw): Likewise.
70371         Switch to method described by Bruno Haible.
70372         Include <limits.h>, for CHAR_BIT.
70373         (SIZE_BITS): New macro.
70374
70375 2003-10-23  Paul Eggert  <eggert@twinsun.com>
70376
70377         * m4/getline.m4 (AM_FUNC_GETLINE):
70378         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
70379         hosts.  Problem reported by Derek Robert Price in
70380         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
70381         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
70382         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
70383
70384 2003-10-21  Paul Eggert  <eggert@twinsun.com>
70385
70386         * lib/getndelim2.c (getndelim2): When size calculation overflows,
70387         ceiling the allocation at NMAX bytes rather than silently
70388         discarding input bytes before NMAX is reached.  This makes
70389         a difference only if NMAX exceeds SIZE_MAX / 2.
70390
70391         * lib/obstack.c: Merge from glibc.
70392         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
70393         Add libc_hidden_def (_obstack_newchunk).
70394         (_obstack_free) [! defined _LIBC]: Remove.
70395         [defined _LIBC]: Make a strong alias from obstack_free, rather than
70396         a clone of the function body.
70397         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
70398         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
70399
70400         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
70401         glibc.
70402         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
70403         arg to memcpy.
70404
70405         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
70406         (obstack_ptr_grow_fast, obstack_int_grow_fast):
70407         Don't use lvalue casts, as GCC plans to remove support for them
70408         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
70409         was also present in the non-GCC version, indicating that this
70410         code had always been buggy and had never been widely used.
70411         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
70412         Use the fast variant of each macro, rather than copying the
70413         definiens of the fast variant; that way, we'll be more likely to
70414         catch future bugs in the fast variants.
70415
70416 2003-10-20  Bruno Haible  <bruno@clisp.org>
70417
70418         * modules/wait-process: New file.
70419         * MODULES.html.sh (func_all_modules): Add wait-process.
70420
70421 2003-10-20  Bruno Haible  <bruno@clisp.org>
70422
70423         * m4/wait-process.m4: New file.
70424
70425 2003-10-20  Bruno Haible  <bruno@clisp.org>
70426
70427         * lib/wait-process.h: New file, from GNU gettext.
70428         * lib/wait-process.c: New file, from GNU gettext.
70429
70430 2003-10-19  Jim Meyering  <jim@meyering.net>
70431
70432         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
70433         HPUX 10.20.
70434
70435 2003-10-18  Karl Berry  <karl@gnu.org>
70436
70437         * config/config.guess: update from config.
70438
70439 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70440
70441         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
70442         (getgroups): First arg is int, not size_t.
70443         Don't let 'free' mangle errno.
70444
70445 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70446
70447         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
70448
70449 2003-10-16  Karl Berry  <karl@gnu.org>
70450
70451         * config/config.{guess,sub}: update from config.
70452
70453 2003-10-16  Jim Meyering  <jim@meyering.net>
70454
70455         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
70456         memcpy.
70457
70458 2003-10-15  Paul Eggert  <eggert@twinsun.com>
70459
70460         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
70461         (SIZE_MAX): Remove.
70462         (new_exclude, add_exclude_file): Initial size no longer needs to
70463         be a power of 2.
70464         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
70465         our own address arithmetic overflow checking.
70466
70467         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
70468         (fnmatch): Do not alloca more than 2000 wide characters;
70469         instead, use malloc for large buffers.
70470         Check for address arithmetic overflow, and return -1
70471         with errno set to ENOMEM in that case.
70472         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
70473         (NEW_PATTERN): Do not alloca more than 8000 bytes;
70474         instead, return -1.  Check for address arithmetic overflow.
70475
70476 2003-10-14  Paul Eggert  <eggert@twinsun.com>
70477
70478         Handle invalid suffixes and overflow independently, so that
70479         callers can treat them independently as needed.  Fix some bugs in
70480         suffix handling, e.g., "100k@" was not diagnosed as an invalid
70481         suffix for a human-readable blocksize.  The major caller-visible
70482         change is the addition of a new
70483         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
70484         that both overflow and suffix chars were found.
70485
70486         * lib/human.c (humblock): Don't check separately for invalid suffix
70487         char; that is xstrtoumax's job (now that its bug is fixed).
70488         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
70489         INTMAX_MAX]: New macros.
70490         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
70491         TYPE_MAXIMUM): New macros.
70492         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
70493         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
70494         if overflow occurs, as it's what __strtol does and it's more useful
70495         in practice.
70496         (__xstrtol): If __strtol reports some error other than ERANGE,
70497         reflect it to the caller as LONGINT_INVALID.  If it reports
70498         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
70499         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
70500         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
70501         value.
70502         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
70503         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
70504         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
70505         [defined UINTMAX_MAX]: New macros.
70506
70507 2003-10-14  Bruno Haible  <bruno@clisp.org>
70508
70509         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
70510
70511 2003-10-14  Bruno Haible  <bruno@clisp.org>
70512
70513         * m4/sig_atomic_t: New file, from GNU gettext.
70514         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
70515
70516 2003-10-14  Bruno Haible  <bruno@clisp.org>
70517
70518         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
70519         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
70520         Also use volatile where needed.
70521
70522 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70523
70524         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
70525         Change maintainer from Bruno Haible to 'all'.
70526
70527 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70528
70529         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
70530
70531 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70532
70533         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
70534         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
70535         and define in terms of the other primitives.
70536         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
70537         (SIZE_MAX): Define if not already defined.
70538         (array_size_overflow): New function.
70539         (xalloc_die): Abort instead of exiting if 'error' returns.
70540         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
70541         (xmalloc, xrealloc): Use them.
70542         (xcalloc): Check for address arithmetic overflow.
70543         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
70544         a bit faster than strcpy.
70545
70546 2003-10-10  Simon Josefsson  <jas@extundo.com>
70547
70548         * modules/argp (Depends-on): Add restrict and strcase.
70549
70550 2003-10-10  Simon Josefsson  <jas@extundo.com>
70551
70552         * m4/argp.m4: Add AC_C_INLINE.
70553
70554 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70555
70556         Merge getpass from libc, plus a few fixes.
70557
70558         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70559         Include <stdbool.h>.
70560         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70561         __fsetlocking to empty.
70562         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70563         do include <bits/libc-lock.h>.
70564         Do not include <fcntl.h>; not needed.
70565         [_LIBC]: Include <wchar.h>.
70566         (NOTCANCEL_MODE): New macro.
70567         (flockfile, funlockfile) [_LIBC]: New macros.
70568         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70569         [!_LIBC]: New macros.
70570         (call_fclose): New function.
70571         (getpass): Use it.  Save tty stream separately; this simplifies the
70572         code and makes it more reliable if stdin happens to equal stdout.
70573         Invoke __fsetlocking on tty.
70574         Handle thread cancellation if needed.
70575         Namespace cleanup (use __tcgetattr, __getline).
70576         Use bool for Booleans.
70577         [USE_IN_LIBIO]: Handle wide streams.
70578         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70579         stream might go where.
70580
70581         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70582         doesn't have to include <stdio.h> before us.
70583         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70584         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70585         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70586         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70587         if not declared, so that we can use getpass.c code from libc without
70588         rewriting it.
70589         (flockfile, ftrylockfile, funlockfile): New macros.
70590
70591 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70592
70593         * modules/getpass: Depend on stdbool.
70594
70595 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70596
70597         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70598
70599 2003-10-07  Karl Berry  <karl@gnu.org>
70600
70601         * config/config.{guess,sub}: update from config.
70602
70603 2003-10-06  Jim Meyering  <jim@meyering.net>
70604             Bruno Haible  <bruno@clisp.org>
70605
70606         This lets translators provide better translations for the
70607         "Written by ..." part of --version output.
70608         * lib/version-etc.h: Include stdarg.h.
70609         (version_etc_copyright): Declare as readonly.
70610         (version_etc): Make this function variadic with a NULL-terminated list
70611         of author name strings.
70612         (version_etc_va): New declaration.
70613         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70614         (version_etc_copyright): Declare as readonly.
70615         (version_etc_va): New function. Provide a different translatable string
70616         for each possible number of authors < 10. Abbreviate when there are 10
70617         authors or more.
70618         (version_etc): Make this function variadic. Call version_etc_va.
70619         Suggestion from Gary V. Vaughan.
70620
70621         * lib/long-options.h (parse_long_options): Change prototype: the
70622         authors string is moved to the end and becomes variadic.
70623         * lib/long-options.c: Include stdarg.h.
70624         (parse_long_options): Make this function variadic, too.
70625         Call version_etc_va, not version_etc.
70626
70627 2003-10-06  Bruno Haible  <bruno@clisp.org>
70628
70629         * modules/version-etc-2: Remove file.
70630         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70631
70632 2003-10-06  Bruno Haible  <bruno@clisp.org>
70633
70634         * modules/fatal-signal: New file.
70635         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70636
70637 2003-10-06  Bruno Haible  <bruno@clisp.org>
70638
70639         * m4/fatal-signal.m4: New file.
70640         * m4/signalblocking.m4: New file, from GNU gettext.
70641
70642 2003-10-06  Bruno Haible  <bruno@clisp.org>
70643
70644         * lib/version-etc-2.h: Remove file.
70645         * lib/version-etc-2.c: Remove file.
70646
70647 2003-10-06  Bruno Haible  <bruno@clisp.org>
70648
70649         * lib/fatal-signal.h: New file, from GNU gettext.
70650         * lib/fatal-signal.c: New file, from GNU gettext.
70651
70652 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70653
70654         * README: Rework advice for preventing empty .o files.
70655         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70656         not <sys/types.h>.
70657
70658 2003-10-04  Karl Berry  <karl@gnu.org>
70659
70660         * lib/argp*: update from libc.
70661
70662 2003-10-04  Karl Berry  <karl@gnu.org>
70663
70664         * config/config.{guess,sub}: update from config.
70665
70666 2003-10-02  Bruno Haible  <bruno@clisp.org>
70667
70668         * modules/lchown (Include): Add lchown.h.
70669         * modules/time_r (Include): Use "..." syntax.
70670         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70671
70672 2003-10-01  Simon Josefsson  <jas@extundo.com>
70673
70674         * MODULES.html.sh (func_all_modules): Move gethostname from section
70675         'based on' to section 'lacking' POSIX:2001.
70676
70677 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70678
70679         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70680         to output mode on the same stream.
70681
70682 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70683
70684         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70685         Fix arg typo in previous patch.
70686
70687 2003-09-28  Jim Meyering  <jim@meyering.net>
70688
70689         * lib/error.c: Correct cpp indentation.
70690
70691 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70692
70693         * modules/free: New file.
70694
70695 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70696
70697         * m4/free.m4: New file.
70698
70699 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70700
70701         * lib/minmax.h (MIN, MAX)
70702         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70703         Omit the special code that used __typeof__, since we worry that
70704         it could be more trouble than it's worth.  See:
70705         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70706         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70707
70708         * lib/free.c: New file.
70709
70710 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70711
70712         Trivial fixes to Makefile.am parts of module listings.
70713         * modules/strstr: Append strstr.h to lib_SOURCES.
70714         * modules/strcase: Likewise, for strcase.h.
70715
70716 2003-09-27  Karl Berry  <karl@gnu.org>
70717
70718         * config/mkinstalldirs: update from automake.
70719
70720 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70721
70722         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70723         (error_tail): Do not loop, reallocating temporary buffer, since
70724         the output cannot contain more wide characters than the input
70725         contains bytes, the size must be big enough already.  This avoids
70726         one potential size overflow calculation.  Check for size overflow
70727         when calculating temporary buffer size.  Free temporary buffer
70728         when done, if it was allocated with malloc; this plugs a memory
70729         leak.  Remove casts from void * to pointers, that are no longer
70730         needed now that we're assuming C89 or better.
70731
70732         Merge error changes from glibc.
70733
70734         * lib/error.c, error.h: Update copyright notice header to match glibc.
70735         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70736         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70737         Disable cancellation while printing error.
70738         * lib/error.h: Prepend __ to parameter names.
70739
70740 2003-09-26  Jim Meyering  <jim@meyering.net>
70741
70742         * lib/error.c (error_tail): Move some declarations
70743         into inner scope where the local variables are used.
70744
70745 2003-09-26  Bruno Haible  <bruno@clisp.org>
70746
70747         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70748         stpncpy().
70749         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70750
70751 2003-09-26  Bruno Haible  <bruno@clisp.org>
70752
70753         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70754         (stpncpy): Define as alias for gnu_stpncpy.
70755         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70756
70757 2003-09-25  Simon Josefsson  <jas@extundo.com>
70758
70759         * lib/xgetdomainname.h: New file.
70760         * lib/xgetdomainname.c: New file.
70761
70762 2003-09-25  Simon Josefsson  <jas@extundo.com>
70763             Bruno Haible  <bruno@clisp.org>
70764
70765         * modules/getdomainname: New file.
70766         * modules/xgetdomainname: New file.
70767         * MODULES.html.sh (func_all_modules): Add getdomainname,
70768         xgetdomainname.
70769
70770 2003-09-25  Simon Josefsson  <jas@extundo.com>
70771             Bruno Haible  <bruno@clisp.org>
70772
70773         * m4/getdomainname.m4: New file.
70774
70775 2003-09-25  Simon Josefsson  <jas@extundo.com>
70776             Bruno Haible  <bruno@clisp.org>
70777
70778         * lib/getdomainname.h: New file.
70779         * lib/getdomainname.c: New file.
70780
70781 2003-09-25  Karl Berry  <karl@gnu.org>
70782
70783         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70784
70785 2003-09-25  Karl Berry  <karl@gnu.org>
70786
70787         * config/install-sh: update from automake.
70788
70789 2003-09-25  Bruno Haible  <bruno@clisp.org>
70790
70791         * modules/version-etc-2: New file, from modules/version-etc with
70792         modifications.
70793         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70794
70795 2003-09-25  Bruno Haible  <bruno@clisp.org>
70796
70797         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70798         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70799
70800 2003-09-24  Simon Josefsson  <jas@extundo.com>
70801
70802         * modules/xgethostname: Add xgethostname.h.
70803
70804 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70805
70806         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70807         the buffer associated with the argument.  Bug reported by
70808         Simon Josefsson.
70809
70810 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70811
70812         * README: Document assumptions that 'int' is at least 32 bits
70813         wide, that integer arithmetic is 2's complement without overflow,
70814         that there are no holes in integer values, that adding sizes of
70815         two nonoverlapping objects can't overflow, and that all-bits-zero
70816         yields scalar zero.  Fix spelling and capitalization typos.
70817
70818 2003-09-19  Karl Berry  <karl@gnu.org>
70819
70820         * lib/argp.h: update from libc.
70821
70822 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70823
70824         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70825         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70826         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70827
70828 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70829
70830         * gnulib-tool: Use "test -h", not "test -L", for portability
70831         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70832         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70833         (sed_extract_prog): Issue s commands one-by-one, rather than
70834         using \| in one s command.
70835
70836 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70837
70838         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70839         input error, instead of returning NULL the next time we are called
70840         (and therefore losing track of errno).
70841
70842 2003-09-16  Bruno Haible  <bruno@clisp.org>
70843
70844         * gnulib-tool (func_create_testdir): Warn about duplicated
70845         dependencies.
70846
70847 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70848
70849         * modules/argmatch, modules/fatal, modules/obstack,
70850         modules/xalloc, modules/xgethostname: Sort dependencies by
70851         importance, not alphabetically.
70852
70853 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70854
70855         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70856         fails, so that the caller gets the proper errno.
70857
70858         * lib/readutmp.c (read_utmp): Likewise.
70859         Check for fstat error.  Close stream and free storage
70860         when failing.
70861
70862 2003-09-14  Karl Berry  <karl@gnu.org>
70863
70864         * config/srclist.txt (strdup.c): disable for c89 changes.
70865
70866 2003-09-14  Jim Meyering  <jim@meyering.net>
70867
70868         * lib/getloadavg.c: Correct cpp indentation.
70869         * lib/strdup.c: Likewise.
70870         * lib/vasnprintf.c: Likewise.
70871
70872 2003-09-14  Bruno Haible  <bruno@clisp.org>
70873
70874         * modules/fwriteerror: New file.
70875         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70876
70877 2003-09-14  Bruno Haible  <bruno@clisp.org>
70878
70879         * lib/fwriteerror.h: New file.
70880         * lib/fwriteerror.c: New file.
70881
70882 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70883
70884         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70885         modules/xgethostname, modules/xalloc: Depend on exit.
70886
70887 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70888
70889         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70890
70891         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70892         and AC_MINIX, too, so that their extensions are available.
70893
70894         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70895         This macro has been superseded by gl_BACKUPFILE.
70896
70897         More patches to assume C89 or better.
70898
70899         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70900
70901         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70902         unconditionally.
70903         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70904         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70905         Include <string.h>, <stdlib.h> unconditionally.
70906         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70907         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70908         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70909         headers or for string.h.
70910         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70911         or strtoul.
70912
70913         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70914         headers.
70915         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70916         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70917         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70918         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70919         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70920         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70921         memcpy, memset.
70922         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70923         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70924         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70925         strtol.
70926         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70927         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70928         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70929         strtoul.
70930
70931 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70932
70933         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70934         * lib/obstack.c [!defined _LIBC]: Likewise.
70935         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70936         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70937         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70938
70939         More changes to assume C89 or better.
70940
70941         * lib/error.c (error_tail): Assume vprintf.
70942
70943         * lib/argmatch.c (getenv): Remove decl.
70944         * lib/progreloc.c (get_full_program_name): Define via prototype.
70945         * lib/setenv.c (clearenv): Likewise.
70946         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70947         needed.
70948         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70949         (malloc, memcpy): Remove decls.
70950         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70951         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70952         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70953         (memcpy): Remove macro.
70954         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70955         (__P): Remove.  All uses removed.
70956         (PTR): Remove.  All uses changed to void *.
70957         (CHAR_BIT, NULL): Remove.
70958         (spaces, zeros, memset_space, memset_zero)
70959         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70960         Remove.
70961         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70962         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70963         Define with prototype.
70964         Remove now-unnecessary prototype decl.
70965         (extra_args_spec): Assume ANSI C.  All uses changed.
70966         (extra_args_spec_iso): Remove.
70967         (my_strftime, emacs_strftimeu): Define via prototype.
70968         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70969         unconditionally.
70970         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70971         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70972         (strtoul, strtol): Remove decls.
70973         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70974         LONG_MAX): Remove.
70975         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70976         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70977         (LOCALE_PARAM_PROTO): New macro.
70978         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70979         (INTERNAL (strtol), strtol): Define with a prototype.
70980         (PARAMS): Remove.  All uses removed.
70981         * lib/tempname.c: Include <string.h> unconditionally.
70982         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70983         * lib/xgethostname.c (main): Define with a prototype.
70984         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70985         Include <stdlib.h> unconditionally.
70986         (calloc, malloc, realloc, free): Remove decls.
70987         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70988         Include <stdlib.h> unconditionally.  Sort include file names.
70989         (strtod): Remove.
70990         (xstrtod): Define with a prototype.
70991         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70992         (strtol, strtoul): Remove decls.
70993
70994 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70995
70996         More patches to assume C89 or better.
70997         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70998         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70999         string.h, memchr, STDC_HEADERS.
71000
71001 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71002
71003         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71004         Include <stdlib.h>, <string.h> unconditionally.
71005         Remove now-unnecessary cast to char *.
71006         * lib/strnlen.c: Include <string.h> unconditionally.
71007         * lib/yesno.c (yesno): Define with a prototype.
71008
71009 2003-09-11  Bruno Haible  <bruno@clisp.org>
71010
71011         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71012
71013 2003-09-10  Jim Meyering  <jim@meyering.net>
71014
71015         * lib/error.c: Correct indentation of cpp directives.
71016
71017 2003-09-10  Bruno Haible  <bruno@clisp.org>
71018
71019         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71020         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71021         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71022         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71023         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71024         <stdlib.h> and <string.h> checks.
71025         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71026         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71027
71028 2003-09-10  Bruno Haible  <bruno@clisp.org>
71029
71030         * lib/strcspn.c: Include <string.h> unconditionally.
71031         * lib/strpbrk.c: Include <string.h> unconditionally.
71032         * lib/strstr.c: Include <string.h> unconditionally.
71033         * lib/unicodeio.c: Include <string.h> unconditionally.
71034         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71035         * lib/unsetenv.c: Likewise.
71036         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71037         * lib/yesno.c: Include <stdlib.h> unconditionally.
71038         (rpmatch): Add prototype.
71039
71040 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71041
71042         More patches to assume C89 or better.
71043         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71044         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71045         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71046         or for string.h.
71047         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71048         stdlib.h.
71049         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71050         C headers.
71051         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71052         string.h.
71053         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71054         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71055         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71056         or for string.h.
71057         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71058         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71059         C headers.
71060         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71061         memcpy.
71062         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71063         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71064         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71065         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71066         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71067         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71068         string.h, free.
71069         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71070         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71071         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71072         C headers, or for string.h.
71073         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71074         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71075         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71076         headers, memory.h, stdlib.h, string.h, strings.h.
71077         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71078         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71079         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71080         strchr.
71081         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71082         headers, memory.h, string.h.
71083         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71084         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71085         free.
71086         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71087         headers.
71088         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71089         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71090         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71091         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71092         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71093
71094 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71095
71096         More K&R removal.
71097
71098         * lib/acosl.c (main): Use a prototype.
71099         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71100         tanl.c: Likewise.
71101
71102         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71103
71104         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71105         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71106         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71107         with a prototype.
71108         * lib/getopt.c (const): Remove macro.
71109         Include <string.h> unconditionally.
71110         (my_index): Remove; all uses changed to strchr.
71111         (strlen): Remove decl.
71112         (exchange): Remove forward decl; no longer needed.
71113         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71114         Define with prototype.
71115         * lib/getopt1.c (const): Remove macro.
71116         (getopt_long, getopt_long_only, main): Define with prototype.
71117
71118         * lib/getugroups.c: Include <string.h> unconditionally.
71119
71120         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71121         (getusershell, setusershell, endusershell, readname, main):
71122         Define with prototypes.
71123
71124         * lib/group-member.c: Include group-member.h first.
71125         Include <stdlib.h> unconditionally.
71126
71127         * lib/hard-locale.c: Include hard-locale.h first.
71128         Include <stdlib.h>, <string.h> unconditionally.
71129
71130         * lib/hash.c (free, malloc): Remove decls.
71131         Include <stdlib.h> unconditionally.
71132
71133         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71134         (getenv): Do not declare.
71135
71136         * lib/idcache.c: Include <string.h> unconditionally.
71137
71138         * lib/long-options.c: Include long-options.h first, to test interface.
71139         Include <stdlib.h> unconditionally.
71140
71141         * lib/makepath.c: Include makepath.h first, to test interface.
71142         Include <stdlib.h> and <string.h> unconditionally.
71143
71144         * lib/linebuffer.c: Include <stdlib.h>.
71145         (free): Remove decl.
71146
71147         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71148         stddef.h. rpl_malloc returns void *, not char *.
71149         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71150         prototype.
71151
71152         * lib/md5.h: Include <limits.h> unconditionally.
71153         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71154         (__P): Remove; all uses removed.
71155         * lib/md5.c: Include "md5.h" first.
71156         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71157         md5_buffer, md5_process_bytes, md5_process_block):
71158         Define with prototypes.
71159         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71160         * lib/sha.c: Include "sha.h" first.
71161         Include <stdlib.h>, <string.h> unconditionally.
71162
71163         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71164         * lib/memcmp.c (__ptr_t): Likewise.
71165         * lib/memrchr.c (__ptr_t): Likewise.
71166         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71167         Include <string.h> unconditionally.
71168         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71169         * lib/memchr.c: Include <stdlib.h> unconditionally.
71170         * lib/memchr.c (LONG_MAX): Remove.
71171         * lib/memrchr.c (LONG_MAX): Likewise.
71172         * lib/memchr.c (__memchr): Define via a prototype.
71173         * lib/memrchr.c (__memrchr): Likewise.
71174         * lib/memcmp.c (__P): Remove, and remove all uses.
71175         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71176         Remove forward decls; no longer needed.
71177         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71178         Use types required by C89 in prototype.
71179
71180         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71181         * lib/savedir.c: Likewise.
71182         * lib/mkdir.c (free): Remove decl.
71183         * lib/rmdir.c (rmdir): Define with a prototype.
71184         * lib/savedir.c: Include savedir.h first, to test interface.
71185
71186         * lib/mktime.c (STDC_HEADERS): Remove.
71187         Include <stdlib.h>, <string.h> unconditionally.
71188
71189         * lib/modechange.c: Include <stdlib.h> unconditionally.
71190         (malloc): Remove decl.
71191
71192         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71193         (free): Remove decl.
71194
71195         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71196         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71197         (This type really should be intptr_t, but that's a C99ism.)
71198         (_obstack_memcpy): Remove: all uses changed to memcpy.
71199         Include <string.h> unconditionally.
71200         (struct obstack): Assume __STDC__ for types of members
71201         chunkfun, freefun, extra_arg.
71202         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71203         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71204         obstack_begin, obstack_specify_allocation,
71205         obstack_specify_allocation_with_arg, obstack_chunkfun,
71206         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71207         Remove unprototyped decls and the macros that use them.
71208         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71209         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71210         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71211         (defined __STDC__ && __STDC__)]:
71212         Remove nonprototyped code.
71213         Include <stdlib.h> unconditionally.
71214         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71215         _obstack_allocated_p, _obstack_free, obstack_free,
71216         _obstack_memory_used, print_and_abort):
71217         Define using prototypes.
71218         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71219         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71220         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71221         obstack_next_free, obstack_object_size, obstack_room) [0]:
71222         Remove unused, unprototyped code.
71223
71224         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71225
71226         * lib/physmem.c (physmem_total, physmem_available, main): Define
71227         with prototypes.
71228
71229         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71230         (main): Define with a prototype.
71231
71232         * lib/posixver.c (getenv): Remove decl.
71233
71234         * lib/putenv.c (malloc): Returns void *, not char *.
71235         Include <string.h> unconditionally.
71236         (strchr, memcpy, NULL): Do not define.
71237
71238         * lib/readtokens.c: Include readtokens.h first, to test interface.
71239         Include <stdlib.h>, <string.h> unconditionally.
71240         (init_tokenbuffer): Define with a prototype.
71241
71242         * lib/regex.c (PARAMS): Remove.  All uses removed.
71243         All uses of _RE_ARGS removed, too.
71244         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71245         unconditionally.
71246         (bzero): Assume memset exists.
71247         (memcmp, memcpy, NULL): Remove.
71248         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71249         char, or assignments to local vars of type signed char.
71250         (init_syntax_once, PREFIX(extract_number_and_incr),
71251         PREFIX(print_partial_compiled_pattern),
71252         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71253         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71254         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71255         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71256         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71257         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71258         wcs_compile_range, byte_compile_range, truncate_wchar,
71259         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71260         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71261         count_mbs_length, wcs_re_match_2_internal,
71262         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71263         PREFIX(alt_match_null_string_p),
71264         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71265         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71266         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71267         now-unnecessary declaration, if any.
71268         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71269         regcomp, regexec):
71270         Remove now-unnecessary casts among pointer types.
71271         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71272
71273         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71274         (free): Remove decl.
71275
71276         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71277
71278         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71279         (free): Remove decl.
71280
71281         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71282         * lib/xgetcwd.c: Likewise.
71283
71284         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71285         (free): Remove decl.
71286
71287         * lib/strchrnul.c (strchrnul): Define with a prototype.
71288         Fix bug: c_in was not converted to char before searching.
71289
71290         The following changes are not K&R related:
71291
71292         * lib/group-member.h: Include <sys/types.h>, so that this file is
71293         self-contained.
71294         * lib/makepath.h: Likewise.
71295
71296         * lib/getusershell.c (readname, default_index, line_size, readname):
71297         Use size_t, not int, for sizes.
71298         (readname): If the size overflows, report an error instead of
71299         looping forever.
71300
71301 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71302
71303         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71304         libc.
71305
71306 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71307
71308         * README: New section: portability guidelines.
71309
71310 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71311
71312         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71313         C89 spec.
71314
71315 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71316
71317         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71318
71319 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71320
71321         Assume C89 or better; remove K&R cruft.
71322         A few of these changes were first proposed by Derek Robert Price
71323         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71324
71325         * lib/addext.c: Include <string.h> unconditionally.
71326         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71327         Don't declare getenv or malloc.
71328
71329         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71330         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71331         (NULL): Remove.
71332         (find_stack_direction, alloca): Use prototypes.
71333
71334         * lib/atexit.c (atexit): Define using a prototype.
71335
71336         * lib/basename.c, dirname.c, stripslash.c:
71337         Include <string.h> unconditionally.
71338
71339         * lib/bcopy.c: Include <stddef.h>.
71340         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
71341
71342         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
71343
71344         * lib/error.h (error, error_at_line, error_print_progname)
71345         [! (defined (__STDC__) && __STDC__)]: Remove decls.
71346         * lib/error.c: Include error.h first, to check interface.
71347         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71348         (VA_START): Remove; all uses changeed to va_start.
71349         (exit, strerror): Remove decls.
71350         (error_print_progname): Prototype uncondionally.
71351         Don't include <errno.h>; no longer needed.
71352         (private_strerror): Remove.
71353         (error_tail): Always define.
71354         (error, error_at_line): Assume C89 or better; always use prototypes.
71355         * lib/fatal.c: Include "fatal.h" first, to test interface.
71356         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71357         (VA_START): Remove; all uses changed to va_start.
71358         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
71359         this case.
71360         (exit): Remove decl.
71361         (fatal): Prototype unconditionally.  Assume va_start works.
71362         Abort at end, to pacify gcc.
71363
71364         * lib/euidaccess.c (main): Define with a prototype.
71365
71366         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
71367
71368         * lib/exitfail.c: Include <stdlib.h> unconditionally.
71369
71370         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
71371         prototypes.
71372         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
71373         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
71374         (getenv): Remove decl.
71375         (fnmatch): Define using a prototype.
71376         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
71377         (FCT): Define using a prototype.
71378
71379         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
71380
71381         * lib/gethostname.c: Include <stddef.h>.
71382         (gethostname): Define with prototype.  Length is size_t, not int.
71383
71384 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71385
71386         Assume C89 or better; remove K&R cruft.
71387         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
71388         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
71389         string.h, getenv, malloc.
71390         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
71391         headers.
71392         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
71393         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
71394         do not check for strerror.
71395         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
71396         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
71397         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
71398         do not check for doprnt or vprintf.
71399         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
71400         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
71401
71402 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71403
71404         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
71405         getversion.c should have been removed then, but was accidentally
71406         preserved.
71407
71408         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
71409         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
71410
71411 2003-09-08  Karl Berry  <karl@gnu.org>
71412
71413         * config/config.sub, config.guess, srclistvars.sh: update from savannah
71414                 config, forget about prep.
71415
71416         * config/depcomp, missing: update from automake.
71417
71418 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71419
71420         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
71421         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71422
71423 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71424
71425         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
71426         copy_tm_result.  Bug reported by Simon Josefsson in
71427         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71428
71429 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71430
71431         * m4/time_r.m4: New file.
71432         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
71433         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
71434         is. Check for timegm declaration.
71435         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
71436         Do not check for gmtime_r.
71437         Replace mktime if __mktime_internal does not exist and if mktime
71438         hasn't been replaced already.
71439
71440 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71441
71442         * lib/time_r.c, lib/time_r.h: New files.
71443
71444         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
71445         __localtime_r.
71446         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
71447         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
71448
71449         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
71450         __gmtime_r.
71451         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
71452         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
71453         Include <time_r.h>.
71454
71455         * lib/timegm.c: Switch to glibc implementation, with the following
71456         changes:
71457         [defined HAVE_CONFIG_H]: Include <config.h>.
71458         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
71459         (__mktime_internal) [!defined _LIBC]: New decl.
71460         (__gmtime_r) [!defined _LIBC]: New macro and function.
71461         (timegm): Use a prototype, since gnulib assumes C89.
71462         Do not bother declaring tmp to be const, as it's not really usefu.
71463         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
71464         (timegm): Declare only if HAVE_DECL_TIMEGM.
71465
71466 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71467
71468         * MODULES.html.sh (func_all_modules): Add time_r.
71469         * modules/time_r: New file.
71470         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
71471         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
71472
71473 2003-09-03  Paul Eggert  <eggert@twinsun.com>
71474
71475         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
71476         Bug reported by Lute Kamstra in
71477         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
71478
71479         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
71480         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
71481         course with correspondingly smaller numbers for tomorrow and
71482         yesterday.  From Tadayoshi Funaba.  Originally installed into
71483         sh-utils on 1999-08-07, but the patch got lost (I guess during the
71484         coreutils merge?).
71485
71486 2003-08-31  Simon Josefsson  <jas@extundo.com>
71487
71488         * modules/timegm: New file.
71489         * MODULES.html.sh (func_all_modules): Add timegm.
71490
71491 2003-08-31  Simon Josefsson  <jas@extundo.com>
71492
71493         * m4/timegm.m4: New file.
71494
71495 2003-08-31  Simon Josefsson  <jas@extundo.com>
71496
71497         * lib/timegm.h: New file.
71498         * lib/timegm.c: New file.  Based on
71499         wget-1.8.2/src/http.c:mktime_from_utc.
71500
71501 2003-08-31  Karl Berry  <karl@gnu.org>
71502
71503         * lib/argp.h: update from libc.
71504
71505 2003-08-28  Bruno Haible  <bruno@clisp.org>
71506
71507         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
71508         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
71509         followed by '#define fnmatch fnmatch_posix' gives an error.
71510
71511 2003-08-28  Bruno Haible  <bruno@clisp.org>
71512
71513         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
71514         warning on QNX, which defines O_BINARY to 000000.
71515
71516 2003-08-27  Jim Meyering  <jim@meyering.net>
71517
71518         * m4/mkstemp.m4: Require that the system mkstemp be able to create
71519         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
71520         would fail after 32.  Reported by Danny Levinson.  Details here:
71521         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
71522
71523 2003-08-24  Bruno Haible  <bruno@clisp.org>
71524
71525         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
71526         MSVC7 <stdio.h> is included later.
71527
71528 2003-08-22  Simon Josefsson  <jas@extundo.com>
71529
71530         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
71531
71532 2003-08-20  Karl Berry  <karl@gnu.org>
71533
71534         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
71535
71536 2003-08-20  Bruno Haible  <bruno@clisp.org>
71537
71538         * modules/progname: New file.
71539         * MODULES.html.sh (func_all_modules): Add progname.
71540
71541 2003-08-20  Bruno Haible  <bruno@clisp.org>
71542
71543         * lib/progname.h: New file, from GNU gettext.
71544         * lib/progname.c: New file, from GNU gettext.
71545         * lib/progreloc.c: New file, from GNU gettext.
71546
71547 2003-08-19  Jim Meyering  <jim@meyering.net>
71548
71549         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
71550         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
71551
71552 2003-08-19  Bruno Haible  <bruno@clisp.org>
71553
71554         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71555         more.
71556
71557 2003-08-19  Bruno Haible  <bruno@clisp.org>
71558
71559         * lib/xstrdup.c: Assume <string.h> exists.
71560
71561 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71562
71563         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71564         in makefile rules.
71565
71566 2003-08-18  Jim Meyering  <jim@meyering.net>
71567
71568         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71569         * m4/lib-ld.m4: Likewise.
71570
71571 2003-08-18  Jim Meyering  <jim@meyering.net>
71572
71573         * lib/setenv.h: Indent nested cpp directive.
71574         * lib/vasnprintf.c: Remove trailing blanks.
71575
71576 2003-08-17  Simon Josefsson  <jas@extundo.com>
71577
71578         * modules/xstrndup: New file.
71579         * MODULES.html.sh (func_all_modules): Add xstrndup.
71580
71581 2003-08-17  Simon Josefsson  <jas@extundo.com>
71582
71583         * modules/argp: Fix autoconf macro name. Add more dependencies.
71584
71585 2003-08-17  Simon Josefsson  <jas@extundo.com>
71586
71587         * m4/xstrndup.m4: New file.
71588
71589 2003-08-17  Simon Josefsson  <jas@extundo.com>
71590
71591         * m4/argp.m4: New file.
71592
71593 2003-08-17  Simon Josefsson  <jas@extundo.com>
71594             Bruno Haible  <bruno@clisp.org>
71595
71596         * lib/xstrndup.h: New file.
71597         * lib/xstrndup.c: New file.
71598
71599 2003-08-17  Bruno Haible  <bruno@clisp.org>
71600
71601         * modules/strndup (Files, Include): Add lib/strndup.h.
71602
71603 2003-08-17  Bruno Haible  <bruno@clisp.org>
71604
71605         * modules/euidaccess (Files): Add lib/euidaccess.h.
71606
71607 2003-08-17  Bruno Haible  <bruno@clisp.org>
71608
71609         * lib/strndup.h: New file.
71610
71611 2003-08-17  Bruno Haible  <bruno@clisp.org>
71612
71613         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71614         like AC_GNU_SOURCE.
71615         * modules/extensions (configure.ac): Comment out the invocation of
71616         gl_USE_SYSTEM_EXTENSIONS.
71617
71618 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71619
71620         Merges from coreutils, etc.
71621         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71622         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71623         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71624         fixing a typo.
71625         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71626         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71627
71628 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71629
71630         Document merge from coreutils.
71631         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71632         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71633         * modules/utime: Add m4/utimes-null.m4.
71634
71635 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71636
71637         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71638         space, undoing this 2003-08-12 change:
71639         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71640
71641 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71642
71643         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71644         strtoul.c from libc, undoing this 2003-08-12 change:
71645         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71646
71647 2003-08-16  Jim Meyering  <jim@meyering.net>
71648
71649         Merges from coreutils.
71650         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71651         prefix.  Adjust cache variables similarly.  Create 500 rather than
71652         just 300 files, to exercise bug on Darwin6.5, too.
71653         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71654         $missing_dir.
71655         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71656         AM_SYS_POSIX_TERMIOS.
71657         Reported by mkc@mathdogs.com.
71658         Also change use of $am_cv_sys_posix_termios
71659         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71660         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71661         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71662         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71663         in /proc/mounts until it finds one with matching device number.  This
71664         is unnecessary when the FILE argument *is* a mount point.  No stat call
71665         is necessary in that case.  So, disable the statvfs-testing code on
71666         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71667         as RedHat bug# 84846.
71668         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71669         to 1MB, so as not to render systems with no stack size limit (e.g.,
71670         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71671         Include <unistd.h>.  On some systems,
71672         it is required for the definition of _SC_PAGESIZE.
71673
71674 2003-08-16  Jim Meyering  <jim@meyering.net>
71675
71676         Merge from coreutils.
71677         * lib/xstrtoimax.c: #else #if -> #elif.
71678         * lib/xstrtoumax.c: Likewise.
71679
71680 2003-08-16  Jim Meyering  <jim@meyering.net>
71681
71682         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71683         * m4/utimes.m4: Removed.
71684         * m4/utimes-null.m4: Renamed from utimes.m4.
71685
71686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71687         to 1MB, so as not to render systems with no stack size limit (e.g.,
71688         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71689         Include <unistd.h>.  On some systems,
71690         it is required for the definition of _SC_PAGESIZE.
71691
71692 2003-08-16  Jim Meyering  <jim@meyering.net>
71693         and Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         Merges from coreutils, etc.
71696
71697         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71698         using the latest version from cvs.  This avoids problems with #line
71699         directives using a vendor (Sun) compiler.
71700         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71701         Don't set GETGROUPS_LIB here; now it's
71702         done via getgroups.m4's wrapper function.
71703         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71704         rather than just in sh-util/configure.in, so that the
71705         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71706         same.
71707         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71708         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71709         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71710         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71711         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71712         Remove code that is now done by the newly-required macros.
71713         Append $(EXEEXT) to DF_PROG.
71714         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71715         Do not invoke or require the following here,
71716         since prereq.m4 or some gnulib .m4 now does this for us:
71717         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71718         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71719         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71720         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71721         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71722         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71723         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71724         AC_FUNC_OBSTACK.
71725         Do not replace the following functions, as this is now the job
71726         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71727         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71728         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71729         atexit getpass, strdup, getpagesize.
71730         Replace 'raise'.
71731         Do not check for the following functions, as this is now the job
71732         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71733         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71734         setregid.
71735         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71736         Check for sys/sysctl.h.
71737         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71738         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71739         of checking for ssize_t ourselves.
71740
71741         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71742         Require every macro that gnulib/modules/* suggests for us.
71743         (jm_PREREQ_ADDEXT): New macro.
71744         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71745         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71746
71747         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71748         (gl_PHYSMEM): Use it.
71749         Also check for `table' function.
71750         Check for new headers and functions.
71751         Add check for sys/sysmp.h.
71752         With suggestions from Kaveh Ghazi.
71753         Ignore headers that are present but cannot be compiled.  This
71754         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71755         C 5.4.
71756
71757 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71758
71759         Document merge from coreutils.
71760         * modules/userspec: Depend on posixver.
71761         * modules/strftime: Depend on tzset.
71762
71763 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71764
71765         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71766         rather than tab, after '#' in shell-script copyright notices.
71767         Suggested by Bruno Haible.
71768
71769 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71770
71771         * config/srclist-update: Use three spaces, rather than tab, after '#'
71772         in shell-script copyright notices.  Suggested by Bruno Haible.
71773         Remove unnecessary parenthesization in regular expression.
71774
71775 2003-08-15  Jim Meyering  <jim@meyering.net>
71776
71777         Merge from coreutils.
71778         * lib/xgethostname.c: Include <stdlib.h>.
71779         (xghostname): Don't exit for anything other than memory-related
71780         failure; just return NULL.
71781         * lib/userspec.c: Include "posixver.h".
71782         (parse_user_spec): Accept `.' as a separator only
71783         in pre-POSIX-200112 mode.
71784         * lib/strtoimax.c: Use #elif rather than #else #if.
71785         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71786         Remove function, now that we can rely on a working tzset function.
71787         [!_LIBC]: Ensure that the required autoconf test has been run.
71788         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71789         Use underlying_strftime for %r.
71790         * lib/sha.c: Merge in some clean-up and optimization changes from
71791         glibc.
71792         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71793         Ensure that it is a multiple of 64.
71794         Rearrange loop exit tests so as to avoid performing an
71795         additional fread after encountering an error or EOF.
71796         * lib/realloc.c: Update copyright date.
71797
71798 2003-08-15  Jim Meyering  <jim@meyering.net>
71799         and Paul Eggert  <eggert@twinsun.com>
71800
71801         Merge from coreutils.
71802         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71803         member but strut utmpx does not.  Needed for AIX 4.3.3.
71804         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71805
71806 2003-08-15  Jim Meyering  <jim@meyering.net>
71807         and Paul Eggert  <eggert@cs.ucla.edu>
71808
71809         Merges from coreutils, etc.
71810         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71811         Require gl_FUNC_TZSET_CLOBBER.
71812         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71813         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71814         members.
71815
71816 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71817
71818         Help the merge from coreutils.
71819         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71820         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71821         * m4/tzset.m4: Use it too.
71822
71823 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71824
71825         * modules/tzset: New file.
71826
71827 2003-08-14  Jim Meyering  <jim@meyering.net>
71828
71829         Merges from coreutils.
71830         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71831         variable names, rather than @FNMATCH_H@.
71832         * modules/alloca: Likewise for $(ALLOCA_H).
71833
71834         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71835         the three copies of the literal target, `fnmatch.h'.
71836         * modules/alloca (alloca.h): Likewise.
71837
71838 2003-08-14  Jim Meyering  <jim@meyering.net>
71839
71840         Merge from coreutils.
71841         * m4/tzset.m4: New file.
71842         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71843         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71844         otherwise, AIX 5.1 systems would end up using the latter.
71845         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71846         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71847         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71848         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71849
71850 2003-08-14  Jim Meyering  <jim@meyering.net>
71851
71852         Merge from coreutils.
71853         * lib/obstack.h: Whitespace changes.
71854         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71855         and xcalloc return values.
71856         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71857         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71858         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71859         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71860         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71861         error from mntctl.
71862         Use mntctl's return value to drive the entry-processing loop, since
71863         we can't rely on the value of the vmt_length member in the last
71864         entry.  On some systems doing so could result in exhausting
71865         virtual memory.  Based in part on a patch from Mike Jetzer.
71866
71867 2003-08-14  Jim Meyering  <jim@meyering.net>
71868         and Paul Eggert  <eggert@twinsun.com>
71869
71870         Merges from coreutils, plus other fixes.
71871         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71872         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71873         for credits and details.  Thanks to Kaveh Ghazi for helping
71874         to keep these files in sync.
71875         (ARRAY_SIZE): Define it.
71876         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71877         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71878         (memcasecmp): Don't assume size_t fits in unsigned int.
71879         Remove casts and duplicate code.
71880         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71881         (memcpy): Remove definition.
71882         Merge in some clean-up and optimization changes from glibc.
71883         [BLOCKSIZE]: Move definition to top of file.
71884         Ensure that it is a multiple of 64.
71885         Rearrange loop exit tests so as to avoid performing an
71886         additional fread after encountering an error or EOF.
71887         * lib/md5.h (md5_uintptr): Define.
71888         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71889         return to the initial working directory.  Preserve errno
71890         for caller.
71891         * lib/idcache.c: Include "xalloc.h".
71892         (xmalloc, xrealloc): Remove decls.
71893         (getuser): Remove casts no longer required in C89.
71894         * lib/human.c: Include stdio.h, for sprintf.
71895         * lib/group-member.c: Include "xalloc.h".
71896         (xmalloc, xrealloc): Remove decls.
71897         (get_group_info): Remove casts no longer required in C89.
71898         * lib/getusershell.c (readname): Remove casts no longer required in
71899         C89.
71900         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71901         * lib/getline.c: Whitespace fix, from coreutils.
71902
71903 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71904
71905         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71906         Check for isascii.
71907
71908         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71909         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71910         Undo previous (whitespace-only) change.
71911
71912 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71913
71914         * lib/exclude.c: Include <ctype.h>
71915         (IN_CTYPE_DOMAIN): New macro.
71916         (is_space): New fn.
71917         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71918         and empty lines.
71919
71920         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71921         Undo previous (whitespace-only) change.
71922
71923 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71924
71925         * config/srclist-update: Change update back to the old behavior,
71926         leaving whitespace alone.  Use one 'sed' command rather than a
71927         pipeline.
71928         (fixlicense): Now a variable, not a function.
71929         (remove_trailing_blanks): Remove.
71930         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71931         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71932         Undo previous (whitespace-only) change.
71933
71934 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71935
71936         Merge from coreutils.
71937         * modules/euidaccess: Add lib_SOURCES, include for new
71938         file euidaccess.h
71939
71940 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71941
71942         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71943         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71944         Normalize leading white space and remove trailing white space.
71945
71946         Merge from coreutils
71947         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71948
71949         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71950         0.12.1.  These files are now being upgraded automatically by
71951         ../config/srclist-update.
71952
71953 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71954
71955         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71956         Normalize leading white space and remove trailing white space.
71957         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71958         notice, as per ../config/srclist-update.
71959
71960         Merge from coreutils.
71961         * lib/euidaccess.h: New file.
71962         * lib/euidaccess.c: Include it.
71963         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71964         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71965         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71966
71967 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71968
71969         * config/srclist-update: Add copyright notice.
71970         (remove_id_lines, remove_trailing_blanks): New constants.
71971         (fixfile): Use them to normalize spacing a bit in copied files.
71972         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71973         Normalize leading white space and remove trailing white space.
71974
71975         * config/texinfo.tex: Sync with texinfo.
71976
71977         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71978         strtoul.c from libc, to merge coreutils whitespace changes.
71979
71980         * config/srclist.txt: Get the following m4 files from gettext:
71981         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71982         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71983         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71984         wint_t.m4.
71985
71986 2003-08-12  Karl Berry  <karl@gnu.org>
71987
71988         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71989         been made.
71990
71991 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71992
71993         * modules/gnu-source, m4/gnu-source.m4:
71994         Remove; we're assuming Autoconf 2.54 or later now.
71995         Suggested by Bruno Haible.
71996         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71997
71998 2003-08-11  Bruno Haible  <bruno@clisp.org>
71999
72000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72001
72002 2003-08-11  Bruno Haible  <bruno@clisp.org>
72003
72004         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72005         (vasnprintf): Use it instead of wcslen.
72006
72007 2003-08-11  Bruno Haible  <bruno@clisp.org>
72008
72009         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72010         value to ensure that _Bool promotes to int. Use #define for _Bool when
72011         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72012
72013 2003-08-10  Karl Berry  <karl@gnu.org>
72014
72015         * lib/regex.h: update from libc (whitespace fix).
72016
72017 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72018
72019         Merge some files from coreutils.  These changes were
72020         originally made by Jim Meyering.
72021         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72022         many older Unixes require this.
72023         * lib/alloca.c (alloca): Remove cast to argument of free;
72024         no longer needed in C89.
72025         * lib/alloca_.h, regex.h: Fix white space to match
72026         what GNU indent does.
72027
72028 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72029
72030         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72031         apparently Emacs's Unicode mode got confused before my 2003-08-05
72032         checkin.
72033
72034 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72035
72036         * m4/extensions.m4: New file.
72037         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72038         Require gl_USE_SYSTEM_EXTENSIONS.
72039         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72040         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72041
72042 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72043
72044         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72045         * modules/extensions, modules/gnu-source: New files.
72046         * modules/timespec, modules/unlocked-io: Depend on extensions.
72047
72048 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72049
72050         * modules/restrict: New file.
72051         * MODULES.html.sh (func_all_modules): Add restrict.
72052         * modules/regex: Depend on restrict.
72053
72054 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72055
72056         * m4/restrict.m4: New file.
72057         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72058
72059 2003-08-07  Bruno Haible  <bruno@clisp.org>
72060
72061         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72062         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72063
72064 2003-08-07  Bruno Haible  <bruno@clisp.org>
72065
72066         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72067         makes the module 'getndelim2' compatible with the module 'getline'.
72068
72069 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72070
72071         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72072         byte with "\201" to avoid glitches when editing that source file
72073         with multi-gnome-terminal.
72074
72075 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72076
72077         * lib/bumpalloc.h: Remove.
72078
72079 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72080
72081         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72082         * modules/bumpalloc: Remove.
72083
72084 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72085
72086         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72087         GNU coding style.
72088
72089         Merge from coreutils.
72090         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72091         1. From glibc.
72092         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72093         from Karl Berry, implemented by Jim Meyering.
72094         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72095         from Dmitry V. Levin.
72096         Remove anachronistic cast of xrealloc.
72097         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72098         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72099         type. Otherwise, it wouldn't compile with at least /bin/cc on
72100         ymp-cray-unicos9.0.2.X.
72101         Combine two mostly-identical uses of alloca into one.
72102         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72103
72104 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72105
72106         [From Emacs.]
72107
72108         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72109         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72110         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72111         obsolete NLIST_NAME_UNION.
72112         [__GNU__]: Undef BSD and FSCALE.
72113         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72114
72115 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72116
72117         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72118         an enum type, so that it's guaranteed to promote to int.  See:
72119         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72120
72121 2003-08-03  Karl Berry  <karl@gnu.org>
72122
72123         * config/depcomp: update from automake.
72124
72125 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72126
72127         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72128         (strerror): Don't assume that a printable int fits in 14 bytes.
72129
72130 2003-07-31  Bruno Haible  <bruno@clisp.org>
72131
72132         * modules/getpass-gnu: New file.
72133         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72134
72135 2003-07-31  Bruno Haible  <bruno@clisp.org>
72136
72137         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72138
72139 2003-07-24  Karl Berry  <karl@gnu.org>
72140
72141         * config/missing: update from automake.
72142
72143 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72144             Bruno Haible  <bruno@clisp.org>
72145
72146         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72147         * lib/getline.c (getline, getdelim): Likewise.
72148         Remove _GNU_SOURCE define; now it's defined in config.h through
72149         m4/getline.m4.
72150
72151 2003-07-23  Karl Berry  <karl@gnu.org>
72152
72153         * config/config.sub: update from prep.
72154
72155 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72156
72157         * modules/xalloc (Depends-on): Add exitfail.
72158         * modules/xmemcoll: Likewise.
72159
72160 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72161
72162         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72163         over-parenthesization in macros.
72164
72165         Sync with coreutils.
72166
72167         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72168         required by C99.
72169
72170         Use `exit_failure' for xalloc and xmemcoll instead of their own
72171         private exit-failure variables.
72172         * lib/xalloc.h (xalloc_exit_failure): Remove.
72173         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72174         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72175         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72176         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72177         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72178
72179 2003-07-20  Jim Meyering  <jim@meyering.net>
72180
72181         * modules/closeout (Depends-on): Add exitfail.
72182         Suggestion from Bruno Haible.
72183
72184 2003-07-19  Karl Berry  <karl@gnu.org>
72185
72186         * config/config.sub: update from prep.
72187
72188 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72189
72190         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72191         Remove.
72192         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72193         to test that it can stand by itself.  Include "exitfail.h".
72194         Clients should set exit_failure instead.
72195         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72196
72197 2003-07-18  Bruno Haible  <bruno@clisp.org>
72198
72199         * modules/getndelim2: New file.
72200         * modules/getline: Share files with module getndelim2.
72201         * modules/getnline: Depend on getndelim2 instead of sharing files with
72202         it. Add getnline.c to lib_SOURCES.
72203         * MODULES.html.sh (func_all_modules): Add getndelim2.
72204
72205 2003-07-18  Bruno Haible  <bruno@clisp.org>
72206
72207         * m4/getndelim2.m4: New file.
72208         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72209         invoke gl_PREREQ_GETNDELIM2.
72210         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72211         gl_PREREQ_GETNDELIM2.
72212         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72213         gl_GETNDELIM2.
72214
72215 2003-07-18  Bruno Haible  <bruno@clisp.org>
72216
72217         * lib/getndelim2.h: New file.
72218         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72219         getndelim2.h.
72220         (getndelim2): Make non-static. Change return type to ssize_t.
72221         * lib/getline.h: Change argument names.
72222         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72223         * lib/getnline.c: Include getndelim2.h.
72224
72225 2003-07-18  Andreas Schwab  <schwab@suse.de>
72226
72227         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72228
72229 2003-07-17  Karl Berry  <karl@gnu.org>
72230
72231         * config/config.sub: update from prep.
72232
72233 2003-07-17  Bruno Haible  <bruno@clisp.org>
72234
72235         * modules/getnline: New file.
72236         * modules/getline: Add lib/getndelim2.c to source file list.
72237         * MODULES.html.sh (func_all_modules): Add getnline.
72238
72239 2003-07-17  Bruno Haible  <bruno@clisp.org>
72240
72241         * m4/getnline.m4: New file.
72242
72243 2003-07-17  Bruno Haible  <bruno@clisp.org>
72244
72245         * m4/Makefile.am.in: Remove file.
72246         * m4/Makefile.am: Remove file.
72247         * m4/Makefile.in: Remove file.
72248
72249 2003-07-17  Bruno Haible  <bruno@clisp.org>
72250
72251         * lib/getnline.h: New file.
72252         * lib/getnline.c: New file.
72253         * lib/getndelim2.c: New file, extracted from getline.c.
72254         (getndelim2): Renamed from getdelim2, with added nmax argument.
72255         * lib/getline.c: Include getndelim2.c.
72256         (getdelim2): Moved out to getndelim2.c.
72257         (getline, getdelim): Update.
72258
72259 2003-07-17  Bruno Haible  <bruno@clisp.org>
72260
72261         * lib/Makefile.am: Remove file.
72262         * lib/Makefile.in: Remove file.
72263
72264 2003-07-17  Bruno Haible  <bruno@clisp.org>
72265
72266         * configure.in: Remove file.
72267         * Makefile.in: Remove file.
72268
72269 2003-07-17  Bruno Haible  <bruno@clisp.org>
72270
72271         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72272
72273 2003-07-16  Karl Berry  <karl@gnu.org>
72274
72275         * config/srclist-update: was running fixlicense twice, which caused
72276                 texinfo.tex to be nullified for some reason.  Simplify,
72277                 $gplsrc is no longer needed as far as I can see?
72278
72279 2003-07-16  Jim Meyering  <jim@meyering.net>
72280
72281         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72282
72283 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72284
72285         * config/srclist.txt: Get the following files from gettext-runtime/intl
72286         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72287         ref-del.sin.  From Bruno Haible.
72288         * config/srclist-update (fixfile): Change grep pattern again, since the
72289         previous fix didn't work (there was another trailing $).  Use
72290         '[$]' to escape the $s.
72291
72292 2003-07-15  Karl Berry  <karl@gnu.org>
72293
72294         * lib/vasnprintf.c: update from gettext.
72295
72296 2003-07-15  Karl Berry  <karl@gnu.org>
72297
72298         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72299         gets expanded when surrounded by '$'.
72300
72301 2003-07-15  Jim Meyering  <jim@meyering.net>
72302
72303         * modules/save-cwd: Don't depend on error.  From Derek Price.
72304
72305 2003-07-15  Jim Meyering  <jim@meyering.net>
72306
72307         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72308
72309 2003-07-14  Simon Josefsson  <jas@extundo.com>
72310
72311         * modules/mempcpy: New file.
72312         * MODULES.html.sh (func_all_modules): Add mempcpy.
72313
72314 2003-07-14  Simon Josefsson  <jas@extundo.com>
72315
72316         * m4/mempcpy.m4: New file.
72317
72318 2003-07-14  Simon Josefsson  <jas@extundo.com>
72319
72320         * lib/mempcpy.h: New file.
72321         * lib/mempcpy.c: New file.
72322
72323 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72324
72325         * modules/getdate, modules/posixtm: Depend on mktime.
72326
72327 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72328
72329         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72330         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72331         unicodeio.c, unicodeio.h, unlocked-io.h:
72332         Switch from LGPL to GPL.
72333
72334 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72335
72336         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72337         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72338         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72339         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72340         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
72341         updated automatically by ../config/srclist-update.  This changes
72342         their license from LPGL to GPL.
72343
72344 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72345
72346         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
72347         assumed to refer to the root of the most recent stable gettext version.
72348         * config/srclistvars.sh: Add defaults for eggert.
72349         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
72350         Match "This program" as well as "The program".  This is needed
72351         for gettext.
72352
72353 2003-07-14  Jim Meyering  <jim@meyering.net>
72354
72355         Don't emit diagnostics.  Let callers do that.
72356         * lib/save-cwd.c: Don't include "error.h".
72357         (save_cwd): Don't call error.  Ensure that errno is valid
72358         when returning nonzero.
72359
72360         * lib/save-cwd.h (restore_cwd): Update prototype.
72361         * lib/save-cwd.c (restore_cwd): Remove two parameters.
72362         Simplify.  Don't call error upon failure.  Let callers do that.
72363         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
72364         when auditing is enabled.  But don't bother updating the #if.
72365
72366 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
72367
72368         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
72369         it breaks C++ compilation.
72370         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
72371
72372 2003-07-10  Simon Josefsson  <jas@extundo.com>
72373
72374         * modules/strchrnul (Makefile.am): Add strchrnul.h.
72375
72376 2003-07-10  Jim Meyering  <jim@meyering.net>
72377
72378         * m4/clock_time.m4: Remove trailing blank.
72379         * m4/intmax_t.m4: Likewise.
72380
72381 2003-07-10  Jim Meyering  <jim@meyering.net>
72382
72383         * lib/vasnprintf.c: Remove trailing blanks.
72384         Make cpp indentation consistent.
72385
72386 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72387
72388         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
72389         posixver.c, strftime.c, strnlen.c, strverscmp.c:
72390         Switch from LGPL to GPL.
72391
72392 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72393
72394         * config/srclist.txt: Sort sublists.  Add
72395         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
72396         that differ from gnulib for one reason or another; we'd like this list
72397         to be smaller but for now let's document what we have.
72398
72399 2003-07-08  Paul Eggert  <eggert@twinsun.com>
72400
72401         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
72402         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
72403         and sweeter "eval x=$x".
72404         * config/srclist.txt: Get lib/argp* from glibc.
72405
72406 2003-07-07  Paul Eggert  <eggert@twinsun.com>
72407
72408         * lib/mktime.c: Fix some boundary cases and remove need for floating
72409         point.
72410
72411         Issue a compile-time diagnostic if time_t is floating point, or if
72412         two's complement arithmetic is not in effect, or if arithmetic
72413         right shift does not propagate the sign.  These assumptions were
72414         all in the original code but they weren't checked.
72415
72416         (TIME_T_MIDPOINT, verify): New macros.
72417         (__isleap): Remove; it has integer overflow problems.
72418         (leapyear): New function, without those problems.
72419         (ydhms_tm_diff): Remove; splitting into two parts.
72420         (ydhms_diff): New function, containing the arithmetic part of
72421         the old ydhms_tm_diff function.  Issue a compile-time
72422         diagnostic if we are not using C99 integer division.
72423         Avoid casts when possible.
72424         (guess_time_tm): New function, containing the checking part of
72425         the old ydhms_tm_diff function.  Return the new value, rather than
72426         the difference between it and the old.  Accept a new argument T
72427         so that *T specifies the old value.  Check for overflow in the result.
72428
72429         (__mktime_internal): Use a time_t offset, not a long int offset.
72430         This undoes the 2003-06-04 change, which is no longer needed now
72431         that we have better overflow checking.
72432         (localtime_offset): Likewise.
72433
72434         (__mktime_internal): Avoid harmful overflow on hosts where time_t
72435         and long are 64-bit but int is only 32-bit.
72436         (ydhms_diff): Use long int to store year1 and yday1.
72437         Issue a compile-time diagnostic if long int is not wide enough.
72438
72439         (__mktime_internal): Use long int to store adjusted year and yday.
72440         Use plain C rather than preprocessor commands, if that doesn't
72441         affect efficiency.
72442         Check for overflow (and try to repair) after each probe
72443         rather than checking only at the very end.  This avoids some bugs
72444         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
72445         does not equal GMT offset at maximum time).
72446         Use integer to check for overflow rather than floating point; this
72447         is more portable to non-IEEE hosts, and is a tad faster.
72448         When we detect that we are oscillating between two values,
72449         don't check whether tm_isdst has the requested value, since
72450         we already know the answer.  When tm_isdst has the wrong value,
72451         use a different heuristic to find the right one, based on the
72452         extreme values actually observed in practice in tz2003a,
72453         rather than the (overly optimistic) "previous 3 calendar quarters".
72454
72455         (not_equal_tm, print_tm, check_result): Use "const T" rather than
72456         "T const" to accommodate glibc style.
72457         (check_result): Use less-confusing report format.  "long" -> "long int.
72458         (main): Likewise.
72459         Don't loop if the iteration overflows time_t.
72460         Allow a negative step in the iteration.
72461
72462 2003-07-06  Karl Berry  <karl@gnu.org>
72463
72464         * config/depcomp: update from automake.
72465         * config/config.sub: update from prep.
72466
72467 2003-07-03  Karl Berry  <karl@gnu.org>
72468
72469         * config/config.guess: update from prep.
72470
72471 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72472
72473         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
72474         xreadlink.c now includes it unconditionally.
72475
72476 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72477
72478         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
72479         having it depend on HAVE_SYS_TYPES_H.
72480
72481 2003-07-01  Bruno Haible  <bruno@clisp.org>
72482
72483         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
72484         <sys/types.h> should be sufficient.
72485         Reported by Paul Eggert.
72486
72487 2003-06-26  Karl Berry  <karl@gnu.org>
72488
72489         * config/depcomp: update from automake.
72490
72491 2003-06-26  Bruno Haible  <bruno@clisp.org>
72492
72493         * modules/human: Depend on module stdbool.
72494
72495 2003-06-25  Bruno Haible  <bruno@clisp.org>
72496
72497         * modules/readlink: New file.
72498         * modules/xreadlink: Depend on it.
72499         * MODULES.html.sh (func_all_modules): Add readlink.
72500
72501 2003-06-25  Bruno Haible  <bruno@clisp.org>
72502
72503         * m4/readlink.m4: New file.
72504
72505 2003-06-25  Bruno Haible  <bruno@clisp.org>
72506
72507         * lib/readlink.c: New file.
72508
72509 2003-06-22  Karl Berry  <karl@gnu.org>
72510
72511         * config/srclist.txt: update mkinstalldirs from automake.
72512         * config/mkinstalldirs: update.
72513
72514 2003-06-22  Bruno Haible  <bruno@clisp.org>
72515
72516         Portability to mingw32.
72517         * m4/ssize_t.m4: New file, from GNU gettext.
72518         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
72519         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
72520
72521 2003-06-22  Bruno Haible  <bruno@clisp.org>
72522
72523         * modules/safe-read: Add m4/ssize_t.m4.
72524         * modules/xreadlink: Add m4/ssize_t.m4.
72525
72526 2003-06-20  Bruno Haible  <bruno@clisp.org>
72527
72528         Assume C89, so PARAMS isn't needed.
72529         * lib/unicodeio.h (PARAMS): Remove.
72530         * lib/unicodeio.c: Don't use PARAMS.
72531
72532 2003-06-18  Karl Berry  <karl@gnu.org>
72533
72534         * config/config.{guess,sub}: update from prep.
72535
72536 2003-06-18  Jim Meyering  <jim@meyering.net>
72537
72538         Merge changes from coreutils.
72539         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
72540         Remove explicit declarations of xmalloc and realloc.
72541         Include xalloc.h.
72542         (read_utmp): Remove anachronistic cast of xmalloc.
72543
72544 2003-06-17  Paul Eggert  <eggert@twinsun.com>
72545
72546         Assume C89, so PARAMS isn't needed.
72547         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
72548         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
72549         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
72550         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
72551         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
72552         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72553         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72554         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72555         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72556         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72557         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72558         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72559         no longer needed. Anyway, config.h should always be included before any
72560         other file.
72561
72562 2003-06-11  Simon Josefsson  <jas@extundo.com>
72563
72564         * modules/sysexits: New file.
72565         * MODULES.html.sh (func_all_modules): Add sysexits.
72566
72567 2003-06-11  Simon Josefsson  <jas@extundo.com>
72568
72569         * lib/sysexit_.h: New file.
72570
72571 2003-06-11  Derek Price  <derek@ximbiot.com>
72572
72573         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72574         necessary.
72575
72576 2003-06-11  Bruno Haible  <bruno@clisp.org>
72577
72578         * m4/sysexits.m4: New file.
72579
72580 2003-06-10  Simon Josefsson  <jas@extundo.com>
72581
72582         * lib/argp.h: New file, from glibc.
72583         * lib/argp-ba.c: New file, from glibc.
72584         * lib/argp-eexst.c: New file, from glibc.
72585         * lib/argp-fmtstream.c: New file, from glibc.
72586         * lib/argp-fmtstream.h: New file, from glibc.
72587         * lib/argp-fs-xinl.c: New file, from glibc.
72588         * lib/argp-help.c: New file, from glibc.
72589         * lib/argp-namefrob.h: New file, from glibc.
72590         * lib/argp-parse.c: New file, from glibc.
72591         * lib/argp-pv.c: New file, from glibc.
72592         * lib/argp-pvh.c: New file, from glibc.
72593         * lib/argp-xinl.c: New file, from glibc.
72594
72595 2003-06-10  Simon Josefsson  <jas@extundo.com>
72596
72597         * modules/strchrnul: New file.
72598
72599 2003-06-10  Simon Josefsson  <jas@extundo.com>
72600
72601         * modules/argp: New file.
72602
72603 2003-06-10  Simon Josefsson  <jas@extundo.com>
72604
72605         * m4/strchrnul.m4: New file.
72606
72607 2003-06-10  Simon Josefsson  <jas@extundo.com>
72608
72609         * lib/strchrnul.h: New file.
72610         * lib/strchrnul.c: New file.
72611
72612 2003-06-10  Bruno Haible  <bruno@clisp.org>
72613
72614         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72615
72616 2003-06-07  Karl Berry  <karl@gnu.org>
72617
72618         * config/config.{guess,sub}: update from prep.
72619
72620 2003-06-07  Jim Meyering  <jim@meyering.net>
72621
72622         * modules/strtod: Use $(...) notation, not @...@ for
72623         AC_REPLACE'd variables.
72624         * modules/localcharset: Likewise.
72625
72626 2003-06-07  Jim Meyering  <jim@meyering.net>
72627
72628         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72629         in place of my name in the copyright comment.
72630         Remove definition and uses of __P.
72631
72632         From coreutils.
72633         * lib/stat.c: Don't declare xmalloc explicitly.
72634         Instead, include "xalloc.h".
72635         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72636         xrealloc, and xcalloc return values.
72637         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72638         Improve comment.
72639         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72640
72641 2003-06-07  Bruno Haible  <bruno@clisp.org>
72642
72643         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72644         avoid AC_CONFIG_LINKS.
72645         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72646         fnmatch.h, to avoid AC_CONFIG_LINKS.
72647         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72648
72649 2003-06-07  Bruno Haible  <bruno@clisp.org>
72650
72651         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72652         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72653         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72654         directory.
72655         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72656         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72657         directory.
72658
72659 2003-06-06  Jim Meyering  <jim@meyering.net>
72660
72661         Merge from coreutils.
72662         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72663         Consolidate declarations and initializations of *_base* locals.
72664
72665         Merge from coreutils.
72666         This avoids a core dump on systems without GNU putenv,
72667         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72668         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72669         (unsetenv): New static function, from GNU libc.
72670         (rpl_putenv): Use it.
72671
72672         * lib/modechange.c: Remove trailing blanks.
72673
72674         Merge from coreutils.
72675         * lib/fsusage.c: Remove declaration of statfs.
72676         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72677
72678         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72679
72680 2003-06-06  Jim Meyering  <jim@meyering.net>
72681
72682         * lib/stdbool_.h: Renamed from stdbool.h.in.
72683
72684 2003-06-06  Jim Meyering  <jim@meyering.net>
72685             Bruno Haible  <bruno@clisp.org>
72686
72687         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72688         Adjust Makefile.am snippet not to redirect directly to target.
72689         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72690
72691 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72692
72693         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72694         mismatch, look in future quarters as well as past.  This fixes a
72695         bug when processing fall-backwards gaps immediately after a long
72696         period of daylight-saving time.
72697
72698         * lib/mktime.c: Assume freestanding C89 or better.
72699         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72700         (__P): Remove; not used.
72701         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72702         (mktime, not_equal_tm, print_tm, check_result,
72703         main): Use prototypes.  Use const * where appropriate.
72704         (main): Fix typo in testing code that uncovered by above changes.
72705         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72706
72707 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72708
72709         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72710         locale.h, localeconv.  This merges changes from coreutils.
72711
72712         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72713         It can be removed after the next Autoconf is released.
72714         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72715         needed.
72716
72717 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72718
72719         * lib/mktime.c: Fix Debian bug 177940
72720         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72721         (localtime_offset): Now long int, not time_t, because we want it
72722         to be guaranteed to be signed.  All uses changed.
72723         (__mktime_internal): If overflow would occur when adding offset,
72724         don't add it.
72725
72726         Merge 'human' changes from coreutils.  Rewrite to support
72727         locale-specific notations like thousands separators.
72728         * lib/human.c: Simplify authorship notice.
72729         Include human.h immediately after config.h.
72730         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72731         <limits.h>: Do not include, since human.h does.
72732         (SIZE_MAX, UINTMAX_MAX): New macros.
72733         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72734         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72735         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72736         (power_letter): Renamed from suffixes.
72737         (generate_suffix_backwards): Remove.
72738         (adjust_value): Now takes int style (because of human.h changes)
72739         and long double value (for greater precision on some platforms).
72740         (group_number): New function.
72741         (human_readable): Use it.  Use integer options, not enum.
72742         Put the options before the sizes in the arg list.
72743         Support all the new options.
72744         The old human_readable function has been removed;
72745         use inttostr.h instead.
72746         (human_readable, default_block_size, humblock):
72747         Use uintmax_t, not int, for block sizes.
72748         (human_readable_inexact, block_size_types): Remove.
72749         (block_size_opts): New constant.
72750         (human_options): Renamed from human_block_size, with new signature
72751         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72752         * lib/human.h: Add copyright and authorship notice.
72753         Include <limits.h> and <stdbool.h> unconditionally.
72754         (PARAMS): Remove.  All uses removed.
72755         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72756         (enum human_inexact_style): Remove tag; now a nameless enum.
72757         (human_floor, human_ceiling, human_round_to_even): Now have
72758         values 2, 0, 1 rather than -1, 1, 0.
72759         (human_group_digits, human_suppress_point_zero, human_autoscale,
72760         human_base_1024, human_SI, human_B): New constants.
72761         (human_readable_inexact, human_block_size): Remove.
72762         (human_readable): Size args are now uintmax_t, not int.
72763         (human_options): New decl.
72764
72765         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72766         unnecessary now that we assume C89 or better.  This change
72767         imported from coreutils.
72768
72769         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72770         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72771         in the 2003-05-30 sync from glibc.
72772
72773         .h files should stand alone, but we shouldn't include <sys/types.h>
72774         if we can get away with just <stddef.h>.
72775
72776         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72777         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72778         rather than <sys/types.h>, as we merely need size_t.
72779         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72780         to get size_t.
72781         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72782         Include <stdio.h>, to get FILE.
72783         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72784         memcasecmp.h has included <stddef.h> and all we need is size_t.
72785         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72786         our interface, instead of including <sys/types.h>
72787
72788 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72789
72790         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72791         now, as glibc mktime is buggy on non-glibc systems.
72792
72793 2003-06-03  Karl Berry  <karl@gnu.org>
72794
72795         * config/config.sub: update from prep.
72796
72797 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72798
72799         [from coreutils]
72800         Fix some minor time-related bugs with POSIX time arguments.
72801         Some valid time stamps were being rejected (notably -1, and
72802         time stamps before 1900 on 64-bit hosts).  And some invalid
72803         time stamps were being accepted, e.g. September 31.
72804
72805         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72806         that we can return (time_t) -1 successfully.
72807         * lib/posixtm.c: Likewise.
72808         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72809         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72810         (t): Remove static var.
72811         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72812         of static var.  All uses changed.
72813         (year): Do not reject years before 1900; they can occur with
72814         64-bit time_t.
72815         (posix_time_parse): Do not check for out-of-range components;
72816         that is now the caller's responsibility, since our checks were
72817         only approximations.
72818         (posixtime): Use mktime to check for out-of-range components,
72819         since it knows them exactly.
72820         If mktime returns (time_t) -1, check whether an error actually occurred
72821         by invoking localtime on -1.
72822         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72823         posixtime failures better.
72824         Improve the test data (in comments only).
72825
72826 2003-06-02  Karl Berry  <karl@gnu.org>
72827
72828         * config/mkinstalldirs (version): new variable.
72829         (--version): new option.
72830         (usage): improve message.
72831
72832 2003-05-30  Karl Berry  <karl@gnu.org>
72833
72834         * lib/mktime.c: update from libc.
72835
72836 2003-05-30  Bruno Haible  <bruno@clisp.org>
72837
72838         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72839         * config/config.rpath: Upgrade to gettext-0.12.1.
72840
72841 2003-05-30  Bruno Haible  <bruno@clisp.org>
72842
72843         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72844         * m4/nls.m4: New file, from gettext-0.12.1.
72845         * m4/po.m4: New file, from gettext-0.12.1.
72846         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72847
72848 2003-05-30  Bruno Haible  <bruno@clisp.org>
72849
72850         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72851         * lib/localcharset.h: Likewise.
72852         * lib/localcharset.c: Likewise.
72853
72854 2003-05-29  Karl Berry  <karl@gnu.org>
72855
72856         * config/config.rpath: update from gettext.
72857
72858 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72859
72860         Assume the headers required for C89 freestanding compilers.
72861         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72862         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72863         * m4/human.m4 (gl_HUMAN): Likewise.
72864         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72865         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72866         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72867         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72868         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72869         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72870
72871 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72872
72873         Assume the headers required for C89 freestanding compilers.
72874         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72875         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72876         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72877         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72878         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72879         define, since <limits.h> is guaranteed to do that.
72880         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72881         * lib/exclude.c: Include <stdbool.h> unconditionally.
72882         * lib/tempname.c: Include <stddef.h> unconditionally.
72883         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72884         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72885         <stddef.h> does that.
72886         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72887         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72888         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72889         needed.
72890         * lib/xstrtol.c: Likewise.
72891         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72892         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72893
72894         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72895         warnings on some platforms.
72896
72897         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72898         arbitrarily.
72899
72900 2003-05-26  Jim Meyering  <jim@meyering.net>
72901
72902         Merge in a change from coreutils:
72903         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72904         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72905         that condition, rather than `-1' which is slightly misleading.
72906         Change the name of the cache variable to have the gl_ prefix.
72907         Prompted by a patch from Richard Dawe for DJGPP.
72908
72909 2003-05-24  Karl Berry  <karl@gnu.org>
72910
72911         * config/config.guess: update from prep.
72912
72913 2003-05-22  Karl Berry  <karl@gnu.org>
72914
72915         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72916
72917 2003-05-20  Karl Berry  <karl@gnu.org>
72918
72919         * config/config.guess: update from prep.
72920
72921 2003-05-18  Karl Berry  <karl@gnu.org>
72922
72923         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72924         might actually be set by the user.
72925
72926         * config/depcomp, install-sh, mdate-sh: update from automake.
72927
72928 2003-05-17  Bruno Haible  <bruno@clisp.org>
72929
72930         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72931         invalid expansion for AC_EGREP_CPP.
72932         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72933         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72934         Suggested by Akim Demaille <akim@epita.fr> in
72935         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72936
72937 2003-05-12  Jim Meyering  <jim@meyering.net>
72938
72939         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72940         the space-padded-by-default conversion specifiers, %e, %k, %l.
72941
72942 2003-05-12  Bruno Haible  <bruno@clisp.org>
72943
72944         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72945         the string is longer than 4 KB.
72946
72947 2003-05-11  Karl Berry  <karl@gnu.org>
72948
72949         * config/config.{guess,sub}: update from prep.
72950
72951 2003-05-09  Bruno Haible  <bruno@clisp.org>
72952
72953         * modules/error: Add m4/strerror_r.m4 to file list.
72954
72955 2003-05-03  Bruno Haible  <bruno@clisp.org>
72956
72957         Upgrade to Unicode-4.0.
72958         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72959         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72960         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72961         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72962         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72963         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72964         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72965         Change width of U+E0100..U+E01EF from 1 to 0.
72966
72967 2003-04-25  Jim Meyering  <jim@meyering.net>
72968
72969         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72970         of type size_t, not int.
72971
72972 2003-04-25  Bruno Haible  <bruno@clisp.org>
72973
72974         * lib/copy-file.c: Include <stddef.h>, for size_t.
72975
72976 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72977
72978         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72979         code which expansion is under static control.  Patch imported from
72980         Akim Demaille's patch to Bison; see
72981         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72982
72983 2003-04-14  Bruno Haible  <bruno@clisp.org>
72984
72985         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72986
72987 2003-04-11  Jim Meyering  <jim@meyering.net>
72988
72989         Merge changes from Coreutils.
72990
72991         2003-03-22  Jim Meyering  <jim@meyering.net>
72992
72993         * lib/strftime.c (widen): Cast alloca return value to proper type.
72994
72995         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72996
72997         From GNU libc.
72998         * lib/strftime.c (my_strftime): Handle very large width
72999         specifications for numeric values correctly.  Improve checks for
73000         overflow.
73001
73002         2003-01-19  Jim Meyering  <jim@meyering.net>
73003
73004         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73005         definitions.
73006         (nl_get_alt_digit) [! defined my_strftime]: Define.
73007         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73008         _nl_get_alt_digit and _nl_get_walt_digit.
73009
73010         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73011         libc. These changes have no effect outside of _LIBC.
73012
73013 2003-04-10  Bruno Haible  <bruno@clisp.org>
73014
73015         * modules/findprog: New file.
73016         * MODULES.html.sh (func_all_modules): Add it.
73017
73018 2003-04-10  Bruno Haible  <bruno@clisp.org>
73019
73020         * m4/findprog.m4: New file.
73021         * m4/eaccess.m4: New file.
73022
73023 2003-04-10  Bruno Haible  <bruno@clisp.org>
73024
73025         * lib/findprog.h: New file, from GNU gettext.
73026         * lib/findprog.c: New file, from GNU gettext.
73027
73028 2003-04-05  Jim Meyering  <jim@meyering.net>
73029
73030         Merge changes from Coreutils.
73031
73032         * lib/exclude.h (PARAMS): Remove definition and uses.
73033         * lib/exclude.c: Remove uses of `PARAMS'.
73034
73035         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73036         Add test-cases for DOS filenames. Declare program_name.
73037         (main): Set up program_name.  Patch by Rich Dawe.
73038
73039         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73040         error from mntctl.
73041         Use mntctl's return value to drive the entry-processing loop, since
73042         we can't rely on the value of the vmt_length member in the last
73043         entry.  On some systems doing so could result in exhausting
73044         virtual memory.  Based in part on a patch from Mike Jetzer.
73045
73046 2003-04-04  Bruno Haible  <bruno@clisp.org>
73047
73048         * modules/linebreak: New file.
73049         * MODULES.html.sh (func_all_modules): Add it.
73050
73051 2003-04-04  Bruno Haible  <bruno@clisp.org>
73052
73053         * m4/linebreak.m4: New file.
73054
73055 2003-04-04  Bruno Haible  <bruno@clisp.org>
73056
73057         * lib/linebreak.h: New file, from GNU gettext.
73058         * lib/linebreak.c: New file, from GNU gettext with slight
73059         modifications.
73060         * lib/lbrkprop.h: New file, from GNU gettext.
73061
73062 2003-04-03  Bruno Haible  <bruno@clisp.org>
73063
73064         * modules/utf8-ucs4: New file.
73065         * modules/utf16-ucs4: New file.
73066         * modules/ucs4-utf8: New file.
73067         * modules/ucs4-utf16: New file.
73068         * MODULES.html.sh (func_all_modules): Add them.
73069
73070 2003-04-03  Bruno Haible  <bruno@clisp.org>
73071
73072         * m4/utf-ucs4.m4: New file.
73073         * m4/ucs4-utf.m4: New file.
73074
73075 2003-04-03  Bruno Haible  <bruno@clisp.org>
73076
73077         * lib/utf8-ucs4.h: New file, from GNU gettext.
73078         * lib/utf16-ucs4.h: New file, from GNU gettext.
73079         * lib/ucs4-utf8.h: New file, from GNU gettext.
73080         * lib/ucs4-utf16.h: New file, from GNU gettext.
73081
73082 2003-04-02  Bruno Haible  <bruno@clisp.org>
73083
73084         * modules/binary-io: New file.
73085         * MODULES.html.sh (func_all_modules): Add it.
73086
73087 2003-04-02  Bruno Haible  <bruno@clisp.org>
73088
73089         * lib/binary-io.h: New file, from GNU gettext.
73090
73091 2003-04-01  Bruno Haible  <bruno@clisp.org>
73092
73093         * modules/pathname: New file.
73094         * MODULES.html.sh (func_all_modules): Add it.
73095
73096 2003-04-01  Bruno Haible  <bruno@clisp.org>
73097
73098         * lib/pathname.h: New file, from GNU gettext.
73099         * lib/concatpath.c: New file, from GNU gettext.
73100
73101 2003-03-30  Bruno Haible  <bruno@clisp.org>
73102
73103         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73104
73105 2003-03-30  Bruno Haible  <bruno@clisp.org>
73106
73107         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73108         function chown() doesn't exist.
73109
73110 2003-03-28  Bruno Haible  <bruno@clisp.org>
73111
73112         * modules/copy-file: New file.
73113         * MODULES.html.sh (func_all_modules): Add it.
73114
73115 2003-03-28  Bruno Haible  <bruno@clisp.org>
73116
73117         * m4/copy-file.m4: New file.
73118
73119 2003-03-28  Bruno Haible  <bruno@clisp.org>
73120
73121         * lib/copy-file.h: New file, from GNU gettext.
73122         * lib/copy-file.c: New file, from GNU gettext.
73123
73124 2003-03-18  Jim Meyering  <jim@meyering.net>
73125
73126         * lib/quote.c (quote_n): Fix typo in comment.
73127
73128 2003-03-18  Bruno Haible  <bruno@clisp.org>
73129
73130         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73131         checking.
73132         * m4/onceonly_2_57.m4: Likewise.
73133
73134 2003-03-17  Bruno Haible  <bruno@clisp.org>
73135
73136         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73137         (m4_quote): Remove macro.
73138         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73139
73140 2003-03-14  Jim Meyering  <jim@meyering.net>
73141
73142         Merge changes from Coreutils.
73143         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73144         to be const, in order to avoid warnings.
73145         (obstack_room): Likewise.
73146         (obstack_empty_p): Likewise.
73147
73148 2003-03-14  Bruno Haible  <bruno@clisp.org>
73149
73150         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73151         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73152
73153 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73154
73155         Merge changes from Bison.
73156         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73157         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73158         when compiling Bison 1.875's `bitset bset = obstack_alloc
73159         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73160         * lib/hash.c: Include <stdbool.h> unconditionally.
73161
73162 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73163
73164         * m4/onceonly.m4 (m4_quote): New macro.
73165         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73166         Quote AC_FOREACH variable-expansions properly.
73167
73168 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73169
73170         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73171
73172 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73173
73174         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73175         Reported by Bruce Becker; see:
73176         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73177
73178 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73179             Bruno Haible  <bruno@clisp.org>
73180
73181         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73182         Reported by John Hughes, see
73183         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73184
73185 2003-02-20  Bruno Haible  <bruno@clisp.org>
73186
73187         * MODULES.html.sh (func_all_modules): Add poll.
73188
73189 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73190
73191         * modules/poll: New file.
73192
73193 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73194
73195         * lib/poll_.h: New file.
73196         * lib/poll.c: New file.
73197
73198 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73199
73200         * m4/poll.m4: New file.
73201
73202 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73203
73204         * modules/mathl: New file.
73205
73206 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73207
73208         * lib/mathl.h: New file.
73209         * lib/acosl.c: New file.
73210         * lib/asinl.c: New file.
73211         * lib/atanl.c: New file.
73212         * lib/ceill.c: New file.
73213         * lib/cosl.c: New file.
73214         * lib/expl.c: New file.
73215         * lib/floorl.c: New file.
73216         * lib/frexpl.c: New file.
73217         * lib/ldexpl.c: New file.
73218         * lib/logl.c: New file.
73219         * lib/sincosl.c: New file.
73220         * lib/sinl.c: New file.
73221         * lib/sqrtl.c: New file.
73222         * lib/tanl.c: New file.
73223         * lib/trigl.c: New file.
73224         * lib/trigl.h: New file.
73225
73226 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73227
73228         * m4/mathl.m4: New file.
73229
73230 2003-02-18  Bruno Haible  <bruno@clisp.org>
73231
73232         * MODULES.html.sh (func_all_modules): Add mathl.
73233
73234 2003-02-17  Bruno Haible  <bruno@clisp.org>
73235
73236         * modules/mkdtemp: New module.
73237         * MODULES.html.sh (func_all_modules): Add it.
73238
73239 2003-02-17  Bruno Haible  <bruno@clisp.org>
73240
73241         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73242
73243 2003-02-17  Bruno Haible  <bruno@clisp.org>
73244
73245         * lib/mkdtemp.h: New file, from GNU gettext.
73246         * lib/mkdtemp.c: New file, from GNU gettext.
73247
73248 2003-02-02  Jim Meyering  <jim@meyering.net>
73249
73250         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73251         e.g. glibc-2.2.93.
73252
73253 2003-01-31  Bruno Haible  <bruno@clisp.org>
73254
73255         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73256         'rpl_rename'.
73257         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73258         'rpl_strnlen'.
73259         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73260         'rpl_strtod'.
73261         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73262         'rpl_utime'.
73263
73264 2003-01-31  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/rename.c: #undef rename before defining rpl_rename.
73267         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73268
73269 2003-01-30  Bruno Haible  <bruno@clisp.org>
73270
73271         * modules/vasnprintf, modules/vasprintf: New modules.
73272         * MODULES.html.sh (func_all_modules): Add them.
73273
73274 2003-01-30  Bruno Haible  <bruno@clisp.org>
73275
73276         * m4/signed.m4: New file, from GNU gettext.
73277         * m4/longdouble.m4: New file, from GNU gettext.
73278         * m4/wchar_t.m4: New file, from GNU gettext.
73279         * m4/wint_t.m4: New file, from GNU gettext.
73280         * m4/vasnprintf.m4: New file.
73281         * m4/vasprintf.m4: New file.
73282
73283 2003-01-30  Bruno Haible  <bruno@clisp.org>
73284
73285         * lib/printf-args.h: New file, from GNU gettext.
73286         * lib/printf-args.c: New file, from GNU gettext.
73287         * lib/printf-parse.h: New file, from GNU gettext.
73288         * lib/printf-parse.c: New file, from GNU gettext.
73289         * lib/vasnprintf.h: New file, from GNU gettext.
73290         * lib/vasnprintf.c: New file, from GNU gettext.
73291         * lib/asnprintf.c: New file, from GNU gettext.
73292         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73293         * lib/vasprintf.c: New file, from GNU gettext.
73294         * lib/asprintf.c: New file, from GNU gettext.
73295
73296 2003-01-29  Bruno Haible  <bruno@clisp.org>
73297
73298         * modules/stpncpy: New module.
73299         * MODULES.html.sh (func_all_modules): Add it.
73300
73301 2003-01-29  Bruno Haible  <bruno@clisp.org>
73302
73303         * m4/stpncpy.m4: New file.
73304
73305 2003-01-29  Bruno Haible  <bruno@clisp.org>
73306
73307         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73308         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73309
73310 2003-01-28  Bruno Haible  <bruno@clisp.org>
73311
73312         * modules/c-ctype: New module.
73313         * MODULES.html.sh (func_all_modules): Add it.
73314
73315 2003-01-28  Bruno Haible  <bruno@clisp.org>
73316
73317         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73318         Paul Eggert.
73319         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73320         Paul Eggert.
73321
73322 2003-01-27  Bruno Haible  <bruno@clisp.org>
73323
73324         * modules/xsetenv: New module.
73325         * MODULES.html.sh (func_all_modules): Add it.
73326
73327 2003-01-27  Bruno Haible  <bruno@clisp.org>
73328
73329         * lib/xsetenv.h: New file, from GNU gettext.
73330         * lib/xsetenv.c: New file, from GNU gettext.
73331
73332 2003-01-23  Jim Meyering  <jim@meyering.net>
73333
73334         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73335         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73336
73337 2003-01-23  Bruno Haible  <bruno@clisp.org>
73338
73339         * modules/minmax: New module.
73340         * MODULES.html.sh (func_all_modules): Add it.
73341
73342 2003-01-23  Bruno Haible  <bruno@clisp.org>
73343
73344         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
73345         Eggert.
73346
73347 2003-01-22  Bruno Haible  <bruno@clisp.org>
73348
73349         * modules/exit: New module.
73350         * MODULES.html.sh (func_all_modules): Add it.
73351
73352 2003-01-22  Bruno Haible  <bruno@clisp.org>
73353
73354         * lib/exit.h: New file, from GNU gettext.
73355
73356 2003-01-19  Bruno Haible  <bruno@clisp.org>
73357
73358         * gnulib-tool: Recognize option --extract-maintainer.
73359         (func_get_maintainer): New function.
73360         * modules/*: Add Maintainer entry.
73361
73362 2003-01-16  Jim Meyering  <jim@meyering.net>
73363
73364         * m4/regex.m4: The `regex' struct is both input and output.
73365         Initialize it before each use.  Patch by Tim Waugh.
73366
73367 2003-01-16  Bruno Haible  <bruno@clisp.org>
73368
73369         * MODULES.html.sh: Add a table of contents. Add the module name as
73370         leftmost column. Add hyperlinks.
73371
73372 2003-01-15  Bruno Haible  <bruno@clisp.org>
73373
73374         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
73375
73376 2003-01-15  Bruno Haible  <bruno@clisp.org>
73377
73378         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
73379         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
73380         suffix.
73381
73382 2003-01-15  Bruno Haible  <bruno@clisp.org>
73383
73384         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
73385
73386 2003-01-15  Bruno Haible  <bruno@clisp.org>
73387
73388         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
73389         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
73390
73391 2003-01-14  Jim Meyering  <jim@meyering.net>
73392
73393         * lib/same.c (same_name): Tweak a comment.
73394
73395 2003-01-14  Bruno Haible  <bruno@clisp.org>
73396
73397         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
73398         when a string comparison is sufficient.
73399
73400 2003-01-14  Bruno Haible  <bruno@clisp.org>
73401
73402         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
73403         'unsigned int'.
73404
73405 2003-01-14  Bruno Haible  <bruno@clisp.org>
73406
73407         * lib/hash-pjw.c: Add comment about low quality of this function.
73408
73409 2003-01-13  Bruno Haible  <bruno@clisp.org>
73410
73411         * modules/stpcpy: Distribute lib/stpcpy.h.
73412         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
73413
73414 2003-01-13  Bruno Haible  <bruno@clisp.org>
73415
73416         * modules/*: Add a description.
73417         * modules/strpbrk: Fix Makefile.am snippet.
73418         * modules/strtoimax: Fix dependencies.
73419         * modules/strtoumax: Likewise.
73420
73421 2003-01-13  Bruno Haible  <bruno@clisp.org>
73422
73423         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
73424         * modules/alloca (Makefile.am): All object files depend on alloca.h.
73425         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
73426
73427 2003-01-13  Bruno Haible  <bruno@clisp.org>
73428
73429         * gnulib-tool (func_create_testdir): Store config/* files in the main
73430         directory.
73431         * config.rpath: Move to ...
73432         * config/config.rpath: ... here.
73433         * modules/gettext: Contains config/config.rpath, not config.rpath.
73434         * modules/iconv: Likewise.
73435
73436 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73437
73438         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73439         to avoid collisions with libcurses and libreadline.
73440
73441         * m4/getstr.m4: Remove.
73442         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
73443
73444 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73445
73446         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73447         to avoid collisions with libcurses and libreadline.
73448
73449         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
73450         * lib/getstr.h, getstr.c: Remove.
73451         * lib/getline.c: Include "getline.h", to check interface.
73452         Move body of old getstr.c here: this defines MIN_CHUNK and
73453         declares getdelim2, which is renamed from getstr.
73454         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
73455
73456         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
73457         All uses changed.
73458         * lib/linebuffer.h: Likewise.
73459         (readline): Remove backward-compatibility macro.
73460
73461 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73462
73463         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73464         to avoid collisions with libcurses and libreadline.
73465         * getstr: Remove.
73466         * MODULES.html.sh: Remove getstr.
73467         * modules/getline: Depend on unlocked-io, not getstr.
73468
73469 2003-01-12  Jim Meyering  <jim@meyering.net>
73470
73471         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
73472
73473 2003-01-10  Bruno Haible  <bruno@clisp.org>
73474
73475         * modules/alloca: Change Makefile.am requirements. Simplify Include
73476         requirements. Add lib/alloca_.h to file list.
73477
73478 2003-01-10  Bruno Haible  <bruno@clisp.org>
73479
73480         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
73481
73482 2003-01-10  Bruno Haible  <bruno@clisp.org>
73483
73484         * lib/alloca_.h: New file.
73485         * lib/getdate.y: Unconditionally include alloca.h.
73486         * lib/makepath.c: Likewise.
73487         * lib/setenv.c: Likewise.
73488         * lib/userspec.c: Likewise.
73489
73490 2003-01-09  Karl Berry  <karl@gnu.org>
73491
73492         * MODULES.html.sh: include `dirname $0` in PATH, to find
73493         gnulib-tool.
73494
73495 2003-01-09  Bruno Haible  <bruno@clisp.org>
73496
73497         * modules/stdbool: Change configure.ac, Makefile.am requirements.
73498         Simplify Include requirements. Add lib/stdbool.h.in to file list.
73499
73500 2003-01-09  Bruno Haible  <bruno@clisp.org>
73501
73502         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
73503
73504 2003-01-09  Bruno Haible  <bruno@clisp.org>
73505
73506         * lib/stdbool.h.in: New file.
73507
73508 2003-01-09  Bruno Haible  <bruno@clisp.org>
73509
73510         * gnulib-tool (func_all_modules): Ignore files ending in ~.
73511         * MODULES.html.sh: Likewise.
73512
73513 2003-01-08  Jim Meyering  <jim@meyering.net>
73514
73515         * lib/full-write.c: Undefine and define-away `const' after inclusion
73516         of errno.h, not before.  Suggestion from Bruno Haible.
73517
73518 2003-01-08  Bruno Haible  <bruno@clisp.org>
73519
73520         * modules/full-read: Depend on full-write.
73521
73522 2003-01-08  Bruno Haible  <bruno@clisp.org>
73523
73524         * lib/safe-read.c: Include specification header first, to ensure its
73525         selfcontainedness.
73526         * lib/full-write.c: Likewise.
73527
73528 2003-01-07  Jim Meyering  <jim@meyering.net>
73529
73530         * lib/full-write.c: Rework so that it may serve to define full_read,
73531         too.
73532         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
73533
73534 2003-01-07  Bruno Haible  <bruno@clisp.org>
73535
73536         * lib/strtoimax.c: Include <stdint.h> as an alternative to
73537         <inttypes.h>.
73538         * lib/xstrtol.h: Likewise.
73539         * lib/xstrtoimax.c: Likewise.
73540         * lib/xstrtoumax.c: Likewise.
73541         * lib/human.h: Likewise.
73542
73543         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
73544         on systems that have <inttypes.h> but not <stdint.h>.
73545
73546 2003-01-07  Bruno Haible  <bruno@clisp.org>
73547
73548         * MODULES.html.sh: Add copyright notice.
73549         (missed_files): Omit CVS directory entries.
73550         (func_module): Make it work with sed-3.02.
73551         * MODULES.txt: Remove file.
73552
73553 2003-01-06  Jim Meyering  <jim@meyering.net>
73554
73555         * lib/version-etc.c: Update year in translatable copyright string.
73556
73557 2003-01-03  Karl Berry  <karl@gnu.org>
73558
73559         * config/config.{guess,sub}: update from prep.
73560
73561 2003-01-02  Karl Berry  <karl@gnu.org>
73562
73563         * doc/COPYING.DOC: belatedly updated to 1.2.
73564
73565 2003-01-01  Karl Berry  <karl@gnu.org>
73566
73567         * gnulib-tool (func_verify_module): report module name $module in
73568         error message, not $1.
73569         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73570         be created, only if it doesn't exist.
73571         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73572
73573 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73574
73575         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73576
73577 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73578
73579         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73580         memcmp if strcoll doesn't work.
73581
73582 2002-12-31  Bruno Haible  <bruno@clisp.org>
73583
73584         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73585         nonempty.
73586
73587 2002-12-31  Bruno Haible  <bruno@clisp.org>
73588
73589         * lib/memcoll.c (STRCOLL): New macro.
73590         (memcoll): Use it.
73591
73592 2002-12-31  Bruno Haible  <bruno@clisp.org>
73593
73594         * lib/localcharset.h: New file.
73595         * lib/localcharset.c: Include it.
73596         * lib/unicodeio.c: Likewise.
73597
73598 2002-12-31  Bruno Haible  <bruno@clisp.org>
73599
73600         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73601         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73602
73603 2002-12-31  Bruno Haible  <bruno@clisp.org>
73604
73605         * lib/getline.h: Include <stddef.h>, for size_t.
73606
73607         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73608         * lib/unicodeio.c: Don't include <stddef.h>.
73609
73610 2002-12-31  Bruno Haible  <bruno@clisp.org>
73611
73612         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73613         HAVE_TM_ZONE.
73614
73615 2002-12-24  Karl Berry  <karl@gnu.org>
73616
73617         * config/config.guess: update from prep.
73618
73619 2002-12-24  Bruno Haible  <bruno@clisp.org>
73620
73621         General infrasructure.
73622         * m4/README: Rewritten.
73623         * m4/onceonly.m4: New file.
73624         * m4/onceonly_2_57.m4: New file.
73625
73626         Module atexit.
73627         * m4/atexit.m4: New file.
73628
73629         Module strtod.
73630         * m4/strtod.m4: New file.
73631
73632         Module strtol.
73633         * m4/strtol.m4: New file.
73634
73635         Module strtoul.
73636         * m4/strtoul.m4: New file.
73637
73638         Module memchr.
73639         * m4/memchr.m4: New file.
73640
73641         Module memcmp.
73642         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73643         (jm_FUNC_MEMCMP): Invoke it.
73644
73645         Module memcpy.
73646         * m4/memcpy.m4: New file.
73647
73648         Module memmove.
73649         * m4/memmove.m4: New file.
73650
73651         Module memset.
73652         * m4/memset.m4: New file.
73653
73654         Module strcspn.
73655         * m4/strcspn.m4: New file.
73656
73657         Module strpbrk.
73658         * m4/strpbrk.m4: New file.
73659
73660         Module strstr.
73661         * m4/strstr.m4: New file.
73662
73663         Module strerror.
73664         * m4/strerror.m4: New file.
73665
73666         Module mktime.
73667         * m4/mktime.m4: Renamed from jm-mktime.m4.
73668         (gl_PREREQ_MKTIME): New macro.
73669         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73670
73671         Module malloc.
73672         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73673         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73674         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73675
73676         Module realloc.
73677         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73678         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73679         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73680
73681         Module strftime.
73682         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73683         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73684         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73685         gl_TM_GMTOFF.
73686         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73687
73688         Module xalloc.
73689         * m4/xalloc.m4: New file.
73690
73691         Module alloca.
73692         * m4/alloca.m4: New file.
73693
73694         Module putenv.
73695         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73696         (jm_FUNC_PUTENV): Invoke it.
73697
73698         Module setenv.
73699         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73700         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73701         when invoked twice.
73702         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73703         gt_FUNC_SETENV.
73704
73705         Module memrchr.
73706         * m4/memrchr.m4: New file.
73707
73708         Module stpcpy.
73709         * m4/stpcpy.m4: New file.
73710
73711         Module strcase.
73712         * m4/strcase.m4: New file.
73713
73714         Module strdup.
73715         * m4/strdup.m4: New file.
73716
73717         Module strnlen.
73718         * m4/strnlen.m4: New file.
73719
73720         Module strndup.
73721         * m4/strndup.m4: New file.
73722
73723         Module xstrtod.
73724         * m4/xstrtod.m4: New file.
73725
73726         Module xstrtol.
73727         * m4/xstrtol.m4: New file.
73728
73729         Module getdate.
73730         * m4/getdate.m4: New file.
73731
73732         Module unlocked-io.
73733         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73734         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73735         * m4/jm-glibc-io.m4n: Remove file.
73736
73737         Module long-options.
73738         * m4/long-options.m4: New file.
73739
73740         Module md5.
73741         * m4/md5.m4: New file.
73742
73743         Module sha.
73744         * m4/sha.m4: New file.
73745
73746         Module getstr.
73747         * m4/getstr.m4: New file.
73748
73749         Module getline.
73750         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73751         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73752         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73753         simply getline. Infoke gl_PREREQ_GETLINE.
73754
73755         Module obstack.
73756         * m4/obstack.m4: New file.
73757
73758         Module hash.
73759         * m4/hash.m4: New file.
73760
73761         Module readtokens.
73762         * m4/readtokens.m4: New file.
73763
73764         Module strverscmp.
73765         * m4/strverscmp.m4: New file.
73766
73767         Module stdbool.
73768         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73769         OSF/1.
73770
73771         Module strtoll.
73772         * m4/strtoll.m4: New file.
73773
73774         Module strtoull.
73775         * m4/strtoull.m4: New file.
73776
73777         Module strtoimax.
73778         * m4/strtoimax.m4: New file.
73779
73780         Module strtoumax.
73781         * m4/strtoumax.m4: New file.
73782
73783         Module xstrtoimax.
73784         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73785         jm_AC_PREREQ_XSTRTOIMAX.
73786         Moved the strtol prerequisites to strtol.m4.
73787         Moved the strtoll prerequisites to strtoll.m4.
73788         Moved the strtoimax prerequisites to strtoimax.m4.
73789
73790         Module xstrtoumax.
73791         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73792         jm_AC_PREREQ_XSTRTOUMAX.
73793         Moved the strtoul prerequisites to strtoul.m4.
73794         Moved the strtoull prerequisites to strtoull.m4.
73795         Moved the strtoumax prerequisites to strtoumax.m4.
73796
73797         Module chown.
73798         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73799         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73800
73801         Module dup2.
73802         * m4/dup2.m4: New file.
73803
73804         Module ftruncate.
73805         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73806         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73807
73808         Module getgroups.
73809         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73810         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73811
73812         Module gettimeofday.
73813         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73814         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73815         gl_PREREQ_GETTIMEOFDAY.
73816
73817         Module mkdir.
73818         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73819         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73820
73821         Module mkstemp.
73822         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73823         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73824         jm_AC_TYPE_UINTMAX_T.
73825         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73826
73827         Module stat.
73828         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73829         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73830
73831         Module lstat.
73832         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73833         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73834
73835         Module timespec.
73836         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73837         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73838         * m4/st_mtim.m4: Indentation.
73839
73840         Module nanosleep.
73841         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73842         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73843         gl_PREREQ_NANOSLEEP.
73844
73845         Module regex.
73846         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73847         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73848         (gl_REGEX): New macro.
73849
73850         Module rename.
73851         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73852         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73853
73854         Module rmdir.
73855         * m4/rmdir.m4: New file.
73856
73857         Module utime.
73858         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73859         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73860         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73861
73862         Module dirname.
73863         * m4/dirname.m4: New file.
73864
73865         Module getopt.
73866         * m4/getopt.m4: New file.
73867
73868         Module unistd-safer.
73869         * m4/unistd-safer.m4: New file.
73870
73871         Module fnmatch.
73872         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73873         declaration.
73874         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73875         (gl_FUNC_FNMATCH_POSIX): New macro.
73876         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73877         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73878         simply fnmatch.
73879
73880         Module exclude.
73881         * m4/exclude.m4: New file.
73882
73883         Module human.
73884         * m4/human.m4: New file.
73885
73886         Module acl.
73887         * m4/acl.m4: Nop.
73888
73889         Module backupfile.
73890         * m4/backupfile.m4: New file.
73891         * m4/d-ino.m4: Indentation.
73892
73893         Module fsusage.
73894         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73895         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73896         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73897
73898         Module dirfd.
73899         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73900         requirements.
73901
73902         Module euidaccess.
73903         * m4/euidaccess.m4: New file.
73904
73905         Module file-type.
73906         * m4/file-type.m4: New file.
73907
73908         Module fileblocks.
73909         * m4/fileblocks.m4: New file.
73910
73911         Module filemode.
73912         * m4/filemode.m4: New file.
73913
73914         Module isdir.
73915         * m4/isdir.m4: New file.
73916
73917         Module lchown.
73918         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73919         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73920
73921         Module makepath.
73922         * m4/makepath.m4: New file.
73923
73924         Module modechange.
73925         * m4/modechange.m4: New file.
73926
73927         Module mountlist.
73928         * m4/mountlist.m4: New file.
73929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73930         Indentation.
73931
73932         Module path-concat.
73933         * m4/path-concat.m4: New file.
73934
73935         Module pathmax.
73936         * m4/pathmax.m4: New file.
73937
73938         Module same.
73939         * m4/same.m4: New file.
73940
73941         Module save-cwd.
73942         * m4/save-cwd.m4: New file.
73943
73944         Module savedir.
73945         * m4/savedir.m4: New file.
73946
73947         Module xgetcwd.
73948         * m4/xgetcwd.m4: New file.
73949         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73950
73951         Module xreadlink.
73952         * m4/xreadlink.m4: New file.
73953
73954         Module safe-read.
73955         * m4/safe-read.m4: New file.
73956
73957         Module safe-write.
73958         * m4/safe-write.m4: New file.
73959
73960         Module closeout.
73961         * m4/closeout.m4: New file.
73962
73963         Module stdio-safer.
73964         * m4/stdio-safer.m4: New file.
73965
73966         Module getpass.
73967         * m4/getpass.m4: New file.
73968
73969         Module getugroups.
73970         * m4/getugroups.m4: New file.
73971
73972         Module group-member.
73973         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73974         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73975
73976         Module idcache.
73977         * m4/idcache.m4: New file.
73978
73979         Module userspec.
73980         * m4/userspec.m4: New file.
73981
73982         Module gettime.
73983         * m4/clock_time.m4: New file.
73984         * m4/gettime.m4: New file.
73985
73986         Module settime.
73987         * m4/settime.m4: New file.
73988
73989         Module posixtm.
73990         * m4/posixtm.m4: New file.
73991
73992         Module gethostname.
73993         * m4/gethostname.m4: New file.
73994
73995         Module canon-host.
73996         * m4/canon-host.m4: New file.
73997
73998         Module gettext.
73999         * m4/codeset.m4: New file, from gettext-0.11.5.
74000         * m4/gettext.m4: New file, from gettext-0.11.5.
74001         * m4/glibc21.m4: New file, from gettext-0.11.5.
74002         * m4/iconv.m4: New file, from gettext-0.11.5.
74003         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74004         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74005         * m4/inttypes.m4: New file, from gettext-0.11.5.
74006         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74007         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74008         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74009         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74010         * m4/lib-link.m4: New file, from gettext-0.11.5.
74011         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74012         * m4/progtest.m4: New file, from gettext-0.11.5.
74013         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74014         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74015         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74016
74017         Module localcharset.
74018         * m4/localcharset.m4: New file.
74019
74020         Module hard-locale.
74021         * m4/hard-locale.m4: New file.
74022
74023         Module mbswidth.
74024         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74025         onceonly macros.
74026         * m4/mbrtowc.m4: Add comment.
74027
74028         Module memcasecmp.
74029         * m4/memcasecmp.m4: New file.
74030
74031         Module memcoll.
74032         * m4/memcoll.m4: New file.
74033
74034         Module unicodeio.
74035         * m4/unicodeio.m4: New file.
74036
74037         Module rpmatch.
74038         * m4/rpmatch.m4: New file.
74039
74040         Module yesno.
74041         * m4/yesno.m4: New file.
74042
74043         Module exitfail.
74044         * m4/exitfail.m4: New file.
74045
74046         Module c-stack.
74047         * m4/c-stack.m4 (gl_C_STACK): New macro.
74048         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74049
74050         Module error.
74051         * m4/error.m4 (gl_ERROR): New macro.
74052         (jm_PREREQ_ERROR): Use onceonly macros.
74053
74054         Module fatal.
74055         * m4/fatal.m4: New file.
74056
74057         Module getloadavg.
74058         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74059         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74060
74061         Module getpagesize.
74062         * m4/getpagesize.m4: New file.
74063
74064         Module getusershell.
74065         * m4/getusershell.m4: New file.
74066
74067         Module physmem.
74068         * m4/physmem.m4: New file.
74069
74070         Module posixver.
74071         * m4/posixver.m4: New file.
74072
74073         Module quotearg.
74074         * m4/quotearg.m4: New file.
74075
74076         Module quote.
74077         * m4/quote.m4: New file.
74078
74079         Module readutmp.
74080         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74081
74082         Module sig2str.
74083         * m4/sig2str.m4: New file.
74084
74085         Other.
74086         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74087         ulonglong.m4.
74088         * m4/intmax_t.m4: New file.
74089         * m4/d-type.m4: Indentation.
74090         * m4/jm-macros.m4: Update.
74091         * m4/prereq.m4 (jm_PREREQ): Update.
74092         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74093         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74094         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74095         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74096         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74097         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74098         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74099         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74100         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74101         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74102         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74103         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74104         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74105         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74106         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74107         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74108         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74109         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74110         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74111
74112 2002-12-24  Bruno Haible  <bruno@clisp.org>
74113
74114         * MODULES.txt: Update according to m4/ changes.
74115
74116         Module gettext.
74117         * config.rpath: New file, from gettext-0.11.5.
74118
74119         * modules/*: New module descriptions.
74120         * gnulib-tool: New file.
74121         * MODULES.html.sh: New file.
74122
74123 2002-12-21  Karl Berry  <karl@gnu.org>
74124
74125         * doc/fdl.texi: update to version 1.2.
74126
74127 2002-12-19  Karl Berry  <karl@gnu.org>
74128
74129         * config/config.guess: update from prep.
74130
74131 2002-12-18  Bruno Haible  <bruno@clisp.org>
74132
74133         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74134         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74135
74136 2002-12-17  Bruno Haible  <bruno@clisp.org>
74137
74138         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74139         stdlib.h, string.h.
74140
74141 2002-12-17  Bruno Haible  <bruno@clisp.org>
74142
74143         * lib/canon-host.c (strdup): Remove unused declaration.
74144
74145         * lib/fsusage.c: Include full_read.h.
74146         (get_fs_usage): Use full_read instead of safe_read.
74147
74148         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74149
74150 2002-12-12  Karl Berry  <karl@gnu.org>
74151
74152         * config/config.guess: update from prep.
74153
74154 2002-12-11  Bruno Haible  <bruno@clisp.org>
74155
74156         * m4/setenv.m4: New file, from gettext-0.11.5.
74157
74158 2002-12-11  Bruno Haible  <bruno@clisp.org>
74159
74160         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74161         not unsetenv().
74162         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74163         modifications:
74164
74165         2002-12-11  Bruno Haible  <bruno@clisp.org>
74166
74167                 * setenv.c (alloca): Fall back to malloc.
74168                 (freea): New macro.
74169                 (setenv): Use freea() to free memory allocated with alloca().
74170
74171         2002-11-13  Bruno Haible  <bruno@clisp.org>
74172
74173                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74174                 function declarations.
74175                 * unsetenv.c (unsetenv): Likewise.
74176
74177         2002-03-04  Bruno Haible  <bruno@clisp.org>
74178
74179                 Portability to AIX 4.3.3.
74180                 * unsetenv.c: New file, extracted from setenv.c.
74181                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74182
74183         2001-12-20  Bruno Haible  <bruno@clisp.org>
74184
74185                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74186                 use malloc instead. For SunOS 4.
74187
74188         2001-12-11  Bruno Haible  <bruno@clisp.org>
74189
74190                 * setenv.c: Declare alloca.
74191                 (compar_fn_t): New typedef.
74192                 (KNOWN_VALUE, STORE_VALUE): Use it.
74193
74194         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74195         setenv.h.
74196
74197 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74198
74199         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74200         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74201         Choose values that are less likely to collide with system fnmatch
74202         options.
74203         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74204         defined (e.g., a pure POSIX system).
74205         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74206         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74207
74208 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74209
74210         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74211         a pain in practice to deal with generated m4 files.  This change
74212         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74213
74214         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74215         and jm-glibc-io.m4, as they are no longer a special case.
74216         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74217         kludge and the auto-generation stuff.  Check only whether the
74218         functions are declared, not whether they exist, since older hosts
74219         that don't declare the functions can't use the optimization anyway.
74220
74221 2002-12-06  Jim Meyering  <jim@meyering.net>
74222
74223         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74224
74225         Merge in changes from libc's misc/error.c, in preparation
74226         for the merge of gnulib's changes back into libc.
74227
74228         * lib/error.c (_): Define only if not already defined.
74229         Move definition to follow all #include directives.
74230         Include unlocked-io.h only if !_LIBC.
74231         [_LIBC]: Include <libio/libioP.h>.
74232         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74233         (fflush): Tweak definition to use INTUSE.
74234         (putc): Define.
74235
74236 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74237
74238         * lib/alloca.c [defined emacs]: Include "lisp.h".
74239         (xalloc_die) [defined emacs]: New macro.
74240         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74241         [! defined emacs]: Include <xalloc.h>.
74242         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74243         (pointer): Typedef to POINTER_TYPE *.
74244         (malloc): Remove decl; we now always use xmalloc.
74245         (alloca): Use old-style definition, since Emacs needs this.
74246         Check for arithmetic overflow when computing combined size.
74247
74248 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74249
74250         Do not generate unlocked-io.h automatically, since it's easier to
74251         maintain it by hand.
74252
74253         * lib/unlocked-io.h: New file, from GNU diffutils,
74254         but with proper copyright notice and attribution.
74255         * lib/gen-uio: Remove.
74256         * lib/Makefile.am: Add copyright notice.
74257         (libfetish_a_SOURCES): Add unlocked-io.h.
74258         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74259         (DISTCLEANFILES, io_functions): Remove macros.
74260         (EXTRA_DIST): Remove gen_uio.
74261         (unlocked-io.h): Remove rule.
74262
74263 2002-12-04  Jim Meyering  <jim@meyering.net>
74264
74265         Reflect the fact that stat.c and lstat.c are no longer generated.
74266         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74267         (DISTCLEANFILES): Likewise.
74268         (EXTRA_DIST): Likewise.
74269         (all_local): Don't depend on stat.c or lstat.c.
74270         (stat.c, lstat.c): Remove rules.
74271         (EXTRA_DIST): Remove xstat.in.
74272
74273         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74274         * lib/stat.c: New file.  Contents mostly from xstat.in.
74275         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74276         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74277
74278         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74279         too.
74280         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74281
74282 2002-12-03  Jim Meyering  <jim@meyering.net>
74283
74284         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74285         but not semantics, to minimize the differences between these two files.
74286         (safe_read): Change comment to mention SAFE_READ_ERROR.
74287
74288         * lib/safe-read.c (IS_EINTR): Define.
74289         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74290
74291 2002-12-02  Jim Meyering  <jim@meyering.net>
74292
74293         * lib/safe-read.c (EINTR): Define.
74294         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74295         (INT_MAX): Provide fallback.
74296         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74297
74298         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74299
74300 2002-12-02  Bruno Haible  <bruno@clisp.org>
74301
74302         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74303         Define, taken from safe-read.c.
74304         (INT_MAX): Provide fallback.
74305         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74306         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74307
74308         * lib/safe-read.c (EINTR): Remove definition.
74309         (safe_read): Don't use EINTR if it is absent.
74310
74311 2002-12-01  Jim Meyering  <jim@meyering.net>
74312
74313         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74314         zero.
74315         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74316
74317 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74318
74319         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74320         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74321         with `if (! (value < limit)) abort ();', for readability.
74322
74323 2002-11-26  Karl Berry  <karl@gnu.org>
74324
74325         * lib/strdup.c: copy from libc again, with jim's ok.
74326         * lib/.cppi-disable: re-add strdup.c
74327
74328 2002-11-25  Karl Berry  <karl@gnu.org>
74329
74330         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74331         instead of "strtol.c".
74332
74333 2002-11-25  Karl Berry  <karl@gnu.org>
74334
74335         * config/install-sh: update from automake for variable quoting, $0 in
74336         error msgs, etc.
74337
74338         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74339         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74340         entry.
74341
74342 2002-11-25  Jim Meyering  <jim@meyering.net>
74343
74344         * lib/mktime.c: Sync from libc, now that it has the latest fix.
74345
74346 2002-11-24  Karl Berry  <karl@gnu.org>
74347
74348         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
74349         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
74350
74351 2002-11-24  Jim Meyering  <jim@meyering.net>
74352
74353         Update from coreutils:
74354
74355         * lib/mktime.c: Merge in changes from libc.
74356
74357         Avoid a link-time failure on some Linux systems.
74358         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
74359         (otherwise).
74360         (__mon_yday): Declare with the STATIC attribute.
74361         (__mktime_internal): Likewise.
74362         Based on a report from Greg Schafer.
74363
74364 2002-11-23  Jim Meyering  <jim@meyering.net>
74365
74366         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
74367         Use `unsigned', not `int', as type of index.
74368
74369         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
74370
74371         * lib/fsusage.c: Remove unneeded parentheses around operands of
74372         `defined'.
74373
74374 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74375
74376         * lib/quotearg.h: Allow multiple inclusion by surrounding with
74377         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
74378         so that we can be included first.
74379         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
74380         * lib/quotearg.c: Include quotearg.h immediately after config.h.
74381         No need to include stddef.h or sys/types.h any more.
74382         Surround local include files with "", not "<>".
74383         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
74384         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
74385         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
74386         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
74387         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
74388         (ISPRINT): Remove; no longer needed now that we assume C89.
74389
74390         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
74391         Preserve errno.
74392
74393         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
74394         quotearg_char): Use SIZE_MAX rather than
74395         (size_t) -1 when we are talking about "infinity".
74396
74397         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
74398
74399 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74400
74401         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
74402         hint that one should use `if (! x) abort ();' rather than `assert
74403         (x);', and anyway it's one less thing to worry about configuring.
74404         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
74405         hash_rehash, hash_insert): Use abort rather than assert.
74406
74407 2002-11-22  Bruno Haible  <bruno@clisp.org>
74408
74409         * lib/safe-read.h: Assume C89. Add comments.
74410         (safe_read): Change return type to size_t.
74411         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
74412         byte counts > SSIZE_MAX correctly.
74413         * lib/safe-write.h: New file.
74414         * lib/safe-write.c: New file.
74415         * lib/full-read.h: New file.
74416         * lib/full-read.c: New file.
74417         * lib/full-write.h: Assume C89. Add comments.
74418         * lib/full-write.c: Include safe-write.h.
74419         (full_write): Rewritten to use safe_write.
74420         Suggested by Jim Meyering and Paul Eggert.
74421
74422 2002-11-21  Jim Meyering  <jim@meyering.net>
74423
74424         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
74425
74426         Merge in changes from the coreutils.
74427
74428         2002-09-25  Paul Eggert  <eggert@twinsun.com>
74429         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
74430         <stdint.h>.
74431         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
74432         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
74433         int.  Work more efficiently if X is the same width as uintmax_t.
74434         Do not compare X to -1, to avoid bogus compiler warning.
74435         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
74436         Don't assume that f_frsize and f_bsize are the same type.
74437
74438         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
74439         warning on FreeBSD.
74440
74441         * lib/makepath.c (make_path): Restore umask *before* creating the final
74442         component.
74443         (make_path): Minor reformatting.
74444
74445         * lib/xmalloc.c: Adjust to work with new autoconf macros,
74446         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
74447         HAVE_MALLOC/HAVE_REALLOC.
74448
74449         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
74450         dummy ones.  At least on GNU/Linux systems, `auto' means something
74451         else.
74452         From Michael Stone.
74453
74454 2002-11-21  Bruno Haible  <bruno@clisp.org>
74455
74456         Remove case insensitive option matching.
74457         * lib/argmatch.h (argcasematch): Remove declaration.
74458         (ARGCASEMATCH): Remove macro.
74459         (__xargmatch_internal): Remove case_sensitive argument.
74460         (XARGMATCH): Update.
74461         (XARGCASEMATCH): Remove macro.
74462         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
74463         case_sensitive argument.
74464         (argcasematch): Remove function.
74465         (__xargmatch_internal): Remove case_sensitive argument.
74466         (main): Use XARGMATCH instead of XARGCASEMATCH.
74467
74468         * lib/xmalloc.c: Change compile-time error message. Add comment about
74469         required autoconf version.
74470
74471 2002-11-20  Paul Eggert  <eggert@twinsun.com>
74472
74473         Merge argmatch cleanups from Bison.  Assume C89.
74474
74475         * lib/argmatch.c: Include config.h here, not in argmatch.h.
74476         Include stdlib.h, for EXIT_FAILURE.
74477         Always include <string.h>, since we assume C89.
74478         (EXIT_FAILURE): Remove pre-C89 bug workaround.
74479         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
74480         Include <stddef.h> instead, since it's all we need for size_t.
74481         (PARAMS): Remove.  All uses removed.
74482         (ARRAY_CARDINALITY): Do not bother to #undef.
74483         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
74484         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74485         Remove unnecessary parentheses.
74486         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74487         Insert necessary parentheses.
74488         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
74489         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
74490
74491 2002-11-19  Bruno Haible  <bruno@clisp.org>
74492
74493         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
74494         * lib/mbswidth.h: Include <stddef.h>, for size_t.
74495
74496         * lib/mbswidth.h (PARAMS): Remove macro.
74497         (mbswidth, mbsnwidth): Use ANSI C function declarations.
74498         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
74499
74500         * lib/gcd.h (PARAMS): Remove macro.
74501         (gcd): Use ANSI C function declarations.
74502         * lib/gcd.c (gcd): Likewise.
74503
74504 2002-11-15  Bruno Haible  <bruno@clisp.org>
74505
74506         * lib/strcspn.c: Include <stddef.h>.
74507         (strcspn): Use ANSI C function declaration. Change return type to
74508         size_t. Use NULL.
74509         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
74510         (strpbrk): Use NULL.
74511         * lib/strpbrk.h (PARAMS): Remove macro.
74512         (strpbrk): Use ANSI C function declaration.
74513         * lib/strstr.c: Don't include <sys/types.h>.
74514         * lib/strstr.h (PARAMS): Remove macro.
74515         (strstr): Use ANSI C function declarations.
74516
74517 2002-11-14  Karl Berry  <karl@gnu.org>
74518
74519         * config/mkinstalldirs: `do' on separate line, instead of
74520         `for var; do'.
74521
74522 2002-11-06  Bruno Haible  <bruno@clisp.org>
74523
74524         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
74525         * lib/gcd.c (gcd): Likewise.
74526
74527 2002-11-05  Bruno Haible  <bruno@clisp.org>
74528
74529         * lib/gcd.h: New file, from gettext-0.11.5.
74530         * lib/gcd.c: New file, from gettext-0.11.5.
74531
74532 2002-11-05  Bruno Haible  <bruno@clisp.org>
74533
74534         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74535         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74536         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74537         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74538
74539         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
74540         <libintl.h>.
74541         * lib/makepath.c: Include gettext.h instead of <locale.h> and
74542         <libintl.h>.
74543
74544         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
74545         * lib/human.c: Include gettext.h instead of <libintl.h>.
74546         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
74547         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
74548         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
74549         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
74550         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
74551         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
74552         (textdomain): Remove definition.
74553         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74554
74555         * lib/long-options.c: Remove include of <libintl.h> and definition of
74556         _.
74557         * lib/same.c: Remove include of <libintl.h> and definition of _.
74558
74559 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74560
74561         * lib/config.charset: A few additions for Solaris.
74562
74563 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74564
74565         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74566         * lib/localcharset.c (locale_charset): Declare as extern "C".
74567
74568 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74569
74570         * lib/config.charset: msdos in uk_UA uses CP1125.
74571
74572 2002-11-04  Bruno Haible  <bruno@clisp.org>
74573
74574         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74575         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74576         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74577         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74578         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74579
74580 2002-11-04  Bruno Haible  <bruno@clisp.org>
74581
74582         * lib/localcharset.c (locale_charset): Don't return an empty string.
74583
74584 2002-11-04  Bruno Haible  <bruno@clisp.org>
74585
74586         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74587         aliases.
74588
74589 2002-11-04  Bruno Haible  <bruno@clisp.org>
74590
74591         * lib/config.charset: Update for newest glibc. Add canonical names
74592         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74593
74594 2002-11-04  Bruno Haible  <bruno@clisp.org>
74595
74596         * lib/config.charset: Add support for NetBSD.
74597
74598 2002-11-04  Bruno Haible  <bruno@clisp.org>
74599
74600         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74601
74602 2002-11-01  Bruno Haible  <bruno@clisp.org>
74603
74604         * configure.in: Add AC_CONFIG_AUX_DIR call.
74605         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74606         test/Makefile.
74607         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74608
74609 2002-09-28  Karl Berry  <karl@gnu.org>
74610
74611         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74612         installed automake until the next release, since changes have been
74613         made.
74614
74615 2002-09-25  Karl Berry  <karl@gnu.org>
74616
74617         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74618         * lib/getopt*: copy from libc/posix.
74619         * lib/gettext.h: copy from gettext.
74620         * lib/.cppi-disable: add strdup.c, gettext.h.
74621
74622 2002-09-25  Karl Berry  <karl@gnu.org>
74623
74624         * config/srclist.txt: enable gettext.h check.
74625         * config/config.{guess,sub}: update from prep.
74626         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74627                 from automake 1.6.3.
74628         See srclist*.
74629
74630 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74631
74632         * regex.c (PATFETCH): Remove the translating fetch.
74633         (PATFETCH_RAW): Rename to PATFETCH.
74634         (set_image_of_range): New fun.
74635         (SET_RANGE_TABLE_WORK_AREA): Use it.
74636         (regex_compile): Don't translate the pattern chars so eagerly.
74637         Only do it when inserting an `exactn' bytecode or when handling
74638         a char-range.
74639         (mutually_exclusive_p): Avoid empty statement.
74640
74641 2002-07-06  Jim Meyering  <meyering@lucent.com>
74642
74643         * m4/README: Don't mention Makefile.am.in.
74644         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74645
74646 2002-07-01  Jim Meyering  <meyering@lucent.com>
74647
74648         * lib/c-stack.c: Include sys/time.h.
74649         From Volker Borchert.
74650
74651 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74652
74653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74654
74655 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74656
74657         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74658         New macro.  Use it uniformly instead of
74659         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74660         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74661         reported by Vin Shelton.
74662
74663 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74664
74665         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74666         Do not assume SA_SIGINFO behavior.
74667         Bug reported by Jim Meyering on NetBSD 1.5.2.
74668
74669 2002-06-22  Jim Meyering  <meyering@lucent.com>
74670
74671         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74672         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74673
74674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74675         now that configure.ac uses AC_GNU_SOURCE.
74676         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74677         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74678
74679         Update to latest tools.  Suggestions from Paul Eggert.
74680         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74681         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74682         * m4/fnmatch.m4: Likewise.
74683         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74684         to AC_HEADER_STDBOOL
74685
74686 2002-06-22  Jim Meyering  <meyering@lucent.com>
74687
74688         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74689         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74690
74691 2002-06-22  Jim Meyering  <meyering@lucent.com>
74692
74693         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74694
74695         * lib/exitfail.c, exitfail.h: Likewise.
74696         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74697
74698         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74699         of fnmatch.h.
74700         (EXTRA_DIST): Add fnmatch_loop.c.
74701         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74702
74703         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74704         * lib/fnmatch.c: Update from diffutils-2.8.2.
74705         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74706         * lib/fnmatch.h: Remove file.
74707
74708 2002-06-21  Jim Meyering  <meyering@lucent.com>
74709
74710         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74711         * m4/mbrtowc.m4: Likewise.
74712
74713         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74714         * m4/mbswidth.m4: Reflect name change:
74715         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74716         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74717
74718         * m4/lib-link.m4: Update from gettext-0.11.2.
74719         * m4/gettext.m4: Likewise.
74720
74721         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74722         From Alfred M. Szmidt.
74723
74724 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74725
74726         * lib/file-type.h: Report an error if neither S_ISREG nor
74727         S_IFREG is defined, instead of using a test specific to glibc
74728         2.2.  This should be safe, since POSIX requires S_ISREG and
74729         Unix Version 7 had S_IFREG.  We don't need to check for
74730         <sys/types.h> since we don't use any symbols that it defines.
74731
74732 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74733
74734         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74735         $@-t, so that each temporary file name is unique and valid in the first
74736         8 characters, for operation under DOS.
74737
74738 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74739
74740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74741
74742 2002-06-15  Jim Meyering  <meyering@lucent.com>
74743
74744         Work even with DJGPP 2.03, which lacks support for symlinks.
74745         From Richard Dawe.
74746         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74747         is defined.
74748         * lib/lchown.c (S_ISLNK): Likewise.
74749
74750 2002-06-15  Jim Meyering  <meyering@lucent.com>
74751
74752         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74753         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74754         have been included before this file.
74755
74756 2002-06-14  Jim Meyering  <meyering@lucent.com>
74757
74758         * lib/file-type.h: Use the version from diffutils-2.8.2.
74759         * lib/file-type.c: Likewise.
74760
74761 2002-06-07  Jim Meyering  <meyering@lucent.com>
74762
74763         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74764         They're needed at least for NetBSD 1.5.2.
74765         ($statxfs_includes): Include those same headers.
74766         ($statxfs_includes): Include sys/vfs.h if available.
74767         ($statxfs_includes): Likewise for sys/statvfs.h.
74768         Check for the following members in both structs statfs and statvfs:
74769         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74770
74771 2002-06-01  Jim Meyering  <meyering@lucent.com>
74772
74773         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74774         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74775
74776 2002-05-28  Jim Meyering  <meyering@lucent.com>
74777
74778         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74779         Reported by Volker Borchert.
74780
74781 2002-05-27  Jim Meyering  <meyering@lucent.com>
74782
74783         Fix a problem seen only on nonconforming systems whereby ls.c's
74784         use of localtime, and then of gettimeofday would cause trouble:
74785         the localtime call used to initialize rpl_gettimeofday's save
74786         mechanism would clobber ls's current local time information so
74787         that in any long listing the first file would always be listed
74788         with date 1970-01-01.  Analysis by Volker Borchert.
74789
74790         * lib/gettimeofday.c (localtime): Undefine.
74791         (rpl_localtime): New function.
74792
74793 2002-05-27  Jim Meyering  <meyering@lucent.com>
74794
74795         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74796         localtime.
74797
74798         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74799         use the replacement function; it wouldn't resolve at link time.
74800         Reported by Volker Borchert.
74801
74802 2002-05-22  Jim Meyering  <meyering@lucent.com>
74803
74804         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74805         file-type.h.
74806         * lib/file-type.h: New file.
74807         * lib/file-type.c (file_type): New file/function.  Extracted from
74808         diffutils.
74809
74810 2002-04-30  Jim Meyering  <meyering@lucent.com>
74811
74812         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74813
74814 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74815
74816         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74817
74818 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74819
74820         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74821         Do not check for alloca.h (no longer used) or stdbool.h (was never
74822         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74823
74824 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74825
74826         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74827
74828 2002-04-29  Jim Meyering  <meyering@lucent.com>
74829
74830         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74831         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74832         Use AC_FUNC_STRNLEN here instead.
74833
74834         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74835         With autoconf-2.53a, it's part of AC_PROG_CC.
74836
74837 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74838
74839         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74840         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74841
74842 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74843
74844         * lib/sig2str.h, lib/sig2str.c: New files.
74845         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74846
74847 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74848
74849         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74850         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74851         of 127, since 64 is the largest conceivable number for ancient
74852         nonstandard hosts.
74853         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74854
74855 2002-04-28  Jim Meyering  <meyering@lucent.com>
74856
74857         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74858
74859 2002-04-24  Jim Meyering  <meyering@lucent.com>
74860
74861         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74862         (jm_PREREQ): Use it.
74863
74864         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74865         mach/mach.h fcntl.h.
74866         Check for this function: setlocale.
74867
74868 2002-04-24  Jim Meyering  <meyering@lucent.com>
74869
74870         * lib/gettext.h: New file, from Gettext.
74871         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74872         (libfetish_a_SOURCES): Add gettext.h.
74873
74874 2002-04-16  Jim Meyering  <meyering@lucent.com>
74875
74876         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74877         ut_pid, ut_id, ut_exit.
74878
74879 2002-04-16  Jim Meyering  <meyering@lucent.com>
74880
74881         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74882         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74883         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74884
74885 2002-04-12  Jim Meyering  <meyering@lucent.com>
74886
74887         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74888         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74889         existence of the getmntinfo function.  Needed for Darwin 5.3.
74890
74891         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74892         This is necessary at least on Darwin 5.3.
74893
74894         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74895         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74896         strnlen.o in the library, and that makes some versions of ranlib
74897         object.
74898
74899 2002-04-12  Jim Meyering  <meyering@lucent.com>
74900
74901         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74902
74903 2002-04-09  Jim Meyering  <meyering@lucent.com>
74904
74905         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74906         to be more precise.  Rather than saying we're checking whether the
74907         function `works', say what we're testing.
74908         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74909         Reported by Bruno Haible.
74910
74911 2002-03-10  Jim Meyering  <meyering@lucent.com>
74912
74913         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74914         Suggestion from Santiago Vila.
74915
74916 2002-03-08  Jim Meyering  <meyering@lucent.com>
74917
74918         * lib/rename.c: Mention that this wrapper is needed also on
74919         mips-dec-ultrix4.4 systems.
74920
74921 2002-03-02  Jim Meyering  <meyering@lucent.com>
74922
74923         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74924         not HAVE_CLOCK_SETTIME.
74925
74926 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74927
74928         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74929         Check for clock_settime.
74930
74931 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74932
74933         * lib/nanosleep.h: Rename to....
74934         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74935
74936         * lib/gettime.c: New file.
74937         * lib/settime.c: New file.
74938         * lib/stime.c: Remove.
74939
74940         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74941         timespec.h.  Remove nanosleep.h.
74942
74943 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74944
74945         * m4/acl.m4: New file.
74946         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74947         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74948
74949 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74950
74951         * lib/acl.c, lib/acl.h: New files.
74952         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74953
74954 2002-02-24  Jim Meyering  <meyering@lucent.com>
74955
74956         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74957         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74958         cause trouble.  Reported by Nelson Beebe.
74959
74960 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74961
74962         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74963         compilers that don't know that xalloc_die never returns.
74964
74965 2002-02-20  Jim Meyering  <meyering@lucent.com>
74966
74967         * lib/getdate.c: Regenerate using bison-1.33.
74968
74969 2002-02-17  Jim Meyering  <meyering@lucent.com>
74970
74971         * config/config.guess (main): Don't use `head -1'; it's no longer
74972         portable. Use `sed 1q' instead.
74973
74974 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74975
74976         * m4/codeset.m4: Upgrade to gettext-0.11.
74977         * m4/gettext.m4: Upgrade to gettext-0.11.
74978         * m4/glibc21.m4: Upgrade to gettext-0.11.
74979         * m4/iconv.m4: Upgrade to gettext-0.11.
74980         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74981         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74982         * m4/lib-ld.m4: New file, from gettext-0.11.
74983         * m4/lib-link.m4: New file, from gettext-0.11.
74984         * m4/lib-prefix.m4: New file, from gettext-0.11.
74985         * m4/progtest.m4: Upgrade to gettext-0.11.
74986
74987 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74988
74989         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74990         (jm_PREREQ): Use it.
74991
74992 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74993
74994         * lib/posixver.c, lib/posixver.h: New files.
74995         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74996
74997 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74998             Bruno Haible  <bruno@clisp.org>
74999
75000         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75001         (fwrite_success_callback): New declaration.
75002         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75003         print_unicode_char. Call failure callback instead of error.
75004         (fwrite_success_callback): New function.
75005         (exit_failure_callback): New function.
75006         (fallback_failure_callback): New function.
75007         (print_unicode_char): Call unicode_to_mb.
75008
75009 2002-01-26  Jim Meyering  <meyering@lucent.com>
75010
75011         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75012         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75013
75014 2002-01-26  Jim Meyering  <meyering@lucent.com>
75015
75016         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75017
75018 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75019
75020         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75021
75022 2002-01-22  Jim Meyering  <meyering@lucent.com>
75023
75024         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75025         Otherwise, some versions of automake would omit the rule that makes
75026         Makefile from Makefile.in.
75027
75028 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75029
75030         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75031         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75032         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75033         (memcoll): Set errno to zero if there is no error.
75034
75035         * lib/quotearg.c (quotearg_buffer_restyled):
75036         Fix bug with quoting buffers containing NUL when backslashing escapes.
75037         This bug was exposed by the other changes in this patch.
75038         (quotearg_n_options): New arg ARGSIZE.
75039         All callers changed.
75040         (quoting_options_from_style): New function.
75041         (quotearg_n_style): Use it.
75042         (quotearg_n_style_mem): New function.
75043
75044         * lib/quotearg.h (quotearg_n_style_mem): New function.
75045
75046 2002-01-19  Jim Meyering  <meyering@lucent.com>
75047
75048         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75049         Remove useless quotes: DF_PROG="df".
75050         * m4/strnlen.m4: New file.
75051
75052 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75053
75054         * lib/backupfile.c (ISDIGIT): Comment fix.
75055         * lib/getdate.y (ISDIGIT): Likewise.
75056         * lib/posixtm.c (ISDIGIT, year): Likewise.
75057         * lib/strverscmp.c (ISDIGIT): Likewise.
75058         * lib/userspec.c (ISDIGIT): Likewise.
75059
75060 2002-01-16  Jim Meyering  <meyering@lucent.com>
75061
75062         * lib/getdate.y: Add three semicolons, each just before a closing
75063         brace. Bison (as of version 1.31) no longer papers over that mistake.
75064
75065 2002-01-05  Jim Meyering  <meyering@lucent.com>
75066
75067         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75068
75069 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75070
75071         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75072         not silently exit merely because the output buffer happens to
75073         have nothing pending.
75074
75075 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75076
75077         See the big note in ../ChangeLog.
75078         * lib/human.c (suffixes): Prefer K to k for 1024.
75079         (generate_suffix_backwards): New function.
75080         (human_readable_inexact): Use it.
75081         * lib/xstrtol.c (__xstrtol): If there is no number but there
75082         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75083         Accept 'K' as well as 'k'.
75084
75085 2001-12-15  Jim Meyering  <meyering@lucent.com>
75086
75087         * lib/regex.h (__restrict_arr): Update from libc.
75088
75089         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75090         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75091         (STREQ): Define.
75092
75093 2001-12-14  Jim Meyering  <meyering@lucent.com>
75094
75095         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75096         Suggestion from Bruno Haible.
75097
75098 2001-12-10  Jim Meyering  <meyering@lucent.com>
75099
75100         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75101         xrealloc, Instead, include "xalloc.h".
75102         (initbuffer): Don't cast xmalloc return value to char*.
75103         (readline): Reword comment.
75104         Don't cast xrealloc return value to char*
75105         Return NULL, not 0.
75106
75107 2001-12-09  Jim Meyering  <meyering@lucent.com>
75108
75109         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75110         about `signed and unsigned type in conditional expression'.
75111         * lib/posixtm.c (posix_time_parse): Likewise.
75112
75113         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75114
75115         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75116         to avoid a pedantic warning.
75117
75118         * lib/getstr.c: Don't include assert.h.
75119         (getstr): Remove warning-evoking assertions.
75120         Return -1 if offset parameter is out of bounds.
75121         Change the type of a local from int to size_t.
75122
75123         * lib/strftime.c (my_strftime_localtime_r): Include this function
75124         definition in the `#if ! HAVE_TM_GMTOFF' block.
75125
75126         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75127         Include xalloc.h instead.
75128
75129 2001-12-02  Jim Meyering  <meyering@lucent.com>
75130
75131         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75132         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75133         included.
75134
75135         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75136         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75137
75138 2001-11-30  Akim Demaille  <akim@epita.fr>
75139
75140         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75141         before being defined.
75142
75143 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75144
75145         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75146         First arg is int, not unsigned.
75147         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75148         (SIZE_MAX, UINT_MAX): New macros.
75149         (quotearg_n_options): Abort if N is negative.
75150         Avoid overflow check on hosts where size_t is 64 bits and int
75151         is 32 bits, as overflow is impossible there.
75152         Fix off-by-one typo that caused unnecessary reallocation.
75153
75154 2001-11-27  Jim Meyering  <meyering@lucent.com>
75155
75156         * lib/tempname.c: Merge with version from libc.
75157         * lib/regex.c: Likewise.
75158
75159         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75160         systems for which STDC_HEADERS is 0, it was not included, resulting in
75161         a warning about an integer-to-pointer conversion problem with getenv.
75162         Reported by Volker Borchert.
75163
75164 2001-11-26  Jim Meyering  <meyering@lucent.com>
75165
75166         * lib/gtod.h: Remove file.
75167         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75168         * lib/gettimeofday.c: Don't include gtod.h.
75169         (GTOD_init): Remove function.
75170         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75171         Suggestion from Volker Borchert.
75172
75173 2001-11-23  Jim Meyering  <meyering@lucent.com>
75174
75175         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75176         it.
75177         * lib/hash.c (struct hash_table): Define it here instead.
75178
75179 2001-11-22  Jim Meyering  <meyering@lucent.com>
75180
75181         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75182
75183 2001-11-20  Jim Meyering  <meyering@lucent.com>
75184
75185         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75186         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75187
75188 2001-11-19  Jim Meyering  <meyering@lucent.com>
75189
75190         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75191         directory.  Use "conftestXXXXXX" as the template.
75192         Suggestion from Paul Eggert.
75193
75194         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75195         immediately, so the test doesn't mistakenly hit the max-open-files
75196         limit.
75197
75198 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75199
75200         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75201         (TEMPORARIES): New macro.
75202         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75203         removes an artificial limitation (e.g. HP-UX 10.20, where
75204         TMP_MAX is 17576).
75205
75206 2001-11-18  Jim Meyering  <meyering@lucent.com>
75207
75208         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75209
75210 2001-11-18  Jim Meyering  <meyering@lucent.com>
75211
75212         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75213         on SunOS 4.
75214
75215         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75216         files will be created before anything else.
75217
75218 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75219
75220         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75221         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75222
75223 2001-11-17  Jim Meyering  <meyering@lucent.com>
75224
75225         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75226         Prompted by a report from Bob Proulx.
75227
75228         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75229         Instead, require UTILS_FUNC_MKSTEMP.
75230
75231 2001-11-17  Jim Meyering  <meyering@lucent.com>
75232
75233         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75234         Now, that's done as part of AC_FUNC_STRTOD.
75235
75236 2001-11-17  Jim Meyering  <meyering@lucent.com>
75237
75238         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75239         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75240         rather than group writable.  Patch by Juan F. Codagnone.
75241
75242         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75243         xrealloc, Instead, include "xalloc.h".
75244
75245         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75246         Remove explicit declarations of xmalloc, xrealloc,
75247         and xstrdup.  Instead, include "xalloc.h".
75248
75249         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75250         unlocked-io.h.
75251         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75252         Likewise.
75253         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75254
75255         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75256         Reported by Padraig Brady.
75257
75258         * lib/mkstemp.c: #undef mkstemp.
75259         Include config.h.
75260         (rpl_mkstemp): Rename from mkstemp.
75261         Protoize.
75262
75263 2001-11-16  Jim Meyering  <meyering@lucent.com>
75264
75265         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75266         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75267         determine the amount of total physical memory, use pstat_getstatic.
75268         HPUX-11 doesn't define _SC_PHYS_PAGES.
75269         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75270         If sysconf couldn't be used to determine the amount of available
75271         physical memory, use both pstat_getstatic and pstat_getdynamic.
75272         Based on a patch from Bob Proulx.
75273
75274 2001-11-10  Jim Meyering  <meyering@lucent.com>
75275
75276         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75277         (jm_PREREQ): Use it.
75278
75279 2001-11-09  Jim Meyering  <meyering@lucent.com>
75280
75281         * m4/jm-macros.m4: Require autoconf-2.52f.
75282         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75283         Use these AC_-prefixed names, not the AM_-prefixed ones.
75284
75285         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75286
75287 2001-11-05  Jim Meyering  <meyering@lucent.com>
75288
75289         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75290
75291 2001-11-04  Jim Meyering  <meyering@lucent.com>
75292
75293         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75294         $DEFS.
75295
75296 2001-11-03  Jim Meyering  <meyering@lucent.com>
75297
75298         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75299         of AC_DEFUN.
75300
75301         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75302         know the name of the variable in the macro definition.
75303
75304 2001-11-03  Jim Meyering  <meyering@lucent.com>
75305
75306         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75307         in argmatch_to_argument call.
75308
75309         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75310         argument.
75311
75312         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75313         e.g., a fault due to an attempt to free a NULL pointer.
75314
75315 2001-11-01  Jim Meyering  <meyering@lucent.com>
75316
75317         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75318         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75319
75320 2001-11-01  Jim Meyering  <meyering@lucent.com>
75321
75322         * lib/dirfd.c, lib/dirfd.h: New files.
75323         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75324
75325         * lib/hash.c (hash_print) [TESTING]: Clean up.
75326
75327 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75328
75329         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75330         to avoid a warning if -Wall.
75331
75332 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75333
75334         * README: New file
75335         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75336         (per RMS's instructions, this is now the canonical source)
75337         * lgpl/, gpl/: New directories.
75338
75339 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75340
75341         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
75342
75343 2001-10-21  Jim Meyering  <meyering@lucent.com>
75344
75345         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
75346         this code would end up calling gettext even in packages built
75347         with --disable-nls.
75348         * lib/getopt.c (_): Likewise.
75349         * lib/regex.c (_): Likewise.
75350
75351 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75352
75353         * m4/error.m4 (jm_PREREQ_ERROR):
75354         Do not invoke AC_CHECK_FUNCS with strerror_r, as
75355         AC_FUNC_STRERROR_R does that.
75356         Check for strerror declaration.
75357
75358         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
75359         are supposed to have them these days.
75360         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
75361         Merge changes from latest Autoconf CVS.
75362         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
75363         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
75364         POSIX decided to standardize on the int flavor of strerror_r.
75365
75366 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75367
75368         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
75369         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
75370         Use strerror_r that is only a macro, even if it is not a function.
75371         (strerror): Check for HAVE_DECL_STRERROR before declaring.
75372         (private_strerror): Use prototypes, not old-style function definition.
75373         (print_errno_message): New function.
75374         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
75375         char*-flavored one.
75376         (error_tail, error, error_at_line): Use it.
75377
75378 2001-10-11  Jim Meyering  <meyering@lucent.com>
75379
75380         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
75381         and quote_n (1, ... to avoid clobbering a buffer.
75382
75383 2001-10-05  Jim Meyering  <meyering@lucent.com>
75384
75385         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
75386         hash-pjw.h.
75387         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
75388         * lib/hash-pjw.h: New file.
75389
75390 2001-09-30  Jim Meyering  <meyering@lucent.com>
75391
75392         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
75393         `struct fsstat' has the `f_fstypename' member.
75394         Use that to define FS_TYPE, which is now used to make
75395         the getfsstat link test tighter.
75396
75397 2001-09-30  Jim Meyering  <meyering@lucent.com>
75398
75399         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
75400         Include <sys/ucred.h>, for Apple Darwin.
75401         Include sys/mount.h and sys/fs_types.h only if available.
75402         (FS_TYPE): Define.
75403         (read_filesystem_list): Use FS_TYPE.
75404
75405 2001-09-29  Paul Eggert  <eggert@twinsun.com>
75406
75407         * lib/exclude.c (excluded_filename): 0 -> false, since it's
75408         a boolean context.
75409
75410 2001-09-29  Jim Meyering  <meyering@lucent.com>
75411
75412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75413         [one-argument getmntent function]): Include stdio.h before mntent.h.
75414         SunOS 4.1.x needs it for the declaration of `FILE'.
75415         Patch by Volker Borchert.
75416
75417         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75418         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
75419         sys/fs_types.h, and make the link-test for getfsstat guard #include
75420         directives with appropriate #if HAVE_*_H tests so that we can
75421         detect getfsstat on Apple Darwin1.3.7 systems.
75422         Reported by Nelson Beebe.
75423         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
75424
75425 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75426
75427         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75428         #defines strtoimax.  Also treat the other strto* functions
75429         like strtoimax.
75430
75431         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75432         Check for strtoul and strtoumax,
75433         as those declarations are made even in the signed case.
75434         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
75435         Likewise, for strtol and strtoimax.
75436
75437 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75438
75439         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75440         #defines strtoimax.  Also treat the other strto* functions
75441         like strtoimax.
75442
75443         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
75444         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
75445         (strtoimax, strtoumax): Do not declare if already defined as a macro.
75446
75447 2001-09-26  Jim Meyering  <meyering@lucent.com>
75448
75449         Most macros in unlocked-io.h had the wrong number of arguments.
75450         * lib/gen-uio: New script.
75451         (USE_UNLOCKED_IO): Define to 1 if not already defined.
75452         * lib/unlocked-io.hin: Remove file.
75453         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
75454         rather than trying to embed it here.
75455         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
75456         Reported by Padraig Brady.
75457
75458 2001-09-25  Volker Borchert  <bt@teknon.de>
75459
75460         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
75461         `result'.
75462
75463 2001-09-24  Jim Meyering  <meyering@lucent.com>
75464
75465         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
75466
75467 2001-09-23  Jim Meyering  <meyering@lucent.com>
75468
75469         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
75470         instead of the mere test for existence of mntent.h.  The latter
75471         would get a false-positive on AIX 3.4 systems.
75472         In the outer getmntent if-block, don't die if neither of the getmntent
75473         tests succeeds.  Instead, just fall through and continue with the
75474         remaining tests.
75475
75476 2001-09-23  Jim Meyering  <meyering@lucent.com>
75477
75478         * lib/mountlist.c: Remove useless parentheses in #if directives.
75479         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
75480         the deprecated MOUNTED symbol is no longer defined in mntent.h.
75481
75482 2001-09-22  Jim Meyering  <meyering@lucent.com>
75483
75484         * m4/gettext.m4: New file.  From gettext.
75485         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
75486         * m4/progtest.m4: Likewise
75487         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
75488         * m4/glibc21.m4: Likewise.
75489
75490         * m4/libintl.m4: Remove.  No longer used.
75491
75492 2001-09-22  Jim Meyering  <meyering@lucent.com>
75493
75494         * lib/localcharset.c: Update from latest gettext.
75495         * lib/config.charset: Likewise.
75496
75497 2001-09-20  Jim Meyering  <meyering@lucent.com>
75498
75499         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
75500         strtoimax.
75501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
75502         strtoumax.
75503
75504 2001-09-20  Jim Meyering  <meyering@lucent.com>
75505
75506         * lib/xstrtol.c (strtoimax): Guard declaration with
75507         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
75508         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
75509         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
75510         (strtoumax): Likewise, for completeness (it wasn't necessary).
75511
75512 2001-09-17  Paul Eggert  <eggert@twinsun.com>
75513
75514         * lib/strtoimax.c (HAVE_LONG_LONG):
75515         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
75516         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
75517         to work around bug in IBM C compiler.
75518
75519 2001-09-17  Jim Meyering  <meyering@lucent.com>
75520
75521         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
75522         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
75523         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
75524         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
75525         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
75526         whenever the right hand side need not be expanded by the shell.
75527
75528 2001-09-16  Paul Eggert  <eggert@twinsun.com>
75529
75530         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
75531         library.  It's not correct, as some older glibcs are buggy.
75532         fnmatch wasn't fixed until glibc 2.2.
75533
75534         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
75535         special shell magic here.
75536
75537 2001-09-16  Jim Meyering  <meyering@lucent.com>
75538
75539         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
75540         * m4/jm-macros.m4: Require it.
75541
75542 2001-09-16  Jim Meyering  <meyering@lucent.com>
75543
75544         * lib/mkdir.c: New file.
75545
75546 2001-09-15  Jim Meyering  <meyering@lucent.com>
75547
75548         * m4/jm-macros.m4: Check for help2man.
75549
75550 2001-09-11  Jim Meyering  <meyering@lucent.com>
75551
75552         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75553         The body, by Paul Eggert, was moved here from configure.in.
75554         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75555
75556 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75557
75558         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75559         (jm_PREREQ): Use it.
75560
75561 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75562
75563         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75564         Use ssize_t, not int, to store result of readlink.
75565         Check for ssize_t overflow as well as size_t overflow,
75566         as POSIX says the result of readlink is implementation-defined
75567         when ssize_t overflows.
75568         Remove unnecessary cast to char*.
75569         Use free+malloc instead of realloc, as the storage doesn't need
75570         to be preserved and it's clearer and can be more efficient that way.
75571         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75572         * lib/xreadlink.h (xreadlink): Update prototype.
75573
75574 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75575
75576         * lib/xgetcwd.c: Revert some of the previous change; intead,
75577         fix the HAVE_GETCWD_NULL code to behave more like the
75578         !HAVE_GETCWD_NULL code used to.
75579
75580         Include "xalloc.h".
75581         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75582         invoke xalloc_die.
75583
75584 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75585
75586         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75587         sys/param.h, as pathmax.h includes them.
75588
75589 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75590
75591         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75592         (jm_PREREQ_XGETCWD): New macro.
75593
75594         * m4/getcwd.m4: New file.
75595
75596 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75597
75598         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75599         like the HAVE_GETCWD_NULL code.
75600         Include pathmax.h if not HAVE_GETCWD.
75601         Do not include xalloc.h.
75602         (INITIAL_BUFFER_SIZE): New symbol.
75603         Do not use xmalloc / xrealloc, since the caller is responsible for
75604         handling errors.  Preserve errno around `free' during failure.
75605         Do not overrun buffer when using getwd.
75606
75607 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75608
75609         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75610         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75611         getcwd (NULL, 0).
75612
75613 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75614
75615         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75616         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75617         spotted by Jim Meyering.
75618
75619 2001-09-03  Jim Meyering  <meyering@lucent.com>
75620
75621         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75622         failure.
75623
75624 2001-09-02  Jim Meyering  <meyering@lucent.com>
75625
75626         * lib/error.c: Update from GNU libc.
75627
75628 2001-09-01  Jim Meyering  <meyering@lucent.com>
75629
75630         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75631         Used by df.
75632
75633 2001-09-01  Jim Meyering  <meyering@lucent.com>
75634
75635         * lib/xreadlink.c: New file.
75636         * lib/xreadlink.h: New file.
75637         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75638         xreadlink.h.
75639
75640         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75641         doesn't conflict with sparc Solaris 7's definition in
75642         /usr/include/sys/int_types.h.
75643
75644         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75645         files.
75646         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75647         and strncasecmp as r-values.  Unixware didn't have declarations.
75648
75649 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75650
75651         * lib/xstrtol.h: Add copyright notice.
75652         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75653         LONGINT_INVALID_SUFFIX_CHAR.
75654
75655 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75656
75657         * lib/xstrtol.c (strtoimax): New decl.
75658
75659 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75660
75661         * lib/xgetcwd.c: Don't include pathmax.h.
75662         Include stdlib.h and unistd.h if available.
75663         Include xalloc.h.
75664         (xmalloc, xstrdup, free): Remove decls.
75665         (xgetcwd): Don't assume sizes fit in unsigned.
75666         Check for overflow when computing sizes.
75667         Simplify reallocation code.
75668
75669 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75670
75671         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75672         a directory's st_size can have an arbitrary value, so the old
75673         usage could waste an arbitrary amount of memory.  All uses
75674         changed.
75675         * lib/savedir.h: Update prototype.
75676
75677 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75678
75679         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75680
75681         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75682         old strtoimax.c.
75683
75684         Also, make the following further changes to make this file's
75685         configuration more similar to that of strtol.c:
75686         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75687         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75688         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75689         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75690         changed to signed values.
75691
75692         And make the following changes as well:
75693         Fix copyright notice, as 1999 was missing.
75694         (verify): New macro.
75695         (strtoimax): Check sizes at compile-time, not run-time.
75696         Prefer strtol to strtoll if both work.
75697         (main): Remove; it was not that useful and was a pain to maintain.
75698
75699         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75700
75701 2001-08-31  Jim Meyering  <meyering@lucent.com>
75702
75703         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75704         Use an initial, malloc'd, buffer of length 128 rather than
75705         a statically allocated one of length 1024.
75706
75707 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75708
75709         Simplify code, partly by assuming autoconf 2.52 semantics.
75710
75711         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75712
75713         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75714         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75715         All uses removed.
75716         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75717         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75718         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75719         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75720         jm_AC_HEADER_INTTYPES_H.
75721         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75722
75723         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75724
75725         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75726         Quote first arg of AC_DEFUN.
75727         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75728         since they are needed to parse the include file even if we need
75729         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75730         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75731         but with opposite signedness.
75732
75733 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75734
75735         Merge 'exclude' changes from tar 1.13.22.
75736         This fixes one or two unlikely storage allocation overflow bugs,
75737         but doesn't change user-visible behavior otherwise.
75738
75739 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75740
75741         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75742         (jm_PREREQ_EXCLUDE): New macro.
75743
75744 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75745
75746         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75747         tm to be declared.
75748
75749 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75750
75751         * lib/hash.c: Remove '2001' from copyright notice.
75752
75753 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75754
75755         * lib/full-write.h: New file.
75756         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75757         * lib/full-write.c: Correct credits, as cccp.c no longer
75758         exists and anyway it was so heavily changed from the old cccp
75759         code as to be unrecognizable.  Include full-write.h.
75760         (full_write) Return size_t, with short writes meaning failure.
75761         All callers changed.  This fixes a bug with large buffers
75762         on 64-bit hosts.
75763         * lib/utime.c: Include full-write.h.
75764
75765 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75766
75767         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75768         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75769         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75770         Include if available.
75771         (<xalloc.h>): Include
75772         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75773         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75774         collide with FNM macros.
75775         (struct patopts): New struct.
75776         (struct exclude): Use it, as exclude patterns now come with options.
75777         (new_exclude): Support above changes.
75778         (new_exclude, add_exclude_file):
75779         Initial size must now be a power of two to simplify overflow checking.
75780         (free_exclude, fnmatch_no_wildcards): New function.
75781         (excluded_filename): No longer requires options arg, as the options
75782         are determined by add_exclude.  Now returns bool, not int.
75783         (excluded_filename, add_exclude):
75784         Add support for the fancy new exclusion options.
75785         (add_exclude, add_exclude_file): Now takes int options arg.
75786         Check for arithmetic overflow when computing sizes.
75787         (add_exclude_file): xrealloc might modify errno, so don't
75788         realloc until after errno might be used.
75789
75790         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75791         New macros.
75792         (free_exclude): New decl.
75793         (add_exclude, add_exclude_file): Now takes int options arg.
75794         (excluded_filename): No longer requires options arg, as the options
75795         are determined by add_exclude.  Now returns bool, not int.
75796
75797 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75798
75799         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75800
75801 2001-08-27  Jim Meyering  <meyering@lucent.com>
75802
75803         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75804
75805         * lib/version-etc.c (N_): Remove definition.
75806         Revert most of last change.
75807         Instead, simply don't mark the `Copyright...' string for translation.
75808         Based on advice from Paul Eggert.
75809
75810         * lib/strtoxmax.c: Tweak comment.
75811
75812 2001-08-26  Jim Meyering  <meyering@lucent.com>
75813
75814         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75815
75816         * m4/xstrtoimax.m4: New file.
75817         * m4/xstrtoumax.m4: Add comments explaining why we
75818         AC_REPLACE_FUNCS(strtol).
75819
75820 2001-08-26  Jim Meyering  <meyering@lucent.com>
75821
75822         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75823         of copyright with `%s' so translators don't get an untranslated
75824         message in 2002.
75825         (COPYRIGHT_YEAR): Define.
75826         (version_etc): Use fprintf rather than fputs.
75827         Suggestion from Ulrich Drepper.
75828
75829         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75830
75831         * lib/strtoll.c: New file, from GNU libc.
75832         * lib/xstrtoimax.c: New file.
75833
75834         * lib/xstrtol.h: Add xstrtoimax.
75835         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75836         * lib/strtoimax.c: New file.  Likewise, but first define
75837         STRTOUXMAX_SIGNED.
75838
75839         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75840         ...
75841         * lib/strtoxmax.c: ... then renamed to this.
75842
75843 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75844
75845         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75846         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75847         (jm_AC_TYPE_INTMAX_T): New macro.
75848         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75849
75850         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75851
75852         * m4/longlong.m4: Renamed from ulonglong.m4.
75853         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75854         * m4/uintmax_t.m4: Removed.
75855
75856 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75857
75858         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75859         Port to Solaris 8, where 'sed' requires a space after the 'r'
75860         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75861         Redirect output to $tmp just once.
75862
75863 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75864
75865         * lib/addext.c (<errno.h>): Include.
75866         (errno): Declare if not defined.
75867         (addext): Work correctly when pathconf returns -1 and leaves
75868         errno alone because there is no limit.  Also, work even if
75869         pathconf returns a value greater than SIZE_MAX.
75870
75871 2001-08-12  Jim Meyering  <meyering@lucent.com>
75872
75873         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75874         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75875         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75876         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75877         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75878         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75879         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75880         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75881         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75882         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75883         utime.m4, utimes.m4, xstrtoumax.m4:
75884         Quote the first argument in each use of AC_DEFUN.
75885
75886 2001-08-12  Jim Meyering  <meyering@lucent.com>
75887
75888         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75889         Simply `return getcwd (NULL, 0);'.
75890         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75891         Use 1300 as initial value for length, not PATH_MAX.
75892
75893         * lib/pathmax.h: Clean up cpp syntax.
75894
75895 2001-08-12  Jim Meyering  <meyering@lucent.com>
75896
75897         * lib/gettimeofday.c: New file.
75898         * lib/gtod.h: New file.
75899         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75900
75901 2001-08-05  Jim Meyering  <meyering@lucent.com>
75902
75903         * m4/jm-macros.m4: Require autoconf-2.52.
75904
75905 2001-08-04  Jim Meyering  <meyering@lucent.com>
75906
75907         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75908         stmt, to get in sync with glibc.
75909
75910 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75911
75912         The following changes are from gettext 0.10.39 as maintained by
75913         Bruno Haible.
75914
75915         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75916         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75917         with inverted sense.  All uses changed.
75918
75919         * lib/mbswidth.c: Don't include <limits.h>.
75920         Include <stdlib.h> and <string.h> unconditionally.
75921         (iswcntrl, mbsinit, ISCNTRL): New macros.
75922         (mbsnwidth): Use K&R style function declarations.
75923         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75924         can optimize it when MB_CUR_MAX == 1.
75925         The width of control characters is zero, not 1.
75926
75927 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75928
75929         The following changes are from gettext 0.10.39 as maintained by
75930         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75931
75932         * m4/codeset.m4: Upgrade to serial AM1.
75933         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75934         all uses changed.  Quote first arg of AC_DEFUN.
75935         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75936
75937         * m4/iconv.m4: Upgrade to serial AM2.
75938         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75939         Add --with-libconv-prefix.
75940         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75941         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75942         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75943         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75944         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75945
75946         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75947         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75948         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75949         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75950         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75951         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75952         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75953         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75954         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75955
75956         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75957         string.h any more.
75958
75959         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75960         not the default value.
75961
75962         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75963         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75964         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75965         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75966         Also check for iswcntrl, used for wcwidth fallback.
75967         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75968         to Autoconf 2.13.
75969
75970 2001-08-03  Jim Meyering  <meyering@lucent.com>
75971
75972         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75973         as it was in the original.  Reported by Paul Eggert.
75974
75975 2001-07-16  Jim Meyering  <meyering@lucent.com>
75976
75977         * m4/gettimeofday.m4: New file.
75978         Prompted by a report from Bernhard Baehr.
75979
75980 2001-07-15  Jim Meyering  <meyering@lucent.com>
75981
75982         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75983         stuff. Now it's in ../Makefile.cfg.
75984
75985 2001-07-15  Jim Meyering  <meyering@lucent.com>
75986
75987         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75988         (BUILT_SOURCES): Add unlocked-io.h.
75989         (io_functions): Define.
75990         (unlocked-io.h): New rule.
75991         (DISTCLEANFILES): Add unlocked-io.h.
75992         (all-local): Depend on unlocked-io.h, to ensure it is created.
75993
75994         * lib/unlocked-io.hin: New file
75995
75996         * lib/regex.c: Update from glibc.
75997
75998 2001-07-05  Jim Meyering  <meyering@lucent.com>
75999
76000         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76001         recommendation.
76002         (libfetish_a_SOURCES): Put all .h files here instead.
76003         Remove a thus-exposed (better checks in automake) duplicate and
76004         two unnecessary .h files.
76005
76006 2001-07-04  Jim Meyering  <meyering@lucent.com>
76007
76008         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76009         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76010         distcheck failure.
76011
76012 2001-07-02  Jim Meyering  <meyering@lucent.com>
76013
76014         The following changes were prompted by suggestions from Bruno Haible.
76015
76016         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76017         is now generated.
76018         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76019         definition of EXTRA_DIST.
76020         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76021         ensure that the generated file is created/updated whenever the list
76022         of $(unlocked_functions) is changed.
76023         (jm-glibc-io.m4): New rule.
76024         (unlocked-io.h): New rule -- currently unused.
76025
76026 2001-06-24  Jim Meyering  <meyering@lucent.com>
76027
76028         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76029         unmatched right bracket, rather than kludging it with an extra,
76030         falsely-matching quote in a comment.  Patch by Akim Demaille.
76031
76032 2001-06-11  Jim Meyering  <meyering@lucent.com>
76033
76034         * lib/regex.c: Update from GNU libc.
76035
76036 2001-05-27  Jim Meyering  <meyering@lucent.com>
76037
76038         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76039         Check for ut_type in struct utmp.
76040
76041 2001-05-27  Jim Meyering  <meyering@lucent.com>
76042
76043         * lib/readutmp.h (UT_TYPE): Define.
76044
76045 2001-05-24  Jim Meyering  <meyering@lucent.com>
76046
76047         * lib/argmatch.c: Include "quote.h".
76048         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76049         quote function.  Reported by Göran Uddeborg.
76050
76051 2001-05-22  Jim Meyering  <meyering@lucent.com>
76052
76053         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76054         now that we use the package-supplied version unconditionally.
76055         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76056
76057 2001-05-21  Jim Meyering  <meyering@lucent.com>
76058
76059         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76060         shell syntax errors.
76061
76062 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76063
76064         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76065
76066 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76067
76068         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76069         Don't bother to check library strftime, since
76070         we'll be using our own my_strftime function anyway.
76071         Define my_strftime instead of strftime.
76072
76073 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76074
76075         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76076         which is not yet declared.
76077
76078 2001-05-15  Jim Meyering  <meyering@lucent.com>
76079
76080         * m4/regex.m4: Use proper quoting so brackets appear in the test
76081         program.
76082         Reported by, and with help from, Bruno Haible.
76083
76084 2001-05-13  Jim Meyering  <meyering@lucent.com>
76085
76086         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76087         undefined.
76088
76089 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76090
76091         dirname code cleanup.  base_name now behaves more compatibly
76092         with POSIX basename when given file names that have trailing
76093         slashes, and similarly for dir_name.  Add new primitives
76094         base_len and dir_len.  Put the directory-name-related decls
76095         into dirname.h.
76096
76097         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76098         * lib/backupfile.c (base_name): Likewise.
76099         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76100         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76101         * lib/makepath.c (strip_trailing_slashes): Likewise.
76102         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76103         ISSLASH): Likewise.
76104         * lib/rename.c (strip_trailing_slashes): Likewise.
76105         * lib/same.c (base_name): Likewise.
76106         * lib/stripslash.c (ISSLASH): Likewise.
76107
76108         * lib/addext.c: Include <dirname.h> after size_t is defined.
76109         * lib/backupfile.c: Likewise.
76110
76111         * lib/addext.c (addext): Use base_len to trim redundant
76112         trailing slashes instead of doing it ourselves.
76113         But do not trim the last slash if it is not redundant.
76114
76115         * lib/backupfile.c (find_backup_file_name,
76116         max_backup_version): Use base_len instead of rolling it ourselves.
76117         Handle the case of "" and (on DOS) "C:" correctly.
76118
76119         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76120         needed. Include <string.h>, <dirname.h>.
76121         (base_name): Allow file names ending in slashes, other than names
76122         that are all slashes.  In this case, return the basename followed
76123         by the slashes.  This is more general, and can be used in places
76124         where the original base_name purposely had an assertion failure.
76125         (base_len): New function.
76126
76127         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76128         Do not include <assert.h>; no longer needed.
76129         Include xalloc.h.
76130         (memrchr): Remove decl.
76131         (dir_name_r): Remove.
76132         (dir_len): Renamed from dirlen.  All callers changed.
76133         Rewrite in terms of base_name, for simplicity and consistency.
76134         (dir_name): Never return NULL.  All callers changed.
76135         Do not include <stdlib.h> in test program; no longer needed.
76136         return 0; is fine for test program.
76137
76138         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76139         New macros.
76140         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76141
76142         * lib/path-concat.c (path_concat): Use base_len to compute
76143         base length, not strlen; this means we cannot rely on memcpy
76144         to null-terminate.
76145
76146         * lib/same.c (STREQ): Remove.
76147         (same_name): Handle the case where the basename ends in trailing '/'.
76148
76149         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76150         a slash was stripped.  Do not strip the last slash after a
76151         file system prefix.
76152
76153 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76154
76155         * lib/Makefile.am (libfetish_a_SOURCES):
76156         Add strftime.c, since we now compile it on all hosts.
76157
76158         * lib/strftime.c (my_strftime):
76159         Define to nstrftime if emacs, but only if my_strftime is not defined.
76160         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76161         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76162         Add one more extra argument: a nanoseconds value.
76163         All uses changed.
76164         (ns): New macro.
76165         (my_strftime function): Add %N format.
76166         (emacs_strftimeu): Renamed from emacs_strftime,
76167         with extra ut argument.
76168
76169 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76170
76171         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76172
76173 2001-04-21  Jim Meyering  <meyering@lucent.com>
76174
76175         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76176         doesn't interfere.
76177
76178 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76179
76180         * m4/ftruncate.m4: Check for chsize.
76181         Link with ftruncate.o unconditionally if ftruncate is missing.
76182         This was required when cross-compiling to i586-mingw32msvc.
76183
76184 2001-04-08  Jim Meyering  <meyering@lucent.com>
76185
76186         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76187         recomputed; that's necessary when the offset spans a DST transition.
76188         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76189
76190 2001-04-02  Jim Meyering  <meyering@lucent.com>
76191
76192         * lib/regex.h, regex.c: Update from GNU libc.
76193
76194 2001-03-24  Jim Meyering  <meyering@lucent.com>
76195
76196         * m4/jm-macros.m4: Require autoconf-2.49d.
76197
76198 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76199
76200         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76201
76202 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76203
76204         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76205
76206 2001-03-17  Jim Meyering  <meyering@lucent.com>
76207
76208         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76209         now that the version in autoconf is equivalent.
76210         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76211
76212         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76213         Suggestion from Akim Demaille.
76214
76215         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76216         (jm_PREREQ_TEMPNAME): New function.
76217
76218 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76219
76220         * lib/tempname.c (uint64_t): Define to uintmax_t if
76221         not defined, and if UINT64_MAX is not defined.
76222         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76223         Reported by John David Anglin.
76224
76225 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76226
76227         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76228         resolve alias if codeset is empty.
76229         * lib/config.charset (BeOS): Use wildcard syntax.
76230
76231 2001-03-13  Jim Meyering  <meyering@lucent.com>
76232
76233         * lib/path-concat.c (path_concat)
76234         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76235         concatenating e.g., `C:' and `foo'.
76236         From Bruno Haible.
76237
76238 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76239
76240         * lib/localcharset.c (locale_charset): Don't use
76241         setlocale(LC_CTYPE,NULL). Don't return NULL.
76242         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76243
76244 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76245
76246         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76247         support for DOS/DJGPP.
76248
76249 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76250
76251         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76252         lacks mkstemp.  Compile our own tempname.c if we compile our own
76253         mkstemp.c, as mkstemp relies on tempname.
76254
76255 2001-03-01  Jim Meyering  <meyering@lucent.com>
76256
76257         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76258         AH_VERBATIM really does output its argument verbatim.
76259
76260 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76261
76262         * lib/Makefile.am (libfetish_a_SOURCES):
76263         Add dup-safer.c, fopen-safer.c.
76264         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76265
76266         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76267         * lib/unistd-safer.h: New files.
76268
76269 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76270
76271         The mkstemp replacement is taken from glibc 2.2.2, with some
76272         portability fixes for use outside glibc, as follows:
76273
76274         * lib/tempname.c (struct_stat64): New macro.
76275         (direxists, __gen_tempname): Use it.
76276         This avoids a portability problem with Solaris 8.
76277
76278         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76279         (<stddef.h>, <stdint.h>, <string.h>):
76280         Include only if STDC_HEADERS || _LIBC.
76281         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76282         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76283         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76284         (__set_errno): Define this macro if <errno.h> doesn't.
76285         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76286         Define these macros if <stdio.h> doesn't.
76287         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76288         Define these macros if <sys/stat.h>
76289         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76290         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76291         __xstat64): Define if not _LIBC.
76292         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76293         (__gen_tempname): Invoke gettimeofday only if
76294         HAVE_GETTIMEOFDAY || _LIBC;
76295         otherwise, fall back on plain "time".
76296         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76297
76298         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76299
76300         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76301
76302 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76303
76304         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76305
76306 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76307
76308         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76309         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76310         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76311         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76312
76313 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76314
76315         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76316         Remove workaround macros for hosts that have mbrtowc but not
76317         mbstate_t, as we now insist on proper declarations for both
76318         before using mbrtowc.
76319
76320 2001-02-17  Jim Meyering  <meyering@lucent.com>
76321
76322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76323         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76324         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76325         UnixWare 7.1.1.
76326
76327         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76328         rather than AC_CACHE_VAL.
76329
76330 2001-02-17  Jim Meyering  <meyering@lucent.com>
76331
76332         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76333         around included file name.
76334
76335         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76336
76337         * lib/strftime.c: Update from GNU libc (the only changes were to
76338         comments).
76339
76340 2001-02-17  Jim Meyering  <meyering@lucent.com>
76341
76342         * lib/regex.c: Update from libc.
76343
76344 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
76345
76346         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
76347         clash.
76348
76349 2001-02-16  Paul Eggert  <eggert@twinsun.com>
76350
76351         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
76352         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
76353         Reported by Mark Hounschell via Paul Eggert.
76354
76355 2001-02-07  Jim Meyering  <meyering@lucent.com>
76356
76357         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
76358
76359 2001-02-05  Jim Meyering  <meyering@lucent.com>
76360
76361         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
76362         it includes the patch required for `large file' support with at least
76363         HP-UX's 10.20 /bin/cc.
76364
76365 2001-02-03  Jim Meyering  <meyering@lucent.com>
76366
76367         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
76368         AS_IF, now that it works once again (mysteriously).
76369         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76370
76371 2001-01-30  Jim Meyering  <meyering@lucent.com>
76372
76373         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
76374         * m4/chown.m4: Rename conftestchown to conftest.chown.
76375         * m4/rename.m4: s/conftestdir/conftest.d1/ and
76376         s/conftestdir2/conftest.d2/.
76377         * m4/utimes.m4: s/conftestdata/conftest.data/
76378         Inspired by Pavel Roskin's change in autoconf.
76379
76380 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
76381
76382         * lib/config.charset: Update for FreeBSD 4.2.
76383
76384 2001-01-27  Jim Meyering  <meyering@lucent.com>
76385
76386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
76387         a use of AS_IF.
76388         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76389
76390 2001-01-26  Jim Meyering  <meyering@lucent.com>
76391
76392         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
76393         quotearg.c includes it.
76394
76395 2001-01-26  Jim Meyering  <meyering@lucent.com>
76396
76397         * lib/quotearg.c: Include stddef.h.
76398         * lib/quote.c: Include stddef.h.
76399         Reported by Axel Kittenberger.
76400
76401         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
76402         line in double quotes so that it evokes a better diagnostic.
76403         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
76404         Reported by Axel Kittenberger.
76405
76406 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
76407
76408         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
76409         as if it was a `charset'.
76410
76411 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76412
76413         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
76414         has const.
76415
76416 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76417
76418         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
76419         to avoid a warning.  Add back 'const' to inptr.
76420
76421 2001-01-20  Jim Meyering  <meyering@lucent.com>
76422
76423         Be sure that headers are checked before used in code compiled
76424         for the type checks.
76425         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
76426         In place of that, invoke jm_CHECK_ALL_TYPES.
76427         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
76428         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
76429         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
76430         The check for ssize_t was mistakenly run before the test for unistd.h.
76431
76432         The configure-time check for stdbool.h was missing.
76433         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
76434         (jm_PREREQ_HASH): New function.
76435
76436 2001-01-17  Jim Meyering  <meyering@lucent.com>
76437
76438         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
76439         for autoconf-2.49c.
76440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
76441
76442 2001-01-16  Jim Meyering  <meyering@lucent.com>
76443
76444         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
76445         From Bruno Haible.
76446
76447 2001-01-14  Jim Meyering  <meyering@lucent.com>
76448
76449         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
76450         foo and bar.  Create conftestdir/ in the script, not in the C code.
76451         Remove directories in the script, not in the C code.
76452         Remove conftestdir{,2} before trying to create the directory.
76453         Make the entire configure script fail if the mkdir fails.
76454
76455 2001-01-14  Jim Meyering  <meyering@lucent.com>
76456
76457         * lib/rename.c: New file.  From Volker Borchert.
76458         Include stdlib.h, string.h or strings.h, and xalloc.h.
76459         Use strip_trailing_slashes rather than open-coding it.
76460
76461 2001-01-03  Paul Eggert  <eggert@twinsun.com>
76462
76463         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
76464
76465 2001-01-03  Jim Meyering  <meyering@lucent.com>
76466
76467         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
76468         of local `inptr' to avoid warning with some system declarations of
76469         iconv.
76470
76471 2001-01-02  Volker Borchert  <bt@teknon.de>
76472
76473         * m4/rename.m4: New file.
76474         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
76475
76476 2001-01-01  Jim Meyering  <meyering@lucent.com>
76477
76478         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
76479         even on systems with utmpx.h.  It's necessary for the declaration of
76480         utmp's ut_user member.  Reported by Andreas Jaeger.
76481
76482         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
76483         available. They are required for the declarations of getgrgid and
76484         getpwuid resp.
76485         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
76486         Reported by Andreas Jaeger.
76487
76488 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
76489
76490         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
76491         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
76492         so `make install' also works in VPATH builds.
76493
76494 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
76495
76496         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
76497         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
76498         can be used in subdirectories.
76499
76500 2000-12-29  Paul Eggert  <eggert@twinsun.com>
76501
76502         * lib/modechange.c: Do not assume that mode_t uses the
76503         traditional octal encoding.  E.g. "chmod 1 FOO" should set
76504         the other-execute bit of FOO even if S_IXOTH != 1.
76505
76506         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
76507         WOTH, XOTH, ALLM): New macros.
76508         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
76509          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
76510         Use them.
76511         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
76512         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
76513         (mode_compile):
76514         No need to use uintmax_t; unsigned long is long enough.
76515         Don't bother to get suffix since we don't use it.
76516
76517 2000-12-26  Jim Meyering  <meyering@lucent.com>
76518
76519         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
76520         better with autoheader.
76521
76522 2000-12-24  Jim Meyering  <meyering@lucent.com>
76523
76524         * lib/hash.c (is_prime): Return explicit boolean values.
76525         (hash_get_first): Return NULL to appease Irix5.6's 89.
76526         Reported by Nelson Beebe.
76527
76528 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
76529
76530         * lib/localcharset.c (locale_charset): Add support for Win32.
76531
76532 2000-12-18  Paul Eggert  <eggert@twinsun.com>
76533
76534         * lib/physmem.h, lib/physmem.c: New files.
76535
76536         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
76537         (noinst_HEADERS): Add physmem.h.
76538
76539         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
76540         't' for compatibility with Solaris 8 sort.
76541
76542 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
76543
76544         * lib/config.charset: Add support for BeOS.
76545
76546 2000-12-17  Jim Meyering  <meyering@lucent.com>
76547
76548         * m4/dos.m4 (jm_AC_DOS): New file and macro.
76549         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
76550
76551 2000-12-16  Jim Meyering  <meyering@lucent.com>
76552
76553         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76554         N and M) would have treated it like `chown N:N FILE'.
76555
76556         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76557
76558 2000-12-16  Jim Meyering  <meyering@lucent.com>
76559
76560         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76561         SHELLS_FILE to a file name that's useful on djgpp systems.
76562         Include stdlib.h.
76563         (ADDITIONAL_DEFAULT_SHELLS): Define.
76564         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76565         Based mostly on a patch from Prashant TR.
76566
76567 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76568
76569         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76570         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76571         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76572
76573 2000-12-08  Andreas Schwab  <schwab@suse.de>
76574
76575         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76576         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76577
76578 2000-12-07  Jim Meyering  <meyering@lucent.com>
76579
76580         * lib/stripslash.c (ISSLASH): Define.
76581         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76582         `/'.
76583         From Prashant TR.
76584
76585         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76586         (dir_name_r): Declare this function as static.
76587         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76588         manifest itself on a name containing a mix of slashes and
76589         backslashes.
76590         Make this function work with names starting with a DOS-style
76591         drive letter and colon prefix.
76592         (dir_name): Append `.' if necessary.
76593         Based mostly on patches from Prashant TR and Eli Zaretskii.
76594
76595         * lib/dirname.h (dir_name_r): Remove prototype.
76596
76597 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76598
76599         * m4/off_t-format.m4: Remove this file.
76600         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76601
76602 2000-12-06  Jim Meyering  <meyering@lucent.com>
76603
76604         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76605         replacement strtoull, we may well need the replacement strtoul, too.
76606         Check for declarations of strtoul and strtoull.
76607         Check for strtol.  Mainly as a cue to cause automake to include
76608         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76609         Check for limits.h -- strtol.c needs it.
76610
76611 2000-12-05  Jim Meyering  <meyering@lucent.com>
76612
76613         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76614
76615 2000-12-04  Jim Meyering  <meyering@lucent.com>
76616
76617         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76618         Also include memory.h, stdlib.h, unistd.h if appropriate.
76619         Reported by Andreas Jaeger (conflicting declaration of malloc).
76620
76621 2000-12-02  Jim Meyering  <meyering@lucent.com>
76622
76623         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76624         * m4/jm-macros.m4 (jm_MACROS): require it.
76625
76626 2000-12-02  Jim Meyering  <meyering@lucent.com>
76627
76628         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76629
76630 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76631
76632         * lib/memrchr.c: Include <config.h> before any system include file.
76633
76634 2000-11-30  Jim Meyering  <meyering@lucent.com>
76635
76636         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76637
76638 2000-11-30  Jim Meyering  <meyering@lucent.com>
76639
76640         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76641
76642 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76643
76644         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76645
76646 2000-11-26  Jim Meyering  <meyering@lucent.com>
76647
76648         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76649
76650 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76651
76652         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76653         size of (size_t) -1; it's not portable.
76654
76655 2000-11-17  Jim Meyering  <meyering@lucent.com>
76656
76657         * lib/strstr.c: Update from GNU libc.
76658
76659 2000-11-17  Akim Demaille  <akim@epita.fr>
76660
76661         * lib/obstack.h: Formatting changes.
76662         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76663         prevent type checking.
76664         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76665         cast the value to (void *): assigning a `foo *' to a `void *'
76666         variable is valid.
76667         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76668
76669 2000-11-16  Jim Meyering  <meyering@lucent.com>
76670
76671         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76672
76673 2000-11-11  Jim Meyering  <meyering@lucent.com>
76674
76675         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76676
76677 2000-11-10  Jim Meyering  <meyering@lucent.com>
76678
76679         * lib/obstack.h: Update from GNU libc.
76680         * lib/obstack.c: Likewise.
76681
76682 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76683
76684         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76685
76686 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76687
76688         * lib/getusershell.c (setusershell): Use rewind rather than
76689         fseek/fseeko, to avoid configuration hassles with fseeko.
76690         Don't bother opening SHELLS_FILE if shellstream is NULL;
76691         it's not necessary.
76692
76693 2000-11-05  Jim Meyering  <meyering@lucent.com>
76694
76695         * lib/makepath.h (make_dir): Declare.
76696         * lib/makepath.c (make_dir): Remove `static' attribute.
76697         Tweak a comment.
76698
76699 2000-11-04  Jim Meyering  <meyering@lucent.com>
76700
76701         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76702
76703 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76704
76705         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76706         last one in a bucket, advance to the next bucket.
76707
76708 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76709
76710         * lib/fnmatch.c: Do not comment out all the code if we are using
76711         the GNU C library, because in some cases we are replacing buggy
76712         code in the GNU C library itself.
76713
76714 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76715
76716         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76717         (regex_compile): Catch bogus \(\1\).
76718
76719 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76720
76721         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76722         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76723         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76724
76725 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76726
76727         * lib/error.h, getline.h, modechange.h:
76728         Remove "2000" from Copyright line, as the file hasn't been
76729         changed this year other than in the copyright notice.
76730
76731         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76732         was changed this year.
76733
76734 2000-10-29  Jim Meyering  <meyering@lucent.com>
76735
76736         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76737         renaming.
76738         * m4/ls-mntd-fs.m4: Likewise
76739
76740 2000-10-29  Jim Meyering  <meyering@lucent.com>
76741
76742         * lib/xstat.in: Fix grammar in comment.
76743
76744 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76745
76746         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76747         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76748         doesn't define __restrict_arr.
76749
76750 2000-10-28  Jim Meyering  <meyering@lucent.com>
76751
76752         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76753         (jm_PREREQ_MEMCHR): New function.
76754
76755 2000-10-28  Jim Meyering  <meyering@lucent.com>
76756
76757         * lib/memchr.c: Update from libc.
76758         Adjust for portability:
76759         [HAVE_STDLIB_H]: Include stdlib.h.
76760         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76761         Undef __memchr, too.
76762         [!weak_alias]: Define __memchr to memchr.
76763
76764         * lib/regex.c: Update from libc.
76765         * lib/regex.h: Likewise.
76766         * lib/getopt1.c: Likewise.
76767         * lib/memcmp.c: Likewise.
76768
76769         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76770         Avoid using fseek, when possible -- it's broken by design.
76771         Patch by Ulrich Drepper.
76772
76773 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76774
76775         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76776         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76777         Giving in to popular pressure to shut up the compiler with casts.
76778
76779 2000-10-26  Jim Meyering  <meyering@lucent.com>
76780
76781         * lib/strftime.c: Update from libc.
76782
76783 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76784
76785         * regex.c: More `unsigned char' -> `re_char' changes.
76786         Also change several `int' into `re_wchar_t'.
76787         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76788         (PUSH_FAILURE_POINTER): Don't cast any more.
76789         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76790         We want GCC to complain, since this piece of code makes
76791         re_match non-reentrant, which *should* be fixed.
76792         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76793         (EXTEND_BUFFER): Use RETALLOC.
76794         (SET_LIST_BIT): Don't cast.
76795         (re_wchar_t): New type.
76796         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76797         that those two functions will always properly return.
76798         (IMMEDIATE_QUIT_CHECK): Cast to void.
76799         (analyse_first): Use recursion rather than an explicit stack.
76800         (re_compile_fastmap): Can't fail anymore.
76801         (re_search_2): Don't check re_compile_fastmap for failure.
76802         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76803         Now also sets the new value (passed in a new argument).
76804         (re_match_2_internal): Use it.
76805         Also, use a new var `reg' of type size_t when looping through regs
76806         rather than reuse the inappropriate `mcnt'.
76807
76808 2000-10-25  Jim Meyering  <meyering@lucent.com>
76809
76810         * lib/obstack.c: Update from libc.
76811
76812 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76813
76814         * regex.c (regex_compile): Change the way of handling a range from
76815         a char less than 256 to a char not less than 256.
76816
76817 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76818
76819         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76820         NT-Emacs only.
76821         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76822         so that re_search functions only quit when callers expect them to.
76823
76824 2000-10-23  Jim Meyering  <meyering@lucent.com>
76825
76826         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76827         wrong.  That set_locale call must not have any side effects.
76828         From Paul Eggert.
76829
76830 2000-10-22  Jim Meyering  <meyering@lucent.com>
76831
76832         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76833         [CYCLIC]: Remove now-unused definition.
76834
76835         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76836         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76837         Suggestion from Ulrich Drepper.
76838
76839 2000-10-21  Jim Meyering  <meyering@lucent.com>
76840
76841         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76842         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76843         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76844
76845 2000-10-21  Jim Meyering  <meyering@lucent.com>
76846
76847         * lib/dirname.c (memrchr): Declare if necessary.
76848         (dir_name): Remove the restriction that there be no
76849         trailing slashes.  Now, this code skips past them, effectively
76850         ignoring them.
76851         [TEST_DIRNAME] (main): New unit tests.
76852
76853         * lib/memrchr.c: New file from GNU libc.
76854         Undef __memrchr, too.
76855         [!weak_alias]: Define __memrchr to memrchr.
76856         Guard weak_alias use with `#ifdef weak_alias'.
76857
76858 2000-10-21  Jim Meyering  <meyering@lucent.com>
76859
76860         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76861         (dir_name): Use dir_name_r.
76862         * lib/dirname.h (dir_name_r): Declare it.
76863
76864 2000-10-17  Jim Meyering  <meyering@lucent.com>
76865
76866         * lib/quote.h (PARAMS): Define and use.
76867         Reported by Akim Demaille.
76868
76869         * lib/getopt.c: Update from libc.
76870
76871 2000-10-16  Jim Meyering  <meyering@lucent.com>
76872
76873         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76874         setlocale.
76875         From Jan Fedak.
76876
76877 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76878
76879         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76880
76881 2000-09-25  Jim Meyering  <meyering@lucent.com>
76882
76883         * lib/md5.h (rol): Define (from GnuPG).
76884
76885         * lib/sha.c: Give credit (GnuPG) where due.
76886         (M): Use rol rather than open-coding it.
76887         Add a FIXME comment.
76888
76889 2000-09-21  Jim Meyering  <meyering@lucent.com>
76890
76891         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76892         Reported by Michael Stone.
76893
76894 2000-09-20  Jim Meyering  <meyering@lucent.com>
76895
76896         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76897         (noinst_HEADERS): Add sha.h.
76898         Based on code from Scott G. Miller and from GnuPG.
76899
76900 2000-09-18  Jim Meyering  <meyering@lucent.com>
76901
76902         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76903         LIBS. Otherwise, everyone ends up linking with -lelf for some
76904         configurations.
76905         Reported by Mike Stone.
76906
76907 2000-09-15  Jim Meyering  <meyering@lucent.com>
76908
76909         * lib/regex.c: Update from libc.
76910
76911 2000-09-10  Jim Meyering  <meyering@lucent.com>
76912
76913         * lib/getopt.c (_getopt_internal): Update from glibc.
76914
76915 2000-09-09  Jim Meyering  <meyering@lucent.com>
76916
76917         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76918         think it should be used as a general replacement for isascii.
76919         * lib/fnmatch.c: Likewise.
76920         * lib/mbswidth.c: Likewise
76921         * lib/regex.c: Likewise.
76922
76923         Don't use atoi.
76924         * lib/userspec.c: Include sys/param.h and limits.h.
76925         Include xstrtol.h.
76926         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76927         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76928         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76929         UID, GID.  Check range.
76930
76931 2000-09-06  Jim Meyering  <meyering@lucent.com>
76932
76933         * lib/getopt.c (_getopt_internal): Update from glibc.
76934
76935 2000-08-30  Jim Meyering  <meyering@lucent.com>
76936
76937         * lib/strftime.c: Merge in changes from GNU libc.
76938
76939 2000-08-26  Jim Meyering  <meyering@lucent.com>
76940
76941         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76942         * m4/fpending.m4: New file.
76943
76944 2000-08-26  Jim Meyering  <meyering@lucent.com>
76945
76946         * lib/closeout.c: Include "__fpending.h".
76947         (close_stdout_status): Return right away if there's nothing to flush.
76948
76949         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76950         * lib/__fpending.c: New file.
76951         * lib/__fpending.h: New file.
76952
76953 2000-08-20  Jim Meyering  <meyering@lucent.com>
76954
76955         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76956         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76957         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76958
76959 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76960
76961         Improve fileutils installation on systems where running
76962         programs (like install) can't be unlinked.
76963         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76964         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76965
76966 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76967
76968         Standardize on "memory exhausted" instead of "Memory exhausted"
76969         or "virtual memory exhausted".
76970         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76971         "virtual memory exhausted".
76972         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76973         our own message.
76974         * lib/userspec.c (parse_user_spec): Likewise.
76975         * lib/bumpalloc.h: comment fix
76976         * lib/same.c, userspec.c: Include xalloc.h.
76977
76978         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76979         not char *const and pointing to a constant array.
76980         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76981         (xrealloc): Comment fix.
76982
76983         * lib/userspec.c (parse_user_spec):
76984         Don't translate a message until just before returning,
76985         to avoid unnecessary translation.
76986
76987 2000-08-07  Jim Meyering  <meyering@lucent.com>
76988
76989         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76990         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76991         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76992         getgroups.c, gethostname.c, getopt.h, group-member.c,
76993         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76994         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76995         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76996         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76997         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76998         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76999         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77000         yesno.c: Back out Copyright date changes for each file with no change
77001         this year.  This eases coordination with other programs using the same
77002         source code modules.  From Paul Eggert.
77003
77004 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77005
77006         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77007         not char, for compatibility with glibc 2.1.3 strftime.c.
77008
77009 2000-08-03  Greg McGary  <greg@mcgary.org>
77010
77011         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77012         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77013         (EXTEND_BUFFER): Use them.
77014
77015 2000-08-01  Jim Meyering  <meyering@lucent.com>
77016
77017         * lib/dirname.c (ISSLASH): Define.
77018         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77019         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77020         both `\' and `/' may be use as path separators.
77021         Based on a patch from Prashant TR.
77022
77023 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77024
77025         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77026         slot vector a constant, since it might get modified.
77027
77028 2000-07-31  Jim Meyering  <meyering@lucent.com>
77029
77030         * lib/xmalloc.c: Use `virtual memory exhausted', not
77031         `Memory exhausted'.
77032         * lib/obstack.c (print_and_abort): Likewise.
77033
77034 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77035
77036         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77037         buffer, so that the caller can always quote one small
77038         component of a "memory exhausted" message in slot 0.
77039         From a suggestion by Jim Meyering.
77040
77041 2000-07-30  Jim Meyering  <meyering@lucent.com>
77042
77043         * lib/makepath.c (make_path): Quote the other instance, too.
77044
77045         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77046         (STATIC_BUF_SIZE): Define.
77047         (quotearg_n_options): Use only statically allocated storage when
77048         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77049         than STATIC_BUF_SIZE.
77050
77051 2000-07-29  Jim Meyering  <meyering@lucent.com>
77052
77053         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77054         * lib/dirname.c (dir_name): Likewise.
77055
77056         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77057         `/'.
77058
77059         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77060         (dir_name): Assert that there are no trailing slashes.
77061
77062 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77063
77064         * lib/mbswidth.h (mbswidth): Add a flags argument.
77065         (mbswidth): New declaration.
77066         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77067         * lib/mbswidth.c (mbswidth): Add a flags argument.
77068         (mbsnwidth): New function.
77069
77070 2000-07-24  Jim Meyering  <meyering@lucent.com>
77071
77072         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77073
77074 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77075
77076         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77077
77078 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77079
77080         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77081         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77082         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77083         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77084         invoke multibyte primitives.
77085
77086 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77087
77088         * lib/quotearg.c:
77089         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77090         so that mbstate_t is always defined.
77091
77092         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77093         be 1 in at least one GCC installation, and this configuration
77094         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77095         performance on hosts that have mbrtowc but have only unibyte
77096         locales, but I assume these hosts are rare.
77097
77098 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77099
77100         * lib/mbswidth.c (_XOPEN_SOURCE):
77101         Don't define; this causes problems on Solaris 7.
77102         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77103
77104 2000-07-23  Jim Meyering  <meyering@lucent.com>
77105
77106         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77107         too: getgrgid, getpwuid, getuid.
77108
77109 2000-07-23  Jim Meyering  <meyering@lucent.com>
77110
77111         * lib/basename.c (base_name): Add an assertion.
77112
77113 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77114
77115         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77116         shadow its mbsinit function.
77117
77118 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77119
77120         * lib/mbswidth.h: New file.
77121         * lib/mbswidth.c: New file.
77122         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77123         (noinst_HEADERS): Add mbswidth.h.
77124
77125 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77126
77127         * lib/config.charset: Add support for FreeBSD. Improve support for
77128         HP-UX and IRIX 6.
77129
77130 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77131
77132         * m4/mbswidth.m4: New file.
77133         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77134
77135 2000-07-15  Jim Meyering  <meyering@lucent.com>
77136
77137         * lib/makepath.c: Include quote.h.
77138         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77139         corresponding argument in a `quote (...)' call.
77140         Give better diagnostics.
77141
77142         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77143         (noinst_HEADERS): Add quote.h.
77144
77145         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77146         from tar's src/misc.c.
77147         * lib/quote.h: New file.  Prototypes for same.
77148
77149 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77150
77151         From a suggestion by Bruno Haible.
77152         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77153         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77154         to decide whether to define the BeOS workaround macro;
77155         this adjusts to the change to AC_MBSTATE_T.
77156
77157 2000-07-14  Jim Meyering  <meyering@lucent.com>
77158
77159         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77160         jm_AC_TYPE_UINTMAX_T.
77161
77162 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77163
77164         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77165
77166         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77167         quotearg_buffer_restyled): Add support for
77168         clocale_quoting_style.  Undo previous change to
77169         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77170         and "{RIGHT QUOTATION MARK}" msgids.
77171
77172 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77173
77174         From a suggestion by Bruno Haible.
77175         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77176         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77177         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77178         and mbstate_t, to a single-part test that simply defines mbstate_t.
77179         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77180         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77181
77182 2000-07-10  Jim Meyering  <meyering@lucent.com>
77183
77184         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77185
77186         * m4/gnu-source.m4: Output to confdefs.h directly.
77187         Suggestion from Akim Demaille.
77188
77189 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77190
77191         The old behavior of quoting `like this' doesn't look good with
77192         newer, ISO-style fonts.  See:
77193         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77194
77195         Instead, quote "like this" by default.  Let the translator
77196         tailor the locale-specific quoting behavior by providing
77197         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77198
77199         * lib/quotearg.c (N_): New macro.
77200         (gettext_default): New function.
77201         (quotearg_buffer_restyled): Use
77202         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77203         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77204
77205 2000-07-09  Jim Meyering  <meyering@lucent.com>
77206
77207         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77208         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77209
77210         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77211         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77212
77213 2000-07-09  Jim Meyering  <meyering@lucent.com>
77214
77215         * lib/Most files: Update copyright dates to include 2000.
77216
77217 2000-07-08  Jim Meyering  <meyering@lucent.com>
77218
77219         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77220         if not defined.
77221         (xgethostname): Remove now-unnecessary #ifdef.
77222         Move declaration of `err' into loop where it's used.
77223
77224 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77225         and Bruno Haible  <haible@clisp.cons.org>
77226
77227         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77228         only if the test for an object-type mbstate_t fails.  This
77229         prevents us from mistakenly reporting that mbstate_t is a
77230         system object type after we "#define mbstate_t int" to work
77231         around its lack.
77232
77233 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77234         and Bruno Haible  <haible@clisp.cons.org>
77235
77236         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77237
77238 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77239
77240         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77241         to strerror_r.
77242         Include <ctype.h> for use of isalpha.
77243
77244 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77245
77246         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77247         by allocating a larger buffer. Test the gethostname return value for
77248         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77249         returns an error and ENAMETOOLONG isn't defined.
77250
77251 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77252
77253         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77254         dimension.
77255
77256 2000-07-04  Jim Meyering  <meyering@lucent.com>
77257
77258         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77259         of the deprecated AC_CHECKING.
77260
77261 2000-07-04  Jim Meyering  <meyering@lucent.com>
77262
77263         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77264         Reported by Bruno Haible.
77265
77266 2000-07-04  Jim Meyering  <meyering@lucent.com>
77267
77268         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77269         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77270         lacks mbrtowc.
77271
77272 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77273
77274         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77275         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77276
77277 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77278         and Bruno Haible  <haible@clisp.cons.org>
77279
77280         * lib/quotearg.c (mbrtowc):
77281         Assign to *pwc, and return 1 only if result is nonzero.
77282         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77283
77284 2000-07-03  Jim Meyering  <meyering@lucent.com>
77285
77286         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77287
77288 2000-07-03  Jim Meyering  <meyering@lucent.com>
77289
77290         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77291         This is necessary to get a definition of e.g., UTMP_FILE on
77292         HP-UX 10.20.
77293         From Bob Proulx.
77294
77295 2000-07-02  Jim Meyering  <meyering@lucent.com>
77296
77297         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77298
77299         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77300         AC_LIBOBJ(function_name).
77301         * m4/chown.m4: Likewise.
77302         * m4/fnmatch.m4: Likewise.
77303         * m4/ftruncate.m4: Likewise.
77304         * m4/getgroups.m4: Likewise.
77305         * m4/getline.m4: Likewise.
77306         * m4/group-member.m4: Likewise.
77307         * m4/jm-macros.m4: Likewise.
77308         * m4/lstat.m4: Likewise.
77309         * m4/malloc.m4: Likewise.
77310         * m4/memcmp.m4: Likewise.
77311         * m4/nanosleep.m4: Likewise.
77312         * m4/putenv.m4: Likewise.
77313         * m4/realloc.m4: Likewise.
77314         * m4/regex.m4: Likewise.
77315         * m4/stat.m4: Likewise.
77316         * m4/strftime.m4: Likewise.
77317
77318 2000-07-02  Jim Meyering  <meyering@lucent.com>
77319
77320         * lib/quotearg.c (mbstate_t): Don't define here.
77321
77322 2000-07-02  Jim Meyering  <meyering@lucent.com>
77323
77324         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77325
77326 2000-07-01  Jim Meyering  <meyering@lucent.com>
77327
77328         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77329
77330 2000-07-01  Jim Meyering  <meyering@lucent.com>
77331
77332         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77333         problem.
77334
77335 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77336
77337         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77338         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77339
77340 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77341
77342         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
77343         per change in ../m4/ls-mntd-fs.m4.
77344         (read_filesystem_list): Ignore symbolic links.
77345
77346 2000-06-29  Jim Meyering  <meyering@lucent.com>
77347
77348         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
77349         for declaration of strcmp.
77350
77351         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
77352
77353         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
77354         Avoid warning by casting result to `char *' to remove `const'.
77355
77356 2000-06-28  Jim Meyering  <meyering@lucent.com>
77357
77358         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
77359         included by quotearg.c, for which we perform this test.  From
77360         Bruno Haible.
77361
77362 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77363
77364         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
77365         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
77366         <utmpx.h> exists, put readutmp.o into LIBOBJS.
77367
77368 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77369
77370         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
77371
77372 2000-06-26  Paul Eggert  <eggert@twinsun.com>
77373
77374         savedir now sets errno on failure and invokes xmalloc to get memory.
77375         Fix a couple of other minor bugs while we're at it.
77376
77377         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
77378         (NAMLEN): Remove macro.
77379         (malloc, realloc): Remove decls.
77380         (stpcpy): Likewise.
77381         ("xalloc.h"): Include.
77382         (NAME_SIZE_DEFAULT): New macro.
77383         (savedir): Use xmalloc / xrealloc to allocate memory.
77384         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
77385         Skip "" directory entries.
77386         Use strlen to calculate directory entry length, since the old method
77387         is rarely used these days and isn't worth supporting.
77388         Don't use a pointer after freeing it.
77389         Check for integer overflow when calculating allocation size.
77390         Use memcpy to copy entries, instead of stpcpy.
77391         Set errno properly when returning NULL.
77392         Check for readdir error.
77393
77394 2000-06-26  Jim Meyering  <meyering@lucent.com>
77395
77396         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
77397
77398 2000-06-25  Jim Meyering  <meyering@lucent.com>
77399
77400         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
77401         Linux header bug when _XOPEN_SOURCE is defined to 500.
77402
77403 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77404
77405         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
77406         deficiency.
77407
77408 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77409
77410         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
77411         Include xalloc.h.
77412         Don't include <stdlib.h>.  Don't declare malloc, realloc.
77413
77414 2000-06-24  Jim Meyering  <meyering@lucent.com>
77415
77416         * m4/strerror_r.m4: Revive this file -- to try out an experimental
77417         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
77418         for which strerror does return char*, but which lacks a conveniently
77419         accessible declaration of the function.  If the compile-test says
77420         strerror_r doesn't work, then resort to a `run'-test that works on
77421         BeOS and segfaults on DEC Unix.
77422
77423 2000-06-24  Jim Meyering  <meyering@lucent.com>
77424
77425         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
77426
77427 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77428
77429         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
77430         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
77431
77432 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77433
77434         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
77435         (mbrtowc, mbstate_t): Define substitutes if
77436         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
77437         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
77438         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
77439
77440 2000-06-23  Jim Meyering  <meyering@lucent.com>
77441
77442         * m4/afs.m4: Add missing AC_MSG_RESULT.
77443         Reported by Bruno Haible.
77444
77445         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
77446         Suggestion from Bruno Haible.
77447
77448 2000-06-23  Jim Meyering  <meyering@lucent.com>
77449
77450         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
77451
77452 2000-06-21  Jim Meyering  <meyering@lucent.com>
77453
77454         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
77455
77456 2000-06-21  Jim Meyering  <meyering@lucent.com>
77457
77458         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
77459         (noinst_HEADERS): Add getstr.h.
77460
77461         * lib/getline.c (getstr): Move into a separate file.
77462         * lib/getstr.c (getstr): New file, extracted from getline.c, with
77463         the following changes: new parameter, delim2; both delim[12]
77464         parameters have type `int', not `char'.  The latter would lose
77465         with 8-bit delimiters.
77466         * lib/getstr.h: New file.
77467
77468 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77469
77470         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
77471         than 1024, return a memory chunk of least possible size, instead
77472         of size PATH_MAX + 2. In the loop, increment the size proportionally.
77473         Use free/xmalloc instead of xrealloc to avoid copying for very long
77474         paths.
77475
77476 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77477
77478         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
77479         the empty string.
77480
77481 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77482
77483         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
77484         address, not strdup.  Include <stdlib.h> and don't declare free().
77485
77486 2000-06-19  Jim Meyering  <meyering@lucent.com>
77487
77488         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
77489
77490 2000-06-18  Jim Meyering  <meyering@lucent.com>
77491
77492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
77493
77494         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
77495         `checking whether...' message to be consistent with that of the
77496         lstat test.
77497
77498 2000-06-18  Jim Meyering  <meyering@lucent.com>
77499
77500         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
77501         Besides, these days every porting target provides a mkdir function.
77502
77503         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
77504         needed. (this snippet comes from src/system.h).
77505
77506 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
77507
77508         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
77509
77510 2000-06-15  Paul Eggert  <eggert@twinsun.com>
77511
77512         * lib/human.c (adjust_value): New function.
77513         (human_readable_inexact): Apply rounding style even when
77514         printing approximate values.
77515
77516 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77517
77518         * lib/human.c (human_readable_inexact): Allow an input block
77519         size that is not a multiple of the output block size, and vice versa.
77520         Reported by Piergiorgio Sartor.
77521
77522 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77523
77524         * lib/getdate.y (get_date): Apply relative times after time
77525         zone indicator, not before.  Reported by Todd A. Jacobs.
77526
77527 2000-06-13  Jim Meyering  <meyering@lucent.com>
77528
77529         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
77530
77531         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
77532
77533 2000-06-12  Paul Eggert  <eggert@twinsun.com>
77534
77535         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
77536
77537 2000-06-12  Jim Meyering  <meyering@lucent.com>
77538
77539         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
77540         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
77541         optional argument.
77542         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
77543         the optional argument, `lib'.
77544
77545 2000-06-08  Jim Meyering  <meyering@lucent.com>
77546
77547         * m4/largefile.m4: Remove file (now that it's part of autoconf).
77548
77549 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77550
77551         Rewrite largefile configuration so that we don't need to run
77552         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77553         AC_CANONICAL_HOST in configure.in -- jmm]
77554
77555         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77556         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77557         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77558         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77559         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77560         All uses changed.
77561         Instead of inspecting the output of getconf, try to compile the
77562         test program without and with the macro definition.
77563         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77564         for getconf.  Instead, check for the needed flags by compiling
77565         test programs.
77566
77567 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77568
77569         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77570
77571 2000-06-04  Jim Meyering  <meyering@lucent.com>
77572
77573         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77574         SunOS 4.1.4 for which gid_t is an unsigned type.
77575
77576 2000-06-03  Jim Meyering  <meyering@lucent.com>
77577
77578         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77579         now that autoconf requires that.
77580
77581         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77582         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77583         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77584
77585 2000-06-03  Jim Meyering  <meyering@lucent.com>
77586
77587         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77588
77589 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77590
77591         * m4/glibc21.m4: New file.
77592         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77593
77594 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77595
77596         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77597         newer, don't install charset.alias.
77598         * lib/config.charset: Change the Linux/glibc rules so they become empty
77599         on glibc-2.1 or newer.
77600
77601 2000-06-02  Jim Meyering  <meyering@lucent.com>
77602
77603         * lib/mountlist.c: Back out last change.  Instead, do this...
77604         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77605         me_dummy member using the same `ignore'-testing code.
77606         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77607         fs_type strings.
77608         From Mark D. Roth.
77609
77610 2000-05-29  Jim Meyering  <meyering@lucent.com>
77611
77612         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77613         mounts with the `ignore' attribute.  Based on a patch from
77614         Mark D. Roth.
77615
77616 2000-05-28  Jim Meyering  <meyering@lucent.com>
77617
77618         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77619         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77620         * m4/stat.m4: Likewise.
77621         * m4/lstat.m4: Likewise.
77622         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77623
77624         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77625         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77626
77627 2000-05-26  Jim Meyering  <meyering@lucent.com>
77628
77629         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77630
77631 2000-05-24  Jim Meyering  <meyering@lucent.com>
77632
77633         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77634         autoconf requires that.
77635         * m4/lib-check.m4: Likewise.
77636         * m4/jm-macros.m4: Likewise.
77637         * m4/strftime.m4: Likewise.
77638
77639         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77640         AC_CHECK_DECLS, now that autoconf requires that.
77641
77642 2000-05-22  Jim Meyering  <meyering@lucent.com>
77643
77644         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77645         * m4/lstat.m4: Likewise.
77646
77647 2000-05-22  Jim Meyering  <meyering@lucent.com>
77648
77649         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77650
77651 2000-05-20  Jim Meyering  <meyering@lucent.com>
77652
77653         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77654         (jm_PREREQ): Use it.
77655
77656 2000-05-18  Jim Meyering  <meyering@lucent.com>
77657
77658         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77659         back, too, since it may have been modified by allocate_entry.
77660         (hash_delete): Rewrite to use neither the assignment operator
77661         nor the comma operator in an if-expression.
77662
77663 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77664
77665         * lib/closeout.c:
77666         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77667         Remove; no longer needed.
77668         "quotearg.h": Add include.
77669         (file_name): Do not bother to explicitly initialize to NULL; it's less
77670         efficient on some hosts.
77671         (close_stdout_status): Remove test as to whether stdout was already
77672         closed; it breaks for the case "echo x | sort >&-".
77673         Quote file name colons.
77674         Do not assume that _("write error") lacks format strings.
77675
77676 2000-05-15  Jim Meyering  <meyering@lucent.com>
77677
77678         * lib/version-etc.c (version_etc_copyright): Update the copyright
77679         string used in all --version output.
77680
77681 2000-05-14  Jim Meyering  <meyering@lucent.com>
77682
77683         * lib/closeout.c (close_stdout_set_file_name): New function.
77684         (close_stdout_status): Use new file-scoped global.
77685         Return right away if fstat says the stdout file descriptor is invalid.
77686         * lib/closeout.h (close_stdout_set_file_name): Declare.
77687
77688 2000-05-10  Jim Meyering  <meyering@lucent.com>
77689
77690         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77691         (close_stdout_set_status): New function.
77692         * lib/closeout.h (close_stdout_set_status): Declare.
77693
77694 2000-05-09  Jim Meyering  <meyering@lucent.com>
77695
77696         * m4/gettext.m4: Rename this...
77697         * m4/libintl.m4: ...to this.
77698
77699 2000-05-08  Jim Meyering  <meyering@lucent.com>
77700
77701         * lib/long-options.c: Don't include closeout.h.
77702         (parse_long_options): Don't call close_stdout for --version.
77703
77704 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77705
77706         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77707         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77708         2.1.3 bug.  This avoids a clash when files like regex.c define
77709         _GNU_SOURCE.
77710
77711 2000-05-06  Jim Meyering  <meyering@lucent.com>
77712
77713         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77714         (AC_REPLACE_FUNCS): Add strnlen.
77715
77716         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77717         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77718
77719         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77720         AC_SEARCH_LIBS call for nanosleep.
77721         (LIB_NANOSLEEP): Set and AC_SUBST.
77722
77723 2000-05-06  Jim Meyering  <meyering@lucent.com>
77724
77725         * lib/strnlen.c: Undefine __strnlen and strnlen.
77726         [!weak_alias]: Define __strnlen to strnlen.
77727
77728         * lib/atexit.c: New file, from libiberty.
77729
77730 2000-05-06  Jim Meyering  <meyering@lucent.com>
77731
77732         * lib/closeout.c (close_stdout_status): Also check for errors on the
77733         stderr stream.
77734
77735 2000-05-05  Jim Meyering  <meyering@lucent.com>
77736
77737         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77738         AC_SEARCH_LIBS call for clock_gettime.
77739         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77740
77741         * m4/search-libs.m4: Update from autoconf.
77742
77743         su doesn't work on Solaris 2.6.
77744         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77745         <shadow.h>.  Reported by Dragos Harabor.
77746
77747 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77748
77749         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77750         memcpy instead of xmalloc, xrealloc, path_concat.
77751         (locale_charset): Treat empty environment variables as absent.
77752         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77753
77754 2000-05-04  Jim Meyering  <meyering@lucent.com>
77755
77756         * lib/getopt.c: Update from glibc.
77757         * lib/obstack.c: Likewise.
77758         * lib/obstack.h: Likewise.
77759         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77760         file
77761
77762         * lib/regex.h: Likewise.
77763         * lib/strndup.c: Likewise.
77764         * lib/strnlen.c: New file, from glibc.
77765
77766 2000-05-03  Jim Meyering  <meyering@lucent.com>
77767
77768         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77769
77770 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77771
77772         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77773         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77774         compile-time test, rather than inspecting host and OS, to
77775         decide whether to define _LARGEFILE_SOURCE.
77776
77777 2000-05-01  Jim Meyering  <meyering@lucent.com>
77778
77779         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77780
77781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77782         Based on a patch from Bruno Haible.
77783
77784 2000-05-01  Jim Meyering  <meyering@lucent.com>
77785
77786         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77787
77788 2000-04-29  Jim Meyering  <meyering@lucent.com>
77789
77790         * lib/path-concat.c: Declare strdup only if it's not defined.
77791         * lib/canon-host.c: Likewise.
77792
77793 2000-04-28  Jim Meyering  <meyering@lucent.com>
77794
77795         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77796         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77797         is included first, then limits.h is included by locale.h by libintl.h.
77798         From John David Anglin.
77799
77800 2000-04-25  Jim Meyering  <meyering@lucent.com>
77801
77802         * lib/makepath.c (S_IRWXUGO): Define.
77803         (make_path): Always perform explicit chmod if MODE specifies any
77804         of the `special' permission bits.  Prompted by a bug report against
77805         install from Mate Wierdl and Joost van Baal.
77806
77807 2000-04-18  Jim Meyering  <meyering@lucent.com>
77808
77809         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77810         (jm_PREREQ): Use it.
77811
77812 2000-04-18  Jim Meyering  <meyering@lucent.com>
77813
77814         * lib/README: New file.
77815
77816         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77817         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77818
77819 2000-04-17  Jim Meyering  <meyering@lucent.com>
77820
77821         Get it right :-)
77822         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77823         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77824         Suggestion from Akim Demaille.
77825
77826 2000-04-17  Jim Meyering  <meyering@lucent.com>
77827
77828         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77829         the definition of it to rpl_strftime also defined-away the system's
77830         declaration.
77831
77832 2000-04-15  Jim Meyering  <meyering@lucent.com>
77833
77834         Use `C' to denote so-called `contiguous' files, the same way
77835         that tar does.
77836         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77837         (ftypelet): Use S_ISCTG.
77838         From Michael Deutschmann.
77839
77840 2000-04-14  Jim Meyering  <meyering@lucent.com>
77841
77842         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77843         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77844         clobbered.
77845
77846 2000-04-14  Jim Meyering  <meyering@lucent.com>
77847
77848         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77849
77850 2000-04-13  Jim Meyering  <meyering@lucent.com>
77851
77852         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77853         AH_VERBATIM to insert required #ifndef into config.h.in.
77854         Suggestion from Akim Demaille.
77855
77856 2000-04-12  Jim Meyering  <meyering@lucent.com>
77857
77858         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77859         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77860         Christian Krackowizer.
77861
77862         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77863         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77864         (AC_SYS_LARGEFILE): Require.
77865         (AM_C_PROTOTYPES): Require.
77866
77867 2000-04-08  Jim Meyering  <meyering@lucent.com>
77868
77869         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77870         names don't conflict.  Reported by Eli Zaretskii.
77871
77872 2000-04-07  Jim Meyering  <meyering@lucent.com>
77873
77874         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77875         sys/types.h, to work around system header problems on AIX 3.2.5.
77876         From Bruno Haible.
77877
77878 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77879
77880         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77881         bug.  Deal with the different error behavior of Irix iconv.
77882
77883 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77884
77885         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77886         IRIX if the installer said otherwise.
77887
77888 2000-04-05  Jim Meyering  <meyering@lucent.com>
77889
77890         Portability tweaks required for ultrix4.3.
77891         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77892         (jm_CHECK_DECLS): Add getutent to the list of functions.
77893         (_jm_DECL_HEADERS): Add utmpx.h.
77894         From John David Anglin.
77895
77896         * m4/strftime.m4: Back out the 2000-04-02 change.
77897         Instead of that change, simply undefine putenv in the test program.
77898
77899 2000-04-05  Jim Meyering  <meyering@lucent.com>
77900
77901         Portability tweaks required for ultrix4.3.
77902         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77903         getutent.
77904         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77905         * lib/canon-host.c: Declare strdup.
77906         * lib/path-concat.c: Likewise.
77907         From John David Anglin.
77908
77909 2000-04-04  Jim Meyering  <meyering@lucent.com>
77910
77911         Be more DOS 8.3-friendly.
77912         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77913         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77914         * lib/Makefile.am: Reflect renaming.
77915         Reported by Eli Zaretskii.
77916
77917         Use a temporary file name that won't clash with `charset.alias'
77918         in the DOS 8.3 name space.
77919         * lib/Makefile.am (charset_tmp): Define.
77920         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77921         (uninstall-local): Likewise.
77922         Reported by Eli Zaretskii.
77923
77924 2000-04-03  Jim Meyering  <meyering@lucent.com>
77925
77926         * m4/gettext.m4: Fix typo in comment.
77927
77928         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77929         textutils/configure.in).  Suggestion from Paul Eggert.
77930         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77931
77932 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77933
77934         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77935         variable in the shell rather than using putenv, which isn't
77936         portable.  This avoids the configure-time inter-test dependency
77937         on the potentially-renamed putenv function.
77938
77939 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77940
77941         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77942         before checking struct stat.st_blksize, so that
77943         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77944
77945 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77946
77947         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77948         since strftime.c uses HAVE_STRFTIME to decide whether to use
77949         the underlying strftime.
77950
77951 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77952
77953         * lib/time/strftime.c (my_strftime): Make sure we call the system
77954         strftime, not ourselves, when invoking the underlying strftime.
77955
77956 2000-03-24  Jim Meyering  <meyering@lucent.com>
77957
77958         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77959         (charset_alias): Define.
77960         (install-exec-local): Factor out common code.
77961         (uninstall-local): Split lines longer than 80.
77962         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77963         (SUFFIXES): Define.
77964         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77965         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77966
77967 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77968
77969         * lib/config.charset: Output a line containing "Packages using this
77970         file".
77971         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77972         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77973         ref-del.sed): New rules.
77974
77975 2000-03-17  Jim Meyering  <meyering@lucent.com>
77976
77977         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77978         Otherwise, include <strings.h>
77979
77980 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77981
77982         * lib/unicodeio.c (utf8_wctomb): New function.
77983         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77984         format instead of in UCS-4 with platform dependent endianness.
77985
77986 2000-03-10  Jim Meyering  <meyering@lucent.com>
77987
77988         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77989         From Marco Franzen.
77990
77991 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77992
77993         * lib/savedir.c (savedir): Work even if directory size is
77994         negative; this can happen with some screwy NFS configurations.
77995
77996 2000-03-06  Jim Meyering  <meyering@lucent.com>
77997
77998         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77999         if it's NULL (because we ran out of memory).  From Bruno Haible.
78000
78001 2000-03-05  Jim Meyering  <meyering@lucent.com>
78002
78003         * lib/localcharset.c ("path-concat.h"): Include.
78004         (get_charset_aliases): Use path_concat instead of ANSI string
78005         concatenation.
78006
78007         * lib/unicodeio.h (PARAMS): Define.
78008         Use it to guard prototype.
78009
78010 2000-03-04  Jim Meyering  <meyering@lucent.com>
78011
78012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78013         for lib/localcharset.c.
78014
78015 2000-03-04  Jim Meyering  <meyering@lucent.com>
78016
78017         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78018         installing into it.
78019         (uninstall-local): Uncomment this rule so `make distcheck' works
78020         once again.
78021
78022         * lib/unicodeio.c (<errno.h>): Include it.
78023         (errno): Declare if not defined.
78024
78025         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78026
78027         * lib/config.charset: New version, incorporating remarks from a linux
78028         i18n mailing list.  From Bruno Haible.
78029
78030 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78031
78032         * m4/codeset.m4: New file.
78033         * m4/iconv.m4: New file.
78034         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78035
78036 2000-03-03  Jim Meyering  <meyering@lucent.com>
78037
78038         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78039
78040 2000-03-02  Jim Meyering  <meyering@lucent.com>
78041
78042         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78043         the messages come out on separate lines.
78044
78045         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78046         rather than jm_CHECK_DECLARATIONS.
78047         * m4/decl.m4: Remove now-unused file.
78048
78049         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78050         geteuid.
78051
78052 2000-03-02  Jim Meyering  <meyering@lucent.com>
78053
78054         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78055
78056 2000-03-01  Jim Meyering  <meyering@lucent.com>
78057
78058         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78059         * lib/unicodeio.c: Likewise.
78060
78061 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78062
78063         * lib/config.charset: New file.
78064         * lib/localcharset.c: New file.
78065         * lib/unicodeio.h, lib/unicodeio.c: New files.
78066         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78067         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78068         (noinst_HEADERS): Add unicodeio.h.
78069         (all-local, install-exec-local, charset.alias): New targets.
78070
78071 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78072
78073         * lib/quotearg.c (ALERT_CHAR): New macro.
78074         (quotearg_buffer_restyled): Use it.
78075
78076 2000-02-27  Jim Meyering  <meyering@lucent.com>
78077
78078         * m4/check-decl.m4: Add getenv to the list.
78079
78080 2000-02-27  Jim Meyering  <meyering@lucent.com>
78081
78082         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78083         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78084
78085         * lib/backupfile.c: Guard inclusion of stdlib.h with
78086         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78087         Declare malloc if needed.
78088
78089         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78090         `#ifndef HAVE_DECL..'
78091         now that autoconf always defines the HAVE_DECL_ symbols.
78092         * lib/human.c: Likewise.
78093         * lib/same.c: Likewise.
78094         * lib/strtoumax.c: Likewise.
78095
78096         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78097         declaration check was not run.
78098         * lib/hash.c: Likewise.
78099         * lib/human.c: Likewise.
78100         * lib/same.c: Likewise.
78101         * lib/strtoumax.c: Likewise.
78102
78103         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78104         `.', then first look up the entire `.'-containing string as a login
78105         name.
78106
78107 2000-02-23  Jim Meyering  <meyering@lucent.com>
78108
78109         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78110         in place of my hack.
78111
78112 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78113
78114         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78115         (textint): New typedef.
78116         (parser_control): Member year changed from int to textint.
78117         All uses changed.
78118         (YYSTYPE): Removed; replaced by %union with int and textint members.
78119         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78120         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78121         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78122         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78123         (date, number, to_year): Use width of number in digits, not its value,
78124         to determine whether it's a 2-digit year, or a 2-digit time.
78125         (yylex): Store number of digits of numeric tokens.
78126         Reported by John Kendall.
78127
78128         (parser_control): Changed from struct parser_control to typedef (for
78129         consistency).  All uses changed.
78130
78131         (tID): Removed; not used.
78132         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78133
78134 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78135
78136         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78137         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78138
78139 2000-02-12  Jim Meyering  <meyering@lucent.com>
78140
78141         * lib/userspec.c (ISDIGIT): Define it.
78142         (isdigit): Remove definition.
78143         (is_number): Use ISDIGIT, not isdigit.
78144         <libintl.h>: Include.
78145         (_ and N_): Define.
78146         (parse_user_spec): Mark translatable strings.
78147
78148 2000-02-10  Jim Meyering  <meyering@lucent.com>
78149
78150         With these changes, nanosleep.[ch] are finally enough like the other
78151         lib/* replacement files to compile on a few more losing systems.
78152
78153         * lib/nanosleep.h: Don't include config.h.
78154         Remove prototype from declaration of nanosleep.
78155         (PARAMS): Remove now-unneeded definition.
78156         * lib/nanosleep.c: #undef nanosleep.
78157         (rpl_nanosleep): Rename from nanosleep.
78158
78159 2000-02-10  Jim Meyering  <meyering@lucent.com>
78160
78161         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78162         gnu_nanosleep to rpl_nanosleep.
78163
78164 2000-02-09  Jim Meyering  <meyering@lucent.com>
78165
78166         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78167         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78168
78169 2000-02-08  Akim Demaille  <akim@epita.fr>
78170
78171         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78172         `[' and `]' and remove uses of `changequote'.
78173         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78174         (AC_SYS_LARGEFILE): Likewise.
78175         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78176         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78177         of changequote.
78178         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78179         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78180         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78181         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78182
78183 2000-02-05  Jim Meyering  <meyering@lucent.com>
78184
78185         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78186         Remove explicit use of AC_HEADER_TIME.  It is required by
78187         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78188         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78189         in autoconf whereby the expansion of the latter ended up preceding
78190         the expansion of its prerequisite, AC_HEADER_TIME.
78191         Reported by Volker Borchert.
78192
78193 2000-02-03  Jim Meyering  <meyering@lucent.com>
78194
78195         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78196
78197 2000-02-03  Jim Meyering  <meyering@lucent.com>
78198
78199         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78200         rather than with `#if HAVE_UTMPNAME'.
78201
78202 2000-02-02  Jim Meyering  <meyering@lucent.com>
78203
78204         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78205         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78206         Reported by Eli Zaretskii.
78207
78208 2000-02-01  Jim Meyering  <meyering@lucent.com>
78209
78210         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78211
78212 2000-01-31  Jim Meyering  <meyering@lucent.com>
78213
78214         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78215         functions.  Add the time.h and sys/time.h headers along with the
78216         AC_REQUIRE'ment of AC_HEADER_TIME.
78217
78218 2000-01-31  Jim Meyering  <meyering@lucent.com>
78219
78220         * lib/nanosleep.h (nanosleep): Guard declaration with
78221         `#if ! HAVE_DECL_NANOSLEEP'.
78222         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78223         the declaration in that vendor's sys/timers.h.
78224         Reported by Christian Krackowizer.
78225
78226         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78227         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78228         (ISPRINT): Likewise.
78229         Reported by Tom Tromey.
78230
78231 2000-01-30  Jim Meyering  <meyering@lucent.com>
78232
78233         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78234
78235         * m4/prereq.m4 (utmp_includes): Define.
78236         Check for ut_user and ut_name members in both struct utmpx
78237         and struct utmp.
78238
78239 2000-01-30  Jim Meyering  <meyering@lucent.com>
78240
78241         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78242         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78243         header files where only utmpx.ut_user is declared.
78244
78245         * lib/readutmp.h (UT_USER): Define.
78246
78247 2000-01-29  Jim Meyering  <meyering@lucent.com>
78248
78249         * m4/lib-check.m4: New file containing library-related checks from
78250         fileutils and sh-utils (textutils had none).
78251
78252 2000-01-28  Jim Meyering  <meyering@lucent.com>
78253
78254         * m4/perl.m4: Change format of warning message to look more like that
78255         from the missing script.  Suggestion from François Pinard.
78256
78257 2000-01-25  Jim Meyering  <meyering@lucent.com>
78258
78259         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78260         well as time.h in the compile check.
78261         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78262         Fix typo in cross-compiling case: s/yes/no/.
78263
78264 2000-01-23  Jim Meyering  <meyering@lucent.com>
78265
78266         * m4/jm-macros.m4: Move df-related tests here from
78267         fileutils/configure.in
78268
78269         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78270         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78271
78272         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78273         s/space/ac_fsusage_space/.
78274         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78275
78276         * m4/ftruncate.m4: New file (derived from part of
78277         fileutils/configure.in).
78278         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78279         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78280
78281         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78282         AC_SUBST these here, rather than just in sh-util/configure.in, so
78283         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78284         all the same.
78285         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78286         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78287         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78288         (AC_SUBST(POW_LIBM)): Likewise.
78289         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78290
78291 2000-01-23  Jim Meyering  <meyering@lucent.com>
78292
78293         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78294         obstack.c.
78295
78296 2000-01-22  Jim Meyering  <meyering@lucent.com>
78297
78298         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78299
78300         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78301
78302         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78303         configure.in
78304         (AC_CHECK_HEADERS): Likewise for sh-utils.
78305         (AC_CHECK_HEADERS): Likewise for textutils.
78306         Merge the three lists of headers.
78307
78308         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78309         from fileutils' configure.in.
78310
78311         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78312         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78313         check-decl.m4.
78314
78315         * m4/check-decl.m4: Use #if rather than #ifdef.
78316         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78317         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78318         (_jm_DECL_HEADERS): Define new function.
78319         (jm_CHECK_DECLARATIONS): Require it.
78320
78321 2000-01-22  Jim Meyering  <meyering@lucent.com>
78322
78323         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78324         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78325         Required for some AIX systems.  Reported by Christian Krackowizer.
78326         [TESTING] (main): New function.
78327
78328         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78329         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78330         letters.
78331
78332         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78333         iswprint.
78334
78335         * lib/strverscmp.c (ISDIGIT): Define.
78336         (strverscmp): Use ISDIGIT, not isdigit.
78337
78338 2000-01-19  Jim Meyering  <meyering@lucent.com>
78339
78340         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
78341         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
78342         defines `struct timespec' in <sys/time.h>
78343
78344         * m4/c-bs-a.m4: Remove uses of changequote altogether.
78345         Thanks to Akim for explaining.
78346
78347 2000-01-17  Paul Eggert  <eggert@twinsun.com>
78348
78349         * lib/nanosleep.c (nanosleep):
78350         Don't use SA_INTERRUPT to decide whether to call sigaction, as
78351         POSIX.1 doesn't require SA_INTERRUPT and some systems
78352         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
78353         it's been part of POSIX.1 since day 1 (in 1988).
78354
78355 2000-01-17  Jim Meyering  <meyering@lucent.com>
78356
78357         * lib/interlock: Remove unused file.  Reported by François Pinard.
78358
78359 2000-01-16  Paul Eggert  <eggert@twinsun.com>
78360
78361         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
78362         alert, backslash, formfeed, and vertical tab unnecessarily in
78363         shell quoting style.
78364
78365 2000-01-16  Jim Meyering  <meyering@lucent.com>
78366
78367         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
78368         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
78369         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
78370         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
78371
78372 2000-01-16  Jim Meyering  <meyering@lucent.com>
78373
78374         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
78375         because the latter didn't work.
78376
78377 2000-01-15  Jim Meyering  <meyering@lucent.com>
78378
78379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
78380         (AC_REPLACE_FUNCS): Add memcpy and memset.
78381         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
78382         Add strpbrk.
78383         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
78384
78385 2000-01-12  Jim Meyering  <meyering@lucent.com>
78386
78387         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
78388         (jm_PREREQ): Use it.
78389         (jm_PREREQ_READUTMP): New macro.
78390         (jm_PREREQ): Use it.
78391
78392 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78393
78394         Quote multibyte characters correctly.
78395         * m4/c-bs-a.m4: New file.
78396         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
78397         (jm_PREREQ): Use it.
78398
78399 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78400
78401         * m4/uintmax_t.m4: Port to autoconf 2.13.
78402
78403 2000-01-08  Jim Meyering  <meyering@ascend.com>
78404
78405         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
78406         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
78407
78408 2000-01-04  Jim Meyering  <meyering@ascend.com>
78409
78410         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
78411         jm_STRUCT_DIRENT_D_TYPE.
78412         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
78413         jm_STRUCT_DIRENT_D_INO.
78414         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
78415         jm_STRUCT_UTIMBUF.
78416         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
78417         renamings.
78418         * m4/utime.m4: Likewise.
78419
78420         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
78421         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
78422
78423 2000-01-03  Paul Eggert  <eggert@twinsun.com>
78424
78425         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
78426         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
78427
78428 2000-01-02  Jim Meyering  <meyering@ascend.com>
78429
78430         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
78431         remember if this is necessary.
78432
78433 1999-12-26  Jim Meyering  <meyering@ascend.com>
78434
78435         * m4/jm-macros.m4: Use it here.
78436         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
78437
78438 1999-12-23  Jim Meyering  <meyering@ascend.com>
78439
78440         * m4/jm-macros.m4: Check for clock_gettime (moved from
78441         fileutils/configure.in)
78442         Check for gettimeofday.
78443
78444 1999-12-20  Jim Meyering  <meyering@ascend.com>
78445
78446         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
78447         autoconf-2.14a-1999-12-20.
78448
78449 1999-12-19  Jim Meyering  <meyering@ascend.com>
78450
78451         * m4/lstat-slash.m4: New file.
78452         * m4/jm-macros.m4: Use the new macro:
78453         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78454
78455 1999-12-07  Jim Meyering  <meyering@ascend.com>
78456
78457         * m4/perl.m4: Require that File::Compare be available, too.
78458         Too many systems seem to lack it.
78459
78460         * m4/strftime.m4: Add checks for most of the cpp macros tested in
78461         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
78462
78463 1999-11-18  Paul Eggert  <eggert@twinsun.com>
78464
78465         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
78466         problem with the QNX 4.25 shell, which doesn't propagate exit
78467         status of failed commands inside shell assignments.
78468
78469 1999-11-17  Jim Meyering  <meyering@ascend.com>
78470
78471         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
78472
78473 1999-11-07  Jim Meyering  <meyering@ascend.com>
78474
78475         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
78476
78477 1999-11-06  Jim Meyering  <meyering@ascend.com>
78478
78479         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
78480         * m4/jm-macros.m4 (jm_MACROS): Use it here.
78481
78482 1999-11-05  Jim Meyering  <meyering@ascend.com>
78483
78484         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
78485         configure.in of textutils, fileutils, and sh-utils into this one
78486         (shared between those packages) file.
78487         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
78488         AC_STRUCT_ST_BLKSIZE.
78489
78490 1999-11-03  Jim Meyering  <meyering@ascend.com>
78491
78492         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
78493         of AC_CHECK_TYPE checks includes unistd.h.
78494         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
78495         Suggestion from Akim Demaille.
78496
78497 1999-10-30  Jim Meyering  <meyering@ascend.com>
78498
78499         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
78500         m4-quoted string.
78501         * m4/ls-mntd-fs.m4: Likewise.
78502         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
78503         * m4/jm-winsz1.m4: Likewise.
78504
78505         * m4/const.m4: Remove file, since the fix made it into the experimental
78506         version of autoconf.
78507         * m4/mktime.m4: Likewise.
78508
78509         * m4/check-type.m4: Remove file, now that the latest version of
78510         AC_CHECK_TYPE takes a third arg to specify additional #includes.
78511
78512         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
78513         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
78514         AC_CHECK_TYPE.
78515
78516 1999-10-04  Jim Meyering  <meyering@ascend.com>
78517
78518         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
78519
78520 1999-09-22  Paul Eggert  <eggert@twinsun.com>
78521
78522         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
78523         2.95.1 bug with HP-UX 10.20.
78524
78525 1999-09-17  Jim Meyering  <meyering@ascend.com>
78526
78527         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
78528         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
78529         due to missing strdup (against sh-utils-2.0).
78530
78531 1999-08-29  Jim Meyering  <meyering@ascend.com>
78532
78533         * m4/jm-macros.m4: Require jm_BISON.
78534         * m4/bison.m4: New file.
78535
78536 1999-08-17  Paul Eggert  <eggert@twinsun.com>
78537
78538         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
78539         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
78540
78541 1999-08-05  Jim Meyering  <meyering@ascend.com>
78542
78543         * m4/getline.m4: Rename test file from conftestdata to conftest.data
78544         to avoid conflicts with `conftest' on 8+3 filesystems.
78545         Suggestion from Eli Zaretskii.
78546
78547 1999-08-04  Jim Meyering  <meyering@ascend.com>
78548
78549         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
78550         fileutils and sh-utils (textutils's getline test was inadequate).
78551         (AM_FUNC_GETLINE): Run this test.
78552         (AC_CHECK_FUNCS): Check for getdelim.
78553         Reported by Bob Proulx.
78554
78555 1999-08-02  Jim Meyering  <meyering@ascend.com>
78556
78557         * m4/jm-macros.m4: Add a comment.
78558
78559 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78560
78561         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78562         <inttypes.h> defines strtoumax as a macro (and not as a
78563         function).
78564
78565 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78566
78567         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78568         that we can shift, multiply and divide unsigned long long
78569         values; Ultrix cc can't do it.
78570
78571 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78572
78573         * m4/mktime.m4: New file, which is a preview of what should appear
78574         in the next public autoconf release.
78575
78576 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78577
78578         * m4/lfs.m4: Remove this file.
78579         * m4/largefile.m4: New file.  It contains the old contents of
78580         lfs.m4, except that all names with prefix AC_LFS have been
78581         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78582         compatible with future autoconf versions.  Also, some minor m4
78583         quoting problems have been fixed.
78584
78585 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78586
78587         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78588         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78589         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78590         and simplify the shell code.
78591
78592 1999-08-01  Jim Meyering  <meyering@ascend.com>
78593
78594         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78595         m4.
78596
78597 1999-07-20  Jim Meyering  <meyering@ascend.com>
78598
78599         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78600
78601 1999-07-15  Jim Meyering  <meyering@ascend.com>
78602
78603         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78604
78605 1999-05-22  Jim Meyering  <meyering@ascend.com>
78606
78607         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78608
78609 1999-05-20  Jim Meyering  <meyering@ascend.com>
78610
78611         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78612         Add a colon after each `then' in case $4 is empty.
78613
78614 1999-05-16  Jim Meyering  <meyering@ascend.com>
78615
78616         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78617
78618 1999-05-10  Jim Meyering  <meyering@ascend.com>
78619
78620         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78621
78622         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78623         AC_FUNC_MKTIME.
78624
78625 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78626
78627         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78628
78629 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78630
78631         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78632         not CPPFLAGS, so that linking works correctly in IRIX.
78633
78634 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78635
78636         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78637
78638 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78639
78640         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78641         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78642         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78643         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78644         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78645
78646         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78647
78648 1999-04-20  Jim Meyering  <meyering@ascend.com>
78649
78650         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78651         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78652         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78653
78654 1999-04-18  Jim Meyering  <meyering@ascend.com>
78655
78656         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78657         * m4/jm-macros.m4: Use it.
78658
78659 1999-04-06  Jim Meyering  <meyering@ascend.com>
78660
78661         * m4/strftime.m4: Remove test for %f.
78662
78663 1999-03-29  Jim Meyering  <meyering@ascend.com>
78664
78665         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78666         superset of the AC_TYPE_* checks in the textutils, fileutils,
78667         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78668         AC_TYPE_PID_T.
78669
78670 1999-03-28  Jim Meyering  <meyering@ascend.com>
78671
78672         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78673         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78674         replaced e.g., in the *.sh files of the sh-utils.
78675
78676 1999-03-20  Jim Meyering  <meyering@ascend.com>
78677
78678         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78679         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78680         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78681
78682 1999-03-19  Jim Meyering  <meyering@ascend.com>
78683
78684         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78685
78686 1999-03-12  Jim Meyering  <meyering@ascend.com>
78687
78688         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78689
78690 1999-03-07  Jim Meyering  <meyering@ascend.com>
78691
78692         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78693         declared.
78694
78695 1999-02-17  Jim Meyering  <meyering@ascend.com>
78696
78697         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78698         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78699
78700 1999-02-07  Jim Meyering  <meyering@ascend.com>
78701
78702         * m4/group-member.m4: New file -- extracted from sh-utils'
78703         configure.in.
78704
78705         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78706         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78707
78708 1999-02-06  Jim Meyering  <meyering@ascend.com>
78709
78710         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78711         * m4/fnmatch.m4: Likewise.
78712         * m4/getgroups.m4: Likewise.
78713         * m4/lstat.m4: Likewise.
78714         * m4/malloc.m4: Likewise.
78715         * m4/putenv.m4: Likewise.
78716         * m4/realloc.m4: Likewise.
78717         * m4/regex.m4: Likewise.
78718         * m4/stat.m4: Likewise.
78719         * m4/strftime.m4: Likewise.
78720         Suggestion from Alain Magloire.
78721
78722         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78723         * m4/fnmatch.m4: Likewise.
78724         * m4/getgroups.m4: Likewise.
78725         * m4/getline.m4: Likewise.
78726         * m4/lstat.m4: Likewise.
78727         * m4/malloc.m4: Likewise.
78728         * m4/memcmp.m4: Likewise.
78729         * m4/putenv.m4: Likewise.
78730         * m4/realloc.m4: Likewise.
78731         * m4/regex.m4: Likewise.
78732         * m4/stat.m4: Likewise.
78733         * m4/strftime.m4: Likewise.
78734         Suggestion from Alain Magloire.
78735
78736         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78737         an argument.
78738
78739         * m4/regex.m4: Add a run-time Test for proper operation of
78740         re_compile_pattern.
78741
78742 1999-01-31  Jim Meyering  <meyering@ascend.com>
78743
78744         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78745
78746 1999-01-30  Jim Meyering  <meyering@ascend.com>
78747
78748         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78749
78750         * m4/jm-mktime.m4: Make this a wrapper around the official
78751         AM_FUNC_MKTIME rather than my private copy, now that the official one
78752         is up to date.
78753         * m4/mktime.m4: Remove file.
78754
78755         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78756         * m4/uptime.m4: Likewise.
78757         * m4/uintmax_t.m4: Likewise.
78758
78759 1999-01-28  Jim Meyering  <meyering@ascend.com>
78760
78761         * m4/jm-macros.m4: Use jm_AFS.
78762         * m4/afs.m4: New file (from fileutils' configure.in).
78763
78764         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78765         * m4/chown.m4: Likewise.
78766         * m4/d-ino.m4: Likewise.
78767         * m4/d-type.m4: Likewise.
78768         * m4/fnmatch.m4: Likewise.
78769         * m4/getgroups.m4: Likewise.
78770         * m4/gettext.m4: Likewise.
78771         * m4/jm-mktime.m4: Likewise.
78772         * m4/jm-winsz2.m4: Likewise.
78773         * m4/lcmessage.m4: Likewise.
78774         * m4/ls-mntd-fs.m4: Likewise.
78775         * m4/malloc.m4: Likewise.
78776         * m4/memcmp.m4: Likewise.
78777         * m4/putenv.m4: Likewise.
78778         * m4/realloc.m4: Likewise.
78779         * m4/st_mtim.m4: Likewise.
78780         * m4/strftime.m4: Likewise.
78781
78782 1999-01-16  Jim Meyering  <meyering@ascend.com>
78783
78784         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78785         (ARGMATCH_DIE_DECL): Define.
78786
78787 1999-01-12  Jim Meyering  <meyering@ascend.com>
78788
78789         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78790         Reported by Lars Hecking.
78791
78792 1999-01-10  Jim Meyering  <meyering@ascend.com>
78793
78794         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78795         gross kludge.
78796         * m4/inttypes_h.m4: Likewise.
78797         * m4/lstat.m4: Likewise.
78798         * m4/malloc.m4: Likewise.
78799         * m4/readdir.m4: Likewise.
78800         * m4/realloc.m4: Likewise.
78801         * m4/st_dm_mode.m4: Likewise.
78802         * m4/stat.m4: Likewise.
78803         * m4/utimbuf.m4: Likewise.
78804         * m4/utimes.m4: Likewise.
78805
78806         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78807         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78808         comments in config.h.in are meaningful.
78809
78810         * m4/jm-macros.m4: Require autoconf-2.13 here.
78811
78812         * m4/regex.m4: By default, don't use the included regex.c on systems
78813         with glibc 2.  Suggestion from Uli Drepper.
78814
78815 1999-01-02  Jim Meyering  <meyering@ascend.com>
78816
78817         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78818
78819 1998-12-18  Jim Meyering  <meyering@ascend.com>
78820
78821         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78822         Based on a suggestion from Lars Hecking.
78823
78824 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78825
78826         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78827
78828 1998-11-16  Jim Meyering  <meyering@ascend.com>
78829
78830         * m4/lfs.m4: Double-quote the `uname...` expression.
78831
78832 1998-11-14  Jim Meyering  <meyering@ascend.com>
78833
78834         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78835         * m4/stat.m4: Likewise.
78836
78837 1998-11-03  Jim Meyering  <meyering@ascend.com>
78838
78839         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78840         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78841
78842 1998-10-18  Jim Meyering  <meyering@ascend.com>
78843
78844         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78845
78846 1998-10-17  Jim Meyering  <meyering@ascend.com>
78847
78848         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78849         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78850         calls for those previously hard-coded headers.  Instead, take a new
78851         parameter.
78852         (jm_CHECK_DECLARATIONS): Reflect interface change.
78853         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78854         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78855
78856         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78857
78858 1998-10-14  Jim Meyering  <meyering@ascend.com>
78859
78860         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78861         instead of "TZ=America/Vancouver".  From Paul Eggert.
78862
78863 1998-10-11  Jim Meyering  <meyering@ascend.com>
78864
78865         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78866         This adds a test for a recently added compatibility fix for mktime.c.
78867         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78868
78869 1998-09-27  Jim Meyering  <meyering@ascend.com>
78870
78871         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78872
78873         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78874         ../configure.in, including a change from Gordon Matzigkeit to allow
78875         cross-compiling for the Hurd.
78876
78877         * m4/glibc.m4: New file/macro to test for the GNU C Library
78878         versions 1 and 2.  From Gordon Matzigkeit.
78879         Indent.
78880
78881 1998-09-21  Jim Meyering  <meyering@ascend.com>
78882
78883         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78884
78885 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78886
78887         Port nanosecond-resolution times to UnixWare 2.1.2 and
78888         pedantic Solaris 2.6.
78889
78890         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78891         AC_STRUCT_ST_MTIM.
78892         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78893         Generate name of ns member, instead of just 1 or undef.
78894         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78895
78896 1998-08-15  Jim Meyering  <meyering@ascend.com>
78897
78898         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78899         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78900         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78901         instead of jm_TYPE_SSIZE_T.
78902
78903 1998-08-12  Jim Meyering  <meyering@ascend.com>
78904
78905         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78906
78907 1998-08-02  Jim Meyering  <meyering@ascend.com>
78908
78909         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78910         in acconfig.h manually.
78911
78912 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78913
78914         * m4/st_mtim.m4: New file.
78915
78916 1998-07-28  Jim Meyering  <meyering@ascend.com>
78917
78918         * m4/utimes.m4: Undef stat.
78919
78920 1998-07-25  Jim Meyering  <meyering@ascend.com>
78921
78922         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78923         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78924
78925 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78926
78927         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78928         uid and gid actually remain unchanged.
78929
78930 1998-07-07  Jim Meyering  <meyering@ascend.com>
78931
78932         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78933
78934 1998-07-04  Jim Meyering  <meyering@ascend.com>
78935
78936         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78937         to prove that this macro can be used in packages without regex.c.
78938
78939 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78940
78941         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78942         is to be used.
78943
78944 1998-07-03  Jim Meyering  <meyering@ascend.com>
78945
78946         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78947
78948         * m4/gettext.m4: New file -- from gettext-0.10.35.
78949         * m4/lcmessage.m4: Likewise.
78950         * m4/progtest.m4: Likewise.
78951
78952         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78953         * m4/jm-macros.m4: Require the new macro.
78954
78955 1998-06-29  Jim Meyering  <meyering@ascend.com>
78956
78957         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78958         for the definition of NGROUPS (used in a system header included
78959         by sys/mount.h).
78960
78961 1998-06-28  Jim Meyering  <meyering@ascend.com>
78962
78963         * m4/ls-mntd-fs.m4: New file.
78964         * m4/fstypename.m4: New file.
78965
78966         * m4/jm-macros.m4: Require the new macro.
78967         * m4/jm-glibc-io.m4: New file.
78968
78969 1998-05-19  Jim Meyering  <meyering@ascend.com>
78970
78971         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78972         * m4/lchown.m4: New file.
78973
78974         * m4/Makefile.am.in: New file.
78975         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78976
78977 1998-05-14  Jim Meyering  <meyering@ascend.com>
78978
78979         * m4/Makefile.am (EXTRA_DIST): Add them.
78980         * m4/jm-macros.m4: New file.
78981         * m4/utimbuf.m4: New file.
78982
78983 1998-05-12  Jim Meyering  <meyering@ascend.com>
78984
78985         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78986
78987 1998-05-11  Jim Meyering  <meyering@ascend.com>
78988
78989         * m4/isc-posix.m4: New file.
78990
78991 1998-05-10  Jim Meyering  <meyering@ascend.com>
78992
78993         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78994
78995 1998-05-09  Jim Meyering  <meyering@ascend.com>
78996
78997         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78998         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78999         with automake.
79000
79001         * m4/ssize_t.m4: New file.
79002         * m4/mktime.m4: Remove file -- the new automake has this now.
79003
79004 1998-04-26  Jim Meyering  <meyering@ascend.com>
79005
79006         * m4/assert.m4: New file.
79007         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79008
79009 1998-04-05  Jim Meyering  <meyering@ascend.com>
79010
79011         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79012         (jm_PREREQ): Use it here.
79013
79014 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79015
79016         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79017         in acconfig.h.
79018
79019 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79020
79021         * m4/prereq.m4: New file.
79022         * m4/error.m4: New file.
79023         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79024
79025 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79026
79027         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79028         cache-check for the same variable -- that defeated the purpose of
79029         the test; the test program was never run.  This was a problem only
79030         on systems with losing getline functions -- HP-UX 10.20 is one.
79031         Reported by Bjorn Helgaas.
79032
79033 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79034
79035         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79036
79037 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79038
79039         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79040
79041         * m4/const.m4: New file.  Use an initializer in this declaration
79042         typedef int charset[2]; const charset x;
79043         Reported by Bob Glickstein.
79044
79045 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79046
79047         * m4/chown.m4: Fix reversed types on -1 args to chown.
79048         From Kaveh Ghazi.
79049
79050 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79051
79052         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79053         Add lseek and memchr.
79054
79055         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79056         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79057         have a 20-character limit on names.
79058
79059 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79060
79061         * m4/inttypes_h.m4: New file.
79062         * m4/uintmax_t.m4: New file.
79063         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79064
79065
79066         -----
79067
79068         Local Variables:
79069         coding: utf-8
79070         End:
79071
79072         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79073
79074         Copying and distribution of this file, with or without
79075         modification, are permitted provided the copyright notice
79076         and this notice are preserved.