88875b8ed7a5e0dfc3c45730d67927b00fdf78b6
[gnulib.git] / ChangeLog
1 2011-05-03  Bruno Haible  <bruno@clisp.org>
2
3         Avoid unnecessary compilation units, through conditional dependencies.
4         * modules/accept (Depends-on): Add conditions to the dependencies.
5         * modules/acosl (Depends-on): Likewise.
6         * modules/argz (Depends-on): Likewise.
7         * modules/asinl (Depends-on): Likewise.
8         * modules/atanl (Depends-on): Likewise.
9         * modules/atoll (Depends-on): Likewise.
10         * modules/bind (Depends-on): Likewise.
11         * modules/btowc (Depends-on): Likewise.
12         * modules/canonicalize-lgpl (Depends-on): Likewise.
13         * modules/ceil (Depends-on): Likewise.
14         * modules/ceilf (Depends-on): Likewise.
15         * modules/ceill (Depends-on): Likewise.
16         * modules/chdir-long (Depends-on): Likewise.
17         * modules/chown (Depends-on): Likewise.
18         * modules/close (Depends-on): Likewise.
19         * modules/connect (Depends-on): Likewise.
20         * modules/cosl (Depends-on): Likewise.
21         * modules/dirfd (Depends-on): Likewise.
22         * modules/dprintf (Depends-on): Likewise.
23         * modules/dprintf-posix (Depends-on): Likewise.
24         * modules/error (Depends-on): Likewise.
25         * modules/euidaccess (Depends-on): Likewise.
26         * modules/expl (Depends-on): Likewise.
27         * modules/faccessat (Depends-on): Likewise.
28         * modules/fchdir (Depends-on): Likewise.
29         * modules/fclose (Depends-on): Likewise.
30         * modules/fcntl (Depends-on): Likewise.
31         * modules/fdopendir (Depends-on): Likewise.
32         * modules/fflush (Depends-on): Likewise.
33         * modules/floor (Depends-on): Likewise.
34         * modules/floorf (Depends-on): Likewise.
35         * modules/floorl (Depends-on): Likewise.
36         * modules/fnmatch (Depends-on): Likewise.
37         * modules/fopen (Depends-on): Likewise.
38         * modules/fprintf-posix (Depends-on): Likewise.
39         * modules/frexp (Depends-on): Likewise.
40         * modules/frexp-nolibm (Depends-on): Likewise.
41         * modules/frexpl (Depends-on): Likewise.
42         * modules/frexpl-nolibm (Depends-on): Likewise.
43         * modules/fseek (Depends-on): Likewise.
44         * modules/fsusage (Depends-on): Likewise.
45         * modules/ftell (Depends-on): Likewise.
46         * modules/ftello (Depends-on): Likewise.
47         * modules/futimens (Depends-on): Likewise.
48         * modules/getcwd (Depends-on): Likewise.
49         * modules/getcwd-lgpl (Depends-on): Likewise.
50         * modules/getdelim (Depends-on): Likewise.
51         * modules/getdomainname (Depends-on): Likewise.
52         * modules/getgroups (Depends-on): Likewise.
53         * modules/gethostname (Depends-on): Likewise.
54         * modules/getline (Depends-on): Likewise.
55         * modules/getlogin_r (Depends-on): Likewise.
56         * modules/getopt-posix (Depends-on): Likewise.
57         * modules/getpeername (Depends-on): Likewise.
58         * modules/getsockname (Depends-on): Likewise.
59         * modules/getsockopt (Depends-on): Likewise.
60         * modules/getsubopt (Depends-on): Likewise.
61         * modules/getusershell (Depends-on): Likewise.
62         * modules/glob (Depends-on): Likewise.
63         * modules/grantpt (Depends-on): Likewise.
64         * modules/iconv_open (Depends-on): Likewise.
65         * modules/iconv_open-utf (Depends-on): Likewise.
66         * modules/inet_ntop (Depends-on): Likewise.
67         * modules/inet_pton (Depends-on): Likewise.
68         * modules/ioctl (Depends-on): Likewise.
69         * modules/isapipe (Depends-on): Likewise.
70         * modules/isfinite (Depends-on): Likewise.
71         * modules/isinf (Depends-on): Likewise.
72         * modules/lchown (Depends-on): Likewise.
73         * modules/ldexpl (Depends-on): Likewise.
74         * modules/link (Depends-on): Likewise.
75         * modules/linkat (Depends-on): Likewise.
76         * modules/listen (Depends-on): Likewise.
77         * modules/logl (Depends-on): Likewise.
78         * modules/lstat (Depends-on): Likewise.
79         * modules/mbrlen (Depends-on): Likewise.
80         * modules/mbrtowc (Depends-on): Likewise.
81         * modules/mbsinit (Depends-on): Likewise.
82         * modules/mbsnrtowcs (Depends-on): Likewise.
83         * modules/mbsrtowcs (Depends-on): Likewise.
84         * modules/mbtowc (Depends-on): Likewise.
85         * modules/memcmp (Depends-on): Likewise.
86         * modules/mkdir (Depends-on): Likewise.
87         * modules/mkdtemp (Depends-on): Likewise.
88         * modules/mkfifo (Depends-on): Likewise.
89         * modules/mkfifoat (Depends-on): Likewise.
90         * modules/mknod (Depends-on): Likewise.
91         * modules/mkostemp (Depends-on): Likewise.
92         * modules/mkostemps (Depends-on): Likewise.
93         * modules/mkstemp (Depends-on): Likewise.
94         * modules/mkstemps (Depends-on): Likewise.
95         * modules/mktime (Depends-on): Likewise.
96         * modules/nanosleep (Depends-on): Likewise.
97         * modules/open (Depends-on): Likewise.
98         * modules/openat (Depends-on): Likewise.
99         * modules/perror (Depends-on): Likewise.
100         * modules/poll (Depends-on): Likewise.
101         * modules/popen (Depends-on): Likewise.
102         * modules/posix_spawn (Depends-on): Likewise.
103         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
104         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
105         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
106         * modules/posix_spawnp (Depends-on): Likewise.
107         * modules/pread (Depends-on): Likewise.
108         * modules/printf-posix (Depends-on): Likewise.
109         * modules/ptsname (Depends-on): Likewise.
110         * modules/putenv (Depends-on): Likewise.
111         * modules/pwrite (Depends-on): Likewise.
112         * modules/readline (Depends-on): Likewise.
113         * modules/readlink (Depends-on): Likewise.
114         * modules/readlinkat (Depends-on): Likewise.
115         * modules/recv (Depends-on): Likewise.
116         * modules/recvfrom (Depends-on): Likewise.
117         * modules/regex (Depends-on): Likewise.
118         * modules/remove (Depends-on): Likewise.
119         * modules/rename (Depends-on): Likewise.
120         * modules/renameat (Depends-on): Likewise.
121         * modules/rmdir (Depends-on): Likewise.
122         * modules/round (Depends-on): Likewise.
123         * modules/roundf (Depends-on): Likewise.
124         * modules/roundl (Depends-on): Likewise.
125         * modules/rpmatch (Depends-on): Likewise.
126         * modules/select (Depends-on): Likewise.
127         * modules/send (Depends-on): Likewise.
128         * modules/sendto (Depends-on): Likewise.
129         * modules/setenv (Depends-on): Likewise.
130         * modules/setlocale (Depends-on): Likewise.
131         * modules/setsockopt (Depends-on): Likewise.
132         * modules/shutdown (Depends-on): Likewise.
133         * modules/sigaction (Depends-on): Likewise.
134         * modules/signbit (Depends-on): Likewise.
135         * modules/sigprocmask (Depends-on): Likewise.
136         * modules/sinl (Depends-on): Likewise.
137         * modules/sleep (Depends-on): Likewise.
138         * modules/snprintf (Depends-on): Likewise.
139         * modules/snprintf-posix (Depends-on): Likewise.
140         * modules/socket (Depends-on): Likewise.
141         * modules/sprintf-posix (Depends-on): Likewise.
142         * modules/sqrtl (Depends-on): Likewise.
143         * modules/stat (Depends-on): Likewise.
144         * modules/strchrnul (Depends-on): Likewise.
145         * modules/strdup-posix (Depends-on): Likewise.
146         * modules/strerror (Depends-on): Likewise.
147         * modules/strerror_r-posix (Depends-on): Likewise.
148         * modules/strndup (Depends-on): Likewise.
149         * modules/strnlen (Depends-on): Likewise.
150         * modules/strptime (Depends-on): Likewise.
151         * modules/strsep (Depends-on): Likewise.
152         * modules/strsignal (Depends-on): Likewise.
153         * modules/strstr-simple (Depends-on): Likewise.
154         * modules/strtod (Depends-on): Likewise.
155         * modules/strtoimax (Depends-on): Likewise.
156         * modules/strtok_r (Depends-on): Likewise.
157         * modules/strtoumax (Depends-on): Likewise.
158         * modules/symlink (Depends-on): Likewise.
159         * modules/symlinkat (Depends-on): Likewise.
160         * modules/tanl (Depends-on): Likewise.
161         * modules/tcgetsid (Depends-on): Likewise.
162         * modules/tmpfile (Depends-on): Likewise.
163         * modules/trunc (Depends-on): Likewise.
164         * modules/truncf (Depends-on): Likewise.
165         * modules/truncl (Depends-on): Likewise.
166         * modules/uname (Depends-on): Likewise.
167         * modules/unlink (Depends-on): Likewise.
168         * modules/unlockpt (Depends-on): Likewise.
169         * modules/unsetenv (Depends-on): Likewise.
170         * modules/usleep (Depends-on): Likewise.
171         * modules/utimensat (Depends-on): Likewise.
172         * modules/vasprintf (Depends-on): Likewise.
173         * modules/vdprintf (Depends-on): Likewise.
174         * modules/vdprintf-posix (Depends-on): Likewise.
175         * modules/vfprintf-posix (Depends-on): Likewise.
176         * modules/vprintf-posix (Depends-on): Likewise.
177         * modules/vsnprintf (Depends-on): Likewise.
178         * modules/vsnprintf-posix (Depends-on): Likewise.
179         * modules/vsprintf-posix (Depends-on): Likewise.
180         * modules/wcrtomb (Depends-on): Likewise.
181         * modules/wcscasecmp (Depends-on): Likewise.
182         * modules/wcscspn (Depends-on): Likewise.
183         * modules/wcsdup (Depends-on): Likewise.
184         * modules/wcsncasecmp (Depends-on): Likewise.
185         * modules/wcsnrtombs (Depends-on): Likewise.
186         * modules/wcspbrk (Depends-on): Likewise.
187         * modules/wcsrtombs (Depends-on): Likewise.
188         * modules/wcsspn (Depends-on): Likewise.
189         * modules/wcsstr (Depends-on): Likewise.
190         * modules/wcstok (Depends-on): Likewise.
191         * modules/wcswidth (Depends-on): Likewise.
192         * modules/wctob (Depends-on): Likewise.
193         * modules/wctomb (Depends-on): Likewise.
194         * modules/wctype (Depends-on): Likewise.
195         * modules/wcwidth (Depends-on): Likewise.
196         * modules/write (Depends-on): Likewise.
197
198 2011-05-03  Bruno Haible  <bruno@clisp.org>
199
200         Support for conditional dependencies.
201         * doc/gnulib.texi (Module description): Document the syntax of
202         conditional dependencies.
203         * gnulib-tool: New option --conditional-dependencies.
204         (func_usage): Document it.
205         (cond_dependencies): New variable.
206         (func_get_automake_snippet_conditional,
207         func_get_automake_snippet_unconditional): New functions, extracted from
208         func_get_automake_snippet.
209         (func_get_automake_snippet): Use them.
210         (sed_first_32_chars): New variable.
211         (func_module_shellfunc_name): New function.
212         (func_module_shellvar_name): New function.
213         (func_module_conditional_name): New function.
214         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
215         func_cond_module_condition): New functions.
216         (func_modules_transitive_closure): Add support for conditional
217         dependencies.
218         (func_emit_lib_Makefile_am): For a conditional module, enclose the
219         conditional automake snippet in an automake conditional.
220         (func_emit_autoconf_snippets): Emit shell functions that contain the
221         code for conditional modules.
222         (func_import, func_create_testdir): Update specification.
223
224 2011-05-03  Eric Blake  <eblake@redhat.com>
225
226         test-getaddrinfo: report error information
227         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
228
229 2011-05-03  Jim Meyering  <meyering@redhat.com>
230
231         bootstrap: avoid build failure when $GZIP is set
232         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
233         program name.  If defined at all, it is supposed to list gzip options.
234         Reported by Alan Curry in http://debbugs.gnu.org/8609
235
236 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
237
238         readme-release: new module with release instructions
239         * modules/readme-release: New module.
240         * top/README-release: New file, from coreutils, grep, diffutils.
241         * MODULES.html.sh (Support for maintaining and releasing): Add it.
242
243 2011-05-02  Eric Blake  <eblake@redhat.com>
244
245         fflush: also replace fclose when fixing fflush
246         * modules/fflush (Depends-on): Add fclose.
247         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
248         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
249         memstreams with no backing fd.
250         * doc/posix-functions/fclose.texi (fclose): Document the use of
251         fflush module to fix the bug.
252         * tests/test-fclose.c (main): Relax test when fclose is used in
253         isolation.
254
255         fclose: add some tests
256         * modules/fclose-tests: New test module.
257         * tests/test-fclose.c: New file.
258         * doc/posix-functions/fclose.texi (fclose): Document the bug.
259
260         fclose: reduced dependencies
261         * modules/fclose (Depends-on): Switch from fflush/fseeko to
262         simpler lseek.
263         * lib/fclose.c (rpl_fclose): Likewise.
264         Reported by Simon Josefsson.
265
266         exit: drop remaining clients
267         * modules/argmatch (Depends-on): Replace exit with stdlib.
268         * modules/copy-file (Depends-on): Likewise.
269         * modules/execute (Depends-on): Likewise.
270         * modules/exitfail (Depends-on): Likewise.
271         * modules/obstack (Depends-on): Likewise.
272         * modules/pagealign_alloc (Depends-on): Likewise.
273         * modules/pipe-filter-gi (Depends-on): Likewise.
274         * modules/pipe-filter-ii (Depends-on): Likewise.
275         * modules/savewd (Depends-on): Likewise.
276         * modules/spawn-pipe (Depends-on): Likewise.
277         * modules/wait-process (Depends-on): Likewise.
278         * modules/xsetenv (Depends-on): Likewise.
279         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
280         * modules/git-merge-changelog (Depends-on): Likewise.
281         * modules/long-options (Depends-on): Likewise.
282         * modules/pt_chown (Depends-on): Likewise.
283         * modules/sysexits (Depends-on): Likewise.
284
285         freading: relax license from LGPLv3+ to LGPLv2+
286         * modules/freading (License): Relax LGPL version.
287
288 2011-05-02  Bruno Haible  <bruno@clisp.org>
289
290         fchdir: Remove unused dependencies.
291         * modules/fchdir (Depends-on): Remove include_next.
292
293 2011-05-02  Bruno Haible  <bruno@clisp.org>
294
295         gnulib-tool: Refactor.
296         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
297         from func_emit_autoconf_snippets.
298         (func_emit_autoconf_snippets): Use it.
299
300 2011-05-02  Simon Josefsson  <simon@josefsson.org>
301
302         * NEWS: Document removal of 'exit'.
303         * modules/exit: Remove file.
304
305 2011-05-01  Bruno Haible  <bruno@clisp.org>
306
307         Update DEPENDENCIES.
308         * DEPENDENCIES (gettext): Recommend the newest release.
309         Reported by Simon Josefsson.
310
311 2011-05-01  Bruno Haible  <bruno@clisp.org>
312
313         gnulib-tool: Reduce code duplication.
314         * gnulib-tool (func_emit_autoconf_snippets): New function.
315         (func_import, func_create_testdir): Use it.
316
317 2011-04-30  Eric Blake  <eblake@redhat.com>
318
319         fclose: don't fail on non-seekable input stream
320         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
321         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
322         since fflush is allowed to fail in that case.
323
324 2011-04-30  Bruno Haible  <bruno@clisp.org>
325
326         dup3: cleanup
327         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
328
329 2011-04-30  Bruno Haible  <bruno@clisp.org>
330
331         netdb: Make it work in C++ mode.
332         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
333         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
334         module.
335         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
336         gl_MODULE_INDICATOR_FOR_TESTS.
337         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
338         * modules/netdb-c++-tests: New file.
339         * tests/test-netdb-c++.cc: New file.
340
341 2011-04-30  Bruno Haible  <bruno@clisp.org>
342
343         New modules 'vfscanf', 'vscanf'.
344         * modules/vfscanf: New file.
345         * modules/vscanf: New file.
346         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
347         here.
348         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
349         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
350
351 2011-04-30  Bruno Haible  <bruno@clisp.org>
352
353         passfd: Add comments.
354         * lib/passfd.c: Add comments about platforms.
355
356 2011-04-30  Bruno Haible  <bruno@clisp.org>
357
358         sys_uio: Make <sys/uio.h> self-contained.
359         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
360         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
361
362 2011-04-30  Bruno Haible  <bruno@clisp.org>
363
364         sys_socket: Ensure 'struct iovec' definition.
365         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
366         <sys/socket.h>.
367         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
368
369 2011-04-30  Bruno Haible  <bruno@clisp.org>
370
371         sys_uio: Protect definition of 'struct iovec'.
372         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
373         it as a C struct.
374
375 2011-04-30  Bruno Haible  <bruno@clisp.org>
376
377         manywarnings: fix indentation
378         * m4/manywarnings.m4: Indent by 2 spaces consistently.
379
380 2011-04-30  Pádraig Brady <P@draigBrady.com>
381
382         manywarnings: add -Wno-missing-field-initializers if needed.
383         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
384         option if it's needed to allow initialization with { 0, }
385
386 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
387
388         announce-gen: cosmetic improvement
389         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
390
391 2011-04-29  Jim Meyering  <meyering@redhat.com>
392
393         vc-list-files: indent with spaces, not TABs
394         * build-aux/vc-list-files: Convert leading TABs to spaces,
395         to match the style of most other files in gnulib.
396
397         announce-gen: indent with spaces, not TABs
398         * build-aux/announce-gen: Convert all TABs to spaces, to match
399         the style of most other files in gnulib.
400
401 2011-04-29  Eric Blake  <eblake@redhat.com>
402
403         quotearg: avoid uninitialized variable use
404         * lib/quotearg.c (quoting_options_from_style): Initialize
405         remaining fields, and ensure that custom styles are only used via
406         quoting_options rather than quoting_style.
407
408 2011-04-29  Jim Meyering  <meyering@redhat.com>
409
410         maint.mk: remove unused VC-tag variable
411         * top/maint.mk (VC-tag): Remove unused variable.
412
413 2011-04-29  Bruno Haible  <bruno@clisp.org>
414
415         netdb: fix gai_strerror replacements
416         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
417         * modules/netdb: Substitute it.
418
419 2011-04-29  Jim Meyering  <meyering@redhat.com>
420
421         test-getcwd.c: avoid new set-but-not-used warning
422         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
423         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
424         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
425         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
426
427         test-hash.c: avoid a new shadowing warning
428         * tests/test-hash.c (main): Don't shadow "dup".
429
430 2011-04-28  Eric Blake  <eblake@redhat.com>
431
432         getaddrinfo: fix gai_strerror signature
433         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
434         and work around mingw with UNICODE defined.
435         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
436         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
437         * modules/netdb (Makefile.am): Substitute it.
438         * lib/netdb.in.h (gai_strerror): Declare replacement.
439         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
440         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
441         the fix.
442
443         getsockopt: avoid compiler warning
444         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
445         Reported by Matthias Bolte.
446
447         tests: drop unused link dependency
448         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
449         * modules/dirent-safer-tests (Makefile.am): Likewise.
450         * modules/fdopendir-tests (Makefile.am): Likewise.
451         * modules/mkfifoat-tests (Makefile.am): Likewise.
452         * modules/openat-safer-tests (Makefile.am): Likewise.
453         * modules/openat-tests (Makefile.am): Likewise.
454         * modules/readlinkat-tests (Makefile.am): Likewise.
455         * modules/symlinkat-tests (Makefile.am): Likewise.
456         * modules/linkat-tests (Makefile.am): Likewise.
457         (Depends-on): Switch to filenamecat-lgpl.
458         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
459         LIBINTL.
460         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
461         * tests/test-linkat.c (main): Don't require xalloc.
462
463         hash, mgetgroups: drop xalloc dependency
464         * lib/hash.c (includes): Adjust includes.
465         * lib/mgetgroups.c (includes): Likewise.
466         (xgetgroups): Move...
467         * lib/xgetgroups.c: ...to new file.
468         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
469         * modules/xgetgroups: New file, split from...
470         * modules/mgetgroups: ...here.
471         (Depends-on): Add xalloc-oversized.
472         * modules/hash (Depends-on): Likewise.
473         * modules/hash-tests (Depends-on): Drop xalloc.
474         (test_hash_LDADD): Drop unused library.
475         * tests/test-hash.c (main): Break xalloc dependency.
476         (includes): Drop unused include.
477
478         xalloc-oversized: new module
479         * modules/xalloc-oversized: New module.
480         * modules/xalloc (Depends-on): Add it.
481         * lib/xalloc.h (xalloc_oversized): Move...
482         * lib/xalloc-oversized.h: ...into new file.
483
484         utimecmp: drop dependency on xmalloc
485         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
486         due to memory pressure.
487         * modules/utimecmp (Depends-on): Drop xalloc.
488
489 2011-04-27  Eric Blake  <eblake@redhat.com>
490
491         getcwd: fix mingw bugs
492         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
493         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
494         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
495
496 2011-04-27  Bruno Haible  <bruno@clisp.org>
497
498         mkstemps: Ensure declaration on MacOS X 10.5.
499         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
500         * doc/glibc-functions/mkstemps.texi: Document header file problem on
501         MacOS X.
502
503 2011-04-27  Bruno Haible  <bruno@clisp.org>
504
505         mkstemp: More documentation.
506         * doc/posix-functions/mkstemp.texi: Document header file problem on
507         MacOS X.
508
509 2011-04-27  Bruno Haible  <bruno@clisp.org>
510
511         mkstemp: Tweak configure message when cross-compiling.
512         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
513         result as a guess.
514
515 2011-04-27  Bruno Haible  <bruno@clisp.org>
516
517         clean-temp: Clarify what it does.
518         * lib/clean-temp.h: Add more comments.
519         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
520         module.
521         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
522         * doc/glibc-functions/mkstemps.texi: Likewise.
523         * doc/glibc-functions/mkostemps.texi: Likewise.
524
525 2011-04-27  Eric Blake  <eblake@redhat.com>
526
527         fchdir: avoid extra chdir and fix test
528         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
529         getcwd-lgpl.
530         * lib/fchdir.c (get_name): Any absolute name will do; it does not
531         have to be canonical.
532         (canonicalize_file_name): Drop unused macro.
533         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
534
535         filenamecat-lgpl: fix licence
536         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
537         when it was first created.
538
539         linkat, renameat: add missing dependency
540         * modules/linkat (Depends-on): Require getcwd-lgpl.
541         * modules/renameat (Depends-on): Likewise.
542
543         tests: reduce dependencies
544         * tests/test-linkat.c (main): Use lighter-weight getcwd.
545         * tests/test-renameat.c (main): Likewise.
546         * modules/linkat-tests (Depends-on): Relax dependency.
547         * modules/renameat-tests (Depends-on): Likewise.
548         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
549         dependency explicit.
550
551         save-cwd: reduce default dependency
552         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
553         * lib/save-cwd.c: Update comments.
554         * NEWS: Document the semantic change.
555
556         getcwd: enhance tests
557         * tests/test-getcwd-lgpl.c: New file, taken from...
558         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
559         repeat long path stress tests from m4 probe.
560         * modules/getcwd-lgpl-tests: New module.
561         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
562         * m4/getcwd-abort-bug.m4: Update comment.
563         * m4/getcwd-path-max.m4: Likewise.
564
565         getcwd-lgpl: new module
566         * modules/getcwd-lgpl: New module.
567         * lib/getcwd-lgpl.c: New file.
568         * doc/posix-functions/getcwd.texi (getcwd): Document it.
569         * MODULES.html.sh (lacking POSIX:2008): Likewise.
570         * modules/getcwd (configure.ac): Set C witness.
571         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
572
573         getcwd: tweak comments
574         * m4/getcwd-abort-bug.m4: Fix comments.
575         * m4/getcwd-path-max.m4: Likewise.
576         * m4/getcwd.m4: Likewise.
577
578 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
579         and Eric Blake  <eblake@redhat.com>
580
581         mkstemp: replace if system version uses wrong permissions
582         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
583         read/write mode bits set in file created by mkstemp.
584         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
585
586 2011-04-27  Eric Blake  <eblake@redhat.com>
587
588         passfd: avoid compiler warning
589         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
590         Reported by Laine Stump.
591
592 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
593
594         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
595         required by the NetBSD (and perhaps other 4.4BSD derived) join.
596
597 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
598         and Eric Blake  <eblake@redhat.com>
599
600         mkstemp: mention clean-temp module
601         * lib/mkstemp.c: Add comment.
602         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
603
604 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
605
606         inttypes: also provide default values for 32-bit tests
607         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
608         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
609
610 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
611
612         strtoumax: remove dependency on strtoimax
613         This is like the strtoull change of yesterday.
614         * modules/strtoumax (Files): Add lib/strtoimax.c.
615         (Depends-on): Remove strtoimax and add verify.
616
617         inttypes-incomplete: new module
618         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
619         all but the PRI* and SCN* parts of gl_INTTYPES_H.
620         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
621         of gl_INTTYPES_H.
622         (gl_INTTYPES_H): Rewrite in terms of these new macros.
623         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
624         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
625         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
626         * modules/strtoumax, modules/xstrtol (Depends-on):
627         Depend on inttypes-incomplete, not inttypes.
628         * modules/inttypes-incomplete: New module, containing the contents
629         of the old modules/inttypes module, except that the Files: section
630         omits m4/inttypes-pri.m4, and the configure.ac section invokes
631         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
632         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
633         (Depends-on): Depend only on inttypes-incomplete.
634         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
635
636         inttypes: omit now-redundant strtoimax and strtoumax work
637         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
638         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
639
640         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
641         This supports apps that need pointers to strtoimax and strtoumax,
642         and ports to HP-UX 11.00 64.bit, which has macros that expand to
643         nonexistent functions.  See
644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
645         et seq.
646         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
647         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
648         a macro.
649         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
650
651 2011-04-25  Simon Josefsson  <simon@josefsson.org>
652
653         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
654
655 2011-04-25  Bruno Haible  <bruno@clisp.org>
656
657         strtol, strtoul: Mark modules as obsolete.
658         * modules/strtol (Status, Notice): New sections.
659         * modules/strtoul (Status, Notice): New sections.
660
661 2011-04-25  Bruno Haible  <bruno@clisp.org>
662
663         strtod: Remove check for strtod, unless supporting old platforms.
664         * modules/strtod-obsolete: New file.
665         * m4/strtod-obsolete.m4: New file.
666         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
667         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
668         * modules/strtod (Depends-on): Add strtod-obsolete.
669         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
670
671 2011-04-25  Bruno Haible  <bruno@clisp.org>
672
673         strcase: Make module obsolete.
674         * modules/strcase (Status, Notice): New sections.
675
676 2011-04-25  Bruno Haible  <bruno@clisp.org>
677
678         dup2: Remove check for dup2, unless supporting old obsolete platforms.
679         * modules/dup2-obsolete: New file.
680         * m4/dup2-obsolete.m4: New file.
681         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
682         gl_FUNC_DUP2_OBSOLETE is not also defined.
683         * modules/dup2 (Depends-on): Add dup2-obsolete.
684         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
685
686 2011-04-25  Bruno Haible  <bruno@clisp.org>
687
688         strnlen: Avoid memchr related link error on old obsolete platforms.
689         * modules/memchr-obsolete: New file.
690         * m4/memchr-obsolete.m4: New file.
691         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
692         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
693         * modules/memchr (Depends-on): Add memchr-obsolete.
694         * modules/strnlen (Depends-on): Likewise.
695         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
696
697 2011-04-25  Jim Meyering  <meyering@redhat.com>
698
699         maint.mk: makefile_at_at_check extend and clean up
700         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
701         in addition to */Makefile.am.
702         Exempt legitimate uses of @VAR@ notation, e.g.,
703         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
704         Remove obsolete coreutils-specific comment.
705         Prompted by discussion here:
706         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
707
708 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
709
710         strtoul: remove dependency on strtol
711         This is so that 'configure' need not check for strtol merely because
712         the application needs strtoul.
713         * modules/strtoul (Files): Add lib/strtol.c.
714         (Depends-on): Remove strtol.
715
716         strtoull: remove dependency on strtoul
717         This is like the strtoll change.
718         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
719         (Depends-on): Remove strtoul.
720
721         strtoll: remove dependency on strtol
722         This is so that 'configure' need not check for strtol merely because
723         the application needs strtoll.
724         * modules/strtoll (Files): Add lib/strtol.c.
725         (Depends-on): Remove strtol.
726
727 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
728
729         inttypes: Move some configure check to module 'imaxdiv'.
730         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
731         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
732         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
733
734 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
735
736         inttypes: Move some configure check to module 'imaxabs'.
737         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
738         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
739         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
740
741 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
742
743         inttypes: Remove configure tests that are not needed since 2009-12-31.
744         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
745         gl_cv_header_working_inttypes_h.
746
747 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
748
749         * modules/strnlen (Depends-on): Remove memchr.
750         The strnlen implementation doesn't need the memchr module's fixes; see
751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
752
753         strtol: remove dependency on wchar
754         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
755         * modules/strtol (Depends-on): Remove wchar.
756
757 2011-04-21  Eric Blake  <eblake@redhat.com>
758
759         passfd: fix test regression on Linux
760         * modules/passfd-tests (configure.ac): Correct socketpair check.
761
762         passfd: speed up configure and drop unused code
763         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
764         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
765         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
766         Instead of probing at configure for unix_scm_rights_bsd44_way,
767         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
768         check to a struct member probe.
769         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
770         (sendfd, recvfd): Update preprocessor checks.
771         * modules/passfd (Files): Reflect rename, and drop unused file.
772         (Depends-on): Drop unused dependency.
773
774         passfd: allow compilation on mingw
775         * modules/sys_socket (Depends-on): Add sys_uio.
776         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
777         iovec and a minimal struct msghdr.
778         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
779         * tests/test-sys_socket.c (main): Enhance test.
780         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
781         guaranteed to provide what we need.
782         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
783         * modules/passfd-tests (Depends-on): Add sys_wait.
784         * tests/test-passfd.c (main): Skip test on mingw, for now.
785         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
786         partial 'struct msghdr' implementation.
787
788         sys_uio: new module
789         * modules/sys_uio: New module.
790         * modules/sys_uio-tests: Likewise.
791         * lib/sys_uio.in.h: New file.
792         * m4/sys_uio_h.m4: Likewise.
793         * tests/test-sys_uio.c: Likewise.
794         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
795         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
796
797 2011-04-20  Jim Meyering  <meyering@redhat.com>
798
799         useless-if-before-free: avoid false-positive
800         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
801         disjunct so that it too requires a terminating ";".  Without that,
802         this script would identify as useless one statement from gcc that
803         was not:
804           if (aligned_ptr)
805             free (((void **) aligned_ptr) [-1]);
806
807 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
808
809         doc: update users.txt.
810         * users.txt: Add barcode.
811
812 2011-04-19  Bruno Haible  <bruno@clisp.org>
813
814         ioctl: Remove link dependency on native Windows.
815         * lib/fd-hook.h: Renamed from lib/close-hook.h.
816         (gl_close_fn, gl_ioctl_fn): New types.
817         (struct fd_hook): Renamed from struct close_hook. Change type of
818         private_close_fn field. Add private_ioctl_fn field.
819         (close_hook_fn): Add parameter for primary close method.
820         (execute_close_hooks, execute_all_close_hooks): Likewise.
821         (ioctl_hook_fn): New type.
822         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
823         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
824         argument.
825         (unregister_fd_hook): Renamed from unregister_close_hook.
826         * lib/fd-hook.c: Renamed from lib/close-hook.c.
827         Don't include <unistd.h>.
828         (close): Remove undef.
829         (anchor): Update.
830         (execute_close_hooks): Add argument for primary close method.
831         (execute_all_close_hooks): Likewise.
832         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
833         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
834         argument. Allow each argument to be NULL.
835         (unregister_fd_hook): Renamed from unregister_close_hook.
836         * lib/close.c (rpl_close): Pass 'close' function pointer to
837         execute_all_close_hooks.
838         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
839         (primary_ioctl): New function.
840         (ioctl): Don't call ioctlsocket here. Instead, call
841         execute_all_ioctl_hooks.
842         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
843         close method.
844         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
845         (fd_sockets_hook): Renamed from close_sockets_hook.
846         (gl_sockets_startup, gl_sockets_cleanup): Update.
847         * modules/fd-hook: Renamed from modules/close-hook. Update.
848         * modules/close (Depends-on): Add fd-hook, remove close-hook.
849         * modules/sockets (Depends-on): Likewise.
850         * modules/ioctl (Depends-on): Add fd-hook.
851         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
852         GNULIB_SOCKET.
853
854 2011-04-19  Bruno Haible  <bruno@clisp.org>
855
856         Move the support of O_NONBLOCK in open() to the 'open' module.
857         * modules/nonblocking (Depends-on): Remove 'open'.
858         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
859         gl_cv_have_open_O_NONBLOCK.
860         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
861         O_NONBLOCK support.
862         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
863
864 2011-04-17  Bruno Haible  <bruno@clisp.org>
865
866         pipe2: Simplify code.
867         * lib/pipe2.c (pipe2): Reduce code duplication.
868
869 2011-04-17  Bruno Haible  <bruno@clisp.org>
870
871         nonblocking: Add comment.
872         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
873
874 2011-04-17  Bruno Haible  <bruno@clisp.org>
875
876         nonblocking: Add tests for sockets.
877         * tests/test-nonblocking-socket.sh: New file.
878         * tests/test-nonblocking-socket-main.c: New file.
879         * tests/test-nonblocking-socket-child.c: New file.
880         * tests/test-nonblocking-socket.h: New file.
881         * tests/socket-server.h: New file.
882         * tests/socket-client.h: New file.
883         * modules/nonblocking-socket-tests: New file.
884         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
885
886 2011-04-17  Bruno Haible  <bruno@clisp.org>
887
888         nonblocking: Add tests for pipes.
889         * tests/test-nonblocking-pipe.sh: New file.
890         * tests/test-nonblocking-pipe-main.c: New file.
891         * tests/test-nonblocking-pipe-child.c: New file.
892         * tests/test-nonblocking-pipe.h: New file.
893         * tests/test-nonblocking-writer.h: New file.
894         * tests/test-nonblocking-reader.h: New file.
895         * tests/test-nonblocking-misc.h: New file.
896         * modules/nonblocking-pipe-tests: New file.
897         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
898
899 2011-04-16  Bruno Haible  <bruno@clisp.org>
900
901         gettext: Clarify the needed programmer actions.
902         * modules/gettext (Notice): New field.
903         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
904
905 2011-04-16  Bruno Haible  <bruno@clisp.org>
906
907         strchrnul: Tweak last commit.
908         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
909         bug.
910         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
911         as in _GL_FUNCDECL_SYS.
912         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
913         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
914
915 2011-04-15  Eric Blake  <eblake@redhat.com>
916
917         strchrnul: work around cygwin bug
918         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
919         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
921         * modules/string (Makefile.am): Substitute it.
922         * lib/string.in.h (strchrnul): Use it.
923
924 2011-04-15  Bruno Haible  <bruno@clisp.org>
925
926         Don't require lib/stdio-write.c when only module 'stdio' is used.
927         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
928         invocation.
929         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
930
931 2011-04-14  Bruno Haible  <bruno@clisp.org>
932
933         Support non-blocking pipe I/O in read() on native Windows.
934         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
935         (read): New declaration.
936         * lib/read.c: New file.
937         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
938         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
939         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
940         vscanf): New declarations.
941         * lib/stdio-read.c: New file.
942         * m4/read.m4: New file.
943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
944         REPLACE_READ.
945         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
946         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
947         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
948         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
949         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
950         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
951         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
952         * modules/read: New file.
953         * modules/nonblocking (Files): Add lib/stdio-read.c.
954         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
955         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
956         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
957         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
958         * modules/pread (Depends-on): Add read.
959         * modules/safe-read (Depends-on): Likewise.
960         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
961         gets, scanf, vfscanf, vscanf): Verify signatures.
962         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
963         problem with non-blocking pipes.
964         * doc/posix-functions/fgetc.texi: Likewise.
965         * doc/posix-functions/fgets.texi: Likewise.
966         * doc/posix-functions/fread.texi: Likewise.
967         * doc/posix-functions/fscanf.texi: Likewise.
968         * doc/posix-functions/getc.texi: Likewise.
969         * doc/posix-functions/getchar.texi: Likewise.
970         * doc/posix-functions/gets.texi: Likewise.
971         * doc/posix-functions/scanf.texi: Likewise.
972         * doc/posix-functions/vfscanf.texi: Likewise.
973         * doc/posix-functions/vscanf.texi: Likewise.
974
975 2011-04-14  Bruno Haible  <bruno@clisp.org>
976
977         Support non-blocking pipe I/O in write() on native Windows.
978         * lib/write.c (rpl_write): Split a write request that failed merely
979         because the byte count was larger than the pipe buffer's size.
980         * doc/posix-functions/write.texi: Mention the problem with large byte
981         counts.
982
983 2011-04-14  Bruno Haible  <bruno@clisp.org>
984
985         wchar: Ensure that wchar_t gets defined on uClibc.
986         * lib/wchar.in.h: On uClibc, include <stddef.h>.
987         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
988
989 2011-04-13  Bruno Haible  <bruno@clisp.org>
990
991         safe-write, full-read: Avoid unnecessary compilation units.
992         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
993         (Depends-on): Remove safe-read. Add ssize_t.
994         * modules/full-read (Files): Add lib/full-write.c.
995         (Depends-on): Add full-write.
996
997 2011-04-13  Bruno Haible  <bruno@clisp.org>
998
999         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1000         * modules/pwrite (Depends-on): Add 'write'.
1001
1002 2011-04-13  Bruno Haible  <bruno@clisp.org>
1003
1004         Support non-blocking pipe I/O in write() on native Windows.
1005         * lib/unistd.in.h (write): Enable replacement also if
1006         GNULIB_UNISTD_H_NONBLOCKING is 1.
1007         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1008         (rpl_write): When failing to write on a non-blocking pipe, change
1009         errno from ENOSPC to EAGAIN.
1010         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1011         putchar, puts, vfprintf, vprintf): Enable replacement also if
1012         GNULIB_STDIO_H_NONBLOCKING is 1.
1013         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1014         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1015         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1016         CALL_WITH_SIGPIPE_EMULATION.
1017         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1018         * m4/nonblocking.m4: New file.
1019         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1020         for non-blocking I/O support.
1021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1022         GNULIB_UNISTD_H_NONBLOCKING.
1023         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1024         required for non-blocking I/O support.
1025         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1026         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1027         lib/stdio-write.c, m4/asm-underscore.m4.
1028         (Depends-on): Add stdio, unistd.
1029         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1030         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1031         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1032         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1033         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1034         problem with non-blocking pipes.
1035         * doc/posix-functions/fputc.texi: Likewise.
1036         * doc/posix-functions/fputs.texi: Likewise.
1037         * doc/posix-functions/fwrite.texi: Likewise.
1038         * doc/posix-functions/printf.texi: Likewise.
1039         * doc/posix-functions/putc.texi: Likewise.
1040         * doc/posix-functions/putchar.texi: Likewise.
1041         * doc/posix-functions/puts.texi: Likewise.
1042         * doc/posix-functions/vfprintf.texi: Likewise.
1043         * doc/posix-functions/vprintf.texi: Likewise.
1044         * doc/posix-functions/write.texi: Likewise.
1045
1046 2011-04-10  Jim Meyering  <meyering@redhat.com>
1047
1048         maint.mk: prohibit doubled words
1049         Detect them also when they're separated by a newline.
1050         There are 3 ways to customize it:
1051           - disable the test on a per file basis, as usual with rules using
1052             $(VC_LIST_EXCEPT)
1053           - replace the default doubled-word-selecting regexp (affects all files)
1054           - ignore a particular file-vs-doubled-word match
1055         I nearly used that last one to ignore the "is is" match in
1056         coreutils' NEWS file, since the text was "ls -is is ..."
1057         To do that, I would have added this line to cfg.mk:
1058           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1059         but it would have ignored any "is is" match in NEWS.
1060         Low probability, but still...
1061         Instead, I changed the text, slightly:
1062           -  ls -is is now consistent with ls -lis in ignoring values returned
1063           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1064         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1065         (prohibit_doubled_word_): Define.
1066         (sc_prohibit_doubled_word): New rule.
1067         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1068
1069 2011-04-10  Jim Meyering  <meyering@redhat.com>
1070
1071         maint: fix doubled-word typo in comment
1072         * m4/gethostname.m4: s/is is/it is/
1073         * m4/getdomainname.m4: Likewise.
1074
1075 2011-04-10  Jim Meyering  <meyering@redhat.com>
1076
1077         maint: remove doubled word: s/it it/it/
1078         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1079
1080 2011-04-10  Jim Meyering  <meyering@redhat.com>
1081
1082         maint.mk: remove useless semicolon and backslash
1083         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1084         semicolon and backslash.
1085
1086 2011-04-10  Bruno Haible  <bruno@clisp.org>
1087
1088         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1089         * modules/stdint-tests (Depends-on): Add wchar.
1090
1091 2011-04-10  Jim Meyering  <meyering@redhat.com>
1092
1093         maint: remove doubled words in comments, e.g., s/a a/a/
1094         * lib/strptime.c (day_of_the_week): s/the the/the/
1095         * tests/test-chown.h (test_chown): s/a a/a/
1096
1097         test-chown.h: correct a cast
1098         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1099         when the destination is a stat.st_gid.
1100
1101 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1102
1103         getaddrinfo: Fix test for sa_len member.
1104         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1105         include <sys/types.h> before <sys/socket.h>.
1106
1107 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1108
1109         maint: change "can not" to "cannot"
1110         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1111         boundaries.
1112
1113 2011-04-09  Jim Meyering  <meyering@redhat.com>
1114
1115         maint: change "a a" to "a"
1116         * tests/test-lchown.h (test_lchown): s/a a/a/
1117
1118         maint.mk: prohibit \<the the\>
1119         * top/maint.mk (sc_prohibit_the_the): New rule.
1120
1121         maint: fix "the the" in comment
1122         * lib/count-one-bits.h: s/the the/the/
1123
1124         maint: change "can not" to "cannot"
1125         But do not change the occurrences in maintain.texi or in
1126         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1127         * doc/gnulib-tool.texi: s/can not/cannot/
1128         * doc/posix-functions/accept.texi (accept): Likewise.
1129         * doc/posix-functions/socket.texi (socket): Likewise.
1130         * lib/mbrtowc.c: Likewise.
1131
1132         maint.mk: prohibit use of "can not"
1133         * top/maint.mk (sc_prohibit_can_not): New rule.
1134         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1135
1136 2011-04-09  Bruno Haible  <bruno@clisp.org>
1137
1138         careadlinkat: Guard against misuse of careadlinkatcwd.
1139         * lib/careadlinkat.c: Include <stdlib.h>.
1140         (careadlinkatcwd): Check that the fd argument is as expected.
1141
1142 2011-04-09  Bruno Haible  <bruno@clisp.org>
1143
1144         careadlinkat: Use common coding style.
1145         * lib/careadlinkat.c: Move gnulib includes after system includes.
1146
1147 2011-04-09  Bruno Haible  <bruno@clisp.org>
1148
1149         careadlinkat: Clarify specification.
1150         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1151         (careadlinkatcwd): Add comment.
1152         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1153
1154 2011-04-09  Bruno Haible  <bruno@clisp.org>
1155
1156         areadlinkat: Avoid link error on many platforms.
1157         * modules/areadlinkat (Depends-on): Add areadlink.
1158
1159 2011-04-09  Bruno Haible  <bruno@clisp.org>
1160
1161         allocator, careadlinkat: Fix double-inclusion guard.
1162         * lib/allocator.h: Fix double-inclusion guard.
1163         * lib/careadlinkat.h: Likewise.
1164
1165 2011-04-09  Bruno Haible  <bruno@clisp.org>
1166
1167         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1168         * lib/relocwrapper.c: Update dependencies hierarchy.
1169         * build-aux/install-reloc: Update list of files to be compiled.
1170         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1171         lib/allocator.[hc].
1172
1173 2011-04-08  Eric Blake  <eblake@redhat.com>
1174
1175         strftime: silence gnulib-tool warning
1176         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1177
1178 2011-04-08  Bruno Haible  <bruno@clisp.org>
1179
1180         verify: Fix syntax error with GCC 4.6 in C++ mode.
1181         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1182         (HAVE_STATIC_ASSERT): New macro.
1183         (verify_true, verify): Use 'static_assert' if it is supported and
1184         '_Static_assert' is not supported.
1185
1186 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1187
1188         allocator: New module.
1189         * modules/allocator, lib/allocator.c: New files.
1190         * lib/allocator.h (stdlib_allocator): New decl.
1191         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1192         Remove.  Do not include <stdlib.h>.
1193         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1194         * modules/careadlinkat (Files): Remove lib/allocator.h.
1195         (Depends-on): Add allocator.
1196
1197         stdlib: let modules use system malloc, realloc
1198         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1199         if !_GL_USE_STDLIB_ALLOC.
1200         (malloc, realloc): Limit this change to a smaller scope.
1201
1202         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1203         (malloc, realloc): Don't #undef; no longer needed.
1204         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1205         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1206         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1207         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1208         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1209         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1210         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1211         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
1212
1213         careadlinkat: rename members to avoid problem
1214         * lib/allocator.h (struct allocator): Rename members from
1215         malloc/realloc to allocate/reallocate, to avoid problems if malloc
1216         and realloc are #define'd.  Reported by Eric Blake in
1217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
1218         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
1219
1220 2011-04-08  Eric Blake  <eblake@redhat.com>
1221
1222         nonblocking: reduce dependency
1223         * tests/test-nonblocking.c: Only test sockets when in use.
1224         * modules/nonblocking-tests (Depends-on): Drop socket.
1225         (Makefile.am): Link even if sockets are not present.
1226         * modules/pipe2-tests (Makefile.am): Likewise.
1227         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
1228
1229         pipe2: fix O_NONBLOCK support on mingw
1230         * modules/pipe2 (Depends-on): Add nonblocking.
1231         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
1232         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
1233         * tests/test-nonblocking.c (main): Likewise.
1234         * modules/pipe2-tests (Makefile.am): Avoid link failure.
1235
1236         fcntl-h: fix O_ACCMODE on cygwin
1237         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
1238         * lib/fcntl.in.h (O_ACCMODE): Fix it.
1239
1240         pipe-filter: drop O_NONBLOCK workarounds
1241         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
1242         * modules/pipe-filter-ii (Depends-on): Likewise.
1243         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
1244
1245         nonblocking: provide O_NONBLOCK for mingw
1246         * modules/nonblocking (Depends-on): Add open.
1247         (configure.ac): Set new witness macro.
1248         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
1249         * modules/fcntl-h (Makefile.am): Substitute it.
1250         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
1251         nonblocking module is in use.
1252         * lib/nonblocking.c: Adjust portability test.
1253         * lib/open.c (open): Don't let native open see gnulib flag.
1254         * tests/test-fcntl-h.c (main): Enhance test.
1255         * tests/test-open.h (test_open): Likewise.
1256         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
1257
1258         careadlinkat: fix compilation error on mingw
1259         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
1260         within struct allocator.
1261
1262 2011-04-06  Eric Blake  <eblake@redhat.com>
1263
1264         binary-io: relicense under LGPLv2+
1265         * modules/binary-io (License): Relax to LGPLv2+.
1266         Requested for libvirt, and required by pipe2.
1267
1268 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
1269
1270         verify: use _Static_assert if available
1271         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
1272         (verify_true, verify): Use it if available.  This generates better
1273         diagnostics with GCC 4.6.0 and later.
1274
1275 2011-04-05  Bruno Haible  <bruno@clisp.org>
1276
1277         Remove leftover generated .h files after config.status changed.
1278
1279         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
1280         GL_GENERATE_ALLOCA_H.
1281         * modules/alloca-opt (Makefile.am): Remove alloca.h if
1282         GL_GENERATE_ALLOCA_H evaluates to false.
1283
1284         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
1285         GL_GENERATE_ARGZ_H.
1286         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
1287         evaluates to false.
1288
1289         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
1290         GL_GENERATE_BYTESWAP_H.
1291         * modules/byteswap (Makefile.am): Remove byteswap.h if
1292         GL_GENERATE_BYTESWAP_H evaluates to false.
1293
1294         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
1295         GL_GENERATE_ERRNO_H.
1296         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
1297         evaluates to false.
1298
1299         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
1300         GL_GENERATE_FLOAT_H.
1301         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
1302         evaluates to false.
1303
1304         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
1305         GL_GENERATE_FNMATCH_H.
1306         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
1307         GL_GENERATE_FNMATCH_H evaluates to false.
1308
1309         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
1310         GL_GENERATE_GLOB_H.
1311         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
1312         evaluates to false.
1313
1314         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
1315         automake conditional GL_GENERATE_ICONV_H.
1316         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
1317         evaluates to false.
1318
1319         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
1320         GL_GENERATE_NETINET_IN_H.
1321         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
1322         GL_GENERATE_NETINET_IN_H evaluates to false.
1323
1324         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
1325         conditional GL_GENERATE_PTHREAD_H.
1326         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
1327         * modules/pthread (Makefile.am): Remove pthread.h if
1328         GL_GENERATE_PTHREAD_H evaluates to false.
1329
1330         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
1331         GL_GENERATE_SCHED_H.
1332         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
1333         evaluates to false.
1334
1335         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
1336         conditional GL_GENERATE_SELINUX_CONTEXT_H.
1337         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
1338         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
1339
1340         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
1341         GL_GENERATE_STDARG_H.
1342         * modules/stdarg (Makefile.am): Remove stdarg.h if
1343         GL_GENERATE_STDARG_H evaluates to false.
1344
1345         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
1346         GL_GENERATE_STDBOOL_H.
1347         * modules/stdbool (Makefile.am): Remove stdbool.h if
1348         GL_GENERATE_STDBOOL_H evaluates to false.
1349
1350         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
1351         conditional GL_GENERATE_STDDEF_H.
1352         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
1353         * modules/stddef (Makefile.am): Remove stddef.h if
1354         GL_GENERATE_STDDEF_H evaluates to false.
1355
1356         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
1357         GL_GENERATE_STDINT_H.
1358         * modules/stdint (Makefile.am): Remove stdint.h if
1359         GL_GENERATE_STDINT_H evaluates to false.
1360
1361         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
1362         GL_GENERATE_SYSEXITS_H.
1363         * modules/sysexits (Makefile.am): Remove sysexits.h if
1364         GL_GENERATE_SYSEXITS_H evaluates to false.
1365
1366         Reported by Karl Berry and Ralf Wildenhues.
1367
1368 2011-04-05  Bruno Haible  <bruno@clisp.org>
1369
1370         Ensure to rebuild generated .h files when config.status has changed.
1371         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
1372         config.status.
1373         * modules/ctype (Makefile.am): Likewise.
1374         * modules/dirent (Makefile.am): Likewise.
1375         * modules/errno (Makefile.am): Likewise.
1376         * modules/fcntl-h (Makefile.am): Likewise.
1377         * modules/float (Makefile.am): Likewise.
1378         * modules/getopt-posix (Makefile.am): Likewise.
1379         * modules/glob (Makefile.am): Likewise.
1380         * modules/iconv-h (Makefile.am): Likewise.
1381         * modules/inttypes (Makefile.am): Likewise.
1382         * modules/langinfo (Makefile.am): Likewise.
1383         * modules/locale (Makefile.am): Likewise.
1384         * modules/math (Makefile.am): Likewise.
1385         * modules/netdb (Makefile.am): Likewise.
1386         * modules/netinet_in (Makefile.am): Likewise.
1387         * modules/poll-h (Makefile.am): Likewise.
1388         * modules/pthread (Makefile.am): Likewise.
1389         * modules/pty (Makefile.am): Likewise.
1390         * modules/sched (Makefile.am): Likewise.
1391         * modules/search (Makefile.am): Likewise.
1392         * modules/selinux-h (Makefile.am): Likewise.
1393         * modules/signal (Makefile.am): Likewise.
1394         * modules/spawn (Makefile.am): Likewise.
1395         * modules/stdarg (Makefile.am): Likewise.
1396         * modules/stdbool (Makefile.am): Likewise.
1397         * modules/stddef (Makefile.am): Likewise.
1398         * modules/stdint (Makefile.am): Likewise.
1399         * modules/stdio (Makefile.am): Likewise.
1400         * modules/stdlib (Makefile.am): Likewise.
1401         * modules/string (Makefile.am): Likewise.
1402         * modules/strings (Makefile.am): Likewise.
1403         * modules/sys_file (Makefile.am): Likewise.
1404         * modules/sys_ioctl (Makefile.am): Likewise.
1405         * modules/sys_select (Makefile.am): Likewise.
1406         * modules/sys_socket (Makefile.am): Likewise.
1407         * modules/sys_stat (Makefile.am): Likewise.
1408         * modules/sys_time (Makefile.am): Likewise.
1409         * modules/sys_times (Makefile.am): Likewise.
1410         * modules/sys_utsname (Makefile.am): Likewise.
1411         * modules/sys_wait (Makefile.am): Likewise.
1412         * modules/sysexits (Makefile.am): Likewise.
1413         * modules/termios (Makefile.am): Likewise.
1414         * modules/time (Makefile.am): Likewise.
1415         * modules/unistd (Makefile.am): Likewise.
1416         * modules/wchar (Makefile.am): Likewise.
1417         * modules/wctype-h (Makefile.am): Likewise.
1418         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
1419
1420 2011-04-05  Bruno Haible  <bruno@clisp.org>
1421
1422         pipe2: Relicense under LGPLv2+.
1423         * modules/pipe2 (License): Change to LGPLv2+.
1424         Requested by Eric Blake, for libvirt.
1425
1426 2011-04-05  Bruce Korb  <bkorb@gnu.org>
1427
1428         bootstrap: compute gnulib_extra_files after updating build_aux
1429         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
1430         change build_aux or also supply gnulib_extra_files.  Handle correctly.
1431
1432 2011-04-05  Eric Blake  <eblake@redhat.com>
1433
1434         bootstrap: preserve git whitelist item sorting
1435         * build-aux/bootstrap (sort_patterns): New function.
1436         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
1437
1438 2011-04-05  Simon Josefsson  <simon@josefsson.org>
1439
1440         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
1441         sc_space_tab check.
1442
1443 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1444
1445         areadlink, areadlinkat: rewrite in terms of careadlinkat
1446         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
1447         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
1448         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
1449         (malloc, realloc): Remove #undefs.
1450         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
1451         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
1452         readlink, ssize_t, stdint, unistd.
1453         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
1454         areadlink, stdint.
1455
1456         careadlinkat: new module
1457         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
1458         * modules/careadlinkat: New files, written by me with
1459         a review and feedback from Ben Pfaff in
1460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
1461
1462 2011-04-01  Bruno Haible  <bruno@clisp.org>
1463
1464         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
1465         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
1466         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
1467         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
1468         Reported by Bruce Korb <bruce.korb@gmail.com>.
1469
1470 2011-04-01  Bruno Haible  <bruno@clisp.org>
1471
1472         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
1473         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
1474         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
1475         * modules/wcpcpy (Depends-on): Add extensions.
1476         * modules/wcpncpy (Depends-on): Likewise.
1477         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
1478         systems.
1479         * doc/posix-functions/wcpncpy.texi: Likewise.
1480         * doc/posix-functions/wcwidth.texi: Likewise.
1481
1482 2011-03-31  Eric Blake  <eblake@redhat.com>
1483
1484         nonblocking: fix mingw test failures
1485         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
1486         non-blocking flag on regular file.
1487         (get_nonblocking_flag): Set errno on invalid fd.
1488         * tests/test-nonblocking.c (main): Avoid test failure on
1489         directories if fchdir is not active.
1490         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
1491
1492 2011-03-31  Bruno Haible  <bruno@clisp.org>
1493
1494         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
1495         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
1496         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
1497         Reported by Simon Josefsson <simon@josefsson.org>.
1498
1499 2011-03-31  Bruno Haible  <bruno@clisp.org>
1500         and Eric Blake  <eblake@redhat.com>
1501
1502         nonblocking: new module
1503         * modules/nonblocking: New module.
1504         * modules/nonblocking-tests: Likewise.
1505         * lib/nonblocking.h: New file.
1506         * lib/nonblocking.c: Likewise.
1507         * tests/test-nonblocking.c: New test.
1508         * lib/ioctl.c (ioctl) [mingw]: Update comment.
1509
1510 2011-03-30  Bruno Haible  <bruno@clisp.org>
1511
1512         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
1513         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
1514         instead of 'printf' format for GCC >= 4.4.
1515         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
1516         (fprintf, printf, vfprintf, vprintf): Declare with
1517         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
1518         the system's vfprintf() function.
1519         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
1520
1521 2011-03-30  Eric Blake  <eblake@redhat.com>
1522
1523         passfd: fix scoping bug
1524         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
1525         before sendmsg/recvmsg.
1526
1527         passfd: standardize coding conventions
1528         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
1529         can be learned at compile time.
1530         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
1531         ifdefs.
1532         (sendfd, recvfd): Follow gnulib code conventions.
1533
1534         passfd: fix incorrect sendmsg arguments
1535         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
1536         incorrect msg_controllen value.
1537         * modules/passfd-tests (Depends-on): Check for alarm.
1538         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
1539         Reported by Bastien ROUCARIES.
1540
1541 2011-03-30  Bruno Haible  <bruno@clisp.org>
1542
1543         c-strcasestr: Relicense under LGPLv2+.
1544         * modules/c-strcasestr (License): Change to LGPLv2+.
1545         Requested by Eric Blake, for libvirt.
1546
1547 2011-03-30  Simon Josefsson  <simon@josefsson.org>
1548
1549         * users.txt: Add libidn2.  Fix libtasn1 link.
1550
1551 2011-03-30  Jim Meyering  <meyering@redhat.com>
1552
1553         tests: readlink* ("",... fails with EINVAL on newer kernels
1554         readlink and readlinkat have typically failed with ENOENT for
1555         the invalid, empty file name,  "".  However, with the advent
1556         of linux-2.6.39, they fail with EINVAL.
1557         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
1558         when operating on the empty file name.
1559         * tests/test-readlink.h (test_readlink): Likewise.
1560
1561 2011-03-29  Bruno Haible  <bruno@clisp.org>
1562
1563         Relicense some modules under LGPLv2+, for libidn2.
1564         * modules/array-mergesort (License): Change to LGPLv2+.
1565         * modules/c-strcaseeq (License): Likewise.
1566         * modules/striconveh (License): Likewise.
1567         * modules/striconveha (License): Likewise.
1568         * modules/uniconv/base (License): Likewise.
1569         * modules/uniconv/u8-conv-from-enc (License): Likewise.
1570         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
1571         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
1572         * modules/unictype/base (License): Likewise.
1573         * modules/unictype/bidiclass-of (License): Likewise.
1574         * modules/unictype/category-M (License): Likewise.
1575         * modules/unictype/category-none (License): Likewise.
1576         * modules/unictype/category-of (License): Likewise.
1577         * modules/unictype/category-test (License): Likewise.
1578         * modules/unictype/category-test-withtable (License): Likewise.
1579         * modules/unictype/combining-class (License): Likewise.
1580         * modules/unictype/joiningtype-of (License): Likewise.
1581         * modules/unictype/scripts (License): Likewise.
1582         * modules/uninorm/base (License): Likewise.
1583         * modules/uninorm/canonical-decomposition (License): Likewise.
1584         * modules/uninorm/composition (License): Likewise.
1585         * modules/uninorm/decompose-internal (License): Likewise.
1586         * modules/uninorm/decomposition-table (License): Likewise.
1587         * modules/uninorm/nfc (License): Likewise.
1588         * modules/uninorm/nfd (License): Likewise.
1589         * modules/uninorm/u32-normalize (License): Likewise.
1590         * modules/unistr/base (License): Likewise.
1591         * modules/unistr/u32-cpy (License): Likewise.
1592         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
1593         * modules/unistr/u32-to-u8 (License): Likewise.
1594         * modules/unistr/u32-uctomb (License): Likewise.
1595         * modules/unistr/u8-check (License): Likewise.
1596         * modules/unistr/u8-mblen (License): Likewise.
1597         * modules/unistr/u8-mbtouc (License): Likewise.
1598         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
1599         * modules/unistr/u8-mbtoucr (License): Likewise.
1600         * modules/unistr/u8-prev (License): Likewise.
1601         * modules/unistr/u8-strlen (License): Likewise.
1602         * modules/unistr/u8-to-u32 (License): Likewise.
1603         * modules/unistr/u8-uctomb (License): Likewise.
1604         * modules/unitypes (License): Likewise.
1605         Requested by Simon Josefsson.
1606
1607 2011-03-29  Simon Josefsson  <simon@josefsson.org>
1608
1609         lib-symbol-visibility: Add a notice.
1610         * modules/lib-symbol-visibility (Notice): New field.
1611
1612 2011-03-29  Bruno Haible  <bruno@clisp.org>
1613
1614         getaddrinfo: Doc fix.
1615         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
1616         section "fixed in Gnulib".
1617
1618 2011-03-28  Simon Josefsson  <simon@josefsson.org>
1619
1620         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
1621         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
1622
1623 2011-03-26  Bruno Haible  <bruno@clisp.org>
1624
1625         unictype/property-byname: Reduce the number of load-time relocations.
1626         * lib/unictype/pr_byname.c: Include <stdlib.h>.
1627         (UC_PROPERTY_INDEX_*): New enumeration values.
1628         (uc_property_byname): Convert an index from the lookup table to an
1629         uc_property_t.
1630         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
1631         values.
1632
1633 2011-03-26  Bruno Haible  <bruno@clisp.org>
1634
1635         unictype/property-byname: Allow omitted word separators and aliases.
1636         * lib/unictype/pr_byname.gperf: Add property names without word
1637         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
1638         for 'space'.
1639
1640 2011-03-26  Bruno Haible  <bruno@clisp.org>
1641
1642         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
1643         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
1644         also hyphens to space.
1645         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
1646         without spaces.
1647         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
1648
1649 2011-03-26  Bruno Haible  <bruno@clisp.org>
1650
1651         unictype/joiningtype-byname: Recognize long names as well.
1652         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
1653         a long name.
1654         * lib/unictype/joiningtype_byname.c: Include <string.h>,
1655         unictype/joiningtype_byname.h.
1656         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
1657         * lib/unictype/joiningtype_byname.gperf: New file.
1658         * modules/unictype/joiningtype-byname (Files): Add
1659         lib/unictype/joiningtype_byname.gperf.
1660         (Depends-on): Add gperf.
1661         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
1662         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
1663         long names.
1664
1665         Tests for module 'unictype/joiningtype-longname'.
1666         * modules/unictype/joiningtype-longname-tests: New file.
1667         * tests/unictype/test-joiningtype_longname.c: New file.
1668
1669         New module 'unictype/joiningtype-longname'.
1670         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
1671         * lib/unictype/joiningtype_longname.c: New file.
1672         * modules/unictype/joiningtype-longname: New file.
1673         * modules/unictype/joiningtype-all (Depends-on): Add
1674         unictype/joiningtype-longname.
1675
1676 2011-03-26  Bruno Haible  <bruno@clisp.org>
1677
1678         unictype/bidiclass-byname: Recognize long names as well.
1679         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
1680         name.
1681         * lib/unictype/bidi_byname.c: Include <string.h>,
1682         unictype/bidi_byname.h.
1683         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
1684         * lib/unictype/bidi_byname.gperf: New file.
1685         * modules/unictype/bidiclass-byname (Files): Add
1686         lib/unictype/bidi_byname.gperf.
1687         (Depends-on): Add gperf.
1688         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
1689         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
1690         long names.
1691
1692         Tests for module 'unictype/bidiclass-longname'.
1693         * modules/unictype/bidiclass-longname-tests: New file.
1694         * tests/unictype/test-bidi_longname.c: New file.
1695
1696         New module 'unictype/bidiclass-longname'.
1697         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
1698         * lib/unictype/bidi_longname.c: New file.
1699         * modules/unictype/bidiclass-longname: New file.
1700         * modules/unictype/bidiclass-all (Depends-on): Add
1701         unictype/bidiclass-longname.
1702
1703 2011-03-26  Bruno Haible  <bruno@clisp.org>
1704
1705         unictype/bidi*: Rename modules.
1706         * modules/unictype/bidiclass-all: Renamed from
1707         modules/unictype/bidicategory-all.
1708         * modules/unictype/bidiclass-name: Renamed from
1709         modules/unictype/bidiclass-name.
1710         (Description): Update.
1711         * modules/unictype/bidiclass-name-tests: Renamed from
1712         modules/unictype/bidicategory-name-tests.
1713         * modules/unictype/bidiclass-byname: Renamed from
1714         modules/unictype/bidicategory-byname.
1715         (Description): Update.
1716         * modules/unictype/bidiclass-byname-tests: Renamed from
1717         modules/unictype/bidicategory-byname-tests.
1718         * modules/unictype/bidiclass-of: Renamed from
1719         modules/unictype/bidicategory-of.
1720         (Description): Update.
1721         * modules/unictype/bidiclass-of-tests: Renamed from
1722         modules/unictype/bidicategory-of-tests.
1723         * modules/unictype/bidiclass-test: Renamed from
1724         modules/unictype/bidicategory-test.
1725         (Description): Update.
1726         * modules/unictype/bidiclass-test-tests: Renamed from
1727         modules/unictype/bidicategory-test-tests.
1728         * modules/unictype/bidicategory-all: New file, a simple redirection.
1729         * modules/unictype/bidicategory-name: Likewise.
1730         * modules/unictype/bidicategory-byname: Likewise.
1731         * modules/unictype/bidicategory-of: Likewise.
1732         * modules/unictype/bidicategory-test: Likewise.
1733         * modules/unictype/property-bidi-* (Dependencies): Update.
1734         * lib/unictype/bidi_*.c: Update comment.
1735
1736 2011-03-26  Bruno Haible  <bruno@clisp.org>
1737
1738         unictype/bidi*: Rename functions, part 2.
1739         * modules/unictype/bidicategory-name (configure.ac): Update required
1740         libunistring version.
1741         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
1742
1743 2011-03-25  Bruno Haible  <bruno@clisp.org>
1744
1745         New module 'unictype/combining-class-all'.
1746         * modules/unictype/combining-class-all: New file.
1747
1748         Tests for module 'unictype/combining-class-byname'.
1749         * modules/unictype/combining-class-byname-tests: New file.
1750         * tests/unictype/test-combiningclass_byname.c: New file.
1751
1752         New module 'unictype/combining-class-byname'.
1753         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
1754         * lib/unictype/combiningclass_byname.c: New file.
1755         * lib/unictype/combiningclass_byname.gperf: New file.
1756         * modules/unictype/combining-class-byname: New file.
1757
1758         Tests for module 'unictype/combining-class-longname'.
1759         * modules/unictype/combining-class-longname-tests: New file.
1760         * tests/unictype/test-combiningclass_longname.c: New file.
1761
1762         New module 'unictype/combining-class-longname'.
1763         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
1764         * lib/unictype/combiningclass_longname.c: New file.
1765         * modules/unictype/combining-class-longname: New file.
1766
1767         Tests for module 'unictype/combining-class-name'.
1768         * modules/unictype/combining-class-name-tests: New file.
1769         * tests/unictype/test-combiningclass_name.c: New file.
1770
1771         New module 'unictype/combining-class-name'.
1772         * lib/unictype.in.h (uc_combining_class_name): New declaration.
1773         * lib/unictype/combiningclass_name.c: New file.
1774         * modules/unictype/combining-class-name: New file.
1775
1776 2011-03-25  Bruno Haible  <bruno@clisp.org>
1777
1778         unictype/combining-class: Rename source files.
1779         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
1780         of unictype/combining.h.
1781         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
1782         Update.
1783         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
1784         * modules/unictype/combining-class (Description): Fix.
1785         (Files, Makefile.am): Update.
1786         * tests/unictype/test-combiningclass.c: Renamed from
1787         tests/unictype/test-combining.c.
1788         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
1789
1790 2011-03-25  Bruno Haible  <bruno@clisp.org>
1791
1792         unictype: Update list of canonical combining classes.
1793         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
1794
1795 2011-03-25  Bruno Haible  <bruno@clisp.org>
1796
1797         unictype/category-byname: Recognize long names as well.
1798         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
1799         a long name.
1800         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
1801         unictype/categ_byname.h.
1802         (UC_CATEGORY_INDEX_*): New enumeration values.
1803         (uc_general_category_byname): Use uc_general_category_lookup and
1804         convert from index to value.
1805         * lib/unictype/categ_byname.gperf: New file.
1806         * modules/unictype/category-byname (Files): Add
1807         lib/unictype/categ_byname.gperf.
1808         (Depends-on): Add gperf.
1809         (Makefile.am): Add rule for generating unictype/categ_byname.h.
1810         * tests/unictype/test-categ_byname.c (main): Test the recognition of
1811         long names.
1812
1813         Tests for module 'unictype/category-longname'.
1814         * modules/unictype/category-longname-tests: New file.
1815         * tests/unictype/test-categ_longname.c: New file.
1816
1817         New module 'unictype/category-longname'.
1818         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
1819         * lib/unictype/categ_longname.c: New file.
1820         * modules/unictype/category-longname: New file.
1821         * modules/unictype/category-all (Depends-on): Add it.
1822
1823 2011-03-25  Bruno Haible  <bruno@clisp.org>
1824
1825         Tests for module 'unictype/category-LC'.
1826         * modules/unictype/category-LC-tests: New file.
1827         * tests/unictype/test-categ_LC.c: New file, automatically generated.
1828
1829         New module 'unictype/category-LC'.
1830         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
1831         (UC_CATEGORY_LC): New declaration.
1832         (UC_CASED_LETTER): New macro.
1833         * lib/gen-uni-tables.c (is_category_LC): New function.
1834         (output_categories): Also handle category LC.
1835         (UC_CATEGORY_MASK_LC): New enumeration value.
1836         (general_category_byname): Also handle category LC.
1837         * lib/unictype/categ_LC.c: New file.
1838         * lib/unictype/categ_LC.h: New file, automatically generated.
1839         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
1840         category LC.
1841         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
1842         * modules/unictype/category-LC: New file.
1843         * modules/unictype/category-byname (Depends-on): Add
1844         unictype/category-LC.
1845         * modules/unictype/category-all (Depends-on): Likewise.
1846
1847 2011-03-25  Eric Blake  <eblake@redhat.com>
1848
1849         xmalloc: revert yesterday's regression
1850         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
1851         realloc's underlying behavior (allowing allocation of zero-size
1852         objects, especially if malloc-gnu is also in use).
1853
1854 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
1855
1856         maint.mk: add missing version to VC-tag
1857         * top/maint.mk: git tag was missing actual tag name; add it.
1858
1859         valgrind: do leak checking, and exit with code 1 on error (not 0)
1860         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
1861         to VALGRIND.
1862
1863 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
1864
1865         posix-modules: say what it does.
1866         * posix-modules: Add a line to the --help output saying what it does.
1867
1868 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
1869
1870         xmalloc: Do not leak if underlying realloc is C99 compatible.
1871         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
1872         This avoids a leak on C99-based systems.  See
1873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
1874
1875 2011-03-24  Eric Blake  <eblake@redhat.com>
1876
1877         realloc: document portability problem
1878         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
1879         passing 0 size to realloc.
1880
1881 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
1882
1883         doc: update users.txt
1884         * users.txt: Add cvsps, tmpwatch
1885
1886 2011-03-23  Matt Rice  <ratmice@gmail.com>
1887
1888         doc: update users.txt
1889         * users.txt: Add gdb.
1890
1891 2011-03-23  Jim Meyering  <meyering@redhat.com>
1892
1893         doc: update users.txt
1894         Looking through matches up to the following URL (there are still
1895         several more pages), I found several projects that use gnulib:
1896         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
1897         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
1898         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
1899
1900 2011-03-22  Bruno Haible  <bruno@clisp.org>
1901
1902         unictype/bidi*: Rename functions.
1903         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
1904         uc_bidi_class, uc_is_bidi_class): New declarations.
1905         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
1906         uc_bidi_category_byname.
1907         (uc_bidi_category_byname): New function.
1908         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
1909         u_bidi_category_name.
1910         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
1911         (uc_bidi_category_name): New function.
1912         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
1913         uc_bidi_category.
1914         (uc_bidi_category): New function.
1915         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
1916         uc_is_bidi_category. Invoke uc_bidi_class.
1917         (uc_is_bidi_category): New function.
1918         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
1919         instead of uc_bidi_category_byname.
1920         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
1921         instead of uc_bidi_category_name.
1922         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
1923         uc_bidi_category.
1924         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
1925         instead of uc_is_bidi_category.
1926
1927 2011-03-21  Bruno Haible  <bruno@clisp.org>
1928
1929         New module 'unictype/joininggroup-all'.
1930         * modules/unictype/joininggroup-all: New file.
1931
1932         Tests for module 'unictype/joininggroup-of'.
1933         * modules/unictype/joininggroup-of-tests: New file.
1934         * tests/unictype/test-joininggroup_of.c: New file.
1935         * tests/unictype/test-joininggroup_of.h: New file, automatically
1936         generated by gen-uni-tables.
1937
1938         New module 'unictype/joininggroup-of'.
1939         * modules/unictype/joininggroup-of: New file.
1940         * lib/unictype/joininggroup_of.c: New file.
1941         * lib/unictype/joininggroup_of.h: New file, automatically generated by
1942         gen-uni-tables.
1943
1944         Tests for module 'unictype/joininggroup-byname'.
1945         * modules/unictype/joininggroup-byname-tests: New file.
1946         * tests/unictype/test-joininggroup_byname.c: New file.
1947
1948         New module 'unictype/joininggroup-byname'.
1949         * modules/unictype/joininggroup-byname: New file.
1950         * lib/unictype/joininggroup_byname.c: New file.
1951         * lib/unictype/joininggroup_byname.gperf: New file.
1952
1953         Tests for module 'unictype/joininggroup-name'.
1954         * modules/unictype/joininggroup-name-tests: New file.
1955         * tests/unictype/test-joininggroup_name.c: New file.
1956
1957         New module 'unictype/joininggroup-name'.
1958         * modules/unictype/joininggroup-name: New file.
1959         * lib/unictype/joininggroup_name.c: New file.
1960         * lib/unictype/joininggroup_name.h: New file.
1961
1962         New module 'unictype/joiningtype-all'.
1963         * modules/unictype/joiningtype-all: New file.
1964
1965         Tests for module 'unictype/joiningtype-of'.
1966         * modules/unictype/joiningtype-of-tests: New file.
1967         * tests/unictype/test-joiningtype_of.c: New file.
1968         * tests/unictype/test-joiningtype_of.h: New file, automatically
1969         generated by gen-uni-tables.
1970
1971         New module 'unictype/joiningtype-of'.
1972         * modules/unictype/joiningtype-of: New file.
1973         * lib/unictype/joiningtype_of.c: New file.
1974         * lib/unictype/joiningtype_of.h: New file, automatically generated by
1975         gen-uni-tables.
1976
1977         Tests for module 'unictype/joiningtype-byname'.
1978         * modules/unictype/joiningtype-byname-tests: New file.
1979         * tests/unictype/test-joiningtype_byname.c: New file.
1980
1981         New module 'unictype/joiningtype-byname'.
1982         * modules/unictype/joiningtype-byname: New file.
1983         * lib/unictype/joiningtype_byname.c: New file.
1984
1985         Tests for module 'unictype/joiningtype-name'.
1986         * modules/unictype/joiningtype-name-tests: New file.
1987         * tests/unictype/test-joiningtype_name.c: New file.
1988
1989         New module 'unictype/joiningtype-name'.
1990         * modules/unictype/joiningtype-name: New file.
1991         * lib/unictype/joiningtype_name.c: New file.
1992
1993         unictype: Add support for Arabic shaping properties.
1994         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
1995         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
1996         declarations.
1997         (UC_JOINING_GROUP_*): New enumeration values.
1998         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
1999         declarations.
2000         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2001         (unicode_joining_type): New variable.
2002         (UC_JOINING_GROUP_*): New enumeration values.
2003         (unicode_joining_group): New variable.
2004         (fill_arabicshaping, joining_type_as_c_identifier,
2005         output_joining_type_test, output_joining_type,
2006         joining_group_as_c_identifier, output_joining_group_test,
2007         output_joining_group): New functions.
2008         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2009         fill_arabicshaping and output_joining_type_test, output_joining_type,
2010         output_joining_group_test, output_joining_group.
2011         Reported by Simon Josefsson.
2012
2013 2011-03-21  Jim Meyering  <meyering@redhat.com>
2014
2015         strftime: fix a bug in yesterday's change
2016         * lib/strftime.c (add): Accommodate width's initial value of -1.
2017         Otherwise, nstrftime would copy uninitialized data into
2018         the result buffer.
2019
2020 2011-03-21  Jim Meyering  <meyering@redhat.com>
2021
2022         tests: add strftime-tests module
2023         * tests/test-strftime.c: New file.
2024         * modules/strftime-tests: New module.
2025
2026 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2027
2028         strftime: don't assume a byte count fits in 'int'
2029         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2030         found this problem by static analysis, using gcc -Wstrict-overflow
2031         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2032         on an integer overflow having undefined behavior, but it turns out
2033         that the argument is a size, which might not fit in 'int' anyway,
2034
2035 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2036
2037         stdio: don't require ignore_value around fwrite
2038
2039         This patch works around libc bug 11959
2040         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2041         Without this patch, applications must often write
2042         ignore_value (fwrite (...)) even though the ignore_value is
2043         not helpful here.  It's common to write many objects, using
2044         fwrite/printf/etc., and then use ferror to detect output error.
2045
2046         I considered making this patch optional, but decided against it,
2047         because libc is obviously being inconsistent here: there is no
2048         reason libc should insist that user code must inspect fwrite
2049         return's value without also insisting that it inspect printf's,
2050         putchar's, etc.  If user code wants to have a strict style where
2051         all these functions' values are checked (so that ferror need not
2052         be checked), we could add support for that style in a new gnulib
2053         module, but in the meantime it's better to be consistent and to
2054         support common usage.
2055
2056         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2057         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2058         that we are compiling in checking mode, and if not C++, and
2059         if not already wrapping fwrite for some other reason.
2060         (fwrite): #define to rpl_fwrite if the latter is defined.
2061
2062 2011-03-20  Bruno Haible  <bruno@clisp.org>
2063
2064         verror: Fix compilation error introduced on 2011-02-13.
2065         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2066         instead of __attribute__.
2067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2068
2069 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2070             Bruno Haible  <bruno@clisp.org>
2071
2072         socklen: do not depend on sys_socket
2073         While trying to modify Emacs to use gnulib's socklen module,
2074         I discovered a circular dependency: socklen depends on sys_socket
2075         and vice versa.  Emacs can use socklen, but it does not need
2076         sys_socket because it has its own substitute for sys/socket.h.
2077         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2078         gl_TYPE_SOCKLEN_T.
2079         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2080         gl_PREREQ_SYS_H_SOCKET.
2081         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2082         gl_PREREQ_SYS_H_SOCKET.
2083         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2084         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2085         * modules/socklen (Depends-on): Do not depend on sys_socket.
2086         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2087
2088 2011-03-20  Jim Meyering  <meyering@redhat.com>
2089
2090         maint.mk: sort file names *after* new transformation
2091         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2092         prefix would have led to an unwarranted failure in GNU parted.
2093         Sort after that transformation.
2094
2095 2011-03-19  Jim Meyering  <meyering@redhat.com>
2096
2097         maint.mk: fix po-file syntax-check rule
2098         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2099         Patch by Bruno Haible.
2100
2101 2011-03-19  Bruno Haible  <bruno@clisp.org>
2102
2103         socklen: Update comment.
2104         * m4/socklen.m4: Update comment about platforms.
2105
2106 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2107             Bruno Haible  <bruno@clisp.org>
2108
2109         inet_ntop, inet_pton: Simplify.
2110         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2111         documented to provide socklen_t and we already depend on sys_socket.
2112         * modules/inet_pton (Depends-on): Likewise.
2113         * lib/arpa_inet.in.h: Adjust comment.
2114
2115 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2116             Bruno Haible  <bruno@clisp.org>
2117
2118         netdb: Simplify.
2119         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2120         documented to provide socklen_t and we already depend on sys_socket.
2121         * lib/netdb.in.h: Adjust comment.
2122
2123 2011-03-19  Bruno Haible  <bruno@clisp.org>
2124
2125         sys_socket, netdb: Document problem with socklen_t.
2126         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2127         platforms.
2128         * doc/posix-headers/netdb.texi: Likewise.
2129
2130 2011-03-18  Eric Blake  <eblake@redhat.com>
2131
2132         maint.mk: let po check work in VPATH build
2133         * top/maint.mk (po_file): Allow cfg.mk override.
2134         (sc_po_check): Allow VPATH use.
2135         Reported by Jiri Denemark.
2136
2137 2011-03-16  Jim Meyering  <meyering@redhat.com>
2138
2139         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2140         Before, you would have had to create one .x-sc_ file per rule in order
2141         to exempt offending files.  Now, you may instead use a Make variable --
2142         usually defined in cfg.mk -- whose name identifies the affected rule.
2143         * top/maint.mk (_sc_excl): Define.
2144         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2145         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2146
2147 2011-03-13  Bruno Haible  <bruno@clisp.org>
2148
2149         ignore-value tests: Avoid warnings.
2150         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2151         empty for gcc < 3.4.
2152
2153 2011-03-13  Bruno Haible  <bruno@clisp.org>
2154
2155         passfd: Fix link error on Solaris.
2156         * modules/passfd (Description): Correct.
2157         (Depends-on): Add socketlib.
2158         (Link): New section.
2159         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2160
2161 2011-03-13  Bruno Haible  <bruno@clisp.org>
2162
2163         passfd: Fix link error on AIX 5.2.
2164         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2165
2166 2011-03-13  Bruno Haible  <bruno@clisp.org>
2167
2168         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2169         * lib/sys_socket.in.h: Include <stddef.h>.
2170         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2171         CMSG_FIRSTHDR. Remove unused variable.
2172
2173 2011-03-13  Bruno Haible  <bruno@clisp.org>
2174
2175         passfd: Fix compilation error on OpenBSD.
2176         * lib/passfd.c: Include <sys/uio.h>.
2177
2178 2011-03-13  Bruno Haible  <bruno@clisp.org>
2179
2180         passfd test: Fix warnings.
2181         * tests/test-passfd.c: Include <sys/wait.h>.
2182         (main): Fix typo.
2183
2184 2011-03-13  Bruno Haible  <bruno@clisp.org>
2185
2186         passfd module, part 4, tweaks.
2187         * tests/test-passfd.c: Reorder includes.
2188         (main): Fix perror and printf calls.
2189
2190 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2191
2192         passfd module, part 4.
2193         * modules/passfd-tests: New file.
2194         * tests/test-passfd.c: New file.
2195
2196 2011-03-13  Jim Meyering  <meyering@redhat.com>
2197
2198         Makefile: rely on GNU make; derive syntax-check rule names
2199         Rather than requiring that each sc_ rule be listed as a dependent
2200         of "check", use features of GNU make to derive the list.
2201         * Makefile (syntax-check-rules): Define.
2202         (check): Depend on the new variable, not the hard-coded list.
2203
2204 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2205             Bruno Haible  <bruno@clisp.org>
2206
2207         passfd module, part 3.
2208         * lib/passfd.h (recvfd): Add a flags argument.
2209         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
2210         (recvfd): Add a flags argument.
2211         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
2212         exists.
2213         * modules/passfd (Depends-on): Add cloexec.
2214         Suggested by Eric Blake.
2215
2216 2011-03-13  Bruno Haible  <bruno@clisp.org>
2217
2218         passfd module, part 2, tweaks.
2219         * modules/passfd (Files): Reorder.
2220         (Depends-on): Remove errno.
2221         (Include): Remove <sys/socket.h>, <sys/un.h>.
2222         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
2223         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
2224         specification header. Include <sys/socket.h> always. Don't include
2225         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
2226         (sendfd): Clarify that it sets errno when it fails.
2227         (recvfd): Fix specification.
2228
2229 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2230
2231         passfd module, part 2.
2232         * modules/passfd: New file.
2233         * lib/passfd.h: New file.
2234         * lib/passfd.c: New file.
2235
2236 2011-03-12  Bruno Haible  <bruno@clisp.org>
2237
2238         wcswidth, mbswidth: Avoid integer overflow.
2239         * lib/wcswidth.c: Include <limits.h>.
2240         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
2241         * lib/mbswidth.c: Include <limits.h>.
2242         (mbsnwidth): Avoid 'int' overflow.
2243         Reported by Jim Meyering.
2244
2245 2011-03-12  Bruno Haible  <bruno@clisp.org>
2246
2247         futimens, utimensat: Avoid endless recursion on Solaris 10.
2248         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
2249         Solaris.
2250         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
2251         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
2252
2253 2011-03-11  Jim Meyering  <meyering@redhat.com>
2254
2255         maint.mk: relax a regexp to accommodate other formatting styles
2256         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
2257         between "ngettext" and the following "(".
2258
2259 2011-03-11  Pádraig Brady <P@draigBrady.com>
2260
2261         maint.mk: suppress a false positive warning
2262         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
2263         diagnostics are marked with ngettext.
2264
2265 2011-03-10  Eric Blake  <eblake@redhat.com>
2266
2267         wchar: add explicit dependencies, for Tru64
2268         * modules/mbmemcasecoll (Depends-on): Add wchar.
2269         * modules/mbtowc (Depends-on): Likewise.
2270         * modules/vasnprintf (Depends-on): Likewise.
2271         * modules/unistdio/u-printf-args (Depends-on): Likewise.
2272         * modules/wctomb (Depends-on): Likewise.
2273         Reported by Peter O'Gorman.
2274
2275 2011-03-08  Bruno Haible  <bruno@clisp.org>
2276
2277         passfd module, part 1, tweaks.
2278         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
2279         Improve indentation. Improve AC_MSG_CHECKING messages.
2280         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
2281         gl_SOCKET_FAMILIES.
2282
2283 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2284
2285         passfd module, part 1.
2286         * m4/afunix.m4: New file.
2287         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
2288         sockets.
2289
2290 2011-03-08  Bruno Haible  <bruno@clisp.org>
2291
2292         regex-quote: New API.
2293         * lib/regex-quote.h: Include <stdbool.h>.
2294         (struct regex_quote_spec): New type.
2295         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2296         New declarations.
2297         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2298         'const struct regex_quote_spec *' argument.
2299         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
2300         (pcre_special): New constant.
2301         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
2302         New functions.
2303         (regex_quote_length, regex_quote_copy, regex_quote): Take a
2304         'const struct regex_quote_spec *' argument.
2305         * modules/regex-quote (Depends-on): Add stdbool.
2306         * tests/test-regex-quote.c (check): Update for new API. Add test for
2307         anchored results.
2308         * NEWS: Mention the API change.
2309         Reported by Reuben Thomas and Eric Blake.
2310
2311 2011-03-06  Bruno Haible  <bruno@clisp.org>
2312
2313         regex-quote: Fix creation of POSIX extended regular expressions.
2314         * lib/regex-quote.c (ere_special): Add grouping and alternation
2315         operators.
2316
2317 2011-03-05  Bruno Haible  <bruno@clisp.org>
2318
2319         doc: Improve doc regarding autopoint vs. gnulib.
2320         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
2321         disable autopoint while running autoreconf.
2322         Suggested by Ralf Wildenhues.
2323
2324 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2325
2326         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
2327         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
2328
2329 2011-03-03  Bruce Korb  <bkorb@gnu.org>
2330
2331         parse-duration: remove xalloc.h dependency
2332         * lib/parse-duration.c (parse_period): handle NULL return from
2333         strdup instead of calling xstrdup().
2334         * modules/parse-duration: remove "xalloc" dependency
2335
2336 2011-03-03  Matthew Booth  <mbooth@redhat.com>
2337
2338         bootstrap: honor m4_base when running aclocal
2339         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
2340
2341 2011-03-02  Jim Meyering  <meyering@redhat.com>
2342
2343         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
2344         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
2345         on request from Matt Booth.
2346
2347 2011-03-01  Eric Blake  <eblake@redhat.com>
2348
2349         test-link: work on Hurd
2350         * tests/test-link.h (test_link): Hurd rejects linking directories
2351         with EISDIR instead of the POSIX-mandated EPERM.
2352
2353 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
2354
2355         stdio: simplify by moving files to printf-posix, sigpipe
2356         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
2357         since this symbol is needed only if printf is replaced.
2358         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
2359         Require gl_ASM_SYMBOL_PREFIX.
2360         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
2361         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
2362         (Depends-on): Add 'raise'.
2363         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
2364         * modules/stdio (Files): Remove lib/stdio-write.c,
2365         m4/asm-underscore.m4.
2366         (Depends-on): Remove 'raise'.
2367
2368         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
2369         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
2370         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
2371         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
2372
2373 2011-02-28  Bruno Haible  <bruno@clisp.org>
2374
2375         localcharset: Assume ANSI C behaviour of free().
2376         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
2377         calling free().
2378         Suggested by Simon Josefsson <simon@josefsson.org>.
2379
2380 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
2381             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
2382             Bruno Haible  <bruno@clisp.org>  (tiny change)
2383
2384         On Cygwin, use /proc file system instead of win32 API.
2385         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
2386         Win32 file names.
2387         (DllMain): Simplify by removing Cygwin specific code.
2388         (find_shared_library_fullname): Use Linux specific implementation also
2389         for Cygwin.
2390         (get_shared_library_fullname): Update accordingly.
2391         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
2392         Win32 file names.
2393         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
2394         Cygwin specific code.
2395
2396 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
2397             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
2398
2399         Fix OpenMP flag detection for various Fortran compilers.
2400         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
2401         OpenMP-conditional compilation construct, to force compile
2402         failure with missing OpenMP flag.
2403         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
2404
2405 2011-02-25  Eric Blake  <eblake@redhat.com>
2406
2407         strstr: expand test coverage
2408         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
2409         compilation.
2410         * tests/test-memmem.c (main): Duplicate tests.
2411         * tests/test-strcasestr.c (main): Likewise.
2412         * tests/test-c-strcasestr.c (main): Likewise.
2413
2414 2011-02-25  Jim Meyering  <meyering@redhat.com>
2415
2416         maint.mk: detect missing-NL-at-EOF, too
2417         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
2418         it also detects when a file lacks a newline at EOF.
2419         (require_exactly_one_NL_at_EOF_): Renamed from
2420         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
2421         since people may well have .x-sc_... file names tied to the
2422         existing name.  Suggested by Eric Blake.
2423
2424 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2425
2426         dirname: move m4/dos.m4 functionality into lib/dosname.h
2427
2428         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
2429         extracts symbols from it, puts them into config.h; but it's much
2430         easier to use the symbols directly.  filename.h already does this,
2431         but it disagrees with dos.m4 in some respects.  This patch
2432         introduces a different include file dosname.h that packages up
2433         dos.m4, and then later we can work on merging filename.h and
2434         dosname.h.  Applications that need only the easy-to-configure
2435         symbols should consider including dosname.h rather than dirname.h.
2436         * NEWS: Mention incompatible changes.
2437         * m4/dos.m4: Remove.
2438         * lib/dosname.h, modules/dosname: New files.
2439         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
2440         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
2441         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
2442         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
2443         Include dosname.h, not dirname.h.
2444         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
2445         Include dosname.h, for definitions of symbols like ISSLASH
2446         that used to be in config.h.
2447         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
2448         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
2449         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2450         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
2451         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
2452         * modules/rmdir (Files): Likewise.
2453         * modules/stat (Files): Likewise.
2454         * modules/unlink (Files): Likewise.
2455         * modules/dirname-lgpl (Depends-on): Add dosname.
2456         * modules/lstat (Depends-on): Likewise.
2457         * modules/openat (Depends-on): Likewise.
2458         * modules/rmdir (Depends-on): Likewise.
2459         * modules/savewd (Depends-on): Likewise.
2460         * modules/stat (Depends-on): Likewise.
2461         * modules/unlink (Depends-on): Likewise.
2462         * modules/openat (Depends-on): Remove dirname-lgpl.
2463         * modules/savewd (Depends-on): Likewise.
2464         * tests/test-dirname.c: Do not use removed symbols like
2465         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
2466         the remaining symbols, e.g., ISSLASH ('\\').
2467
2468 2011-02-25  Eric Blake  <eblake@redhat.com>
2469
2470         strstr: revert patches that introduced bug and pessimization
2471         * lib/str-two-way.h: Add another reference.
2472         (two_way_short_needle, two_way_long_needle): Revert changes from
2473         2011-02-24; they pessimize search speed.
2474         (critical_factorization): Partially revert changes from
2475         2010-06-22; they violate the requirement that the left half of the
2476         needle be smaller than the period of the needle.
2477
2478 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2479
2480         filenamecat: remove unnecessary dependency on dirname-lgpl
2481         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
2482         is no direct dependency, just an indirect one via filenamecat-lgpl.
2483
2484         remove: remove unnecessary use of m4/dos.m4
2485         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
2486         * modules/remove (FILES): Remove m4/dos.m4.
2487
2488         * lib/openat-proc.c: Don't include dirname.h; not needed.
2489
2490         backupfile: remove unnecessary use of m4/dos.m4
2491         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
2492         of its symbols are used by the backupfile code.  backupfile.c does
2493         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
2494         for the rare case of programs that want all their backup file
2495         names to live within 8+3 limits, and dos.m4 doesn't address that.
2496         * modules/backupfile (Files): Remove m4/dos.m4.
2497
2498 2011-02-24  Jim Meyering  <meyering@redhat.com>
2499
2500         strstr: fix a bug whereby strstr would mistakenly return NULL
2501         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
2502         in period calculation.
2503         (two_way_long_needle): Likewise.
2504         The original problem was reported by Mike Stump in
2505         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
2506         Ralf Wildenhues provided the short needle and haystack.
2507         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
2508         Add a more involved test to trigger the bug in two_way_long_needle.
2509
2510 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2511
2512         gnulib-tool: remove use of bold display in help screen
2513         * gnulib-tool (func_usage): Do not use bold display anymore in the
2514         help screen.  That was just meant to be a temporary emphasis for a
2515         backward-incompatible change.
2516
2517 2011-02-23  Bruno Haible  <bruno@clisp.org>
2518
2519         Fix misindentation of preprocessor directives.
2520         * lib/argp-namefrob.h: Reindent preprocessor directives.
2521         * lib/getopt_int.h (struct _getopt_data): Likewise.
2522         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
2523         * lib/vasnprintf.c (decode_long_double): Likewise.
2524         * tests/test-argmatch.c: Insert blank lines, for clarity.
2525         * tests/test-exclude.c: Likewise.
2526
2527 2011-02-22  Bruno Haible  <bruno@clisp.org>
2528
2529         ioctl: Fix for MacOS X in 64-bit mode.
2530         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
2531         value.
2532         Suggested by Eric Blake.
2533         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
2534
2535 2011-02-22  Jim Meyering  <meyering@redhat.com>
2536
2537         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
2538         * Makefile (sc_cpp_indent_check): Don't limit the check to files
2539         in lib/.
2540
2541 2011-02-22  Eric Blake  <eblake@redhat.com>
2542
2543         maint: avoid any CDPATH issue
2544         * Makefile (sc_cpp_indent_check): Anchor cd argument.
2545
2546         maint: adjust cpp indentation for my modules, as well
2547         * Makefile (sc_cpp_indent_check): Add my name.
2548         * lib/fbufmode.c: Filter through cppi.
2549         * lib/fpurge.c: Likewise.
2550         * lib/freadable.c: Likewise.
2551         * lib/freading.c: Likewise.
2552         * lib/fwritable.c: Likewise.
2553         * lib/fwriting.c: Likewise.
2554         * lib/sigaction.c: Likewise.
2555
2556 2011-02-22  Jim Meyering  <meyering@redhat.com>
2557
2558         maint: adjust cpp indentation to reflect nesting depth
2559         I.e., in a block of code that begins with an unnested "#if",
2560         put one space between the "#" in column 1 and following token.
2561         For example,
2562         -#include <sys/vfs.h>
2563         +# include <sys/vfs.h>
2564         Do this only in .c files that are part of a module I maintain.
2565         * lib/linkat.c: Filter through cppi.
2566         * lib/nanosleep.c: Likewise.
2567         * lib/openat.c: Likewise.
2568         * lib/openat-die.c: Likewise.
2569         * lib/dup3.c: Likewise.
2570         * lib/fchownat.c: Likewise.
2571         * lib/flock.c: Likewise.
2572         * lib/fsync.c: Likewise.
2573         * lib/fts.c: Likewise.
2574         * lib/getpass.c: Likewise.
2575         * lib/gettimeofday.c: Likewise.
2576         * lib/userspec.c: Likewise.
2577         * Makefile (sc_cpp_indent_check): New rule, to check this.
2578
2579 2011-02-22  Bruno Haible  <bruno@clisp.org>
2580
2581         New module 'wctomb'.
2582         * lib/stdlib.in.h (wctomb): New declaration.
2583         * lib/wctomb.c: New file.
2584         * lib/wctomb-impl.h: New file.
2585         * m4/wctomb.m4: New file.
2586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
2587         REPLACE_WCTOMB.
2588         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
2589         REPLACE_WCTOMB.
2590         * modules/wctomb: New file.
2591         * tests/test-stdlib-c++.cc: Test signature of wctomb.
2592         * doc/posix-functions/wctomb.texi: Mention the new module.
2593         * modules/wctob (Depends-on): Add wctomb.
2594
2595 2011-02-22  Bruno Haible  <bruno@clisp.org>
2596
2597         New module 'mbtowc'.
2598         * lib/stdlib.in.h (mbtowc): New declaration.
2599         * lib/mbtowc.c: New file.
2600         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
2601         * m4/mbtowc.m4: New file.
2602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
2603         REPLACE_MBTOWC.
2604         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
2605         REPLACE_MBTOWC.
2606         * modules/mbtowc: New file.
2607         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
2608         * doc/posix-functions/mbtowc.texi: Mention the new module.
2609         * modules/btowc (Depends-on): Add mbtowc.
2610
2611 2011-02-22  Bruno Haible  <bruno@clisp.org>
2612
2613         wcrtomb: Add more tests for native Windows platforms.
2614         * tests/test-wcrtomb-w32-1.sh: New file.
2615         * tests/test-wcrtomb-w32-2.sh: New file.
2616         * tests/test-wcrtomb-w32-3.sh: New file.
2617         * tests/test-wcrtomb-w32-4.sh: New file.
2618         * tests/test-wcrtomb-w32-5.sh: New file.
2619         * tests/test-wcrtomb-w32.c: New file.
2620         * modules/wcrtomb-tests (Files): Add them.
2621         (Makefile.am): Arrange to run these tests.
2622         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
2623         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
2624
2625 2011-02-20  Bruno Haible  <bruno@clisp.org>
2626
2627         wcrtomb: Enhance test.
2628         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
2629
2630 2011-02-20  Bruno Haible  <bruno@clisp.org>
2631
2632         mbrtowc: Tiny optimization.
2633         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
2634
2635 2011-02-20  Jim Meyering  <meyering@redhat.com>
2636
2637         test-exclude.c: remove unmatched #endif
2638         * tests/test-exclude.c: Remove stray #endif, left over from
2639         the change of a week ago.
2640
2641 2011-02-19  Jim Meyering  <meyering@redhat.com>
2642
2643         git-version-gen: skip "-dirty" check when appropriate
2644         * build-aux/git-version-gen: Don't run any git commands when the
2645         version string comes from .tarball-version.  Prior to this, we
2646         would run git update-index --refresh even from a just-unpacked
2647         tarball directory, and that could affect a .git/ directory in a
2648         parent of the build directory.  Reported by Mike Frysinger.
2649
2650 2011-02-19  Bruno Haible  <bruno@clisp.org>
2651
2652         unictype/property-byname: Reduce the size of the 'data' segment.
2653         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
2654
2655 2011-02-19  Bruno Haible  <bruno@clisp.org>
2656
2657         unictype/scripts: Reduce the size of the 'data' segment.
2658         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
2659         '%pic'.
2660         * lib/unictype/scripts_byname.gperf: Regenerated.
2661
2662 2011-02-19  Bruno Haible  <bruno@clisp.org>
2663
2664         stdint: Update documentation.
2665         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
2666
2667 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
2668
2669         stdint: omit redundant check for wchar.h
2670         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
2671         always tests whether wchar.h exists, so remove the now-redundant test.
2672
2673 2011-02-18  Bruno Haible  <bruno@clisp.org>
2674
2675         stdint: Cut dependency to module 'wchar'.
2676         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
2677         include the necessary prerequisites.
2678         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
2679         * modules/stdint (Depends-on): Remove wchar.
2680         (Makefile.am): Substitute HAVE_WCHAR_H.
2681         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
2682
2683 2011-02-18  Eric Blake  <eblake@redhat.com>
2684
2685         longlong: skip, rather than fail, on cross-compilation
2686         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
2687         when cross-compiling; regression from 2011-02-16.
2688
2689 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2690
2691         * NEWS: Mention 2011-02-08 change to stdlib.
2692
2693 2011-02-17  Bruno Haible  <bruno@clisp.org>
2694
2695         getloadavg: Add comments about platforms.
2696         * m4/getloadavg.m4: Add comment.
2697         * lib/getloadavg.c: Likewise.
2698
2699 2011-02-17  Bruno Haible  <bruno@clisp.org>
2700
2701         getloadavg: Fix link error on Solaris 2.6.
2702         * modules/getloadavg (Link): New section.
2703         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
2704         linking test-getloadavg.
2705         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
2706         getloadavg.
2707
2708 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
2709
2710         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
2711         It was 'int', but this doesn't match the IRIX 6.5 manual.
2712         Suggested by Bruno Haible in
2713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
2714
2715 2011-02-17  Bruno Haible  <bruno@clisp.org>
2716
2717         havelib: Fix comments.
2718         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
2719         change.
2720
2721 2011-02-17  Bruno Haible  <bruno@clisp.org>
2722
2723         havelib: Update config.rpath.
2724         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
2725
2726 2011-02-17  Bruno Haible  <bruno@clisp.org>
2727
2728         getloadavg test: Add some plausibility checks.
2729         * tests/test-getloadavg.c (check_avg): Print a warning when the value
2730         is improbable.
2731
2732 2011-02-16  Eric Blake  <eblake@redhat.com>
2733
2734         maintainer-makefile: make syntax-check a no-op from tarballs
2735         * top/maint.mk (no-vc-detected): New rule.
2736         (local-checks-available): Use it to avoid hanging if someone tries
2737         'make syntax-check' from a tarball.  Also append to any non-syntax
2738         checks already defined in cfg.mk.
2739
2740 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
2741
2742         longlong: tune, particularly for common case of c99
2743
2744         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
2745         or running anything if c99, or if unsigned long long int does not
2746         work.  In either case, we know the answer without further tests.
2747         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
2748         it at most once, and use its results for both long long int and
2749         unsigned long long int.  This is more likely to be efficient in
2750         the common case where the program wants to check for both long
2751         long int and unsigned long long int.
2752         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
2753         since the answer is already known.
2754
2755 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
2756
2757         getloadavg: set errno
2758         * lib/getloadavg.c: Set errno when returning -1.  If no other
2759         error number looks appropriate, set it to ENOSYS if the getloadavg
2760         looks like it can't possibly ever work, ENOTSUP otherwise.
2761         Suggested by Bruno Haible in
2762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
2763
2764         getloadavg: trim unused parts and speed up 'configure'
2765         * NEWS: Document this.
2766         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
2767         always compiled if getloadavg is absent.
2768         Move test code to ...
2769         * tests/test-getloadavg.c: New file, containing previous
2770         contents of test from lib/getloadavg.c.  It also contains
2771         suggestions by Bruno Haible in
2772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
2773         * modules/getloadavg-tests: New file.
2774         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
2775         Do tests in the same order as they're needed for getloadavg.c.
2776         Omit setgid-related tests that generate symbols KMEM_GROUP,
2777         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
2778         Do only the tests that are needed to see whether the system has
2779         getloadavg, moving the other tests into ...
2780         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
2781         NLIST_NAME_UNION; nobody should be using it.  Do not define
2782         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
2783         relevant, as the user of this module shouldn't care how getloadavg
2784         is implemented.
2785
2786         getloadavg: omit unused var
2787         * lib/getloadavg.c (getloadavg): Omit unused local variable.
2788
2789 2011-02-15  Jim Meyering  <meyering@redhat.com>
2790
2791         doc: update users.txt
2792         * users.txt: Update iwhd's URL.
2793
2794 2011-02-13  Bruno Haible  <bruno@clisp.org>
2795
2796         Consistent macro naming for macros that use GCC __attribute__.
2797         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
2798         _ATTRIBUTE_NONNULL_.
2799         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
2800         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
2801         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
2802         ATTRIBUTE_DEPRECATED.
2803         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
2804         ATTRIBUTE_NORETURN.
2805         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2806         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2807         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2808         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
2809         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
2810         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
2811         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
2812         ATTRIBUTE_SENTINEL.
2813         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
2814         ATTRIBUTE_RETURN_CHECK.
2815         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
2816         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
2817         ATTRIBUTE_NORETURN.
2818         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
2819         Reported by Paul Eggert.
2820
2821 2011-02-13  Bruno Haible  <bruno@clisp.org>
2822
2823         Don't interfere with a program's definition of __attribute__.
2824         * lib/argp.h (__attribute__): Remove definition.
2825         (_GL_ATTRIBUTE_FORMAT): New macro.
2826         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
2827         * lib/argp-fmtstream.h (__attribute__): Remove definition.
2828         (_GL_ATTRIBUTE_FORMAT): New macro.
2829         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
2830         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
2831         GCC 3 or newer.
2832         * lib/error.h (__attribute__): Remove definition.
2833         (_GL_ATTRIBUTE_FORMAT): New macro.
2834         (error, error_at_line): Use it.
2835         * lib/hash.h (__attribute__): Remove definition.
2836         (ATTRIBUTE_WUR): Update definition. Define always.
2837         * lib/openat.h (__attribute__): Remove definition.
2838         (ATTRIBUTE_NORETURN): Update definition. Define always.
2839         * lib/sigpipe-die.h (__attribute__): Remove definition.
2840         (ATTRIBUTE_NORETURN): Update definition. Define always.
2841         * lib/vasnprintf.h (__attribute__): Remove definition.
2842         (_GL_ATTRIBUTE_FORMAT): New macro.
2843         (asnprintf, vasnprintf): Use it.
2844         * lib/xalloc.h (__attribute__): Remove definition.
2845         (ATTRIBUTE_NORETURN): Update definition. Define always.
2846         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
2847         * lib/xmemdup0.h (__attribute__): Remove definition.
2848         (ATTRIBUTE_NORETURN): Update definition. Define always.
2849         * lib/xprintf.h (__attribute__): Remove definition.
2850         (_GL_ATTRIBUTE_FORMAT): New macro.
2851         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
2852         * lib/xstrtol.h (__attribute__): Remove definition.
2853         (ATTRIBUTE_NORETURN): Update definition. Define always.
2854         * lib/xvasprintf.h (__attribute__): Remove definition.
2855         (_GL_ATTRIBUTE_FORMAT): New macro.
2856         (xasprintf, xvasprintf): Use it.
2857         * tests/test-argmatch.c (__attribute__): Remove definition.
2858         (ATTRIBUTE_NORETURN): Update definition. Define always.
2859         * tests/test-exclude.c (__attribute__): Remove definition.
2860         (ATTRIBUTE_NORETURN): Update definition. Define always.
2861         Reported by Paul Eggert.
2862
2863 2011-02-13  Bruno Haible  <bruno@clisp.org>
2864
2865         mbrtowc: Add more tests for native Windows platforms.
2866         * tests/test-mbrtowc-w32-1.sh: New file.
2867         * tests/test-mbrtowc-w32-2.sh: New file.
2868         * tests/test-mbrtowc-w32-3.sh: New file.
2869         * tests/test-mbrtowc-w32-4.sh: New file.
2870         * tests/test-mbrtowc-w32-5.sh: New file.
2871         * tests/test-mbrtowc-w32.c: New file.
2872         * modules/mbrtowc-tests (Files): Add them.
2873         (Makefile.am): Arrange to run these tests.
2874         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
2875         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
2876
2877 2011-02-13  Bruno Haible  <bruno@clisp.org>
2878
2879         mbrtowc: Work around native Windows bug.
2880         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
2881         guess when no suitable locale for testing was found.
2882         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
2883
2884 2011-02-13  Bruno Haible  <bruno@clisp.org>
2885
2886         mbsinit: Work around mingw bug.
2887         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
2888         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
2889         Windows.
2890         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
2891
2892 2011-02-13  Bruno Haible  <bruno@clisp.org>
2893
2894         mbsinit: Don't crash for a NULL argument.
2895         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
2896         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
2897
2898 2011-02-13  Bruno Haible  <bruno@clisp.org>
2899
2900         Don't interfere with a program's definition of __attribute__.
2901         * lib/stdio.in.h (__attribute__): Remove definition.
2902         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
2903         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
2904         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
2905         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
2906         * lib/string.in.h (__attribute__): Remove definition.
2907         Reported by Paul Eggert.
2908
2909 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2910
2911         stdlib: don't get in the way of non-GCC __attribute__
2912         See thread starting at
2913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
2914         Revert previous stdlib change, installing the following instead:
2915         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
2916         to get in the way of a non-GCC compiler that supports __attribute__.
2917         (_GL_ATTRIBUTE_RETURN): New macro.
2918         (_Exit): Use it instead of __attribute__.
2919
2920 2011-02-12  Bruno Haible  <bruno@clisp.org>
2921
2922         quotearg test: Avoid test failure on mingw.
2923         * tests/test-quotearg.sh: Convert the locale identifier from native
2924         Windows syntax to Unix syntax.
2925
2926 2011-02-12  Bruno Haible  <bruno@clisp.org>
2927
2928         setlocale: Prefer gnulib's override over libintl's override.
2929         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
2930         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
2931         GNULIB_defined_setlocale is set.
2932
2933 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
2934
2935         stdlib: support non-GCC __attribute__
2936
2937         Fix a serious and tricky problem encountered when attempting to
2938         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
2939         5.5, but it crashed due to memory corruption on Solaris 10 with
2940         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
2941         bits that are otherwise zero.  This tagging is optional inside
2942         Emacs but is preferred and is used when __attribute__ ((__aligned
2943         (8))) works, as it does with both recent-enough GCC and with Sun C
2944         5.11.  However, Sun C 5.11 is not GCC and does not #define
2945         __GNUC__ and __GNUC_MINOR__.
2946
2947         When I added the getloadavg module to Emacs, it brought in
2948         stdlib.in.h, which contained this fragment:
2949
2950            #ifndef __attribute__
2951            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
2952            #  define __attribute__(Spec)   /* empty */
2953            # endif
2954            #endif
2955
2956         When files that include <stdlib.h> were compiled with Sun C 5.11,
2957         the above code disabled __attribute__ ((__aligned (8))), which
2958         caused variables to not be properly aligned, which eventually led
2959         to the pointer corruption mentioned above.  (This was a bit hard
2960         to diagnose, unfortunately.)
2961
2962         Several "#define __attribute__(X) /* empty */" code snippets need
2963         to be eradicated from Gnulib to work with non-GCC compilers that
2964         support __attribute__.  The Autoconf way to do this is to test for
2965         each kind of attribute that we want support for, and selectively
2966         enable that in source code.
2967
2968         Fix this problem just for stdlib.h, by adding a test for the
2969         __noreturn__ attribute, and change stdlib.in.h to use that test
2970         when needed.  This technique can be easily generalized to the
2971         other *.in.h files and attributes, and a similar technique can be
2972         used for *.h and *.c files.  This patch is enough to solve the
2973         problem for Emacs + getloadavg, and I thought I'd publish it for
2974         feedback before undertaking further, similar fixes in other
2975         modules.
2976
2977         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
2978         because it's not needed for stdlib.h.  It merely substitutes the
2979         value directly into stdlib.h.  We may well need to #define it, or
2980         similar symbols, for other modules, but it's nice to also have an
2981         option to not #define it for applications like Emacs that do not
2982         need it.
2983
2984         * lib/stdlib.in.h (__attribute__): Do not #define.
2985         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
2986         be defined only if the _Exit module is also used.
2987         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
2988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
2989         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
2990         platforms.
2991         * modules/_Exit (Files): Add m4/attribute.m4.
2992         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
2993         * m4/attribute.m4: New file.
2994
2995 2011-02-12  Bruno Haible  <bruno@clisp.org>
2996
2997         wcsrtombs: Work around bug on native Windows.
2998         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
2999         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3000         instead of len.
3001         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3002
3003 2011-02-12  Bruno Haible  <bruno@clisp.org>
3004
3005         mbsrtowcs: Work around bug on native Windows.
3006         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3007         against mingw bug.
3008         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3009
3010 2011-02-12  Bruno Haible  <bruno@clisp.org>
3011
3012         Avoid setlocale bugs in tests.
3013         * modules/btowc (Dependencies): Add setlocale.
3014         * modules/c-strcase (Dependencies): Likewise.
3015         * modules/mbmemcasecmp (Dependencies): Likewise.
3016         * modules/mbmemcasecoll (Dependencies): Likewise.
3017         * modules/mbrtowc (Dependencies): Likewise.
3018         * modules/mbscasecmp (Dependencies): Likewise.
3019         * modules/mbscasestr (Dependencies): Likewise.
3020         * modules/mbschr (Dependencies): Likewise.
3021         * modules/mbscspn (Dependencies): Likewise.
3022         * modules/mbsinit (Dependencies): Likewise.
3023         * modules/mbsncasecmp (Dependencies): Likewise.
3024         * modules/mbsnrtowcs (Dependencies): Likewise.
3025         * modules/mbspbrk (Dependencies): Likewise.
3026         * modules/mbspcasecmp (Dependencies): Likewise.
3027         * modules/mbsrchr (Dependencies): Likewise.
3028         * modules/mbsrtowcs (Dependencies): Likewise.
3029         * modules/mbsspn (Dependencies): Likewise.
3030         * modules/mbsstr (Dependencies): Likewise.
3031         * modules/nl_langinfo (Dependencies): Likewise.
3032         * modules/quotearg (Dependencies): Likewise.
3033         * modules/unicase/locale-language (Dependencies): Likewise.
3034         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3035         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3036         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3037         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3038         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3039         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3040         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3041         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3042         * modules/vasnprintf-posix (Dependencies): Likewise.
3043         * modules/wcrtomb (Dependencies): Likewise.
3044         * modules/wcsnrtombs (Dependencies): Likewise.
3045         * modules/wcsrtombs (Dependencies): Likewise.
3046
3047 2011-02-12  Bruno Haible  <bruno@clisp.org>
3048
3049         setlocale: Workaround native Windows bug.
3050         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3051         succeeds but sets LC_CTYPE to "C", report a failure.
3052         * tests/test-setlocale2.sh: New file.
3053         * tests/test-setlocale2.c: New file.
3054         * modules/setlocale-tests (Files): Add the new files.
3055         (Makefile.am): Enable test-setlocale2.sh test.
3056         * doc/posix-functions/setlocale.texi: Mention workaround.
3057
3058 2011-02-11  Bruno Haible  <bruno@clisp.org>
3059
3060         Tests for module 'setlocale'.
3061         * modules/setlocale-tests: New file.
3062         * tests/test-setlocale1.sh: New file.
3063         * tests/test-setlocale1.c: New file.
3064
3065         New module 'setlocale'.
3066         * lib/locale.in.h (setlocale): New declaration.
3067         * lib/setlocale.c: New file, based on
3068         gettext/gettext-runtime/intl/setlocale.c.
3069         * m4/setlocale.m4: New file.
3070         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3071         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3072         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3073         REPLACE_SETLOCALE.
3074         * modules/setlocale: New file.
3075         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3076         * doc/posix-functions/setlocale.texi: Mention the new module.
3077
3078 2011-02-11  Bruno Haible  <bruno@clisp.org>
3079
3080         Prepare for locale dependent tests on mingw.
3081         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3082         because it has the wrong locale encoding.
3083         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3084         French_France.1252 instead of "fr".
3085         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3086         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3087         because it has the wrong locale encoding.
3088         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3089         native Windows, try Turkish_Turkey.65001.
3090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3091         Chinese_China.54936.
3092
3093         Prepare for locale dependent tests on mingw.
3094         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3095         differently.
3096         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3097         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3098         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3099         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3100
3101 2011-02-11  Eric Blake  <eblake@redhat.com>
3102
3103         strptime: avoid compiler warnings
3104         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3105         compiler warnings about dead code.
3106         Reported by Daniel P. Berrange.
3107
3108 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3109
3110         doc: update users.txt
3111         * users.txt: Add rcs.
3112
3113 2011-02-10  John W. Eaton  <jwe@gnu.org>
3114
3115         doc: update users.txt
3116         * users.txt: Add octave.
3117
3118 2011-02-10  Jim Meyering  <meyering@redhat.com>
3119
3120         doc: update users.txt
3121         * users.txt: Add iwhd.
3122
3123 2011-02-09  Bruno Haible  <bruno@clisp.org>
3124
3125         gnulib-tool: Make copyright notice adjustment more robust.
3126         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3127         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3128         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3129         License".
3130         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3131
3132 2011-02-06  Bruno Haible  <bruno@clisp.org>
3133
3134         New module 'towctrans'.
3135         * modules/towctrans: New file.
3136         * lib/wctype.in.h (towctrans): New declaration.
3137         * lib/towctrans.c: New file.
3138         * lib/towctrans-impl.h: New file.
3139         * m4/towctrans.m4: New file.
3140         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3141         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3142         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3143         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3144         * doc/posix-functions/towctrans.texi: Mention the new module.
3145
3146 2011-02-06  Bruno Haible  <bruno@clisp.org>
3147
3148         New module 'wctrans'.
3149         * modules/wctrans: New file.
3150         * lib/wctype.in.h (wctrans): New declaration.
3151         * lib/wctrans.c: New file.
3152         * lib/wctrans-impl.h: New file.
3153         * m4/wctrans.m4: New file.
3154         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3155         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3156         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3157         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3158         * doc/posix-functions/wctrans.texi: Mention the new module.
3159
3160 2011-02-06  Bruno Haible  <bruno@clisp.org>
3161
3162         New module 'iswctype'.
3163         * modules/iswctype: New file.
3164         * lib/wctype.in.h (iswctype): New declaration.
3165         * lib/iswctype.c: New file.
3166         * lib/iswctype-impl.h: New file.
3167         * m4/iswctype.m4: New file.
3168         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3169         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3170         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3171         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3172         * doc/posix-functions/iswctype.texi: Mention the new module and the
3173         HP-UX 11.00 problem.
3174
3175 2011-02-06  Bruno Haible  <bruno@clisp.org>
3176
3177         New module 'wctype'.
3178         * modules/wctype: Change to represent the wctype() substitute.
3179         * lib/wctype.in.h (wctype): New declaration.
3180         * lib/wctype.c: New file.
3181         * lib/wctype-impl.h: New file.
3182         * m4/wctype.m4: New file.
3183         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3184         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3185         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3186         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3187         * doc/posix-functions/wctype.texi: Mention the new module and the
3188         HP-UX 11.00 problem.
3189
3190 2011-02-06  Bruno Haible  <bruno@clisp.org>
3191
3192         wctype-h: Ensure wctype_t and wctrans_t are defined.
3193         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3194         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3195         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3196         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3197         HAVE_WCTRANS_T.
3198         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3199
3200 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3201
3202         flock: fix license typo
3203
3204         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3205         omitted.
3206
3207 2011-02-08  Bruno Haible  <bruno@clisp.org>
3208
3209         Split large sed scripts, for HP-UX sed.
3210         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
3211         to avoid HP-UX limit of 99 commands, in the near future.
3212         * modules/stdlib (Makefile.am): Likewise.
3213         * modules/unistd (Makefile.am): Likewise.
3214         * modules/wchar (Makefile.am): Likewise.
3215         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3216         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
3217         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
3218
3219 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3220             Bruno Haible  <bruno@clisp.org>
3221
3222         stdlib: improve random_r modularization
3223         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
3224         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
3225         you also need the random_r module to get this material right.
3226         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
3227         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
3228         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
3229
3230 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3231
3232         stdlib: don't depend on stdint
3233         * lib/stdlib.in.h: Don't include <stdint.h> merely because
3234         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
3235         be independent of whether stdint.h is needed.
3236         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
3237         here, instead of ...
3238         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
3239         struct random_data should be using the random_r module, not just
3240         the stdlib module (which wouldn't make sense: what package needs
3241         just struct random_data without also needing random_r?).
3242         * modules/stdlib (Depends-on): Remove stdint.
3243
3244         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
3245         See the thread rooted at
3246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
3247         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
3248         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
3249         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
3250         __VMS)); previously it was always included (via fcntl--.h).
3251         (getloadavg): Do not use c_strtod.  Instead, approximate it by
3252         hand; this is good enough for load averages.  Also, do not use
3253         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
3254         flags directly if available and don't bother otherwise.  (Packages
3255         that need the extra reliability should use the modules that define
3256         these flags on older platforms that lack them.)
3257         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
3258         fcntl-safer.
3259
3260 2011-02-08  Jim Meyering  <meyering@redhat.com>
3261
3262         di-set.h, ino-map.h: add multiple-inclusion guard
3263         Technically, the guard is required only for ino-map.h, due to its
3264         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
3265         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
3266         * lib/ino-map.h: Likewise.
3267
3268 2011-02-06  Bruno Haible  <bruno@clisp.org>
3269
3270         iswblank: Ensure declaration on glibc systems.
3271         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
3272         * modules/iswblank (Dependencies): Add 'extensions'.
3273         * doc/posix-functions/iswblank.texi: Document the glibc problem.
3274
3275 2011-02-06  Bruno Haible  <bruno@clisp.org>
3276
3277         New module 'iswblank'.
3278         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
3279         * modules/iswblank: New file.
3280         * modules/wctype-h (Files): Remove lib/iswblank.c.
3281         (Makefile.am): Substitute GNULIB_ISWBLANK.
3282         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
3283         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
3284         (gl_WCTYPE_H_DEFAULTS): New macro.
3285         (gl_WCTYPE_H): Require it. Remove iswblank related code.
3286         * modules/iswblank-tests: New file.
3287         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
3288         * tests/test-wctype-h.c (main): Remove iswblank tests.
3289         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
3290         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
3291         of 'wctype-h'.
3292         * NEWS: Mention the change.
3293         * modules/mbchar (Depends-on): Add iswblank.
3294
3295 2011-02-08  Bruno Haible  <bruno@clisp.org>
3296
3297         di-set tests: Refactor.
3298         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
3299         unnecessary includes.
3300         (ASSERT): Remove macro.
3301         (main): Make C90 compliant by avoiding variable declaration after
3302         statement.
3303         * modules/di-set-tests (Files): Add tests/macros.h.
3304
3305 2011-02-08  Bruno Haible  <bruno@clisp.org>
3306
3307         ino-map tests: Refactor.
3308         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
3309         unnecessary includes.
3310         (ASSERT): Remove macro.
3311         (main): Make C90 compliant by avoiding variable declaration after
3312         statement.
3313         * modules/ino-map-tests (Files): Add tests/macros.h.
3314
3315 2011-02-08  Jim Meyering  <meyering@redhat.com>
3316
3317         di-set: add "const" to a cast
3318         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
3319         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
3320
3321 2011-02-06  Bruno Haible  <bruno@clisp.org>
3322
3323         Rename module 'wctype' to 'wctype-h'.
3324         * modules/wctype-h: Renamed from modules/wctype.
3325         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
3326         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
3327         (Files, Depends-on, Makefile.am): Update.
3328         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
3329         (Files, Makefile.am): Update.
3330         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
3331         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
3332         * doc/posix-headers/wctype.texi: Update.
3333         * doc/posix-functions/iswalnum.texi: Update.
3334         * doc/posix-functions/iswalpha.texi: Update.
3335         * doc/posix-functions/iswblank.texi: Update.
3336         * doc/posix-functions/iswcntrl.texi: Update.
3337         * doc/posix-functions/iswdigit.texi: Update.
3338         * doc/posix-functions/iswgraph.texi: Update.
3339         * doc/posix-functions/iswlower.texi: Update.
3340         * doc/posix-functions/iswprint.texi: Update.
3341         * doc/posix-functions/iswpunct.texi: Update.
3342         * doc/posix-functions/iswspace.texi: Update.
3343         * doc/posix-functions/iswupper.texi: Update.
3344         * doc/posix-functions/iswxdigit.texi: Update.
3345         * doc/posix-functions/towlower.texi: Update.
3346         * doc/posix-functions/towupper.texi: Update.
3347         * NEWS: Mention the change.
3348         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
3349         * modules/mbchar (Dependencies): Likewise.
3350         * modules/mbswidth (Dependencies): Likewise.
3351         * modules/quotearg (Dependencies): Likewise.
3352         * modules/regex (Dependencies): Likewise.
3353         * modules/wcscasecmp (Dependencies): Likewise.
3354         * modules/wcsncasecmp (Dependencies): Likewise.
3355         * modules/wcwidth (Dependencies): Likewise.
3356
3357 2011-02-06  Bruno Haible  <bruno@clisp.org>
3358
3359         New module 'wcswidth'.
3360         * modules/wcswidth: New file.
3361         * lib/wchar.in.h (wcswidth): New declaration.
3362         * lib/wcswidth.c: New file.
3363         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
3364         * m4/wcswidth.m4: New file.
3365         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
3366         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
3367         REPLACE_WCSWIDTH.
3368         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
3369         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
3370         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
3371         * doc/posix-functions/wcswidth.texi: Mention the new module.
3372
3373 2011-02-06  Bruno Haible  <bruno@clisp.org>
3374
3375         New module 'wcstok'.
3376         * modules/wcstok: New file.
3377         * lib/wchar.in.h (wcstok): New declaration.
3378         * lib/wcstok.c: New file.
3379         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
3380         * m4/wcstok.m4: New file.
3381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
3382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
3383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
3384         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
3385         * doc/posix-functions/wcstok.texi: Mention the new module.
3386
3387 2011-02-06  Bruno Haible  <bruno@clisp.org>
3388
3389         New module 'wcsstr'.
3390         * modules/wcsstr: New file.
3391         * lib/wchar.in.h (wcsstr): New declaration.
3392         * lib/wcsstr.c: New file.
3393         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
3394         * m4/wcsstr.m4: New file.
3395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
3396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
3397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
3398         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
3399         * doc/posix-functions/wcsstr.texi: Mention the new module.
3400
3401 2011-02-06  Bruno Haible  <bruno@clisp.org>
3402
3403         New module 'wcspbrk'.
3404         * modules/wcspbrk: New file.
3405         * lib/wchar.in.h (wcspbrk): New declaration.
3406         * lib/wcspbrk.c: New file.
3407         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
3408         * m4/wcspbrk.m4: New file.
3409         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
3410         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
3411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
3412         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
3413         * doc/posix-functions/wcspbrk.texi: Mention the new module.
3414
3415 2011-02-06  Bruno Haible  <bruno@clisp.org>
3416
3417         New module 'wcsspn'.
3418         * modules/wcsspn: New file.
3419         * lib/wchar.in.h (wcsspn): New declaration.
3420         * lib/wcsspn.c: New file.
3421         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
3422         * m4/wcsspn.m4: New file.
3423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
3424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
3425         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
3426         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
3427         * doc/posix-functions/wcsspn.texi: Mention the new module.
3428
3429 2011-02-06  Bruno Haible  <bruno@clisp.org>
3430
3431         New module 'wcscspn'.
3432         * modules/wcscspn: New file.
3433         * lib/wchar.in.h (wcscspn): New declaration.
3434         * lib/wcscspn.c: New file.
3435         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
3436         * m4/wcscspn.m4: New file.
3437         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
3438         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
3439         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
3440         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
3441         * doc/posix-functions/wcscspn.texi: Mention the new module.
3442
3443 2011-02-06  Bruno Haible  <bruno@clisp.org>
3444
3445         New module 'wcsrchr'.
3446         * modules/wcsrchr: New file.
3447         * lib/wchar.in.h (wcsrchr): New declaration.
3448         * lib/wcsrchr.c: New file.
3449         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
3450         * m4/wcsrchr.m4: New file.
3451         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
3452         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
3453         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
3454         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
3455         * doc/posix-functions/wcsrchr.texi: Mention the new module.
3456
3457 2011-02-06  Bruno Haible  <bruno@clisp.org>
3458
3459         New module 'wcschr'.
3460         * modules/wcschr: New file.
3461         * lib/wchar.in.h (wcschr): New declaration.
3462         * lib/wcschr.c: New file.
3463         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
3464         * m4/wcschr.m4: New file.
3465         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
3466         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
3467         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
3468         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
3469         * doc/posix-functions/wcschr.texi: Mention the new module.
3470
3471 2011-02-06  Bruno Haible  <bruno@clisp.org>
3472
3473         New module 'wcsdup'.
3474         * modules/wcsdup: New file.
3475         * lib/wchar.in.h (wcsdup): New declaration.
3476         * lib/wcsdup.c: New file.
3477         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
3478         * m4/wcsdup.m4: New file.
3479         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
3480         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
3481         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
3482         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
3483         * doc/posix-functions/wcsdup.texi: Mention the new module.
3484
3485 2011-02-06  Bruno Haible  <bruno@clisp.org>
3486
3487         New module 'wcsxfrm'.
3488         * modules/wcsxfrm: New file.
3489         * lib/wchar.in.h (wcsxfrm): New declaration.
3490         * lib/wcsxfrm.c: New file.
3491         * lib/wcsxfrm-impl.h: New file.
3492         * m4/wcsxfrm.m4: New file.
3493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
3494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
3495         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
3496         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
3497         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
3498
3499 2011-02-06  Bruno Haible  <bruno@clisp.org>
3500
3501         New module 'wcscoll'.
3502         * modules/wcscoll: New file.
3503         * lib/wchar.in.h (wcscoll): New declaration.
3504         * lib/wcscoll.c: New file.
3505         * lib/wcscoll-impl.h: New file.
3506         * m4/wcscoll.m4: New file.
3507         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
3508         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
3509         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
3510         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
3511         * doc/posix-functions/wcscoll.texi: Mention the new module.
3512
3513 2011-02-06  Bruno Haible  <bruno@clisp.org>
3514
3515         New module 'wcsncasecmp'.
3516         * modules/wcsncasecmp: New file.
3517         * lib/wchar.in.h (wcsncasecmp): New declaration.
3518         * lib/wcsncasecmp.c: New file.
3519         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
3520         * m4/wcsncasecmp.m4: New file.
3521         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
3522         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
3523         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
3524         HAVE_WCSNCASECMP.
3525         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
3526         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
3527
3528 2011-02-06  Bruno Haible  <bruno@clisp.org>
3529
3530         New module 'wcscasecmp'.
3531         * modules/wcscasecmp: New file.
3532         * lib/wchar.in.h (wcscasecmp): New declaration.
3533         * lib/wcscasecmp.c: New file.
3534         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
3535         * m4/wcscasecmp.m4: New file.
3536         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
3537         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
3538         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
3539         HAVE_WCSCASECMP.
3540         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
3541         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
3542
3543 2011-02-05  Bruno Haible  <bruno@clisp.org>
3544
3545         New module 'wcsncmp'.
3546         * modules/wcsncmp: New file.
3547         * lib/wchar.in.h (wcsncmp): New declaration.
3548         * lib/wcsncmp.c: New file.
3549         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
3550         * m4/wcsncmp.m4: New file.
3551         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
3552         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
3553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
3554         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
3555         * doc/posix-functions/wcsncmp.texi: Mention the new module.
3556
3557 2011-02-05  Bruno Haible  <bruno@clisp.org>
3558
3559         New module 'wcscmp'.
3560         * modules/wcscmp: New file.
3561         * lib/wchar.in.h (wcscmp): New declaration.
3562         * lib/wcscmp.c: New file.
3563         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
3564         * m4/wcscmp.m4: New file.
3565         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
3566         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
3567         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
3568         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
3569         * doc/posix-functions/wcscmp.texi: Mention the new module.
3570
3571 2011-02-05  Bruno Haible  <bruno@clisp.org>
3572
3573         New module 'wcsncat'.
3574         * modules/wcsncat: New file.
3575         * lib/wchar.in.h (wcsncat): New declaration.
3576         * lib/wcsncat.c: New file.
3577         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
3578         * m4/wcsncat.m4: New file.
3579         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
3580         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
3581         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
3582         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
3583         * doc/posix-functions/wcsncat.texi: Mention the new module.
3584
3585 2011-02-05  Bruno Haible  <bruno@clisp.org>
3586
3587         New module 'wcscat'.
3588         * modules/wcscat: New file.
3589         * lib/wchar.in.h (wcscat): New declaration.
3590         * lib/wcscat.c: New file.
3591         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
3592         * m4/wcscat.m4: New file.
3593         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
3594         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
3595         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
3596         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
3597         * doc/posix-functions/wcscat.texi: Mention the new module.
3598
3599 2011-02-05  Bruno Haible  <bruno@clisp.org>
3600
3601         New module 'wcpncpy'.
3602         * modules/wcpncpy: New file.
3603         * lib/wchar.in.h (wcpncpy): New declaration.
3604         * lib/wcpncpy.c: New file.
3605         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
3606         * m4/wcpncpy.m4: New file.
3607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
3608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
3609         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
3610         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
3611         * doc/posix-functions/wcpncpy.texi: Mention the new module.
3612
3613 2011-02-05  Bruno Haible  <bruno@clisp.org>
3614
3615         New module 'wcsncpy'.
3616         * modules/wcsncpy: New file.
3617         * lib/wchar.in.h (wcsncpy): New declaration.
3618         * lib/wcsncpy.c: New file.
3619         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
3620         * m4/wcsncpy.m4: New file.
3621         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
3622         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
3623         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
3624         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
3625         * doc/posix-functions/wcsncpy.texi: Mention the new module.
3626
3627 2011-02-05  Bruno Haible  <bruno@clisp.org>
3628
3629         New module 'wcpcpy'.
3630         * modules/wcpcpy: New file.
3631         * lib/wchar.in.h (wcpcpy): New declaration.
3632         * lib/wcpcpy.c: New file.
3633         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
3634         * m4/wcpcpy.m4: New file.
3635         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
3636         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
3637         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
3638         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
3639         * doc/posix-functions/wcpcpy.texi: Mention the new module.
3640
3641 2011-02-05  Bruno Haible  <bruno@clisp.org>
3642
3643         New module 'wcscpy'.
3644         * modules/wcscpy: New file.
3645         * lib/wchar.in.h (wcscpy): New declaration.
3646         * lib/wcscpy.c: New file.
3647         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
3648         * m4/wcscpy.m4: New file.
3649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
3650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
3651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
3652         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
3653         * doc/posix-functions/wcscpy.texi: Mention the new module.
3654
3655 2011-02-05  Bruno Haible  <bruno@clisp.org>
3656
3657         New module 'wcsnlen'.
3658         * modules/wcsnlen: New file.
3659         * lib/wchar.in.h (wcsnlen): New declaration.
3660         * lib/wcsnlen.c: New file.
3661         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
3662         * m4/wcsnlen.m4: New file.
3663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
3664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
3665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
3666         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
3667         * doc/posix-functions/wcsnlen.texi: Mention the new module.
3668
3669 2011-02-05  Bruno Haible  <bruno@clisp.org>
3670
3671         New module 'wcslen'.
3672         * modules/wcslen: New file.
3673         * lib/wchar.in.h (wcslen): New declaration.
3674         * lib/wcslen.c: New file.
3675         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
3676         * m4/wcslen.m4: New file.
3677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
3678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
3679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
3680         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
3681         * doc/posix-functions/wcslen.texi: Mention the new module.
3682
3683 2011-02-05  Bruno Haible  <bruno@clisp.org>
3684
3685         New module 'wmemset'.
3686         * modules/wmemset: New file.
3687         * lib/wchar.in.h (wmemset): New declaration.
3688         * lib/wmemset.c: New file.
3689         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
3690         * m4/wmemset.m4: New file.
3691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
3692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
3693         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
3694         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
3695         * doc/posix-functions/wmemset.texi: Mention the new module.
3696
3697 2011-02-05  Bruno Haible  <bruno@clisp.org>
3698
3699         New module 'wmemmove'.
3700         * modules/wmemmove: New file.
3701         * lib/wchar.in.h (wmemmove): New declaration.
3702         * lib/wmemmove.c: New file.
3703         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
3704         * m4/wmemmove.m4: New file.
3705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
3706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
3707         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
3708         HAVE_WMEMMOVE.
3709         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
3710         * doc/posix-functions/wmemmove.texi: Mention the new module.
3711
3712 2011-02-05  Bruno Haible  <bruno@clisp.org>
3713
3714         New module 'wmemcpy'.
3715         * modules/wmemcpy: New file.
3716         * lib/wchar.in.h (wmemcpy): New declaration.
3717         * lib/wmemcpy.c: New file.
3718         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
3719         * m4/wmemcpy.m4: New file.
3720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
3721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
3722         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
3723         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
3724         * doc/posix-functions/wmemcpy.texi: Mention the new module.
3725
3726 2011-02-05  Bruno Haible  <bruno@clisp.org>
3727
3728         New module 'wmemcmp'.
3729         * modules/wmemcmp: New file.
3730         * lib/wchar.in.h (wmemcmp): New declaration.
3731         * lib/wmemcmp.c: New file.
3732         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
3733         * m4/wmemcmp.m4: New file.
3734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
3735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
3736         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
3737         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
3738         * doc/posix-functions/wmemcmp.texi: Mention the new module.
3739
3740 2011-02-07  Jim Meyering  <meyering@redhat.com>
3741
3742         di-set, ino-map: new modules, from coreutils
3743         * lib/di-set.c: New file.
3744         * lib/di-set.h: Likewise.
3745         * lib/ino-map.c: Likewise.
3746         * lib/ino-map.h: Likewise.
3747         * modules/di-set: Likewise.
3748         * modules/di-set-tests: Likewise.
3749         * modules/ino-map: Likewise.
3750         * modules/ino-map-tests: Likewise.
3751         * tests/test-di-set.c: Likewise.
3752         * tests/test-ino-map.c: Likewise.
3753
3754 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
3755
3756         getloadavg: merge minor changes from Emacs
3757
3758         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
3759         (getloadavg): Use memset, not bzero.
3760
3761         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
3762         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3763         clash (bug#86).
3764
3765 2010-11-14  Bruno Haible  <bruno@clisp.org>
3766
3767         Allow multiple gnulib generated replacements to coexist.
3768         * lib/getopt.in.h (struct option): Avoid identical redefinition.
3769         * lib/inttypes.in.h (imaxdiv_t): Likewise.
3770         * lib/langinfo.in.h (nl_item): Likewise.
3771         * lib/math.in.h (_NaN, NAN): Likewise.
3772         * lib/netdb.in.h (struct addrinfo): Likewise.
3773         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
3774         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
3775         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
3776         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
3777         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
3778         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
3779         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
3780         pthread_mutexattr_init, pthread_mutexattr_settype,
3781         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
3782         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
3783         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
3784         pthread_spin_trylock, pthread_spin_unlock): Likewise.
3785         * lib/sched.in.h (struct sched_param): Likewise.
3786         * lib/se-selinux.in.h (security_class_t, security_context_t,
3787         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
3788         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
3789         lsetfilecon, fsetfilecon, security_check_context,
3790         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
3791         Likewise.
3792         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
3793         Likewise.
3794         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
3795         _gl_function_taking_int_returning_void_t, union sigval,
3796         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
3797         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
3798         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
3799         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
3800         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
3801         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
3802         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
3803         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
3804         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
3805         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
3806         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
3807         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
3808         socklen_t, rpl_fd_isset): Likewise.
3809         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
3810         * lib/sys_time.in.h (struct timeval): Likewise.
3811         * lib/sys_times.in.h (struct tms): Likewise.
3812         * lib/sys_utsname.in.h (struct utsname):
3813         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
3814         * lib/unistd.in.h (getpagesize): Likewise.
3815         * lib/wchar.in.h (mbstate_t): Likewise.
3816         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
3817         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
3818         towlower, towupper): Likewise.
3819         Reported by Sam Steingold <sds@gnu.org>.
3820
3821 2011-02-05  Eric Blake  <eblake@redhat.com>
3822
3823         unsetenv: work around Haiku issues
3824         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
3825         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
3826
3827 2010-12-30  Bruce Korb  <bkorb@gnu.org>
3828
3829         libposix: avoid calling error() within libposix
3830         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
3831         is defined.
3832
3833 2011-02-05  Eric Blake  <eblake@redhat.com>
3834
3835         strerror_r-posix: port to cygwin
3836         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
3837         implementation.
3838         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
3839         * tests/test-strerror_r.c (main): Fix test.
3840         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
3841         issue.
3842
3843 2011-02-05  Bruno Haible  <bruno@clisp.org>
3844
3845         New module 'wmemchr'.
3846         * modules/wmemchr: New file.
3847         * lib/wchar.in.h (wmemchr): New declaration.
3848         * lib/wmemchr.c: New file.
3849         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
3850         * m4/wmemchr.m4: New file.
3851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
3852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
3853         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
3854         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
3855         * doc/posix-functions/wmemchr.texi: Mention the new module.
3856
3857 2011-02-04  Eric Blake  <eblake@redhat.com>
3858
3859         fdopendir: detect FreeBSD bug
3860         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
3861         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
3862
3863 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3864
3865         stdbool: do not define HAVE_STDBOOL_H
3866         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
3867         AC_HEADER_STDBOOL.  All uses changed.  Do not define
3868         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
3869         imported from the latest Autoconf git.  It was motivated by Emacs,
3870         which uses gnulib but does not need HAVE_STDBOOL_H.
3871
3872 2011-02-04  Bruno Haible  <bruno@clisp.org>
3873
3874         wcsnrtombs: Prepare for new module wwcsnrtombs.
3875         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
3876         * lib/wcsnrtombs.c: Include it.
3877         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
3878
3879         wcsrtombs: Prepare for new module wwcsrtombs.
3880         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
3881         * lib/wcsrtombs.c: Include it.
3882         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
3883
3884         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
3885         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
3886         * lib/mbsnrtowcs.c: Include it.
3887         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
3888
3889         mbsrtowcs: Prepare for new module mbsrtowwcs.
3890         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
3891         * lib/mbsrtowcs.c: Include it.
3892         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
3893
3894 2011-02-04  Bruno Haible  <bruno@clisp.org>
3895
3896         vasnprintf: Reduce use of malloc for small format strings.
3897         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
3898         (arguments): Add room for the first 7 arguments.
3899         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
3900         (char_directives, u8_directives, u16_directives, u32_directives): Add
3901         room for the first 7 directives.
3902         * lib/printf-parse.c: Include <string.h>.
3903         (PRINTF_PARSE): Change memory handling code so that it uses the first
3904         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
3905         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
3906         Reported by Pádraig Brady <P@draigbrady.com>.
3907
3908 2011-01-31  Eric Blake  <eblake@redhat.com>
3909
3910         dup2: work around Haiku bug
3911         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
3912         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
3913         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3914         * tests/test-dup2.c (main): Enhance test.
3915
3916 2011-01-31  Simon Josefsson  <simon@josefsson.org>
3917
3918         doc: off_t is not available in eglibc 2.11.2 stdio.h.
3919         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
3920         declared by eglibc 2.11.2.
3921         * lib/stdio.in.h: Likewise.
3922
3923 2011-01-31  Eric Blake  <eblake@redhat.com>
3924
3925         ignore-value: add missing test dependency
3926         * tests/test-ignore-value.c: Revert previous change; stdio.h
3927         provides off_t.
3928         * modules/ignore-value-tests (Depends-on): Add missing dependency.
3929
3930 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3931
3932         mktime: clarify long_int width checking
3933         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
3934         the top level, to make it clearer that the assumption about
3935         long_int width is being checked.  See
3936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
3937
3938 2011-01-30  Simon Josefsson  <simon@josefsson.org>
3939
3940         ignore-value: Fix self-test.
3941         * tests/test-ignore-value.c: Include sys/types.h for off_t.
3942
3943 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
3944
3945         TYPE_MAXIMUM: avoid theoretically undefined behavior
3946         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
3947         negative number, which the C Standard says has undefined behavior.
3948         In practice this is not a problem, but might as well do it by the book.
3949         Reported by Rich Felker and Eric Blake; see
3950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
3951         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
3952         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
3953         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3954         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
3955         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3956         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
3957
3958         mktime: #undef mktime before #defining it
3959         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
3960
3961         mktime: systematically normalize tm_isdst comparisons
3962         * lib/mktime.c (isdst_differ): New function.
3963         (__mktime_internal): Use it systematically for all isdst comparisons.
3964         This completes the fix for libc BZ #6723, and removes the need for
3965         normalizing tm_isdst.  See
3966         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
3967         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
3968
3969         mktime: fix some integer overflow issues and sidestep the rest
3970
3971         This was prompted by a bug report by Benjamin Lindner for MinGW
3972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
3973         His bug is due to signed integer overflow (0 - INT_MIN), and I
3974         I scanned through mktime.c looking for other integer overflow
3975         problems, fixing all the bugs I found.
3976
3977         Although the C Standard says the resulting code is still not safe
3978         in the presence of integer overflow, in practice it should be good
3979         enough for all real-world two's-complement implementations, except
3980         for debugging environments that deliberately trap on integer
3981         overflow (e.g., gcc -ftrapv).
3982
3983         * lib/mktime.c (WRAPV): New macro.
3984         (SHR): Also check that long_int and time_t shift right in the
3985         usual way, before using the fast-but-unportable method.
3986         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
3987         used.  The code already assumed two's complement, so there's
3988         no need to test for alternatives.  All uses removed.
3989         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
3990         the C standard.  Problem reported by Rich Felker in
3991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
3992         (twos_complement_arithmetic): Also check long_int and time_t.
3993         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
3994         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
3995         (__mktime_internal): Avoid integer overflow with unary subtraction
3996         in two instances where -1 - X is an adequate replacement for -X,
3997         since the calculations are approximate.
3998
3999 2011-01-29  Eric Blake  <eblake@redhat.com>
4000
4001         mktime: avoid infinite loop
4002         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4003         type; behavior is still undefined but portable to all known targets.
4004         Reported by Rich Felker.
4005
4006 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4007
4008         rename, unlink, same-inode: Relicense.
4009         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4010         * modules/unlink (License): Likewise.
4011         * modules/same-inode (License): Likewise.
4012
4013 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4014
4015         mktime: avoid problems on NetBSD 5 / i386
4016         * lib/mktime.c (long_int): New type.  This works around a problem
4017         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4018         but time_t is 64 bits, and where I expect the existing code is
4019         wrong in some cases.
4020         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4021         (ydhms_diff): Bring back the compile-time check for wide-enough
4022         year and yday.
4023
4024         mktime: fix misspelling in comment
4025         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4026         This merges all recent glibc changes of importance.
4027
4028 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4029
4030         move-if-change: cope with concurrent mv of identical file.
4031         * build-aux/move-if-change (CMPPROG): Accept environment
4032         variable as an override for `cmp'.
4033         (usage): Document CMPPROG.
4034         Adjust comparison to drop stdout.  Cope with failure of mv if
4035         the target file exists and is identical to the source, for
4036         parallel builds.
4037         Report from H.J. Lu against binutils in PR binutils/12283.
4038
4039 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4040
4041         * users.txt: Mention sharutils.
4042
4043 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4044
4045         * users.txt: Mention OATH Toolkit.
4046
4047 2011-01-27  Bruno Haible  <bruno@clisp.org>
4048
4049         Prepare for supporting FreeBSD 10.
4050         * build-aux/config.libpath: Remove handling of freebsd1*.
4051
4052 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4053
4054         Prepare for supporting FreeBSD 10.
4055         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4056         match FreeBSD 10.0.
4057
4058 2011-01-27  Bruno Haible  <bruno@clisp.org>
4059
4060         vma-iter, get-rusage-as: Add OpenBSD support.
4061         * modules/vma-iter (configure.ac): Test for mquery.
4062         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4063         * lib/vma-iter.c: Include <sys/mman.h>.
4064         (vma_iterate): Add an implementation based on mquery().
4065         * lib/resource-ext.h (get_rusage_as): Update comments.
4066         * lib/get-rusage-as.c: Likewise.
4067         * lib/get-rusage-data.c: Likewise.
4068
4069 2011-01-26  Karl Berry  <karl@gnu.org>
4070
4071         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4072         variables to make it easier to override the makeinfo program used.
4073
4074 2011-01-26  Eric Blake  <eblake@redhat.com>
4075
4076         fcntl: work around Haiku F_DUPFD bugs
4077         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4078         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4079         cloexec bit on duplication.
4080         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4081
4082 2011-01-26  Bruno Haible  <bruno@clisp.org>
4083
4084         Enable memory leak tests on AIX.
4085         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4086         * tests/test-fprintf-posix3.c (main): Likewise.
4087
4088 2011-01-26  Bruno Haible  <bruno@clisp.org>
4089
4090         Tests for module 'get-rusage-data'.
4091         * modules/get-rusage-data-tests: New file.
4092         * tests/test-get-rusage-data.c: New file.
4093
4094         New module 'get-rusage-data'.
4095         * lib/resource-ext.h (get_rusage_data): New declaration.
4096         * lib/get-rusage-data.c: New file.
4097         * modules/get-rusage-data: New file.
4098
4099 2011-01-25  Bruno Haible  <bruno@clisp.org>
4100
4101         get-rusage-as: Allow for easier testing.
4102         * lib/resource-ext.h (get_rusage_as): Add comment.
4103         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4104         (main): New function for interactive testing.
4105
4106 2011-01-25  Bruno Haible  <bruno@clisp.org>
4107
4108         vma-iter: Treat Haiku like BeOS.
4109         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4110         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4111
4112 2011-01-25  Eric Blake  <eblake@redhat.com>
4113
4114         c-stack: fix regression on cygwin when libsigsegv is present
4115         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4116
4117 2011-01-24  Bruno Haible  <bruno@clisp.org>
4118
4119         vma-iter: Avoid empty intervals.
4120         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4121         on an empty interval.
4122
4123 2011-01-24  Jim Meyering  <meyering@redhat.com>
4124
4125         u64: remove unnecessary #include
4126         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4127
4128 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4129
4130         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4131         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4132
4133 2011-01-23  Bruno Haible  <bruno@clisp.org>
4134
4135         New module 'vma-iter'.
4136         * lib/vma-iter.h: New file.
4137         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4138         * modules/vma-iter: New file.
4139         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4140         for get_rusage_as_via_iterator.
4141         (vma_iterate_callback): New function.
4142         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4143         * modules/get-rusage-as (Depends-on): Add vma-iter.
4144
4145 2011-01-23  Bruno Haible  <bruno@clisp.org>
4146
4147         uninorm: Tweak includes.
4148         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4149         Reported by Jim Meyering.
4150
4151 2011-01-23  Bruno Haible  <bruno@clisp.org>
4152
4153         get-rusage-as: Improve on NetBSD.
4154         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4155         /proc, like on FreeBSD.
4156
4157 2011-01-23  Jim Meyering  <meyering@redhat.com>
4158
4159         xreadlink.h: remove unnecessary #include
4160         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4161
4162         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4163         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4164
4165 2011-01-23  Bruno Haible  <bruno@clisp.org>
4166
4167         get-rusage-as: Fix bug.
4168         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4169         original limit when aborting the first loop.
4170
4171 2011-01-23  Bruno Haible  <bruno@clisp.org>
4172
4173         wctype: Ensure valid C syntax.
4174         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4175         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4176
4177 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4178
4179         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4181         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4182         as they are needed only for configure's test case.
4183         This removes two unnecessary symbols from config.h.
4184
4185         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4186         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4188         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4189         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4190         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4191         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4192         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4193         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4194         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4195         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4196         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4197         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4198         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4199         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4200         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4201         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4202         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4203
4204 2011-01-21  Eric Blake  <eblake@redhat.com>
4205
4206         maintainer-makefile: work with older git for submodule check
4207         * top/maint.mk (public-submodule-commit): Rewrite to avoid
4208         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
4209         Reported by Matthias Bolte.
4210
4211         bootstrap: minor portability fixes
4212         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
4213         (usage): Omit leading capital and trailing . on help phrases, per
4214         GNU Coding Standards.
4215         (check_versions, top level): Prefix messages with script name.
4216
4217 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
4218
4219         bootstrap: support --no-git option
4220         * build-aux/bootstrap: Add --no-git option, to be used when
4221         --gnulib-srcdir points to the exact desired checkout.
4222
4223 2011-01-21  Eric Blake  <eblake@redhat.com>
4224
4225         strerror_r-posix: work with glibc 2.13
4226         * lib/strerror_r.c (strerror_r): Fix return type.
4227
4228 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4229             Bruno Haible  <bruno@clisp.org>
4230
4231         uN_strstr: New unit tests.
4232         * modules/unistr/u8-strstr-tests: New file.
4233         * modules/unistr/u16-strstr-tests: New file.
4234         * modules/unistr/u32-strstr-tests: New file.
4235         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
4236         * tests/unistr/test-u8-strstr.c: New file.
4237         * tests/unistr/test-u16-strstr.c: New file.
4238         * tests/unistr/test-u32-strstr.c: New file.
4239
4240 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4241             Bruno Haible  <bruno@clisp.org>
4242
4243         Make uN_strstr functions O(n) worst-case.
4244         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
4245         16-bit and 32-bit unit cases, use the unibyte algorithm from
4246         lib/mbsstr.c.
4247         * lib/unistr/u8-strstr.c: Include <string.h>.
4248         (UNIT_IS_UINT8_T): New macro.
4249         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
4250         (U_STRLEN, U_STRNLEN): New macros.
4251         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
4252         (U_STRLEN, U_STRNLEN): New macros.
4253         * modules/unistr/u8-strstr (Depends-on): Add strstr.
4254         (configure.ac): Update required libunistring version.
4255         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
4256         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
4257         malloca.
4258         (configure.ac): Update required libunistring version.
4259         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
4260         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
4261         malloca.
4262         (configure.ac): Update required libunistring version.
4263
4264 2011-01-21  Pádraig Brady  <P@draigBrady.com>
4265             Bruno Haible  <bruno@clisp.org>
4266
4267         Prepare for faster uN_strstr functions.
4268         * lib/str-kmp.h: Support definable UNITs.
4269         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
4270         needle_len argument.
4271         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
4272         * lib/mbscasestr.c (mbscasestr): Likewise.
4273
4274 2011-01-21  Pádraig Brady <P@draigBrady.com>
4275
4276         malloca-tests: make faster by unsetting MALLOC_PERTURB_
4277         * tests/test-malloca.c (main): Unset the environment variable
4278         to greatly speed up the test.
4279         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
4280         * modules/malloca-tests: Depend on unsetenv.
4281
4282 2011-01-21  Pádraig Brady <P@draigBrady.com>
4283
4284         ignore-value: remove stdint dependency
4285         * lib/ignore-value.h: Remove <stdint.h>
4286         * modules/ignore-value: Remove stdint dependency.
4287
4288 2011-01-21  Jim Meyering  <meyering@redhat.com>
4289
4290         maint.mk: adjust variable name to be consistent with other gl_ vars
4291         * top/maint.mk (gl_public_submodule_commit): Rename the variable
4292         to be lower case.
4293
4294 2011-01-20  Jim Meyering  <meyering@redhat.com>
4295
4296         maint.mk: make "check" depend on public-submodule-commit by default
4297         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
4298
4299 2011-01-20  Bruno Haible  <bruno@clisp.org>
4300
4301         mbfile, mbiter: Complete change from 2008-12-21.
4302         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
4303         * m4/mbiter.m4 (gl_MBITER): Likewise.
4304
4305 2011-01-20  Jim Meyering  <meyering@redhat.com>
4306
4307         init.sh: insert space between each function name and "()"
4308         * tests/init.sh: Make it a little easier to see that a function's
4309         name is "warn_", and not "warn" when looking at the first part of
4310         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
4311
4312 2011-01-20  Jim Meyering  <meyering@redhat.com>
4313
4314         mountlist: clean up code formatting
4315         * lib/mountlist.c (read_file_system_list): Split a long line,
4316         correct bracing style, use NULL in place of "(struct statfs *)0",
4317         don't parenthesize return value, add spaces around "=" and after
4318         ";-in-for-stmt".
4319
4320 2011-01-14  Markus Duft <mduft@gentoo.org>
4321
4322         mountlist: add support for Interix
4323         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
4324         Apply statvfs to all entries of /dev/fs.
4325         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
4326         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
4327
4328 2011-01-20  Jim Meyering  <meyering@redhat.com>
4329
4330         maint.mk: improve the public-submodule-commit rule
4331         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
4332         to suppress printing of its commands... unless V=1.
4333         Add git submodule's --quiet option to suppress printing of e.g.,
4334         "Entering gnulib" output.
4335         "cd" into $(srcdir) before running git submodule.
4336
4337 2011-01-20  Bruno Haible  <bruno@clisp.org>
4338
4339         include_next: Fix bug introduced on 2011-01-18.
4340         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
4341         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
4342         ac_cv_header_... variable if the second argument is not 'check'.
4343         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
4344         gl_NEXT_HEADERS_INTERNAL.
4345
4346 2011-01-20  Bruno Haible  <bruno@clisp.org>
4347
4348         Allow the user to avoid the GNULIB_TEST_* macros.
4349         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
4350         Suggested by Paul Eggert.
4351
4352 2011-01-14  Jim Meyering  <meyering@redhat.com>
4353
4354         bootstrap: avoid failure when there is no .gitmodules file
4355         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
4356         has been assigned to, even when its value is the empty string.
4357         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
4358         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
4359         Reported by John W. Eaton <jwe@gnu.org>.
4360
4361 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4362
4363         assume <ctype.h>, ..., <time.h> exist
4364         For years gnulib has been assuming the existence of the headers
4365         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
4366         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
4367         them, since they don't appear to be needed.
4368         * README (Portability guidelines): Document this.
4369         * lib/flock.c: Assume <fcntl.h> exists.
4370         * lib/regex_internal.h: Assume <locale.h> exists.
4371         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
4372         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
4373         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
4374         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
4375         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
4376         * m4/regex.m4 (gl_REGEX): Likewise.
4377         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
4378         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
4379         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
4380         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
4381         * tests/test-argp.c: Likewise.
4382         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
4383
4384         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
4385         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
4386         AA_APPLE_UNIVERSAL_BUILD.  See
4387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
4388         * NEWS: Document this.
4389
4390 2011-01-19  Eric Blake  <eblake@redhat.com>
4391
4392         c-stack: assume stack overflow if SA_SIGINFO unsupported
4393         * lib/c-stack.c (SIGACTION_WORKS): Rename...
4394         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
4395         sigaction will work.
4396         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
4397         behavior match Linux.
4398         * tests/test-c-stack.c (main): Prefer NULL for pointers.
4399
4400         stdbool-tests: accomodate Haiku
4401         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
4402
4403         binary-io: fix O_TEXT on Haiku
4404         * modules/binary-io (Depends-on): Add fcntl-h.
4405         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
4406         than blindly undefining O_TEXT.
4407         Reported by Scott McCreary.
4408
4409 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4410
4411         include_next: do not check for standard headers like stddef.h
4412
4413         I found this problem when modifying Emacs to use gnulib.
4414         I noticed that it added HAVE_STDDEF_H to config.h, even though
4415         gnulib always assumes <stddef.h> exists as per README and this
4416         symbol is unnecessary.
4417         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
4418         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
4419         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
4420         faster for headers like stddef.h that are known to exist.
4421         (gl_CHECK_NEXT_HEADERS): Use it.
4422         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
4423         rather than gl_CHECK_NEXT_HEADERS.
4424         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
4425         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
4426
4427 2011-01-18  Eric Blake  <eblake@redhat.com>
4428
4429         ansi-c++-opt: skip C++ dependency style if C++ is unused
4430         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
4431         tests when we know C++ compilation is not desired.
4432         Reported by Scott McCreary.
4433
4434 2011-01-18  Bruno Haible  <bruno@clisp.org>
4435
4436         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
4437         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
4438         (main): Perform test also when getrlimit and setrlimit don't exist or
4439         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
4440         limiting the address space size using setrlimit, compare the address
4441         space size before and after the the test.
4442         * tests/test-dprintf-posix2.c: Likewise.
4443         * tests/test-fprintf-posix3.sh: Update skip messages.
4444         * tests/test-dprintf-posix2.sh: Likewise.
4445         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
4446         * modules/dprintf-posix-tests (Depends-on): Likewise.
4447         Reported by Bruce Korb <bkorb@gnu.org> and
4448         Gary V. Vaughan <gary@gnu.org>.
4449
4450 2011-01-18  Bruno Haible  <bruno@clisp.org>
4451
4452         get-rusage-as: Improvement for Cygwin.
4453         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
4454         areas that are merely reserved.
4455
4456 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
4457
4458         strftime: remove dependencies on multibyte modules
4459
4460         strftime depended on mbrlen, mbsinit, and wchar, but these modules
4461         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
4462         only if __osf__ is defined, and I suspect OSF doesn't need these
4463         other modules.  If my guess is wrong, we'll need to come up with a
4464         variant of strftime that doesn't need the multibyte modules.
4465
4466         I discovered this problem when attempting modify Emacs to use the
4467         strftime module.  With the previous gnulib, this caused Emacs to
4468         need 31 new files, ranging from lib/config.charset to
4469         m4/wint_t.m4.  This was overkill and I expect would be offputting
4470         to the Emacs maintainers.  After this change, only 6 new files are
4471         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
4472         stdbool.m4, and tm_gmtoff.m4.
4473
4474         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
4475         Suggested by Bruno Haible in
4476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
4477         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
4478         and do not check for wchar.h.
4479         * modules/strftime (Files): Remove m4/mbstate_t.m4.
4480         (Depends-on): Remove mbrlen, mbsinit, wchar.
4481
4482 2011-01-18  Bruno Haible  <bruno@clisp.org>
4483
4484         Tests for module 'get-rusage-as'.
4485         * modules/get-rusage-as-tests: New file.
4486         * tests/test-get-rusage-as.c: New file.
4487
4488         New module 'get-rusage-as'.
4489         * modules/get-rusage-as: New file.
4490         * lib/resource-ext.h: New file.
4491         * lib/get-rusage-as.c: New file.
4492
4493 2011-01-17  Eric Blake  <eblake@redhat.com>
4494
4495         sigaction: relax license from LGPLv3+ to LGPLv2+
4496         * modules/sigaction (License): Relax to LGPLv2+.
4497
4498 2011-01-14  Bruno Haible  <bruno@clisp.org>
4499
4500         filemode: Make function declarations usable in C++ mode.
4501         * lib/filemode.h: Enclose function declarations in extern "C" block.
4502         Reported by John W. Eaton <jwe@gnu.org>.
4503
4504 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
4505
4506         save-cwd: no longer include "xgetcwd.h"
4507         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
4508         This avoids a compilation failure in projects that use save-cwd
4509         without also using the xgetcwd module.
4510
4511 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4512
4513         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
4514         This is so that a program like Emacs, which needs only dtoastr,
4515         does not have to bother with distributing and compiling ftoastr
4516         and ldtoastr.
4517         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
4518         * modules/dtoastr, modules/ldtoastr: New files.
4519         * modules/ftoastr: Now works just for 'float'.
4520         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
4521         (Makefile.am): Remove ftoastr.h (not needed and no effect),
4522         dtoastr.c, ldtoastr.c.
4523
4524 2011-01-11  Jim Meyering  <meyering@redhat.com>
4525
4526         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
4527         There is no need to work around the lack of the fchdir function,
4528         since gnulib can now provide a replacement when required.
4529         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
4530         * modules/save-cwd (Depends-on): Add fchdir.
4531
4532 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
4533
4534         openat, save-cwd: avoid xmalloc
4535
4536         This removes a direct (but undocumented) dependency of openat on
4537         xalloc, along with an indirect dependency via save-cwd.  It also
4538         removes a dependency of save-cwd on xgetcwd, and thereby
4539         indirectly on xalloc.  This change causes the openat substitute
4540         to fall back on save_cwd when memory is tight, and for save_cwd to
4541         fail instead of dying when memory is tight, but that's good enough.
4542         Problem and initial idea for fix reported by Bastien Roucaries in
4543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
4544
4545         * lib/openat-proc.c: Include stdlib.h (for malloc), not
4546         xalloc.h (for xmalloc).
4547         (openat_proc_name): Use malloc, not xmalloc.
4548         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
4549         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
4550
4551         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
4552         This avoids heap allocation for file names whose lengths are in
4553         the range 512..1023, with the upper bound increasing to at most
4554         4031 depending on the platform's PATH_MAX.  (We do not want
4555         pathmax.h here as it might supply a non-constant PATH_MAX.)
4556         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
4557         Perhaps they should be moved to malloca.h?
4558         (OPENAT_BUFFER_SIZE): Use them.
4559
4560 2011-01-10  Bruno Haible  <bruno@clisp.org>
4561
4562         doc: Update users.txt.
4563         * users.txt: Add recutils.
4564
4565 2011-01-09  Karl Berry  <karl@gnu.org>
4566
4567         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
4568
4569         * doc/configmake.texi: New file.
4570         * doc/gnulib.texi: Include it.
4571         * modules/configmake: Move documentation from here.
4572
4573 2011-01-09  Bruno Haible  <bruno@clisp.org>
4574
4575         Update to Unicode 6.0.0.
4576         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
4577         (get_lbp): Update for Unicode 6.0.0.
4578         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
4579         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
4580         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
4581         U+11001, U+11038..U+11046. Remove U+06DE.
4582         (uc_width): Fix bounds of planes.
4583         * tests/uniwidth/test-uc_width2.sh: Same updates as in
4584         lib/uniwidth/width.c.
4585         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
4586         trailing whitespace removed.
4587         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
4588         without comments, but with the original copyright notice.
4589         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
4590         * lib/unicase/ignorable.h: Likewise.
4591         * lib/unicase/tocasefold.h: Likewise.
4592         * lib/unicase/tolower.h: Likewise.
4593         * lib/unicase/totitle.h: Likewise.
4594         * lib/unicase/toupper.h: Likewise.
4595         * lib/unictype/bidi_of.h: Likewise.
4596         * lib/unictype/blocks.h: Likewise.
4597         * lib/unictype/categ_C.h: Likewise.
4598         * lib/unictype/categ_Cn.h: Likewise.
4599         * lib/unictype/categ_L.h: Likewise.
4600         * lib/unictype/categ_Ll.h: Likewise.
4601         * lib/unictype/categ_Lm.h: Likewise.
4602         * lib/unictype/categ_Lo.h: Likewise.
4603         * lib/unictype/categ_Lu.h: Likewise.
4604         * lib/unictype/categ_M.h: Likewise.
4605         * lib/unictype/categ_Mc.h: Likewise.
4606         * lib/unictype/categ_Me.h: Likewise.
4607         * lib/unictype/categ_Mn.h: Likewise.
4608         * lib/unictype/categ_N.h: Likewise.
4609         * lib/unictype/categ_Nd.h: Likewise.
4610         * lib/unictype/categ_No.h: Likewise.
4611         * lib/unictype/categ_P.h: Likewise.
4612         * lib/unictype/categ_Po.h: Likewise.
4613         * lib/unictype/categ_S.h: Likewise.
4614         * lib/unictype/categ_Sc.h: Likewise.
4615         * lib/unictype/categ_Sk.h: Likewise.
4616         * lib/unictype/categ_Sm.h: Likewise.
4617         * lib/unictype/categ_So.h: Likewise.
4618         * lib/unictype/categ_of.h: Likewise.
4619         * lib/unictype/combining.h: Likewise.
4620         * lib/unictype/ctype_alnum.h: Likewise.
4621         * lib/unictype/ctype_alpha.h: Likewise.
4622         * lib/unictype/ctype_graph.h: Likewise.
4623         * lib/unictype/ctype_lower.h: Likewise.
4624         * lib/unictype/ctype_print.h: Likewise.
4625         * lib/unictype/ctype_punct.h: Likewise.
4626         * lib/unictype/ctype_upper.h: Likewise.
4627         * lib/unictype/decdigit.h: Likewise.
4628         * lib/unictype/digit.h: Likewise.
4629         * lib/unictype/numeric.h: Likewise.
4630         * lib/unictype/pr_alphabetic.h: Likewise.
4631         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
4632         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
4633         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
4634         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
4635         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4636         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4637         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4638         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4639         * lib/unictype/pr_case_ignorable.h: Likewise.
4640         * lib/unictype/pr_cased.h: Likewise.
4641         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
4642         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
4643         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
4644         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
4645         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
4646         * lib/unictype/pr_combining.h: Likewise.
4647         * lib/unictype/pr_composite.h: Likewise.
4648         * lib/unictype/pr_currency_symbol.h: Likewise.
4649         * lib/unictype/pr_decimal_digit.h: Likewise.
4650         * lib/unictype/pr_deprecated.h: Likewise.
4651         * lib/unictype/pr_format_control.h: Likewise.
4652         * lib/unictype/pr_grapheme_base.h: Likewise.
4653         * lib/unictype/pr_grapheme_extend.h: Likewise.
4654         * lib/unictype/pr_grapheme_link.h: Likewise.
4655         * lib/unictype/pr_id_continue.h: Likewise.
4656         * lib/unictype/pr_id_start.h: Likewise.
4657         * lib/unictype/pr_ideographic.h: Likewise.
4658         * lib/unictype/pr_lowercase.h: Likewise.
4659         * lib/unictype/pr_math.h: Likewise.
4660         * lib/unictype/pr_numeric.h: Likewise.
4661         * lib/unictype/pr_other_alphabetic.h: Likewise.
4662         * lib/unictype/pr_other_id_continue.h: Likewise.
4663         * lib/unictype/pr_other_math.h: Likewise.
4664         * lib/unictype/pr_punctuation.h: Likewise.
4665         * lib/unictype/pr_sentence_terminal.h: Likewise.
4666         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4667         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4668         * lib/unictype/pr_unified_ideograph.h: Likewise.
4669         * lib/unictype/pr_uppercase.h: Likewise.
4670         * lib/unictype/pr_xid_continue.h: Likewise.
4671         * lib/unictype/pr_xid_start.h: Likewise.
4672         * lib/unictype/scripts.h: Likewise.
4673         * lib/unictype/scripts_byname.gperf: Likewise.
4674         * lib/unictype/sy_java_ident.h: Likewise.
4675         * lib/unigbrk/gbrkprop.h: Likewise.
4676         * lib/unilbrk/lbrkprop1.h: Likewise.
4677         * lib/unilbrk/lbrkprop2.h: Likewise.
4678         * lib/uninorm/decomposition-table2.h: Likewise.
4679         * lib/uniwbrk/wbrkprop.h: Likewise.
4680         * tests/unicase/test-cased.c: Likewise.
4681         * tests/unicase/test-ignorable.c: Likewise.
4682         * tests/unicase/test-uc_tolower.c: Likewise.
4683         * tests/unicase/test-uc_totitle.c: Likewise.
4684         * tests/unicase/test-uc_toupper.c: Likewise.
4685         * tests/unictype/test-categ_C.c: Likewise.
4686         * tests/unictype/test-categ_Cn.c: Likewise.
4687         * tests/unictype/test-categ_L.c: Likewise.
4688         * tests/unictype/test-categ_Ll.c: Likewise.
4689         * tests/unictype/test-categ_Lm.c: Likewise.
4690         * tests/unictype/test-categ_Lo.c: Likewise.
4691         * tests/unictype/test-categ_Lu.c: Likewise.
4692         * tests/unictype/test-categ_M.c: Likewise.
4693         * tests/unictype/test-categ_Mc.c: Likewise.
4694         * tests/unictype/test-categ_Me.c: Likewise.
4695         * tests/unictype/test-categ_Mn.c: Likewise.
4696         * tests/unictype/test-categ_N.c: Likewise.
4697         * tests/unictype/test-categ_Nd.c: Likewise.
4698         * tests/unictype/test-categ_No.c: Likewise.
4699         * tests/unictype/test-categ_P.c: Likewise.
4700         * tests/unictype/test-categ_Po.c: Likewise.
4701         * tests/unictype/test-categ_S.c: Likewise.
4702         * tests/unictype/test-categ_Sc.c: Likewise.
4703         * tests/unictype/test-categ_Sk.c: Likewise.
4704         * tests/unictype/test-categ_Sm.c: Likewise.
4705         * tests/unictype/test-categ_So.c: Likewise.
4706         * tests/unictype/test-ctype_alnum.c: Likewise.
4707         * tests/unictype/test-ctype_alpha.c: Likewise.
4708         * tests/unictype/test-ctype_graph.c: Likewise.
4709         * tests/unictype/test-ctype_lower.c: Likewise.
4710         * tests/unictype/test-ctype_print.c: Likewise.
4711         * tests/unictype/test-ctype_punct.c: Likewise.
4712         * tests/unictype/test-ctype_upper.c: Likewise.
4713         * tests/unictype/test-decdigit.h: Likewise.
4714         * tests/unictype/test-digit.h: Likewise.
4715         * tests/unictype/test-numeric.h: Likewise.
4716         * tests/unictype/test-pr_alphabetic.c: Likewise.
4717         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4718         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4719         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4720         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4721         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4722         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4723         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4724         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4725         * tests/unictype/test-pr_case_ignorable.c: Likewise.
4726         * tests/unictype/test-pr_cased.c: Likewise.
4727         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
4728         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
4729         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
4730         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
4731         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
4732         * tests/unictype/test-pr_combining.c: Likewise.
4733         * tests/unictype/test-pr_composite.c: Likewise.
4734         * tests/unictype/test-pr_currency_symbol.c: Likewise.
4735         * tests/unictype/test-pr_decimal_digit.c: Likewise.
4736         * tests/unictype/test-pr_deprecated.c: Likewise.
4737         * tests/unictype/test-pr_format_control.c: Likewise.
4738         * tests/unictype/test-pr_grapheme_base.c: Likewise.
4739         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4740         * tests/unictype/test-pr_grapheme_link.c: Likewise.
4741         * tests/unictype/test-pr_id_continue.c: Likewise.
4742         * tests/unictype/test-pr_id_start.c: Likewise.
4743         * tests/unictype/test-pr_ideographic.c: Likewise.
4744         * tests/unictype/test-pr_lowercase.c: Likewise.
4745         * tests/unictype/test-pr_math.c: Likewise.
4746         * tests/unictype/test-pr_numeric.c: Likewise.
4747         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4748         * tests/unictype/test-pr_other_id_continue.c: Likewise.
4749         * tests/unictype/test-pr_other_math.c: Likewise.
4750         * tests/unictype/test-pr_punctuation.c: Likewise.
4751         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4752         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4753         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4754         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4755         * tests/unictype/test-pr_uppercase.c: Likewise.
4756         * tests/unictype/test-pr_xid_continue.c: Likewise.
4757         * tests/unictype/test-pr_xid_start.c: Likewise.
4758         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
4759         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
4760         changes.
4761         * lib/unictype/categ_Cc.h: Likewise.
4762         * lib/unictype/categ_Cf.h: Likewise.
4763         * lib/unictype/categ_Co.h: Likewise.
4764         * lib/unictype/categ_Cs.h: Likewise.
4765         * lib/unictype/categ_Lt.h: Likewise.
4766         * lib/unictype/categ_Nl.h: Likewise.
4767         * lib/unictype/categ_Pc.h: Likewise.
4768         * lib/unictype/categ_Pd.h: Likewise.
4769         * lib/unictype/categ_Pe.h: Likewise.
4770         * lib/unictype/categ_Pf.h: Likewise.
4771         * lib/unictype/categ_Pi.h: Likewise.
4772         * lib/unictype/categ_Ps.h: Likewise.
4773         * lib/unictype/categ_Z.h: Likewise.
4774         * lib/unictype/categ_Zl.h: Likewise.
4775         * lib/unictype/categ_Zp.h: Likewise.
4776         * lib/unictype/categ_Zs.h: Likewise.
4777         * lib/unictype/ctype_blank.h: Likewise.
4778         * lib/unictype/ctype_cntrl.h: Likewise.
4779         * lib/unictype/ctype_digit.h: Likewise.
4780         * lib/unictype/ctype_space.h: Likewise.
4781         * lib/unictype/ctype_xdigit.h: Likewise.
4782         * lib/unictype/mirror.h: Likewise.
4783         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
4784         * lib/unictype/pr_bidi_block_separator.h: Likewise.
4785         * lib/unictype/pr_bidi_common_separator.h: Likewise.
4786         * lib/unictype/pr_bidi_control.h: Likewise.
4787         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
4788         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
4789         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4790         * lib/unictype/pr_bidi_pdf.h: Likewise.
4791         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4792         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4793         * lib/unictype/pr_dash.h: Likewise.
4794         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4795         * lib/unictype/pr_diacritic.h: Likewise.
4796         * lib/unictype/pr_extender.h: Likewise.
4797         * lib/unictype/pr_hex_digit.h: Likewise.
4798         * lib/unictype/pr_hyphen.h: Likewise.
4799         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4800         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4801         * lib/unictype/pr_ignorable_control.h: Likewise.
4802         * lib/unictype/pr_iso_control.h: Likewise.
4803         * lib/unictype/pr_join_control.h: Likewise.
4804         * lib/unictype/pr_left_of_pair.h: Likewise.
4805         * lib/unictype/pr_line_separator.h: Likewise.
4806         * lib/unictype/pr_logical_order_exception.h: Likewise.
4807         * lib/unictype/pr_non_break.h: Likewise.
4808         * lib/unictype/pr_not_a_character.h: Likewise.
4809         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4810         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4811         * lib/unictype/pr_other_id_start.h: Likewise.
4812         * lib/unictype/pr_other_lowercase.h: Likewise.
4813         * lib/unictype/pr_other_uppercase.h: Likewise.
4814         * lib/unictype/pr_paired_punctuation.h: Likewise.
4815         * lib/unictype/pr_paragraph_separator.h: Likewise.
4816         * lib/unictype/pr_pattern_syntax.h: Likewise.
4817         * lib/unictype/pr_pattern_white_space.h: Likewise.
4818         * lib/unictype/pr_private_use.h: Likewise.
4819         * lib/unictype/pr_quotation_mark.h: Likewise.
4820         * lib/unictype/pr_radical.h: Likewise.
4821         * lib/unictype/pr_soft_dotted.h: Likewise.
4822         * lib/unictype/pr_space.h: Likewise.
4823         * lib/unictype/pr_titlecase.h: Likewise.
4824         * lib/unictype/pr_variation_selector.h: Likewise.
4825         * lib/unictype/pr_white_space.h: Likewise.
4826         * lib/unictype/pr_zero_width.h: Likewise.
4827         * lib/unictype/sy_c_ident.h: Likewise.
4828         * lib/unictype/sy_c_whitespace.h: Likewise.
4829         * lib/unictype/sy_java_whitespace.h: Likewise.
4830         * lib/uninorm/composition-table.gperf: Likewise.
4831         * lib/uninorm/decomposition-table1.h: Likewise.
4832         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
4833         LB8.
4834         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
4835         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
4836         * modules/unictype/*: Bump version number of expected libunistring
4837         version.
4838
4839 2011-01-09  Bruno Haible  <bruno@clisp.org>
4840
4841         Update to Unicode 5.2.0.
4842         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
4843         trailing whitespace removed.
4844
4845 2011-01-09  Bruno Haible  <bruno@clisp.org>
4846
4847         New Unicode character properties, from Unicode 5.2.0.
4848         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
4849         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
4850         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
4851         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
4852         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
4853         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
4854         uc_is_property_cased, uc_is_property_case_ignorable,
4855         uc_is_property_changes_when_lowercased,
4856         uc_is_property_changes_when_uppercased,
4857         uc_is_property_changes_when_titlecased,
4858         uc_is_property_changes_when_casefolded,
4859         uc_is_property_changes_when_casemapped): New declarations.
4860         * lib/unictype/pr_byname.gperf: Add the new properties.
4861         * modules/unictype/property-byname (Depends-on): Depend on the new
4862         properties modules.
4863         * modules/unictype/property-all (Depends-on): Likewise.
4864         * MODULES.html.sh (Unicode string functions): Add
4865         unictype/property-case-ignorable, unictype/property-cased,
4866         unictype/property-changes-when-casefolded,
4867         unictype/property-changes-when-casemapped,
4868         unictype/property-changes-when-lowercased,
4869         unictype/property-changes-when-titlecased,
4870         unictype/property-changes-when-uppercased.
4871
4872         New module 'unictype/property-changes-when-casemapped'.
4873         * modules/unictype/property-changes-when-casemapped: New file.
4874         * lib/unictype/pr_changes_when_casemapped.c: New file.
4875         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
4876         generated by gen-uni-tables.
4877         * modules/unictype/property-changes-when-casemapped-tests: New file.
4878         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
4879         automatically generated by gen-uni-tables.
4880
4881         New module 'unictype/property-changes-when-casefolded'.
4882         * modules/unictype/property-changes-when-casefolded: New file.
4883         * lib/unictype/pr_changes_when_casefolded.c: New file.
4884         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
4885         generated by gen-uni-tables.
4886         * modules/unictype/property-changes-when-casefolded-tests: New file.
4887         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
4888         automatically generated by gen-uni-tables.
4889
4890         New module 'unictype/property-changes-when-titlecased'.
4891         * modules/unictype/property-changes-when-titlecased: New file.
4892         * lib/unictype/pr_changes_when_titlecased.c: New file.
4893         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
4894         generated by gen-uni-tables.
4895         * modules/unictype/property-changes-when-titlecased-tests: New file.
4896         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
4897         automatically generated by gen-uni-tables.
4898
4899         New module 'unictype/property-changes-when-uppercased'.
4900         * modules/unictype/property-changes-when-uppercased: New file.
4901         * lib/unictype/pr_changes_when_uppercased.c: New file.
4902         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
4903         generated by gen-uni-tables.
4904         * modules/unictype/property-changes-when-uppercased-tests: New file.
4905         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
4906         automatically generated by gen-uni-tables.
4907
4908         New module 'unictype/property-changes-when-lowercased'.
4909         * modules/unictype/property-changes-when-lowercased: New file.
4910         * lib/unictype/pr_changes_when_lowercased.c: New file.
4911         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
4912         generated by gen-uni-tables.
4913         * modules/unictype/property-changes-when-lowercased-tests: New file.
4914         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
4915         automatically generated by gen-uni-tables.
4916
4917         New module 'unictype/property-case-ignorable'.
4918         * modules/unictype/property-case-ignorable: New file.
4919         * lib/unictype/pr_case_ignorable.c: New file.
4920         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
4921         by gen-uni-tables.
4922         * modules/unictype/property-case-ignorable-tests: New file.
4923         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
4924         generated by gen-uni-tables.
4925
4926         New module 'unictype/property-cased'.
4927         * modules/unictype/property-cased: New file.
4928         * lib/unictype/pr_cased.c: New file.
4929         * lib/unictype/pr_cased.h: New file, automatically generated by
4930         gen-uni-tables.
4931         * modules/unictype/property-cased-tests: New file.
4932         * tests/unictype/test-pr_cased.c: New file, automatically generated by
4933         gen-uni-tables.
4934
4935 2011-01-09  Bruno Haible  <bruno@clisp.org>
4936
4937         Update to Unicode 5.2.0.
4938         * lib/gen-uni-tables.c (output_predicate, output_category,
4939         output_combclass, output_bidi_category, output_decimal_digit_test,
4940         output_decimal_digit, output_digit_test, output_digit,
4941         output_numeric_test, output_numeric, output_mirror, output_scripts,
4942         output_scripts_byname, output_blocks, output_ident_category): Fix
4943         comment header.
4944         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
4945         get_wbp.
4946         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
4947         items.
4948         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
4949         Changes_When_Lowercased, Changes_When_Uppercased,
4950         Changes_When_Titlecased, Changes_When_Casefolded,
4951         Changes_When_Casemapped.
4952         (is_property_alphabetic, is_property_default_ignorable_code_point):
4953         Update for Unicode 5.2.0.
4954         (is_property_cased, is_property_case_ignorable,
4955         is_property_changes_when_lowercased,
4956         is_property_changes_when_uppercased,
4957         is_property_changes_when_titlecased,
4958         is_property_changes_when_casefolded,
4959         is_property_changes_when_casemapped): New functions.
4960         (output_properties): Output also the properties cased, case_ignorable,
4961         changes_when_lowercased, changes_when_uppercased,
4962         changes_when_titlecased, changes_when_casefolded,
4963         changes_when_casemapped.
4964         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
4965         Unicode TR#11 revision 17 -> 19.
4966         (LBP_CP): New enumeration value.
4967         (LBP_*): Adjust values accordingly.
4968         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4969         TR#14 revision 22 -> 24.
4970         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
4971         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
4972         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
4973         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
4974         is_WBP_MIDLETTER.
4975         (output_composition_tables): Allow for 24 bits instead of 16 bits in
4976         the code1 and code2 of each composition rule.
4977         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
4978         * lib/unicase/ignorable.h: Likewise.
4979         * lib/unicase/tocasefold.h: Likewise.
4980         * lib/unicase/tolower.h: Likewise.
4981         * lib/unicase/totitle.h: Likewise.
4982         * lib/unicase/toupper.h: Likewise.
4983         * lib/unictype/bidi_of.h: Likewise.
4984         * lib/unictype/blocks.h: Likewise.
4985         * lib/unictype/categ_C.h: Likewise.
4986         * lib/unictype/categ_Cf.h: Likewise.
4987         * lib/unictype/categ_Cn.h: Likewise.
4988         * lib/unictype/categ_L.h: Likewise.
4989         * lib/unictype/categ_Ll.h: Likewise.
4990         * lib/unictype/categ_Lm.h: Likewise.
4991         * lib/unictype/categ_Lo.h: Likewise.
4992         * lib/unictype/categ_Lu.h: Likewise.
4993         * lib/unictype/categ_M.h: Likewise.
4994         * lib/unictype/categ_Mc.h: Likewise.
4995         * lib/unictype/categ_Mn.h: Likewise.
4996         * lib/unictype/categ_N.h: Likewise.
4997         * lib/unictype/categ_Nd.h: Likewise.
4998         * lib/unictype/categ_Nl.h: Likewise.
4999         * lib/unictype/categ_No.h: Likewise.
5000         * lib/unictype/categ_P.h: Likewise.
5001         * lib/unictype/categ_Pd.h: Likewise.
5002         * lib/unictype/categ_Po.h: Likewise.
5003         * lib/unictype/categ_S.h: Likewise.
5004         * lib/unictype/categ_Sc.h: Likewise.
5005         * lib/unictype/categ_So.h: Likewise.
5006         * lib/unictype/categ_of.h: Likewise.
5007         * lib/unictype/combining.h: Likewise.
5008         * lib/unictype/ctype_alnum.h: Likewise.
5009         * lib/unictype/ctype_alpha.h: Likewise.
5010         * lib/unictype/ctype_graph.h: Likewise.
5011         * lib/unictype/ctype_lower.h: Likewise.
5012         * lib/unictype/ctype_print.h: Likewise.
5013         * lib/unictype/ctype_punct.h: Likewise.
5014         * lib/unictype/ctype_upper.h: Likewise.
5015         * lib/unictype/decdigit.h: Likewise.
5016         * lib/unictype/digit.h: Likewise.
5017         * lib/unictype/numeric.h: Likewise.
5018         * lib/unictype/pr_alphabetic.h: Likewise.
5019         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5020         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5021         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5022         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5023         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5024         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5025         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5026         * lib/unictype/pr_combining.h: Likewise.
5027         * lib/unictype/pr_composite.h: Likewise.
5028         * lib/unictype/pr_currency_symbol.h: Likewise.
5029         * lib/unictype/pr_dash.h: Likewise.
5030         * lib/unictype/pr_decimal_digit.h: Likewise.
5031         * lib/unictype/pr_deprecated.h: Likewise.
5032         * lib/unictype/pr_diacritic.h: Likewise.
5033         * lib/unictype/pr_extender.h: Likewise.
5034         * lib/unictype/pr_grapheme_base.h: Likewise.
5035         * lib/unictype/pr_grapheme_extend.h: Likewise.
5036         * lib/unictype/pr_grapheme_link.h: Likewise.
5037         * lib/unictype/pr_id_continue.h: Likewise.
5038         * lib/unictype/pr_id_start.h: Likewise.
5039         * lib/unictype/pr_ideographic.h: Likewise.
5040         * lib/unictype/pr_ignorable_control.h: Likewise.
5041         * lib/unictype/pr_logical_order_exception.h: Likewise.
5042         * lib/unictype/pr_lowercase.h: Likewise.
5043         * lib/unictype/pr_numeric.h: Likewise.
5044         * lib/unictype/pr_other_alphabetic.h: Likewise.
5045         * lib/unictype/pr_punctuation.h: Likewise.
5046         * lib/unictype/pr_sentence_terminal.h: Likewise.
5047         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5048         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5049         * lib/unictype/pr_unified_ideograph.h: Likewise.
5050         * lib/unictype/pr_uppercase.h: Likewise.
5051         * lib/unictype/pr_xid_continue.h: Likewise.
5052         * lib/unictype/pr_xid_start.h: Likewise.
5053         * lib/unictype/pr_zero_width.h: Likewise.
5054         * lib/unictype/scripts.h: Likewise.
5055         * lib/unictype/scripts_byname.gperf: Likewise.
5056         * lib/unictype/sy_java_ident.h: Likewise.
5057         * lib/unigbrk/gbrkprop.h: Likewise.
5058         * lib/unilbrk/lbrkprop1.h: Likewise.
5059         * lib/unilbrk/lbrkprop2.h: Likewise.
5060         * lib/unilbrk/lbrktables.h: Likewise.
5061         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5062         LBP_CP. Implement rule LB30.
5063         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5064         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5065         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5066         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5067         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5068         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5069         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5070         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5071         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5072         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5073         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5074         bits instead of 16 bits in the code1 and code2 of each composition
5075         rule.
5076         (uc_composition): Update for Unicode 5.2.0.
5077         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5078         * lib/uninorm/decomposition-table2.h: Likewise.
5079         * lib/uniwbrk/wbrkprop.h: Likewise.
5080         * tests/unicase/test-cased.c: Likewise.
5081         * tests/unicase/test-ignorable.c: Likewise.
5082         * tests/unicase/test-uc_tolower.c: Likewise.
5083         * tests/unicase/test-uc_totitle.c: Likewise.
5084         * tests/unicase/test-uc_toupper.c: Likewise.
5085         * tests/unictype/test-categ_C.c: Likewise.
5086         * tests/unictype/test-categ_Cf.c: Likewise.
5087         * tests/unictype/test-categ_Cn.c: Likewise.
5088         * tests/unictype/test-categ_L.c: Likewise.
5089         * tests/unictype/test-categ_Ll.c: Likewise.
5090         * tests/unictype/test-categ_Lm.c: Likewise.
5091         * tests/unictype/test-categ_Lo.c: Likewise.
5092         * tests/unictype/test-categ_Lu.c: Likewise.
5093         * tests/unictype/test-categ_M.c: Likewise.
5094         * tests/unictype/test-categ_Mc.c: Likewise.
5095         * tests/unictype/test-categ_Mn.c: Likewise.
5096         * tests/unictype/test-categ_N.c: Likewise.
5097         * tests/unictype/test-categ_Nd.c: Likewise.
5098         * tests/unictype/test-categ_Nl.c: Likewise.
5099         * tests/unictype/test-categ_No.c: Likewise.
5100         * tests/unictype/test-categ_P.c: Likewise.
5101         * tests/unictype/test-categ_Pd.c: Likewise.
5102         * tests/unictype/test-categ_Po.c: Likewise.
5103         * tests/unictype/test-categ_S.c: Likewise.
5104         * tests/unictype/test-categ_Sc.c: Likewise.
5105         * tests/unictype/test-categ_So.c: Likewise.
5106         * tests/unictype/test-ctype_alnum.c: Likewise.
5107         * tests/unictype/test-ctype_alpha.c: Likewise.
5108         * tests/unictype/test-ctype_graph.c: Likewise.
5109         * tests/unictype/test-ctype_lower.c: Likewise.
5110         * tests/unictype/test-ctype_print.c: Likewise.
5111         * tests/unictype/test-ctype_punct.c: Likewise.
5112         * tests/unictype/test-ctype_upper.c: Likewise.
5113         * tests/unictype/test-decdigit.h: Likewise.
5114         * tests/unictype/test-digit.h: Likewise.
5115         * tests/unictype/test-numeric.h: Likewise.
5116         * tests/unictype/test-pr_alphabetic.c: Likewise.
5117         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5118         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5119         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5120         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5121         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5122         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5123         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5124         * tests/unictype/test-pr_combining.c: Likewise.
5125         * tests/unictype/test-pr_composite.c: Likewise.
5126         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5127         * tests/unictype/test-pr_dash.c: Likewise.
5128         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5129         * tests/unictype/test-pr_deprecated.c: Likewise.
5130         * tests/unictype/test-pr_diacritic.c: Likewise.
5131         * tests/unictype/test-pr_extender.c: Likewise.
5132         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5133         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5134         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5135         * tests/unictype/test-pr_id_continue.c: Likewise.
5136         * tests/unictype/test-pr_id_start.c: Likewise.
5137         * tests/unictype/test-pr_ideographic.c: Likewise.
5138         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5139         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5140         * tests/unictype/test-pr_lowercase.c: Likewise.
5141         * tests/unictype/test-pr_numeric.c: Likewise.
5142         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5143         * tests/unictype/test-pr_punctuation.c: Likewise.
5144         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5145         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5146         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5147         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5148         * tests/unictype/test-pr_uppercase.c: Likewise.
5149         * tests/unictype/test-pr_xid_continue.c: Likewise.
5150         * tests/unictype/test-pr_xid_start.c: Likewise.
5151         * tests/unictype/test-pr_zero_width.c: Likewise.
5152         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5153         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5154         changed behaviour: line breaking is now disallowed between a letter
5155         or '=' and '('.
5156         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5157         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5158         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5159         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5160         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5161         lib/uniwidth/width.c.
5162         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5163         without comments, but with the original copyright notice.
5164         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5165         changes.
5166         * lib/unictype/categ_Cc.h: Likewise.
5167         * lib/unictype/categ_Co.h: Likewise.
5168         * lib/unictype/categ_Cs.h: Likewise.
5169         * lib/unictype/categ_Lt.h: Likewise.
5170         * lib/unictype/categ_Me.h: Likewise.
5171         * lib/unictype/categ_Pc.h: Likewise.
5172         * lib/unictype/categ_Pe.h: Likewise.
5173         * lib/unictype/categ_Pf.h: Likewise.
5174         * lib/unictype/categ_Pi.h: Likewise.
5175         * lib/unictype/categ_Ps.h: Likewise.
5176         * lib/unictype/categ_Sk.h: Likewise.
5177         * lib/unictype/categ_Sm.h: Likewise.
5178         * lib/unictype/categ_Z.h: Likewise.
5179         * lib/unictype/categ_Zl.h: Likewise.
5180         * lib/unictype/categ_Zp.h: Likewise.
5181         * lib/unictype/categ_Zs.h: Likewise.
5182         * lib/unictype/ctype_blank.h: Likewise.
5183         * lib/unictype/ctype_cntrl.h: Likewise.
5184         * lib/unictype/ctype_digit.h: Likewise.
5185         * lib/unictype/ctype_space.h: Likewise.
5186         * lib/unictype/ctype_xdigit.h: Likewise.
5187         * lib/unictype/mirror.h: Likewise.
5188         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5189         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5190         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5191         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5192         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5193         * lib/unictype/pr_bidi_control.h: Likewise.
5194         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5195         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5196         * lib/unictype/pr_bidi_pdf.h: Likewise.
5197         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5198         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5199         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5200         * lib/unictype/pr_format_control.h: Likewise.
5201         * lib/unictype/pr_hex_digit.h: Likewise.
5202         * lib/unictype/pr_hyphen.h: Likewise.
5203         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5204         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5205         * lib/unictype/pr_iso_control.h: Likewise.
5206         * lib/unictype/pr_join_control.h: Likewise.
5207         * lib/unictype/pr_left_of_pair.h: Likewise.
5208         * lib/unictype/pr_line_separator.h: Likewise.
5209         * lib/unictype/pr_math.h: Likewise.
5210         * lib/unictype/pr_non_break.h: Likewise.
5211         * lib/unictype/pr_not_a_character.h: Likewise.
5212         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5213         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5214         * lib/unictype/pr_other_id_continue.h: Likewise.
5215         * lib/unictype/pr_other_id_start.h: Likewise.
5216         * lib/unictype/pr_other_lowercase.h: Likewise.
5217         * lib/unictype/pr_other_math.h: Likewise.
5218         * lib/unictype/pr_other_uppercase.h: Likewise.
5219         * lib/unictype/pr_paired_punctuation.h: Likewise.
5220         * lib/unictype/pr_paragraph_separator.h: Likewise.
5221         * lib/unictype/pr_pattern_syntax.h: Likewise.
5222         * lib/unictype/pr_pattern_white_space.h: Likewise.
5223         * lib/unictype/pr_private_use.h: Likewise.
5224         * lib/unictype/pr_quotation_mark.h: Likewise.
5225         * lib/unictype/pr_radical.h: Likewise.
5226         * lib/unictype/pr_soft_dotted.h: Likewise.
5227         * lib/unictype/pr_space.h: Likewise.
5228         * lib/unictype/pr_titlecase.h: Likewise.
5229         * lib/unictype/pr_variation_selector.h: Likewise.
5230         * lib/unictype/pr_white_space.h: Likewise.
5231         * lib/unictype/sy_c_ident.h: Likewise.
5232         * lib/unictype/sy_c_whitespace.h: Likewise.
5233         * lib/unictype/sy_java_whitespace.h: Likewise.
5234         * modules/uni*/*: Bump version number of expected libunistring version.
5235         Reported by Simon Josefsson.
5236
5237 2011-01-09  Karl Heuer  <kwzh@gnu.org>
5238
5239         useless-if-before-free: fix typo in --help and make the internal,
5240         automatic version date update process work once again.
5241         --help output contained a NUL character instead of the
5242         backslash-zero that was intended.  Also, the "must lie within
5243         the first 8 lines" line is on line 9, and hence not getting
5244         automatically updated.
5245         * build-aux/useless-if-before-free: Fix the former by adding a
5246         backslash, and the latter by condensing the three lines of what-it-does
5247         to a single line, leaving one line of slack for the future.
5248
5249 2011-01-09  Bruno Haible  <bruno@clisp.org>
5250
5251         uniwidth/width: Fix width of U+1D173..U+1D17A.
5252         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
5253         symbolic_width, output_width_property_test): New functions.
5254         (main): Invoke output_nonspacing_property, output_width_property_test.
5255         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
5256         U+1D173..U+1D17A.
5257         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
5258         1.
5259         * modules/uniwidth/*: Bump version number of expected libunistring
5260         version.
5261         * modules/unilbrk/*: Likewise.
5262
5263 2011-01-08  Bruno Haible  <bruno@clisp.org>
5264
5265         uninorm tests: Preserve copyright of Unicode data file.
5266         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
5267         Mention modifications.
5268
5269 2011-01-08  Bruno Haible  <bruno@clisp.org>
5270
5271         gen-uni-tables: Prepare for Unicode 5.2.0.
5272         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
5273         (debug_output_lbp, output_lbp): Update.
5274
5275 2011-01-08  Bruno Haible  <bruno@clisp.org>
5276
5277         unilbrk: Clarify gen-uni-tables.c code.
5278         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
5279         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
5280         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
5281
5282 2011-01-07  Bruno Haible  <bruno@clisp.org>
5283
5284         strtod: Restore errno when successfully parsing Infinity or NaN.
5285         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
5286         restore the original errno.
5287
5288 2011-01-07  Bruno Haible  <bruno@clisp.org>
5289
5290         remove test: Avoid failure on HP-UX 11.
5291         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
5292
5293 2011-01-07  Bruno Haible  <bruno@clisp.org>
5294
5295         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
5296         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
5297         error code.
5298
5299 2011-01-07  Pádraig Brady <P@draigBrady.com>
5300
5301         ignore-value: fixup comments, and add Eric Blake
5302         as an author since he rewrote the macros.
5303         * lib/ignore-value.h (ignore_value):  State that
5304         we now support aggregates.  Also specify exactly
5305         when the GCC warn_unused_result feature was added.
5306
5307 2011-01-06  Eric Blake  <eblake@redhat.com>
5308
5309         ignore-value: support aggregate types
5310         * lib/ignore-value.h (ignore_value): Provide separate gcc
5311         definition.
5312         * modules/ignore-value-tests: New test module.
5313         * tests/test-ignore-value.c: New test.
5314
5315         maint.mk: improve sc_prohibit_strcmp regex
5316         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
5317         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
5318         definition of STRNEQ.
5319
5320         signal: work around Haiku issue with SIGBUS
5321         * lib/siglist.h: Add comment.
5322         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
5323         strsignal's favoring of SIGSEGV.
5324         * tests/test-signal.c (main): Avoid test failure.
5325         * doc/posix-headers/signal.texi (signal.h): Document the issue.
5326         Reported by Scott McCreary.
5327
5328         maint.mk: add pre-release check to ensure submodule commits are public
5329         * top/maint.mk (public-submodule-commit): New rule.
5330         (submodule-checks): New variable.
5331         (alpha beta stable): Depend on the variable.
5332
5333 2011-01-05  Pádraig Brady <P@draigBrady.com>
5334         and Jim Meyering  <meyering@redhat.com>
5335
5336         ignore-value: make ignore_value more generic; deprecate ignore_ptr
5337         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
5338         (ATTRIBUTE_DEPRECATED): Define.
5339         (_ignore_case): New function.
5340         (ignore_value): New macro, to replace the old function.
5341         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
5342         * modules/ignore-value (Depends-on): Add stdint.
5343
5344 2011-01-04  Eric Blake  <eblake@redhat.com>
5345
5346         doc: regenerate INSTALL
5347         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
5348         @firstparagraphindent support, now that autoconf dropped it.
5349         (INSTALL_PRELUDE): Reinstate old macro.
5350         * doc/install.texi: Resync from autoconf.
5351         * doc/INSTALL: Reflect recent autoconf update.
5352         * doc/INSTALL.ISO: Likewise.
5353         * doc/INSTALL.UTF-8: Likewise.
5354         Reported by Karl Berry.
5355
5356 2011-01-04  Bruce Korb  <address@hidden>
5357
5358         git-version-gen: avoid a sub-shell
5359         * build-aux/git-version-gen: Redirect stderr in `...` via
5360         "exec 2>...", rather than via an added sub-shell.
5361
5362 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
5363
5364         git-version-gen: use (...) rather than sh -c '...'
5365         * build-aux/git-version-gen: Rather than hard-coding a shell's name
5366         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
5367
5368 2011-01-03  Jim Meyering  <meyering@redhat.com>
5369
5370         git-version-gen: convert leading TABs to spaces
5371         * build-aux/git-version-gen: Expand leading TABs.
5372
5373         git-version-gen: handle failed "git rev-list"
5374         * build-aux/git-version-gen: Rather than leaking a "fatal" error
5375         from git and proceeding as if it had succeeded but printed no SHA1
5376         checksums, suppress the diagnostic and handle the failure.
5377         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
5378
5379         git-version-gen: include command name in one more diagnostic
5380         * build-aux/git-version-gen: When the required .tarball-version file
5381         was missing or unreadable, you might see the diagnostic from "cat",
5382         but no trace of the name of the invoking script.  Now, you still see
5383         the diagnostic from cat, but also get one from "git-version-gen: ".
5384         Inspired by a patch from Bruce Korb.
5385
5386         update-copyright: adjust test to match changed code
5387         * tests/test-update-copyright.sh: Change test's expected output
5388         to match new actual output.
5389
5390 2011-01-02  Bruno Haible  <bruno@clisp.org>
5391
5392         getlogin_r: Avoid test failure on HP-UX 11.
5393         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
5394         ERANGE when the second argument is zero.
5395         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
5396         portability problem.
5397
5398 2011-01-02  Bruce Korb  <bkorb@gnu.org>
5399
5400         * build-aux/update-copyright: doc Simon's changes
5401
5402 2011-01-02  Simon Josefsson  <simon@josefsson.org>
5403
5404         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
5405         environment variable.
5406
5407 2011-01-02  Bruno Haible  <bruno@clisp.org>
5408
5409         unigbrk: Avoid gcc warnings.
5410         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
5411         unused variable.
5412         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
5413         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
5414         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
5415         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
5416         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
5417         Change type of first argument to 'const char *'.
5418         (main): Remove unused variable.
5419         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
5420         type of first argument to 'const char *'.
5421         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
5422         Likewise.
5423         (main): Change type of variable 's'.
5424         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
5425         to 'int'.
5426
5427 2011-01-02  Bruno Haible  <bruno@clisp.org>
5428
5429         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
5430         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
5431         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
5432         bug.
5433         * lib/pwrite.c: Undo 2010-12-31 patch.
5434         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
5435
5436 2011-01-02  Bruno Haible  <bruno@clisp.org>
5437
5438         pread: Fix test whether it works.
5439         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
5440
5441 2011-01-02  Bruno Haible  <bruno@clisp.org>
5442
5443         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
5444         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
5445         ends in "6". Don't require a specific month name. Try also the locale
5446         names found on HP-UX 11 and Solaris 7.
5447
5448 2011-01-02  Bruno Haible  <bruno@clisp.org>
5449
5450         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
5451         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
5452         C linkage.
5453         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
5454
5455 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5456
5457         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
5458         for consistency, since the "cluster" term is not used elsewhere.
5459         * lib/unigbrk.in.h: Update name.
5460         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
5461         * lib/unigbrk/u16-grapheme-next.c: Update name.
5462         * lib/unigbrk/u16-grapheme-prev.c: Update name.
5463         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
5464         * lib/unigbrk/u32-grapheme-next.c: Update name.
5465         * lib/unigbrk/u32-grapheme-prev.c: Update name.
5466         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
5467         * lib/unigbrk/u8-grapheme-next.c: Update name.
5468         * lib/unigbrk/u8-grapheme-prev.c: Update name.
5469         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
5470         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
5471         Suggested by Bruno Haible.
5472
5473 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5474
5475         Remove module 'u8-grapheme-len' as too redundant with
5476         'u8-grapheme-next'.
5477         * modules/unigbrk/u8-grapheme-len: Delete file.
5478         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
5479         * lib/unigbrk.in.h: Remove prototype for deleted function.
5480         * lib/unigbrk/u8-grapheme-len.c: Delete file.
5481         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
5482
5483         Remove module 'u16-grapheme-len' as too redundant with
5484         'u16-grapheme-next'.
5485         * modules/unigbrk/u16-grapheme-len: Delete file.
5486         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
5487         * lib/unigbrk.in.h: Remove prototype for deleted function.
5488         * lib/unigbrk/u16-grapheme-len.c: Delete file.
5489         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
5490
5491         Remove module 'u32-grapheme-len' as too redundant with
5492         'u32-grapheme-next'.
5493         * modules/unigbrk/u32-grapheme-len: Delete file.
5494         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
5495         * lib/unigbrk.in.h: Remove prototype for deleted function.
5496         * lib/unigbrk/u32-grapheme-len.c: Delete file.
5497         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
5498
5499         Suggested by Bruno Haible.
5500
5501 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
5502
5503         * unigbrk.in.h: Fix typo: "ben" => "been".
5504         Reported by Bruno Haible.
5505
5506 2011-01-01  Jim Meyering  <meyering@redhat.com>
5507
5508         maint: update almost all copyright ranges to include 2011
5509         Run the new "make update-copyright" rule.
5510
5511 2011-01-01  Jim Meyering  <meyering@redhat.com>
5512
5513         maint: update-copyright: exempt doc/INSTALL*
5514         * Makefile (update-copyright): Also exclude doc/INSTALL*,
5515         since they are generated.  Suggested by Bruno Haible.
5516
5517 2011-01-01  Jim Meyering  <meyering@redhat.com>
5518
5519         maint: refine the update-copyright rule
5520         * Makefile (update-copyright): Also exclude any file that includes
5521         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
5522         code that merely generates the comment.
5523
5524 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5525
5526         New module 'u8-grapheme-len'.
5527         * modules/unigbrk/u8-grapheme-len: New file.
5528         * modules/unigbrk/u8-grapheme-len-tests: New file.
5529         * lib/unigbrk.in.h: Add prototype for new function.
5530         * lib/unigbrk/u8-grapheme-len.c: New file.
5531         * tests/unigbrk/test-u8-grapheme-len.c: New file.
5532
5533         New module 'u16-grapheme-len'.
5534         * modules/unigbrk/u16-grapheme-len: New file.
5535         * modules/unigbrk/u16-grapheme-len-tests: New file.
5536         * lib/unigbrk.in.h: Add prototype for new function.
5537         * lib/unigbrk/u16-grapheme-len.c: New file.
5538         * tests/unigbrk/test-u16-grapheme-len.c: New file.
5539
5540         New module 'u32-grapheme-len'.
5541         * modules/unigbrk/u32-grapheme-len: New file.
5542         * modules/unigbrk/u32-grapheme-len-tests: New file.
5543         * lib/unigbrk.in.h: Add prototype for new function.
5544         * lib/unigbrk/u32-grapheme-len.c: New file.
5545         * tests/unigbrk/test-u32-grapheme-len.c: New file.
5546
5547         New module 'u8-grapheme-next'.
5548         * modules/unigbrk/u8-grapheme-next: New file.
5549         * modules/unigbrk/u8-grapheme-next-tests: New file.
5550         * lib/unigbrk.in.h: Add prototype for new function.
5551         * lib/unigbrk/u8-grapheme-next.c: New file.
5552         * tests/unigbrk/test-u8-grapheme-next.c: New file.
5553
5554         New module 'u16-grapheme-next'.
5555         * modules/unigbrk/u16-grapheme-next: New file.
5556         * modules/unigbrk/u16-grapheme-next-tests: New file.
5557         * lib/unigbrk.in.h: Add prototype for new function.
5558         * lib/unigbrk/u16-grapheme-next.c: New file.
5559         * tests/unigbrk/test-u16-grapheme-next.c: New file.
5560
5561         New module 'u32-grapheme-next'.
5562         * modules/unigbrk/u32-grapheme-next: New file.
5563         * modules/unigbrk/u32-grapheme-next-tests: New file.
5564         * lib/unigbrk.in.h: Add prototype for new function.
5565         * lib/unigbrk/u32-grapheme-next.c: New file.
5566         * tests/unigbrk/test-u32-grapheme-next.c: New file.
5567
5568         New module 'u8-grapheme-prev'.
5569         * modules/unigbrk/u8-grapheme-prev: New file.
5570         * modules/unigbrk/u8-grapheme-prev-tests: New file.
5571         * lib/unigbrk.in.h: Add prototype for new function.
5572         * lib/unigbrk/u8-grapheme-prev.c: New file.
5573         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
5574
5575         New module 'u16-grapheme-prev'.
5576         * modules/unigbrk/u16-grapheme-prev: New file.
5577         * modules/unigbrk/u16-grapheme-prev-tests: New file.
5578         * lib/unigbrk.in.h: Add prototype for new function.
5579         * lib/unigbrk/u16-grapheme-prev.c: New file.
5580         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
5581
5582         New module 'u32-grapheme-prev'.
5583         * modules/unigbrk/u32-grapheme-prev: New file.
5584         * modules/unigbrk/u32-grapheme-prev-tests: New file.
5585         * lib/unigbrk.in.h: Add prototype for new function.
5586         * lib/unigbrk/u32-grapheme-prev.c: New file.
5587         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
5588
5589         New module 'u8-grapheme-breaks'.
5590         * modules/unigbrk/u8-grapheme-breaks: New file.
5591         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
5592         * lib/unigbrk.in.h: Add prototype for new function.
5593         * lib/unigbrk/u8-grapheme-breaks.c: New file.
5594         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
5595
5596         New module 'u16-grapheme-breaks'.
5597         * modules/unigbrk/u16-grapheme-breaks: New file.
5598         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
5599         * lib/unigbrk.in.h: Add prototype for new function.
5600         * lib/unigbrk/u16-grapheme-breaks.c: New file.
5601         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
5602
5603         New module 'u32-grapheme-breaks'.
5604         * modules/unigbrk/u32-grapheme-breaks: New file.
5605         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
5606         * lib/unigbrk.in.h: Add prototype for new function.
5607         * lib/unigbrk/u32-grapheme-breaks.c: New file.
5608         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
5609
5610         New module 'ulc-grapheme-breaks'.
5611         * modules/unigbrk/ulc-grapheme-breaks: New file.
5612         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
5613         * m4/locale-ar.m4: New file.
5614         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
5615         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
5616         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
5617
5618 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
5619
5620         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
5621         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
5622         modified how this file was generated before I initially submitted
5623         the module, but failed to regenerate it.  This meant that several
5624         of the level2 entries were wrong.
5625         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
5626         Remove the division-by-2 that is folded into the table now that
5627         gbrkprop.h has been regenerated properly.  Now -1 entries are
5628         handled correctly.
5629
5630         New module 'unigbrk/uc-gbrk-prop-tests'.
5631         * modules/unigbrk/uc-gbrk-prop-tests: New file.
5632         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
5633         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
5634         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
5635
5636 2011-01-01  Bruno Haible  <bruno@clisp.org>
5637
5638         Avoid use of hexadecimal escapes.
5639         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
5640         instead of hexadecimal escapes.
5641
5642 2011-01-01  Jim Meyering  <meyering@redhat.com>
5643
5644         maint: new rule to update copyright year ranges
5645         * Makefile (update-copyright): New rule.
5646
5647         maint: indent with TABs in Makefile
5648         * Makefile: Expand leading sequences of spaces to TABs
5649
5650         version-etc: update the copyright year it reports
5651         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
5652
5653 2010-12-31  Bruno Haible  <bruno@clisp.org>
5654
5655         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
5656         * lib/isfinite.c (zerof, zerod, zerol): New variables.
5657         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
5658         zero.
5659
5660 2010-12-31  Bruno Haible  <bruno@clisp.org>
5661
5662         pwrite: Work around HP-UX 11.11 bug.
5663         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
5664         works and set REPLACE_PWRITE if not.
5665         * lib/pwrite.c (pwrite): Add an implementation that uses the system
5666         function.
5667         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
5668
5669 2010-12-31  Bruno Haible  <bruno@clisp.org>
5670
5671         pread: Work around HP-UX 11 bugs.
5672         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
5673         and set REPLACE_PREAD if not.
5674         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
5675
5676 2010-12-31  Eric Blake  <eblake@redhat.com>
5677
5678         nl_langinfo: fix YESEXPR on Irix 6.5
5679         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
5680         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
5681         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
5682         it.
5683
5684 2010-12-31  Bruno Haible  <bruno@clisp.org>
5685
5686         iconv: Document HP-UX 11 bug.
5687         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
5688
5689 2010-12-31  Bruno Haible  <bruno@clisp.org>
5690
5691         ldexpl: Fix link error on HP-UX 11.
5692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
5693         LDEXPL_LIBM, using $ISNANL_LIBM.
5694
5695 2010-12-31  Eric Blake  <eblake@redhat.com>
5696
5697         ftello: avoid compilation failure with SunStudio c89
5698         * lib/ftello.c (ftello): Use lseek, not llseek.
5699
5700         tests: avoid failing coreutils tests on cygwin
5701         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
5702         (create_exe_shims_): Return 0 when skipping.
5703
5704 2010-12-31  Bruno Haible  <bruno@clisp.org>
5705
5706         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
5707         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
5708
5709 2010-12-31  Bruno Haible  <bruno@clisp.org>
5710
5711         waitpid: Fix link error in C++ mode.
5712         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
5713
5714 2010-12-31  Bruno Haible  <bruno@clisp.org>
5715
5716         isnan: Use GCC built-ins when possible.
5717         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
5718         __builtin_isnan.
5719         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
5720         (isnan): Define using GCC built-ins for GCC >= 4.0.
5721
5722 2010-12-31  Bruno Haible  <bruno@clisp.org>
5723
5724         isnand: Fix mistake.
5725         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
5726         __builtin_isnand.
5727
5728 2010-12-31  Bruno Haible  <bruno@clisp.org>
5729
5730         open: Avoid C++ error on HP-UX 11.
5731         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
5732
5733 2010-12-31  Bruno Haible  <bruno@clisp.org>
5734
5735         time_r: Add missing declarations on HP-UX 11.
5736         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
5737         instead of HAVE_LOCALTIME_R.
5738         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
5739         HAVE_LOCALTIME_R always.
5740         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
5741         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
5742         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
5743         HAVE_LOCALTIME_R.
5744         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
5745         * doc/posix-functions/localtime_r.texi: Likewise.
5746
5747 2010-12-29  Eric Blake  <eblake@redhat.com>
5748
5749         mountlist: tweak previous commit
5750         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
5751         Reported by Paul Eggert.
5752
5753         mountlist: fix local drive detection on cygwin
5754         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
5755         that works for cygwin.
5756
5757 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5758
5759         ftoastr, snprintf: ftoastr + snprintf module
5760         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
5761         since the snprintf module now should be good enough here.
5762         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
5763         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
5764         and gl_MODULE_INDICATOR([snprintf]), but the former enables
5765         GNULIB_SNPRINTF only for the test directory, and the latter
5766         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
5767         seems to suffice by itself.
5768
5769 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5770
5771         alloca: one step towards thread-safety
5772         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
5773         need for a static variable.  All callers changed.  This does not
5774         make the alloca replacement thread-safe, but it's one step.
5775
5776         tests: minor indenting change
5777         * tests/init.sh: Sync from coreutils housekeeping patch
5778         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
5779         to keep lines within 80 columns.
5780
5781 2010-12-28  Jim Meyering  <meyering@redhat.com>
5782
5783         regex: don't infloop on persistent failing calloc
5784         * lib/regexec.c (build_trtable): Return failure indication upon
5785         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
5786         In glibc, this was fixed for version 2.13:
5787         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
5788
5789 2010-12-28  Bruno Haible  <bruno@clisp.org>
5790             Paul Eggert <eggert@cs.ucla.edu>
5791
5792         linkat: Make implementation robust against system behaviour variations.
5793         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
5794         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
5795         way, and to -2 if it needs a generic runtime test.
5796         * lib/linkat.c (solaris_optimized_link_immediate,
5797         solaris_optimized_link_follow): New functions.
5798         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
5799         (check_same_link): Use it.
5800
5801 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
5802
5803         New module 'unigbrk/base'.
5804         * modules/unigbrk/base: New file.
5805         * lib/unigbrk.in.h: New file.
5806
5807         New module 'unigbrk/uc-gbrk-prop'.
5808         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
5809         * modules/unigbrk/uc-gbrk-prop: New file.
5810         * lib/unigbrk/gbrkprop.h: New file.
5811         * lib/unigbrk/uc-gbrk-prop.c: New file.
5812
5813         New module 'unigbrk/uc-is-grapheme-break'.
5814         * modules/unigbrk/uc-is-grapheme-break: New file.
5815         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
5816         * lib/unigbrk/uc-is-grapheme-break.c: New file.
5817         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
5818         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
5819         * tests/unigbrk/GraphemeBreakTest.txt: New file.
5820
5821         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
5822
5823 2010-12-27  Bruno Haible  <bruno@clisp.org>
5824
5825         linkat test: Avoid failure on Solaris 11 2010-11.
5826         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
5827
5828 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5829
5830         utimens: work around glibc rounding bug on more platforms
5831         * lib/utimens.c (fdutimens): Work around rounding bug even if
5832         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
5833         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
5834
5835 2010-12-27  Bruno Haible  <bruno@clisp.org>
5836
5837         select tests: Improve comments.
5838         * tests/test-select.c (do_select): Add comments.
5839
5840 2010-12-27  Bruno Haible  <bruno@clisp.org>
5841
5842         select tests: Safer way of handling timeout.
5843         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
5844         at every invocation.
5845
5846 2010-12-27  Bruno Haible  <bruno@clisp.org>
5847
5848         select tests: Use 'bool' where appropriate.
5849         * tests/test-select.c (connect_to_socket): Change argument type to
5850         'bool'.
5851
5852 2010-12-27  Bruno Haible  <bruno@clisp.org>
5853
5854         select tests: Use existing modules.
5855         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
5856         (configure.ac): Don't test for unistd.h.
5857         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
5858         declared in <unistd.h>.
5859
5860 2010-12-27  Bruno Haible  <bruno@clisp.org>
5861
5862         mbrtowc: Work around a Solaris 7 bug.
5863         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
5864         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
5865         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
5866         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
5867         MBRTOWC_NULL_ARG1_BUG.
5868         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
5869         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
5870         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
5871         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
5872
5873 2010-12-27  Jim Meyering  <meyering@redhat.com>
5874
5875         read-file.c: tweak syntax
5876         * lib/read-file.c (fread_file): Remove space after "*" in function
5877         definitions.
5878
5879 2010-12-27  Bruno Haible  <bruno@clisp.org>
5880
5881         times test: Avoid gcc warnings on OSF/1.
5882         * tests/test-times.c (main): Cast printf arguments from clock_t to
5883         'long int'.
5884
5885 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5886
5887         utimens: work around glibc rounding bug on older Linux kernels
5888         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
5889         on Linux with a glibc whose utimes might not work, then work
5890         around a longstanding glibc bug involving rounding rather than
5891         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
5892         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5893
5894 2010-12-26  Bruno Haible  <bruno@clisp.org>
5895
5896         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
5897         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
5898         _GL_CXXALIAS_SYS.
5899         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5900
5901 2010-12-26  Bruno Haible  <bruno@clisp.org>
5902
5903         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
5904         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
5905         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
5906         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
5907         looking for the declaration.
5908         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
5909         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
5910         problem.
5911         * doc/posix-functions/inet_pton.texi: Likewise.
5912
5913 2010-12-26  Bruno Haible  <bruno@clisp.org>
5914
5915         arpa_inet: Use the common idioms with C++ support.
5916         * lib/arpa_inet.in.h: Include c++defs.h.
5917         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
5918         support.
5919         * modules/arpa_inet (Depends-on): Add c++defs.
5920         (Makefile.am): Substitute the contents of c++defs.h.
5921         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
5922         * modules/arpa_inet-c++-tests: New file.
5923         * tests/test-arpa_inet-c++.cc: New file.
5924
5925 2010-12-25  Bruno Haible  <bruno@clisp.org>
5926
5927         Fix more C++ link errors on Solaris 8.
5928         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
5929         $(LIB_EACCESS).
5930         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
5931         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
5932         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
5933         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
5934         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
5935
5936 2010-12-25  Bruno Haible  <bruno@clisp.org>
5937
5938         printf-posix: Fix link error when a non-GCC compiler is used.
5939         * lib/stdio.in.h (printf): When not using GCC, override printf
5940         correctly.
5941         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
5942
5943 2010-12-25  Bruno Haible  <bruno@clisp.org>
5944
5945         strerror_r-posix: Update doc.
5946         * doc/posix-functions/strerror_r.texi: Update doc about the return
5947         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
5948
5949 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5950
5951         utimens: simplify the logic of the previous change
5952         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
5953         This should not affect whether the test succeeds or fails.
5954
5955         utimens: configure better on hosts with NFS clock skew
5956         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
5957         uses the clock of the local host.  It might use the clock of the
5958         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
5959         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
5960
5961 2010-12-25  Bruno Haible  <bruno@clisp.org>
5962
5963         ptsname test: Avoid failure on Solaris.
5964         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
5965         open a pseudo-terminal; don't use BSD-style ptys.
5966         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
5967
5968 2010-12-25  Bruno Haible  <bruno@clisp.org>
5969
5970         ptsname: Avoid ERANGE failure on some systems.
5971         * lib/ptsname.c (buffer): Increase size.
5972
5973 2010-12-25  Bruno Haible  <bruno@clisp.org>
5974
5975         rename, renameat: Avoid test failures at NFS mounted locations.
5976         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
5977         so that subsequent mkdir calls succeed.
5978
5979 2010-12-25  Bruno Haible  <bruno@clisp.org>
5980
5981         iswblank: Fix C++ link error on Solaris 8.
5982         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
5983         _GL_FUNCDECL_SYS.
5984
5985 2010-12-25  Bruno Haible  <bruno@clisp.org>
5986
5987         unistd: Fix C++ link error on Solaris 8.
5988         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
5989
5990 2010-12-25  Bruno Haible  <bruno@clisp.org>
5991
5992         readlink doc: Mention an old glibc bug.
5993         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
5994
5995 2010-12-25  Bruno Haible  <bruno@clisp.org>
5996
5997         fcntl-h: Fix for use of C++ on glibc systems.
5998         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5999         also on glibc systems in C++ mode.
6000         Reported by Gary V. Vaughan <gary@gnu.org>.
6001
6002 2010-12-25  Bruno Haible  <bruno@clisp.org>
6003
6004         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6005         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6006
6007 2010-12-25  Bruno Haible  <bruno@clisp.org>
6008
6009         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6010         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6011         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6012         test whether truncl works according to ISO C 99 with IEC 60559.
6013         * m4/truncl-ieee.m4: New file.
6014         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6015         m4/signbit.m4.
6016         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6017
6018 2010-12-25  Bruno Haible  <bruno@clisp.org>
6019
6020         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6021         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6022         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6023         test whether ceill works according to ISO C 99 with IEC 60559.
6024         * m4/ceill-ieee.m4: New file.
6025         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6026         m4/signbit.m4.
6027         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6028
6029 2010-12-25  Bruno Haible  <bruno@clisp.org>
6030
6031         Ensure all prerequisites of <wchar.h> are included.
6032         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6033         before <wchar.h>.
6034         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6035         gl_MBRLEN_NUL_RETVAL): Likewise.
6036         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6037         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6038         AC_FUNC_MBRTOWC): Likewise.
6039         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6040         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6041         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6042         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6043         Likewise.
6044         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6045         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6046         (gl_WCHAR_H): Improve comments.
6047         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6048
6049 2010-12-25  Bruno Haible  <bruno@clisp.org>
6050
6051         strtok_r: Fix C syntax error in autoconf macro.
6052         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6053         characters in test program.
6054
6055 2010-12-24  Bruno Haible  <bruno@clisp.org>
6056
6057         ceil, trunc, round: Fix gcc warnings.
6058         * lib/ceil.c (MIN): Undefine before redefining.
6059         * lib/trunc.c (MIN): Likewise.
6060         * lib/round.c (MIN): Likewise.
6061         Include <math.h> first.
6062
6063 2010-12-24  Bruno Haible  <bruno@clisp.org>
6064
6065         select tests: Avoid failures on OSF/1 5.1.
6066         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6067         failure of closing the last socket; it may fail with ECONNRESET.
6068
6069 2010-12-24  Eric Blake  <eblake@redhat.com>
6070
6071         stdint: avoid HP-UX 10.20 preprocessor bug
6072         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6073         than #if.
6074         * tests/test-floor2.c (main): Likewise.
6075         Reported by Peter O'Gorman.
6076
6077         pipe: make obsoletion transition easier
6078         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6079         * modules/pipe (Files): Include revived file.
6080         (Include): Drop reference, to mirror getdate's behavior.
6081
6082 2010-12-24  Bruno Haible  <bruno@clisp.org>
6083
6084         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6085         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6086         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6087         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6088
6089 2010-12-24  Bruno Haible  <bruno@clisp.org>
6090
6091         gethostname: Ensure declaration on NonStop Kernel.
6092         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6093         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6094
6095 2010-12-24  Bruno Haible  <bruno@clisp.org>
6096
6097         sys_select: Ensure all necessary types on NonStop Kernel.
6098         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6099         include <sys/time.h>.
6100         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6101         NonStop Kernel.
6102         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6103
6104 2010-12-24  Bruno Haible  <bruno@clisp.org>
6105
6106         sys_select: Remove unneeded include.
6107         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6108         have <sys/select.h>.
6109
6110 2010-12-24  Bruno Haible  <bruno@clisp.org>
6111
6112         gethostname: Provide a fallback for HOST_NAME_MAX.
6113         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6114         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6115         instead.
6116         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6117
6118 2010-12-24  Bruno Haible  <bruno@clisp.org>
6119
6120         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6121         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6122         (SA_RESTART): Likewise.
6123         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6124
6125 2010-12-24  Bruno Haible  <bruno@clisp.org>
6126
6127         signal: Define NSIG.
6128         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6129         * tests/test-signal.c (nsig): New variable.
6130         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6131
6132 2010-12-24  Bruno Haible  <bruno@clisp.org>
6133
6134         rename, renameat: Avoid test failures on OSF/1 5.1.
6135         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6136         alternative error codes.
6137         * tests/test-renameat.c (main): Likewise.
6138
6139 2010-12-24  Bruno Haible  <bruno@clisp.org>
6140
6141         *printf: Detect large precisions bug on Solaris 10/SPARC.
6142         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6143         by Paul Eggert.
6144         * tests/test-snprintf-posix.h (test_function): Add this test code here
6145         too.
6146         * tests/test-sprintf-posix.h (test_function): Likewise.
6147         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6148         * tests/test-vasprintf-posix.c (test_function): Likewise.
6149         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6150         around by gnulib.
6151         * doc/posix-functions/printf.texi: Likewise.
6152         * doc/posix-functions/snprintf.texi: Likewise.
6153         * doc/posix-functions/sprintf.texi: Likewise.
6154         * doc/posix-functions/vfprintf.texi: Likewise.
6155         * doc/posix-functions/vprintf.texi: Likewise.
6156         * doc/posix-functions/vsnprintf.texi: Likewise.
6157         * doc/posix-functions/vsprintf.texi: Likewise.
6158         * doc/posix-functions/dprintf.texi: Undo last commit.
6159         * doc/posix-functions/vdprintf.texi: Likewise.
6160
6161 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6162
6163         tests: port test-fdutimensat.c to Solaris 8
6164         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6165         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6166         On Solaris 8, it fails with errno == ENOSYS, because there is no
6167         futimens (so it can't use the fd), and there is no lutimens (so it
6168         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6169
6170         vsnprintf: make more consistent with snprintf; doc fixes
6171
6172         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6173         the byte count return problem was promoted from the snprintf-posix
6174         to the snprintf module.
6175         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6176         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6177         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6178         * tests/test-snprintf.c (main): Check the byte count returned.
6179         * tests/test-vsnprintf.c (main): Likewise.
6180
6181 2010-12-23  Eric Blake  <eblake@redhat.com>
6182
6183         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6184         * modules/sigpipe (License): Relax license.
6185
6186 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6187
6188         doc: document Solaris printf bug with large float precisions
6189         * doc/posix-functions/dprintf.texi (dprintf):
6190         * doc/posix-functions/fprintf.texi (fprintf):
6191         * doc/posix-functions/printf.texi (printf):
6192         * doc/posix-functions/snprintf.texi (snprintf):
6193         * doc/posix-functions/sprintf.texi (sprintf):
6194         * doc/posix-functions/vdprintf.texi (vdprintf):
6195         * doc/posix-functions/vfprintf.texi (vfprintf):
6196         * doc/posix-functions/vprintf.texi (vprintf):
6197         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6198         * doc/posix-functions/vsprintf.texi (vsprintf):
6199         Mention that these functions mishandle large floating point
6200         precisions on Solaris 10.  The same bug is also present in Solaris
6201         8, and I assume earlier.  This causes "cd gnulib-tests; make
6202         check" to fail on Solaris 8 (and I assume, later) when building
6203         the latest coreutils, in test-vasprintf-posix's call to
6204         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6205         the wide flavors (e.g., wprintf) so this patch just updates the
6206         documentation for the narrow ones.
6207
6208         test-posixtm.c: add two tests
6209         * tests/test-posixtm.c: Add two tests, to highlight the
6210         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
6211         around this bug; this is merely to document it.
6212
6213 2010-12-22  Bruno Haible  <bruno@clisp.org>
6214
6215         getlogin_r: Work around portability problem on OSF/1.
6216         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
6217         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
6218         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
6219         test for a truncated result.
6220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
6221         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
6222         * modules/getlogin_r (Depends-on): Add memchr.
6223         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
6224
6225 2010-12-22  Bruno Haible  <bruno@clisp.org>
6226
6227         ptsname: Avoid test failure on OSF/1 5.1.
6228         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
6229         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
6230         (same_slave): New function.
6231         (main): Use it to compare ptsname's result with the expected file name.
6232
6233 2010-12-22  Bruno Haible  <bruno@clisp.org>
6234
6235         Port extended stdio modules to HP NonStop Kernel.
6236         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
6237         macros.
6238         * lib/fbufmode.c: Update comments.
6239         * lib/fflush.c: Likewise.
6240         * lib/fpurge.c: Likewise.
6241         * lib/freadable.c: Likewise.
6242         * lib/freadahead.c: Likewise.
6243         * lib/freading.c: Likewise.
6244         * lib/freadptr.c: Likewise.
6245         * lib/freadseek.c: Likewise.
6246         * lib/fseeko.c: Likewise.
6247         * lib/fseterr.c: Likewise.
6248         * lib/fwritable.c: Likewise.
6249         * lib/fwriting.c: Likewise.
6250         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6251
6252 2010-12-22  Bruno Haible  <bruno@clisp.org>
6253
6254         ttyname_r: Work around bug on OSF/1 5.1.
6255         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
6256         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
6257         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
6258         present.
6259         * lib/ttyname_r.c (ttyname_r): Update comments.
6260
6261 2010-12-22  Bruno Haible  <bruno@clisp.org>
6262
6263         round: Implement result sign according to IEEE 754.
6264         * lib/round.c (MIN, MINUS_ZERO): New macros.
6265         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
6266         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
6267         * tests/test-round-ieee.c (main): Likewise.
6268         * tests/test-roundl-ieee.c (main): Likewise.
6269
6270         trunc: Implement result sign according to IEEE 754.
6271         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
6272         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
6273         * tests/test-trunc2.c: Include minus-zero.h.
6274         (MINUS_ZERO): New macro.
6275         (trunc_reference): Keep in sync with lib/trunc.c.
6276         * tests/test-truncf2.c: Include minus-zero.h.
6277         (MINUS_ZERO): New macro.
6278         (truncf_reference): Keep in sync with lib/trunc.c.
6279         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
6280         * tests/test-trunc-ieee.c (main): Likewise.
6281         * tests/test-truncl-ieee.c (main): Likewise.
6282
6283         ceil: Implement result sign according to IEEE 754.
6284         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
6285         (FUNC): Return -0.0 for -1 < x < 0.
6286         * tests/test-ceil2.c: Include minus-zero.h.
6287         (MINUS_ZERO): New macro.
6288         (ceil_reference): Keep in sync with lib/ceil.c.
6289         * tests/test-ceilf2.c: Include minus-zero.h.
6290         (MINUS_ZERO): New macro.
6291         (ceilf_reference): Keep in sync with lib/ceil.c.
6292         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
6293         * tests/test-ceil-ieee.c (main): Likewise.
6294         * tests/test-ceill-ieee.c (main): Likewise.
6295
6296         floor: Implement result sign according to IEEE 754.
6297         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
6298         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
6299         * tests/test-floorf2.c (floorf_reference): Likewise.
6300         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
6301         * tests/test-floor-ieee.c (main): Likewise.
6302         * tests/test-floorl-ieee.c (main): Likewise.
6303
6304 2010-12-22  Bruno Haible  <bruno@clisp.org>
6305
6306         getaddrinfo: Update doc.
6307         * doc/posix-functions/gai_strerror.texi: Return type is also different
6308         on AIX and HP-UX.
6309
6310 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6311
6312         getaddrinfo, inet_ntop: Update doc for Solaris.
6313         * doc/posix-functions/gai_strerror.texi: Return type is also an
6314         issue on Solaris 9 and earlier.
6315         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
6316         on Solaris 10 and earlier.
6317
6318 2010-12-21  Bruno Haible  <bruno@clisp.org>
6319
6320         New module 'roundl-ieee'.
6321         * modules/roundl-ieee: New file.
6322         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
6323         test whether roundl works according to ISO C 99 with IEC 60559.
6324         * m4/roundl-ieee.m4: New file.
6325         * modules/roundl-ieee-tests: New file.
6326         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
6327         * tests/test-roundl.c (main): Remove signbit tests.
6328         * modules/roundl-tests (Depends-on): Remove signbit.
6329         * doc/posix-functions/roundl.texi: Mention the new module.
6330
6331 2010-12-21  Bruno Haible  <bruno@clisp.org>
6332
6333         New module 'truncl-ieee'.
6334         * modules/truncl-ieee: New file.
6335         * modules/truncl-ieee-tests: New file.
6336         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
6337         * tests/test-truncl.c (main): Remove signbit tests.
6338         * modules/truncl-tests (Depends-on): Remove signbit.
6339         * doc/posix-functions/truncl.texi: Mention the new module.
6340
6341 2010-12-21  Bruno Haible  <bruno@clisp.org>
6342
6343         New module 'ceill-ieee'.
6344         * modules/ceill-ieee: New file.
6345         * modules/ceill-ieee-tests: New file.
6346         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
6347         * tests/test-ceill.c (main): Remove signbit tests.
6348         * modules/ceill-tests (Depends-on): Remove signbit.
6349         * doc/posix-functions/ceill.texi: Mention the new module.
6350
6351 2010-12-21  Bruno Haible  <bruno@clisp.org>
6352
6353         New module 'floorl-ieee'.
6354         * modules/floorl-ieee: New file.
6355         * modules/floorl-ieee-tests: New file.
6356         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
6357         * tests/test-floorl.c (main): Remove signbit tests.
6358         * modules/floorl-tests (Depends-on): Remove signbit.
6359         * doc/posix-functions/floorl.texi: Mention the new module.
6360
6361 2010-12-21  Bruno Haible  <bruno@clisp.org>
6362
6363         New module 'round-ieee'.
6364         * modules/round-ieee: New file.
6365         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
6366         whether round works according to ISO C 99 with IEC 60559.
6367         * m4/round-ieee.m4: New file.
6368         * modules/round-ieee-tests: New file.
6369         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
6370         * tests/test-round1.c (main): Remove signbit tests.
6371         * modules/round-tests (Depends-on): Remove 'signbit'.
6372         * doc/posix-functions/round.texi: Mention the new module.
6373
6374 2010-12-21  Bruno Haible  <bruno@clisp.org>
6375
6376         New module 'trunc-ieee'.
6377         * modules/trunc-ieee: New file.
6378         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
6379         whether trunc works according to ISO C 99 with IEC 60559.
6380         * m4/trunc-ieee.m4: New file.
6381         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
6382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
6383         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
6384         * modules/trunc-ieee-tests: New file.
6385         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
6386         * tests/test-trunc1.c (main): Remove signbit tests.
6387         * modules/trunc-tests (Depends-on): Remove 'signbit'.
6388         * doc/posix-functions/trunc.texi: Mention the new module.
6389
6390 2010-12-21  Bruno Haible  <bruno@clisp.org>
6391
6392         New module 'ceil-ieee'.
6393         * modules/ceil-ieee: New file.
6394         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
6395         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
6396         ISO C 99 with IEC 60559.
6397         * m4/ceil-ieee.m4: New file.
6398         * modules/ceil (Files): Add lib/ceil.c.
6399         (Depends-on): Add 'float'.
6400         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6401         * lib/math.in.h (ceil): New declaration.
6402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
6403         REPLACE_CEIL.
6404         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
6405         * modules/ceil-ieee-tests: New file.
6406         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
6407         * tests/test-math-c++.cc: Check the signature of 'ceil'.
6408         * doc/posix-functions/ceil.texi: Mention the new module.
6409
6410 2010-12-21  Bruno Haible  <bruno@clisp.org>
6411
6412         New module 'floor-ieee'.
6413         * modules/floor-ieee: New file.
6414         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
6415         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
6416         ISO C 99 with IEC 60559.
6417         * m4/floor-ieee.m4: New file.
6418         * modules/floor (Files): Add lib/floor.c.
6419         (Depends-on): Add 'float'.
6420         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6421         * lib/math.in.h (floor): New declaration.
6422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
6423         REPLACE_FLOOR.
6424         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
6425         * modules/floor-ieee-tests: New file.
6426         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
6427         * tests/test-math-c++.cc: Check the signature of 'floor'.
6428         * doc/posix-functions/floor.texi: Mention the new module.
6429
6430 2010-12-21  Bruno Haible  <bruno@clisp.org>
6431
6432         New module 'roundf-ieee'.
6433         * modules/roundf-ieee: New file.
6434         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
6435         test whether roundf works according to ISO C 99 with IEC 60559.
6436         * m4/roundf-ieee.m4: New file.
6437         * modules/roundf-ieee-tests: New file.
6438         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
6439         * tests/test-roundf1.c (main): Remove signbit tests.
6440         * modules/roundf-tests (Depends-on): Remove 'signbit'.
6441         * doc/posix-functions/roundf.texi: Mention the new module.
6442
6443 2010-12-21  Bruno Haible  <bruno@clisp.org>
6444
6445         New module 'truncf-ieee'.
6446         * modules/truncf-ieee: New file.
6447         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
6448         test whether truncf works according to ISO C 99 with IEC 60559.
6449         * m4/truncf-ieee.m4: New file.
6450         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
6451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
6452         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
6453         * modules/truncf-ieee-tests: New file.
6454         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
6455         * tests/test-truncf1.c (main): Remove signbit tests.
6456         * modules/truncf-tests (Depends-on): Remove 'signbit'.
6457         * doc/posix-functions/truncf.texi: Mention the new module.
6458
6459 2010-12-21  Bruno Haible  <bruno@clisp.org>
6460
6461         New module 'ceilf-ieee'.
6462         * modules/ceilf-ieee: New file.
6463         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
6464         test whether ceilf works according to ISO C 99 with IEC 60559.
6465         * m4/ceilf-ieee.m4: New file.
6466         * modules/ceilf-ieee-tests: New file.
6467         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
6468         * tests/test-ceilf1.c (main): Remove signbit tests.
6469         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
6470         * doc/posix-functions/ceilf.texi: Mention the new module.
6471
6472 2010-12-21  Bruno Haible  <bruno@clisp.org>
6473
6474         New module 'floorf-ieee'.
6475         * modules/floorf-ieee: New file.
6476         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
6477         test whether floorf works according to ISO C 99 with IEC 60559.
6478         * m4/floorf-ieee.m4: New file.
6479         * modules/floorf-ieee-tests: New file.
6480         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
6481         * tests/test-floorf1.c (main): Remove signbit tests.
6482         * modules/floorf-tests (Depends-on): Remove 'signbit'.
6483         * doc/posix-functions/floorf.texi: Mention the new module.
6484
6485 2010-12-21  Bruno Haible  <bruno@clisp.org>
6486
6487         Support for minus zero in autoconf macros.
6488         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
6489         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
6490         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
6491         * tests/minus-zero.h: Update comments.
6492
6493 2010-12-21  Bruno Haible  <bruno@clisp.org>
6494
6495         Tests for module 'ceil'.
6496         * modules/ceil-tests: New file.
6497         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
6498         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
6499
6500 2010-12-21  Bruno Haible  <bruno@clisp.org>
6501
6502         Tests for module 'floor'.
6503         * modules/floor-tests: New file.
6504         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
6505         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
6506
6507 2010-12-21  Bruno Haible  <bruno@clisp.org>
6508
6509         math: Fix indentation.
6510         * lib/math.in.h (floorf): Fix indentation.
6511
6512 2010-12-21  Bruno Haible  <bruno@clisp.org>
6513
6514         Fix cross-compilation guesses on Solaris.
6515         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
6516         not match "solaris2.10".
6517         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6518         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
6519         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
6520
6521 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6522
6523         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
6524         This fixes a problem observed with the latest coreutils snapshot
6525         that caused a test to fail on Solaris 8.  src/csplit.c's call
6526         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
6527         earlier, instead of returning the number of bytes that would have
6528         been generated; this causes csplit to incorrectly report memory
6529         exhaustion.
6530         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
6531         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
6532         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
6533         comments to match.
6534         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
6535         Fix typo in matching older versions of Solaris: "solaris2.10"
6536         is matched by the shell pattern "solaris2.[0-9]*".  This matters
6537         only for guessing while cross-compiling.
6538         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
6539
6540 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6541
6542         ftoastr: fix comment again
6543         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6544         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
6545         Also, simplify example a bit by using flags = 0.
6546
6547 2010-12-20  Bruno Haible  <bruno@clisp.org>
6548
6549         round*, trunc*: Update documentation regarding glibc.
6550         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
6551         * doc/posix-functions/round.texi: Likewise.
6552         * doc/posix-functions/roundl.texi: Likewise.
6553         * doc/posix-functions/truncf.texi: Likewise.
6554         * doc/posix-functions/trunc.texi: Likewise.
6555         * doc/posix-functions/truncl.texi: Likewise.
6556
6557 2010-12-20  Bruno Haible  <bruno@clisp.org>
6558
6559         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
6560         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
6561         * doc/posix-functions/round.texi: Likewise.
6562         * doc/posix-functions/roundl.texi: Likewise.
6563
6564 2010-12-20  Bruno Haible  <bruno@clisp.org>
6565
6566         ttyname_r: Add missing declaration on HP-UX 11.
6567         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
6568         HAVE_TTYNAME_R.
6569         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
6570         declared. Set HAVE_TTYNAME_R always.
6571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6572         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
6573         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
6574         HAVE_TTYNAME_R.
6575         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
6576
6577 2010-12-20  Bruno Haible  <bruno@clisp.org>
6578
6579         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
6580         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
6581         * doc/posix-functions/getlogin_r.texi: Likewise.
6582         * tests/test-getlogin.c: Include <errno.h>.
6583         (main): Avoid test failure on HP-UX 11.11.
6584         * tests/test-getlogin_r.c (main): Likewise.
6585
6586 2010-12-20  Bruno Haible  <bruno@clisp.org>
6587
6588         getlogin_r: Add missing declaration on HP-UX 11.
6589         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
6590         declared also when it exists as a function.
6591         * doc/posix-functions/getlogin_r.texi: Document this workaround.
6592
6593 2010-12-20  Bruno Haible  <bruno@clisp.org>
6594
6595         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
6596         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
6597         through wcrtomb.
6598
6599 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6600
6601         ftoastr: fix comment
6602         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
6603         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
6604
6605 2010-12-19  Bruno Haible  <bruno@clisp.org>
6606
6607         isnan: Ensure it is a macro.
6608         * lib/math.in.h (isnan): Define as a macro if not already a macro.
6609         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
6610         Solaris.
6611
6612 2010-12-19  Bruno Haible  <bruno@clisp.org>
6613
6614         ldexpl test: Fix link error on OSF/1 5.1.
6615         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
6616
6617 2010-12-19  Bruno Haible  <bruno@clisp.org>
6618
6619         wctype: Make it work in C++ mode on OSF/1 5.1.
6620         * lib/wctype.in.h (iswblank): Declare but not define here.
6621         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
6622         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
6623         * modules/wctype (Files): Add lib/iswblank.c.
6624
6625 2010-12-19  Bruno Haible  <bruno@clisp.org>
6626
6627         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
6628         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
6629         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
6630
6631 2010-12-19  Bruno Haible  <bruno@clisp.org>
6632
6633         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
6634         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
6635         _POSIX_PII_SOCKET.
6636         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
6637         * doc/posix-functions/recvfrom.texi: Likewise.
6638         * doc/posix-functions/send.texi: Likewise.
6639         * doc/posix-functions/sendto.texi: Likewise.
6640
6641 2010-12-19  Bruno Haible  <bruno@clisp.org>
6642
6643         tcgetsid: Add missing declaration on OSF/1 5.1.
6644         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
6645         HAVE_TCGETSID.
6646         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
6647         Don't set HAVE_TCGETSID.
6648         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
6649         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
6650         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
6651         HAVE_TCGETSID.
6652         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
6653
6654 2010-12-19  Bruno Haible  <bruno@clisp.org>
6655
6656         stdio: Fix problem with popen() declaration on OSF/1 5.1.
6657         * lib/stdio.in.h: During the include_next statement, let recursive
6658         includes of this file include only the system header file.
6659
6660 2010-12-19  Bruno Haible  <bruno@clisp.org>
6661
6662         iconv_open: Fix regression from 2010-12-04.
6663         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
6664         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
6665
6666 2010-12-19  Bruno Haible  <bruno@clisp.org>
6667
6668         stdbool test: Avoid a gcc warning.
6669         * tests/test-stdbool.c (main): Fail if e1 is false.
6670         Reported by Jim Meyering.
6671
6672 2010-12-19  Jim Meyering  <meyering@redhat.com>
6673
6674         setenv: restore to working order
6675         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
6676         mistakenly removed.
6677         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
6678         HAVE_SETENV.
6679         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
6680         HAVE_SETENV.
6681
6682 2010-12-19  Bruno Haible  <bruno@clisp.org>
6683
6684         Document some different function declarations on OSF/1 5.1.
6685         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
6686         * doc/posix-functions/inet_ntop.texi: Likewise.
6687         * doc/posix-functions/gethostname.texi: Likewise.
6688         * lib/unistd.in.h (gethostname): Update comment.
6689
6690 2010-12-19  Bruno Haible  <bruno@clisp.org>
6691
6692         doc: Mention vasprintf-posix module.
6693         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
6694         the 'vasprintf-posix' module.
6695         * doc/glibc-functions/vasprintf.texi: Likewise.
6696
6697 2010-12-19  Bruno Haible  <bruno@clisp.org>
6698
6699         unsetenv: Add missing declaration on OSF/1 5.1.
6700         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
6701         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
6702         Don't set HAVE_UNSETENV. In the test program, set _BSD.
6703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
6704         not HAVE_UNSETENV.
6705         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
6706         HAVE_UNSETENV.
6707         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
6708
6709 2010-12-19  Bruno Haible  <bruno@clisp.org>
6710
6711         setenv: Add missing declaration on OSF/1 5.1.
6712         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
6713         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
6714         declared. Don't set HAVE_SETENV.
6715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
6716         not HAVE_SETENV.
6717         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
6718         HAVE_SETENV.
6719         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
6720
6721 2010-12-19  Bruno Haible  <bruno@clisp.org>
6722
6723         nl_langinfo tests: Avoid gcc warning.
6724         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
6725
6726 2010-12-19  Bruno Haible  <bruno@clisp.org>
6727
6728         mknod: Avoid error in C++ mode on OSF/1 with GCC.
6729         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
6730         _GL_CXXALIAS_SYS.
6731
6732 2010-12-19  Bruno Haible  <bruno@clisp.org>
6733
6734         stdbool: Relax test.
6735         * tests/test-stdbool.c (e): Don't require that casts from a variable's
6736         address to 'bool' work in static initializer, for compilers other than
6737         GCC.
6738
6739 2010-12-19  Bruno Haible  <bruno@clisp.org>
6740
6741         ftello: Add missing declaration on OSF/1 5.1.
6742         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
6743         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
6744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
6745         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
6746         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
6747
6748 2010-12-19  Bruno Haible  <bruno@clisp.org>
6749
6750         fseeko: Add missing declaration on OSF/1 5.1.
6751         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
6752         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
6753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
6754         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
6755         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
6756
6757 2010-12-19  Bruno Haible  <bruno@clisp.org>
6758
6759         fchdir: Add missing declaration on OSF/1 5.1.
6760         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
6761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
6762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
6763         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
6764         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
6765
6766 2010-12-19  Bruno Haible  <bruno@clisp.org>
6767
6768         relocatable-prog-wrapper: Separate from relocatable-prog.
6769         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
6770         uninstall-relocwrapper rule here.
6771         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
6772         Reported by Ian Beckwith <ianb@erislabs.net>.
6773
6774 2010-12-19  Bruno Haible  <bruno@clisp.org>
6775
6776         unistr/u8-mbsnlen: Add missing dependency.
6777         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
6778         Reported by Ian Beckwith <ianb@erislabs.net>.
6779
6780 2010-12-19  Bruno Haible  <bruno@clisp.org>
6781
6782         iconv: Make it possible again to use this module without 'iconv-h'.
6783         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
6784         if it is not defined.
6785         Reported by Ian Beckwith <ianb@erislabs.net>.
6786
6787 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6788
6789         acl: port to Solaris 8 when copying from tmpfs to ufs
6790         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
6791         error number.  Problem observed on Solaris 8 with latest
6792         coreutils, with "mv A B", where A is on a tmpfs file system and B
6793         is on a ufs file system.  This caused coreutils' mv/part-symlink
6794         test to fail.
6795
6796         tests: set fail=0 at start
6797         * tests/init.sh (setup_): Move fail=0 initialization here ...
6798         (mktempd_): ... from here, so that tests can rely on fail being
6799         set to 0 initially.  This fixes a problem in coreutils; see:
6800         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
6801
6802 2010-12-18  Bruno Haible  <bruno@clisp.org>
6803
6804         memmem-simple: Stylistic changes.
6805         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
6806         Fix preprocessor directive indentation.
6807
6808 2010-12-15  Pádraig Brady <P@draigBrady.com>
6809
6810         memmem, memmem-simple: reorganize and expand empty needle check
6811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
6812         functional checks to memmem-simple so that one has a fully functional
6813         memmem by using just this module.
6814         Restrict the performance only check to the memmem module.
6815         Also expand the empty needle check to ensure the correct
6816         pointer is returned, not just a non NULL pointer.
6817         * doc/glibc-functions/memmem.texi: Rearrange the portability
6818         documentation to correlate with the rearranged checks.
6819         Clarify exactly how the memmem and memmem-simple modules
6820         relate to each other.
6821
6822 2010-12-15  Pádraig Brady <P@draigBrady.com>
6823             Bruno Haible  <bruno@clisp.org>
6824
6825         Improve cross-compilation guesses for uClibc.
6826         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
6827         that uClibc does not have the glibc bug.
6828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
6829         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
6830
6831 2010-12-14  Eric Blake  <eblake@redhat.com>
6832
6833         configmake: provide fallbacks for oldest supported autotools
6834         * m4/configmake.m4: New file.
6835         * modules/configmake (Files): Ship it.
6836         (configure.ac): Use it to guarantee fallbacks.
6837
6838 2010-12-13  Pádraig Brady <P@draigBrady.com>
6839
6840         read-file: Improve handling of large files
6841         * lib/read-file.c (fread_file): Minimize realloc()s
6842         for regular files, and better manage sizes around SIZE_MAX.
6843
6844 2010-12-13  Eric Blake  <eblake@redhat.com>
6845
6846         cloexec, fcntl: relax license
6847         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
6848         consent from all contributors.
6849         * modules/fcntl (License): Likewise.
6850
6851 2010-12-10  Bruno Haible  <bruno@clisp.org>
6852
6853         Tests for module 'pipe-posix'.
6854         * modules/pipe-posix-tests: New file.
6855         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
6856
6857 2010-12-10  Bruno Haible  <bruno@clisp.org>
6858
6859         pipe-posix: Make it work in C++ mode.
6860         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
6861         (pipe): Use common idiom, not a macro definition.
6862         * lib/pipe.c: New file.
6863         * m4/pipe.m4: New file.
6864         * modules/pipe-posix (Description): Enhance.
6865         (Files): Add lib/pipe.c, m4/pipe.m4.
6866         (configure.ac): Invoke gl_FUNC_PIPE.
6867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
6868         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
6869         * tests/test-unistd-c++.cc: Check the signature of pipe.
6870
6871 2010-12-10  Bruno Haible  <bruno@clisp.org>
6872
6873         Rename module 'pipe' to 'spawn-pipe'.
6874         * modules/spawn-pipe: New file, renamed from modules/pipe.
6875         (Files, configure.ac, Makefile.am): Update.
6876         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
6877         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
6878         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
6879         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
6880         "spawn-pipe.h" instead of "pipe.h".
6881         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
6882         to gl_SPAWN_PIPE.
6883         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
6884         (Files, Makefile.am): Update.
6885         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
6886         Update.
6887         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
6888         Include "spawn-pipe.h" instead of "pipe.h".
6889         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
6890         * lib/javacomp.c: Likewise.
6891         * lib/javaversion.c: Likewise.
6892         * lib/pipe-filter-gi.c: Likewise.
6893         * lib/pipe-filter-ii.c: Likewise.
6894         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
6895         * modules/javacomp (Depends-on): Likewise.
6896         * modules/javaversion (Depends-on): Likewise.
6897         * modules/pipe-filter-gi (Depends-on): Likewise.
6898         * modules/pipe-filter-ii (Depends-on): Likewise.
6899         * MODULES.html.sh (Executing programs): Update.
6900         * NEWS: Mention the change.
6901
6902 2010-12-10  Eric Blake  <eblake@redhat.com>
6903
6904         pipe-posix: new module
6905         * modules/pipe-posix: New file.
6906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
6907         (gl_UNISTD_H): Check for declaration.
6908         * modules/unistd (Makefile.am): Substitute it.
6909         * lib/unistd.in.h (pipe): Provide it for mingw.
6910         * doc/posix-functions/pipe.texi (pipe): Update documentation.
6911         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
6912
6913 2010-12-07  Bruno Haible  <bruno@clisp.org>
6914
6915         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
6916         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
6917         u8_strcmp_gnu.
6918         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
6919
6920 2010-12-06  Bruno Haible  <bruno@clisp.org>
6921
6922         Update internal documentation.
6923         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
6924
6925 2010-12-04  Bruno Haible  <bruno@clisp.org>
6926
6927         Put more information about failed tests into the test return codes.
6928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
6929         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
6930         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6931         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6932         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
6933         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6934         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6935         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6936         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
6937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6938         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
6939         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6940         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6941         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6942         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
6943         returns a bit mask.
6944         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6945         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
6946         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
6947         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6948         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6949         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6950         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
6951         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6952         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
6953         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
6954         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6955         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6956         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6958         * m4/link.m4 (gl_FUNC_LINK): Likewise.
6959         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6960         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
6961         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
6962         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6963         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
6964         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6965         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6967         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6968         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
6969         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6970         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6971         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
6972         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
6973         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
6974         gl_PRINTF_PRECISION): Likewise.
6975         * m4/regex.m4 (gl_REGEX): Likewise.
6976         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6977         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6978         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
6979         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6980         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6981         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6982         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6983         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
6984         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6985         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6986         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6987         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6988         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
6989         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6990         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6991         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6992         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6993         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6995         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
6996         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
6997         enumerated value.
6998         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
6999
7000 2010-12-04  Bruno Haible  <bruno@clisp.org>
7001
7002         Update for Solaris 11 2010-11.
7003         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7004         Express, released in November 2010.
7005
7006 2010-12-04  Bruno Haible  <bruno@clisp.org>
7007
7008         nproc: Relax license.
7009         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7010         and Paul Eggert.
7011         Requested by Ludovic Courtès <ludo@gnu.org>.
7012
7013 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7014
7015         utimecmp: fine-grained src to nearby coarse-grained dest
7016
7017         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7018         and the source is on a file system with higher-resolution time
7019         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7020         not work, and the time stamps are close together, the algorithm to
7021         determine the exact resolution from the read-back mtime was buggy:
7022         it had a "!=" where it should have had an "==".  This bug has been
7023         in the code ever since it was introduced to gnulib.
7024         Problem reported by Dan Jacobson in
7025         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7026
7027 2010-11-30  Bruno Haible  <bruno@clisp.org>
7028
7029         strerror_r-posix: Fix autoconf test.
7030         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7031
7032 2010-11-28  Bruno Haible  <bruno@clisp.org>
7033             Paul Eggert  <eggert@cs.ucla.edu>
7034
7035         Tests for module 'getdomainname'.
7036         * modules/getdomainname-tests: New file.
7037         * tests/test-getdomainname.c: New file, based on
7038         tests/test-gethostname.c.
7039
7040 2010-11-28  Bruno Haible  <bruno@clisp.org>
7041             Paul Eggert  <eggert@cs.ucla.edu>
7042
7043         getdomainname: Use the system function when possible.
7044         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7045         (getdomainname): Replace if needed. Provide the declaration if it is
7046         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7047         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7048         (getdomainname): When the system has getdomainname, call the system
7049         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7050         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7051         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7052         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7053         the function if its second argument is of type 'int' or if it is found
7054         in libnsl.
7055         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7056         <sys/systeminfo.h> and sysinfo().
7057         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7059         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7060         HAVE_GETDOMAINNAME.
7061         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7062         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7063         * doc/glibc-functions/getdomainname.texi: Document the problems with
7064         the getdomainname declaration.
7065
7066 2010-11-28  Bruno Haible  <bruno@clisp.org>
7067
7068         sys_socket: Ensure ss_family field on AIX.
7069         * lib/sys_socket.in.h (ss_family): New macro definition.
7070         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7071         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7072         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7073         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7074         * modules/sys_socket (Makefile.am): Substitute
7075         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7076         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7077
7078 2010-11-27  Bruno Haible  <bruno@clisp.org>
7079
7080         readline: Improve configure output.
7081         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7082         "checking for readline..." result understandable.
7083
7084 2010-11-27  Bruno Haible  <bruno@clisp.org>
7085
7086         *printf-posix: Detect a bug on Solaris 10/x86.
7087         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7088         for floating-point output.
7089         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7090         directive.
7091         * tests/test-snprintf-posix.h (test_function): Likewise.
7092         * tests/test-sprintf-posix.h (test_function): Likewise.
7093         * tests/test-vasprintf-posix.c (test_function): Likewise.
7094         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7095         * doc/posix-functions/printf.texi: Likewise.
7096         * doc/posix-functions/snprintf.texi: Likewise.
7097         * doc/posix-functions/sprintf.texi: Likewise.
7098         * doc/posix-functions/vfprintf.texi: Likewise.
7099         * doc/posix-functions/vprintf.texi: Likewise.
7100         * doc/posix-functions/vsnprintf.texi: Likewise.
7101         * doc/posix-functions/vsprintf.texi: Likewise.
7102         * doc/glibc-functions/obstack_printf.texi: Likewise.
7103         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7104
7105 2010-11-27  Bruno Haible  <bruno@clisp.org>
7106
7107         Fix link error when module libunistring-optional is in use.
7108         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7109         * modules/striconveha-tests (Makefile.am): Likewise.
7110
7111 2010-11-27  Bruno Haible  <bruno@clisp.org>
7112
7113         regex: Mention link dependencies.
7114         * modules/regex (Link): New section.
7115         * modules/rpmatch (Link): Likewise.
7116         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7117
7118 2010-11-27  Bruno Haible  <bruno@clisp.org>
7119
7120         ftoastr: Fix compilation error on Solaris.
7121         * lib/ftoastr.c: Include <config.h>.
7122
7123 2010-11-27  Bruno Haible  <bruno@clisp.org>
7124
7125         getloadavg: Update documentation.
7126         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7127
7128 2010-11-27  Bruno Haible  <bruno@clisp.org>
7129
7130         sys_socket: Fix test whether the functions are declared.
7131         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7132         not <sys/select.h>.
7133
7134 2010-11-27  Bruno Haible  <bruno@clisp.org>
7135
7136         getpass: Make sure to get system declaration on some platforms.
7137         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7138         gl_USE_SYSTEM_EXTENSIONS.
7139         * modules/getpass (Depends-on): Add extensions.
7140
7141 2010-11-26  Bruno Haible  <bruno@clisp.org>
7142
7143         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7144         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7145         'iconv' module is present.
7146         (ICONV_CONST): New macro.
7147         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7148         ICONV_CONST.
7149         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7150         set ICONV_CONST.
7151         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7152         here.
7153         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7154         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7155         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7156         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7157         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7158         present.
7159
7160 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7161
7162         ftoastr: comment fix
7163         * lib/ftoastr.c: "little" -> "little or no" in comment
7164
7165 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7166
7167         stdint: port to GCC 4.3 + OSX + Octave
7168         On this platform, stdint.h is buggy and defines int64_t to long
7169         long int.  The replacement defined it to long int, causing
7170         problems with C++ style name mangling.  Instead, trust the system
7171         definition if INT64_MAX is defined, and likewise for the unsigned
7172         variant.   Problem reported by Jarno Rajahalme in
7173         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7174         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7175         and don't mess with int64_t and INT64_MAX in this case.
7176         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7177
7178 2010-11-24  Bruno Haible  <bruno@clisp.org>
7179
7180         doc: Corrections regarding MacOS X 10.4 and 10.5.
7181         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7182         MacOS X.
7183         Reported by Simon Josefsson.
7184
7185 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7186
7187         Uninstall ".bin" files installed by relocwrapper.
7188         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7189         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7190         unless it is already there.
7191
7192 2010-11-21  Bruno Haible  <bruno@clisp.org>
7193
7194         Update for NetBSD 5.0.
7195         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7196         NetBSD; the test fails on NetBSD 5.0.
7197         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7198         about NetBSD.
7199
7200 2010-11-21  Bruno Haible  <bruno@clisp.org>
7201
7202         Update for HP-UX 11.23 and HP-UX 11.31.
7203         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7204         HP-UX.
7205
7206 2010-11-21  Bruno Haible  <bruno@clisp.org>
7207
7208         Update for MacOS X 10.5.
7209         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7210         MacOS X; the test fails on MacOS X 10.5.8.
7211         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7212         about MacOS X.
7213
7214 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
7215
7216         bootstrap: add bootstrap_sync option.
7217         See discussion at
7218         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
7219         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
7220         * build-aux/bootstrap: Accept --bootstrap-sync to update
7221         bootstrap if it is not identical to the local gnulib's
7222         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
7223         enable this by default.  Accept --no-bootstrap-sync to disable
7224         it.
7225
7226 2010-11-20  Bruno Haible  <bruno@clisp.org>
7227
7228         Ensure that <features.h> is included before __GLIBC__ is tested.
7229         * lib/printf-parse.h: Include <features.h>.
7230         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
7231         Reported by Mike Frysinger <vapier@gentoo.org>.
7232
7233         Ensure that <features.h> is included before __GLIBC__ is tested.
7234         * lib/wchar.in.h: Include <features.h>.
7235         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
7236         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
7237         Reported by Mike Frysinger <vapier@gentoo.org>.
7238
7239         Ensure that <features.h> is included before __GLIBC__ is tested.
7240         * lib/arpa_inet.in.h: Include <features.h>.
7241         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
7242         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
7243         Reported by Mike Frysinger <vapier@gentoo.org>.
7244
7245         Ensure that <features.h> is included before __GLIBC__ is tested.
7246         * build-aux/link-warning.h: Include <features.h>.
7247         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
7248         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
7249         Reported by Mike Frysinger <vapier@gentoo.org>.
7250
7251         Ensure that <features.h> is included before __GLIBC__ is tested.
7252         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
7253         Reported by Mike Frysinger <vapier@gentoo.org>.
7254
7255 2010-11-20  Bruno Haible  <bruno@clisp.org>
7256
7257         memmem: Fix autoconf test.
7258         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
7259
7260 2010-11-20  Bruno Haible  <bruno@clisp.org>
7261
7262         Port to uClibc.
7263         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
7264         * lib/fcntl.in.h: Likewise.
7265         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
7266         * lib/mbrtowc.c (mbrtowc): Likewise.
7267         * lib/relocatable.c (find_shared_library_fullname): Likewise.
7268         * lib/strerror_r.c: Likewise.
7269         * lib/unistr/u8-strnlen.c: Likewise.
7270         * lib/vasnprintf.c (decimal_point_char): Likewise.
7271         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7272         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
7273         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7274         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
7275         * tests/test-sigaction.c (handler, main): Likewise.
7276         * lib/freading.h: Treat uClibc like a non-glibc platform.
7277         * lib/freading.c: Likewise.
7278         * lib/gettext.h: Likewise.
7279         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
7280         Likewise.
7281         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
7282         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7283         * lib/propername.c (proper_name_utf8): Likewise.
7284         * lib/spawn.in.h: Likewise.
7285         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
7286         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
7287         mem_cd_iconveh_internal): Likewise.
7288         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
7289         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7290         strstr, strcasestr): Likewise.
7291         * lib/unicodeio.c (unicode_to_mb): Likewise.
7292         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
7293         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
7294         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
7295         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
7296         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
7297         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
7298         * lib/unistr/u8-stpncpy.c: Likewise.
7299         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7300         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
7301         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7302         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7303         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
7304         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
7305         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
7306         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
7307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7308         Likewise.
7309         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
7310         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7311         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
7312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7313         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7314         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7315         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7316         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7317         * tests/test-getopt.h (OPTIND_MIN): Likewise.
7318         * tests/test-striconveha.c (main): Likewise.
7319         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7320         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
7321         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
7322         * doc/posix-functions/getline.texi: Likewise.
7323         Reported by Mike Frysinger <vapier@gentoo.org>.
7324
7325 2010-11-20  Bruno Haible  <bruno@clisp.org>
7326
7327         nproc: Fix condition.
7328         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
7329         HAVE_PTHREAD_AFFINITY_NP.
7330
7331 2010-11-20  Bruno Haible  <bruno@clisp.org>
7332
7333         Fix a comment.
7334         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
7335
7336 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7337
7338         ftoastr: don't assume snprintf
7339         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
7340         Implement a subset of snprintf here, by using sprintf safely.
7341         * modules/ftoastr (Depends-on): Remove snprintf.
7342
7343 2010-11-19  Jim Meyering  <meyering@redhat.com>
7344
7345         test-rename.h: fix compilation failure
7346         * tests/test-rename.h (test_rename): Add omitted "}".
7347
7348 2010-11-17  Jim Meyering  <meyering@redhat.com>
7349
7350         maint.mk: add a URL discussing the no-@acronym policy
7351         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
7352
7353 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7354
7355         ftoastr: depend on snprintf, improve comments
7356         * lib/ftoastr.c: Also mention Loitsch's draft.
7357         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
7358         needed in the current implementation, but it might simplify
7359         speeding up the code later.
7360         * modules/ftoastr: Depend on snprintf; this improves portability.
7361         Suggested by Bruno Haible in the same email.
7362
7363         ftoastr: port to hosts lacking strtof and strtold
7364         Problem reported by Bruno Haible in
7365         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
7366         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
7367         environment and strtold (and presumably strtof) are not available.
7368         * modules/ftoastr (Files): Add m4/c-strtod.m4.
7369         (configure.ac): Require gl_C99_STRTOLD.
7370
7371 2010-11-18  Bruno Haible  <bruno@clisp.org>
7372
7373         c-strtold: Avoid link error on AIX 7.
7374         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
7375         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
7376         (gl_C_STRTOLD): Test whether strtold_l exists.
7377         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7378
7379 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7380
7381         intprops: new macro INT_BITS_STRLEN_BOUND
7382         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
7383         ftoastr.h.  This exposes an internal of intprops.h that was formerly
7384         not exposed.  Also, it uses a slightly tighter bound than before;
7385         though this makes no practical difference, we might as well be as
7386         tight as we easily can.
7387
7388         ftoastr: new module, for lossless conversion of floats to short strings
7389         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
7390         * modules/ftoastr: New files.
7391
7392 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
7393
7394         bootstrap: port to Solaris sed
7395         * build-aux/bootstrap (get_version): Port to Solaris sed.
7396         See Ralf Wildenhues's note in
7397         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
7398
7399 2010-11-14  Jim Meyering  <meyering@redhat.com>
7400
7401         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
7402         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
7403         and move definition closer to sole use.
7404
7405 2010-11-13  Jim Meyering  <meyering@redhat.com>
7406
7407         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
7408         Now we require at least autoconf-2.59, which means the work-around
7409         is no longer needed.
7410         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
7411         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7412         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
7413         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
7414         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7415
7416 2010-11-13  Bruno Haible  <bruno@clisp.org>
7417
7418         rename, renameat: Avoid test failures at NFS mounted locations.
7419         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
7420         functions.
7421         (test_rename): Use assert_nonexistent.
7422         * tests/test-rename.c: Include <dirent.h>.
7423         * tests/test-renameat.c: Likewise.
7424         Reported by Gary V. Vaughan <gary@gnu.org>.
7425
7426         rename, renameat: Document Linux bug with NFS
7427         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
7428         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
7429         * doc/posix-functions/renameat.texi: Likewise.
7430         Suggested by Eric Blake.
7431
7432 2010-11-13  Bruno Haible  <bruno@clisp.org>
7433
7434         rename test: Add comments.
7435         * tests/test-rename.h (test_rename): Add structure and comments.
7436
7437 2010-11-13  Eric Blake  <eblake@redhat.com>
7438
7439         maintainer-makefile: cover a few more files
7440         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
7441         scripts generated within C files, for libvirt.
7442
7443 2010-11-13  Bruno Haible  <bruno@clisp.org>
7444
7445         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
7446         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
7447         character, return the number of bytes that belong together, not always
7448         1.
7449         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
7450         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
7451         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
7452         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
7453         number of bytes of an invalid character.
7454         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
7455         (main): Invoke it.
7456         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
7457         results.
7458         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
7459         malformed byte sequences.
7460         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
7461         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
7462         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
7463         Reported by Ben Pfaff and Paolo Bonzini.
7464
7465 2010-11-13  Bruno Haible  <bruno@clisp.org>
7466
7467         openat: Work around glibc bug with fchownat() and empty file names.
7468         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
7469         (gl_FUNC_FCHOWNAT): Invoke it.
7470         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
7471         * doc/posix-functions/fchownat.texi: Document the glibc bug.
7472         Reported by Gary V. Vaughan <gary@gnu.org>.
7473
7474 2010-11-13  Bruno Haible  <bruno@clisp.org>
7475
7476         openat: Ensure autoconf macro ordering.
7477         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
7478         gl_USE_SYSTEM_EXTENSIONS.
7479         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
7480
7481 2010-11-13  Bruno Haible  <bruno@clisp.org>
7482
7483         Update comments.
7484         * lib/unistr/u8-check.c: Update file name in comments.
7485         * lib/unistr/u8-mblen.c: Likewise.
7486         * lib/unistr/u8-prev.c: Likewise.
7487         * lib/unistr/u8-strmblen.c: Likewise.
7488         * lib/unistr/u8-strmbtouc.c: Likewise.
7489
7490 2010-11-13  Jim Meyering  <meyering@redhat.com>
7491
7492         tests: avoid test failure on Solaris 10 due to lack of PATH export
7493         * tests/test-update-copyright.sh: Don't forget to export PATH.
7494
7495         init.sh: ensure that IFS is defined, just in case...
7496         * tests/init.sh (setup_): Ensure that IFS is defined,
7497         so that saving and restoring it works as expected.  This
7498         appears to be useful at least for an old version of dash
7499         from a long time ago (RH 6).  See here for details:
7500         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
7501
7502         maint.mk: tighten "test a == b" check
7503         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
7504         test to files that contain something like #!/bin/sh.
7505         Without this, coreutils would get two false positives in
7506         the comments of C source files.
7507
7508 2010-11-12  Eric Blake  <eblake@redhat.com>
7509
7510         bootstrap: fix typo in previous attempt
7511         * build-aux/bootstrap (buildreq): Correct the grouping.
7512         Reported by Paul Eggert.
7513
7514         maintainer-makefile: prohibit test x == x
7515         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
7516         Based on a report by Matthias Bolte.
7517
7518         bootstrap: allow FreeBSD gzip
7519         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
7520         which has no '.' and goes to stderr.
7521         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
7522         Reported by Matthias Bolte.
7523
7524         maintainer-makefile: check for i18n setup
7525         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
7526         will likely work.
7527
7528 2010-11-12  Bruno Haible  <bruno@clisp.org>
7529
7530         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
7531         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
7532         * lib/nanosleep.c (nanosleep): Likewise.
7533
7534 2010-11-11  Bruno Haible  <bruno@clisp.org>
7535
7536         fcntl-h: Fix for use of C++ on glibc systems.
7537         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7538         also on glibc systems in C++ mode.
7539         Reported by Gary V. Vaughan <gary@gnu.org>.
7540
7541 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7542
7543         mknod: avoid false failure with dash
7544         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
7545
7546 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
7547
7548         unlink: Fix "is it should" typo in diagnostic.
7549         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
7550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
7551
7552 2010-11-11  Bruno Haible  <bruno@clisp.org>
7553
7554         Tests for module 'strerror_r-posix'.
7555         * modules/strerror_r-posix-tests: New file.
7556         * tests/test-strerror_r.c: New file.
7557         * tests/test-string-c++.cc: Check the signature of strerror_r.
7558
7559         New module 'strerror_r-posix'.
7560         * lib/string.in.h (strerror_r): New declaration.
7561         * lib/strerror_r.c: New file.
7562         * m4/strerror_r.m4: New file.
7563         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
7564         of strerror_r.
7565         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
7566         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7567         * modules/strerror_r-posix: New file.
7568         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
7569         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
7570         * doc/posix-functions/strerror_r.texi: Mention the new module and the
7571         portability problems.
7572
7573 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
7574
7575         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
7576         line is also considered for output. Quoted function name in shell
7577         command, so temporary files for functions like MyClass::operator()
7578         are removed correctly without errors.
7579
7580 2010-11-09  Bruno Haible  <bruno@clisp.org>
7581
7582         * doc/posix-functions/strerror.texi: List more failing platforms.
7583
7584         * doc/posix-functions/strerror.texi: Add a comment.
7585
7586 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
7587
7588         fdopendir: fix bug on MacOS X when low on file descriptors
7589
7590         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
7591         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
7592         All callers changed.
7593         (fdopendir): Invoke save_cwd at the top level, not after using
7594         multiple dup() calls to use up file descriptors.  Then retry
7595         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
7596         less than the maximum number of open file descriptors, because
7597         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
7598         on Mac OS X 10.6.4 for tar 1.24
7599         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
7600         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
7601         and for tar 1.25
7602         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
7603
7604 2010-11-07  Bruno Haible  <bruno@clisp.org>
7605
7606         vasnprintf: Support I flag on glibc systems.
7607         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
7608         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
7609         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
7610         snprintf function.
7611         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
7612         glibc systems.
7613         * tests/test-vasnprintf-posix3.c: New file.
7614         * modules/vasnprintf-posix-tests (Files): Add it.
7615         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
7616
7617 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7618
7619         [html] Fix copy/paste bug: Use unique name for compiler warnings.
7620         * MODULES.html.sh: For compiler warnings, use name
7621         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
7622
7623 2010-11-05  Eric Blake  <eblake@redhat.com>
7624
7625         ceil, floor: avoid spurious failure with icc
7626         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
7627         [denormals-as-zero] when optimizing without -mieee-fp option.
7628         * tests/test-floorf2.c (floorf_reference): Likewise.
7629         * tests/test-ceilf1.c (dummy): New function.
7630         (main): Use it to outsmart icc's optimization.
7631         * tests/test-floorf1.c (dummy, main): Likewise.
7632
7633         tests: require working signbit
7634         * modules/ceilf-tests (Depends-on): Add signbit.
7635         * modules/ceill-tests (Depends-on): Likewise.
7636         * modules/floorf-tests (Depends-on): Likewise.
7637         * modules/floorl-tests (Depends-on): Likewise.
7638         * modules/round-tests (Depends-on): Likewise.
7639         * modules/roundf-tests (Depends-on): Likewise.
7640         * modules/roundl-tests (Depends-on): Likewise.
7641         * modules/trunc-tests (Depends-on): Likewise.
7642         * modules/truncf-tests (Depends-on): Likewise.
7643         * modules/truncl-tests (Depends-on): Likewise.
7644
7645         strtod: work around icc bug
7646         * lib/strtod.c (minus_zero): Define to working value.
7647         (strtod): Use it to avoid icc bug.
7648
7649         copysign: enhance tests
7650         * modules/copysign-tests (Files): Add minus-zero.h.
7651         * tests/test-copysign.c (main): Also test zeros.
7652
7653 2010-11-04  Eric Blake  <eblake@redhat.com>
7654
7655         ceil, floor, round, trunc: enhance tests of -0
7656         * tests/test-ceilf1.c (main): Ensure correct sign of result.
7657         * tests/test-ceill.c (main): Likewise.
7658         * tests/test-floorf1.c (main): Likewise.
7659         * tests/test-floorl.c (main): Likewise.
7660         * tests/test-round1.c (main): Likewise.
7661         * tests/test-roundf1.c (main): Likewise.
7662         * tests/test-roundl.c (main): Likewise.
7663         * tests/test-trunc1.c (main): Likewise.
7664         * tests/test-truncf1.c (main): Likewise.
7665         * tests/test-truncl.c (main): Likewise.
7666
7667 2010-11-04  Eric Blake  <eblake@redhat.com>
7668
7669         frexp, tests: work around ICC bug with -zero
7670         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
7671         works with more compilers.
7672         * tests/minus-zero.h: New file.
7673         * modules/ceilf-tests (Files): Include it.
7674         * modules/ceill-tests (Files): Likewise.
7675         * modules/floorf-tests (Files): Likewise.
7676         * modules/floorl-tests (Files): Likewise.
7677         * modules/frexp-nolibm-tests (Files): Likewise.
7678         * modules/frexp-tests (Files): Likewise.
7679         * modules/frexpl-nolibm-tests (Files): Likewise.
7680         * modules/frexpl-tests (Files): Likewise.
7681         * modules/isnan-tests (Files): Likewise.
7682         * modules/isnand-nolibm-tests (Files): Likewise.
7683         * modules/isnand-tests (Files): Likewise.
7684         * modules/isnanf-nolibm-tests (Files): Likewise.
7685         * modules/isnanf-tests (Files): Likewise.
7686         * modules/isnanl-nolibm-tests (Files): Likewise.
7687         * modules/isnanl-tests (Files): Likewise.
7688         * modules/round-tests (Files): Likewise.
7689         * modules/roundf-tests (Files): Likewise.
7690         * modules/roundl-tests (Files): Likewise.
7691         * modules/ldexpl-tests (Files): Likewise.
7692         * modules/signbit-tests (Files): Likewise.
7693         * modules/snprintf-posix-tests (Files): Likewise.
7694         * modules/sprintf-posix-tests (Files): Likewise.
7695         * modules/strtod-tests (Files): Likewise.
7696         * modules/trunc-tests (Files): Likewise.
7697         * modules/truncf-tests (Files): Likewise.
7698         * modules/truncl-tests (Files): Likewise.
7699         * modules/vsnprintf-posix-tests (Files): Likewise.
7700         * modules/vsprintf-posix-tests (Files): Likewise.
7701         * modules/vasnprintf-posix-tests (Files): Likewise.
7702         * modules/vasprintf-posix-tests (Files): Likewise.
7703         * tests/test-ceilf1.c (main): Use it.
7704         * tests/test-ceill.c (main): Likewise.
7705         * tests/test-floorf1.c (main): Likewise.
7706         * tests/test-floorl.c (main): Likewise.
7707         * tests/test-frexp.c (main): Likewise.
7708         * tests/test-frexpl.c (main): Likewise.
7709         * tests/test-isnan.c (main): Likewise.
7710         * tests/test-isnand.h (main): Likewise.
7711         * tests/test-isnanf.h (main): Likewise.
7712         * tests/test-isnanl.h (main): Likewise.
7713         * tests/test-ldexpl.c (main): Likewise.
7714         * tests/test-round.c (main): Likewise.
7715         * tests/test-roundf.c (main): Likewise.
7716         * tests/test-roundl.c (main): Likewise.
7717         * tests/test-signbit.c (test_signbitf, test_signbitd)
7718         (test_signbitl): Likewise.
7719         * tests/test-snprintf-posix.h (test_function): Likewise.
7720         * tests/test-sprintf-posix.h (test_function): Likewise.
7721         * tests/test-strtod.c (main): Likewise.
7722         * tests/test-trunc1.c (main): Likewise.
7723         * tests/test-truncf1.c (main): Likewise.
7724         * tests/test-truncl.c (main): Likewise.
7725
7726         isnanl: work around icc bug
7727         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
7728
7729 2010-11-03  Eric Blake  <eblake@redhat.com>
7730
7731         tests: fix compiler warnings
7732         * tests/test-getopt.h (test_getopt): Fix condition.
7733         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7734         * tests/test-pipe2.c (main): Likewise.
7735         * tests/test-quotearg-simple.c (main): Avoid icc warning.
7736
7737         utimens: fix broken m4 test
7738         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
7739
7740 2010-10-28  Bruno Haible  <bruno@clisp.org>
7741
7742         posix_spawn*, getdtablesize: Relax license.
7743         * modules/posix_spawn (License): Change to LGPLv2+.
7744         * modules/posix_spawnp (License): Likewise.
7745         * modules/posix_spawn-internal (License): Likewise.
7746         * modules/posix_spawnattr_init (License): Likewise.
7747         * modules/posix_spawnattr_getflags (License): Likewise.
7748         * modules/posix_spawnattr_setflags (License): Likewise.
7749         * modules/posix_spawnattr_getpgroup (License): Likewise.
7750         * modules/posix_spawnattr_setpgroup (License): Likewise.
7751         * modules/posix_spawnattr_getschedparam (License): Likewise.
7752         * modules/posix_spawnattr_setschedparam (License): Likewise.
7753         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
7754         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
7755         * modules/posix_spawnattr_getsigdefault (License): Likewise.
7756         * modules/posix_spawnattr_setsigdefault (License): Likewise.
7757         * modules/posix_spawnattr_getsigmask (License): Likewise.
7758         * modules/posix_spawnattr_setsigmask (License): Likewise.
7759         * modules/posix_spawnattr_destroy (License): Likewise.
7760         * modules/posix_spawn_file_actions_init (License): Likewise.
7761         * modules/posix_spawn_file_actions_addclose (License): Likewise.
7762         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
7763         * modules/posix_spawn_file_actions_addopen (License): Likewise.
7764         * modules/posix_spawn_file_actions_destroy (License): Likewise.
7765         * modules/getdtablesize (License): Likewise.
7766         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
7767
7768 2010-10-26  Bruno Haible  <bruno@clisp.org>
7769
7770         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
7771         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
7772         Cygwin and mingw.
7773         Suggested by Eric Blake.
7774
7775 2010-10-26  Bruno Haible  <bruno@clisp.org>
7776
7777         stdio: Work around compilation error due to renameat() on Solaris 10.
7778         * lib/stdio.in.h: Include <unistd.h> on Solaris.
7779         * lib/renameat.c: Don't include <unistd.h> here.
7780         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
7781         Reported by Paul Eggert and Eric Blake.
7782
7783 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
7784
7785         renameat: port to Solaris 10, which declares renameat in unistd.h
7786
7787         * lib/renameat.c: Include unistd.h before stdio.h, because
7788         Solaris 10 declares renameat in unistd.h.  Problem encountered
7789         when building GNU tar 1.24 on Solaris 10.
7790
7791 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
7792
7793         fdopendir: fix C89 compilation
7794         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
7795         compilers.
7796
7797 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7798
7799         inttostr: simplify by removing unnecessary redundancy
7800         * lib/anytostr.c: Don't include verify.h.
7801         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
7802         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
7803         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
7804         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
7805         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
7806         Likewise.
7807         * modules/inttostr (Depends-on): Remove 'verify'.
7808
7809 2010-10-23  Bruno Haible  <bruno@clisp.org>
7810
7811         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
7812         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
7813         Reported by Eric Blake.
7814
7815 2010-10-23  Bruno Haible  <bruno@clisp.org>
7816
7817         Tests: Fix LOCALE_JA on MirBSD 10.
7818         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
7819         to an UTF-8 locale.
7820         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
7821         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7822         Reported by Eric Blake.
7823
7824 2010-10-21  Bruno Haible  <bruno@clisp.org>
7825
7826         nl_langinfo test: Avoid test failure on NetBSD 5.
7827         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
7828         Reported by Eric Blake.
7829
7830 2010-10-21  Eric Blake  <eblake@redhat.com>
7831
7832         c-stack: work around libsigsegv 2.8 bug
7833         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
7834         overflow on at least PowerPC64.
7835
7836 2010-10-17  Bruno Haible  <bruno@clisp.org>
7837
7838         userspec: Drop redundant file.
7839         * modules/userspec (Files): Remove lib/inttostr.h.
7840
7841 2010-10-17  Bruno Haible  <bruno@clisp.org>
7842
7843         nl_langinfo tests: Silence some warnings.
7844         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
7845         Reported by Jim Meyering.
7846
7847 2010-10-17  Bruno Haible  <bruno@clisp.org>
7848
7849         Make use of GCC's attribute __alloc_size__.
7850         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
7851         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
7852         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
7853         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
7854         __alloc_size__.
7855         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
7856         Suggested by Jim Meyering.
7857
7858 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
7859
7860         bootstrap: anchor .gitignore entries.
7861         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
7862         with...
7863         (insert_vc_ignore): ... this new function, which prepends `/' to
7864         all .gitignore entries before passing them to
7865         insert_sorted_if_absent.
7866
7867 2010-10-16  Bruno Haible  <bruno@clisp.org>
7868
7869         nextafter: Fix configure check.
7870         * modules/nextafter (configure.ac): Correct expected prototype.
7871
7872 2010-10-16  Bruno Haible  <bruno@clisp.org>
7873
7874         termios: Update documentation.
7875         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
7876
7877 2010-10-16  Bruno Haible  <bruno@clisp.org>
7878
7879         tests: Make them compile with TinyCC.
7880         * tests/test-strstr.c (main): Remove parentheses around array
7881         initializer.
7882
7883 2010-10-15  Eric Blake  <eblake@redhat.com>
7884
7885         ignore-value: make header idempotent
7886         * lib/ignore-value.h: Add double-inclusion guards.
7887         Reported by Stefan Berger.
7888
7889 2010-10-15  Jim Meyering  <meyering@redhat.com>
7890
7891         GNUmakefile: handle "stable" target, not "major"
7892         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
7893         lists in maint.mk and announce-gen.  Without this, "make stable"
7894         would fail to ensure that $(VERSION) is up to date.
7895
7896 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
7897
7898         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
7899         & co.
7900
7901 2010-10-14  Bruno Haible  <bruno@clisp.org>
7902
7903         vasnprintf: Don't set errno to 0.
7904         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
7905         block that sets it to 0.
7906         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
7907
7908 2010-10-14  Bruno Haible  <bruno@clisp.org>
7909
7910         socketlib: Fix.
7911         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
7912         gl_PREREQ_SYS_H_WINSOCK2.
7913         Reported by Ian Beckwith <ianb@erislabs.net>.
7914
7915 2010-10-13  Jim Meyering  <meyering@redhat.com>
7916
7917         test-select-stdin.c: avoid warn_unused_result warnings
7918         * tests/test-select-stdin.c: Include "macros.h".
7919         ASSERT that read and fflush succeed.
7920
7921 2010-10-13  Jim Meyering  <meyering@redhat.com>
7922
7923         git-version-gen: do require git-VC'd files in cwd
7924         * build-aux/git-version-gen: Reject a git version string
7925         if there are no commits associated with the current directory.
7926         This avoids an unlikely false-positive (unrelated dir whose parent
7927         repository also contains a tag matching v*), as pointed out
7928         by Giuseppe Scrivano in
7929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
7930
7931 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7932
7933         argv-iter: omit nonconforming declaration
7934         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
7935         enum arg_iter_err declaration, which doesn't conform to C99.
7936         Solaris 10 cc warns about this.
7937
7938 2010-10-13  Eric Blake  <eblake@redhat.com>
7939
7940         termios: fix compilation on mingw
7941         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
7942         (gl_TERMIOS_H): Adjust it on mingw.
7943         * modules/termios (Makefile.am): Substitute new key.
7944         * lib/termios.in.h (includes): Make include_next conditional.
7945         * doc/posix-headers/termios.texi (termios.h): Update
7946         documentation.
7947         Reported by Daniel P. Berrange.
7948
7949 2010-10-13  Jim Meyering  <meyering@redhat.com>
7950
7951         git-version-gen: don't require that .git/ be in the current dir
7952         * build-aux/git-version-gen: Adjust this script so that it works
7953         when run from any working directory beneath the top-level .git/-
7954         containing directory.  Inspired by a patch from Giuseppe Scrivano,
7955         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
7956
7957         test-select: avoid warn_unused_result warnings
7958         * tests/test-select.c: Include "macros.h".
7959         ASSERT that each call to read, write, and pipe succeeds.
7960         While not technically required, also check each "close".
7961         * modules/select-tests (Files): Add tests/macros.h.
7962
7963         test-symlinkat: remove declaration of unused local
7964         * tests/test-symlinkat.c (main): Remove unused local, "buf".
7965
7966         test-inttostr: avoid shadowing warnings
7967         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
7968         and use malloc rather than the stack for the same reason as
7969         mentioned in the comment justifying the other allocation.
7970
7971 2010-10-11  Bruno Haible  <bruno@clisp.org>
7972
7973         stdlib: Allow multiple gnulib generated replacements to coexist.
7974         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
7975         Reported by Sam Steingold <sds@gnu.org>.
7976
7977 2010-10-11  Jim Meyering  <meyering@redhat.com>
7978
7979         fix a documentation typo
7980         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
7981
7982 2010-10-11  Eric Blake  <eblake@redhat.com>
7983
7984         futimens: work around Solaris 11 bug
7985         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
7986         * tests/test-futimens.h (test_futimens): Enhance, rather than
7987         weaken test.
7988         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7989
7990 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7991
7992         Indentation.
7993         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
7994         higher-level operators more to the left.
7995
7996 2010-10-11  Jim Meyering  <meyering@redhat.com>
7997
7998         test-futimens: avoid unwarranted test failure on Solaris 5.11
7999         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8000         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8001         because it tries to dereference the NULL name argument.
8002
8003 2010-10-11  Bruno Haible  <bruno@clisp.org>
8004
8005         Indentation.
8006         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8007         indentation.
8008
8009 2010-10-11  Jim Meyering  <meyering@redhat.com>
8010
8011         spawn.in.h: make indentation consistent with parentheses
8012         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8013         Make indentation consistent with parentheses.
8014
8015 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8016
8017         Fix mismatched parens in previous commit
8018         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8019         parens.
8020
8021 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8022
8023         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8024
8025         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8026         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8027         * lib/malloca.c: Include "verify.h".
8028         (verify1): Remove, replacing with a verify call.
8029         * lib/relocwrapper.c (verify1): Likewise.
8030         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8031         Likewise.
8032         * modules/malloca (Depends-on): Add 'verify'.
8033         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8034         * modules/vasnprintf (Depends-on): Add 'verify'.
8035         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8036         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8037         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8038         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8039         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8040         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8041         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8042
8043         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8044
8045         Formerly the style was sometimes 2*X - 1, because the C standard
8046         was wrongly thought to disallow ?: in integral constant expressions.
8047         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8048         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8049         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8050         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8051         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8052         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8053         verify that time_t cannot be floating.
8054
8055 2010-10-08  Eric Blake  <eblake@redhat.com>
8056
8057         time: enforce recent POSIX ruling that time_t is integral
8058         * lib/time.in.h (__time_t_must_be_integral): Detect any
8059         problematic systems, allowing the rest of gnulib to assume POSIX.
8060
8061 2010-10-08  Jim Meyering  <meyering@redhat.com>
8062
8063         fdopendir: fix a bug on systems lacking openat and /proc support
8064         OpenBSD 4.7 is one such system.  The most noticeable effect was
8065         failure of any application making nontrivial use of fts: rm, du,
8066         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8067           ./rm: traversal failed: `a': Bad file descriptor
8068         Debugging that, you see that even though FD 6 was closed just
8069         prior to the opendir call in fd_clone_opendir, its resulting
8070         dir->dd_fd was 8, rather than the expected value of 6:
8071
8072         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8073         93                close (fd);
8074         (gdb) n
8075         94                dir = fd_clone_opendir (dupfd);
8076         (gdb) n
8077         95                saved_errno = errno;
8078         (gdb) p dir->dd_fd
8079         $11 = 8
8080
8081         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8082         The problem is that on OpenBSD, fd_clone_opendir has to resort
8083         to using the old-style save/restore CWD mechanism, due to its
8084         lack of openat/proc support, and *that* would steal the FD (6)
8085         that opendir was supposed to use.
8086
8087         The fix is to squirrel away the desired FD so that save_cwd uses a
8088         different one, and then free the dest FD right before calling opendir.
8089         That guarantees opendir will use the required file descriptor.
8090
8091         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8092
8093 2010-10-08  Bruno Haible  <bruno@clisp.org>
8094
8095         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8096         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8097
8098 2010-10-08  Bruno Haible  <bruno@clisp.org>
8099
8100         nanosleep: Make replacement POSIX compliant.
8101         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8102         is out of range.
8103         Reported by Jim Meyering.
8104
8105 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8106
8107         bootstrap: add hook for altering gnulib.mk, for Bison
8108         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8109         the Bison bootstrapping process can rewrite file names and variables
8110         in this file before later parts of 'bootstrap' use the file.
8111         Bison wants to include lib/gnulib.mk from the top-level makefile,
8112         so it needs the file names in this file to be relative to the top
8113         level, not relative to lib; plus it needs variable names to be
8114         rewritten.
8115         (slurp): Use the new function.
8116
8117         bootstrap: reformat for readability
8118         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8119
8120 2010-10-08  Eric Blake  <eblake@redhat.com>
8121
8122         docs: update cygwin progress
8123         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8124         1.7.7.
8125         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8126         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8127         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8128         * doc/posix-functions/carg.texi (carg): Likewise.
8129         * doc/posix-functions/cargf.texi (cargf): Likewise.
8130         * doc/posix-functions/casin.texi (casin): Likewise.
8131         * doc/posix-functions/casinf.texi (casinf): Likewise.
8132         * doc/posix-functions/casinh.texi (casinh): Likewise.
8133         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8134         * doc/posix-functions/catan.texi (catan): Likewise.
8135         * doc/posix-functions/catanf.texi (catanf): Likewise.
8136         * doc/posix-functions/catanh.texi (catanh): Likewise.
8137         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8138         * doc/posix-functions/ccos.texi (ccos): Likewise.
8139         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8140         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8141         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8142         * doc/posix-functions/cexp.texi (cexp): Likewise.
8143         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8144         * doc/posix-functions/cimag.texi (cimag): Likewise.
8145         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8146         * doc/posix-functions/clog.texi (clog): Likewise.
8147         * doc/posix-functions/clogf.texi (clogf): Likewise.
8148         * doc/posix-functions/conj.texi (conj): Likewise.
8149         * doc/posix-functions/conjf.texi (conjf): Likewise.
8150         * doc/posix-functions/cpow.texi (cpow): Likewise.
8151         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8152         * doc/posix-functions/cproj.texi (cproj): Likewise.
8153         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8154         * doc/posix-functions/creal.texi (creal): Likewise.
8155         * doc/posix-functions/crealf.texi (crealf): Likewise.
8156         * doc/posix-functions/csin.texi (csin): Likewise.
8157         * doc/posix-functions/csinf.texi (csinf): Likewise.
8158         * doc/posix-functions/csinh.texi (csinh): Likewise.
8159         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8160         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8161         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8162         * doc/posix-functions/ctan.texi (ctan): Likewise.
8163         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8164         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8165         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8166         * doc/posix-headers/complex.texi (complex.h): Likewise.
8167
8168 2010-10-07  Jim Meyering  <meyering@redhat.com>
8169
8170         parse-datetime: avoid compilation failure on OpenBSD 4.7
8171         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8172         This works around a compilation failure on OpenBSD 4.7:
8173         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8174
8175 2010-10-07  Eric Blake  <eblake@redhat.com>
8176
8177         docs: update cygwin progress
8178         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8179         1.7.6.
8180         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8181         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8182         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8183         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8184         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8185         Likewise.
8186         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8187         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8188         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8189         Likewise.
8190         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8191         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8192         Likewise.
8193         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8194         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8195         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8196         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8197         Likewise.
8198         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8199         Likewise.
8200         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8201
8202         docs: update parse-datetime history
8203         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8204         documentation of this function's history and alternatives.
8205
8206         cygwin: use more robust version check
8207         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
8208         exclude an eventual cygwin 1.9.1.
8209         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8211         (gl_FUNC_STRCASESTR): Likewise.
8212         Reported by Bruno Haible.
8213
8214 2010-10-06  Bruno Haible  <bruno@clisp.org>
8215
8216         string, sys_select: Avoid #including large headers unless necessary.
8217         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
8218         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
8219         OSF/1, BeOS, Haiku.
8220         Reported by Jim Meyering.
8221
8222 2010-10-05  Eric Blake  <eblake@redhat.com>
8223
8224         memmem, strstr, strcasestr: fix bug with long periodic needle
8225         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
8226         periodic needle having false positive.
8227         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
8228         and cygwin 1.7.7.
8229         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
8230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
8231         (gl_FUNC_STRCASESTR): Likewise.
8232         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8233         * tests/test-memmem.c (main): Expose the bug.
8234         * tests/test-strcasestr.c (main): Likewise.
8235         * tests/test-strstr.c (main): Likewise.
8236         * tests/test-c-strcasestr.c (main): Likewise.
8237         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
8238         * doc/posix-functions/strstr.texi (strstr): Likewise.
8239         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8240         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
8241
8242 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8243
8244         parse-datetime: do some more renaming
8245         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
8246         parse_datetime, not get_date.  Mention the renaming.
8247         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
8248         in comments.
8249         * m4/bison.m4: Likewise.
8250
8251 2010-10-05  Eric Blake  <eblake@redhat.com>
8252
8253         parse-datetime: better name than get_date
8254         * NEWS: Reword the deprecation notice.
8255         * modules/get_date: Rename to modules/parse-datetime.
8256         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
8257         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
8258         * lib/get_date.y: Rename to lib/parse-datetime.y.
8259         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
8260         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
8261         * doc/getdate.texi: Provide fallback wrapper.
8262         * lib/getdate.h: Move guts, and wrap...
8263         * lib/parse-datetime.h: ...new file.
8264         * lib/parse-datetime.y (get_date): Rename...
8265         (parse_datetime): ...to this.
8266         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
8267         (gl_PARSE_DATETIME): ...to this.
8268         * doc/posix-functions/getdate.texi (get_date): Provide fallback
8269         documentation.
8270         * modules/getdate (Files): Provide fallback docs and header.
8271         (Notice, Depends-on): Update references.
8272         * tests/test-parse-datetime.c: Likewise.
8273         * DEPENDENCIES: Likewise.
8274         * MODULES.html.sh (Date and time <time.h>): Likewise.
8275         * doc/parse-datetime.texi (Date input formats)
8276         (Authors of parse_datetime): Likewise.
8277         * modules/parse-datetime (Files, configure.ac, Makefile.am)
8278         (Include): Likewise.
8279         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
8280         * gnulib-tool: Likewise.
8281         * m4/bison.m4 (gl_BISON): Likewise.
8282         Suggested by Bruno Haible.
8283
8284 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8285
8286         more ports to Solaris tr, which needs [] around ranges
8287         * gnulib-tool: Solaris tr needs [] around ranges.
8288         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8289         * tests/test-pipe-filter-gi1.c (main): Likewise.
8290         * tests/test-pipe-filter-ii1.c (main): Likewise.
8291
8292 2010-10-05  Eric Blake  <eblake@redhat.com>
8293
8294         bootstrap: fix Solaris regression
8295         * build-aux/bootstrap (check_versions): Solaris tr still needs []
8296         around ranges.
8297         Reported by Pádraig Brady.
8298
8299         bootstrap: work with pkg-config
8300         * build-aux/bootstrap (check_versions): Also transliterate - in
8301         prerequisite name.
8302         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
8303         prerequisites that were already found, to avoid confusion.
8304         Reported by Justin Clift.
8305
8306         faccessat: remove unused wrappers
8307         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
8308         presence of these wrappers dragged in -lgen on Solaris.
8309         Reported by Clemens Brogi; fix suggested by Paul Eggert.
8310
8311 2010-10-05  Jim Meyering  <meyering@redhat.com>
8312
8313         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
8314         * Makefile (sc_pragma_columns): New syntax-check rule.
8315
8316 2010-10-04  Bruno Haible  <bruno@clisp.org>
8317
8318         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
8319         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
8320         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
8321         Reported by Bruce Korb and Eric Blake.
8322
8323 2010-10-04  Bruno Haible  <bruno@clisp.org>
8324
8325         threadlib: Make option --with-libpth-prefix work.
8326         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
8327         use $LIBPTH, not just -lpth.
8328
8329 2010-10-04  Bruno Haible  <bruno@clisp.org>
8330
8331         Avoid line length limitation from HP NonStop system header files.
8332         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
8333         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
8334         * lib/ctype.in.h: Likewise.
8335         * lib/dirent.in.h: Likewise.
8336         * lib/errno.in.h: Likewise.
8337         * lib/fcntl.in.h: Likewise.
8338         * lib/float.in.h: Likewise.
8339         * lib/getopt.in.h: Likewise.
8340         * lib/iconv.in.h: Likewise.
8341         * lib/inttypes.in.h: Likewise.
8342         * lib/langinfo.in.h: Likewise.
8343         * lib/locale.in.h: Likewise.
8344         * lib/math.in.h: Likewise.
8345         * lib/netdb.in.h: Likewise.
8346         * lib/netinet_in.in.h: Likewise.
8347         * lib/poll.in.h: Likewise.
8348         * lib/pthread.in.h: Likewise.
8349         * lib/pty.in.h: Likewise.
8350         * lib/sched.in.h: Likewise.
8351         * lib/se-selinux.in.h: Likewise.
8352         * lib/search.in.h: Likewise.
8353         * lib/signal.in.h: Likewise.
8354         * lib/spawn.in.h: Likewise.
8355         * lib/stdarg.in.h: Likewise.
8356         * lib/stddef.in.h: Likewise.
8357         * lib/stdint.in.h: Likewise.
8358         * lib/stdio.in.h: Likewise.
8359         * lib/stdlib.in.h: Likewise.
8360         * lib/string.in.h: Likewise.
8361         * lib/strings.in.h: Likewise.
8362         * lib/sys_file.in.h: Likewise.
8363         * lib/sys_ioctl.in.h: Likewise.
8364         * lib/sys_select.in.h: Likewise.
8365         * lib/sys_socket.in.h: Likewise.
8366         * lib/sys_stat.in.h: Likewise.
8367         * lib/sys_time.in.h: Likewise.
8368         * lib/sys_times.in.h: Likewise.
8369         * lib/sys_utsname.in.h: Likewise.
8370         * lib/sys_wait.in.h: Likewise.
8371         * lib/sysexits.in.h: Likewise.
8372         * lib/termios.in.h: Likewise.
8373         * lib/time.in.h: Likewise.
8374         * lib/unistd.in.h: Likewise.
8375         * lib/wchar.in.h: Likewise.
8376         * lib/wctype.in.h: Likewise.
8377         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
8378         * modules/ctype (Makefile.am): Likewise.
8379         * modules/dirent (Makefile.am): Likewise.
8380         * modules/errno (Makefile.am): Likewise.
8381         * modules/fcntl-h (Makefile.am): Likewise.
8382         * modules/float (Makefile.am): Likewise.
8383         * modules/getopt-posix (Makefile.am): Likewise.
8384         * modules/iconv-h (Makefile.am): Likewise.
8385         * modules/inttypes (Makefile.am): Likewise.
8386         * modules/langinfo (Makefile.am): Likewise.
8387         * modules/locale (Makefile.am): Likewise.
8388         * modules/math (Makefile.am): Likewise.
8389         * modules/netdb (Makefile.am): Likewise.
8390         * modules/netinet_in (Makefile.am): Likewise.
8391         * modules/poll-h (Makefile.am): Likewise.
8392         * modules/pthread (Makefile.am): Likewise.
8393         * modules/pty (Makefile.am): Likewise.
8394         * modules/sched (Makefile.am): Likewise.
8395         * modules/search (Makefile.am): Likewise.
8396         * modules/selinux-h (Makefile.am): Likewise.
8397         * modules/signal (Makefile.am): Likewise.
8398         * modules/spawn (Makefile.am): Likewise.
8399         * modules/stdarg (Makefile.am): Likewise.
8400         * modules/stddef (Makefile.am): Likewise.
8401         * modules/stdint (Makefile.am): Likewise.
8402         * modules/stdio (Makefile.am): Likewise.
8403         * modules/stdlib (Makefile.am): Likewise.
8404         * modules/string (Makefile.am): Likewise.
8405         * modules/strings (Makefile.am): Likewise.
8406         * modules/sys_file (Makefile.am): Likewise.
8407         * modules/sys_ioctl (Makefile.am): Likewise.
8408         * modules/sys_select (Makefile.am): Likewise.
8409         * modules/sys_socket (Makefile.am): Likewise.
8410         * modules/sys_stat (Makefile.am): Likewise.
8411         * modules/sys_time (Makefile.am): Likewise.
8412         * modules/sys_times (Makefile.am): Likewise.
8413         * modules/sys_utsname (Makefile.am): Likewise.
8414         * modules/sys_wait (Makefile.am): Likewise.
8415         * modules/sysexits (Makefile.am): Likewise.
8416         * modules/termios (Makefile.am): Likewise.
8417         * modules/time (Makefile.am): Likewise.
8418         * modules/unistd (Makefile.am): Likewise.
8419         * modules/wchar (Makefile.am): Likewise.
8420         * modules/wctype (Makefile.am): Likewise.
8421
8422 2010-10-04  Bruno Haible  <bruno@clisp.org>
8423
8424         read-file tests: Avoid a test failure on NonStop Kernel.
8425         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
8426         a regular file.
8427         Reported by Joachim Schmitz <schmitz@hp.com>.
8428
8429 2010-10-03  Bruno Haible  <bruno@clisp.org>
8430
8431         gnulib-tool: Fixes for --create-testdir with --libtool.
8432         * gnulib-tool (func_get_automake_snippet): Don't augment
8433         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
8434         an executable.
8435         (func_create_testdir): Handle module 'alloca' like func_import.
8436         Reported by Bruce Korb <bruce.korb@gmail.com>.
8437
8438 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
8439
8440         Avoid some lines longer than 80 characters.
8441         * lib/stdint.in.h: Break long comment lines.
8442         * lib/math.in.h: Likewise.
8443         (_GL_NUM_UINT_WORDS): New macro, for readability.
8444         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
8445         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
8446         * lib/stdlib.in.h: Likewise.
8447         * lib/spawn.in.h: Likewise.
8448         * lib/sys_socket.in.h: Update an URL.
8449         * lib/sys_stat.in.h: Break long line.
8450
8451 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
8452
8453         Improve pmccabe2html.
8454         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
8455         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
8456         when the sources change. Remove the line in the HTML about "Used
8457         ranges" (which implied that there might be other unused ranges),
8458         rename "Resume" to "Summary" (easier to understand for more users).
8459         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
8460         styles, and some unnecessary blank lines.
8461
8462 2010-10-03  Bruno Haible  <bruno@clisp.org>
8463             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8464
8465         acl: Add support for ACLs on NonStop Kernel.
8466         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
8467         Check whether the function aclsort() exists.
8468         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8469         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
8470         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8471         (acl_nontrivial [HAVE_ACLSORT]: New function.
8472         (file_has_acl): Implement for NonStop Kernel.
8473         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8474         (qset_acl): Implement for NonStop Kernel.
8475         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
8476         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
8477         (main): Implement for NonStop Kernel.
8478         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
8479         Kernel. Handle this flavor.
8480         * tests/test-set-mode-acl.sh: Likewise.
8481         * tests/test-copy-acl.sh: Likewise.
8482         * tests/test-copy-file.sh: Likewise.
8483
8484 2010-10-03  Bruno Haible  <bruno@clisp.org>
8485
8486         Info about ACLs on NonStop Kernel.
8487         * doc/acl-resources.txt: Add info about NonStop Kernel.
8488         References by Joachim Schmitz <schmitz@hp.com>.
8489
8490 2010-10-02  Bruno Haible  <bruno@clisp.org>
8491
8492         Define missing EDQUOT on NonStop Kernel.
8493         * lib/errno.in.h (EDQUOT): Assign a value if missing.
8494         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
8495         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
8496         missing.
8497         * doc/posix-headers/errno.texi: Mention the NSK bug.
8498         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
8499         Reported by Joachim Schmitz <schmitz@hp.com>.
8500
8501 2010-10-02  Bruno Haible  <bruno@clisp.org>
8502
8503         Update doc for POSIX:2008.
8504         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
8505         Update URL of POSIX specification.
8506
8507 2010-10-02  Bruno Haible  <bruno@clisp.org>
8508
8509         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
8510         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
8511         from gnulib, not from Automake.
8512
8513 2010-10-02  Bruno Haible  <bruno@clisp.org>
8514
8515         New module 'system-posix'.
8516         * modules/system-posix: New file.
8517         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
8518         module is present.
8519         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8520         GNULIB_SYSTEM_POSIX.
8521         * modules/stdlib (Depends-on): Remove sys_wait.
8522         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
8523         * doc/posix-functions/system.texi: Mention the new module.
8524         * doc/posix-headers/stdlib.texi: Likewise.
8525         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
8526         define test_sys_wait_macros to a no-op.
8527         Reported by Sam Steingold <sds@gnu.org>.
8528
8529 2010-09-30  Bruno Haible  <bruno@clisp.org>
8530
8531         More renaming from 'getdate' to 'get_date'.
8532         * doc/get_date.texi: Renamed from doc/getdate.texi.
8533         * modules/get_date (Files): Update.
8534         * MODULES.html.sh (Date and time <time.h>): Update.
8535         * DEPENDENCIES: Update.
8536         * gnulib-tool: Update comment.
8537         * m4/bison.m4 (gl_BISON): Likewise.
8538         * m4/get_date.m4 (gl_GET_DATE): Likewise.
8539
8540 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
8541
8542         bootstrap: support ACLOCAL_FLAGS during aclocal
8543         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
8544         can add additional -I dir for third-party .m4 files.
8545
8546 2010-09-30  Eric Blake  <eblake@redhat.com>
8547
8548         bootstrap: use glibtoolize on MacOS
8549         * build-aux/bootstrap (check_versions): Convert libtool into
8550         libtoolize.
8551         (tool search): Move libtool check earlier, and look for
8552         glibtoolize for MacOS.
8553         (gnulib_tool_options): Auto-add --libtool when appropriate.
8554         Reported by Justin Clift.
8555
8556         poll: fix typo that broke test on MacOS
8557         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
8558         Reported by Justin Clift.
8559
8560         getdate: rename to get_date
8561         Note: getdate.h is not renamed, to minimize client impact.
8562         * modules/getdate: Mark obsolete.  Move old contents...
8563         * modules/get_date: ...to new module name.
8564         * modules/getdate-tests: Move...
8565         * modules/get_date-tests: ...here.
8566         * m4/getdate.m4: Move...
8567         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
8568         * lib/getdate.y: Move...
8569         * lib/get_date.y: ...here.
8570         * tests/test-getdate.c: Move...
8571         * tests/test-get_date.c: ...here.
8572         * doc/posix-functions/getdate.texi (getdate): Update name.
8573         * NEWS: Mention the change.
8574
8575 2010-09-29  Bruno Haible  <bruno@clisp.org>
8576
8577         Separate the module 'waitpid' from the module 'sys_wait'.
8578         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
8579         present.
8580         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
8581         gl_MODULE_INDICATOR_FOR_TESTS.
8582         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
8583         * modules/sys_wait (Depends-on): Remove waitpid.
8584         (Makefile.am): Substitute GNULIB_WAITPID.
8585         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
8586         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
8587         signature only if the 'waitpid' module is present.
8588         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
8589         * NEWS: Mention the change.
8590         * modules/grantpt (Depends-on): Add waitpid.
8591         * modules/wait-process (Depends-on): Likewise.
8592
8593 2010-09-29  Bruno Haible  <bruno@clisp.org>
8594
8595         More tests for module 'sys_wait'.
8596         * modules/sys_wait-c++-tests: New file.
8597         * tests/test-sys_wait-c++.cc: New file.
8598         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
8599         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8600
8601 2010-09-29  Bruno Haible  <bruno@clisp.org>
8602
8603         New module 'waitpid'.
8604         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
8605         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
8606         Don't include <process.h>.
8607         (waitpid): Declare only, using modern idiom.
8608         * m4/waitpid.m4: New file.
8609         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
8610         * modules/waitpid: New file.
8611         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
8612         (Makefile.am): Update.
8613         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8614
8615 2010-09-28  Bruno Haible  <bruno@clisp.org>
8616
8617         poll: Assume ANSI C.
8618         * lib/poll.c (poll): Use an ANSI C declaration.
8619
8620 2010-09-28  Bruno Haible  <bruno@clisp.org>
8621
8622         poll-h: Create poll.h on all platforms.
8623         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
8624         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
8625         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
8626         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
8627         (gl_REPLACE_POLL_H): Don't set POLL_H.
8628         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
8629         * modules/poll-h (Depends-on): Add include_next.
8630         (Makefile.am): Create poll.h unconditionally. Substitute also
8631         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
8632
8633 2010-09-28  Bruno Haible  <bruno@clisp.org>
8634
8635         Tests for module 'poll-h'.
8636         * modules/poll-h-c++-tests: New file.
8637         * tests/test-poll-h-c++.cc: New file.
8638
8639         Tests for module 'poll-h'.
8640         * modules/poll-h-tests: New file.
8641         * tests/test-poll-h.c: New file.
8642
8643 2010-09-28  Bruno Haible  <bruno@clisp.org>
8644
8645         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
8646         * modules/poll-h (Depends-on): Add 'extensions'.
8647
8648 2010-09-28  Bruno Haible  <bruno@clisp.org>
8649
8650         New module 'poll-h'.
8651         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
8652         (poll): Use modern idiom.
8653         * modules/poll-h: New file.
8654         * modules/poll (Files): Remove lib/poll.in.h.
8655         (Depends-on): Add poll-h.
8656         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
8657         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
8658         * m4/poll_h.m4: New file.
8659         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
8660         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
8661         and invoke gl_REPLACE_POLL_H.
8662         * lib/poll.c: Use common idiom.
8663         * tests/test-poll.c: Likewise.
8664         * doc/posix-headers/poll.texi: Mention the poll-h module.
8665         Suggested by Eric Blake.
8666
8667 2010-09-26  Bruno Haible  <bruno@clisp.org>
8668
8669         sys_wait: Implement WSTOPSIG.
8670         * lib/sys_wait.in.h (WSTOPSIG): New macro.
8671         Reported by Simon Josefsson.
8672
8673 2010-09-26  Simon Josefsson  <simon@josefsson.org>
8674
8675         stdlib, sys_wait: Avoid compilation error on mingw.
8676         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
8677
8678 2010-09-26  Bruno Haible  <bruno@clisp.org>
8679
8680         stdlib tests: Avoid code duplication.
8681         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
8682         * modules/sys_wait-tests (Files): Likewise.
8683         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
8684         * tests/test-stdlib.c: Include test-sys_wait.h.
8685         (main): Invoke test_sys_wait_macros.
8686         * tests/test-sys_wait.c: Include test-sys_wait.h.
8687         (main): Invoke test_sys_wait_macros.
8688
8689 2010-09-25  Simon Josefsson  <simon@josefsson.org>
8690
8691         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
8692         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
8693         sure Windows sockets are working before calling getaddrinfo.
8694         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
8695         * doc/gnulib.texi (Windows sockets): Fix typo.
8696
8697 2010-09-25  Bruno Haible  <bruno@clisp.org>
8698
8699         Tests for module 'regex-quote'.
8700         * modules/regex-quote-tests: New file.
8701         * tests/test-regex-quote.c: New file.
8702
8703         New module 'regex-quote'.
8704         * lib/regex-quote.h: New file.
8705         * lib/regex-quote.c: New file.
8706         * modules/regex-quote: New file.
8707         Suggested by Reuben Thomas <rrt@sc3d.org>.
8708
8709 2010-09-24  Bruno Haible  <bruno@clisp.org>
8710
8711         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
8712         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
8713
8714 2010-09-23  Bruno Haible  <bruno@clisp.org>
8715
8716         setenv: Relax license.
8717         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
8718         Blake.
8719         Requested by Eric Blake.
8720
8721 2010-09-22  Bruno Haible  <bruno@clisp.org>
8722
8723         termios: Relax license.
8724         * modules/termios (License): Change to LGPLv2+.
8725         Requested by Eric Blake.
8726
8727 2010-09-22  Bruno Haible  <bruno@clisp.org>
8728
8729         threadlib: Allow the package to change the default to 'no'.
8730         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
8731         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
8732         Reported by Paul Eggert.
8733
8734 2010-09-22  Pádraig Brady  <P@draigbrady.com>
8735             Bruno Haible  <bruno@clisp.org>
8736
8737         Fix endless loop in mbmemcasecoll.
8738         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
8739         byte.
8740         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
8741
8742 2010-09-22  Bruno Haible  <bruno@clisp.org>
8743
8744         Tests for module 'memcoll'.
8745         * modules/memcoll-tests: New file.
8746         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
8747
8748         memcoll, xmemcoll: Clarify size vs. length.
8749         * modules/memcoll.c (memcoll0): Clarify specification.
8750         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
8751         passed to collate_error.
8752
8753 2010-09-22  Bruno Haible  <bruno@clisp.org>
8754
8755         Tests for module 'memcasecmp'.
8756         * modules/memcasecmp-tests: New file.
8757         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
8758
8759 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8760
8761         * lib/pthread.in.h: Add split double-inclusion guard, and include
8762         system <pthread.h> if there is one.  Use @@-style as in other
8763         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
8764         pthread.h doesn't.
8765         (pthread_mutexattr_destroy, pthread_mutexattr_init):
8766         (pthread_mutexattr_settype, pthread_mutex_trylock):
8767         New static inline functions, if there's no system <pthread.h>.
8768         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
8769         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
8770         Approximate with mutexes if the system lacks spinlocks, as in
8771         MacOS.
8772         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
8773         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
8774         @@-style.  Check for spinlocks separately.
8775         (gl_PTHREAD_DEFAULTS): New macro.
8776         * modules/pthread: Redo to use a more typical style for in.h files.
8777
8778 2010-09-21  Eric Blake  <eblake@redhat.com>
8779
8780         net_if: enhance tests
8781         * tests/test-net_if.c (main): Move signature checks earlier.
8782         Print failures to stderr.
8783         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
8784         Document the bug that we do not yet fix.
8785
8786 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8787
8788         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
8789         about gnulib, not GSS.
8790
8791 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
8792
8793         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
8794         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
8795         for Emacs.
8796         * build-aux/pmccabe2html: Make Makefile.am example code more
8797         cut-and-paste friendly.
8798
8799 2010-09-21  Simon Josefsson  <simon@josefsson.org>
8800
8801         * tests/test-net_if.c: New file.
8802         * modules/net_if-tests: New file.
8803
8804 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8805
8806         pthread: add pthread_spin_destroy
8807         * lib/pthread.in.h (pthread_spin_destroy): New function.
8808
8809 2010-09-19  Bruno Haible  <bruno@clisp.org>
8810
8811         gnulib-tool: Fix --help output.
8812         * gnulib-tool (func_usage): Fix help message.
8813         Reported by Reuben Thomas <rrt@sc3d.org>.
8814
8815 2010-09-18  Jim Meyering  <meyering@redhat.com>
8816
8817         maint.mk: avoid unexpanded \n in two diagnostics
8818         * top/maint.mk (sc_prohibit_always_true_header_tests):
8819         Don't use a literal \n in a halt=... assignment.  It would not be
8820         expanded, and the two \n bytes would appear in the diagnostic output
8821         rather than the desired newline.  Use halt=$$(printf ... instead.
8822         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8823
8824 2010-09-18  Bruno Haible  <bruno@clisp.org>
8825
8826         netinet_in: Doc tweak.
8827         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
8828         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8829
8830 2010-09-18  Jim Meyering  <meyering@redhat.com>
8831
8832         init.sh: correct an outdated comment
8833         * tests/init.sh (create_exe_shims_):  s/function/alias/
8834
8835         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
8836         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
8837         a file named "*.exe" is removed between the glob expansion and the
8838         processing of that oddly named file.
8839
8840 2010-09-17  Eric Blake  <eblake@redhat.com>
8841
8842         mirbsd: add some more support
8843         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
8844         in BSD family.
8845         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
8846         devices as OpenBSD.
8847         * m4/host-os.m4 (mirbsd): Add MirBSD.
8848
8849         tests: fix unportable assumption on sys/wait.h
8850         * tests/test-sys_wait.c (main): Relax test.
8851         * tests/test-stdlib.c (main): Likewise.
8852
8853         init.sh: accomodate directory with no .exes
8854         * tests/init.sh: Accomodate directory containing only scripts.
8855
8856         tests: avoid compiler warning
8857         * tests/test-stdlib.c (main): Use the variable.
8858
8859         fdutimens, fdutimensat: update signature, again
8860         * lib/utimens.h (gl_futimens): Delete, and move signature...
8861         (fdutimens): ...here.
8862         (fdutimensat): Rearrange signature.
8863         (lutimensat): Rename variable for clarity.
8864         * lib/fdutimensat.c (fdutimensat): Update signature.
8865         * lib/utimens.c (fdutimens): Likewise.
8866         (gl_futimens): Delete.
8867         (utimens, lutimens): Update callers.
8868         * lib/futimens.c (futimens): Likewise.
8869         * tests/test-fdutimensat.c: Likewise.
8870         * tests/test-utimens.c: Likewise.
8871         * tests/test-futimens.h: Update comment.
8872         * NEWS: Mention this.
8873         Suggested by Paul Eggert.
8874
8875 2010-09-17  Bruno Haible  <bruno@clisp.org>
8876
8877         Take over the maintenance of some older macros from Autoconf.
8878         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
8879         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
8880         GNU Autoconf.
8881         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
8882         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
8883
8884 2010-09-17  Eric Blake  <eblake@redhat.com>
8885
8886         fdutimensat: drop atflag validation
8887         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
8888         with valid fd, to close a race scenario where futimens is
8889         unsupported and FILE was replaced by a symlink.
8890         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
8891         accordingly.
8892         Suggested by Paul Eggert.
8893
8894 2010-09-16  Bruno Haible  <bruno@clisp.org>
8895
8896         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
8897         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
8898
8899 2010-09-16  Bruno Haible  <bruno@clisp.org>
8900
8901         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
8902         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
8903         login_tty exists.
8904         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8905
8906 2010-09-16  Bruno Haible  <bruno@clisp.org>
8907
8908         login_tty: Make the replacement code work on BSD systems.
8909         * lib/login_tty.c: Include <sys/ioctl.h>.
8910         (login_tty): Use ioctl TIOCSCTTY when available.
8911         * modules/login_tty (Depends-on): Add sys_ioctl.
8912         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8913
8914 2010-09-16  Bruno Haible  <bruno@clisp.org>
8915
8916         login_tty: Stricter unit test.
8917         * modules/login_tty-tests (Depends-on): Add tcgetsid.
8918         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
8919         and tcgetsid() after login_tty.
8920         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
8921
8922 2010-09-16  Bruno Haible  <bruno@clisp.org>
8923
8924         New module 'tcgetsid'.
8925         * lib/tcgetsid.c: New file.
8926         * m4/tcgetsid.m4: New file.
8927         * modules/tcgetsid: New file.
8928         * modules/termios (Depends-on): Add c++defs, warn-on-use.
8929         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
8930         GNULIB_TCGETSID, HAVE_TCGETSID.
8931         * lib/termios.in.h: Include <sys/types.h>.
8932         (tcgetsid): New declaration.
8933         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
8934         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
8935         * doc/posix-functions/tcgetsid.texi: Mention the new module.
8936         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
8937
8938 2010-09-16  Bruno Haible  <bruno@clisp.org>
8939
8940         Tests for module 'termios'.
8941         * modules/termios-c++-tests: New file.
8942         * modules/termios-tests: New file.
8943         * tests/test-termios-c++.cc: New file.
8944         * tests/test-termios.c: New file.
8945
8946         New module 'termios'.
8947         * modules/termios: New file.
8948         * lib/termios.in.h: New file.
8949         * m4/termios_h.m4: New file.
8950         * doc/posix-headers/termios.texi: Mention the new module.
8951
8952 2010-09-16  Eric Blake  <eblake@redhat.com>
8953
8954         fdutimensat: add an atflag parameter
8955         * lib/fdutimensat.c (fdutimensat): Add new parameter.
8956         * lib/utimens.h (fdutimensat): Update prototype.
8957         * tests/test-fdutimensat.c: Adjust test to match.
8958         * NEWS: Document the change.
8959         Suggested by Paul Eggert.
8960
8961 2010-09-16  Bruno Haible  <bruno@clisp.org>
8962
8963         Fix typos in comments.
8964         * lib/striconveh.h: Fix typo in comment.
8965         * lib/login_tty.c (login_tty): Likewise.
8966
8967 2010-09-15  Bruno Haible  <bruno@clisp.org>
8968
8969         stdlib: clarify MirBSD WEXITSTATUS bug
8970         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
8971         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8972
8973 2010-09-15  Eric Blake  <eblake@redhat.com>
8974
8975         stdlib: work around MirBSD WEXITSTATUS bug
8976         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
8977         * modules/stdlib (Depends-on): Add sys_wait.
8978         * tests/test-sys_wait.c (main): Enhance test.
8979         * tests/test-stdlib.c (main): Likewise.
8980         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
8981
8982         docs: mention MacOS issue with WEXITSTATUS(constant)
8983         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
8984         issue.
8985         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8986
8987         strnlen: add tests
8988         * modules/strnlen-tests: New file.
8989         * tests/test-strnlen.c: Likewise.
8990
8991 2010-09-14  Bruno Haible  <bruno@clisp.org>
8992
8993         unistr/base: Avoid link errors when module 'libunistring' is also used.
8994         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
8995         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
8996         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
8997         Declare also when HAVE_LIBUNISTRING is set.
8998         Reported by Pádraig Brady <P@draigbrady.com>.
8999
9000 2010-09-14  Eric Blake  <eblake@redhat.com>
9001
9002         test-rawmemchr: make more robust
9003         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9004         (Depends-on, configure.ac): Add needed prerequisites to use it.
9005         * modules/memchr-tests (Files, Depends-on, configure.ac):
9006         Likewise, to avoid implicit reliance on memchr module prereqs.
9007         * tests/test-memchr.c (main): Ensure proper masking.
9008         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9009         reads.
9010
9011         memchr: detect glibc Alpha bug
9012         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9013         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9014         Alpha.
9015         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9016         * tests/test-memchr.c (main): Enhance test.
9017         Reported by Nelson H. F. Beebe.
9018
9019 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9020
9021         fts, getcwd, glob: audit for dirfd returning -1
9022         * lib/fts.c (opendir): Remove #define; no longer used.
9023         (opendirat): New arg PDIR_FD.  All callers changed.
9024         (fts_build, _opendir2): Use new opendirat to avoid the need for
9025         dirfd, or for checking whether dirfd returns a negative value.
9026         Don't use opendir; always use openat followed by fdopendir.
9027         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9028         it.
9029         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9030         returns -1 here.
9031         * modules/fts (Depends-on): Remove dirfd.
9032         * modules/getcwd (Depends-on): Likewise.
9033
9034 2010-09-13  Eric Blake  <eblake@redhat.com>
9035
9036         float: fix broken MirBSD header
9037         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9038         * doc/posix-headers/float.texi (float.h): Document it.
9039
9040 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9041
9042         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9043         * lib/fts.c (opendirat): New arg extra_flags.
9044         (__opendir2): Use it to avoid following symlinks when opening
9045         a directory, if symlinks are not supposed to be followed.  See
9046         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9047
9048         fdopendir: preserve argument fd before returning
9049         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9050         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9051         (fdopendir): Use them, arranging for FD to be open to the same
9052         directory that it was when it started.  (It might be temporarily
9053         closed while fdopendir is running, so this not thread- or
9054         signal-safe.)  Be careful to do the right thing even when file
9055         descriptors are scarce and dup fails with errno == EMFILE.  See
9056         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9057
9058 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9059
9060         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9061         * NEWS: Document change.
9062         * m4/regex.m4: Disable test for regoff_t size.
9063
9064 2010-09-13  Jim Meyering  <meyering@redhat.com>
9065
9066         fts: don't operate on an invalid file descriptor after failed dup
9067         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9068         negative file descriptor.
9069
9070 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9071
9072         savedir: add streamsavedir, deprecate fdsavedir
9073         * NEWS: Mention deprecation of fdsavedir.
9074         * lib/savedir.c (streamsavedir): New extern function, whose name
9075         ends in "savedir" to be consistent with the others.  This differs
9076         from savedirstream in that it doesn't close its argument.  The
9077         next version of GNU tar will use this instead of fdsavedir, to
9078         avoid some race conditions and conserve file descriptors.
9079         (savedirstream): Reimplement as a wrapper around streamsavedir.
9080         (fdsavedir): Add a comment deprecating this function.  As far as
9081         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9082         * lib/savedir.h (streamsavedir): New decl.
9083         (fdsavedir): Add a comment deprecating this.
9084
9085 2010-09-10  Bruno Haible  <bruno@clisp.org>
9086
9087         langinfo: Fix last commit.
9088         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9089         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9090         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9091
9092 2010-09-10  Bruno Haible  <bruno@clisp.org>
9093
9094         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9095         * lib/progreloc.c (O_EXEC): Define fallback.
9096
9097 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9098
9099         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9100         * NEWS: Document recent changes to fcntl-h.
9101         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9102         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9103         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9104         Similarly for O_SEARCH; this last was already true, but not documented.
9105         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9106         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9107         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9108         Likewise.
9109         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9110         is zero, not whether it is defined.
9111         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9112         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9113         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9114
9115 2010-09-10  Bruno Haible  <bruno@clisp.org>
9116
9117         langinfo, nl_langinfo: Fix for IRIX 5.3.
9118         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9119         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9120         HAVE_LANGINFO_YESEXPR.
9121         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9122         HAVE_LANGINFO_YESEXPR.
9123         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9124         HAVE_LANGINFO_T_FMT_AMPM is 0.
9125         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9126         HAVE_LANGINFO_YESEXPR is 0.
9127         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9128         NOEXPR.
9129         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9130         * doc/posix-functions/nl_langinfo.texi: Likewise.
9131         Reported by Eric Blake.
9132
9133 2010-09-10  Bruno Haible  <bruno@clisp.org>
9134
9135         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9136         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9137         on FreeBSD 8.0 and OpenBSD 4.6.
9138         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9139         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9140         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9141         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9142         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9143         ac_includes_default.
9144         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9145
9146 2010-09-09  Eric Blake  <eblake@redhat.com>
9147
9148         strsignal: work around NetBSD bug
9149         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9150         * lib/string.in.h (includes): Likewise.
9151         * doc/posix-functions/strsignal.texi (strsignal): Document the
9152         bug.
9153         Reported by Nelson H. F. Beebe.
9154
9155         gnulib-tool: work with NetBSD /bin/sh
9156         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9157         (func_get_description, func_get_comment, func_get_status)
9158         (func_get_notice, func_get_applicability, func_get_filelist)
9159         (func_get_dependencies, func_get_autoconf_early_snippet)
9160         (func_get_autoconf_snippet, func_get_automake_snippet)
9161         (func_get_include_directive, func_get_link_directive)
9162         (func_get_license, func_get_maintainer, func_import): Avoid
9163         shell syntax errors from parsing syntax extensions.
9164
9165 2010-09-09  Bruno Haible  <bruno@clisp.org>
9166
9167         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9168         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9169         a reliable way to determine whether the 'alias' command works.
9170
9171 2010-09-08  Jim Meyering  <meyering@redhat.com>
9172
9173         init.sh: penalize a set-x-impaired shell; don't disqualify it
9174         * tests/init.sh: Too many shells corrupt application stderr when
9175         you set -x, so we can't afford to disqualify them, since at least
9176         on Irix-6.5, that would disqualify all bourne shells.
9177         Instead, use a two-pass approach.
9178         On the first pass, try to find a shell that meets the stricter
9179         condition that set -x does not corrupt stderr.
9180         If no shell meets the stricter condition, retest each candidate
9181         shell, but without that extra condition.  Finally, when
9182         VERBOSE=yes is requested and set -x might cause trouble, simply
9183         issue a warning and refrain from enabling debug output.
9184
9185 2010-09-08  Eric Blake  <eblake@redhat.com>
9186
9187         unsetenv: fix OpenBSD bug
9188         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9189         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9190         documentation.
9191         Reported by Jim Meyering.
9192
9193         strtod: work around IRIX 6.5 bug
9194         * lib/strtod.c (strtod): Reparse number on shorter string if
9195         exponent parse was invalid.
9196         * tests/test-strtod.c (main): Add check for "0x1p 2".
9197         Reported by Tom G. Christensen.
9198
9199         getopt: optimize previous patch
9200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9201         empty variable.  Speed up awk script.
9202         Reported by Paolo Bonzini.
9203
9204 2010-09-08  Jim Meyering  <meyering@redhat.com>
9205
9206         test.sh: disqualify shells for which set -x corrupts stderr
9207         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
9208         and OpenBSD 4.7.  They make it so with "set -x", environment settings
9209         appear in stderr output.  For example, this command:
9210             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
9211         prints "P=1" on those two systems:
9212
9213 2010-09-08  Bruno Haible  <bruno@clisp.org>
9214
9215         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9216         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
9217         commands, because some shells ignore redirections when there is an
9218         error in the command lookup.
9219         Reported by Eric Blake.
9220
9221 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
9222
9223         * lib/regex.h: Fix a mention of `regex_compile' (should be
9224         `re_compile_pattern').
9225         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
9226         (re_set_registers): Correct name of parameter in comment.
9227
9228         * doc/regex.texi: Add documentation for missing syntax flags.
9229         Remove commented-out documentation of defunct syntax option
9230         RE_NO_EMPTY_ALTS.
9231         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
9232         Add documentation of re_set_registers.
9233         Document trick to re-use a pattern buffer by setting fastmap manually.
9234         Update documentation of struct re_pattern_buffer per public members.
9235         Uncomment documentation of equivalence class operators and
9236         collating symbol operators, since they are now implemented,
9237         Explain leftmost-longest matching in relation to alternatives.
9238         Tidy documentation of substring matching.
9239         Remove POSIX documentation, which is done better in
9240         glibc, and refer the reader there. Keep BSD API documentation, as
9241         that is not readily available elsewhere.
9242
9243 2010-09-07  Eric Blake  <eblake@redhat.com>
9244
9245         getopt: handle POSIXLY_CORRECT set but not exported
9246         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
9247         export state of POSIXLY_CORRECT, due to bash set -o posix.
9248         Reported by Dustin J. Mitchell.
9249
9250 2010-09-05  Bruno Haible  <bruno@clisp.org>
9251
9252         gnulib-tool: Highlight the changed options.
9253         * gnulib-tool (func_usage): Display the --import, --add-import,
9254         --remove-import explanations in bold font.
9255
9256 2010-09-06  Karl Berry  <karl@gnu.org>
9257
9258         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
9259
9260 2010-09-05  Bruno Haible  <bruno@clisp.org>
9261
9262         uniwidth/width: Update comment.
9263         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
9264         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
9265
9266 2010-09-05  Bruno Haible  <bruno@clisp.org>
9267
9268         isinf, isnan: Relax license.
9269         * modules/isinf (License): Change from GPL to LGPL, with consent from
9270         Ben Pfaff.
9271         * modules/isnan (License): Likewise.
9272         Requested by Ludovic Courtès.
9273
9274 2010-09-04  Bruno Haible  <bruno@clisp.org>
9275
9276         gnulib-tool: Help migration from --import to --add-import or --update.
9277         * gnulib-tool: Emit a verbose error message when --import is used
9278         without any module name.
9279
9280 2010-09-04  Bruno Haible  <bruno@clisp.org>
9281
9282         Update doc about gnulib-tool.
9283         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
9284         'gnulib-tool --update' in more detail.
9285         Reported by Eric Blake.
9286
9287 2010-09-04  Bruno Haible  <bruno@clisp.org>
9288
9289         gnulib-tool: Change --import. New options --add/remove-import.
9290         * gnulib-tool: New options --add-import, --remove-import.
9291         (func_usage): Document them.
9292         (have_associative): Define always.
9293         (func_import): In import mode, don't merge the specified settings with
9294         the cached settings. Implement remove-import mode.
9295         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
9296         Explain when to use them versus --import.
9297         (Simple update): Use --add-import instead of --import.
9298         * NEWS: Mention the change.
9299
9300 2010-09-04  Bruno Haible  <bruno@clisp.org>
9301
9302         * doc/gnulib-tool.texi (Initial import): Update paragraph about
9303         separate gnulib.mk.
9304
9305 2010-09-04  Bruno Haible  <bruno@clisp.org>
9306
9307         gnulib-tool: Don't talk about CVS any more.
9308         * gnulib-tool (func_usage, func_import): Write "version control"
9309         instead of CVS.
9310
9311 2010-09-04  Jim Meyering  <meyering@redhat.com>
9312
9313         maint.mk: avoid obscure sc_copyright_check failure in coreutils
9314         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
9315         false positives (whose names may be ill-chosen) when searching
9316         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
9317         would cause a false-positive.
9318
9319         avoid coreutils "make distcheck" failure
9320         Coreutils tests with an absolute build directory name that contains
9321         a space.  Not quoting this directory name caused a failure.
9322         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
9323         * tests/test-vc-list-files-cvs.sh: Likewise.
9324
9325 2010-09-04  Bruno Haible  <bruno@clisp.org>
9326
9327         gnulib-tool: Avoid error when run in a package without Makefile.am.
9328         * gnulib-tool: When collecting the m4dirs in a package that does not
9329         have a Makefile.am, eliminate those directories that contain no
9330         gnulib-cache.m4. Fix expression that counts these directories.
9331
9332 2010-09-04  Bruno Haible  <bruno@clisp.org>
9333
9334         update-copyright test: Improve output when perl is missing or too old.
9335         * tests/test-update-copyright.sh: Move test of Perl version down after
9336         the test whether Perl exists. Provide an explanation relating Perl's
9337         error message to Automake's SKIP: message.
9338
9339 2010-09-04  Bruno Haible  <bruno@clisp.org>
9340
9341         Don't augment PATH in TESTS_ENVIRONMENT.
9342         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
9343         set abs_aux_dir instead of augmenting PATH.
9344         * modules/vc-list-files-tests (Makefile.am): Likewise.
9345         * tests/test-update-copyright.sh: Augment PATH here.
9346         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
9347         path_prepend_.
9348         * tests/test-vc-list-files-git.sh: Likewise.
9349
9350 2010-09-04  Jim Meyering  <meyering@redhat.com>
9351
9352         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
9353         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
9354
9355 2010-09-04  Bruno Haible  <bruno@clisp.org>
9356
9357         strdup: Fix compilation error in C++ mode.
9358         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
9359         the macro.
9360
9361 2010-09-04  Bruno Haible  <bruno@clisp.org>
9362
9363         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
9364         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
9365         macro into a function.
9366         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
9367
9368 2010-09-04  Bruno Haible  <bruno@clisp.org>
9369
9370         Set PATH_SEPARATOR the same way autoconf does.
9371         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
9372         the value of PATH_SEPARATOR the same way autoconf-generated configure
9373         scripts do.
9374         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
9375         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9376
9377 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9378
9379         Set PATH_SEPARATOR the same way autoconf does.
9380         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
9381         the same way autoconf-generated configure scripts do.
9382         * posix-modules: Likewise.
9383
9384 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
9385
9386         hash: fix safe_hasher const typo
9387         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
9388         const; otherwise, there is a type error later.
9389
9390 2010-09-02  Jim Meyering  <meyering@redhat.com>
9391
9392         test-update-copyright.sh: require perl 5.8.0
9393         * tests/test-update-copyright.sh: Require 5.8.0,
9394         which Tom G. Christensen has confirmed is adequate,
9395         while 5.6.1 is not.
9396
9397 2010-09-02  Eric Blake  <eblake@redhat.com>
9398
9399         tests: init.sh improvements for re-exec'ing with zsh
9400         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
9401         -vx through shell re-exec.
9402         Reported by Tom G. Christensen.
9403
9404         wctype: fix typo in previous commit
9405         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
9406         Reported by Ludovic Courtès.
9407
9408 2010-09-02  Jim Meyering  <meyering@redhat.com>
9409
9410         test-update-copyright.sh: skip test if Perl is too old
9411         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
9412         Reported by Tom G. Christensen.
9413
9414 2010-09-02  Bruno Haible  <bruno@clisp.org>
9415
9416         wctype: Avoid compilation error on IRIX 6.5.30.
9417         * lib/wctype.in.h (iswblank): Declare with a replacement if
9418         REPLACE_ISWBLANK is set.
9419         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
9420         declared. Set REPLACE_ISWBLANK.
9421         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
9422         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
9423         * doc/posix-headers/wctype.texi: Likewise.
9424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9425
9426 2010-09-01  Bruno Haible  <bruno@clisp.org>
9427
9428         New module 'socketlib'.
9429         * modules/socketlib: New file.
9430         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
9431         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
9432         * modules/sockets (Depends-on): Add socketlib.
9433         Suggested by Sam Steingold <sds@gnu.org>.
9434
9435 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9436
9437         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
9438
9439         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
9440         when one needs search access to a directory but not read access.
9441         On systems where it is available, it works in some cases where
9442         O_RDONLY does not, namely on directories that are searchable but
9443         not readable, and which need only to be searchable.  If O_SEARCH
9444         is not available, fall back to the traditional method of using
9445         O_RDONLY.
9446
9447         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
9448         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
9449         when opening a directory that needs only to be searchable.
9450         * lib/chdir-safer.c (chdir_no_follow): Likewise.
9451         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
9452         * lib/openat-proc.c (openat_proc_name): Likewise.
9453         * lib/openat.c (openat_needs_fchdir): Likewise.
9454         * lib/save-cwd.c (save_cwd): Likewise.
9455         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
9456
9457 2010-08-28  Bruno Haible  <bruno@clisp.org>
9458
9459         New module 'host-cpu-c-abi'.
9460         * modules/host-cpu-c-abi: New file.
9461         * m4/host-cpu-c-abi.m4: New file, based on part of
9462         clisp/src/m4/general.m4.
9463         Requested by Sam Steingold <sds@gnu.org>.
9464
9465 2010-08-31  Eric Blake  <eblake@redhat.com>
9466         and Jim Meyering  <meyering@redhat.com>
9467
9468         hash: factor, and guard against misbehaving hasher function
9469         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
9470         of table->hasher's return value.  Also protect against a hash value
9471         so large that adding it to table->bucket results in a NULL pointer.
9472         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
9473         Use it in place of open-coded check-and-abort.
9474
9475 2010-08-30  Bruno Haible  <bruno@clisp.org>
9476
9477         hash: silence spurious clang warning
9478         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
9479         Reported by Eric Blake.
9480
9481 2010-08-30  Eric Blake  <eblake@redhat.com>
9482
9483         strstr, memmem, strcasestr: avoid leaked shell message
9484         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
9485         FreeBSD.
9486         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9487         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9488
9489         tests: silence clang warning
9490         * tests/test-malloca.c (do_allocation): Avoid dead store.
9491
9492 2010-08-29  Bruno Haible  <bruno@clisp.org>
9493
9494         gettext: Fix recent mistake.
9495         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
9496
9497 2010-08-29  Bruno Haible  <bruno@clisp.org>
9498
9499         selinux-h: Offer a --without-selinux option.
9500         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
9501         --without-selinux was specified, skip all tests and define
9502         HAVE_SELINUX_SELINUX_H to 0.
9503         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
9504         set LIB_SELINUX to empty.
9505         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
9506         gl_LIBSELINUX. If --without-selinux was specified, replace
9507         selinux/context.h.
9508         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
9509
9510 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9511             Bruno Haible  <bruno@clisp.org>
9512
9513         Make the module 'realloc-gnu' work again on AIX and OSF/1.
9514         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
9515         of HAVE_REALLOC.
9516         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
9517         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
9518         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
9519         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9520
9521 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9522             Bruno Haible  <bruno@clisp.org>
9523
9524         Make the module 'calloc-gnu' work again on AIX and OSF/1.
9525         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
9526         HAVE_CALLOC.
9527         * lib/xmalloc.c: Update accordingly.
9528         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
9529         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
9530         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
9531
9532 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9533             Bruno Haible  <bruno@clisp.org>
9534
9535         Make the module 'malloc-gnu' work again on AIX and OSF/1.
9536         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
9537         HAVE_MALLOC.
9538         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
9539         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
9540         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
9541
9542 2010-08-29  Bruno Haible  <bruno@clisp.org>
9543
9544         Update modules list.
9545         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9546         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
9547         (String handling <string.h>): Add astrxfrm.
9548         (File system functions): Add readlinkat.
9549
9550 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9551
9552         Tests for module 'realloc-gnu'.
9553         * modules/realloc-gnu-tests: New file.
9554         * tests/test-realloc-gnu.c: New file.
9555
9556         Tests for module 'calloc-gnu'.
9557         * modules/calloc-gnu-tests: New file.
9558         * tests/test-calloc-gnu.c: New file.
9559
9560         Tests for module 'malloc-gnu'.
9561         * modules/malloc-gnu-tests: New file.
9562         * tests/test-malloc-gnu.c: New file.
9563
9564 2010-08-28  Bruno Haible  <bruno@clisp.org>
9565
9566         Rename module 'realloc' -> 'realloc-gnu'.
9567         * modules/realloc-gnu: New file, copied from modules/realloc.
9568         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
9569         obsolete.
9570         * modules/mgetgroups (Depends-on): Update.
9571         * doc/posix-functions/realloc.texi: Update.
9572         * NEWS: Mention the change.
9573
9574         Rename module 'calloc' -> 'calloc-gnu'.
9575         * modules/calloc-gnu: New file, copied from modules/calloc.
9576         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
9577         obsolete.
9578         * doc/posix-functions/calloc.texi: Update.
9579         * NEWS: Mention the change.
9580
9581         Rename module 'malloc' -> 'malloc-gnu'.
9582         * modules/malloc-gnu: New file, copied from modules/malloc.
9583         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
9584         obsolete.
9585         * modules/argp (Depends-on): Update.
9586         * modules/regex (Depends-on): Update.
9587         * doc/posix-functions/malloc.texi: Update.
9588         * NEWS: Mention the change.
9589
9590 2010-08-28  Eric Blake  <eblake@redhat.com>
9591
9592         pread, pwrite: add missing dependency
9593         * modules/pread (Depends-on): Add extensions.
9594         * modules/pwrite (Depends-on): Likewise.
9595
9596 2010-08-28  Bruno Haible  <bruno@clisp.org>
9597
9598         unistr/u*-strchr: Fix tests dependencies.
9599         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
9600         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
9601         Reported by Ian Beckwith <ianb@erislabs.net>.
9602
9603 2010-08-28  Bruno Haible  <bruno@clisp.org>
9604
9605         read-file: Don't occupy too much unused memory.
9606         * lib/read-file.c (fread_file): Shrink the buffer at the end.
9607
9608 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
9609             Eric Blake  <eblake@redhat.com>
9610             Bruno Haible  <bruno@clisp.org>
9611
9612         read-file: Avoid memory reallocations with regular files.
9613         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
9614         (fread_file): With regular files, use the remaining length as the
9615         initial buffer size.  Check against overflow.
9616         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
9617         sys_stat.
9618
9619 2010-08-28  Bruno Haible  <bruno@clisp.org>
9620
9621         ftello: Relax license.
9622         * modules/ftello (License): Relax to LGPLv2+.
9623         Reported by Eric Blake.
9624
9625 2010-08-28  Bruno Haible  <bruno@clisp.org>
9626
9627         Avoid relocwrapper link errors due to gnulib replacement functions.
9628         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
9629         function.
9630         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9631
9632 2010-08-28  Bruno Haible  <bruno@clisp.org>
9633
9634         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
9635         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
9636         defined.
9637         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
9638         Suggested by Eric Blake.
9639
9640 2010-08-28  Bruno Haible  <bruno@clisp.org>
9641
9642         sys_socket, netdb: Ensure socklen_t gets defined.
9643         * modules/sys_socket (Depends-on): Add socklen.
9644         * modules/netdb (Depends-on): Likewise.
9645         * modules/getaddrinfo (Depends-on): Remove socklen.
9646         * modules/getsockopt (Depends-on): Likewise.
9647         * modules/setsockopt (Depends-on): Likewise.
9648         * tests/test-sys_socket.c: Check that socklen_t is defined.
9649         * tests/test-netdb.c: Likewise.
9650         * m4/socklen.m4: Update comments.
9651         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9652
9653 2010-08-27  Eric Blake  <eblake@redhat.com>
9654
9655         login_tty: add missing dependency
9656         * modules/login_tty (Depends-on): Add pty.
9657
9658 2010-08-26  Eric Blake  <eblake@redhat.com>
9659
9660         lib-symbol-versions: fix m4 quoting
9661         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
9662         format for AC_LINK_IFELSE.
9663
9664         glob: fix compile test
9665         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
9666
9667         btowc: fix missing file
9668         * modules/btowc (Files): Also ship locale-fr.m4.
9669
9670         lseek: fix link test
9671         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
9672         AC_LINK_IFELSE.
9673
9674         include_next: silence autoconf 2.68 warning
9675         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
9676         AC_COMPILE_IFELSE as special.
9677         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
9678         autoconf < 2.68.
9679
9680         acl: fix compilation test
9681         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
9682         AC_COMPILE_IFELSE.
9683
9684 2010-08-26  Bruno Haible  <bruno@clisp.org>
9685
9686         Modernize AC_TRY_RUN invocations.
9687         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
9688         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9689         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
9690         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
9691         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
9692         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
9693         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9694         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9695         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9696         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9697         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9698         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9699         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9700         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9701         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9702         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9703         gl_MBRLEN_NUL_RETVAL): Likewise.
9704         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9705         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9706         Likewise.
9707         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9708         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9709         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9710         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9711         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
9712         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
9713         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
9714         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9715         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
9716         Likewise.
9717         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9718         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
9719         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9720         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9721         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9722         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9723         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9724         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
9725         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9727
9728 2010-08-26  Bruno Haible  <bruno@clisp.org>
9729
9730         Modernize AC_TRY_LINK invocations.
9731         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
9732         AC_TRY_LINK.
9733         * m4/argp.m4 (gl_ARGP): Likewise.
9734         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9735         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9736         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
9737         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9738         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9739         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
9740         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9741         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9742         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9743         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9744         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9745         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
9746         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
9747         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
9748         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9749         * m4/hostent.m4 (gl_HOSTENT): Likewise.
9750         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9751         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
9752         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9753         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
9754         Likewise.
9755         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
9756         Likewise.
9757         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
9758         Likewise.
9759         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9760         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
9761         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
9762         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9763         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9764         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
9765         * m4/servent.m4 (gl_SERVENT): Likewise.
9766         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9767         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9768         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9769         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9770         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9771         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9772         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9773         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9774         * modules/tsearch-tests (configure.ac): Likewise.
9775
9776 2010-08-26  Bruno Haible  <bruno@clisp.org>
9777
9778         Modernize AC_TRY_COMPILE invocations.
9779         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
9780         AC_TRY_COMPILE.
9781         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
9782         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
9783         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9784         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9785         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9786         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9787         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9788         * m4/lock.m4 (gl_LOCK): Likewise.
9789         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9790         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9791         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
9792         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
9793         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9794         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
9795         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9796         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
9797         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9798         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9799         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9800         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9801         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
9802         extraneous semicolon.
9803
9804 2010-08-26  Jim Meyering  <meyering@redhat.com>
9805
9806         stat-time: relax license LGPL
9807         * modules/stat-time (License): Change from GPL to LGPL,
9808         with consent from all contributors, for use in libguile.
9809         Requested by Ludovic Courtès.
9810
9811 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
9812
9813         poll: return immediately on POLLHUP.
9814         * lib/poll.c (poll): Always set timeout before wait_timeout is
9815         computed.
9816
9817 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9818
9819         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
9820         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
9821         rmdir ("dir/.//"), unlinkat.
9822
9823 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9824
9825         stdbool: avoid spurious failure with modern xlc
9826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9827
9828 2010-08-24  Bruno Haible  <bruno@clisp.org>
9829
9830         getloadavg: simplify code
9831         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
9832         gl_have_func. Update comments.
9833
9834 2010-08-24  Eric Blake  <eblake@redhat.com>
9835
9836         getloadavg: don't define SVR4 on cygwin
9837         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
9838         only define SVR4 when -lkvm is required.
9839         Reported by Yaakov Selkowitz.
9840
9841 2010-08-24  Bruno Haible  <bruno@clisp.org>
9842
9843         priv-set: fix comment
9844         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
9845
9846 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9847
9848         priv-set: fix comments
9849         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
9850         to match code, as suggested by David Bartley in:
9851         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
9852
9853 2010-08-23  Eric Blake  <eblake@redhat.com>
9854
9855         stdbool: avoid rejecting clang
9856         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
9857         * tests/test-stdbool.c: Enable more tests if using the system
9858         <stdbool.h> instead of the gnulib replacement.
9859         (main): Move xlc bug test to a runtime test for all compilers.
9860         Reported by Anders Kaseorg.
9861
9862         argz: fix shell quoting issue
9863         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
9864         Reported by Charles Wilson.
9865
9866 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
9867             Erik Faye-Lund <kusmabite@gmail.com>
9868
9869         poll, select: handle ERROR_BROKEN_PIPE.
9870         * lib/poll.c (win32_compute_revents): Return POLLHUP when
9871         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9872         * lib/select.c (win32_compute_revents): Do not mark a pipe
9873         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
9874
9875 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
9876
9877         fts: allow compilation with C++
9878         * lib/fts_.h: Specify extern "C" linkage with C++.
9879
9880 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9881
9882         Fix gnulib-tool sed script de-commentation for AIX sed.
9883         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
9884         sed.
9885
9886 2010-08-17  Eric Blake  <eblake@redhat.com>
9887
9888         test-stddef: test for (some) offsetof bugs
9889         * tests/test-stddef.c: Enhance test to ensure correct type of
9890         offsetof.
9891         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
9892         that we are not fixing at this time.
9893
9894 2010-08-15  Bruno Haible  <bruno@clisp.org>
9895
9896         stpncpy: Allow stpncpy to be defined as a macro.
9897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
9898         if it's already correctly declared.
9899         * lib/string.in.h (stpncpy): Undefine before redefining.
9900         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
9901
9902 2010-08-14  Bruno Haible  <bruno@clisp.org>
9903
9904         Rename module 'memxfrm' to 'amemxfrm'.
9905         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
9906         (amemxfrm): Renamed from memxfrm.
9907         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
9908         (amemxfrm): Renamed from memxfrm.
9909         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
9910         * NEWS: Mention the change.
9911         * MODULES.html.sh (String handling <string.h>): Update.
9912         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
9913         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
9914         * lib/unicase/u16-casexfrm.c: Likewise.
9915         * lib/unicase/u32-casexfrm.c: Likewise.
9916         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
9917         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
9918         * lib/uninorm/u16-normxfrm.c: Likewise.
9919         * lib/uninorm/u32-normxfrm.c: Likewise.
9920         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
9921         memxfrm.
9922         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
9923         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
9924         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
9925         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
9926         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
9927         Suggested by Paul Eggert.
9928
9929 2010-08-14  Bruno Haible  <bruno@clisp.org>
9930
9931         Tests for module 'astrxfrm'.
9932         * modules/astrxfrm-tests: New file.
9933         * tests/test-astrxfrm.c: New file.
9934
9935         New module 'astrxfrm'.
9936         * lib/astrxfrm.h: New file.
9937         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
9938         * modules/astrxfrm: New file.
9939
9940 2010-08-14  Reuben Thomas <rrt@sc3d.org>
9941
9942         regex: Tweak doc.
9943         * doc/regex.texi (Overview): Don't mention regex.c.
9944         (GNU Regular Expression Compiling): Likewise.
9945         (Match-end-of-line Operator): Mention 'not_eol'.
9946
9947 2010-08-14  Brian Gough  <bjg@gnu.org>
9948             Bruno Haible  <bruno@clisp.org>
9949
9950         git-merge-changelog: add doc relating to use with bzr and hg.
9951         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
9952
9953 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
9954
9955         pthread: fix pthread.h creation for srcdir != builddir
9956         * modules/pthread (Makefile.am): Fix the rule to work also in a
9957         non-srcdir build.
9958
9959 2010-08-13  Karl Berry  <karl@gnu.org>
9960
9961         * doc/regex.texi (Predefined Syntaxes): @smallexample.
9962         * doc/posix-*/*: force line break before @url of POSIX
9963         specifications.
9964         Suggested by Werner Lemberg.
9965
9966 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9967
9968         strtod: fix const diagnostic
9969         * lib/strtod.c (strtod): Don't assign const char * to char *,
9970         as this elicits a warning from GCC when warnings are enabled.
9971
9972 2010-08-10  Pádraig Brady <P@draigbrady.com>
9973         and Eric Blake  <eblake@redhat.com>
9974
9975         copy-acl: ignore ENOTSUP on HP-UX
9976         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
9977         so that it is available for HP-UX.
9978         * lib/copy-acl.c (qcopy_acl): Use it.
9979         Reported by Patrick M. Callahan.
9980
9981 2010-08-10  Eric Blake  <eblake@redhat.com>
9982
9983         open, chown: relax license
9984         * modules/open (License): Change to LGPLv2+, with consent by all
9985         authors, for use in augeas.
9986         * modules/chown (License): Likewise.
9987         * modules/lchown (Likewise): Likewise.
9988         Requested by Adam Stokes.
9989
9990 2010-08-09  Karl Berry  <karl@gnu.org>
9991
9992         * build-aux/ar-lib: new file, import from Automake.
9993         * config/srclist.txt: autocheck for updates.
9994
9995 2010-08-09  Eric Blake  <eblake@redhat.com>
9996
9997         readlinkat: adjust client modules
9998         * modules/areadlinkat (Depends-on): Use readlinkat, not
9999         symlinkat.
10000         * modules/areadlinkat-with-size (Depends-on): Likewise.
10001
10002         mknod: be more vocal about danger of running tests as root
10003         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10004         root, since that is just asking for problems.
10005         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10006
10007         readlinkat: split into its own module
10008         * modules/symlinkat: Split readlinkat...
10009         * modules/readlinkat: ...into separate module.
10010         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10011         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10012         * lib/symlinkat.c (readlinkat): Move...
10013         * lib/readlinkat.c: ...into new file.
10014         * modules/symlinkat-tests: Split readlinkat test...
10015         * modules/readlinkat-tests: ...into separate module.
10016         * tests/test-symlinkat.c: Split...
10017         * tests/test-readlinkat.c: ...into new file.
10018         * NEWS: Document the split.
10019         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10020         * lib/unistd.in.h (readlinkat): Likewise.
10021         Suggested by Bruno Haible.
10022
10023 2010-08-08  Bruno Haible  <bruno@clisp.org>
10024
10025         memxfrm: Speed up.
10026         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10027         that usually only one call to strxfrm is necessary for each string
10028         part.
10029         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10030
10031 2010-08-07  Karl Berry  <karl@gnu.org>
10032
10033         * doc/posix-headers/limits.texi,
10034         * doc/posix-functions/malloc.texi,
10035         * doc/posix-functions/strsignal.texi: missing @item.
10036         * doc/ld-version-script.texi: spurious leading i.
10037         * doc/regex.texi (Interval Operators): no commas inside @var.
10038
10039 2010-08-01  Bruno Haible  <bruno@clisp.org>
10040
10041         Integrate the regex documentation.
10042         * doc/gnulib.texi: Define 'cn' index.
10043         (Regular expressions): New a chapter that includes regex.texi and
10044         regexprops-generic.texi.
10045         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10046         syntax.
10047
10048         Whitespace cleanup.
10049         * doc/regex.texi: Remove trailing spaces.
10050
10051         Add regex documentation.
10052         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10053         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10054         Written by Kathy A. Hargreaves and Karl Berry.
10055
10056 2010-08-01  Bruno Haible  <bruno@clisp.org>
10057
10058         link: Update documentation.
10059         * doc/posix-functions/link.texi: Update regarding Solaris.
10060
10061 2010-07-31  Bruno Haible  <bruno@clisp.org>
10062
10063         Update modules list.
10064         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10065         (String handling <string.h>): Add memcmp2, memxfrm.
10066         (Container data structures): Add xlist, xsublist, xoset.
10067         (Core language properties): Add alignof, unused-parameter.
10068         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10069         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10070         (Unibyte characters <ctype.h>): New section.
10071         (String handling <string.h>): New section.
10072         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10073         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10074         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10075         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10076         tan, tanh, tanl, y0, y1, yn.
10077         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10078         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10079         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10080         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10081         unlockpt, vdprintf, vdprintf-posix.
10082         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10083         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10084         xconcat-filename.
10085         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10086         getdtablesize, pipe2, pipe2-safer.
10087         (Security): New section.
10088         (Networking functions): Add accept4.
10089         (Signal handling): Add sigpipe.
10090         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10091         mbmemcasecoll.
10092         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10093         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10094         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10095         pipe-filter-ii.
10096         (Misc): Add argp-version-etc, login_tty, parse-duration.
10097
10098 2010-07-31  Bruno Haible  <bruno@clisp.org>
10099
10100         Improve doc in MODULES.html.
10101         * modules/linkat (Description): Add the word "function".
10102         * modules/mkfifo (Description): Likewise.
10103         * modules/mknod (Description): Likewise.
10104         * modules/remove (Description): Likewise.
10105         * modules/renameat (Description): Likewise.
10106         * modules/stat (Description): Likewise.
10107         * modules/symlink (Description): Likewise.
10108         * modules/unlink (Description): Likewise.
10109
10110 2010-07-31  Bruno Haible  <bruno@clisp.org>
10111
10112         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10113         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10114         option --enable/disable-c++ instead of --enable/disable-cxx.
10115         * NEWS: Mention the change.
10116
10117 2010-07-31  Bruno Haible  <bruno@clisp.org>
10118
10119         readlink, areadlink: Relax test a bit.
10120         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10121         alternative to ENOTDIR.
10122         * tests/test-areadlink.h (test_areadlink): Likewise.
10123         Reported by Rainer Tammer.
10124
10125 2010-07-31  Bruno Haible  <bruno@clisp.org>
10126
10127         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10128         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10129         character, perform the search using U_STRCHR.
10130         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10131         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10132         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10133         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10134         Suggested by Paolo Bonzini.
10135
10136 2010-07-31  Bruno Haible  <bruno@clisp.org>
10137
10138         unistr/u*-strstr: Fix dependencies.
10139         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10140         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10141         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10142
10143 2010-07-31  Bruno Haible  <bruno@clisp.org>
10144
10145         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10146         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10147         the beginning of the loop.
10148         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10149         cases in 'switch' statement.
10150
10151         unistr/u8-strchr: Fix several bugs.
10152         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10153         the string. When not found, return NULL, not a pointer near the end.
10154
10155         More tests for unistr/u8-strchr.
10156         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10157         that the function does not read past the first occurrence of the byte
10158         being searched.
10159         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10160         * tests/unistr/test-u16-strchr.c (main): New function.
10161         * tests/unistr/test-u32-strchr.c (main): New function.
10162
10163 2010-07-31  Bruno Haible  <bruno@clisp.org>
10164
10165         posix-modules: Ignore backup files of documentation files.
10166         * posix-modules: grep only through files named *.texi.
10167
10168 2010-07-31  Bruno Haible  <bruno@clisp.org>
10169
10170         symlinkat: Fix documentation.
10171         * doc/posix-functions/readlinkat.texi: Fix module name.
10172
10173 2010-07-31  Bruno Haible  <bruno@clisp.org>
10174
10175         fchownat: Replace also when chown has the trailing slash bug.
10176         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10177         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10178         introduced on 2010-04-10.
10179         Reported by Rainer Tammer.
10180
10181 2010-07-31  Bruno Haible  <bruno@clisp.org>
10182
10183         linkat: Work around AIX 7.1 bug.
10184         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10185         whether linkat handles trailing slash correctly. If not, replace linkat
10186         and define LINKAT_TRAILING_SLASH_BUG.
10187         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10188         check whether (fd1,file1) points to a directory if file1 or file2 ends
10189         in a slash. Code taken from lib/link.c.
10190         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10191         Reported by Rainer Tammer.
10192
10193 2010-07-31  Bruno Haible  <bruno@clisp.org>
10194
10195         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10196         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10197         This disables an xlc optimization that was causing wrong test results.
10198         Reported by Rainer Tammer.
10199
10200 2010-07-31  Bruno Haible  <bruno@clisp.org>
10201
10202         iconv: Work around AIX 6.1..7.1 bug.
10203         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10204         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10205         cross-compiling, guess no on all versions of AIX.
10206         Reported by Rainer Tammer.
10207
10208 2010-07-31  Bruno Haible  <bruno@clisp.org>
10209
10210         readlink: Relax test a bit.
10211         * tests/test-readlink.h (test_readlink): Allow different errno value
10212         when readlink is called with a file name that ends in / and refers to
10213         a file.
10214         Suggested by Eric Blake.
10215         Reported by Rainer Tammer.
10216
10217 2010-07-31  Bruno Haible  <bruno@clisp.org>
10218
10219         copysign: Does not require -lm on glibc systems.
10220         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
10221         gl_COMMON_DOUBLE_MATHFUNC.
10222         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
10223
10224 2010-07-31  Bruno Haible  <bruno@clisp.org>
10225
10226         duplocale: Work around AIX 7.1 bug.
10227         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
10228         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
10229         * lib/duplocale.c (rpl_duplocale): Update comment.
10230         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
10231         Reported by Rainer Tammer.
10232
10233 2010-07-30  Bruno Haible  <bruno@clisp.org>
10234
10235         dirfd: Avoid link error on AIX 7.1.
10236         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
10237         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
10238         exist, set REPLACE_DIRFD.
10239         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
10240         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
10241         * doc/posix-functions/dirfd.texi: Update.
10242         Reported by Rainer Tammer.
10243
10244 2010-07-30  Eric Blake  <eblake@redhat.com>
10245
10246         strtod: next round of AIX fixes
10247         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
10248         exponent.
10249         * tests/test-strtod.c (main): Enhance tests.
10250         * doc/posix-functions/strtod.texi (strtod): Document next bug.
10251         Reported by Rainer Tammer.
10252
10253         futimens: fix configure check
10254         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
10255         Reported by Bruno Haible.
10256
10257 2010-07-30  Bruno Haible  <bruno@clisp.org>
10258
10259         getline: Update regarding AIX.
10260         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
10261         Reported by Rainer Tammer.
10262
10263 2010-07-30  Bruno Haible  <bruno@clisp.org>
10264
10265         wcwidth: Drop replacement on AIX 7.
10266         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
10267         AIX 7.
10268         Reported by Rainer Tammer.
10269
10270 2010-07-30  Bruno Haible  <bruno@clisp.org>
10271
10272         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
10273         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
10274         a 'char *'.
10275         Reported by Rainer Tammer.
10276
10277 2010-07-30  Bruno Haible  <bruno@clisp.org>
10278
10279         unlink: Update regarding AIX.
10280         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
10281         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
10282         Reported by Rainer Tammer.
10283
10284 2010-07-30  Bruno Haible  <bruno@clisp.org>
10285
10286         symlink: Update regarding AIX.
10287         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
10288         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
10289         Reported by Rainer Tammer.
10290
10291 2010-07-30  Bruno Haible  <bruno@clisp.org>
10292
10293         strndup: Update regarding AIX.
10294         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
10295         AIX 7.
10296         Reported by Rainer Tammer.
10297
10298 2010-07-30  Bruno Haible  <bruno@clisp.org>
10299
10300         stat: Update regarding AIX.
10301         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
10302         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
10303         Reported by Rainer Tammer.
10304
10305 2010-07-30  Bruno Haible  <bruno@clisp.org>
10306
10307         truncl: Fix autoconf test.
10308         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
10309         whether truncl works.
10310         Reported by Rainer Tammer.
10311
10312 2010-07-30  Bruno Haible  <bruno@clisp.org>
10313
10314         round: Update regarding AIX.
10315         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
10316         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
10317         Reported by Rainer Tammer.
10318
10319 2010-07-30  Bruno Haible  <bruno@clisp.org>
10320
10321         rename: Update regarding AIX.
10322         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
10323         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
10324         Reported by Rainer Tammer.
10325
10326 2010-07-30  Bruno Haible  <bruno@clisp.org>
10327
10328         printf.m4: Update regarding AIX.
10329         * m4/printf.m4: Update comments regarding AIX.
10330         Reported by Rainer Tammer.
10331
10332 2010-07-30  Bruno Haible  <bruno@clisp.org>
10333
10334         iconv: Update regarding AIX.
10335         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
10336         AIX 7.
10337         Reported by Rainer Tammer.
10338
10339 2010-07-30  Bruno Haible  <bruno@clisp.org>
10340
10341         getopt: Update regarding AIX.
10342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
10343         no on AIX.
10344         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
10345         Reported by Rainer Tammer.
10346
10347 2010-07-30  Bruno Haible  <bruno@clisp.org>
10348
10349         ldexpl; Update regarding AIX.
10350         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
10351         on AIX 7.
10352         Reported by Rainer Tammer.
10353
10354 2010-07-30  Bruno Haible  <bruno@clisp.org>
10355
10356         frexpl: Update regarding AIX.
10357         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
10358         on AIX 7.
10359         Reported by Rainer Tammer.
10360
10361 2010-07-30  Bruno Haible  <bruno@clisp.org>
10362
10363         open, fopen: Update regarding AIX.
10364         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
10365         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10366         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
10367         * doc/posix-functions/fopen.texi: Likewise.
10368         Reported by Rainer Tammer.
10369
10370 2010-07-30  Bruno Haible  <bruno@clisp.org>
10371
10372         chown: Update doc regarding AIX.
10373         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
10374         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
10375         Reported by Rainer Tammer.
10376
10377 2010-07-30  Eric Blake  <eblake@redhat.com>
10378
10379         strtod: fix bug in replacement function on AIX
10380         * lib/strtod.c (strtod): Special case broken "0x" parse in
10381         underlying strtod.
10382         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
10383         * doc/posix-functions/strtod.texi (strtod): Likewise.
10384         Reported by Rainer Tammer.
10385
10386 2010-07-30  Bruno Haible  <bruno@clisp.org>
10387
10388         mbrlen: Fix cross-compilation guess for AIX.
10389         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
10390         guess. Leftover from 2008-12-22.
10391
10392 2010-07-30  Bruno Haible  <bruno@clisp.org>
10393
10394         mbrtowc: Fix cross-compilation guess for AIX.
10395         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
10396         guess. Leftover from 2008-12-21.
10397
10398 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
10399
10400         init.sh: work around trap limitation of some shells
10401         * tests/init.sh (setup_): Move exit trap outside of shell function.
10402
10403 2010-07-29  Eric Blake  <eblake@redhat.com>
10404
10405         strtod: aid debugging
10406         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
10407         understanding why strtod is rejected.
10408
10409 2010-07-28  Bruno Haible  <bruno@clisp.org>
10410
10411         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
10412         * lib/unistr/u8-chr.c: Include <string.h>.
10413         * tests/unistr/test-u8-chr.c: Likewise.
10414         * tests/unistr/test-u16-chr.c: Likewise.
10415         * tests/unistr/test-u32-chr.c: Likewise.
10416         * tests/unistr/test-u8-strchr.c: Likewise.
10417         * tests/unistr/test-u16-strchr.c: Likewise.
10418         * tests/unistr/test-u32-strchr.c: Likewise.
10419         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
10420         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
10421         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
10422         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
10423
10424 2010-07-28  Bruno Haible  <bruno@clisp.org>
10425
10426         Use spaces for indentation, not tabs.
10427         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10428
10429 2010-07-27  Bruno Haible  <bruno@clisp.org>
10430
10431         mbspcasecmp: Fix function specification.
10432         * lib/string.in.h (mbspcasecmp): Fix specification comment.
10433         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
10434         Reported by Eric Blake <eblake@redhat.com>.
10435
10436 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
10437
10438         timespec: use cast and not conditional, as truncation isn't possible
10439         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
10440         instead of a conditional.  Comment about the situation in more detail.
10441         This undoes most of the 2009-10-29 patch.
10442
10443 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
10444
10445         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
10446         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
10447         * lib/unistr/u8-strchr.c: Likewise.
10448         * modules/unistr/u8-chr: Depend on memchr.
10449
10450         unistr/u*-strchr: add tests
10451         * modules/unistr/u8-strchr-tests: New file.
10452         * modules/unistr/u16-strchr-tests: New file.
10453         * modules/unistr/u32-strchr-tests: New file.
10454         * tests/unistr/test-strchr.h: New file.
10455         * tests/unistr/test-u8-strchr.c: New file.
10456         * tests/unistr/test-u16-strchr.c: New file.
10457         * tests/unistr/test-u32-strchr.c: New file.
10458
10459         unistr/u*-chr: test multibyte sequences more
10460         * tests/unistr/test-chr.h: Do complete testing of the characters in the
10461         test vector.
10462         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
10463         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
10464         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
10465
10466         unistr/u*-chr: test multibyte sequences
10467         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
10468
10469         unistr/u*-chr: prepare for multibyte tests
10470         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
10471         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
10472         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
10473         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
10474         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
10475         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
10476
10477 2010-07-18  Bruno Haible  <bruno@clisp.org>
10478
10479         unistr/u8-strchr: Optimize non-ASCII argument case.
10480         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
10481         because the first byte often matches anyway.
10482         Reported by Pádraig Brady <P@draigbrady.com>.
10483
10484 2010-07-15  Karl Berry  <karl@gnu.org>
10485
10486         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
10487
10488 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
10489
10490         getcwd: on Solaris, work better if ancestors are inaccessible
10491         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
10492         buffer and size, try again with a large buffer.  This works better
10493         on Solaris, since its getcwd succeeds even if the path to the root
10494         is inaccessible, and this is helpful in common cases such as .zfs
10495         hidden directories.  Problem reported by J Chapman Flack in
10496         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
10497         Use system getcwd if it's declared, not merely if it's partly
10498         working; use the partly-working test only to avoid needless effort
10499         if the system getcwd fails.
10500         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
10501         comment that was already obsolete and is now even more obsolete.
10502         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
10503         now might call strdup.
10504
10505 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
10506
10507         pthread: Add enough so that coreutils/src/sort.c compiles.
10508         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
10509         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
10510         gnulib. Include <sched.h> and <time.h>, as per POSIX.
10511         Include <sys/types.h>, in case it defines pthread_t.
10512         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
10513         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
10514         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
10515         (pthread_rwlockattr_t, pthread_spinlock_t):
10516         New typedefs, if HAVE_PTHREAD_T is not defined.
10517         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
10518         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
10519         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
10520         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
10521         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
10522         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
10523         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
10524         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
10525         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
10526         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
10527         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
10528         New macros.
10529         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
10530         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
10531         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
10532         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
10533         (pthread_spin_unlock): New dummy functions.
10534         (pthread_create): Return EAGAIN; don't set errno.
10535         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
10536         require AC_C_INLINE.
10537         * modules/pthread (Depends-on): Add sched, time.
10538         (pthread.h): Use AM_V_GEN.
10539
10540 2010-07-13  Bruno Haible  <bruno@clisp.org>
10541
10542         striconveh: Don't malloc memory if the result buffer is sufficient.
10543         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
10544         buffer if its size is sufficient.
10545         Reported by Ludovic Courtès <ludo@gnu.org>.
10546
10547 2010-07-13  Bruno Haible  <bruno@clisp.org>
10548
10549         strtod: Add safety check.
10550         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
10551
10552 2010-07-12  Bruno Haible  <bruno@clisp.org>
10553
10554         Unify tests that set gl_cv_func_ldexpl_no_libm.
10555         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
10556         gl_FUNC_LDEXPL.
10557         (gl_FUNC_LDEXPL): Invoke it.
10558         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10559
10560 2010-07-12  Bruno Haible  <bruno@clisp.org>
10561
10562         Unify tests that set gl_cv_func_ldexp_no_libm.
10563         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
10564         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
10565         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
10566         (configure.ac): Simply invoke gl_FUNC_LDEXP.
10567         * modules/strtod (Files): Add m4/ldexp.m4.
10568
10569 2010-07-12  Bruno Haible  <bruno@clisp.org>
10570
10571         Unify tests that set gl_cv_func_frexpl_no_libm.
10572         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
10573         gl_FUNC_FREXPL_NO_LIBM.
10574         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
10575         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10576
10577 2010-07-12  Bruno Haible  <bruno@clisp.org>
10578
10579         Unify tests that set gl_cv_func_frexp_no_libm.
10580         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
10581         gl_FUNC_FREXP_NO_LIBM.
10582         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
10583         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10584
10585 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10586
10587         memcoll: clarify sizes versus lengths, document better, and tweak perf
10588         * lib/memcoll.c (strcoll_loop, memcoll0):
10589         Improve quality of descriptive comments.  Name variables
10590         consistently as to whether they are lengths (which do not include
10591         terminating null) versus sizes (which do).
10592         * lib/xmemcoll.c (xmemcoll0): Likewise.
10593         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
10594         returned when s1size == 0; this is easier to compile and saves
10595         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
10596
10597 2010-07-12  Bruno Haible  <bruno@clisp.org>
10598
10599         Tests for module '_Exit'.
10600         * modules/_Exit-tests: New file.
10601         * tests/test-_Exit.sh: New file.
10602         * tests/test-_Exit.c: New file.
10603
10604         New module '_Exit'.
10605         * lib/stdlib.in.h (__attribute__): New macro.
10606         (_Exit): New declaration.
10607         * lib/_Exit.c: New file.
10608         * m4/_Exit.m4: New file.
10609         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
10610         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
10611         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
10612         * modules/_Exit: New file.
10613         * tests/test-stdlib-c++.cc (_Exit): Check signature.
10614         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
10615
10616 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
10617
10618         strtod: make it more-accurate typically, and don't require libm
10619         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
10620         Include limits.h.  Don't include string.h.
10621         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
10622         (locale_isspace): New function, so that no casts are needed to
10623         check whether *s is a space.
10624         (ldexp): Provide an unused dummy if not available.
10625         (scale_radix_exp, parse_number, underlying_strtod): New functions.
10626         (strtod): Use them.  This implementation prefers to use the
10627         underlying strtod if available, falling back on our own code
10628         only to fix known bugs.  This is more likely to produce an
10629         accurate result.  Also, it avoids the use of libm functions.
10630         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
10631         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
10632         was absent, but it caused a test failure with coreutils.
10633         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
10634         with libm.
10635         * modules/strtod (Makefile.am, Link): libm is no longer needed.
10636         * modules/strtod-tests (Makefile.am): Likewise.
10637
10638 2010-07-11  Pádraig Brady  <P@draigBrady.com>
10639             Bruno Haible  <bruno@clisp.org>
10640
10641         unistr/u8-strchr: Optimize ASCII argument case.
10642         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
10643
10644 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10645
10646         (x)memcoll: minor tweaks
10647         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
10648         is after the type that it qualifies.
10649         (memcoll0): Likewise.
10650         * lib/memcoll.h (memcoll0): Likewise.
10651         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
10652         * lib/xmemcoll.h (xmemcoll0): Likewise.
10653         * lib/memcoll.c (memcoll0): Correct the comment.  This function
10654         differs from memcoll in that the NUL byte is part of the argument.
10655         Omit the abort-checks, as performance is a real issue here.  Plus,
10656         the checks were wrong anyway (an off-by-one error).  Omit local
10657         variable 'diff', as it's a bit clearer that way.
10658         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
10659         no longer needed.
10660
10661 2010-07-08  Chen Guo <chenguo4@yahoo.com>
10662
10663         (x)memcoll: speedup when input is known to be NUL delimited
10664         * lib/memcoll.c: Include stdlib.
10665         (memcoll0) New function.
10666         (strcoll_loop) New function, refactored for use in both memcoll
10667         and memcoll0.
10668         * lib/memcoll.h: Add prototype for memcoll0.
10669         * lib/xmemcoll.c: (xmemcoll0) New function.
10670         (collate_error) New function, refactored for use in both xmemcoll
10671         and xmemcoll0.
10672         * lib/xmemcoll.h: Add prototype for xmemcoll0.
10673         * m4/memcoll.m4: add inline invocation.
10674
10675 2010-07-06  Pádraig Brady  <P@draigBrady.com>
10676
10677         * build-aux/bootstrap: Remove any local translations
10678         from the translation project synchronization directory,
10679         so that local only translations are not distributed.
10680
10681 2010-07-04  Bruno Haible  <bruno@clisp.org>
10682
10683         fsusage: Clarify which code applies to which platforms.
10684         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
10685         platform.
10686         * lib/fsusage.c (get_fs_usage): Likewise.
10687
10688 2010-07-04  Bruno Haible  <bruno@clisp.org>
10689
10690         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
10691         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
10692         Reported by Martin Lambers <marlam@marlam.de>.
10693
10694 2010-07-04  Jim Meyering  <meyering@redhat.com>
10695
10696         hash: once again explicitly disallow insertion of NULL
10697         * lib/hash.c (hash_insert0): Reinstate just-removed test:
10698         inserting a NULL pointer cannot work with these functions.
10699         Add a comment with details.
10700         This reverts part of the 2010-07-01 commit, 5bef1a35
10701         "hash: extend module to deal with non-pointer keys".
10702
10703 2010-07-01  Bruno Haible  <bruno@clisp.org>
10704
10705         stdbool: Update doc.
10706         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
10707         Info from Christian Weisgerber <naddy@mips.inka.de>.
10708
10709 2010-07-01  Jim Meyering  <meyering@redhat.com>
10710
10711         hash: extend module to deal with non-pointer keys
10712         * lib/hash.c (hash_insert0): New interface, much like hash_insert
10713         but that allows insertion of non-pointer entries.
10714         Do not disallow an ENTRY value of NULL.
10715         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
10716         * lib/hash.h (hash_insert0): Declare.
10717
10718 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10719
10720         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
10721         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
10722         not present (i.e. with autoconf 2.59 and when using gettextize, not
10723         gnulib), require AC_GNU_SOURCE instead.
10724
10725 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
10726
10727         idpriv-drop: Fix tests.
10728         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
10729         not to the test-idpriv-droptemp program.
10730
10731 2010-06-29  Bruno Haible  <bruno@clisp.org>
10732
10733         string: Fix syntax error with g++ 2.96.
10734         * lib/string.in.h (__pure__): Remove definition.
10735         (_GL_ATTRIBUTE_PURE): New macro.
10736         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
10737         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
10738         Reported by Christian Weisgerber <naddy@mips.inka.de>.
10739
10740 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
10741
10742         unitypes: Fix bug introduced on 2010-05-18.
10743         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
10744
10745 2010-06-22  Eric Blake  <eblake@redhat.com>
10746
10747         memmem: slight optimization
10748         * lib/str-two-way.h (critical_factorization): Update comments.
10749         Reduce work during factorization phase.
10750         Reported by Carlos Bueno <carlos@bueno.org>.
10751
10752 2010-06-21  Bruno Haible  <bruno@clisp.org>
10753
10754         Fix HAVE_CALLOC_POSIX misnomer.
10755         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
10756         !HAVE_CALLOC_POSIX.
10757         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
10758         HAVE_CALLOC_POSIX.
10759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
10760         instead of HAVE_CALLOC_POSIX.
10761         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
10762         HAVE_CALLOC_POSIX.
10763
10764         Use modern idiom for calloc() replacement.
10765         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
10766         AC_FUNC_CALLOC.
10767         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
10768         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
10769         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10770         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
10771         (gl_REPLACE_CALLOC): New macro.
10772
10773 2010-06-21  Bruno Haible  <bruno@clisp.org>
10774
10775         Fix HAVE_REALLOC_POSIX misnomer.
10776         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
10777         !HAVE_REALLOC_POSIX.
10778         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
10779         HAVE_REALLOC_POSIX.
10780         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
10781         instead of HAVE_REALLOC_POSIX.
10782         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
10783         HAVE_REALLOC_POSIX.
10784
10785         Use modern idiom for realloc() replacement.
10786         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
10787         AC_FUNC_REALLOC.
10788         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
10789         Autoconf's AC_FUNC_REALLOC.
10790         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10791         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
10792         (gl_REPLACE_REALLOC): New macro.
10793         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10794
10795 2010-06-21  Bruno Haible  <bruno@clisp.org>
10796
10797         Fix HAVE_MALLOC_POSIX misnomer.
10798         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
10799         !HAVE_MALLOC_POSIX.
10800         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
10801         HAVE_MALLOC_POSIX.
10802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
10803         instead of HAVE_MALLOC_POSIX.
10804         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
10805         HAVE_MALLOC_POSIX.
10806
10807         Use modern idiom for malloc() replacement.
10808         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
10809         AC_FUNC_MALLOC.
10810         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
10811         Autoconf's AC_FUNC_MALLOC.
10812         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
10813         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
10814         (gl_REPLACE_MALLOC): New macro.
10815         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
10816
10817 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
10818
10819         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
10820         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
10821         This macro takes 3 arguments, not 4.
10822
10823 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
10824
10825         ipv6: fix detection under mingw
10826         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
10827         in6_addr.
10828
10829 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
10830
10831         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
10832         that strtod() works when cross-compiling to a glibc version known
10833         to work.
10834
10835 2010-06-15  Bruno Haible  <bruno@clisp.org>
10836
10837         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
10838
10839 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
10840
10841         select: Correct timeout.
10842         * lib/select.c (rpl_select): Compute wait_timeout correctly.
10843
10844 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
10845
10846         git-version-gen: init shell var to avoid env var influence
10847         * build-aux/git-version-gen (v): Init shell var to empty.
10848
10849 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
10850
10851         priv-set: Don't assume that priv.h exists merely because getppriv does.
10852         See Jan Andersen's bug report about AIX 5L in
10853         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
10854         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
10855         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
10856         * lib/priv-set.h: Likewise.
10857         * tests/test-priv-set.c: Likewise.
10858
10859 2010-06-13  Bruno Haible  <bruno@clisp.org>
10860
10861         relocatable: Make it easier to test whether to install wrappers.
10862         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
10863         RELOCATABLE_VIA_WRAPPER.
10864
10865 2010-06-13  Bruno Haible  <bruno@clisp.org>
10866
10867         gnulib-tool: Display specified modules and dependencies differently.
10868         * gnulib-tool (func_show_module_list): New function.
10869         (func_import, func_create_testdir): Invoke it.
10870         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
10871
10872 2010-06-13  Bruno Haible  <bruno@clisp.org>
10873
10874         gnulib-tool: Align code of func_import and func_create_testdir.
10875         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
10876         specified_modules.
10877
10878 2010-06-12  Jim Meyering  <meyering@redhat.com>
10879
10880         test-inttostr: avoid spurious failure on Solaris 9
10881         * tests/test-inttostr.c (main): Skip the test when snprintf fails
10882         to accept "%ju".  Reported by Bruno Haible.
10883
10884 2010-06-11  Jim Meyering  <meyering@redhat.com>
10885
10886         test-sys_socket: mark variables as used more readably
10887         * tests/test-sys_socket.c (main): Mark otherwise unused variables
10888         as "used" explicitly via (void) statement casts.  This is more
10889         readable than using them in an artificial return expression.
10890         Suggestion from Bruno Haible.
10891
10892 2010-06-11  Bruno Haible  <bruno@clisp.org>
10893
10894         Avoid some more warnings from "gcc -Wwrite-strings".
10895         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
10896         to 'const char *'.
10897         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
10898         * tests/test-c-strcasestr.c (main): Likewise.
10899         * tests/test-mbscasestr1.c (main): Likewise.
10900         * tests/test-mbscasestr2.c (main): Likewise.
10901         * tests/test-memmem.c (main): Likewise.
10902         * tests/test-strstr.c (main): Likewise.
10903         * tests/test-strcasestr.c (main): Likewise.
10904
10905 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10906
10907         init.sh: change framework_failure_ to fail with status 99, not 1
10908         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
10909         automake's parallel-tests rule that this is an unexpected failure,
10910         even if the test is listed in XFAIL_TESTS.
10911
10912 2010-06-11  Jim Meyering  <meyering@redhat.com>
10913
10914         test-inttostr: avoid warnings about 4-6KB literal strings
10915         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
10916         Include "macros.h", for its definition of ASSERT.
10917         (CK): s/assert/ASSERT/
10918         * modules/inttostr-tests (Files): Add macros.h.
10919
10920         init.sh: don't use $ME_ or skip_ before they are defined
10921         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
10922         their first uses.  Also hoist their companions: warn_, fail_,
10923         framework_failure_, $stderr_fileno.  Prompted by a patch from
10924         Stefano Lattarini.
10925
10926         test-sys_socket: avoid set-but-not-used warnings from gcc
10927         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
10928         avoid warning about set-but-not-used variables.
10929
10930         test-xvasprintf: avoid 'const' discard warnings
10931         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
10932         "const" when assigning from literal strings.
10933         (test_xasprintf): Add "void" in function argument list to placate
10934         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
10935
10936         tests: avoid compilation warnings in argmatch and exclude tests...
10937         in packages that define ARGMATCH_DIE_DECL, like coreutils.
10938         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
10939         Since it always exits, declare with the "noreturn" attribute.
10940         * tests/test-argmatch.c: Likewise.
10941
10942         tests: avoid 'const' discard warnings in mbsstr tests
10943         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
10944         * tests/test-mbsstr2.c (main): Likewise.
10945
10946         test-verify: avoid warning from gcc's -Wmissing-declarations
10947         * tests/test-verify.c (function): Declare to be static.
10948
10949         test-inttostr.c: include <string.h> for use of strcmp
10950         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
10951
10952         test-linkat: avoid failed assertion on "other" architectures
10953         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
10954         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
10955         sparc: https://bugs.launchpad.net/bugs/591968
10956
10957 2010-06-11  Jim Meyering  <meyering@redhat.com>
10958
10959         printf.m4: avoid autoconf's "Expanded Before Required" warning
10960         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
10961         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
10962         autoconf warning.
10963
10964 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
10965
10966         Replacement header templates are now named with ".in", not "_".
10967         * doc/gnulib-intro.texi: Correct.
10968
10969 2010-06-10  Jim Meyering  <meyering@redhat.com>
10970
10971         inttostr-tests: depend on snprintf, not snprintf-posix
10972         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
10973         snprintf-posix, to avoid this aclocal failure:
10974           missing file gnulib-tests/vasnprintf.c
10975           configure.ac:45: error: expected source file, required through \
10976           AC_LIBSOURCES, not found
10977
10978 2010-06-10  Jim Meyering  <meyering@redhat.com>
10979
10980         inttostr: add a new function, inttostr, and tests
10981         The namesake function was not available.  The existence of the
10982         template file, inttostr.c makes its addition nontrivial.
10983         * lib/anytostr.c: Rename from inttostr.c.
10984         (anytostr): Rename from inttostr.
10985         * lib/inttostr.c: New file.
10986         * modules/inttostr (Files): Add anytostr.c.
10987         (Makefile.am): Set lib_SOURCES instead of ...
10988         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
10989         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
10990         * lib/offtostr.c: Likewise.
10991         * lib/uinttostr.c: Likewise.
10992         * lib/umaxtostr.c: Likewise.
10993         * modules/inttostr-tests: New file.
10994         * tests/test-inttostr.c: New file.  Test these functions.
10995
10996 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
10997             Bruno Haible  <bruno@clisp.org>
10998
10999         Add "Extending Gnulib" chapter to manual.
11000         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11001         chapter.
11002         (Extending Gnulib): New chapter.
11003         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11004         chapter.
11005
11006 2010-06-09  Bruno Haible  <bruno@clisp.org>
11007
11008         Avoid relocwrapper link errors due to gnulib replacement functions.
11009         * lib/areadlink.c: Use the system's malloc, realloc functions.
11010         (areadlink): Set errno to ENOMEM explicitly.
11011         * modules/areadlink (Depends-on): Remove malloc-posix.
11012         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11013
11014 2010-06-09  Bruno Haible  <bruno@clisp.org>
11015
11016         Avoid relocwrapper link errors due to gnulib replacement functions.
11017         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11018         * lib/malloca.c: Likewise.
11019         * lib/relocatable.c: Likewise.
11020         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11021         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11022         * lib/setenv.c: Use the system's malloc, realloc functions.
11023         * lib/strerror.c: Use the system's sprintf function.
11024         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11025
11026 2010-06-04  Bruno Haible  <bruno@clisp.org>
11027
11028         Prefer documented low-level autoconf macro names.
11029         * m4/lib-link.m4: Use m4_translit instead of translit.
11030         * m4/environ.m4: Likewise.
11031         * m4/mathfunc.m4: Likewise.
11032         * m4/onceonly.m4: Likewise.
11033         * m4/stdint.m4: Likewise.
11034         Suggested by Eric Blake.
11035
11036 2010-06-04  Martin Lambers  <marlam@marlam.de>
11037             Bruno Haible  <bruno@clisp.org>
11038
11039         havelib: Allow library names with '+' characters.
11040         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11041         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11042
11043 2010-06-09  Bruno Haible  <bruno@clisp.org>
11044
11045         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11046         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11047         realloc failed.
11048
11049 2010-06-08  Peter Simons  <simons@cryp.to>
11050
11051         maint.mk: make the news-check rule more configurable
11052         * top/maint.mk (news-check-lines-spec) New variable.
11053         (news-check): Use "sed -n 1,10p" in place of "head".
11054
11055 2010-06-07  Jim Meyering  <meyering@redhat.com>
11056
11057         do-release-commit-and-tag: fix typo in --help
11058         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11059
11060         regex: avoid new dead-code warning with gcc-4.6.0
11061         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11062         if-block containing a while-loop.  It's been unused for at least
11063         5 years.
11064
11065 2010-06-05  Bruno Haible  <bruno@clisp.org>
11066
11067         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11068         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11069
11070 2010-06-04  Bruno Haible  <bruno@clisp.org>
11071
11072         Update to GNU gettext 0.18.1.
11073         * modules/gettext (configure.ac): Require gettext infrastructure from
11074         version 0.18.1.
11075
11076 2010-06-03  Bruno Haible  <bruno@clisp.org>
11077
11078         Don't use AC_LIBOBJ with file names in subdirectories.
11079         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11080         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11081         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11082         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11083         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11084         gl_LIBUNISTRING_LIBSOURCE.
11085         (Makefile.am): Augment lib_SOURCES here, conditionally.
11086         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11087
11088 2010-06-03  Bruno Haible  <bruno@clisp.org>
11089
11090         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11091         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11092         expansion does not end with a newline.
11093         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11094         unnecessary newline.
11095
11096 2010-06-03  Bruno Haible  <bruno@clisp.org>
11097
11098         Reduce dependencies.
11099         * tests/test-quotearg.h: New file, extracted from
11100         tests/test-quotearg.c.
11101         * tests/test-quotearg-simple.c: New file, extracted from
11102         tests/test-quotearg.c.
11103         * tests/test-quotearg.c: Don't include <ctype.h>.
11104         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11105         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11106         use_quote_double_quotes, use_quotearg_colon): Moved to
11107         tests/test-quotearg.h.
11108         (results_g, flag_results, custom_quotes, custom_results): Moved
11109         to tests/test-quotearg-simple.c.
11110         (main): Moved the part that does not depend on gettext to
11111         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11112         performed.
11113         * modules/quotearg-simple: New file.
11114         * modules/quotearg-simple-tests: New file.
11115         * modules/quotearg (Depends-on): Add quotearg-simple.
11116         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11117         (Files): Add tests/test-quotearg.h.
11118         Reported by Paolo Bonzini.
11119
11120 2010-06-03  Bruno Haible  <bruno@clisp.org>
11121
11122         Reduce dependencies.
11123         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11124
11125 2010-06-03  Bruno Haible  <bruno@clisp.org>
11126
11127         time: Undefine more broken macros.
11128         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11129         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11130         Reported by Eric Blake.
11131
11132 2010-06-03  Bruno Haible  <bruno@clisp.org>
11133
11134         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11135         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11136         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11137         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11138         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11139         Reported by Ludovic Courtès <ludo@gnu.org>.
11140
11141 2010-06-02  Eric Blake  <eblake@redhat.com>
11142
11143         time: work with mingw + pthreads-win32 library
11144         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11145         if timespec is defined only in pthread.h.
11146         * modules/time (Makefile.am): Substitute it.
11147         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11148         <pthread.h>, when needed.
11149         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11150         from the library.
11151
11152 2010-05-31  Bruno Haible  <bruno@clisp.org>
11153
11154         Avoid expanding two macros in the wrong order.
11155         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11156         gl_LIBUNISTRING if it is defined.
11157         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11158         autoconf >= 2.64.
11159         Reported by Ludovic Courtès <ludo@gnu.org>.
11160
11161 2010-05-27  Jim Meyering  <meyering@redhat.com>
11162
11163         maint.mk: also prohibit "#undef" of always-defined symbols
11164         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11165         Allow more than one space before the symbol name.
11166         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11167         the regexp uses alternation.
11168
11169 2010-05-26  Eric Blake  <eblake@redhat.com>
11170
11171         maint.mk: avoid echo -e
11172         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11173         Convert all uses of echo -* to printf.
11174         Reported by Matthias Bolte.
11175
11176 2010-05-25  Bruno Haible  <bruno@clisp.org>
11177
11178         Update to GNU gettext 0.18, part 2.
11179         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11180         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11181
11182 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11183
11184         Add missing include in test-pwrite.c.
11185         * tests/test-pwrite.c: Include string.h, for strcmp.
11186
11187 2010-05-24  Bruno Haible  <bruno@clisp.org>
11188
11189         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11190
11191 2010-05-24  Bruno Haible  <bruno@clisp.org>
11192
11193         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11194         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11195         iconveh_error argument.
11196         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11197         U_STRCONV_TO_LOCALE.
11198         * lib/unistr/u16-strcoll.c: Likewise.
11199         * lib/unistr/u32-strcoll.c: Likewise.
11200         * modules/unistr/u8-strcoll (Depends-on): Add
11201         uniconv/u8-strconv-to-enc, localcharset. Remove
11202         uniconv/u8-strconv-to-locale.
11203         (configure.ac): Bump version number.
11204         * modules/unistr/u16-strcoll (Depends-on): Add
11205         uniconv/u16-strconv-to-enc, localcharset. Remove
11206         uniconv/u16-strconv-to-locale.
11207         (configure.ac): Bump version number.
11208         * modules/unistr/u32-strcoll (Depends-on): Add
11209         uniconv/u32-strconv-to-enc, localcharset. Remove
11210         uniconv/u32-strconv-to-locale.
11211         (configure.ac): Bump version number.
11212
11213 2010-05-24  Bruno Haible  <bruno@clisp.org>
11214
11215         Avoid a test failure on NetBSD 5.0.
11216         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
11217         an iconv() bug.
11218
11219 2010-05-24  Bruno Haible  <bruno@clisp.org>
11220
11221         Adjust #include directive style.
11222         * modules/regex (Includes): Recommend to write <regex.h>.
11223
11224 2010-05-24  Bruno Haible  <bruno@clisp.org>
11225
11226         regex: Don't require alloca.
11227         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
11228         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
11229         only inside if (0).
11230
11231 2010-05-23  Jim Meyering  <meyering@redhat.com>
11232
11233         test-renameat.c: include <sys/stat.h>
11234         * tests/test-renameat.c: Include <sys/stat.h>; required for
11235         definition of S_IS* macros.
11236
11237 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
11238
11239         Update maintainer documentation for 'relocatable-prog' module.
11240         * doc/relocatable-maint.texi: Update.
11241         Comments by Bruno Haible.
11242
11243 2010-05-23  Bruno Haible  <bruno@clisp.org>
11244
11245         git-merge-changelog: Enable --split-merged-entry by default.
11246         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
11247         (usage): Don't mention this option any more.
11248         Reported by Ralf Wildenhues.
11249
11250 2010-05-23  Jim Meyering  <meyering@redhat.com>
11251
11252         test-pwrite: do not leave behind a test file named "out"
11253         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
11254         The trivial-looking use of init.sh is really necessary.
11255         It ensures that the temporary file, "out", is created in
11256         a temporary directory, and removed upon termination.
11257         * tests/test-pwrite.sh: Re-add file.
11258         * modules/pwrite-tests: Reference it.
11259
11260 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11261
11262         Fix output redirection buglet in init.sh.
11263         * tests/init.sh: Fix redirection of stderr.
11264
11265 2010-05-20  Simon Josefsson  <simon@josefsson.org>
11266
11267         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
11268
11269 2010-05-17  Simon Josefsson  <simon@josefsson.org>
11270
11271         * modules/valgrind-tests: New file.
11272         * m4/valgrind-tests.m4: New file.
11273         * doc/valgrind-tests.texi: New file.
11274         * doc/gnulib.texi (Running self-tests under valgrind): New
11275         section.
11276
11277 2010-05-19  Bruno Haible  <bruno@clisp.org>
11278
11279         Clean up dead code in recent commit.
11280         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
11281         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
11282         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
11283         Suggested by Paolo Bonzini.
11284
11285 2010-05-19  Bruno Haible  <bruno@clisp.org>
11286
11287         Avoid valgrind error reports from libunistring.
11288         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
11289         * modules/libunistring (Files): Add it.
11290         * modules/libunistring-optional (Files): Likewise.
11291
11292 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
11293             Bruno Haible  <bruno@clisp.org>
11294
11295         New module 'libunistring-optional'.
11296         * modules/libunistring-optional: New file.
11297         * m4/libunistring-base.m4: New file.
11298         * m4/libunistring-optional.m4: New file.
11299         * lib/unicase.in.h: Renamed from lib/unicase.h.
11300         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
11301         * lib/unictype.in.h: Renamed from lib/unictype.h.
11302         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
11303         * lib/uniname.in.h: Renamed from lib/uniname.h.
11304         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
11305         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
11306         * lib/unistr.in.h: Renamed from lib/unistr.h.
11307         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
11308         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
11309         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
11310         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
11311         gl_LIBUNISTRING. If the library was found, determine the installed
11312         version and set LIBUNISTRING_VERSION.
11313         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
11314         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
11315         handle a configuration option --with-included-libunistring.
11316         * modules/libunistring (Files): Add m4/absolute-header.m4.
11317         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
11318         Add m4/libunistring-base.m4.
11319         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11320         (Makefile.am): Build unicase.h from unicase.in.h.
11321         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
11322         Add m4/libunistring-base.m4.
11323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11324         (Makefile.am): Build uniconv.h from uniconv.in.h.
11325         * modules/unictype/base (Files): Use unictype.in.h instead of
11326         unictype.h. Add m4/libunistring-base.m4.
11327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11328         (Makefile.am): Build unictype.h from unictype.in.h.
11329         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
11330         Add m4/libunistring-base.m4.
11331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11332         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
11333         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
11334         Add m4/libunistring-base.m4.
11335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11336         (Makefile.am): Build uniname.h from uniname.in.h.
11337         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
11338         Add m4/libunistring-base.m4.
11339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11340         (Makefile.am): Build uninorm.h from uninorm.in.h.
11341         * modules/unistdio/base (Files): Use unistdio.in.h instead of
11342         unistdio.h. Add m4/libunistring-base.m4.
11343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11344         (Makefile.am): Build unistdio.h from unistdio.in.h.
11345         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
11346         Add m4/libunistring-base.m4.
11347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11348         (Makefile.am): Build unistr.h from unistr.in.h.
11349         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
11350         Add m4/libunistring-base.m4.
11351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11352         (Makefile.am): Build unitypes.h from unitypes.in.h.
11353         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
11354         Add m4/libunistring-base.m4.
11355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11356         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
11357         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
11358         uniwidth.h. Add m4/libunistring-base.m4.
11359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
11360         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
11361         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
11362         instead of augmenting lib_SOURCES.
11363         * modules/unicase/empty-suffix-context: Likewise.
11364         * modules/unicase/locale-language: Likewise.
11365         * modules/unicase/tolower: Likewise.
11366         * modules/unicase/totitle: Likewise.
11367         * modules/unicase/toupper: Likewise.
11368         * modules/unicase/u8-casecmp: Likewise.
11369         * modules/unicase/u8-casecoll: Likewise.
11370         * modules/unicase/u8-casefold: Likewise.
11371         * modules/unicase/u8-casexfrm: Likewise.
11372         * modules/unicase/u8-ct-casefold: Likewise.
11373         * modules/unicase/u8-ct-tolower: Likewise.
11374         * modules/unicase/u8-ct-totitle: Likewise.
11375         * modules/unicase/u8-ct-toupper: Likewise.
11376         * modules/unicase/u8-is-cased: Likewise.
11377         * modules/unicase/u8-is-casefolded: Likewise.
11378         * modules/unicase/u8-is-lowercase: Likewise.
11379         * modules/unicase/u8-is-titlecase: Likewise.
11380         * modules/unicase/u8-is-uppercase: Likewise.
11381         * modules/unicase/u8-prefix-context: Likewise.
11382         * modules/unicase/u8-suffix-context: Likewise.
11383         * modules/unicase/u8-tolower: Likewise.
11384         * modules/unicase/u8-totitle: Likewise.
11385         * modules/unicase/u8-toupper: Likewise.
11386         * modules/unicase/u16-casecmp: Likewise.
11387         * modules/unicase/u16-casecoll: Likewise.
11388         * modules/unicase/u16-casefold: Likewise.
11389         * modules/unicase/u16-casexfrm: Likewise.
11390         * modules/unicase/u16-ct-casefold: Likewise.
11391         * modules/unicase/u16-ct-tolower: Likewise.
11392         * modules/unicase/u16-ct-totitle: Likewise.
11393         * modules/unicase/u16-ct-toupper: Likewise.
11394         * modules/unicase/u16-is-cased: Likewise.
11395         * modules/unicase/u16-is-casefolded: Likewise.
11396         * modules/unicase/u16-is-lowercase: Likewise.
11397         * modules/unicase/u16-is-titlecase: Likewise.
11398         * modules/unicase/u16-is-uppercase: Likewise.
11399         * modules/unicase/u16-prefix-context: Likewise.
11400         * modules/unicase/u16-suffix-context: Likewise.
11401         * modules/unicase/u16-tolower: Likewise.
11402         * modules/unicase/u16-totitle: Likewise.
11403         * modules/unicase/u16-toupper: Likewise.
11404         * modules/unicase/u32-casecmp: Likewise.
11405         * modules/unicase/u32-casecoll: Likewise.
11406         * modules/unicase/u32-casefold: Likewise.
11407         * modules/unicase/u32-casexfrm: Likewise.
11408         * modules/unicase/u32-ct-casefold: Likewise.
11409         * modules/unicase/u32-ct-tolower: Likewise.
11410         * modules/unicase/u32-ct-totitle: Likewise.
11411         * modules/unicase/u32-ct-toupper: Likewise.
11412         * modules/unicase/u32-is-cased: Likewise.
11413         * modules/unicase/u32-is-casefolded: Likewise.
11414         * modules/unicase/u32-is-lowercase: Likewise.
11415         * modules/unicase/u32-is-titlecase: Likewise.
11416         * modules/unicase/u32-is-uppercase: Likewise.
11417         * modules/unicase/u32-prefix-context: Likewise.
11418         * modules/unicase/u32-suffix-context: Likewise.
11419         * modules/unicase/u32-tolower: Likewise.
11420         * modules/unicase/u32-totitle: Likewise.
11421         * modules/unicase/u32-toupper: Likewise.
11422         * modules/unicase/ulc-casecmp: Likewise.
11423         * modules/unicase/ulc-casecoll: Likewise.
11424         * modules/unicase/ulc-casexfrm: Likewise.
11425         * modules/uniconv/u8-conv-from-enc: Likewise.
11426         * modules/uniconv/u8-conv-to-enc: Likewise.
11427         * modules/uniconv/u8-strconv-from-enc: Likewise.
11428         * modules/uniconv/u8-strconv-from-locale: Likewise.
11429         * modules/uniconv/u8-strconv-to-enc: Likewise.
11430         * modules/uniconv/u8-strconv-to-locale: Likewise.
11431         * modules/uniconv/u16-conv-from-enc: Likewise.
11432         * modules/uniconv/u16-conv-to-enc: Likewise.
11433         * modules/uniconv/u16-strconv-from-enc: Likewise.
11434         * modules/uniconv/u16-strconv-from-locale: Likewise.
11435         * modules/uniconv/u16-strconv-to-enc: Likewise.
11436         * modules/uniconv/u16-strconv-to-locale: Likewise.
11437         * modules/uniconv/u32-conv-from-enc: Likewise.
11438         * modules/uniconv/u32-conv-to-enc: Likewise.
11439         * modules/uniconv/u32-strconv-from-enc: Likewise.
11440         * modules/uniconv/u32-strconv-from-locale: Likewise.
11441         * modules/uniconv/u32-strconv-to-enc: Likewise.
11442         * modules/uniconv/u32-strconv-to-locale: Likewise.
11443         * modules/unictype/bidicategory-byname: Likewise.
11444         * modules/unictype/bidicategory-name: Likewise.
11445         * modules/unictype/bidicategory-of: Likewise.
11446         * modules/unictype/bidicategory-test: Likewise.
11447         * modules/unictype/block-list: Likewise.
11448         * modules/unictype/block-test: Likewise.
11449         * modules/unictype/category-C: Likewise.
11450         * modules/unictype/category-Cc: Likewise.
11451         * modules/unictype/category-Cf: Likewise.
11452         * modules/unictype/category-Cn: Likewise.
11453         * modules/unictype/category-Co: Likewise.
11454         * modules/unictype/category-Cs: Likewise.
11455         * modules/unictype/category-L: Likewise.
11456         * modules/unictype/category-Ll: Likewise.
11457         * modules/unictype/category-Lm: Likewise.
11458         * modules/unictype/category-Lo: Likewise.
11459         * modules/unictype/category-Lt: Likewise.
11460         * modules/unictype/category-Lu: Likewise.
11461         * modules/unictype/category-M: Likewise.
11462         * modules/unictype/category-Mc: Likewise.
11463         * modules/unictype/category-Me: Likewise.
11464         * modules/unictype/category-Mn: Likewise.
11465         * modules/unictype/category-N: Likewise.
11466         * modules/unictype/category-Nd: Likewise.
11467         * modules/unictype/category-Nl: Likewise.
11468         * modules/unictype/category-No: Likewise.
11469         * modules/unictype/category-P: Likewise.
11470         * modules/unictype/category-Pc: Likewise.
11471         * modules/unictype/category-Pd: Likewise.
11472         * modules/unictype/category-Pe: Likewise.
11473         * modules/unictype/category-Pf: Likewise.
11474         * modules/unictype/category-Pi: Likewise.
11475         * modules/unictype/category-Po: Likewise.
11476         * modules/unictype/category-Ps: Likewise.
11477         * modules/unictype/category-S: Likewise.
11478         * modules/unictype/category-Sc: Likewise.
11479         * modules/unictype/category-Sk: Likewise.
11480         * modules/unictype/category-Sm: Likewise.
11481         * modules/unictype/category-So: Likewise.
11482         * modules/unictype/category-Z: Likewise.
11483         * modules/unictype/category-Zl: Likewise.
11484         * modules/unictype/category-Zp: Likewise.
11485         * modules/unictype/category-Zs: Likewise.
11486         * modules/unictype/category-and: Likewise.
11487         * modules/unictype/category-and-not: Likewise.
11488         * modules/unictype/category-byname: Likewise.
11489         * modules/unictype/category-name: Likewise.
11490         * modules/unictype/category-none: Likewise.
11491         * modules/unictype/category-of: Likewise.
11492         * modules/unictype/category-or: Likewise.
11493         * modules/unictype/category-test: Likewise.
11494         * modules/unictype/combining-class: Likewise.
11495         * modules/unictype/ctype-alnum: Likewise.
11496         * modules/unictype/ctype-alpha: Likewise.
11497         * modules/unictype/ctype-blank: Likewise.
11498         * modules/unictype/ctype-cntrl: Likewise.
11499         * modules/unictype/ctype-digit: Likewise.
11500         * modules/unictype/ctype-graph: Likewise.
11501         * modules/unictype/ctype-lower: Likewise.
11502         * modules/unictype/ctype-print: Likewise.
11503         * modules/unictype/ctype-punct: Likewise.
11504         * modules/unictype/ctype-space: Likewise.
11505         * modules/unictype/ctype-upper: Likewise.
11506         * modules/unictype/ctype-xdigit: Likewise.
11507         * modules/unictype/decimal-digit: Likewise.
11508         * modules/unictype/digit: Likewise.
11509         * modules/unictype/mirror: Likewise.
11510         * modules/unictype/numeric: Likewise.
11511         * modules/unictype/property-alphabetic: Likewise.
11512         * modules/unictype/property-ascii-hex-digit: Likewise.
11513         * modules/unictype/property-bidi-arabic-digit: Likewise.
11514         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
11515         * modules/unictype/property-bidi-block-separator: Likewise.
11516         * modules/unictype/property-bidi-boundary-neutral: Likewise.
11517         * modules/unictype/property-bidi-common-separator: Likewise.
11518         * modules/unictype/property-bidi-control: Likewise.
11519         * modules/unictype/property-bidi-embedding-or-override: Likewise.
11520         * modules/unictype/property-bidi-eur-num-separator: Likewise.
11521         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
11522         * modules/unictype/property-bidi-european-digit: Likewise.
11523         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
11524         * modules/unictype/property-bidi-left-to-right: Likewise.
11525         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
11526         * modules/unictype/property-bidi-other-neutral: Likewise.
11527         * modules/unictype/property-bidi-pdf: Likewise.
11528         * modules/unictype/property-bidi-segment-separator: Likewise.
11529         * modules/unictype/property-bidi-whitespace: Likewise.
11530         * modules/unictype/property-byname: Likewise.
11531         * modules/unictype/property-combining: Likewise.
11532         * modules/unictype/property-composite: Likewise.
11533         * modules/unictype/property-currency-symbol: Likewise.
11534         * modules/unictype/property-dash: Likewise.
11535         * modules/unictype/property-decimal-digit: Likewise.
11536         * modules/unictype/property-default-ignorable-code-point: Likewise.
11537         * modules/unictype/property-deprecated: Likewise.
11538         * modules/unictype/property-diacritic: Likewise.
11539         * modules/unictype/property-extender: Likewise.
11540         * modules/unictype/property-format-control: Likewise.
11541         * modules/unictype/property-grapheme-base: Likewise.
11542         * modules/unictype/property-grapheme-extend: Likewise.
11543         * modules/unictype/property-grapheme-link: Likewise.
11544         * modules/unictype/property-hex-digit: Likewise.
11545         * modules/unictype/property-hyphen: Likewise.
11546         * modules/unictype/property-id-continue: Likewise.
11547         * modules/unictype/property-id-start: Likewise.
11548         * modules/unictype/property-ideographic: Likewise.
11549         * modules/unictype/property-ids-binary-operator: Likewise.
11550         * modules/unictype/property-ids-trinary-operator: Likewise.
11551         * modules/unictype/property-ignorable-control: Likewise.
11552         * modules/unictype/property-iso-control: Likewise.
11553         * modules/unictype/property-join-control: Likewise.
11554         * modules/unictype/property-left-of-pair: Likewise.
11555         * modules/unictype/property-line-separator: Likewise.
11556         * modules/unictype/property-logical-order-exception: Likewise.
11557         * modules/unictype/property-lowercase: Likewise.
11558         * modules/unictype/property-math: Likewise.
11559         * modules/unictype/property-non-break: Likewise.
11560         * modules/unictype/property-not-a-character: Likewise.
11561         * modules/unictype/property-numeric: Likewise.
11562         * modules/unictype/property-other-alphabetic: Likewise.
11563         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
11564         * modules/unictype/property-other-grapheme-extend: Likewise.
11565         * modules/unictype/property-other-id-continue: Likewise.
11566         * modules/unictype/property-other-id-start: Likewise.
11567         * modules/unictype/property-other-lowercase: Likewise.
11568         * modules/unictype/property-other-math: Likewise.
11569         * modules/unictype/property-other-uppercase: Likewise.
11570         * modules/unictype/property-paired-punctuation: Likewise.
11571         * modules/unictype/property-paragraph-separator: Likewise.
11572         * modules/unictype/property-pattern-syntax: Likewise.
11573         * modules/unictype/property-pattern-white-space: Likewise.
11574         * modules/unictype/property-private-use: Likewise.
11575         * modules/unictype/property-punctuation: Likewise.
11576         * modules/unictype/property-quotation-mark: Likewise.
11577         * modules/unictype/property-radical: Likewise.
11578         * modules/unictype/property-sentence-terminal: Likewise.
11579         * modules/unictype/property-soft-dotted: Likewise.
11580         * modules/unictype/property-space: Likewise.
11581         * modules/unictype/property-terminal-punctuation: Likewise.
11582         * modules/unictype/property-test: Likewise.
11583         * modules/unictype/property-titlecase: Likewise.
11584         * modules/unictype/property-unassigned-code-value: Likewise.
11585         * modules/unictype/property-unified-ideograph: Likewise.
11586         * modules/unictype/property-uppercase: Likewise.
11587         * modules/unictype/property-variation-selector: Likewise.
11588         * modules/unictype/property-white-space: Likewise.
11589         * modules/unictype/property-xid-continue: Likewise.
11590         * modules/unictype/property-xid-start: Likewise.
11591         * modules/unictype/property-zero-width: Likewise.
11592         * modules/unictype/scripts: Likewise.
11593         * modules/unictype/syntax-c-ident: Likewise.
11594         * modules/unictype/syntax-c-whitespace: Likewise.
11595         * modules/unictype/syntax-java-ident: Likewise.
11596         * modules/unictype/syntax-java-whitespace: Likewise.
11597         * modules/unilbrk/u8-possible-linebreaks: Likewise.
11598         * modules/unilbrk/u8-width-linebreaks: Likewise.
11599         * modules/unilbrk/u16-possible-linebreaks: Likewise.
11600         * modules/unilbrk/u16-width-linebreaks: Likewise.
11601         * modules/unilbrk/u32-possible-linebreaks: Likewise.
11602         * modules/unilbrk/u32-width-linebreaks: Likewise.
11603         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
11604         * modules/unilbrk/ulc-width-linebreaks: Likewise.
11605         * modules/uniname/uniname: Likewise.
11606         * modules/uninorm/canonical-decomposition: Likewise.
11607         * modules/uninorm/composition: Likewise.
11608         * modules/uninorm/decomposing-form: Likewise.
11609         * modules/uninorm/decomposition: Likewise.
11610         * modules/uninorm/filter: Likewise.
11611         * modules/uninorm/nfc: Likewise.
11612         * modules/uninorm/nfd: Likewise.
11613         * modules/uninorm/nfkc: Likewise.
11614         * modules/uninorm/nfkd: Likewise.
11615         * modules/uninorm/u8-normalize: Likewise.
11616         * modules/uninorm/u8-normcmp: Likewise.
11617         * modules/uninorm/u8-normcoll: Likewise.
11618         * modules/uninorm/u8-normxfrm: Likewise.
11619         * modules/uninorm/u16-normalize: Likewise.
11620         * modules/uninorm/u16-normcmp: Likewise.
11621         * modules/uninorm/u16-normcoll: Likewise.
11622         * modules/uninorm/u16-normxfrm: Likewise.
11623         * modules/uninorm/u32-normalize: Likewise.
11624         * modules/uninorm/u32-normcmp: Likewise.
11625         * modules/uninorm/u32-normcoll: Likewise.
11626         * modules/uninorm/u32-normxfrm: Likewise.
11627         * modules/unistdio/u8-asnprintf: Likewise.
11628         * modules/unistdio/u8-asprintf: Likewise.
11629         * modules/unistdio/u8-snprintf: Likewise.
11630         * modules/unistdio/u8-sprintf: Likewise.
11631         * modules/unistdio/u8-u8-asnprintf: Likewise.
11632         * modules/unistdio/u8-u8-asprintf: Likewise.
11633         * modules/unistdio/u8-u8-snprintf: Likewise.
11634         * modules/unistdio/u8-u8-sprintf: Likewise.
11635         * modules/unistdio/u8-u8-vasnprintf: Likewise.
11636         * modules/unistdio/u8-u8-vasprintf: Likewise.
11637         * modules/unistdio/u8-u8-vsnprintf: Likewise.
11638         * modules/unistdio/u8-u8-vsprintf: Likewise.
11639         * modules/unistdio/u8-vasnprintf: Likewise.
11640         * modules/unistdio/u8-vasprintf: Likewise.
11641         * modules/unistdio/u8-vsnprintf: Likewise.
11642         * modules/unistdio/u8-vsprintf: Likewise.
11643         * modules/unistdio/u16-asnprintf: Likewise.
11644         * modules/unistdio/u16-asprintf: Likewise.
11645         * modules/unistdio/u16-snprintf: Likewise.
11646         * modules/unistdio/u16-sprintf: Likewise.
11647         * modules/unistdio/u16-u16-asnprintf: Likewise.
11648         * modules/unistdio/u16-u16-asprintf: Likewise.
11649         * modules/unistdio/u16-u16-snprintf: Likewise.
11650         * modules/unistdio/u16-u16-sprintf: Likewise.
11651         * modules/unistdio/u16-u16-vasnprintf: Likewise.
11652         * modules/unistdio/u16-u16-vasprintf: Likewise.
11653         * modules/unistdio/u16-u16-vsnprintf: Likewise.
11654         * modules/unistdio/u16-u16-vsprintf: Likewise.
11655         * modules/unistdio/u16-vasnprintf: Likewise.
11656         * modules/unistdio/u16-vasprintf: Likewise.
11657         * modules/unistdio/u16-vsnprintf: Likewise.
11658         * modules/unistdio/u16-vsprintf: Likewise.
11659         * modules/unistdio/u32-asnprintf: Likewise.
11660         * modules/unistdio/u32-asprintf: Likewise.
11661         * modules/unistdio/u32-snprintf: Likewise.
11662         * modules/unistdio/u32-sprintf: Likewise.
11663         * modules/unistdio/u32-u32-asnprintf: Likewise.
11664         * modules/unistdio/u32-u32-asprintf: Likewise.
11665         * modules/unistdio/u32-u32-snprintf: Likewise.
11666         * modules/unistdio/u32-u32-sprintf: Likewise.
11667         * modules/unistdio/u32-u32-vasnprintf: Likewise.
11668         * modules/unistdio/u32-u32-vasprintf: Likewise.
11669         * modules/unistdio/u32-u32-vsnprintf: Likewise.
11670         * modules/unistdio/u32-u32-vsprintf: Likewise.
11671         * modules/unistdio/u32-vasnprintf: Likewise.
11672         * modules/unistdio/u32-vasprintf: Likewise.
11673         * modules/unistdio/u32-vsnprintf: Likewise.
11674         * modules/unistdio/u32-vsprintf: Likewise.
11675         * modules/unistdio/ulc-asnprintf: Likewise.
11676         * modules/unistdio/ulc-asprintf: Likewise.
11677         * modules/unistdio/ulc-fprintf: Likewise.
11678         * modules/unistdio/ulc-snprintf: Likewise.
11679         * modules/unistdio/ulc-sprintf: Likewise.
11680         * modules/unistdio/ulc-vasnprintf: Likewise.
11681         * modules/unistdio/ulc-vasprintf: Likewise.
11682         * modules/unistdio/ulc-vfprintf: Likewise.
11683         * modules/unistdio/ulc-vsnprintf: Likewise.
11684         * modules/unistdio/ulc-vsprintf: Likewise.
11685         * modules/unistr/u8-check: Likewise.
11686         * modules/unistr/u8-chr: Likewise.
11687         * modules/unistr/u8-cmp: Likewise.
11688         * modules/unistr/u8-cmp2: Likewise.
11689         * modules/unistr/u8-cpy: Likewise.
11690         * modules/unistr/u8-cpy-alloc: Likewise.
11691         * modules/unistr/u8-endswith: Likewise.
11692         * modules/unistr/u8-mblen: Likewise.
11693         * modules/unistr/u8-mbsnlen: Likewise.
11694         * modules/unistr/u8-mbtouc: Likewise.
11695         * modules/unistr/u8-mbtouc-unsafe: Likewise.
11696         * modules/unistr/u8-mbtoucr: Likewise.
11697         * modules/unistr/u8-move: Likewise.
11698         * modules/unistr/u8-next: Likewise.
11699         * modules/unistr/u8-prev: Likewise.
11700         * modules/unistr/u8-set: Likewise.
11701         * modules/unistr/u8-startswith: Likewise.
11702         * modules/unistr/u8-stpcpy: Likewise.
11703         * modules/unistr/u8-stpncpy: Likewise.
11704         * modules/unistr/u8-strcat: Likewise.
11705         * modules/unistr/u8-strchr: Likewise.
11706         * modules/unistr/u8-strcmp: Likewise.
11707         * modules/unistr/u8-strcoll: Likewise.
11708         * modules/unistr/u8-strcpy: Likewise.
11709         * modules/unistr/u8-strcspn: Likewise.
11710         * modules/unistr/u8-strdup: Likewise.
11711         * modules/unistr/u8-strlen: Likewise.
11712         * modules/unistr/u8-strmblen: Likewise.
11713         * modules/unistr/u8-strmbtouc: Likewise.
11714         * modules/unistr/u8-strncat: Likewise.
11715         * modules/unistr/u8-strncmp: Likewise.
11716         * modules/unistr/u8-strncpy: Likewise.
11717         * modules/unistr/u8-strnlen: Likewise.
11718         * modules/unistr/u8-strpbrk: Likewise.
11719         * modules/unistr/u8-strrchr: Likewise.
11720         * modules/unistr/u8-strspn: Likewise.
11721         * modules/unistr/u8-strstr: Likewise.
11722         * modules/unistr/u8-strtok: Likewise.
11723         * modules/unistr/u8-to-u16: Likewise.
11724         * modules/unistr/u8-to-u32: Likewise.
11725         * modules/unistr/u8-uctomb: Likewise.
11726         * modules/unistr/u16-check: Likewise.
11727         * modules/unistr/u16-chr: Likewise.
11728         * modules/unistr/u16-cmp: Likewise.
11729         * modules/unistr/u16-cmp2: Likewise.
11730         * modules/unistr/u16-cpy: Likewise.
11731         * modules/unistr/u16-cpy-alloc: Likewise.
11732         * modules/unistr/u16-endswith: Likewise.
11733         * modules/unistr/u16-mblen: Likewise.
11734         * modules/unistr/u16-mbsnlen: Likewise.
11735         * modules/unistr/u16-mbtouc: Likewise.
11736         * modules/unistr/u16-mbtouc-unsafe: Likewise.
11737         * modules/unistr/u16-mbtoucr: Likewise.
11738         * modules/unistr/u16-move: Likewise.
11739         * modules/unistr/u16-next: Likewise.
11740         * modules/unistr/u16-prev: Likewise.
11741         * modules/unistr/u16-set: Likewise.
11742         * modules/unistr/u16-startswith: Likewise.
11743         * modules/unistr/u16-stpcpy: Likewise.
11744         * modules/unistr/u16-stpncpy: Likewise.
11745         * modules/unistr/u16-strcat: Likewise.
11746         * modules/unistr/u16-strchr: Likewise.
11747         * modules/unistr/u16-strcmp: Likewise.
11748         * modules/unistr/u16-strcoll: Likewise.
11749         * modules/unistr/u16-strcpy: Likewise.
11750         * modules/unistr/u16-strcspn: Likewise.
11751         * modules/unistr/u16-strdup: Likewise.
11752         * modules/unistr/u16-strlen: Likewise.
11753         * modules/unistr/u16-strmblen: Likewise.
11754         * modules/unistr/u16-strmbtouc: Likewise.
11755         * modules/unistr/u16-strncat: Likewise.
11756         * modules/unistr/u16-strncmp: Likewise.
11757         * modules/unistr/u16-strncpy: Likewise.
11758         * modules/unistr/u16-strnlen: Likewise.
11759         * modules/unistr/u16-strpbrk: Likewise.
11760         * modules/unistr/u16-strrchr: Likewise.
11761         * modules/unistr/u16-strspn: Likewise.
11762         * modules/unistr/u16-strstr: Likewise.
11763         * modules/unistr/u16-strtok: Likewise.
11764         * modules/unistr/u16-to-u32: Likewise.
11765         * modules/unistr/u16-to-u8: Likewise.
11766         * modules/unistr/u16-uctomb: Likewise.
11767         * modules/unistr/u32-check: Likewise.
11768         * modules/unistr/u32-chr: Likewise.
11769         * modules/unistr/u32-cmp: Likewise.
11770         * modules/unistr/u32-cmp2: Likewise.
11771         * modules/unistr/u32-cpy: Likewise.
11772         * modules/unistr/u32-cpy-alloc: Likewise.
11773         * modules/unistr/u32-endswith: Likewise.
11774         * modules/unistr/u32-mblen: Likewise.
11775         * modules/unistr/u32-mbsnlen: Likewise.
11776         * modules/unistr/u32-mbtouc: Likewise.
11777         * modules/unistr/u32-mbtouc-unsafe: Likewise.
11778         * modules/unistr/u32-mbtoucr: Likewise.
11779         * modules/unistr/u32-move: Likewise.
11780         * modules/unistr/u32-next: Likewise.
11781         * modules/unistr/u32-prev: Likewise.
11782         * modules/unistr/u32-set: Likewise.
11783         * modules/unistr/u32-startswith: Likewise.
11784         * modules/unistr/u32-stpcpy: Likewise.
11785         * modules/unistr/u32-stpncpy: Likewise.
11786         * modules/unistr/u32-strcat: Likewise.
11787         * modules/unistr/u32-strchr: Likewise.
11788         * modules/unistr/u32-strcmp: Likewise.
11789         * modules/unistr/u32-strcoll: Likewise.
11790         * modules/unistr/u32-strcpy: Likewise.
11791         * modules/unistr/u32-strcspn: Likewise.
11792         * modules/unistr/u32-strdup: Likewise.
11793         * modules/unistr/u32-strlen: Likewise.
11794         * modules/unistr/u32-strmblen: Likewise.
11795         * modules/unistr/u32-strmbtouc: Likewise.
11796         * modules/unistr/u32-strncat: Likewise.
11797         * modules/unistr/u32-strncmp: Likewise.
11798         * modules/unistr/u32-strncpy: Likewise.
11799         * modules/unistr/u32-strnlen: Likewise.
11800         * modules/unistr/u32-strpbrk: Likewise.
11801         * modules/unistr/u32-strrchr: Likewise.
11802         * modules/unistr/u32-strspn: Likewise.
11803         * modules/unistr/u32-strstr: Likewise.
11804         * modules/unistr/u32-strtok: Likewise.
11805         * modules/unistr/u32-to-u16: Likewise.
11806         * modules/unistr/u32-to-u8: Likewise.
11807         * modules/unistr/u32-uctomb: Likewise.
11808         * modules/uniwbrk/u8-wordbreaks: Likewise.
11809         * modules/uniwbrk/u16-wordbreaks: Likewise.
11810         * modules/uniwbrk/u32-wordbreaks: Likewise.
11811         * modules/uniwbrk/ulc-wordbreaks: Likewise.
11812         * modules/uniwbrk/wordbreak-property: Likewise.
11813         * modules/uniwidth/u8-strwidth: Likewise.
11814         * modules/uniwidth/u8-width: Likewise.
11815         * modules/uniwidth/u16-strwidth: Likewise.
11816         * modules/uniwidth/u16-width: Likewise.
11817         * modules/uniwidth/u32-strwidth: Likewise.
11818         * modules/uniwidth/u32-width: Likewise.
11819         * modules/uniwidth/width: Likewise.
11820         * modules/unicase/cased-tests (Makefile.am): Link all test programs
11821         with $(LIBUNISTRING).
11822         * modules/unicase/ignorable-tests: Likewise.
11823         * modules/unicase/locale-language-tests: Likewise.
11824         * modules/unicase/tolower-tests: Likewise.
11825         * modules/unicase/totitle-tests: Likewise.
11826         * modules/unicase/toupper-tests: Likewise.
11827         * modules/unicase/u8-casecmp-tests: Likewise.
11828         * modules/unicase/u8-casecoll-tests: Likewise.
11829         * modules/unicase/u8-casefold-tests: Likewise.
11830         * modules/unicase/u8-is-cased-tests: Likewise.
11831         * modules/unicase/u8-is-casefolded-tests: Likewise.
11832         * modules/unicase/u8-is-lowercase-tests: Likewise.
11833         * modules/unicase/u8-is-titlecase-tests: Likewise.
11834         * modules/unicase/u8-is-uppercase-tests: Likewise.
11835         * modules/unicase/u8-tolower-tests: Likewise.
11836         * modules/unicase/u8-totitle-tests: Likewise.
11837         * modules/unicase/u8-toupper-tests: Likewise.
11838         * modules/unicase/u16-casecmp-tests: Likewise.
11839         * modules/unicase/u16-casecoll-tests: Likewise.
11840         * modules/unicase/u16-casefold-tests: Likewise.
11841         * modules/unicase/u16-is-cased-tests: Likewise.
11842         * modules/unicase/u16-is-casefolded-tests: Likewise.
11843         * modules/unicase/u16-is-lowercase-tests: Likewise.
11844         * modules/unicase/u16-is-titlecase-tests: Likewise.
11845         * modules/unicase/u16-is-uppercase-tests: Likewise.
11846         * modules/unicase/u16-tolower-tests: Likewise.
11847         * modules/unicase/u16-totitle-tests: Likewise.
11848         * modules/unicase/u16-toupper-tests: Likewise.
11849         * modules/unicase/u32-casecmp-tests: Likewise.
11850         * modules/unicase/u32-casecoll-tests: Likewise.
11851         * modules/unicase/u32-casefold-tests: Likewise.
11852         * modules/unicase/u32-is-cased-tests: Likewise.
11853         * modules/unicase/u32-is-casefolded-tests: Likewise.
11854         * modules/unicase/u32-is-lowercase-tests: Likewise.
11855         * modules/unicase/u32-is-titlecase-tests: Likewise.
11856         * modules/unicase/u32-is-uppercase-tests: Likewise.
11857         * modules/unicase/u32-tolower-tests: Likewise.
11858         * modules/unicase/u32-totitle-tests: Likewise.
11859         * modules/unicase/u32-toupper-tests: Likewise.
11860         * modules/unicase/ulc-casecmp-tests: Likewise.
11861         * modules/unicase/ulc-casecoll-tests: Likewise.
11862         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
11863         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
11864         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
11865         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
11866         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
11867         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
11868         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
11869         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
11870         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
11871         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
11872         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
11873         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
11874         * modules/unictype/bidicategory-byname-tests: Likewise.
11875         * modules/unictype/bidicategory-name-tests: Likewise.
11876         * modules/unictype/bidicategory-of-tests: Likewise.
11877         * modules/unictype/bidicategory-test-tests: Likewise.
11878         * modules/unictype/block-list-tests: Likewise.
11879         * modules/unictype/block-of-tests: Likewise.
11880         * modules/unictype/block-test-tests: Likewise.
11881         * modules/unictype/category-C-tests: Likewise.
11882         * modules/unictype/category-Cc-tests: Likewise.
11883         * modules/unictype/category-Cf-tests: Likewise.
11884         * modules/unictype/category-Cn-tests: Likewise.
11885         * modules/unictype/category-Co-tests: Likewise.
11886         * modules/unictype/category-Cs-tests: Likewise.
11887         * modules/unictype/category-L-tests: Likewise.
11888         * modules/unictype/category-Ll-tests: Likewise.
11889         * modules/unictype/category-Lm-tests: Likewise.
11890         * modules/unictype/category-Lo-tests: Likewise.
11891         * modules/unictype/category-Lt-tests: Likewise.
11892         * modules/unictype/category-Lu-tests: Likewise.
11893         * modules/unictype/category-M-tests: Likewise.
11894         * modules/unictype/category-Mc-tests: Likewise.
11895         * modules/unictype/category-Me-tests: Likewise.
11896         * modules/unictype/category-Mn-tests: Likewise.
11897         * modules/unictype/category-N-tests: Likewise.
11898         * modules/unictype/category-Nd-tests: Likewise.
11899         * modules/unictype/category-Nl-tests: Likewise.
11900         * modules/unictype/category-No-tests: Likewise.
11901         * modules/unictype/category-P-tests: Likewise.
11902         * modules/unictype/category-Pc-tests: Likewise.
11903         * modules/unictype/category-Pd-tests: Likewise.
11904         * modules/unictype/category-Pe-tests: Likewise.
11905         * modules/unictype/category-Pf-tests: Likewise.
11906         * modules/unictype/category-Pi-tests: Likewise.
11907         * modules/unictype/category-Po-tests: Likewise.
11908         * modules/unictype/category-Ps-tests: Likewise.
11909         * modules/unictype/category-S-tests: Likewise.
11910         * modules/unictype/category-Sc-tests: Likewise.
11911         * modules/unictype/category-Sk-tests: Likewise.
11912         * modules/unictype/category-Sm-tests: Likewise.
11913         * modules/unictype/category-So-tests: Likewise.
11914         * modules/unictype/category-Z-tests: Likewise.
11915         * modules/unictype/category-Zl-tests: Likewise.
11916         * modules/unictype/category-Zp-tests: Likewise.
11917         * modules/unictype/category-Zs-tests: Likewise.
11918         * modules/unictype/category-and-not-tests: Likewise.
11919         * modules/unictype/category-and-tests: Likewise.
11920         * modules/unictype/category-byname-tests: Likewise.
11921         * modules/unictype/category-name-tests: Likewise.
11922         * modules/unictype/category-none-tests: Likewise.
11923         * modules/unictype/category-of-tests: Likewise.
11924         * modules/unictype/category-or-tests: Likewise.
11925         * modules/unictype/category-test-withtable-tests: Likewise.
11926         * modules/unictype/combining-class-tests: Likewise.
11927         * modules/unictype/ctype-alnum-tests: Likewise.
11928         * modules/unictype/ctype-alpha-tests: Likewise.
11929         * modules/unictype/ctype-blank-tests: Likewise.
11930         * modules/unictype/ctype-cntrl-tests: Likewise.
11931         * modules/unictype/ctype-digit-tests: Likewise.
11932         * modules/unictype/ctype-graph-tests: Likewise.
11933         * modules/unictype/ctype-lower-tests: Likewise.
11934         * modules/unictype/ctype-print-tests: Likewise.
11935         * modules/unictype/ctype-punct-tests: Likewise.
11936         * modules/unictype/ctype-space-tests: Likewise.
11937         * modules/unictype/ctype-upper-tests: Likewise.
11938         * modules/unictype/ctype-xdigit-tests: Likewise.
11939         * modules/unictype/decimal-digit-tests: Likewise.
11940         * modules/unictype/digit-tests: Likewise.
11941         * modules/unictype/mirror-tests: Likewise.
11942         * modules/unictype/numeric-tests: Likewise.
11943         * modules/unictype/property-alphabetic-tests: Likewise.
11944         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
11945         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
11946         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
11947         * modules/unictype/property-bidi-block-separator-tests: Likewise.
11948         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
11949         * modules/unictype/property-bidi-common-separator-tests: Likewise.
11950         * modules/unictype/property-bidi-control-tests: Likewise.
11951         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
11952         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
11953         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
11954         * modules/unictype/property-bidi-european-digit-tests: Likewise.
11955         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
11956         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
11957         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
11958         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
11959         * modules/unictype/property-bidi-pdf-tests: Likewise.
11960         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
11961         * modules/unictype/property-bidi-whitespace-tests: Likewise.
11962         * modules/unictype/property-byname-tests: Likewise.
11963         * modules/unictype/property-combining-tests: Likewise.
11964         * modules/unictype/property-composite-tests: Likewise.
11965         * modules/unictype/property-currency-symbol-tests: Likewise.
11966         * modules/unictype/property-dash-tests: Likewise.
11967         * modules/unictype/property-decimal-digit-tests: Likewise.
11968         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
11969         * modules/unictype/property-deprecated-tests: Likewise.
11970         * modules/unictype/property-diacritic-tests: Likewise.
11971         * modules/unictype/property-extender-tests: Likewise.
11972         * modules/unictype/property-format-control-tests: Likewise.
11973         * modules/unictype/property-grapheme-base-tests: Likewise.
11974         * modules/unictype/property-grapheme-extend-tests: Likewise.
11975         * modules/unictype/property-grapheme-link-tests: Likewise.
11976         * modules/unictype/property-hex-digit-tests: Likewise.
11977         * modules/unictype/property-hyphen-tests: Likewise.
11978         * modules/unictype/property-id-continue-tests: Likewise.
11979         * modules/unictype/property-id-start-tests: Likewise.
11980         * modules/unictype/property-ideographic-tests: Likewise.
11981         * modules/unictype/property-ids-binary-operator-tests: Likewise.
11982         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
11983         * modules/unictype/property-ignorable-control-tests: Likewise.
11984         * modules/unictype/property-iso-control-tests: Likewise.
11985         * modules/unictype/property-join-control-tests: Likewise.
11986         * modules/unictype/property-left-of-pair-tests: Likewise.
11987         * modules/unictype/property-line-separator-tests: Likewise.
11988         * modules/unictype/property-logical-order-exception-tests: Likewise.
11989         * modules/unictype/property-lowercase-tests: Likewise.
11990         * modules/unictype/property-math-tests: Likewise.
11991         * modules/unictype/property-non-break-tests: Likewise.
11992         * modules/unictype/property-not-a-character-tests: Likewise.
11993         * modules/unictype/property-numeric-tests: Likewise.
11994         * modules/unictype/property-other-alphabetic-tests: Likewise.
11995         * modules/unictype/property-other-default-ignorable-code-point-tests:
11996         Likewise.
11997         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
11998         * modules/unictype/property-other-id-continue-tests: Likewise.
11999         * modules/unictype/property-other-id-start-tests: Likewise.
12000         * modules/unictype/property-other-lowercase-tests: Likewise.
12001         * modules/unictype/property-other-math-tests: Likewise.
12002         * modules/unictype/property-other-uppercase-tests: Likewise.
12003         * modules/unictype/property-paired-punctuation-tests: Likewise.
12004         * modules/unictype/property-paragraph-separator-tests: Likewise.
12005         * modules/unictype/property-pattern-syntax-tests: Likewise.
12006         * modules/unictype/property-pattern-white-space-tests: Likewise.
12007         * modules/unictype/property-private-use-tests: Likewise.
12008         * modules/unictype/property-punctuation-tests: Likewise.
12009         * modules/unictype/property-quotation-mark-tests: Likewise.
12010         * modules/unictype/property-radical-tests: Likewise.
12011         * modules/unictype/property-sentence-terminal-tests: Likewise.
12012         * modules/unictype/property-soft-dotted-tests: Likewise.
12013         * modules/unictype/property-space-tests: Likewise.
12014         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12015         * modules/unictype/property-test-tests: Likewise.
12016         * modules/unictype/property-titlecase-tests: Likewise.
12017         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12018         * modules/unictype/property-unified-ideograph-tests: Likewise.
12019         * modules/unictype/property-uppercase-tests: Likewise.
12020         * modules/unictype/property-variation-selector-tests: Likewise.
12021         * modules/unictype/property-white-space-tests: Likewise.
12022         * modules/unictype/property-xid-continue-tests: Likewise.
12023         * modules/unictype/property-xid-start-tests: Likewise.
12024         * modules/unictype/property-zero-width-tests: Likewise.
12025         * modules/unictype/scripts-tests: Likewise.
12026         * modules/unictype/syntax-c-ident-tests: Likewise.
12027         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12028         * modules/unictype/syntax-java-ident-tests: Likewise.
12029         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12030         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12031         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12032         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12033         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12034         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12035         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12036         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12037         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12038         * modules/uniname/uniname-tests: Likewise.
12039         * modules/uninorm/canonical-decomposition-tests: Likewise.
12040         * modules/uninorm/compat-decomposition-tests: Likewise.
12041         * modules/uninorm/composition-tests: Likewise.
12042         * modules/uninorm/decomposing-form-tests: Likewise.
12043         * modules/uninorm/decomposition-tests: Likewise.
12044         * modules/uninorm/filter-tests: Likewise.
12045         * modules/uninorm/nfc-tests: Likewise.
12046         * modules/uninorm/nfd-tests: Likewise.
12047         * modules/uninorm/nfkc-tests: Likewise.
12048         * modules/uninorm/nfkd-tests: Likewise.
12049         * modules/uninorm/u8-normcmp-tests: Likewise.
12050         * modules/uninorm/u8-normcoll-tests: Likewise.
12051         * modules/uninorm/u16-normcmp-tests: Likewise.
12052         * modules/uninorm/u16-normcoll-tests: Likewise.
12053         * modules/uninorm/u32-normcmp-tests: Likewise.
12054         * modules/uninorm/u32-normcoll-tests: Likewise.
12055         * modules/unistdio/u8-asnprintf-tests: Likewise.
12056         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12057         * modules/unistdio/u8-vasprintf-tests: Likewise.
12058         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12059         * modules/unistdio/u8-vsprintf-tests: Likewise.
12060         * modules/unistdio/u16-asnprintf-tests: Likewise.
12061         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12062         * modules/unistdio/u16-vasprintf-tests: Likewise.
12063         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12064         * modules/unistdio/u16-vsprintf-tests: Likewise.
12065         * modules/unistdio/u32-asnprintf-tests: Likewise.
12066         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12067         * modules/unistdio/u32-vasprintf-tests: Likewise.
12068         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12069         * modules/unistdio/u32-vsprintf-tests: Likewise.
12070         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12071         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12072         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12073         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12074         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12075         * modules/unistr/u8-check-tests: Likewise.
12076         * modules/unistr/u8-chr-tests: Likewise.
12077         * modules/unistr/u8-cmp-tests: Likewise.
12078         * modules/unistr/u8-cmp2-tests: Likewise.
12079         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12080         * modules/unistr/u8-cpy-tests: Likewise.
12081         * modules/unistr/u8-mblen-tests: Likewise.
12082         * modules/unistr/u8-mbsnlen-tests: Likewise.
12083         * modules/unistr/u8-mbtouc-tests: Likewise.
12084         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12085         * modules/unistr/u8-mbtoucr-tests: Likewise.
12086         * modules/unistr/u8-move-tests: Likewise.
12087         * modules/unistr/u8-next-tests: Likewise.
12088         * modules/unistr/u8-prev-tests: Likewise.
12089         * modules/unistr/u8-set-tests: Likewise.
12090         * modules/unistr/u8-stpcpy-tests: Likewise.
12091         * modules/unistr/u8-stpncpy-tests: Likewise.
12092         * modules/unistr/u8-strcat-tests: Likewise.
12093         * modules/unistr/u8-strcmp-tests: Likewise.
12094         * modules/unistr/u8-strcoll-tests: Likewise.
12095         * modules/unistr/u8-strcpy-tests: Likewise.
12096         * modules/unistr/u8-strdup-tests: Likewise.
12097         * modules/unistr/u8-strlen-tests: Likewise.
12098         * modules/unistr/u8-strmblen-tests: Likewise.
12099         * modules/unistr/u8-strmbtouc-tests: Likewise.
12100         * modules/unistr/u8-strncat-tests: Likewise.
12101         * modules/unistr/u8-strncmp-tests: Likewise.
12102         * modules/unistr/u8-strncpy-tests: Likewise.
12103         * modules/unistr/u8-strnlen-tests: Likewise.
12104         * modules/unistr/u8-to-u16-tests: Likewise.
12105         * modules/unistr/u8-to-u32-tests: Likewise.
12106         * modules/unistr/u8-uctomb-tests: Likewise.
12107         * modules/unistr/u16-check-tests: Likewise.
12108         * modules/unistr/u16-chr-tests: Likewise.
12109         * modules/unistr/u16-cmp-tests: Likewise.
12110         * modules/unistr/u16-cmp2-tests: Likewise.
12111         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12112         * modules/unistr/u16-cpy-tests: Likewise.
12113         * modules/unistr/u16-mblen-tests: Likewise.
12114         * modules/unistr/u16-mbsnlen-tests: Likewise.
12115         * modules/unistr/u16-mbtouc-tests: Likewise.
12116         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12117         * modules/unistr/u16-mbtoucr-tests: Likewise.
12118         * modules/unistr/u16-move-tests: Likewise.
12119         * modules/unistr/u16-next-tests: Likewise.
12120         * modules/unistr/u16-prev-tests: Likewise.
12121         * modules/unistr/u16-set-tests: Likewise.
12122         * modules/unistr/u16-stpcpy-tests: Likewise.
12123         * modules/unistr/u16-stpncpy-tests: Likewise.
12124         * modules/unistr/u16-strcat-tests: Likewise.
12125         * modules/unistr/u16-strcmp-tests: Likewise.
12126         * modules/unistr/u16-strcoll-tests: Likewise.
12127         * modules/unistr/u16-strcpy-tests: Likewise.
12128         * modules/unistr/u16-strdup-tests: Likewise.
12129         * modules/unistr/u16-strlen-tests: Likewise.
12130         * modules/unistr/u16-strmblen-tests: Likewise.
12131         * modules/unistr/u16-strmbtouc-tests: Likewise.
12132         * modules/unistr/u16-strncat-tests: Likewise.
12133         * modules/unistr/u16-strncmp-tests: Likewise.
12134         * modules/unistr/u16-strncpy-tests: Likewise.
12135         * modules/unistr/u16-strnlen-tests: Likewise.
12136         * modules/unistr/u16-to-u32-tests: Likewise.
12137         * modules/unistr/u16-to-u8-tests: Likewise.
12138         * modules/unistr/u16-uctomb-tests: Likewise.
12139         * modules/unistr/u32-check-tests: Likewise.
12140         * modules/unistr/u32-chr-tests: Likewise.
12141         * modules/unistr/u32-cmp-tests: Likewise.
12142         * modules/unistr/u32-cmp2-tests: Likewise.
12143         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12144         * modules/unistr/u32-cpy-tests: Likewise.
12145         * modules/unistr/u32-mblen-tests: Likewise.
12146         * modules/unistr/u32-mbsnlen-tests: Likewise.
12147         * modules/unistr/u32-mbtouc-tests: Likewise.
12148         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12149         * modules/unistr/u32-mbtoucr-tests: Likewise.
12150         * modules/unistr/u32-move-tests: Likewise.
12151         * modules/unistr/u32-next-tests: Likewise.
12152         * modules/unistr/u32-prev-tests: Likewise.
12153         * modules/unistr/u32-set-tests: Likewise.
12154         * modules/unistr/u32-stpcpy-tests: Likewise.
12155         * modules/unistr/u32-stpncpy-tests: Likewise.
12156         * modules/unistr/u32-strcat-tests: Likewise.
12157         * modules/unistr/u32-strcmp-tests: Likewise.
12158         * modules/unistr/u32-strcoll-tests: Likewise.
12159         * modules/unistr/u32-strcpy-tests: Likewise.
12160         * modules/unistr/u32-strdup-tests: Likewise.
12161         * modules/unistr/u32-strlen-tests: Likewise.
12162         * modules/unistr/u32-strmblen-tests: Likewise.
12163         * modules/unistr/u32-strmbtouc-tests: Likewise.
12164         * modules/unistr/u32-strncat-tests: Likewise.
12165         * modules/unistr/u32-strncmp-tests: Likewise.
12166         * modules/unistr/u32-strncpy-tests: Likewise.
12167         * modules/unistr/u32-strnlen-tests: Likewise.
12168         * modules/unistr/u32-to-u16-tests: Likewise.
12169         * modules/unistr/u32-to-u8-tests: Likewise.
12170         * modules/unistr/u32-uctomb-tests: Likewise.
12171         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12172         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12173         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12174         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12175         * modules/uniwidth/u8-strwidth-tests: Likewise.
12176         * modules/uniwidth/u8-width-tests: Likewise.
12177         * modules/uniwidth/u16-strwidth-tests: Likewise.
12178         * modules/uniwidth/u16-width-tests: Likewise.
12179         * modules/uniwidth/u32-strwidth-tests: Likewise.
12180         * modules/uniwidth/u32-width-tests: Likewise.
12181         * modules/uniwidth/width-tests: Likewise.
12182
12183 2010-05-18  Richard Jones  <rjones@redhat.com>
12184
12185         doc: users.txt: list hivex
12186         * users.txt: Add hivex.
12187
12188 2010-05-18  Richard Jones  <rjones@redhat.com>
12189
12190         doc: users.txt: list febootstrap
12191         * users.txt: Add febootstrap.
12192
12193 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12194
12195         bootstrap: fix an error when gnulib is not used as a git submodule
12196         * build-aux/bootstrap (gnulib_path): If its length is zero then
12197         assign "gnulib" to it.
12198         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12199
12200 2010-05-16  Bruno Haible  <bruno@clisp.org>
12201
12202         Avoid autoconf warnings about AM_ICONV.
12203         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12204         2.64.
12205
12206 2010-05-16  Bruno Haible  <bruno@clisp.org>
12207
12208         absolute-header: Make the macro usable in more situations.
12209         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
12210         from gl_ABSOLUTE_HEADER.
12211         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
12212
12213 2010-05-16  James Youngman  <jay@gnu.org>
12214
12215         doc: update users.txt
12216         * users.txt: Add CSSC.
12217
12218 2010-05-16  Jim Meyering  <meyering@redhat.com>
12219
12220         init.sh: fix an error in the previous change; add more comments
12221         * tests/init.sh: Compare exit code in loop against 9, not 2.
12222         Patch by Bruno Haible.
12223         Make the two tests more similar by adding an empty "then" clause.
12224         Add comments.
12225
12226         init.sh: avoid unnecessary shell re-exec
12227         * tests/init.sh: Improve the re-exec-required check to first test the
12228         current shell.  If it passes the test, do not search for a shell that
12229         does pass, and do not re-exec.  This test is particularly contorted to
12230         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
12231         of $(...) evokes a syntax error and causes immediate shell exit with
12232         status 2.  Bruno Haible reported that the re-exec made it impossible
12233         to single-step through any init.sh-using script.
12234
12235 2010-05-16  Bruno Haible  <bruno@clisp.org>
12236
12237         Fix collision between gnulib's and libintl's printf replacements.
12238         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
12239         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
12240         (printf): When using GNU C, map the __printf__ function to rpl_printf
12241         via __asm__. When not using GNU C, define rpl_printf instead of
12242         __printf__.
12243         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
12244         commit.
12245         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
12246         commit.
12247         * m4/asm-underscore.m4: New file.
12248         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
12249         * modules/stdio (Files): Add m4/asm-underscore.m4.
12250         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
12251         Reported by Ben Pfaff.
12252
12253 2010-05-16  Bruno Haible  <bruno@clisp.org>
12254
12255         verify: Avoid skipping the test on openSUSE 11.0.
12256         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
12257
12258 2010-05-13  Bruno Haible  <bruno@clisp.org>
12259
12260         Avoid useless warnings from G++.
12261         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
12262         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
12263         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
12264
12265 2010-05-11  Jim Meyering  <meyering@redhat.com>
12266
12267         maint.mk: tweak preceding change
12268         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
12269         regexps tighter by anchoring at EOL, and make the new group "shy"
12270         for slightly decreased overhead.
12271
12272 2010-05-11  Eric Blake  <eblake@redhat.com>
12273
12274         maint.mk: gnulib doesn't guarantee NSIG
12275         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
12276
12277 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12278
12279         test-pwrite.c: Remove unused variable declaration.
12280         * tests/test-pwrite.c (main): Remove read_buf declaration.
12281
12282         Remove useless test-pwrite.sh file.
12283         * tests/test-pwrite.sh: Delete file.
12284         * modules/pwrite-tests: Remove references.
12285         Reported by Bruno Haible.
12286
12287 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
12288
12289         init.sh: fix a typo
12290         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
12291
12292 2010-05-10  Jim Meyering  <meyering@redhat.com>
12293
12294         maint.mk: avoid using a temporary file in the always-defined-macros check
12295         * top/maint.mk (.re-defmac): Remove rule.
12296         (gl_trap_): Remove definition.
12297         (sc_prohibit_always-defined_macros): Rewrite not to create and
12298         depend on a temporary file.  Instead, depend on GNU grep's ability
12299         to read a list of regular expressions from stdin when given "-f -".
12300
12301 2010-05-09  Bruno Haible  <bruno@clisp.org>
12302
12303         Update to GNU gettext 0.18, part 1.
12304         * m4/gettext.m4: Update to GNU gettext 0.18.
12305         * m4/intl.m4: Likewise.
12306         * m4/po.m4: Likewise.
12307         * modules/gettext (Files): Add m4/fcntl-o.m4.
12308         (configure.ac): Require gettext infrastructure from version 0.18.
12309
12310 2010-05-09  Jim Meyering  <meyering@redhat.com>
12311
12312         init.sh: enable MALLOC_PERTURB_
12313         * tests/init.sh: Enable glibc's malloc-perturbing option.
12314
12315         maint.mk: improve sc_cross_check_PATH_usage_in_tests
12316         With my recent change in init.sh from the two-line form:
12317             -#   : ${srcdir=.}
12318             -#   . "$srcdir/init.sh"; path_prepend_ .
12319             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
12320         I noticed that using the one-line form would cause this test
12321         to fail with a false-positive, or to stop working altogether,
12322         depending on whether help-version changed or all the tests did.
12323         * top/maint.mk (_hv_regex): Remove this definition.
12324         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
12325         (_hv_regex_strong): Use a stronger regex to check for conformance.
12326         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
12327         Give a separate diagnostic for lack of conforming use.
12328
12329         maint.mk: prohibit definition of symbols defined by gnulib
12330         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
12331         definition of symbols defined by gnulib.
12332
12333 2010-05-09  Bruno Haible  <bruno@clisp.org>
12334
12335         acl: Avoid test failure on Cygwin-hosted mingw.
12336         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
12337
12338 2010-05-09  Bruno Haible  <bruno@clisp.org>
12339
12340         error: Use system's fcntl function.
12341         * lib/error.c (fcntl): Undefine.
12342
12343 2010-05-09  Jim Meyering  <meyering@redhat.com>
12344
12345         verify: adjust formatting to be more consistent
12346         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
12347         argument-list '('s, and after one comma.
12348
12349 2010-05-09  Bruno Haible  <bruno@clisp.org>
12350
12351         error: More reliable output on mingw.
12352         * lib/error.c: Include <windows.h>.
12353         (is_open): New function.
12354         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
12355         defined.
12356
12357 2010-05-09  Bruno Haible  <bruno@clisp.org>
12358
12359         vasnprintf: Fix syntax errors in libintl build on mingw.
12360         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
12361         pad_ourselves and prec_ourselves after use.
12362
12363 2010-05-08  Bruno Haible  <bruno@clisp.org>
12364
12365         * lib/config.charset: Update comments for Cygwin 1.7.
12366         * lib/localcharset.c: Likewise.
12367
12368 2010-05-07  Jim Meyering  <meyering@redhat.com>
12369
12370         init.sh: improve comments
12371         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
12372         . "${srcdir=.}/init.sh"; path_prepend_ .
12373         Add a note about path_prepend_ and the alternative of using
12374         TESTS_ENVIRONMENT.
12375
12376 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
12377
12378         exclude: Unescape hashed patterns in wildcard mode.
12379         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
12380         to the hash list.
12381         * tests/test-exclude8.sh: New test case.
12382         * modules/exclude-tests: Add new test.
12383
12384 2010-05-05  Eric Blake  <eblake@redhat.com>
12385
12386         verify: automate tests
12387         * modules/verify-tests: New module.
12388         * tests/test-verify.sh: New file.
12389         * tests/test-verify.c: Guard each negative test with a unique id.
12390         Also avoid warning about unused left hand of comma expressions.
12391
12392 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12393
12394         Further improvements to verify.h, suggested by Eric Blake.
12395         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
12396         the GL_* versions, to avoid collision with OpenGL.
12397         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
12398         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
12399         than testing merely whether it's defined.
12400
12401         Modify verify.h to pacify gcc -Wredundant_decls.
12402         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
12403         These use the prefix "GL_" since they're likely to be useful elsewhere.
12404         We may need to break them out into a different .h file.
12405         (__COUNTER__): Define to 0 if the compiler doesn't support it.
12406         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
12407         of verify_function__.
12408
12409 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12410
12411         Tests for module pwrite.
12412         * modules/pwrite-tests: New file.
12413         * tests/test-pwrite.sh: New file.
12414         * tests/test-pwrite.c: New file.
12415
12416         New module pwrite.
12417         * lib/unistd.in.h (pwrite): New declaration.
12418         * lib/pwrite.c: New file, from glibc with modifications.
12419         * m4/pwrite.m4: New file.
12420         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
12421         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
12422         REPLACE_PWRITE.
12423         * modules/pwrite: New file.
12424         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
12425         REPLACE_PWRITE.
12426         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
12427         * doc/posix-functions/pwrite.texi: Mention the new module.
12428
12429 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
12430
12431         pread: Update documentation.
12432         * doc/posix-functions/pread.texi: Mention the 'pread' module.
12433
12434 2010-05-04  Eric Blake  <eblake@redhat.com>
12435
12436         docs: update cygwin progress
12437         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
12438         this bug.
12439         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
12440         Added in cygwin 1.7.2.
12441         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
12442         Likewise.
12443         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
12444         Likewise.
12445         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12446         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12447         * doc/glibc-functions/accept4.texi (accept4): Likewise.
12448         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
12449         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
12450         Mention nproc module.
12451         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
12452         bug in cygwin 1.7.5 addition.
12453         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
12454         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
12455         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
12456         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
12457         1.7.5.
12458         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
12459         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
12460         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
12461         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
12462         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
12463         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
12464         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
12465         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
12466         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
12467         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
12468         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
12469         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
12470         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
12471         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
12472         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
12473         Likewise.
12474         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
12475         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
12476         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
12477         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
12478         Likewise.
12479         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
12480         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
12481         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
12482         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
12483         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
12484         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
12485         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
12486         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
12487         Likewise.
12488         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
12489         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
12490         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
12491         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
12492         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
12493         Likewise.
12494         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
12495         Likewise.
12496         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
12497         Likewise.
12498         * doc/glibc-functions/xdrrec_endofrecord.texi
12499         (xdrrec_endofrecord): Likewise.
12500         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
12501         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
12502         Likewise.
12503         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
12504         Likewise.
12505
12506 2010-05-04  Jim Meyering  <meyering@redhat.com>
12507
12508         gendocs.sh: make its "-s FILE" option more useful
12509         * build-aux/gendocs.sh: When honoring the -s FILE option, update
12510         $PACKAGE to reflect the probably-different basename of "FILE".
12511
12512 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12513
12514         bootstrap: don't ignore download_po_files failure
12515         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
12516         failure.
12517
12518 2010-05-03  Jim Meyering  <meyering@redhat.com>
12519
12520         maint.mk: allow to pass options to gendocs.sh
12521         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
12522         (gendocs_options_): New overridable variable.
12523
12524         gnu-web-doc-update: don't ignore configure or build failure
12525         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
12526
12527         announce-gen: backslash-escape '@'s in --help output
12528         * build-aux/announce-gen: Fix syntax errors.
12529
12530         maint.mk, announce-gen: allow project-specific announcement mail headers
12531         * top/maint.mk (translation_project_): Define default.
12532         (announcement_Cc_, announcement_mail_headers_): Likewise.
12533         (announcement): Invoke announce-gen with new --mail-headers option.
12534         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
12535
12536         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
12537         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
12538         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
12539         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
12540         line in the "err2" output file when running "make check" in verbose
12541         mode (i.e., with set -x enabled).
12542
12543 2010-05-03  Bruno Haible  <bruno@clisp.org>
12544
12545         wctob: Fix for weird platforms.
12546         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
12547         argument value.
12548
12549 2010-05-03  Jim Meyering  <meyering@redhat.com>
12550
12551         maint.mk: prohibit unwarranted use of <strings.h>
12552         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
12553         strings.h in a file that does not also use strcasecmp, strncasecmp,
12554         ffs or ffsll.
12555
12556         maint.mk: remove obsolete comments
12557         * top/maint.mk: Remove stale, commented-out rules.
12558
12559 2010-05-02  Bruno Haible  <bruno@clisp.org>
12560
12561         wcwidth: Declare also when it's aliased.
12562         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
12563         macro.
12564
12565 2010-05-02  Bruno Haible  <bruno@clisp.org>
12566
12567         Fix regression from 2010-04-25.
12568         * gnulib-tool (func_modules_transitive_closure): Check the status of
12569         all modules, not only of the tests that are of the form foo-tests where
12570         foo is a module.
12571
12572 2010-05-02  Bruno Haible  <bruno@clisp.org>
12573
12574         wctob: Work around nasty Cygwin 1.7.2 bug.
12575         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
12576         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
12577
12578 2010-05-01  Bruno Haible  <bruno@clisp.org>
12579
12580         fpurge: Sharper test.
12581         * tests/test-fpurge.c (main): Add one more ftell check.
12582         * modules/fpurge-tests (Depends-on): Add ftell.
12583         Suggested by Eric Blake.
12584
12585 2010-05-01  Bruno Haible  <bruno@clisp.org>
12586
12587         ftello: Another test.
12588         * tests/test-ftello3.c: New file.
12589         * modules/ftello-tests (Files): Add it.
12590         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12591         MOSTLYCLEANFILES.
12592
12593         ftell: Another test.
12594         * tests/test-ftell3.c: New file.
12595         * modules/ftell-tests (Files): Add it.
12596         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
12597         MOSTLYCLEANFILES.
12598
12599 2010-05-01  Bruno Haible  <bruno@clisp.org>
12600
12601         ftell, ftello: Work around Solaris bug.
12602         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
12603         * lib/ftello.c: Include stdio-impl.h.
12604         (ftello): On Solaris, when _IOWRT is set, compute the result without
12605         looking at _IOREAD.
12606         * modules/ftello (Files): Add lib/stdio-impl.h.
12607         * doc/posix-functions/ftell.texi: Mention Solaris bug.
12608         * doc/posix-functions/ftello.texi: Likewise.
12609         Reported by Eric Blake.
12610
12611 2010-05-01  Bruno Haible  <bruno@clisp.org>
12612
12613         freading: Adapt to special meaning of _IOREAD flag on Solaris.
12614         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
12615         the _IOWRT flag is also set.
12616
12617 2010-05-01  Bruno Haible  <bruno@clisp.org>
12618
12619         Fix doc about a HP-UX stdio bug.
12620         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
12621         * doc/posix-functions/ftello.texi: Likewise.
12622
12623 2010-05-01  Bruno Haible  <bruno@clisp.org>
12624
12625         lseek test: Fix failure on Solaris.
12626         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
12627         output.
12628
12629 2010-04-30  Jim Meyering  <meyering@redhat.com>
12630
12631         bootstrap: don't ignore failure to generate po*/Makevars
12632         * build-aux/bootstrap (with_gettext): Don't ignore failure
12633         to create po/Makevars or runtime-po/Makevars.
12634
12635 2010-04-29  Eric Blake  <eblake@redhat.com>
12636
12637         headers: relax license to LGPLv2+
12638         * modules/fcntl-h (License): Relax license.
12639         * modules/getopt-posix (License): Likewise.
12640         * modules/locale (License): Likewise.
12641         * modules/math (License): Likewise.
12642         * modules/pty (License): Likewise.
12643         * modules/sched (License): Likewise.
12644         * modules/search (License): Likewise.
12645         * modules/spawn (License): Likewise.
12646         * modules/stdarg (License): Likewise.
12647         * modules/sysexits (License): Likewise.
12648
12649 2010-04-29  Jim Meyering  <meyering@redhat.com>
12650
12651         inttypes: relax license to LGPLv2+
12652         * modules/inttypes (License): Relax license.
12653
12654 2010-04-29  Simon Josefsson  <simon@josefsson.org>
12655
12656         * top/maint.mk (indent): Run twice to produce idempotent results.
12657
12658 2010-04-28  Bruno Haible  <bruno@clisp.org>
12659
12660         getdate: Generate getdate.c in the source directory.
12661         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
12662         MOSTLYCLEANFILES.
12663         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
12664
12665 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
12666
12667         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
12668         is not declared as a const *; avoid warnings in that case.
12669
12670 2010-04-28  Eric Blake  <eblake@redhat.com>
12671
12672         canonicalize-lgpl: avoid compiler warning
12673         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
12674         declaration' / 'extraneous semicolon' warning with some compilers.
12675         Reported by Andreas Gruenbacher.
12676
12677 2010-04-28  Jim Meyering  <meyering@redhat.com>
12678
12679         init.sh: ensure a more reliable exit status when exiting via trap
12680         * tests/init.sh (setup_): Don't rely on $? in signal handler.
12681         Inspired by patches from Dmitry V. Levin.
12682         Also trap on signal 3 (SIGQUIT).
12683
12684 2010-04-27  Bruno Haible  <bruno@clisp.org>
12685
12686         Update doc about utimes().
12687         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
12688         'utimens' module.
12689         Reported by Andreas Gruenbacher <agruen@suse.de>.
12690
12691 2010-04-27  Eric Blake  <eblake@redhat.com>
12692
12693         full-read, full-write: relax license
12694         * modules/full-read (License): Drop to LGPLv2+.
12695         * modules/full-write (License): Likewise.
12696         * modules/safe-read (License): Likewise.
12697         * modules/safe-write (License): Likewise.
12698
12699         pthread: mention library for linking
12700         * modules/pthread (Link): Mention $(LIB_PTHREAD).
12701
12702 2010-04-27  Jim Meyering  <meyering@redhat.com>
12703
12704         maint.mk: fix a bug introduced in last change
12705         * top/maint.mk (gl_assured_headers_): Now that all names are on
12706         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
12707         is not anchored to end of word, it should be adequate.
12708
12709         maint.mk: avoid side-effect in latest syntax-check
12710         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
12711         to run commands via $(shell...), and hence to incur cost only when
12712         the new rule is actually run.
12713
12714         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
12715         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
12716         and use that to create a regexp used to detect all #if HAVE_..._H uses.
12717         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
12718         (gl_assured_headers_, az_, AZ_): Define.
12719         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
12720
12721 2010-04-26  Jim Meyering  <jim@meyering.net>
12722             Bruno Haible  <bruno@clisp.org>
12723
12724         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
12725         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
12726         Prompted by an exchange with Gilles Espinasse.
12727
12728 2010-04-26  Jim Meyering  <meyering@redhat.com>
12729
12730         git-version-gen: aesthetic tweak
12731         * build-aux/git-version-gen: Use "$nl" rather than a literal,
12732         so that the command remains on a single line.
12733
12734 2010-04-26  Eric Blake  <eblake@redhat.com>
12735
12736         git-version-gen: allow use on EBCDIC hosts
12737         * build-aux/git-version-gen (dirty): Use literal rather than tying
12738         ourselves to ascii.
12739         Reported by Steve Goetze.
12740
12741 2010-04-25  Bruno Haible  <bruno@clisp.org>
12742
12743         netdb: Add support for GNULIB_POSIXCHECK.
12744         * lib/netdb.in.h: Include warn-on-use.h.
12745         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
12746         functions are used when GNULIB_POSIXCHECK is defined and the
12747         getaddrinfo module is not in use.
12748         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
12749         freeaddrinfo, gai_strerror, getnameinfo are declared.
12750         * modules/netdb (Depends-on): Add warn-on-use.
12751         (Makefile.am): Include warn-on-use.h in netdb.h.
12752
12753 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
12754
12755         build: avoid "make check" failure without .git/ directory
12756         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
12757         there is no .git/ directory.
12758
12759 2010-04-25  Bruno Haible  <bruno@clisp.org>
12760
12761         ptsname: Fix misuse of ttyname_r.
12762         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
12763         of errno.
12764
12765 2010-04-25  Bruno Haible  <bruno@clisp.org>
12766
12767         ttyname_r: Make it work on Solaris 10.
12768         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
12769         if the system function has the POSIX declaration. Test whether the
12770         function fails if the buffer is less than 128 bytes large.
12771         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
12772         system's ttyname_r function. Provide a reasonably large buffer.
12773         * modules/ttyname_r (Depends-on): Add extensions.
12774         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
12775
12776 2010-04-25  Bruno Haible  <bruno@clisp.org>
12777
12778         Use the 'extensions' module for some more functions on Solaris.
12779         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
12780         module.
12781         * doc/posix-functions/ctime_r.texi: Likewise.
12782         * doc/posix-functions/getgrgid_r.texi: Likewise.
12783         * doc/posix-functions/getgrnam_r.texi: Likewise.
12784         * doc/posix-functions/getpwnam_r.texi: Likewise.
12785         * doc/posix-functions/getpwuid_r.texi: Likewise.
12786         * doc/posix-functions/readdir_r.texi: Likewise.
12787         * doc/posix-functions/sigwait.texi: Likewise.
12788         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
12789         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
12790
12791 2010-04-25  Bruno Haible  <bruno@clisp.org>
12792
12793         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
12794         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
12795         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
12796         * lib/ttyname_r.c: Include <limits.h>.
12797         (ttyname_r): Define using the system's ttyname_r function, if it exists
12798         and not on Solaris.
12799         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
12800         set.
12801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
12802         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
12803         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
12804         Reported by Simon Josefsson.
12805
12806 2010-04-25  Bruno Haible  <bruno@clisp.org>
12807
12808         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
12809         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
12810         * doc/posix-functions/ctime_r.texi: Likewise.
12811         * doc/posix-functions/getgrgid_r.texi: Likewise.
12812         * doc/posix-functions/getgrnam_r.texi: Likewise.
12813         * doc/posix-functions/getlogin_r.texi: Likewise.
12814         * doc/posix-functions/getpwnam_r.texi: Likewise.
12815         * doc/posix-functions/getpwuid_r.texi: Likewise.
12816         * doc/posix-functions/readdir_r.texi: Likewise.
12817         * doc/posix-functions/sigwait.texi: Likewise.
12818         * doc/posix-functions/ttyname_r.texi: Likewise.
12819         Reported by Simon Josefsson.
12820
12821 2010-04-25  Bruno Haible  <bruno@clisp.org>
12822
12823         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
12824         * gnulib-tool (func_usage): Document that --with-*-tests options apply
12825         also to --create-testdir.
12826         (func_acceptable): Don't consider the status of *-tests modules here.
12827         (func_modules_transitive_closure): Consider it here, before including a
12828         test module.
12829         (func_import, func_create_testdir): Set inc_all_direct_tests,
12830         inc_all_indirect_tests.
12831         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
12832         --create-testdir and --create-megatestdir.
12833
12834 2010-04-25  Bruno Haible  <bruno@clisp.org>
12835
12836         gnulib-tool: Add --without-*-tests options.
12837         * gnulib-tool (func_usage): Document the --without-*-tests options.
12838         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
12839         excl_unportable_tests): New variables.
12840         Fail if they are specified with --import or --update.
12841         (func_acceptable): Respect the excl_*_tests variables.
12842         (func_import): Set the excl_*_tests variables to empty.
12843
12844 2010-04-25  Simon Josefsson  <simon@josefsson.org>
12845             Bruno Haible  <bruno@clisp.org>
12846
12847         Work around a MacOS X 10.4 bug with openpty.
12848         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
12849         * tests/test-openpty.c (main): Close the master side explicitly.
12850
12851 2010-04-25  Bruno Haible  <bruno@clisp.org>
12852
12853         strnlen: Fix a C++ test error on MacOS X and Solaris.
12854         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
12855         the function is not declared.
12856         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
12857         Simon Josefsson.
12858
12859 2010-04-24  Bruno Haible  <bruno@clisp.org>
12860
12861         Avoid a gcc warning.
12862         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
12863         of correct type for %08lx directive.
12864         Reported by Eric Blake.
12865
12866 2010-04-24  Bruno Haible  <bruno@clisp.org>
12867
12868         vasnprintf: Correct errno value in case of out-of-memory.
12869         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
12870         or sprintf. Use the errno value from SNPRINTF or sprintf.
12871         Reported by Ian Beckwith <ianb@erislabs.net>.
12872
12873 2010-04-24  Bruno Haible  <bruno@clisp.org>
12874
12875         ansi-c++-opt: Find correct compiler when cross-compiling.
12876         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
12877         AC_CHECK_PROGS.
12878         Reported by Simon Josefsson.
12879
12880 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
12881
12882         vc-list-files: Add support for subversion
12883         * build-aux/vc-list-files: Use "svn list" to generate the list of
12884         files controlled by subversion.
12885
12886 2010-04-23  Jim Meyering  <meyering@redhat.com>
12887
12888         vc-list-files tests: convert to use init.sh
12889         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
12890         path_prepend_.
12891         Use Exit, not exit.
12892         Use skip_ rather than open coding it.
12893         Remove trap set-up and compare definitions.
12894         * tests/test-vc-list-files-git.sh: Likewise.
12895         * modules/vc-list-files-tests (Files): Add tests/init.sh.
12896
12897 2010-04-22  Simon Josefsson  <simon@josefsson.org>
12898
12899         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
12900         backup files.
12901
12902 2010-04-21  Simon Josefsson  <simon@josefsson.org>
12903
12904         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
12905
12906 2010-04-20  Eric Blake  <eblake@redhat.com>
12907
12908         tests: be robust to ignored SIGPIPE
12909         * tests/test-select-in.sh: Consume all output.
12910         * tests/test-lseek.sh: Check correct exit status, while avoiding
12911         EPIPE.
12912
12913 2010-04-20  Simon Josefsson  <simon@josefsson.org>
12914             Bruno Haible  <bruno@clisp.org>
12915
12916         visibility: Don't use -fvisibility if it leads to a warning.
12917         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
12918         yes, don't pretend that visibility works if it leads to a warning.
12919         Reported by Mike Gran <spk121@yahoo.com>.
12920
12921 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
12922
12923         * build-aux/bootstrap: Use "git -h" for testing for supported options
12924         instead of "git --help".  The short-form option only shows a summary,
12925         and doesn't layout the full man page.  Grep for the full option name
12926         in the summary, too.
12927
12928 2010-04-19  Bruno Haible  <bruno@clisp.org>
12929
12930         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
12931         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
12932         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
12933         mention of RELOCATABLE_STRIP.
12934         Reported by Sylvain Beucler <beuc@beuc.net>.
12935
12936 2010-04-19  Bruno Haible  <bruno@clisp.org>
12937
12938         * lib/diffseq.h: Fix typo in comment.
12939         Reported by Eric Blake.
12940
12941 2010-04-19  Bruno Haible  <bruno@clisp.org>
12942
12943         ioctl: Move autoconf macro to a .m4 file.
12944         * m4/ioctl.m4: New file, extracted from modules/ioctl.
12945         * modules/ioctl (Files): Add it.
12946         (configure.ac): Simply invoke gl_FUNC_IOCTL.
12947         Reported by Ian Beckwith <ianb@erislabs.net>.
12948
12949 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
12950             Bruno Haible  <bruno@clisp.org>
12951
12952         diffseq: Accommodate use-case with abstract arrays.
12953         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
12954         is not defined.
12955         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
12956         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
12957
12958 2010-04-18  Bruno Haible  <bruno@clisp.org>
12959
12960         * doc/posix-headers/stdbool.texi: More precise wording.
12961
12962 2010-04-17  Jim Meyering  <meyering@redhat.com>
12963
12964         maint.mk: use gnu-style indentation in an embedded perl script
12965         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
12966         Rename variable: s/two/last_two_bytes/
12967
12968 2010-04-16  Eric Blake  <eblake@redhat.com>
12969
12970         test-stdbool: skip test that fails with Solaris CC
12971         * tests/test-stdbool.c (f): Skip test that causes compilation
12972         error under buggy C++ compiler.
12973         * lib/stdbool.in.h: Document the limitation.
12974         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
12975
12976         setenv: allow compilation with C++
12977         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
12978         register keyword.
12979
12980         stdint: allow test to pass with C++
12981         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
12982
12983         getopt: allow compilation with C++
12984         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
12985         struct.
12986         * lib/getopt.c (_getopt_internal_r): Use correct type.
12987         Reported by Dagobert Michelson, via Joel E. Denny.
12988
12989 2010-04-16  Bruno Haible  <bruno@clisp.org>
12990
12991         Override netdb.h always.
12992         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
12993         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
12994         Reported by Ludovic Courtès <ludo@gnu.org>.
12995
12996 2010-04-15  Bruno Haible  <bruno@clisp.org>
12997
12998         openpty: Fix mistake from 2010-03-21.
12999         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13000         Reported by Simon Josefsson.
13001
13002 2010-04-15  Eric Blake  <eblake@redhat.com>
13003
13004         test-forkpty: fix expected signature
13005         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13006         Reported by Simon Josefsson.
13007
13008 2010-04-15  Jim Meyering  <meyering@redhat.com>
13009
13010         maint.mk: texinfo_suffix_re_: correct the default regexp
13011         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13012
13013         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13014         make it configurable via texinfo_suffix_re_.
13015
13016 2010-04-14  Eric Blake  <eblake@redhat.com>
13017
13018         strtok_r: relax license to LGPLv2+
13019         * modules/strtok_r (License): Relax license.
13020         Reported by Matthias Bolte.
13021
13022 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13023
13024         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13025         version 1.4.4 by default instead of requiring the libgcrypt
13026         version used during build.  This makes it possible to use the
13027         application with older but still binary compatible libgcrypt
13028         versions.
13029
13030 2010-04-13  Eric Blake  <eblake@redhat.com>
13031
13032         getopt-gnu: match recent glibc fixes and posix ruling
13033         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13034         '+' handling, when requesting extensions.
13035         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13036         'W;' handling.
13037         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13038         * doc/posix-functions/getopt.texi (getopt): Document this.
13039         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13040         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13041         Likewise.
13042
13043         getopt: merge bug fixes from glibc
13044         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13045         diagnostics.  Honor '+:' correctly.  Reject ';'.
13046
13047         getopt-posix: detect MacOS bug
13048         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13049         optind when missing a required argument.
13050         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13051         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13052         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13053         Likewise.
13054
13055         getopt-posix: avoid spurious failure on Solaris
13056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13057         an indicator that setting optind=1 is sufficient for reset.
13058
13059         getopt-posix: avoid spurious failure on FreeBSD
13060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13061         in POSIX mode, since the m4 test uses it.
13062
13063         gnulib-tool: silence warning on BSD sh
13064         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13065
13066 2010-04-13  Jim Meyering  <meyering@redhat.com>
13067
13068         doc: users.txt: GNU patch now uses gnulib
13069         * users.txt: Add patch.
13070
13071 2010-04-12  Jim Meyering  <meyering@redhat.com>
13072
13073         maint.mk: generate more concise timing data for syntax-check rules
13074         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13075         " done" from each line that reports a syntax-check test duration.
13076
13077 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13078
13079         git-version-gen: use "git update-index..." rather than "git status"
13080         * build-aux/git-version-gen: Use git update-index --refresh, not
13081         "git status".  With some versions of git, "git status" would fail
13082         to update the index and result in an unwarranted "-dirty" suffix.
13083
13084 2010-04-11  Jim Meyering  <meyering@redhat.com>
13085
13086         openat: correct formatting (no semantic change)
13087         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13088         Suggested by Bruno Haible.
13089
13090 2010-04-11  Bruno Haible  <bruno@clisp.org>
13091
13092         Stricter declaration checking in testdirs.
13093         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13094         If for_tests is true, augment AM_CPPFLAGS to define
13095         GNULIB_STRICT_CHECKING.
13096         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13097         GNULIB_STRICT_CHECKING is defined, verify that the function is
13098         declared.
13099
13100 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13101             Bruno Haible  <bruno@clisp.org>
13102
13103         libunistring: Improve configure output.
13104         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13105         Don't say "consider installing GNU libunistring" when checking again
13106         with libiconv.
13107
13108 2010-04-11  Bruno Haible  <bruno@clisp.org>
13109
13110         libunistring: Correct value of $LTLIBUNISTRING.
13111         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13112         correct the value of $LTLIBUNISTRING.
13113
13114 2010-04-11  Bruno Haible  <bruno@clisp.org>
13115
13116         havelib: Add static libraries to LIBS in the right order.
13117         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13118         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13119
13120 2010-04-11  Bruno Haible  <bruno@clisp.org>
13121
13122         libunistring: Detect libunistring also when it depends on libiconv.
13123         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13124         the second AC_LIB_HAVE_LINKFLAGS invocation.
13125
13126 2010-04-11  James Youngman  <jay@gnu.org>
13127
13128         close-stream: declare local scalars to be "const"
13129         * lib/close-stream.c (close_stream): Make boolean variables const
13130         to document the fact that we set but do not change them.
13131
13132 2010-04-11  Bruno Haible  <bruno@clisp.org>
13133
13134         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13135
13136 2010-04-11  Jim Meyering  <meyering@redhat.com>
13137
13138         maint.mk: don't include dist-check.mk
13139         * top/maint.mk: Remove bogus include directive.
13140
13141         maint.mk: improve empty-line-at-EOF check
13142         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13143         solution, rather than tail+Perl-based one.  The latter would read
13144         a few kilobytes from the end of each file, and did not handle empty
13145         files properly.
13146
13147         maint.mk: print the elapsed time for each syntax-check rule
13148         * top/maint.mk (sc_m_rules_): Save start time in a file.
13149         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13150         (local-check): Interpose the .z rules
13151
13152 2010-04-11  Jim Meyering  <meyering@redhat.com>
13153
13154         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13155         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13156         empty file with one that ends in an empty line.
13157
13158 2010-04-10  Bruno Haible  <bruno@clisp.org>
13159
13160         mkdir: Make it work on mingw64.
13161         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13162         * lib/mkdir.c: Update comment.
13163         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
13164
13165 2010-04-10  Bruno Haible  <bruno@clisp.org>
13166
13167         Don't override improved macro from newer autoconf.
13168         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13169         autoconf >= 2.62.
13170         Reported by Joel E. Denny <jdenny@clemson.edu>.
13171
13172 2010-04-10  Jim Meyering  <meyering@redhat.com>
13173
13174         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13175         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13176
13177         maint.mk: correct a diagnostic
13178         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13179         in diagnostic; now use $prohibit.
13180
13181 2010-04-10  Bruno Haible  <address@hidden>
13182
13183         fchownat: Fix a C++ test error on Solaris 8.
13184         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13185         the function does not exist.
13186
13187 2010-04-10  Bruno Haible  <bruno@clisp.org>
13188
13189         vasnprintf: Add more tests.
13190         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13191         (test_function): Test converting an invalid wide string.
13192
13193         vasnprintf: Correct handling of unconvertible wide string arguments.
13194         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13195         VASNPRINTF.
13196         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13197         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13198         smaller than the expected maximum need for the directive. Set errno to
13199         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13200         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13202         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13203         * modules/vasnprintf (Files): Add m4/printf.m4.
13204         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13205
13206 2010-04-10  Bruno Haible  <bruno@clisp.org>
13207
13208         vasnprintf: Fix crash in %ls directive.
13209         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
13210         string is passed as argument to %ls, with no precision and no width.
13211         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13212
13213 2010-04-10  Bruno Haible  <bruno@clisp.org>
13214
13215         vasnprintf: Fix multiple test failures on mingw.
13216         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
13217         _snprintf, or snwprintf, not _snwprintf.
13218
13219 2010-04-10  Bruno Haible  <bruno@clisp.org>
13220
13221         write: Fix a C++ test error on mingw.
13222         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
13223
13224 2010-04-10  Bruno Haible  <bruno@clisp.org>
13225
13226         vasnprintf test: Reduce code duplication.
13227         * tests/test-vasnprintf.c (test_function): New function, extracted from
13228         test_vasnprintf.
13229         (test_vasnprintf, test_asnprintf): Invoke it.
13230
13231 2010-04-10  Bruno Haible  <bruno@clisp.org>
13232
13233         strnlen: Fix warning in C++ mode on MacOS X.
13234         * lib/string.in.h (strnlen): Use the modern idiom.
13235         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
13236         defining strnlen as a macro already in <config.h>.
13237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13238         REPLACE_STRNLEN.
13239         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
13240         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13241
13242 2010-04-08  James Youngman  <jay@gnu.org>
13243
13244         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
13245         the example.
13246
13247 2010-04-09  Jim Meyering  <meyering@redhat.com>
13248
13249         maint.mk: print better diagnostic when there is no $(_hv_file)
13250         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
13251         announce that when $(_hv_file) (aka help-version) does not exist.
13252
13253         init.sh: run tr in the "C" locale to avoid multibyte interpretation
13254         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
13255         not try to interpret its random input bytes.  Jarno Rajahalme reported
13256         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
13257         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
13258         (mktempd_): Likewise, just in case.
13259
13260         ftruncate: add two years to projected module removal date: 2012
13261         * m4/ftruncate.m4: Adjust comments.
13262
13263         ftruncate: mark module as obsolete; even MinGW provides it, now
13264         * modules/ftruncate (Status): Obsolete.
13265         (Notice): Say that.
13266         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
13267         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
13268
13269 2010-04-08  Bruno Haible  <bruno@clisp.org>
13270
13271         Fix side effects from tests-related modules.
13272         * modules/dprintf-posix (Comment): New section.
13273         * modules/fprintf-posix (Comment): Likewise.
13274         * modules/obstack-printf-posix (Comment): Likewise.
13275         * modules/printf-posix (Comment): Likewise.
13276         * modules/snprintf-posix (Comment): Likewise.
13277         * modules/sprintf-posix (Comment): Likewise.
13278         * modules/vasnprintf-posix (Comment): Likewise.
13279         * modules/vasprintf-posix (Comment): Likewise.
13280         * modules/vdprintf-posix (Comment): Likewise.
13281         * modules/vfprintf-posix (Comment): Likewise.
13282         * modules/vprintf-posix (Comment): Likewise.
13283         * modules/vsnprintf-posix (Comment): Likewise.
13284         * modules/vsprintf-posix (Comment): Likewise.
13285         * modules/xprintf-posix (Comment): Likewise.
13286         * modules/xvasprintf-posix (Comment): Likewise.
13287         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
13288         * modules/floorf-tests (Depends-on): Likewise.
13289         * modules/round-tests (Depends-on): Likewise.
13290         * modules/roundf-tests (Depends-on): Likewise.
13291         * modules/trunc-tests (Depends-on): Likewise.
13292         * modules/truncf-tests (Depends-on): Likewise.
13293         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
13294         'fprintf-posix' module is not present.
13295         * tests/test-floorf2.c (check): Likewise.
13296         * tests/test-trunc2.c (check): Likewise.
13297         * tests/test-truncf2.c (check): Likewise.
13298         * tests/test-round2.c (equal): Likewise.
13299         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13300
13301 2010-04-07  Karl Berry  <karl@gnu.org>
13302
13303         * config/srclist.txt,
13304         * config/srclistvars.sh,
13305         * config/srclist-update: doc fixes.
13306
13307 2010-04-07  Jim Meyering  <meyering@redhat.com>
13308
13309         maint.mk: add a PATH crosschecking syntax-check rule
13310         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
13311         Useful if you use a test like the one in help-version (coreutils,
13312         diffutils, grep, gzip) that ensures $(VERSION) matches what is
13313         printed by prog --version.
13314
13315 2010-04-06  Bruno Haible  <bruno@clisp.org>
13316
13317         Fix link error on mingw.
13318         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
13319         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
13320
13321 2010-04-06  Bruno Haible  <bruno@clisp.org>
13322
13323         Assume rmdir exists.
13324         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
13325
13326 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
13327
13328         doc: update users.txt
13329         * users.txt: Add gcal.
13330
13331 2010-04-06  Jim Meyering  <meyering@redhat.com>
13332
13333         init.sh: simply unset TMPDIR rather than risking env -i
13334         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
13335         although it probably works fine on all Unix-based systems, some
13336         systems (Cygwin?) cannot tolerate a totally cleared environment.
13337         Suggestion from Eric Blake.
13338
13339 2010-04-06  Jim Meyering  <meyering@redhat.com>
13340
13341         init.sh: portability fix: use env's POSIX-specified -i option not -u
13342         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
13343         than unportable env -u.  Solaris 5.11's env lacks support for -u.
13344
13345 2010-04-05  Bruno Haible  <bruno@clisp.org>
13346
13347         btowc: Work around Cygwin 1.7.2 bug.
13348         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
13349         does not map NUL to 0.
13350         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
13351
13352 2010-04-05  Bruno Haible  <bruno@clisp.org>
13353
13354         Make the multithread modules work on Cygwin 1.7.2.
13355         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
13356         imported symbols can be declared weak, so that it returns "no" on
13357         Cygwin 1.7.2.
13358
13359 2010-04-05  Bruno Haible  <bruno@clisp.org>
13360
13361         Use the module 'strncat'.
13362         * modules/unistr/u8-strncat (Depends-on): Add strncat.
13363
13364         Tests for module 'strncat'.
13365         * modules/strncat-tests: New file.
13366         * tests/test-strncat.c: New file.
13367
13368         New module 'strncat'.
13369         * lib/string.in.h (strncat): New declaration.
13370         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
13371         * m4/strncat.m4: New file, based on m4/memchr.m4.
13372         * modules/strncat: New file.
13373         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
13374         is declared.
13375         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
13376         REPLACE_STRNCAT.
13377         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
13378         REPLACE_STRNCAT.
13379         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
13380         module.
13381         * tests/test-string-c++.cc: Check signature of strncat.
13382
13383 2010-04-05  Jim Meyering  <meyering@redhat.com>
13384
13385         xstrtoumax-tests: convert to use init.sh
13386         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
13387         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13388         Use Exit, not exit.
13389         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13390
13391         xstrtoimax-tests: convert to use init.sh
13392         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
13393         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13394         Use Exit, not exit.
13395         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13396
13397 2010-04-05  Bruno Haible  <bruno@clisp.org>
13398
13399         sys_socket: Avoid #define replacements in C++ mode.
13400         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
13401         warning to the function if possible, rather than #defining the symbol
13402         to a dysfunctional alias.
13403
13404 2010-04-05  Bruno Haible  <bruno@clisp.org>
13405
13406         fseeko: Fix C++ test error on mingw.
13407         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
13408         gl_FUNC_FSEEKO.
13409         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
13410         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
13411         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
13412         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
13413
13414 2010-04-05  Bruno Haible  <bruno@clisp.org>
13415
13416         duplocale: Improve test output.
13417         * tests/test-duplocale.c (main): Print reason for skipped test.
13418
13419 2010-04-05  Bruno Haible  <bruno@clisp.org>
13420
13421         Assume rmdir exists.
13422         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
13423         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
13424
13425 2010-04-05  Bruno Haible  <bruno@clisp.org>
13426
13427         Fix link error on Solaris 8 with cc.
13428         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
13429
13430 2010-04-05  Bruno Haible  <bruno@clisp.org>
13431
13432         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13433         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
13434
13435 2010-04-05  Bruno Haible  <bruno@clisp.org>
13436
13437         vasprintf: Update documentation.
13438         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
13439
13440 2010-04-05  Bruno Haible  <bruno@clisp.org>
13441
13442         ptsname: Improve test.
13443         * tests/test-ptsname.c (main): Also try the various master names of BSD
13444         systems.
13445
13446 2010-04-05  Bruno Haible  <bruno@clisp.org>
13447
13448         memchr: Avoid a possible C++ test error.
13449         * lib/string.in.h (memchr): Provide declaration if function is missing.
13450         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
13451         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
13452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
13453         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
13454
13455 2010-04-05  Bruno Haible  <bruno@clisp.org>
13456
13457         strtok_r: Improve idiom.
13458         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
13459         AC_LIBOBJ is used.
13460
13461 2010-04-05  Bruno Haible  <bruno@clisp.org>
13462
13463         strdup: Improve idiom.
13464         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
13465         AC_LIBOBJ is used.
13466         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
13467         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
13468         when AC_LIBOBJ is used.
13469
13470 2010-04-05  Bruno Haible  <bruno@clisp.org>
13471
13472         mbsinit, mbrtowc, wcrtomb: Improve idioms.
13473         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
13474         don't set REPLACE_MBSINIT to 1.
13475         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
13476         don't set REPLACE_MBRTOWC to 1.
13477         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
13478         exist, don't set REPLACE_MBSRTOWCS to 1.
13479         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
13480         exist, don't set REPLACE_MBSNRTOWCS to 1.
13481         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
13482         don't set REPLACE_WCRTOMB to 1.
13483         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
13484         exist, don't set REPLACE_WCSRTOMBS to 1.
13485         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
13486         exist, don't set REPLACE_WCSNRTOMBS to 1.
13487
13488 2010-04-05  Bruno Haible  <bruno@clisp.org>
13489
13490         ldexpl: Improve idiom.
13491         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
13492         make sure to set HAVE_DECL_LDEXPL to 0.
13493
13494 2010-04-05  Jim Meyering  <meyering@redhat.com>
13495
13496         xstrtol-tests: convert to use init.sh
13497         * modules/xstrtol-tests (Files): Add tests/init.sh.
13498         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13499         Use Exit, not exit.
13500         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13501
13502         atexit-tests: convert to use init.sh
13503         * modules/atexit-tests (Files): Add tests/init.sh.
13504         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
13505         Use Exit, not exit.
13506         Remove uses of $EXEEXT and "./" to run a program in the current dir.
13507
13508         init.sh: fix typo
13509         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
13510
13511         init.sh: make it easier for a test script to write to the tty, ...
13512         when using automake's parallel-tests mode.
13513         * tests/init.sh (stderr_fileno_): Define overridable variable.
13514         (warn_): New function, to use it.
13515         (fail_, skip_, framework_failure_): Use warn_.
13516
13517 2010-04-04  Bruno Haible  <bruno@clisp.org>
13518
13519         btowc: Avoid warning.
13520         * lib/btowc.c: Include <stdlib.h>.
13521         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
13522
13523 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13524             Bruno Haible  <bruno@clisp.org>
13525
13526         wchar: Port to NetBSD 1.5.
13527         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
13528         * lib/wctype.in.h (WEOF): Likewise.
13529
13530 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
13531             Bruno Haible  <bruno@clisp.org>
13532
13533         Port extended stdio to NetBSD 1.5.
13534         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
13535         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
13536         older.
13537
13538 2010-04-04  Bruno Haible  <bruno@clisp.org>
13539
13540         string: Remove unused substitution.
13541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13542         HAVE_DECL_STRERROR.
13543         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
13544
13545 2010-04-04  Bruno Haible  <bruno@clisp.org>
13546
13547         strtod: Avoid a possible C++ test error.
13548         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
13549         set REPLACE_STRTOD.
13550
13551 2010-04-04  Bruno Haible  <bruno@clisp.org>
13552
13553         strerror: Update documentation.
13554         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
13555
13556 2010-04-04  Bruno Haible  <bruno@clisp.org>
13557
13558         stdio: Fix some C++ test errors on Solaris 8 with GCC.
13559         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
13560         _GL_CXXALIAS_SYS_CAST.
13561
13562 2010-04-04  Bruno Haible  <bruno@clisp.org>
13563
13564         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
13565         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
13566         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
13567         REPLACE_FREXPL to 1.
13568         * doc/posix-functions/frexpl.texi: Update documentation.
13569
13570 2010-04-04  Bruno Haible  <bruno@clisp.org>
13571
13572         math: Fix some C++ test errors on Solaris 8 and Cygwin.
13573         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
13574
13575 2010-04-04  Bruno Haible  <bruno@clisp.org>
13576
13577         Implement nanosleep for native Windows.
13578         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
13579
13580 2010-04-04  Bruno Haible  <bruno@clisp.org>
13581
13582         math: Fix some C++ test errors on Solaris 8.
13583         * lib/math.in.h (truncf, trunc): Use simpler idiom.
13584
13585 2010-04-04  Bruno Haible  <bruno@clisp.org>
13586
13587         math: Fix some C++ test errors on Cygwin.
13588         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
13589         truncl): Provide declaration if the system does not have it.
13590         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
13591         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
13592         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
13593         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
13594         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
13595         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
13596         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
13597         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
13598         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
13599         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
13600         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
13601         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
13602         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
13603         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
13604         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
13605         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
13606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
13607         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13608         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13609         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
13610         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
13611         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
13612
13613 2010-04-04  Bruno Haible  <bruno@clisp.org>
13614
13615         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
13616         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13617         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13618         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13619         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13620         * m4/isinf.m4 (gl_ISINF): Likewise.
13621         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13622
13623 2010-04-04  Bruno Haible  <bruno@clisp.org>
13624
13625         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
13626         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13627
13628 2010-04-04  Bruno Haible  <bruno@clisp.org>
13629
13630         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
13631         * modules/tmpfile (configure.ac): Update.
13632
13633         tmpfile: Fix C++ test error on mingw.
13634         * lib/stdio.in.h (tmpfile): New declaration.
13635         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
13636         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
13637         * modules/tmpfile (Depends-on): Add stdio.
13638         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13639         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
13640         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
13641         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
13642         REPLACE_TMPFILE.
13643         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
13644
13645 2010-04-04  Bruno Haible  <bruno@clisp.org>
13646
13647         ioctl: Fix C++ test error on mingw.
13648         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
13649         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
13650         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
13651
13652 2010-04-03  Bruno Haible  <bruno@clisp.org>
13653
13654         wcwidth: Fix C++ test error on mingw.
13655         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
13656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
13657         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
13658
13659 2010-04-03  Bruno Haible  <bruno@clisp.org>
13660
13661         nanosleep: Fix C++ test error on mingw.
13662         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
13663         * lib/time.in.h (nanosleep): Use modern idiom.
13664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
13665         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
13666         REPLACE_NANOSLEEP to 1.
13667         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
13668         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
13669
13670 2010-04-03  Bruno Haible  <bruno@clisp.org>
13671
13672         strptime: Fix C++ test error on mingw.
13673         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
13674         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
13675         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
13676         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
13677         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
13678         not REPLACE_STRPTIME.
13679         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
13680         REPLACE_STRPTIME.
13681
13682 2010-04-03  Bruno Haible  <bruno@clisp.org>
13683
13684         timegm: Fix C++ test error on mingw.
13685         * lib/time.in.h (timegm): Use modern idiom.
13686         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
13687         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
13688         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
13689         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
13690
13691 2010-04-03  Bruno Haible  <bruno@clisp.org>
13692
13693         timegm: Assume declaration if function exists.
13694         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
13695         if it exists. Don't clobber ac_cv_func_timegm.
13696
13697 2010-04-03  Bruno Haible  <bruno@clisp.org>
13698
13699         time_r: Fix C++ test error on mingw.
13700         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
13701         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
13702         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
13703         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
13704         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
13705
13706 2010-04-03  Bruno Haible  <bruno@clisp.org>
13707
13708         time_r: Minor updates.
13709         * modules/time_r (Description): Mention the provided functions.
13710         * lib/time_r.c: Don't include <string.h>.
13711         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
13712         * doc/posix-functions/localtime_r.texi: Likewise.
13713
13714 2010-04-03  Bruno Haible  <bruno@clisp.org>
13715
13716         time: Fix regression introduced on 2010-03-08.
13717         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
13718         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
13719
13720 2010-04-03  Jim Meyering  <meyering@redhat.com>
13721
13722         maint.mk: don't silently disable project-specific syntax-check rules
13723         * top/maint.mk (_prohibit_regexp): Define, to help people realize
13724         that they need to convert their project-specific syntax-check rules
13725         to use the new _sc_search_regexp.
13726
13727 2010-04-03  Bruno Haible  <bruno@clisp.org>
13728
13729         fchdir: Fix regression introduced on 2010-03-08.
13730         * lib/unistd.in.h (fchdir): Fix declaration.
13731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
13732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
13733         REPLACE_FCHDIR.
13734         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
13735         REPLACE_FCHDIR.
13736
13737 2010-04-03  Bruno Haible  <bruno@clisp.org>
13738
13739         getpagesize: Fix C++ test error on mingw.
13740         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
13741         system does not declare the function.
13742         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
13743         declared.
13744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13745         HAVE_DECL_GETPAGESIZE.
13746         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
13747
13748 2010-04-03  Bruno Haible  <bruno@clisp.org>
13749
13750         stdio: Make C++ tests work on mingw.
13751         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
13752         does not declare the function.
13753
13754 2010-04-03  Bruno Haible  <bruno@clisp.org>
13755
13756         ftello: Fix C++ test error on mingw.
13757         * lib/stdio.in.h (ftello): Use modern idiom.
13758         * lib/ftello.c (ftello): Renamed from rpl_ftello.
13759         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
13760         is missing and that it needs to be replaced.
13761         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
13762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
13763         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
13764
13765 2010-04-03  Bruno Haible  <bruno@clisp.org>
13766
13767         fseeko: Fix C++ test error on mingw.
13768         * lib/stdio.in.h (fseeko): Use modern idiom.
13769         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
13770         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
13771         is missing and that it needs to be replaced.
13772         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
13773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
13774         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
13775
13776 2010-04-03  Bruno Haible  <bruno@clisp.org>
13777
13778         mkstemp: Fix C++ test error on mingw.
13779         * lib/stdlib.in.h (mkstemp): Use modern idiom.
13780         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
13781         function is missing and that it needs to be replaced.
13782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
13783         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
13784
13785 2010-04-03  Bruno Haible  <bruno@clisp.org>
13786
13787         stpncpy: Fix C++ test error on mingw.
13788         * lib/string.in.h (stpncpy): Use modern idiom.
13789         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
13790         function is missing and that it needs to be replaced.
13791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13792         REPLACE_STPNCPY.
13793         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
13794
13795 2010-04-03  Bruno Haible  <bruno@clisp.org>
13796
13797         sys_stat: Fix C++ test error on mingw.
13798         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
13799         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
13800
13801 2010-04-03  Bruno Haible  <bruno@clisp.org>
13802
13803         pty: Update doc.
13804         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
13805
13806 2010-04-03  Bruno Haible  <bruno@clisp.org>
13807
13808         unistd: Fix C++ test error on mingw.
13809         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
13810
13811 2010-04-03  Bruno Haible  <bruno@clisp.org>
13812
13813         Update doc regarding mingw.
13814         * doc/glibc-functions/openpty.texi: Update regarding mingw.
13815         * doc/glibc-functions/login_tty.texi: Likewise.
13816         * doc/glibc-functions/forkpty.texi: Likewise.
13817
13818 2010-04-03  Bruno Haible  <bruno@clisp.org>
13819
13820         stdlib: Avoid compilation failure of c-strtold on mingw.
13821         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
13822
13823 2010-04-03  Bruno Haible  <bruno@clisp.org>
13824
13825         locale: Make C++ tests work on Cygwin and mingw.
13826         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
13827         cannot provide the function.
13828         Reported by Simon Josefsson.
13829
13830 2010-04-03  Bruno Haible  <bruno@clisp.org>
13831
13832         localename: Port to MacOS X 10.6.
13833         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
13834         memory layout of the locales in MacOS X 10.6 as well.
13835         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
13836
13837 2010-04-02  Bruno Haible  <bruno@clisp.org>
13838
13839         gnulib-tool: Ensure that long-running tests are executed last.
13840         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
13841         running tests after the one for the other tests.
13842
13843 2010-04-02  Bruno Haible  <bruno@clisp.org>
13844
13845         gnulib-tool: Ensure the tests in the main directory are executed first.
13846         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
13847         start with the current directory.
13848
13849 2010-04-02  Bruno Haible  <bruno@clisp.org>
13850
13851         Tests for module 'havelib', moved here from GNU gettext.
13852         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
13853         modifications.
13854         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
13855         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
13856         with modifications.
13857         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
13858         modifications.
13859         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
13860         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
13861         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
13862         with modifications.
13863         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
13864         with modifications.
13865         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
13866         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
13867         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
13868         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
13869         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
13870         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
13871         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
13872         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
13873         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
13874         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
13875         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
13876         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
13877         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
13878         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
13879         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
13880         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
13881         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
13882         with modifications.
13883         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
13884         with modifications.
13885         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
13886         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
13887         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
13888         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
13889         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
13890         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
13891         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
13892         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
13893         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
13894         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
13895         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
13896         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
13897         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
13898         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
13899         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
13900         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
13901         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
13902         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
13903         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
13904         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
13905         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
13906         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
13907         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
13908         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
13909         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
13910         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
13911         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
13912         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
13913         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
13914         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
13915         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
13916         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
13917         * tests/havelib/rpathx/rpathx.c: New file, from
13918         gettext/autoconf-lib-link.
13919         * tests/havelib/rpathx/Makefile.am: New file, from
13920         gettext/autoconf-lib-link.
13921         * tests/havelib/rpathx/configure.ac: New file, from
13922         gettext/autoconf-lib-link with modifications.
13923         * tests/havelib/rpathy/rpathy.c: New file, from
13924         gettext/autoconf-lib-link.
13925         * tests/havelib/rpathy/Makefile.am: New file, from
13926         gettext/autoconf-lib-link.
13927         * tests/havelib/rpathy/configure.ac: New file, from
13928         gettext/autoconf-lib-link with modifications.
13929         * tests/havelib/rpathz/rpathz.c: New file, from
13930         gettext/autoconf-lib-link.
13931         * tests/havelib/rpathz/Makefile.am: New file, from
13932         gettext/autoconf-lib-link.
13933         * tests/havelib/rpathz/configure.ac: New file, from
13934         gettext/autoconf-lib-link with modifications.
13935         * tests/havelib/rpathlx/usex.c: New file, from
13936         gettext/autoconf-lib-link.
13937         * tests/havelib/rpathlx/Makefile.am: New file, from
13938         gettext/autoconf-lib-link.
13939         * tests/havelib/rpathlx/configure.ac: New file, from
13940         gettext/autoconf-lib-link with modifications.
13941         * tests/havelib/rpathly/usey.c: New file, from
13942         gettext/autoconf-lib-link.
13943         * tests/havelib/rpathly/Makefile.am: New file, from
13944         gettext/autoconf-lib-link.
13945         * tests/havelib/rpathly/configure.ac: New file, from
13946         gettext/autoconf-lib-link with modifications.
13947         * tests/havelib/rpathlz/usez.c: New file, from
13948         gettext/autoconf-lib-link.
13949         * tests/havelib/rpathlz/Makefile.am: New file, from
13950         gettext/autoconf-lib-link.
13951         * tests/havelib/rpathlz/configure.ac: New file, from
13952         gettext/autoconf-lib-link with modifications.
13953         * tests/havelib/rpathlyx/usey.c: New file, from
13954         gettext/autoconf-lib-link.
13955         * tests/havelib/rpathlyx/Makefile.am: New file, from
13956         gettext/autoconf-lib-link.
13957         * tests/havelib/rpathlyx/configure.ac: New file, from
13958         gettext/autoconf-lib-link with modifications.
13959         * tests/havelib/rpathlzyx/usez.c: New file, from
13960         gettext/autoconf-lib-link.
13961         * tests/havelib/rpathlzyx/Makefile.am: New file, from
13962         gettext/autoconf-lib-link.
13963         * tests/havelib/rpathlzyx/configure.ac: New file, from
13964         gettext/autoconf-lib-link with modifications.
13965         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
13966         with modifications.
13967
13968 2010-04-02  Bruno Haible  <bruno@clisp.org>
13969
13970         gnulib-tool: Create distributed built sources also for the tests.
13971         * gnulib-tool (func_create_testdir): Also generate distributed built
13972         sources in the tests directory.
13973
13974 2010-04-02  Bruno Haible  <bruno@clisp.org>
13975
13976         gnulib-tool: Obey user's environment variables.
13977         * gnulib-tool (func_create_testdir): When creating built sources,
13978         respect the environment variables for autoconf, automake, etc. given by
13979         the user.
13980
13981 2010-04-02  Bruno Haible  <bruno@clisp.org>
13982
13983         gnulib-tool: Provide the value of --m4-base to modules.
13984         * gnulib-tool (func_import, func_create_testdir): Emit a definition
13985         of gl_m4_base.
13986
13987 2010-04-02  Eric Blake  <eblake@redhat.com>
13988
13989         maint.mk: fix some fallout
13990         * NEWS: Document the incompatible change, and its effect on cfg.mk.
13991         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
13992
13993 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
13994
13995         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
13996         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
13997         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
13998         (sc_cast_of_x_alloc_return_value): Likewise.
13999         (sc_cast_of_alloca_return_value): Likewise.
14000         (sc_space_tab): Likewise.
14001         (sc_prohibit_atoi_atof): Likewise.
14002         (sc_prohibit_magic_number_exit): Likewise.
14003         (sc_error_exit_success): Likewise.
14004         (sc_file_system): Likewise.
14005         (sc_prohibit_have_config_h): Likewise.
14006         (sc_require_config_h): Likewise.
14007         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14008         (sc_obsolete_symbols): Likewise.
14009         (sc_changelog): Likewise.
14010         (sc_program_name): Likewise.
14011         (sc_the_the): Likewise.
14012         (sc_trailing_blank): Likewise.
14013         (sc_two_space_separator_in_usage): Likewise.
14014         (sc_useless_cpp_parens): Likewise.
14015         (sc_GPL_version): Likewise.
14016         (sc_GFDL_version): Likewise.
14017         (sc_texinfo_acronym): Likewise.
14018         (sc_prohibit_cvs_keyword): Likewise.
14019         (sc_prohibit_stat_st_blocks): Likewise.
14020         (sc_prohibit_S_IS_definition): Likewise.
14021         (sc_redundant_const): Likewise.
14022         (sc_makefile_TAB_only_indentation): Likewise.
14023         (sc_m4_quote_check): Likewise.
14024         (sc_makefile_path_separator_check): Likewise.
14025         (sc_copyright_check): Likewise.
14026         (sc_Wundef_boolean): Likewise.
14027         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14028
14029         maint.mk: match 0 or more whitespace-before-function-call '('
14030         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14031         that have zero or two-and-more spaces between the function name
14032         and the open parenthesis.
14033         (sc_error_message_warn_fatal): Likewise.
14034         (sc_error_message_uppercase): Likewise.
14035         (sc_error_message_period): Likewise.
14036
14037 2010-03-31  Eric Blake  <eblake@redhat.com>
14038
14039         maint.mk: check for [ as well as test
14040         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14041         Based on a libvirt report by Matthias Bolte.
14042
14043         gnumakefile: don't squelch _version output
14044         * top/GNUmakefile (_version): Create one-shot dependency rather
14045         than using $(shell) when version must be regenerated.
14046         (_autoreconf): Run verbosely, by default.
14047
14048         sys_time: avoid compiler warnings
14049         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14050         unconditional, fixing regression from 2010-03-29.
14051         Reported by Simon Josefsson.
14052
14053 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14054
14055         maint.mk: s/_header_without_use/_sc_header_without_use/
14056         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14057         (sc_prohibit_assert_without_use): Use the new name.
14058         (sc_prohibit_close_stream_without_use): Likewise.
14059         (sc_prohibit_getopt_without_use): Likewise.
14060         (sc_prohibit_quotearg_without_use): Likewise.
14061         (sc_prohibit_quote_without_use): Likewise.
14062         (sc_prohibit_long_options_without_use): Likewise.
14063         (sc_prohibit_inttostr_without_use): Likewise.
14064         (sc_prohibit_ignore_value_without_use): Likewise.
14065         (sc_prohibit_error_without_use): Likewise.
14066         (sc_prohibit_xalloc_without_use): Likewise.
14067         (sc_prohibit_hash_without_use): Likewise.
14068         (sc_prohibit_hash_pjw_without_use): Likewise.
14069         (sc_prohibit_safe_read_without_use): Likewise.
14070         (sc_prohibit_argmatch_without_use): Likewise.
14071         (sc_prohibit_canonicalize_without_use): Likewise.
14072         (sc_prohibit_root_dev_ino_without_use): Likewise.
14073         (sc_prohibit_openat_without_use): Likewise.
14074         (sc_prohibit_c_ctype_without_use): Likewise.
14075         (sc_prohibit_signal_without_use): Likewise.
14076         (sc_prohibit_intprops_without_use): Likewise.
14077
14078 2010-03-30  Eric Blake  <eblake@redhat.com>
14079
14080         maint: improve module indicators
14081         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14082         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14083         columns, and avoid extra macro expansion.
14084
14085         fdopendir: work around FreeBSD bug
14086         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14087         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14088         * modules/dirent (Makefile.am): Substitute it.
14089         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14090         declaration.
14091         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14092         fix.
14093         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14094
14095 2010-03-29  Bruno Haible  <bruno@clisp.org>
14096
14097         Emit #pragma system_header after the inclusion guard, not before.
14098         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14099         guard that spans the entire file, not before. This enables an
14100         optimization in GCC's preprocessor.
14101         * lib/ctype.in.h: Likewise.
14102         * lib/dirent.in.h: Likewise.
14103         * lib/errno.in.h: Likewise.
14104         * lib/float.in.h: Likewise.
14105         * lib/getopt.in.h: Likewise.
14106         * lib/iconv.in.h: Likewise.
14107         * lib/langinfo.in.h: Likewise.
14108         * lib/locale.in.h: Likewise.
14109         * lib/math.in.h: Likewise.
14110         * lib/netdb.in.h: Likewise.
14111         * lib/netinet_in.in.h: Likewise.
14112         * lib/pty.in.h: Likewise.
14113         * lib/sched.in.h: Likewise.
14114         * lib/se-selinux.in.h: Likewise.
14115         * lib/search.in.h: Likewise.
14116         * lib/spawn.in.h: Likewise.
14117         * lib/stdarg.in.h: Likewise.
14118         * lib/stdint.in.h: Likewise.
14119         * lib/string.in.h: Likewise.
14120         * lib/strings.in.h: Likewise.
14121         * lib/sys_file.in.h: Likewise.
14122         * lib/sys_ioctl.in.h: Likewise.
14123         * lib/sys_time.in.h: Likewise.
14124         * lib/sys_times.in.h: Likewise.
14125         * lib/sys_utsname.in.h: Likewise.
14126         * lib/sys_wait.in.h: Likewise.
14127         * lib/sysexits.in.h: Likewise.
14128         * lib/wctype.in.h: Likewise.
14129
14130 2010-03-28  James Youngman  <jay@gnu.org>
14131
14132         save-cwd: don't leak a file descriptor when the caller execs.
14133         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14134         saved file descriptor.
14135         * modules/save-cwd (Depends-on): Depend on cloexec.
14136
14137 2010-03-29  Bruno Haible  <bruno@clisp.org>
14138
14139         Remove vestiges of fts-lgpl module.
14140         * lib/fts_.h: Assume GNULIB_FTS is 1.
14141         * lib/fts.c: Likewise.
14142         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14143
14144 2010-03-28  Bruno Haible  <bruno@clisp.org>
14145
14146         Fix definition of tests witness macro.
14147         * gnulib-tool (func_import): Fix definition of witness macro.
14148
14149 2010-03-28  Bruno Haible  <bruno@clisp.org>
14150
14151         Fix ioctl's protoype on glibc systems.
14152         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14153         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14154         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14155         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14156         signature. If not, arrange to replace the ioctl function.
14157         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14158         REPLACE_IOCTL.
14159         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14160         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14161         Reported by Ludovic Courtès <ludo@gnu.org>.
14162
14163 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14164
14165         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14166         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14167         made it so grep -r --include=GLOB* ... did not work.
14168
14169 2010-03-26  Jim Meyering  <meyering@redhat.com>
14170             Eric Blake  <eblake@redhat.com>
14171
14172         maint.mk: prohibit use of test's -o and -a operators
14173         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14174
14175 2010-03-28  Bruno Haible  <bruno@clisp.org>
14176
14177         Remove unused GNULIB_XYZ macro definitions.
14178         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14179         invocation.
14180
14181 2010-03-28  Bruno Haible  <bruno@clisp.org>
14182
14183         Mark privileged tests modules.
14184         * modules/idpriv-drop-tests (Status): New section.
14185         * modules/idpriv-droptemp-tests (Status): New section.
14186
14187 2010-03-28  Bruno Haible  <bruno@clisp.org>
14188
14189         Split C++ tests into separate tests modules.
14190         * modules/dirent-c++-tests: New file, extracted from
14191         modules/dirent-tests.
14192         * modules/dirent-tests: Depend on it.
14193         * modules/fcntl-h-c++-tests: New file, extracted from
14194         modules/fcntl-h-tests.
14195         * modules/fcntl-h-tests: Depend on it.
14196         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14197         * modules/glob-tests: Depend on it.
14198         * modules/iconv-h-c++-tests: New file, extracted from
14199         modules/iconv-h-tests.
14200         * modules/iconv-h-tests: Depend on it.
14201         * modules/langinfo-c++-tests: New file, extracted from
14202         modules/langinfo-tests.
14203         * modules/langinfo-tests: Depend on it.
14204         * modules/locale-c++-tests: New file, extracted from
14205         modules/locale-tests.
14206         * modules/locale-tests: Depend on it.
14207         * modules/math-c++-tests: New file, extracted from modules/math-tests.
14208         * modules/math-tests: Depend on it.
14209         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
14210         * modules/pty-tests: Depend on it.
14211         * modules/search-c++-tests: New file, extracted from
14212         modules/search-tests.
14213         * modules/search-tests: Depend on it.
14214         * modules/signal-c++-tests: New file, extracted from
14215         modules/signal-tests.
14216         * modules/signal-tests: Depend on it.
14217         * modules/spawn-c++-tests: New file, extracted from
14218         modules/spawn-tests.
14219         * modules/spawn-tests: Depend on it.
14220         * modules/stdio-c++-tests: New file, extracted from
14221         modules/stdio-tests.
14222         * modules/stdio-tests: Depend on it.
14223         * modules/stdlib-c++-tests: New file, extracted from
14224         modules/stdlib-tests.
14225         * modules/stdlib-tests: Depend on it.
14226         * modules/string-c++-tests: New file, extracted from
14227         modules/string-tests.
14228         * modules/string-tests: Depend on it.
14229         * modules/sys_ioctl-c++-tests: New file, extracted from
14230         modules/sys_ioctl-tests.
14231         * modules/sys_ioctl-tests: Depend on it.
14232         * modules/sys_select-c++-tests: New file, extracted from
14233         modules/sys_select-tests.
14234         * modules/sys_select-tests: Depend on it.
14235         * modules/sys_socket-c++-tests: New file, extracted from
14236         modules/sys_socket-tests.
14237         * modules/sys_socket-tests: Depend on it.
14238         * modules/sys_stat-c++-tests: New file, extracted from
14239         modules/sys_stat-tests.
14240         * modules/sys_stat-tests: Depend on it.
14241         * modules/sys_time-c++-tests: New file, extracted from
14242         modules/sys_time-tests.
14243         * modules/sys_time-tests: Depend on it.
14244         * modules/time-c++-tests: New file, extracted from modules/time-tests.
14245         * modules/time-tests: Depend on it.
14246         * modules/unistd-c++-tests: New file, extracted from
14247         modules/unistd-tests.
14248         * modules/unistd-tests: Depend on it.
14249         * modules/wchar-c++-tests: New file, extracted from
14250         modules/wchar-tests.
14251         * modules/wchar-tests: Depend on it.
14252         * modules/wctype-c++-tests: New file, extracted from
14253         modules/wctype-tests.
14254         * modules/wctype-tests: Depend on it.
14255         Reported by Simon Josefsson.
14256
14257 2010-03-28  Bruno Haible  <bruno@clisp.org>
14258
14259         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
14260         * gnulib-tool (func_exists_module): New function, extracted from
14261         func_verify_module.
14262         (func_verify_module): Use it.
14263         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
14264         'foo' only if 'foo' exists.
14265         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
14266         module.
14267
14268 2010-03-28  Bruno Haible  <bruno@clisp.org>
14269
14270         gnulib-tool: Add support for special categories of tests.
14271         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
14272         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
14273         (func_usage): Document them.
14274         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
14275         inc_unportable_tests, inc_all_tests): New variables.
14276         (func_acceptable): Consider these variables.
14277         (func_modules_transitive_closure): Make it work when the 'Status' field
14278         consists of multiple words.
14279         (func_import): Store and restore the values of inc_cxx_tests,
14280         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
14281         inc_all_tests in gnulib-comp.m4.
14282         (func_create_testdir): Set inc_all_tests to true.
14283         * doc/gnulib.texi (Extra tests modules): New section.
14284         Suggested by Jim Meyering.
14285
14286 2010-03-28  Bruno Haible  <bruno@clisp.org>
14287
14288         ansi-c++-opt: Allow turning off the C++ build by default.
14289         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
14290         gl_CXX_CHOICE_DEFAULT_NO is defined.
14291         Requested by Eric Blake.
14292
14293 2010-03-28  Bruno Haible  <bruno@clisp.org>
14294
14295         unistd: Avoid #define replacements in C++ mode.
14296         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14297         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14298         setsockopt, shutdown, select): In C++, attach a warning to the function
14299         if possible, rather than #defining the symbol to a dysfunctional alias.
14300         Reported by John W. Eaton <jwe@gnu.org>.
14301
14302 2010-03-28  Bruno Haible  <bruno@clisp.org>
14303
14304         Fix link errors on mingw.
14305         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
14306         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
14307         $(LIBSOCKET).
14308         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
14309         $(LIBSOCKET).
14310
14311 2010-03-28  Bruno Haible  <bruno@clisp.org>
14312             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14313
14314         lib-ignore: Determine different options for different compilers.
14315         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
14316         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
14317         Add comments.
14318         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
14319         * NEWS: Mention the change.
14320
14321 2010-03-27  Bruno Haible  <bruno@clisp.org>
14322
14323         Remove unused GNULIB_XYZ macro definitions.
14324         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14325         * modules/fseek (configure.ac): Likewise.
14326         * modules/ioctl (configure.ac): Likewise.
14327         * modules/open (configure.ac): Likewise.
14328         * modules/stdlib-safer (configure.ac): Likewise.
14329
14330 2010-03-27  Bruno Haible  <bruno@clisp.org>
14331
14332         Add a remark about certain modules.
14333         * modules/malloc (Comment): New section.
14334         * modules/realloc (Comment): Likewise.
14335         * modules/sigpipe (Comment): Likewise.
14336
14337 2010-03-27  Bruno Haible  <bruno@clisp.org>
14338
14339         Resolve conflict between the two kinds of module indicators.
14340         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
14341         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
14342         * modules/canonicalize (configure.ac): Invoke
14343         gl_MODULE_INDICATOR_FOR_TESTS.
14344         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
14345         GNULIB_XYZ.
14346         * tests/test-dirent-c++.cc: Likewise.
14347         * tests/test-dirent-safer.c: Likewise.
14348         * tests/test-dup2.c: Likewise.
14349         * tests/test-fchdir.c: Likewise.
14350         * tests/test-fcntl-h-c++.cc: Likewise.
14351         * tests/test-getopt.c: Likewise.
14352         * tests/test-getopt.h: Likewise.
14353         * tests/test-langinfo-c++.cc: Likewise.
14354         * tests/test-locale-c++.cc: Likewise.
14355         * tests/test-math-c++.cc: Likewise.
14356         * tests/test-pty-c++.cc: Likewise.
14357         * tests/test-search-c++.cc: Likewise.
14358         * tests/test-signal-c++.cc: Likewise.
14359         * tests/test-spawn-c++.cc: Likewise.
14360         * tests/test-stdio-c++.cc: Likewise.
14361         * tests/test-stdlib-c++.cc: Likewise.
14362         * tests/test-string-c++.cc: Likewise.
14363         * tests/test-sys_ioctl-c++.cc: Likewise.
14364         * tests/test-sys_select-c++.cc: Likewise.
14365         * tests/test-sys_socket-c++.cc: Likewise.
14366         * tests/test-sys_stat-c++.cc: Likewise.
14367         * tests/test-sys_time-c++.cc: Likewise.
14368         * tests/test-time-c++.cc: Likewise.
14369         * tests/test-unistd-c++.cc: Likewise.
14370         * tests/test-wchar-c++.cc: Likewise.
14371         * tests/uninorm/test-u8-nfc.c: Likewise.
14372         * tests/uninorm/test-u8-nfd.c: Likewise.
14373         * tests/uninorm/test-u8-nfkc.c: Likewise.
14374         * tests/uninorm/test-u8-nfkd.c: Likewise.
14375         * tests/uninorm/test-u16-nfc.c: Likewise.
14376         * tests/uninorm/test-u16-nfd.c: Likewise.
14377         * tests/uninorm/test-u16-nfkc.c: Likewise.
14378         * tests/uninorm/test-u16-nfkd.c: Likewise.
14379         * tests/uninorm/test-u32-nfc.c: Likewise.
14380         * tests/uninorm/test-u32-nfc-big.c: Likewise.
14381         * tests/uninorm/test-u32-nfd.c: Likewise.
14382         * tests/uninorm/test-u32-nfd-big.c: Likewise.
14383         * tests/uninorm/test-u32-nfkc.c: Likewise.
14384         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
14385         * tests/uninorm/test-u32-nfkd.c: Likewise.
14386         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
14387         * tests/uninorm/test-u32-normalize-big.c: Likewise.
14388
14389 2010-03-27  Bruno Haible  <bruno@clisp.org>
14390
14391         Distinguish two kinds of module indicators.
14392         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
14393         gl_MODULE_INDICATOR.
14394         (gl_MODULE_INDICATOR): New macro.
14395         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
14396         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
14397         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14398         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14399         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14400         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14401         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14402         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14403         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14404         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14405         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14406         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14408         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14409         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14410         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14411         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14412         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14413         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14414         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14415         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14416         * modules/cloexec (configure.ac): Likewise.
14417         * modules/getopt-gnu (configure.ac): Likewise.
14418         * modules/uninorm/u8-normalize (configure.ac): Likewise.
14419         * modules/uninorm/u16-normalize (configure.ac): Likewise.
14420         * modules/uninorm/u32-normalize (configure.ac): Likewise.
14421         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
14422
14423 2010-03-27  Bruno Haible  <bruno@clisp.org>
14424
14425         New module description field 'Comment'.
14426         * gnulib-tool: New option --extract-comment.
14427         (func_usage): Document it.
14428         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
14429         (func_get_comment): New function.
14430         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
14431
14432 2010-03-27  Bruno Haible  <bruno@clisp.org>
14433
14434         Addendum to 2010-02-07 commit.
14435         * gnulib-tool (func_usage): Document --extract-applicability option.
14436
14437 2010-03-27  Bruno Haible  <bruno@clisp.org>
14438
14439         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
14440         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
14441         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
14442         rather than link errors.
14443
14444 2010-03-27  Bruno Haible  <bruno@clisp.org>
14445
14446         Avoid side effects from tests-related modules on the compilation of lib.
14447         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
14448         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
14449         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
14450         parameter. Emit into AM_CPPFLAGS a definition of the designated C
14451         macro.
14452         (func_import): Define a witness macro. Assign it a value that depends
14453         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
14454         tests-related modules.
14455         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
14456         Reported by Jim Meyering.
14457
14458 2010-03-27  Bruno Haible  <bruno@clisp.org>
14459
14460         Factorize common .m4 code.
14461         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
14462         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
14463         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
14464         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
14465         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
14466         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
14467         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
14468         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
14469         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
14470         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
14471         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
14472         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
14473         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
14474         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
14475         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
14476         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
14477         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
14478         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
14479         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
14480         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
14481         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
14482         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
14483         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
14484         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
14485         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
14486         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
14487         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
14488         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
14489         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
14490         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
14491         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
14492         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
14493
14494 2010-03-27  Bruno Haible  <bruno@clisp.org>
14495
14496         Fix a compilation error on Cygwin with g++ >= 4.3.
14497         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
14498         if it is undefined or if we alias it to chmod.
14499         (lstat): Don't warn about the use of this function if it is undefined
14500         or if we alias it to stat.
14501         Reported by Simon Josefsson.
14502
14503 2010-03-27  Bruno Haible  <bruno@clisp.org>
14504
14505         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
14506         * modules/getlogin (configure.ac): Update.
14507
14508         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
14509         * modules/getlogin_r (configure.ac): Update.
14510
14511         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
14512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
14513         * modules/inet_ntop (configure.ac): Update.
14514
14515         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
14516         * modules/inet_pton (configure.ac): Update.
14517
14518         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
14519         * modules/mbslen (configure.ac): Update.
14520
14521         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
14522         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
14523         * modules/forkpty (configure.ac): Update.
14524         * modules/openpty (configure.ac): Update.
14525
14526 2010-03-26  Simon Josefsson  <simon@josefsson.org>
14527
14528         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
14529         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
14530
14531 2010-03-25  Eric Blake  <eblake@redhat.com>
14532
14533         maint: use pragma consistently across replacement headers
14534         * lib/ctype.in.h (system_header): Hoist for consistent placement.
14535         * lib/dirent.in.h (system_header): Likewise.
14536         * lib/errno.in.h (system_header): Likewise.
14537         * lib/float.in.h (system_header): Likewise.
14538         * lib/getopt.in.h (system_header): Likewise.
14539         * lib/iconv.in.h (system_header): Likewise.
14540         * lib/inttypes.in.h (system_header): Likewise.
14541         * lib/langinfo.in.h (system_header): Likewise.
14542         * lib/locale.in.h (system_header): Likewise.
14543         * lib/math.in.h (system_header): Likewise.
14544         * lib/netdb.in.h (system_header): Likewise.
14545         * lib/netinet_in.in.h (system_header): Likewise.
14546         * lib/pty.in.h (system_header): Likewise.
14547         * lib/sched.in.h (system_header): Likewise.
14548         * lib/se-selinux.in.h (system_header): Likewise.
14549         * lib/search.in.h (system_header): Likewise.
14550         * lib/spawn.in.h (system_header): Likewise.
14551         * lib/stdarg.in.h (system_header): Likewise.
14552         * lib/stdint.in.h (system_header): Likewise.
14553         * lib/string.in.h (system_header): Likewise.
14554         * lib/strings.in.h (system_header): Likewise.
14555         * lib/sys_file.in.h (system_header): Likewise.
14556         * lib/sys_ioctl.in.h (system_header): Likewise.
14557         * lib/sys_socket.in.h (system_header): Likewise.
14558         * lib/sys_times.in.h (system_header): Likewise.
14559         * lib/sys_utsname.in.h (system_header): Likewise.
14560         * lib/sys_wait.in.h (system_header): Likewise.
14561         * lib/sysexits.in.h (system_header): Likewise.
14562         * lib/unistd.in.h (system_header): Likewise.
14563         * lib/wctype.in.h (system_header): Likewise.
14564
14565         arpa/inet: fix mingw compilation warning
14566         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
14567         Reported by Matthew Bolte.
14568
14569 2010-03-25  Bruno Haible  <bruno@clisp.org>
14570
14571         Avoid collision between gnulib wrapper and libintl wrapper.
14572         * lib/printf.c (printf): Don't define if a printf wrapper is already
14573         defined in intl/printf.c.
14574         Reported by Michel Boaventura <michel@michelboaventura.com>.
14575
14576 2010-03-25  Bruno Haible  <bruno@clisp.org>
14577
14578         Use ANSI C.
14579         * lib/readutmp.h (getutent): Provide ANSI C prototype.
14580
14581 2010-03-25  Bruno Haible  <bruno@clisp.org>
14582
14583         Minor formatting changes.
14584         * lib/acosl.c: Insert space before function argument list.
14585         * lib/argz.c: Likewise.
14586         * lib/asinl.c: Likewise.
14587         * lib/expl.c: Likewise.
14588         * lib/gen-uni-tables.c: Likewise.
14589         * lib/gettext.h: Likewise.
14590         * lib/glthread/lock.h: Likewise.
14591         * lib/tanl.c: Likewise.
14592         * lib/uniname/uniname.c: Likewise.
14593         * tests/test-idpriv-drop.c: Likewise.
14594         * tests/test-idpriv-droptemp.c: Likewise.
14595         * tests/test-lock.c: Likewise.
14596         * tests/test-tls.c: Likewise.
14597         * lib/argp-help.c: Insert space before function-like macro argument
14598         list.
14599         * lib/memcmp.c: Likewise.
14600         * tests/test-base64.c: Likewise.
14601         * lib/localename.c: Insert space before sizeof's argument list.
14602         * lib/safe-alloc.h: Likewise.
14603         * lib/file-set.h: Insert space before macro argument list.
14604         * tests/test-argp.c: Likewise.
14605         * lib/argp-namefrob.h: Insert space before function parameter list.
14606         * lib/getaddrinfo.c: Likewise.
14607         * lib/netdb.in.h: Likewise.
14608         * lib/parse-duration.h: Likewise.
14609         * lib/parse-duration.c: Likewise.
14610         * lib/poll.c: Likewise.
14611         * lib/select.c: Likewise.
14612         * lib/trim.h: Likewise.
14613         * tests/test-usleep.c: Likewise.
14614         * lib/ldexpl.c: Insert space before function parameter list and before
14615         function argument list.
14616         * lib/logl.c: Likewise.
14617         * lib/sqrtl.c: Likewise.
14618         * lib/trim.c: Likewise.
14619         * lib/cosl.c: Use GNU style indentation. Insert space before function
14620         argument list.
14621         * lib/sinl.c: Likewise.
14622         * lib/tsearch.c: Insert space after 'for'.
14623         Reported by Jim Meyering.
14624
14625 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
14626
14627         * maint.mk (sc_Wundef_boolean): Check for the presence of the
14628         config header before grepping, as it's not present before
14629         autoreconf/configure are run.  Reported by Simon Josefsson.
14630
14631 2010-03-23  Bruno Haible  <bruno@clisp.org>
14632
14633         pt_chown: Make it work with automake < 1.11.
14634         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
14635         Reported by Simon Josefsson.
14636
14637 2010-03-23  Bruno Haible  <bruno@clisp.org>
14638
14639         pt_chown: Don't depend on GPLed modules.
14640         * lib/pt_chown.c: Don't include idpriv.h.
14641         (main): Don't drop privileges.
14642         * modules/pt_chown (Depends-on): Remove idpriv-drop.
14643         Reported by Simon Josefsson.
14644
14645 2010-03-24  Simon Josefsson  <simon@josefsson.org>
14646
14647         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
14648         suggestions from karl@freefriends.org (Karl Berry).
14649
14650 2010-03-22  Eric Blake  <eblake@redhat.com>
14651
14652         gethostname: further tweaks
14653         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
14654         are overriding gethostname.
14655         Suggested by Bruno Haible.
14656
14657 2010-03-21  Bruno Haible  <bruno@clisp.org>
14658
14659         Fix comments.
14660         * lib/forkpty.c (rpl_forkpty): Fix comment.
14661         * lib/openpty.c (rpl_openpty): Likewise.
14662         Reported by Eric Blake.
14663
14664 2010-03-22  Eric Blake  <eblake@redhat.com>
14665
14666         gethostname: fix build on mingw
14667         * lib/unistd.in.h (includes): Work around fact that mingw
14668         <winsock2.h> re-includes <unistd.h>, by avoiding any
14669         redeclarations if we are being included by <winsock2.h>.
14670         Reported by Matthias Bolte.
14671
14672 2010-03-21  Bruno Haible  <bruno@clisp.org>
14673
14674         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14675         * lib/forkpty.c (forkpty): New replacement function, from glibc with
14676         modifications.
14677         * lib/pty.in.h (forkpty): Update declaration. Add comments.
14678         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
14679         provide the replacement.
14680         * modules/forkpty (Depends-on): Add openpty, login_tty.
14681         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
14682         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
14683         * doc/glibc-functions/forkpty.texi: More supported platforms.
14684         * config/srclist.txt: Add forkpty.c (commented).
14685
14686 2010-03-21  Bruno Haible  <bruno@clisp.org>
14687
14688         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
14689         (Makefile.am): Verify that PTY_LIB is defined.
14690
14691         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
14692
14693 2010-03-21  Bruno Haible  <bruno@clisp.org>
14694
14695         Tests for module 'login_tty'.
14696         * modules/login_tty-tests: New file.
14697         * tests/test-login_tty.c: New file.
14698
14699         New module 'login_tty'.
14700         * lib/login_tty.c: New file.
14701         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
14702         * modules/login_tty: New file.
14703         * doc/glibc-functions/login_tty.texi: Mention the new module.
14704
14705 2010-03-21  Bruno Haible  <bruno@clisp.org>
14706
14707         login_tty: Documentation.
14708         * doc/glibc-functions/login_tty.texi: New file.
14709         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
14710
14711 2010-03-21  Bruno Haible  <bruno@clisp.org>
14712
14713         pty: Consistent macro naming.
14714         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
14715         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
14716         * modules/pty (configure.ac): Update.
14717
14718 2010-03-21  Bruno Haible  <bruno@clisp.org>
14719
14720         Tests for openpty: Make stricter.
14721         * tests/test-openpty.c (main): Add test of canonical processing and
14722         erase.
14723         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
14724
14725         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
14726         * lib/openpty.c (openpty): New replacement function.
14727         * lib/pty.in.h: Include <termios.h>.
14728         (openpty): Update declaration. Add comments.
14729         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
14730         is not declared, arrange to provide the replacement. Check for _getpty
14731         and posix_openpt.
14732         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
14733         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
14734         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
14735         * modules/pty-tests (test_pty_c___LDADD): New variable.
14736         * doc/glibc-functions/openpty.texi: More supported platforms.
14737
14738 2010-03-21  Bruno Haible  <bruno@clisp.org>
14739
14740         setenv: Tweaks.
14741         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
14742         the test program.
14743         * doc/posix-functions/setenv.texi: Update platforms list.
14744
14745 2010-03-21  Bruno Haible  <bruno@clisp.org>
14746
14747         New module 'unlockpt'.
14748         * lib/unlockpt.c: New file, from glibc with modifications.
14749         * m4/unlockpt.m4: New file.
14750         * modules/unlockpt: New file.
14751         * lib/stdlib.in.h (unlockpt): New declaration.
14752         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
14753         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
14754         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
14755         HAVE_UNLOCKPT.
14756         * doc/posix-functions/unlockpt.texi: Mention the new module.
14757         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
14758         * config/srclist.txt: Add unlockpt.c (commented).
14759
14760 2010-03-21  Jim Meyering  <meyering@redhat.com>
14761
14762         maint.mk: prohibit inclusion of "intprops.h" without use
14763         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
14764
14765 2010-03-21  Bruno Haible  <bruno@clisp.org>
14766
14767         New module 'grantpt'.
14768         * lib/grantpt.c: New file, from glibc with modifications.
14769         * m4/grantpt.m4: New file.
14770         * modules/grantpt: New file.
14771         * lib/stdlib.in.h (grantpt): New declaration.
14772         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
14773         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
14774         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
14775         HAVE_GRANTPT.
14776         * doc/posix-functions/grantpt.texi: Mention the new module.
14777         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
14778         * config/srclist.txt: Add grantpt.c (commented).
14779
14780 2010-03-21  Bruno Haible  <bruno@clisp.org>
14781
14782         New module 'pt_chown'.
14783         * lib/pt_chown.c: New file, from glibc with modifications.
14784         * lib/pty-private.h: New file, from glibc with modifications.
14785         * modules/pt_chown: New file.
14786         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
14787
14788 2010-03-21  Bruno Haible  <bruno@clisp.org>
14789
14790         Tests for module 'ptsname'.
14791         * modules/ptsname-tests: New file.
14792         * tests/test-ptsname.c: New file.
14793
14794         New module 'ptsname'.
14795         * lib/ptsname.c: New file, from glibc with modifications.
14796         * m4/ptsname.m4: New file.
14797         * modules/ptsname: New file.
14798         * lib/stdlib.in.h (ptsname): New declaration.
14799         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
14800         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
14801         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
14802         HAVE_PTSNAME.
14803         * doc/posix-functions/ptsname.texi: Mention the new module.
14804         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
14805         * config/srclist.txt: Add ptsname.c (commented).
14806
14807 2010-03-21  Bruno Haible  <bruno@clisp.org>
14808
14809         Tests for module 'ttyname_r'.
14810         * modules/ttyname_r-tests: New file.
14811         * tests/test-ttyname_r.c: New file.
14812
14813         New module 'ttyname_r'.
14814         * lib/ttyname_r.c: New file.
14815         * m4/ttyname_r.m4: New file.
14816         * modules/ttyname_r: New file.
14817         * lib/unistd.in.h (ttyname_r): New declaration.
14818         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
14819         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
14820         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
14821         HAVE_TTYNAME_R.
14822         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
14823         * doc/posix-functions/ttyname_r.texi: Mention the new module.
14824
14825 2010-03-20  Bruno Haible  <bruno@clisp.org>
14826
14827         signal: Undefine macro definitions in C++ mode.
14828         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
14829         sigfillset): Undefine macro definitions from the system header in C++
14830         mode.
14831         Reported by John W. Eaton <jwe@gnu.org>.
14832
14833 2010-03-20  Bruno Haible  <bruno@clisp.org>
14834
14835         Ensure no #include statements inside extern "C" { ... }.
14836         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
14837         contain #include statements.
14838         * lib/time.in.h: Likewise.
14839
14840 2010-03-20  Bruno Haible  <bruno@clisp.org>
14841
14842         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
14843         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
14844         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
14845         Reported by John W. Eaton <jwe@gnu.org>.
14846
14847 2010-03-20  Bruno Haible  <bruno@clisp.org>
14848
14849         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
14850         Reported by Jim Meyering.
14851
14852 2010-03-20  Bruno Haible  <bruno@clisp.org>
14853
14854         pipe: Set errno upon failure.
14855         * lib/pipe.h: Specify that when -1 is returned, errno is set.
14856         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
14857         errno value in error message.
14858
14859 2010-03-20  Bruno Haible  <bruno@clisp.org>
14860             Jim Meyering  <meyering@redhat.com>
14861
14862         lchown: Avoid "unused variable" warning.
14863         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
14864
14865 2010-03-20  Bruno Haible  <bruno@clisp.org>
14866
14867         Work around unlink() bug on MacOS X 10.5.6.
14868         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
14869         attempting to unlink a parent directory.
14870         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
14871         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
14872         activate for the replacement function.
14873         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
14874
14875 2010-03-20  Bruno Haible  <bruno@clisp.org>
14876
14877         Fix link errors on Solaris 8.
14878         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
14879         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
14880
14881 2010-03-19  Jim Meyering  <meyering@redhat.com>
14882
14883         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
14884         The _LIBC implementation of build_range_exp correctly honors the
14885         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
14886         However, the non-_LIBC implementation would ignore that syntax-bit
14887         flag and return REG_ERANGE unconditionally.
14888         This change makes it honor that flag.
14889         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
14890         Make two pointer parameters "const".
14891         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
14892         (parse_bracket_exp): Update caller.
14893
14894         regex.m4: correct the reversed range endpoint ([b-a]) test
14895         * m4/regex.m4: When requiring that [b-a] evoke failure,
14896         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
14897         test pass once again for x86-based systems.
14898
14899 2010-03-19  Bruno Haible  <bruno@clisp.org>
14900
14901         scandir: Fix link error on Solaris 8.
14902         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
14903         macros.
14904
14905 2010-03-19  Bruno Haible  <bruno@clisp.org>
14906
14907         getusershell: Fix documentation.
14908         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
14909         module.
14910         * doc/glibc-functions/setusershell.texi: Likewise.
14911
14912         getusershell: Provide declaration, missing on Solaris 9.
14913         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
14914         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
14915         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
14916         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
14917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14918         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
14919         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
14920         HAVE_GETUSERSHELL.
14921         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
14922
14923 2010-03-19  Bruno Haible  <bruno@clisp.org>
14924
14925         wctype: Provide iswblank function.
14926         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
14927         exists and is fine.
14928         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
14929         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
14930         * tests/test-wctype.c (main): Re-enable the iswblank tests.
14931         * doc/posix-functions/iswblank.texi: Update.
14932
14933 2010-03-19  Bruno Haible  <bruno@clisp.org>
14934
14935         Tests of module 'pty' in C++ mode.
14936         * modules/pty-tests: New file.
14937         * tests/test-pty-c++.cc: New file.
14938         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
14939
14940 2010-03-19  Eric Blake  <eblake@redhat.com>
14941
14942         logb: fix documentation
14943         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
14944         1.5 declaration bug.
14945
14946         forkpty, openpty: prefer glibc's const-safe prototype
14947         * lib/forkpty.c (rpl_forkpty): New file.
14948         * lib/openpty.c (rpl_openpty): Likewise.
14949         * modules/forkpty (Files): Distribute it.
14950         * modules/openpty (Files): Likewise.
14951         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
14952         check...
14953         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
14954         replacement for for non-const BSD signature.
14955         * modules/pty (Makefile.am): Substitute witnesses.
14956         * lib/pty.in.h (forkpty, openpty): Declare replacements.
14957         * tests/test-forkpty.c: Update signature check.
14958         * tests/test-openpty.c: Likewise.
14959         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
14960         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14961
14962         forkpty, openpty: split functions into new modules
14963         * modules/pty (Makefile.am): Substitute new witnesses.
14964         (Libraries): Move library detection...
14965         * modules/forkpty: ...into new module.
14966         * modules/openpty: Another new module.
14967         * modules/pty-tests: Rename and split...
14968         * modules/forkpty-tests: ...to this...
14969         * modules/openpty-tests: ...and this.
14970         * tests/test-pty.c: Rename and split...
14971         * tests/test-forkpty.c: ...to this...
14972         * tests/test-openpty.c: ...and this.
14973         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
14974         (gl_PTY): Split library searching...
14975         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
14976         (gl_FORKPTY, gl_OPENPTY): New macros.
14977         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
14978         * NEWS: Mention the split.
14979         * MODULES.html.sh (Misc): Document the modules.
14980         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
14981         * doc/glibc-functions/openpty.texi (openpty): Likewise.
14982
14983         pty: improve replacement header
14984         * lib/pty.in.h: New file.
14985         * modules/pty (Files): Ship it.
14986         (Makefile.am): Always build replacement.
14987         * m4/pty.m4: Rename...
14988         * m4/pty_h.m4: ...to this.
14989         (gl_PTY): Modernize setting of witness macros; update check of
14990         forkpty to take proper advantage of cache.
14991         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
14992
14993         getopt: avoid compiler warning
14994         * lib/getopt.c (attribute_hidden): Remove unused macro.
14995
14996 2010-03-18  Bruno Haible  <bruno@clisp.org>
14997
14998         Fix link errors on Solaris 8.
14999         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15000         * modules/search-tests (test_search_c___LDADD): Likewise.
15001         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15002         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15003         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15004         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15005         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15006         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15007         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15008
15009 2010-03-18  Bruno Haible  <bruno@clisp.org>
15010
15011         Fix bug introduced on 2010-03-14.
15012         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15013         (gl_SPAWN_H): Require it.
15014         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15015         Reported by Simon Josefsson.
15016
15017 2010-03-18  Bruno Haible  <bruno@clisp.org>
15018
15019         Fix typo introduced on 2009-12-31.
15020         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15021         posix_spawn_file_actions_adddup2.
15022
15023 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15024         and Eric Blake  <eblake@redhat.com>
15025
15026         test-vc-list-files-git: make more robust
15027         * tests/test-vc-list-files-git.sh: Unset problematic environment
15028         variables.  Chain commands together.
15029
15030 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15031
15032         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15033         `AC_CHECK_DECL' invocation.
15034
15035 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15036
15037         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15038         appears before executable statements. Suggested by Petr Sumbera
15039         <Petr.Sumbera@Sun.COM>.
15040
15041 2010-03-14  Bruno Haible  <bruno@clisp.org>
15042
15043         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15044         portability problems. Instead use a simpler test.
15045         (main): Check that invalid arguments are rejected only on Linux.
15046
15047 2010-03-14  Bruno Haible  <bruno@clisp.org>
15048
15049         Fix bug introduced on 2009-12-31.
15050         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15051         gl_PREREQ_SYS_H_WINSOCK2 always.
15052         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15053         SYS_SOCKET_H variable.
15054         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15055         Update comments.
15056         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15057         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15058         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15059         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15060         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15061
15062 2010-03-14  Bruno Haible  <bruno@clisp.org>
15063
15064         Fix values returned by sinl, cosl.
15065         * lib/trigl.h: Add specification comments.
15066         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15067         that combines the values from the precomputed table with the values of
15068         the Chebyshev polynomials.
15069
15070 2010-03-14  Bruno Haible  <bruno@clisp.org>
15071
15072         Fix compilation error when modules 'posix_spawn[p]' are not used.
15073         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15074         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15075
15076 2010-03-14  Bruno Haible  <bruno@clisp.org>
15077
15078         Fix compilation error on mingw when module 'time_r' is not used.
15079         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15080         is 1.
15081         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15082         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15083         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15084         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15085
15086 2010-03-14  Bruno Haible  <bruno@clisp.org>
15087
15088         Fix compilation error with Sun C.
15089         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15090         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15091         instead of GCC specific ULONG_LONG_MAX.
15092         * lib/xstrtoll.c: Likewise.
15093         * lib/xstrtoull.c: Likewise.
15094
15095 2010-03-13  Bruno Haible  <bruno@clisp.org>
15096
15097         Allow the user to disable C++ code and tests.
15098         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15099         (gl_PROG_ANSI_CXX): Require it.
15100
15101 2010-03-13  Bruno Haible  <bruno@clisp.org>
15102
15103         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15104         cases.
15105
15106 2010-03-13  Bruno Haible  <bruno@clisp.org>
15107
15108         Test that gnulib does not break the standard C++ headers.
15109         * tests/test-locale-c++2.cc: New file.
15110         * modules/locale-tests (Files): Add it.
15111         (Makefile.am): Compile it for test-locale-c++.
15112         * tests/test-math-c++2.cc: New file.
15113         * modules/math-tests (Files): Add it.
15114         (Makefile.am): Compile it for test-math-c++.
15115         * tests/test-signal-c++2.cc: New file.
15116         * modules/signal-tests (Files): Add it.
15117         (Makefile.am): Compile it for test-signal-c++.
15118         * tests/test-stdio-c++2.cc: New file.
15119         * modules/stdio-tests (Files): Add it.
15120         (Makefile.am): Compile it for test-stdio-c++.
15121         * tests/test-stdlib-c++2.cc: New file.
15122         * modules/stdlib-tests (Files): Add it.
15123         (Makefile.am): Compile it for test-stdlib-c++.
15124         * tests/test-string-c++2.cc: New file.
15125         * modules/string-tests (Files): Add it.
15126         (Makefile.am): Compile it for test-string-c++.
15127         * tests/test-time-c++2.cc: New file.
15128         * modules/time-tests (Files): Add it.
15129         (Makefile.am): Compile it for test-time-c++.
15130         Reported by John W. Eaton <jwe@gnu.org>.
15131
15132 2010-03-13  Bruno Haible  <bruno@clisp.org>
15133
15134         * gnulib-tool (func_usage): Clarify which options are available for
15135         --create-testdir and --create-megatestdir.
15136
15137 2010-03-13  Bruno Haible  <bruno@clisp.org>
15138
15139         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15140         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15141         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15142         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15143         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15144         when appropriate.
15145         Reported by Jim Meyering.
15146
15147 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15148
15149         * gnulib-tool (func_import): Explain origin of code.
15150
15151 2010-03-12  Bruno Haible  <bruno@clisp.org>
15152
15153         Fix problem with automake's definition of CXXLINK.
15154         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15155         Reported by Simon Josefsson and Ludovic Courtès.
15156
15157 2010-03-12  Bruno Haible  <bruno@clisp.org>
15158
15159         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15160         stable releases.
15161
15162 2010-03-11  Bruno Haible  <bruno@clisp.org>
15163
15164         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15165         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15166         whether the system provides one variant or multiple variants of the
15167         function.
15168         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15169         C++ compilers.
15170         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15171         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15172         Reported by Jim Meyering.
15173
15174 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15175
15176         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15177
15178 2010-03-08  Bruno Haible  <bruno@clisp.org>
15179
15180         gnulib-tool: Add support for --libtool in --create-testdir.
15181         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15182         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15183
15184 2010-03-08  Eric Blake  <eblake@redhat.com>
15185
15186         gnulib-tool.texi: mention possibility of git submodule
15187         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15188         submodules.
15189         * doc/.gitignore: Ignore another generated file.
15190
15191 2010-03-08  Karl Berry  <karl@gnu.org>
15192
15193         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15194         of committing gnulib files while skipping others.
15195
15196 2010-03-07  Bruno Haible  <bruno@clisp.org>
15197
15198         Tests of module 'wctype' in C++ mode.
15199         * tests/test-wctype-c++.cc: New file.
15200         * modules/wctype-tests (Files): Add it and tests/signature.h.
15201         (Depends-on): Add ansi-c++-opt.
15202         (Makefile.am): Arrange to compile and run test-wctype-c++.
15203
15204         Tests of module 'wchar' in C++ mode.
15205         * tests/test-wchar-c++.cc: New file.
15206         * modules/wchar-tests (Files): Add it and tests/signature.h.
15207         (Depends-on): Add ansi-c++-opt.
15208         (Makefile.am): Arrange to compile and run test-wchar-c++.
15209         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
15210         gl_MODULE_INDICATOR.
15211
15212         Tests of module 'unistd' in C++ mode.
15213         * tests/test-unistd-c++.cc: New file.
15214         * modules/unistd-tests (Files): Add it and tests/signature.h.
15215         (Depends-on): Add ansi-c++-opt.
15216         (Makefile.am): Arrange to compile and run test-unistd-c++.
15217         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
15218         gl_MODULE_INDICATOR.
15219
15220         Tests of module 'time' in C++ mode.
15221         * tests/test-time-c++.cc: New file.
15222         * modules/time-tests (Files): Add it and tests/signature.h.
15223         (Depends-on): Add ansi-c++-opt.
15224         (Makefile.am): Arrange to compile and run test-time-c++.
15225         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15226
15227         Tests of module 'sys_time' in C++ mode.
15228         * tests/test-sys_time-c++.cc: New file.
15229         * modules/sys_time-tests (Files): Add it and tests/signature.h.
15230         (Depends-on): Add ansi-c++-opt.
15231         (Makefile.am): Arrange to compile and run test-sys_time-c++.
15232         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
15233         gl_MODULE_INDICATOR.
15234
15235         Tests of module 'sys_stat' in C++ mode.
15236         * tests/test-sys_stat-c++.cc: New file.
15237         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
15238         (Depends-on): Add ansi-c++-opt.
15239         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
15240         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
15241         gl_MODULE_INDICATOR.
15242
15243         Tests of module 'sys_socket' in C++ mode.
15244         * tests/test-sys_socket-c++.cc: New file.
15245         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
15246         (Depends-on): Add ansi-c++-opt.
15247         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
15248         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
15249         gl_MODULE_INDICATOR.
15250
15251         Tests of module 'sys_select' in C++ mode.
15252         * tests/test-sys_select-c++.cc: New file.
15253         * modules/sys_select-tests (Files): Add it and tests/signature.h.
15254         (Depends-on): Add ansi-c++-opt.
15255         (Makefile.am): Arrange to compile and run test-sys_select-c++.
15256         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
15257         gl_MODULE_INDICATOR.
15258
15259         Tests of module 'sys_ioctl' in C++ mode.
15260         * tests/test-sys_ioctl-c++.cc: New file.
15261         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
15262         (Depends-on): Add ansi-c++-opt.
15263         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
15264         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
15265         gl_MODULE_INDICATOR.
15266
15267         Tests of module 'string' in C++ mode.
15268         * tests/test-string-c++.cc: New file.
15269         * modules/string-tests (Files): Add it and tests/signature.h.
15270         (Depends-on): Add ansi-c++-opt.
15271         (Makefile.am): Arrange to compile and run test-string-c++.
15272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
15273         gl_MODULE_INDICATOR.
15274
15275         Tests of module 'stdlib' in C++ mode.
15276         * tests/test-stdlib-c++.cc: New file.
15277         * modules/stdlib-tests (Files): Add it and tests/signature.h.
15278         (Depends-on): Add ansi-c++-opt.
15279         (Makefile.am): Arrange to compile and run test-stdlib-c++.
15280         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
15281         gl_MODULE_INDICATOR.
15282
15283         Tests of module 'stdio' in C++ mode.
15284         * tests/test-stdio-c++.cc: New file.
15285         * modules/stdio-tests (Files): Add it and tests/signature.h.
15286         (Depends-on): Add ansi-c++-opt.
15287         (Makefile.am): Arrange to compile and run test-stdio-c++.
15288         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
15289         gl_MODULE_INDICATOR.
15290
15291         Tests of module 'spawn' in C++ mode.
15292         * tests/test-spawn-c++.cc: New file.
15293         * modules/spawn-tests (Files): Add it and tests/signature.h.
15294         (Depends-on): Add ansi-c++-opt.
15295         (Makefile.am): Arrange to compile and run test-spawn-c++.
15296         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
15297         gl_MODULE_INDICATOR.
15298
15299         Tests of module 'signal' in C++ mode.
15300         * tests/test-signal-c++.cc: New file.
15301         * modules/signal-tests (Files): Add it and tests/signature.h.
15302         (Depends-on): Add ansi-c++-opt.
15303         (Makefile.am): Arrange to compile and run test-signal-c++.
15304         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
15305         gl_MODULE_INDICATOR.
15306
15307         Tests of module 'search' in C++ mode.
15308         * tests/test-search-c++.cc: New file.
15309         * modules/search-tests (Files): Add it and tests/signature.h.
15310         (Depends-on): Add ansi-c++-opt.
15311         (Makefile.am): Arrange to compile and run test-search-c++.
15312         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
15313         gl_MODULE_INDICATOR.
15314
15315         Tests of module 'math' in C++ mode.
15316         * tests/test-math-c++.cc: New file.
15317         * modules/math-tests (Files): Add it and tests/signature.h.
15318         (Depends-on): Add ansi-c++-opt.
15319         (Makefile.am): Arrange to compile and run test-math-c++.
15320         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15321
15322         Tests of module 'locale' in C++ mode.
15323         * tests/test-locale-c++.cc: New file.
15324         * modules/locale-tests (Files): Add it and tests/signature.h.
15325         (Depends-on): Add ansi-c++-opt.
15326         (Makefile.am): Arrange to compile and run test-locale-c++.
15327         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
15328         gl_MODULE_INDICATOR.
15329
15330         Tests of module 'langinfo' in C++ mode.
15331         * tests/test-langinfo-c++.cc: New file.
15332         * modules/langinfo-tests (Files): Add it and tests/signature.h.
15333         (Depends-on): Add ansi-c++-opt.
15334         (Makefile.am): Arrange to compile and run test-langinfo-c++.
15335         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
15336         gl_MODULE_INDICATOR.
15337
15338         Tests of module 'iconv-h' in C++ mode.
15339         * tests/test-iconv-h-c++.cc: New file.
15340         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
15341         (Depends-on): Add ansi-c++-opt.
15342         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
15343
15344         Tests of module 'glob' in C++ mode.
15345         * tests/test-glob-c++.cc: New file.
15346         * modules/glob-tests (Files): Add it.
15347         (Depends-on): Add ansi-c++-opt.
15348         (Makefile.am): Arrange to compile and run test-glob-c++.
15349
15350         Tests of module 'fcntl-h' in C++ mode.
15351         * tests/test-fcntl-h-c++.cc: New file.
15352         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
15353         (Depends-on): Add ansi-c++-opt.
15354         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
15355         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
15356         gl_MODULE_INDICATOR.
15357
15358         Tests of module 'dirent' in C++ mode.
15359         * tests/test-dirent-c++.cc: New file.
15360         * modules/dirent-tests (Files): Add it and tests/signature.h.
15361         (Depends-on): Add ansi-c++-opt.
15362         (Makefile.am): Arrange to compile and run test-dirent-c++.
15363         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15364         gl_MODULE_INDICATOR.
15365
15366         New module 'ansi-c++-opt'.
15367         * modules/ansi-c++-opt: New file.
15368         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
15369
15370         Document C++ namespace mode.
15371         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
15372
15373         wctype: Avoid #define replacements in C++ mode.
15374         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
15375         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
15376         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
15377         In C++, define a namespaced alias symbol.
15378         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
15379         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
15380         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
15381         rule.
15382
15383         wchar: Avoid #define replacements in C++ mode.
15384         * lib/wchar.in.h: Include c++defs.h.
15385         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
15386         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
15387         symbol.
15388         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
15389         * modules/wchar (Depends-on): Add c++defs.
15390         (Makefile.am): Update wchar.h rule.
15391
15392         unistd: Avoid #define replacements in C++ mode.
15393         * lib/unistd.in.h: Include c++defs.h.
15394         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
15395         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
15396         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
15397         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
15398         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
15399         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
15400         symbol.
15401         (environ): Update.
15402         * modules/unistd (Depends-on): Add c++defs.
15403         (Makefile.am): Update unistd.h rule.
15404
15405         time: Avoid #define replacements in C++ mode.
15406         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
15407         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
15408         define a namespaced alias symbol.
15409         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
15410         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
15411         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
15412         * modules/time (Depends-on): Add c++defs, warn-on-use.
15413         (Makefile.am): Update time.h rule.
15414         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15415         * modules/nanosleep (configure.ac): Likewise.
15416         * modules/strptime (configure.ac): Likewise.
15417         * modules/timegm (configure.ac): Likewise.
15418
15419         sys_time: Avoid #define replacements in C++ mode.
15420         * lib/sys_time.in.h: Include c++defs.h.
15421         (gettimeofday): In C++, define a namespaced alias symbol.
15422         * modules/sys_time (Depends-on): Add c++defs.
15423         (Makefile.am): Update sys/time.h rule.
15424
15425         sys_stat: Avoid #define replacements in C++ mode.
15426         * lib/sys_stat.in.h: Include c++defs.h.
15427         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
15428         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
15429         namespaced alias symbol.
15430         In C++, define a namespaced alias symbol.
15431         * modules/sys_stat (Depends-on): Add c++defs.
15432         (Makefile.am): Update sys/stat.h rule.
15433
15434         sys_socket: Avoid #define replacements in C++ mode.
15435         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
15436         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
15437         definitions also when the system has a <sys/socket.h>.
15438         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15439         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
15440         In C++, define a namespaced alias symbol.
15441         * modules/sys_socket (Depends-on): Add c++defs.
15442         (Makefile.am): Update sys/socket.h rule.
15443
15444         sys_select: Avoid #define replacements in C++ mode.
15445         * lib/sys_select.in.h: Include c++defs.h. Enable the function
15446         definitions also when the system has a <sys/select.h>.
15447         (select): In C++, define a namespaced alias symbol.
15448         * modules/sys_select (Depends-on): Add c++defs.
15449         (Makefile.am): Update sys/select.h rule.
15450
15451         sys_ioctl: Avoid #define replacements in C++ mode.
15452         * lib/sys_ioctl.in.h: Include c++defs.h.
15453         (ioctl): In C++, define a namespaced alias symbol.
15454         * modules/sys_ioctl (Depends-on): Add c++defs.
15455         (Makefile.am): Update sys/ioctl.h rule.
15456
15457         string: Avoid #define replacements in C++ mode.
15458         * lib/string.in.h: Include c++defs.h.
15459         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
15460         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
15461         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
15462         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
15463         strsignal, strverscmp): In C++, define a namespaced alias symbol.
15464         * modules/string (Depends-on): Add c++defs.
15465         (Makefile.am): Update string.h rule.
15466
15467         stdlib: Avoid #define replacements in C++ mode.
15468         * lib/stdlib.in.h: Include c++defs.h.
15469         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
15470         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
15471         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
15472         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
15473         symbol.
15474         * modules/stdlib (Depends-on): Add c++defs.
15475         (Makefile.am): Update stdlib.h rule.
15476
15477         stdio: Avoid #define replacements in C++ mode.
15478         * lib/stdio.in.h: Include c++defs.h.
15479         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
15480         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
15481         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
15482         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
15483         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
15484         namespaced alias symbol.
15485         * modules/stdio (Depends-on): Add c++defs.
15486         (Makefile.am): Update stdio.h rule.
15487
15488         spawn: Avoid #define replacements in C++ mode.
15489         * lib/spawn.in.h: Include c++defs.h.
15490         (posix_spawn, posix_spawnp, posix_spawnattr_init,
15491         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
15492         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
15493         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
15494         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
15495         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
15496         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
15497         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
15498         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
15499         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
15500         In C++, define a namespaced alias symbol.
15501         * modules/spawn (Depends-on): Add c++defs.
15502         (Makefile.am): Update spawn.h rule.
15503
15504         signal: Avoid #define replacements in C++ mode.
15505         * lib/signal.in.h: Include c++defs.h.
15506         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
15507         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
15508         namespaced alias symbol.
15509         * modules/signal (Depends-on): Add c++defs.
15510         (Makefile.am): Update signal.h rule.
15511
15512         search: Avoid #define replacements in C++ mode.
15513         * lib/search.in.h: Include c++defs.h.
15514         (_gl_search_compar_fn, _gl_search_action_fn): New types.
15515         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
15516         symbol.
15517         * modules/search (Depends-on): Add c++defs.
15518         (Makefile.am): Update search.h rule.
15519
15520         math: Avoid #define replacements in C++ mode.
15521         * lib/math.in.h: Include c++defs.h.
15522         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
15523         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
15524         trunc, truncl): In C++, define a namespaced alias symbol.
15525         * modules/math (Depends-on): Add c++defs.
15526         (Makefile.am): Update math.h rule.
15527
15528         locale: Avoid #define replacements in C++ mode.
15529         * lib/locale.in.h: Include c++defs.h.
15530         (duplocale): In C++, define a namespaced alias symbol.
15531         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
15532         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
15533         * modules/locale (Depends-on): Add c++defs.
15534         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
15535
15536         langinfo: Avoid #define replacements in C++ mode.
15537         * lib/langinfo.in.h: Include c++defs.h.
15538         (nl_langinfo): In C++, define a namespaced alias symbol.
15539         * modules/langinfo (Depends-on): Add c++defs.
15540         (Makefile.am): Update langinfo.h rule.
15541
15542         iconv-h: Avoid #define replacements in C++ mode.
15543         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
15544         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
15545         symbol.
15546         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15547         whenever iconv is present.
15548         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
15549         (Makefile.am): Update iconv.h rule.
15550
15551         glob: Avoid #define replacements in C++ mode.
15552         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
15553         (_gl_glob_errfunc_fn): New type.
15554         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
15555         symbol.
15556         * modules/glob (Depends-on): Add c++defs, warn-on-use.
15557         (Makefile.am): Update glob.h rule.
15558
15559         fcntl-h: Avoid #define replacements in C++ mode.
15560         * lib/fcntl.in.h: Include c++defs.h.
15561         (fcntl, open, openat): In C++, define a namespaced alias symbol.
15562         * modules/fcntl-h (Depends-on): Add c++defs.
15563         (Makefile.am): Update fcntl.h rule.
15564
15565         dirent: Avoid #define replacements in C++ mode.
15566         * lib/dirent.in.h: Include c++defs.h.
15567         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
15568         namespaced alias symbol.
15569         (dirfd): Update declaration.
15570         * modules/dirent (Depends-on): Add c++defs.
15571         (Makefile.am): Update dirent.h rule.
15572
15573         ctype: Make it usable in C++ code.
15574         * lib/ctype.in.h: Include c++defs.h.
15575         (isblank): Declare as extern "C".
15576         * modules/ctype (Depends-on): Add c++defs.
15577         (Makefile.am): Update ctype.h rule.
15578
15579         New module 'c++defs'.
15580         * modules/c++defs: New file.
15581         * build-aux/c++defs.h: New file.
15582         Reported by John W. Eaton <jwe@gnu.org>.
15583
15584 2010-03-07  Bruno Haible  <bruno@clisp.org>
15585
15586         logb: Provide missing declaration for Cygwin.
15587         * lib/math.in.h (logb): New declaration.
15588         * m4/logb.m4: New file.
15589         * modules/logb (Files): Add m4/logb.m4.
15590         (Depends-on): Add math.
15591         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
15592         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
15593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
15594         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
15595         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
15596
15597 2010-03-07  Bruno Haible  <bruno@clisp.org>
15598
15599         Fix test-cond link error.
15600         * tests/test-cond.c: Include <stdio.h>.
15601
15602 2010-03-07  Bruno Haible  <bruno@clisp.org>
15603
15604         Fix test-dirent-safer link error.
15605         * modules/dirent-safer-tests (Makefile.am): Define
15606         test_dirent_safer_LDADD.
15607
15608 2010-03-07  Bruno Haible  <bruno@clisp.org>
15609
15610         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
15611         among default module list.
15612
15613 2010-03-07  Bruno Haible  <bruno@clisp.org>
15614
15615         Fix link error on platforms with GNU libiconv.
15616         * modules/unistr/u8-strcoll-tests (Makefile): Define
15617         test_u8_strcoll_LDADD.
15618         * modules/unistr/u16-strcoll-tests (Makefile): Define
15619         test_u16_strcoll_LDADD.
15620         * modules/unistr/u32-strcoll-tests (Makefile): Define
15621         test_u32_strcoll_LDADD.
15622
15623 2010-03-07  Bruno Haible  <bruno@clisp.org>
15624
15625         Use POSIX declarations for socket functions.
15626         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
15627         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
15628         rpl_sendto): Change declaration to match POSIX.
15629         * lib/connect.c (rpl_connect): Likewise.
15630         * lib/accept.c (rpl_accept): Likewise.
15631         * lib/bind.c (rpl_bind): Likewise.
15632         * lib/getpeername.c (rpl_getpeername): Likewise.
15633         * lib/getsockname.c (rpl_getsockname): Likewise.
15634         * lib/recv.c (rpl_recv): Likewise.
15635         * lib/send.c (rpl_send): Likewise.
15636         * lib/recvfrom.c (rpl_recvfrom): Likewise.
15637         * lib/sendto.c (rpl_sendto): Likewise.
15638
15639 2010-03-06  Bruno Haible  <bruno@clisp.org>
15640
15641         Clarify access, euidaccess, faccessat.
15642         * doc/posix-functions/faccessat.texi: Mention security problem under
15643         "Other problems", not "Portability problems".
15644         * doc/posix-functions/access.texi: Likewise. Mention a related security
15645         problem.
15646         * doc/glibc-functions/euidaccess.texi: Mention security problems.
15647         * lib/euidaccess.c: Add comments about platforms.
15648         * lib/unistd.in.h (access, euidaccess): Add warnings.
15649
15650 2010-03-07  Bruno Haible  <bruno@clisp.org>
15651
15652         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
15653         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
15654         (POSIX_SPAWN_SETSCHEDULER): Likewise.
15655         (POSIX_SPAWN_USEVFORK): Define in a way that works when
15656         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15657         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
15658         declare when POSIX_SPAWN_SETSCHEDULER is zero.
15659         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
15660         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
15661         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
15662         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
15663         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
15664         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
15665         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
15666         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
15667         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
15668         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
15669         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
15670         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
15671         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
15672         Likewise.
15673         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
15674         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
15675         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
15676         Likewise.
15677         * tests/test-spawn.c (main): Make it work when
15678         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
15679
15680 2010-03-07  Bruno Haible  <bruno@clisp.org>
15681
15682         Fix incorrect Makefile.am generation in German locale.
15683         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15684         Execute sed command with character range in C locale.
15685
15686 2010-03-06  Bruno Haible  <bruno@clisp.org>
15687
15688         Tests for module 'iconv-h'.
15689         * modules/iconv-h-tests: New file.
15690         * tests/test-iconv-h.c: New file.
15691
15692         New module 'iconv-h'.
15693         * modules/iconv-h: New file.
15694         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
15695         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
15696         (configure.ac): Remove gl_ICONV_H.
15697         (Makefile.am): Remove rule for iconv.h.
15698
15699 2010-03-06  Bruno Haible  <bruno@clisp.org>
15700
15701         More consistent naming of *.m4 files.
15702         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
15703         * modules/wctype (Files): Update.
15704
15705         More consistent naming of *.m4 files.
15706         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
15707         * modules/wchar (Files): Update.
15708
15709 2010-03-06  Jim Meyering  <meyering@redhat.com>
15710
15711         euidaccess: relax license to LGPLv2+
15712         * modules/euidaccess (License): Relax to LGPLv2+.
15713
15714 2010-03-06  Bruno Haible  <bruno@clisp.org>
15715
15716         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
15717         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
15718         (Makefile.am): Augment lib_SOURCES instead.
15719
15720 2010-03-04  Jim Meyering  <meyering@redhat.com>
15721
15722         utime: remove obsolete module
15723         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
15724         unnecessary for years, and has been marked as obsolete for 10 months.
15725         * modules/utime: Remove file.
15726         * lib/utime.c: Remove file.
15727         * m4/utime.m4: Remove file.
15728         * m4/utimes-null.m4: Remove file.
15729         * doc/posix-functions/utime.texi (utime): Remove reference to
15730         the module.  Move the sole "fixed by gnulib" item into the
15731         "problems not fixed by Gnulib" list.
15732         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
15733
15734 2010-03-05  Simon Josefsson  <simon@josefsson.org>
15735
15736         * modules/exit (License): Relax license to LGPLv2+.
15737         (Status): Mark as obsolete.
15738         * NEWS: Mention deprecated 'exit' module.
15739         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
15740         of now obsolete 'exit'.
15741
15742 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15743
15744         fts-lgpl: remove unused module
15745         * modules/fts-lgpl: Remove.
15746         * MODULES.html.sh (func_all_modules): Adjust.
15747         * check-module (find_included_lib_files): Adjust.
15748         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
15749
15750 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
15751
15752         copy-acl: enhance Solaris ACL error handling
15753         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
15754         * lib/set-mode-acl.c (qset_acl): Likewise.
15755
15756 2010-03-02  Bruno Haible  <bruno@clisp.org>
15757
15758         spawn: Don't override the system defined values on FreeBSD 8.
15759         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
15760         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
15761         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
15762         if HAVE_POSIX_SPAWN is 1.
15763         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
15764
15765 2010-03-01  Bruno Haible  <bruno@clisp.org>
15766
15767         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
15768         regarding Automake.
15769
15770 2010-02-25  Bruno Haible  <bruno@clisp.org>
15771
15772         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
15773         * gnulib-tool: Define 'echo' as a function only before the ksh alias
15774         setting, not afterwards.
15775         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
15776
15777 2010-02-24  Eric Blake  <eblake@redhat.com>
15778
15779         bootstrap, git-version-gen: use timestamp
15780         * build-aux/git-version-gen (scriptversion): Force UTC.
15781         * build-aux/bootstrap (scriptversion): New variable.
15782
15783         bootstrap: allow older git
15784         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
15785         older than 1.6.4.  Requested by the libvirt project.
15786
15787 2010-02-23  Eric Blake  <eblake@redhat.com>
15788
15789         warn-on-use: work with old autoconf
15790         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
15791         AS_VAR semantics of autoconf 2.60.
15792         Reported by Bruno Haible.
15793
15794         bootstrap: improve some comments
15795         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
15796         clarification comments.
15797
15798         gettimeofday: provide correct function
15799         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
15800         when replacement is declared, otherwise provide gettimeofday.
15801         Reported by Michael Goffioul.
15802
15803 2010-02-23  Jim Meyering  <meyering@redhat.com>
15804
15805         lib-ignore: relax license to "unlimited", not LGPLv2+
15806         * modules/lib-ignore (License): Relax to "unlimited".
15807
15808 2010-02-23  Jim Meyering  <meyering@redhat.com>
15809
15810         lib-ignore: relax license to LGPLv2+
15811         * modules/lib-ignore (License): Relax to LGPLv2+.
15812
15813 2010-02-22  Eric Blake  <eblake@redhat.com>
15814
15815         lseek: avoid bash 3.2 broken pipe bug
15816         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
15817         warning from bash 3.2.
15818         Reported by Ben Pfaff, with analysis from Bruno Haible.
15819
15820         bootstrap: support non-FSF copyright holder
15821         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
15822         bootstrap.conf override of COPYRIGHT_HOLDER.
15823         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
15824
15825         bootstrap: interoperate with gettext 0.14.1
15826         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
15827
15828         bootstrap: allow for alternate submodule location
15829         * build-aux/bootstrap (gnulib_path): New variable; use instead of
15830         hardcoding submodule location.
15831         (gnulib_mk): Allow direct use of Makefile.am.
15832
15833         bootstrap: use GNULIB_SRCDIR to reduce disk usage
15834         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
15835         rather than reconfiguring where the submodule points.
15836
15837         gettimeofday: restore support for platforms that lack function
15838         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
15839         replacement if function is missing.
15840         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
15841         * modules/sys_time (Makefile.am): Substitute it.
15842         * lib/sys_time.in.h (gettimeofday): Check it.
15843         Reported by Michael Goffioul.
15844
15845 2010-02-21  Bruno Haible  <bruno@clisp.org>
15846
15847         * lib/stdio.in.h (obstack_printf): Fix typo.
15848
15849 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
15850
15851         vc-list-files: use bzr ls's -R option
15852         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
15853         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
15854
15855 2010-02-21  Jim Meyering  <meyering@redhat.com>
15856
15857         init.sh: fix EXEEXT shims to work also for names like test-prog
15858         * tests/init.sh: Re-exec a better shell, when needed.
15859         If the current shell lacks support for posix $(...), an init.sh-using
15860         test will now try to find a shell that supports that.  If EXEEXT is
15861         nonempty, we also require support for hyphen-in-alias-name and shell
15862         substitutions like ${var#glob}.  Failure to find such a shell results
15863         in a skipped test.
15864
15865 2010-02-21  Bruno Haible  <bruno@clisp.org>
15866
15867         Really work around around "broken pipe" error message from bash 3.2.
15868         * gnulib-tool (func_reset_sigpipe): Remove function.
15869         (echo): In bash 3.2, define to a function that uses printf.
15870         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
15871
15872 2010-02-20  Bruno Haible  <bruno@clisp.org>
15873
15874         Restore support for automake 1.9.6 with autoconf 2.61.
15875         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
15876         Reported by James Youngman <jay@gnu.org>.
15877
15878 2010-02-20  Bruno Haible  <bruno@clisp.org>
15879
15880         Improve *printf warning condition.
15881         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
15882         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
15883         and the function is overridden due to SIGPIPE emulation.
15884
15885 2010-02-20  Bruno Haible  <bruno@clisp.org>
15886
15887         * lib/stdio.in.h: Tweak comments.
15888
15889 2010-02-19  Bruno Haible  <bruno@clisp.org>
15890
15891         Make it easier to find modules. New gnulib-tool option '--find'.
15892         * gnulib-tool: New option --find.
15893         (func_usage): Document it.
15894         (func_sanitize_modulelist): New function, extracted from
15895         func_all_modules.
15896         (func_all_modules): Invoke it.
15897         * doc/gnulib-tool.texi (Which modules?): New node.
15898
15899 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
15900
15901         * lib/sys_select.in.h: Provide select replacement even if
15902         sys/select.h exists on a system, for Interix.
15903
15904 2010-02-18  Jim Meyering  <meyering@redhat.com>
15905
15906         init.sh: don't use $(...) just yet
15907         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
15908         to accommodate e.g., Solaris' /bin/sh.
15909
15910 2010-02-17  Bruno Haible  <bruno@clisp.org>
15911
15912         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
15913         Reported by Ludovic Courtès <ludo@gnu.org>.
15914
15915 2010-02-16  Simon Josefsson  <simon@josefsson.org>
15916
15917         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
15918         linking with -lintl.
15919
15920 2010-02-17  Simon Josefsson  <simon@josefsson.org>
15921
15922         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
15923         if not provided by the system's netdb.h.  Reported by
15924         ludo@gnu.org (Ludovic Courtès).
15925
15926 2010-02-15  Jim Meyering  <meyering@redhat.com>
15927
15928         init.sh: improve portability and efficiency
15929         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
15930         "dummy" in a for loop.
15931         Use '!', not '^' to select the complement of a character set used
15932         in a "case" statement.
15933         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
15934         Suggestions from Eric Blake.
15935
15936         init.sh: automatically accommodate programs with the .exe suffix
15937         Automatically arrange for an invocation of "prog" to execute the
15938         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
15939         may use the simpler "prog", yet still work when built on a system
15940         that requires specifying the added suffix.
15941         Do this by constructing a function named "prog" that invokes
15942         "prog.exe" for each .exe file in selected directories.
15943         * tests/init.sh (find_exe_basenames_): New function.
15944         (create_exe_shim_functions_): New function.
15945         (path_prepend_): Use it.
15946
15947         maint.mk: mark syntax-check sc_*.m rules as .PHONY
15948         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
15949         "make -t syntax-check" doesn't create a ton of sc_*.m files.
15950
15951 2010-02-14  Jim Meyering  <meyering@redhat.com>
15952
15953         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
15954         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
15955         (sc_prohibit_hash_pjw_without_use): New rule.
15956
15957         maint.mk: allow the default upload destination dir to be overridden
15958         * top/maint.mk (upload_dest_dir_): Define with a default that
15959         preserves the status quo.
15960         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
15961         Reported by Peter Simons.
15962
15963         maint.mk: prohibit inclusion of "hash.h" without_use
15964         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
15965
15966 2010-02-10  Jim Meyering  <meyering@redhat.com>
15967
15968         maint.mk: prohibit inclusion of "ignore-value.h" without_use
15969         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
15970
15971 2010-02-09  Eric Blake  <ebb9@byu.net>
15972         and Bruno Haible  <bruno@clisp.org>
15973
15974         obstack-printf-posix: ensure declaration
15975         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
15976         extracted from gl_FUNC_OBSTACK_PRINTF.
15977         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
15978         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
15979         Likewise.
15980         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
15981         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
15982         0.
15983
15984 2010-02-08  Bruno Haible  <bruno@clisp.org>
15985
15986         gnulib-tool: Fix typo in 2010-02-07 commit.
15987         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
15988         Reported by Eric Blake.
15989
15990 2010-02-07  Bruno Haible  <bruno@clisp.org>
15991
15992         gnulib-tool: Fix up caching patches.
15993         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
15994         option --no-cache. Use associative arrays when supported by the shell.
15995         (sed_comments): New variable.
15996         (modcache): Renamed from do_cache.
15997         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
15998         abbreviate unnecessarily.
15999         (have_associative): New variable.
16000         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16001         way also for ksh and zsh.
16002         (func_init_sed_convert_to_cache_statements): New function, extracted
16003         from func_cache_lookup_module. Add support for associative arrays.
16004         Don't set the c_MODULE_cached variable here. Ignore all lines before
16005         the first field header. Remove only the final newline, not all trailing
16006         newlines. Support empty fields correctly. Limit the use of 'eval' to
16007         assignments.
16008         (func_get_description, func_get_status, func_get_notice,
16009         func_get_applicability, func_get_filelist, func_get_dependencies,
16010         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16011         func_get_automake_snippet, func_get_include_directive,
16012         func_get_link_directive, func_get_license, func_get_maintainer):
16013         Update documentation. List the unoptimized code first. Add support for
16014         associative arrays. Limit the use of 'eval' to assignments.
16015         (func_get_applicability): Undo stylistic pessimisations.
16016         (func_get_automake_snippet, func_get_include_directive): Reduce code
16017         duplication.
16018         (func_modules_transitive_closure, func_modules_add_dummy,
16019         func_modules_notice, func_modules_to_filelist, func_add_file,
16020         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16021         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16022         func_create_testdir, func_create_megatestdir): Update documentation.
16023
16024 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16025
16026         * gnulib-tool (func_cache_lookup_module): Store the module name
16027         belonging to the cache variable; error out if two different
16028         module names map to the same cache variable name.
16029
16030 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16031
16032         gnulib-tool: Make caching optional.
16033         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16034         Update matching short versions of --no-changelog.
16035         (func_usage): Update.
16036         (sed_extract_cache_prog): Renamed from ...
16037         (sed_extract_prog): ... this; revert to old extraction script.
16038         (func_get_description, func_get_status)
16039         (func_get_notice, func_get_applicability, func_get_filelist)
16040         (func_get_dependencies, func_get_autoconf_early_snippet)
16041         (func_get_autoconf_snippet, func_get_automake_snippet)
16042         (func_get_include_directive, func_get_link_directive)
16043         (func_get_license, func_get_maintainer): If $do_cache is false,
16044         use old, non-caching extraction scripts.
16045         Suggestion by Bruno Haible.
16046
16047 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16048
16049         gnulib-tool: cache module metainformation.
16050         * gnulib-tool (sed_extract_prog): Match newline before each
16051         header, and rewrite header to a shell variable suffix.
16052         (func_cache_var, func_cache_lookup_module): New functions,
16053         to turn a module name into a cache variable prefix, and to
16054         look up and cache module metainformation.
16055         (func_get_description, func_get_status)
16056         (func_get_notice, func_get_applicability, func_get_filelist)
16057         (func_get_dependencies, func_get_autoconf_early_snippet)
16058         (func_get_autoconf_snippet, func_get_automake_snippet)
16059         (func_get_include_directive, func_get_link_directive)
16060         (func_get_license, func_get_maintainer): Use
16061         func_cache_lookup_module.
16062
16063 2010-02-07  Bruno Haible  <bruno@clisp.org>
16064
16065         fnctl: Fix missing dependency.
16066         * modules/fcntl (Depends-on): Add getdtablesize.
16067         Reported by John W. Eaton <jwe@gnu.org>.
16068
16069 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16070
16071         Argp: fix recognition of short alias options.
16072
16073         * lib/argp-parse.c (convert_options): Fix improper use of
16074         `|' between character values.
16075         * tests/test-argp.c (group1_option): New alias option
16076         --read (-r).
16077         (group1_parser): Special handling for 'r'.
16078         (test15): New test case.
16079         (test_fun): Add test15.
16080         * tests/test-argp-2.sh: Update expected --help and --usage
16081         outputs.
16082
16083 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16084
16085         * tests/test-argp.c: Fix indentation.
16086
16087 2010-02-04  Eric Blake  <ebb9@byu.net>
16088
16089         gettimeofday: expose type of second argument
16090         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16091         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16092         * tests/test-gettimeofday.c: Use it to silence warning.
16093         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16094         the issue.
16095
16096 2010-02-03  Jim Meyering  <meyering@redhat.com>
16097
16098         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16099         * lib/regcomp.c (TYPE_SIGNED): Define.
16100         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16101
16102         regcomp.c: avoid a new -Wshadow warning
16103         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16104
16105 2010-02-01  Jim Meyering  <meyering@redhat.com>
16106
16107         removing useless parentheses in cpp #define directives
16108         For motivation, see commit c0221df4, "define STREQ(a,b)
16109         consistently, removing useless parentheses"
16110         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16111         * lib/mountlist.c (MNT_IGNORE): Likewise.
16112         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16113
16114 2010-02-01  Eric Blake  <ebb9@byu.net>
16115
16116         sys_time: use link-warning
16117         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16118         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16119         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16120         * modules/sys_time (Depends-on): Add warn-on-use.
16121         (Makefile.am): Always build replacement.
16122         (configure.ac): Update substitutions.
16123         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16124         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16125         bother with SYS_TIME_H.
16126         * modules/gettimeofday (configure.ac): Declare indicator.
16127         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16128         in use.
16129
16130         closein-tests: silence compiler warning
16131         * tests/test-closein.c (main): Ignore fread result.
16132         * modules/closein-tests (Depends-on): Add ignore-value.
16133
16134         tests: silence warning about system return
16135         * tests/test-areadlink-with-size.c (main): Ignore system result.
16136         * tests/test-areadlink.c (main): Likewise.
16137         * tests/test-areadlinkat-with-size.c (main): Likewise.
16138         * tests/test-areadlinkat.c (main): Likewise.
16139         * tests/test-canonicalize-lgpl.c (main): Likewise.
16140         * tests/test-canonicalize.c (main): Likewise.
16141         * tests/test-chown.c (main): Likewise.
16142         * tests/test-fchownat.c (main): Likewise.
16143         * tests/test-fdutimensat.c (main): Likewise.
16144         * tests/test-fstatat.c (main): Likewise.
16145         * tests/test-futimens.c (main): Likewise.
16146         * tests/test-lchown.c (main): Likewise.
16147         * tests/test-link.c (main): Likewise.
16148         * tests/test-linkat.c (main): Likewise.
16149         * tests/test-lstat.c (main): Likewise.
16150         * tests/test-mkdir.c (main): Likewise.
16151         * tests/test-mkdirat.c (main): Likewise.
16152         * tests/test-mkfifo.c (main): Likewise.
16153         * tests/test-mkfifoat.c (main): Likewise.
16154         * tests/test-mknod.c (main): Likewise.
16155         * tests/test-readlink.c (main): Likewise.
16156         * tests/test-remove.c (main): Likewise.
16157         * tests/test-rename.c (main): Likewise.
16158         * tests/test-renameat.c (main): Likewise.
16159         * tests/test-rmdir.c (main): Likewise.
16160         * tests/test-symlink.c (main): Likewise.
16161         * tests/test-symlinkat.c (main): Likewise.
16162         * tests/test-unlink.c (main): Likewise.
16163         * tests/test-unlinkat.c (main): Likewise.
16164         * tests/test-utimens.c (main): Likewise.
16165         * tests/test-utimensat.c (main): Likewise.
16166         * modules/areadlink-tests (Depends-on): Add ignore-value.
16167         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16168         * modules/areadlinkat-tests (Depends-on): Likewise.
16169         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16170         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16171         * modules/canonicalize-tests (Depends-on): Likewise.
16172         * modules/chown-tests (Depends-on): Likewise.
16173         * modules/fdutimensat-tests (Depends-on): Likewise.
16174         * modules/futimens-tests (Depends-on): Likewise.
16175         * modules/lchown-tests (Depends-on): Likewise.
16176         * modules/link-tests (Depends-on): Likewise.
16177         * modules/linkat-tests (Depends-on): Likewise.
16178         * modules/lstat-tests (Depends-on): Likewise.
16179         * modules/mkdir-tests (Depends-on): Likewise.
16180         * modules/mkfifo-tests (Depends-on): Likewise.
16181         * modules/mkfifoat-tests (Depends-on): Likewise.
16182         * modules/mknod-tests (Depends-on): Likewise.
16183         * modules/openat-tests (Depends-on): Likewise.
16184         * modules/readlink-tests (Depends-on): Likewise.
16185         * modules/remove-tests (Depends-on): Likewise.
16186         * modules/rename-tests (Depends-on): Likewise.
16187         * modules/renameat-tests (Depends-on): Likewise.
16188         * modules/rmdir-tests (Depends-on): Likewise.
16189         * modules/symlink-tests (Depends-on): Likewise.
16190         * modules/symlinkat-tests (Depends-on): Likewise.
16191         * modules/unlink-tests (Depends-on): Likewise.
16192         * modules/utimens-tests (Depends-on): Likewise.
16193         * modules/utimensat-tests (Depends-on): Likewise.
16194
16195 2010-01-31  Bruno Haible  <bruno@clisp.org>
16196
16197         Perform the same test for many <math.h> functions.
16198         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16199         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16200         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16201         of gl_MATHFUNC.
16202         * modules/acos (configure.ac): Likewise.
16203         * modules/asin (configure.ac): Likewise.
16204         * modules/atan (configure.ac): Likewise.
16205         * modules/atan2 (configure.ac): Likewise.
16206         * modules/cbrt (configure.ac): Likewise.
16207         * modules/copysign (configure.ac): Likewise.
16208         * modules/cos (configure.ac): Likewise.
16209         * modules/cosh (configure.ac): Likewise.
16210         * modules/erf (configure.ac): Likewise.
16211         * modules/erfc (configure.ac): Likewise.
16212         * modules/exp (configure.ac): Likewise.
16213         * modules/fmod (configure.ac): Likewise.
16214         * modules/hypot (configure.ac): Likewise.
16215         * modules/j0 (configure.ac): Likewise.
16216         * modules/j1 (configure.ac): Likewise.
16217         * modules/jn (configure.ac): Likewise.
16218         * modules/lgamma (configure.ac): Likewise.
16219         * modules/log (configure.ac): Likewise.
16220         * modules/log10 (configure.ac): Likewise.
16221         * modules/log1p (configure.ac): Likewise.
16222         * modules/pow (configure.ac): Likewise.
16223         * modules/remainder (configure.ac): Likewise.
16224         * modules/sin (configure.ac): Likewise.
16225         * modules/sinh (configure.ac): Likewise.
16226         * modules/tan (configure.ac): Likewise.
16227         * modules/tanh (configure.ac): Likewise.
16228         * modules/y0 (configure.ac): Likewise.
16229         * modules/y1 (configure.ac): Likewise.
16230         * modules/yn (configure.ac): Likewise.
16231         Suggested by Paolo Bonzini.
16232
16233 2010-01-31  Bruno Haible  <bruno@clisp.org>
16234
16235         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
16236
16237 2010-01-31  Bruno Haible  <bruno@clisp.org>
16238
16239         Work around getdelim() bug on FreeBSD 8.0.
16240         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
16241         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
16242         not work.
16243         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
16244         is 1.
16245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
16246         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
16247         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
16248         a non-zero size.
16249         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
16250
16251 2010-01-31  Bruno Haible  <bruno@clisp.org>
16252
16253         Work around getline() bug on FreeBSD 8.0.
16254         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
16255         and a non-zero size.
16256         * tests/test-getline.c (main): Likewise.
16257         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
16258         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
16259
16260 2010-01-28  Eric Blake  <ebb9@byu.net>
16261
16262         regex: fix build failure
16263         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
16264         platforms.
16265
16266 2010-01-28  Jim Meyering  <meyering@redhat.com>
16267
16268         regex: do not ignore memory allocation failure
16269         * lib/regex_internal.c (create_cd_newstate): Detect
16270         re_node_set_init_copy failure.   Extracted from glibc commit
16271         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16272
16273         regex: sync more white-space changes from libc
16274         * lib/regex_internal.c: White-space only changes.
16275         * lib/regexec.c: Likewise.
16276
16277         regex: add many uses of __attribute_warn_unused_result__
16278         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
16279         * lib/regexec.c: Likewise.
16280         Extracted from a messy glibc commit.
16281
16282         regcomp.c: spelling and merge-artifact from glibc
16283         * lib/regcomp.c: Merge remainder of glibc's
16284         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16285
16286         regcomp.c: sync white-space changes from glibc
16287         * lib/regcomp.c: Merge to accommodate white space
16288         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
16289
16290         regcomp.c: do not ignore internal return values
16291         * lib/regcomp.c: Do not ignore internal return values.
16292         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
16293         but without its white-space changes and spelling fixes.
16294
16295         regex_internal.h: define __attribute_warn_unused_result__
16296         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
16297
16298         maint: add a syntax-check rule to check for vulnerable Makefile.in
16299         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
16300
16301 2010-01-27  Jim Meyering  <meyering@redhat.com>
16302
16303         ncftpput-ftp: clean up spaces
16304         * build-aux/ncftpput-ftp: Make Copyright line consistent.
16305         Remove trailing blanks.
16306
16307 2010-01-27  Simon Josefsson  <simon@josefsson.org>
16308
16309         * build-aux/git-version-gen: Fix copyright statement.
16310         * build-aux/gnupload: Likewise.
16311         * tests/test-arcfour.c: Likewise.
16312         * tests/test-arctwo.c: Likewise.
16313         * tests/test-count-one-bits.c: Likewise.
16314         * tests/test-crc.c: Likewise.
16315         * tests/test-des.c: Likewise.
16316         * tests/test-gc-arcfour.c: Likewise.
16317         * tests/test-gc-arctwo.c: Likewise.
16318         * tests/test-gc-des.c: Likewise.
16319         * tests/test-gc-hmac-md5.c: Likewise.
16320         * tests/test-gc-hmac-sha1.c: Likewise.
16321         * tests/test-gc-md2.c: Likewise.
16322         * tests/test-gc-md4.c: Likewise.
16323         * tests/test-gc-md5.c: Likewise.
16324         * tests/test-gc-pbkdf2-sha1.c: Likewise.
16325         * tests/test-gc-rijndael.c: Likewise.
16326         * tests/test-gc-sha1.c: Likewise.
16327         * tests/test-gc.c: Likewise.
16328         * tests/test-gethostname.c: Likewise.
16329         * tests/test-gettimeofday.c: Likewise.
16330         * tests/test-hash.c: Likewise.
16331         * tests/test-hmac-md5.c: Likewise.
16332         * tests/test-hmac-sha1.c: Likewise.
16333         * tests/test-md2.c: Likewise.
16334         * tests/test-md4.c: Likewise.
16335         * tests/test-md5.c: Likewise.
16336         * tests/test-memchr.c: Likewise.
16337         * tests/test-memchr2.c: Likewise.
16338         * tests/test-memcmp.c: Likewise.
16339         * tests/test-memmem.c: Likewise.
16340         * tests/test-memrchr.c: Likewise.
16341         * tests/test-rawmemchr.c: Likewise.
16342         * tests/test-read-file.c: Likewise.
16343         * tests/test-rijndael.c: Likewise.
16344         * tests/test-sockets.c: Likewise.
16345         * tests/test-strchrnul.c: Likewise.
16346         * tests/test-strstr.c: Likewise.
16347         * tests/test-strtod.c: Likewise.
16348         * build-aux/ncftpput-ftp: Likewise.
16349
16350 2010-01-26  Eric Blake  <ebb9@byu.net>
16351
16352         ignore-value: update recommended header name
16353         * modules/ignore-value (Include): Only use <> for headers that
16354         exist in glibc.
16355
16356 2010-01-26  Jim Meyering  <meyering@redhat.com>
16357
16358         test-userspec.c: avoid compiler warnings
16359         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
16360         and "initialization discards qualifiers..." warnings.
16361         Put the first "uid" in its own scope, and make char* members "const".
16362
16363 2010-01-25  Bruno Haible  <bruno@clisp.org>
16364
16365         gnulib-tool: Make warning diagnostics consistent.
16366         * gnulib-tool (func_warning): New function.
16367         Use it everywhere where gnulib-tool produces output to stderr and it is
16368         not a fatal error.
16369
16370 2010-01-25  Bruno Haible  <bruno@clisp.org>
16371
16372         Fix test dependencies.
16373         * modules/xstrtol-tests (Depends-on): Add inttypes.
16374         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
16375
16376 2010-01-25 Pádraig Brady <P@draigBrady.com>
16377
16378         syntax-check: detect incorrect boolean macro values in config.h
16379         * modules/maintainer-makefile (configure.ac): Parameterize the location
16380         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
16381         The logic is from Eric Blake and the location indicated by Jim Meyering.
16382         Note the more natural CONFIG_HEADER name is prohibited by automake
16383         for backwards compatibility reasons.
16384         * top/maint.mk (sc_Wundef_boolean): New rule.
16385
16386 2010-01-25  Jim Meyering  <meyering@redhat.com>
16387
16388         bootstrap: detect MacOS 10.6's shasum, too
16389         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
16390         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
16391
16392 2010-01-23  Jim Meyering  <meyering@redhat.com>
16393
16394         xstrtoll: new module
16395         * modules/xstrtoll: New file.
16396         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
16397         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
16398         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
16399         ./configure fails if you use this module and lack "long long".
16400         * modules/xstrtoll-tests: New module.
16401         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
16402         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
16403         new init.sh-based test framework.
16404
16405 2010-01-24  Bruno Haible  <bruno@clisp.org>
16406
16407         Tests for module 'yn'.
16408         * modules/yn-tests: New file.
16409         * tests/test-yn.c: New file.
16410
16411         Tests for module 'y1'.
16412         * modules/y1-tests: New file.
16413         * tests/test-y1.c: New file.
16414
16415         Tests for module 'y0'.
16416         * modules/y0-tests: New file.
16417         * tests/test-y0.c: New file.
16418
16419         Tests for module 'tanh'.
16420         * modules/tanh-tests: New file.
16421         * tests/test-tanh.c: New file.
16422
16423         Tests for module 'tan'.
16424         * modules/tan-tests: New file.
16425         * tests/test-tan.c: New file.
16426
16427         Tests for module 'sqrt'.
16428         * modules/sqrt-tests: New file.
16429         * tests/test-sqrt.c: New file.
16430
16431         Tests for module 'sinh'.
16432         * modules/sinh-tests: New file.
16433         * tests/test-sinh.c: New file.
16434
16435         Tests for module 'sin'.
16436         * modules/sin-tests: New file.
16437         * tests/test-sin.c: New file.
16438
16439         Tests for module 'rint'.
16440         * modules/rint-tests: New file.
16441         * tests/test-rint.c: New file.
16442
16443         Tests for module 'remainder'.
16444         * modules/remainder-tests: New file.
16445         * tests/test-remainder.c: New file.
16446
16447         Tests for module 'pow'.
16448         * modules/pow-tests: New file.
16449         * tests/test-pow.c: New file.
16450
16451         Tests for module 'nextafter'.
16452         * modules/nextafter-tests: New file.
16453         * tests/test-nextafter.c: New file.
16454
16455         Tests for module 'modf'.
16456         * modules/modf-tests: New file.
16457         * tests/test-modf.c: New file.
16458
16459         Tests for module 'logb'.
16460         * modules/logb-tests: New file.
16461         * tests/test-logb.c: New file.
16462
16463         Tests for module 'log1p'.
16464         * modules/log1p-tests: New file.
16465         * tests/test-log1p.c: New file.
16466
16467         Tests for module 'log10'.
16468         * modules/log10-tests: New file.
16469         * tests/test-log10.c: New file.
16470
16471         Tests for module 'log'.
16472         * modules/log-tests: New file.
16473         * tests/test-log.c: New file.
16474
16475         Tests for module 'lgamma'.
16476         * modules/lgamma-tests: New file.
16477         * tests/test-lgamma.c: New file.
16478
16479         Tests for module 'ldexp'.
16480         * modules/ldexp-tests: New file.
16481         * tests/test-ldexp.c: New file.
16482
16483         Tests for module 'jn'.
16484         * modules/jn-tests: New file.
16485         * tests/test-jn.c: New file.
16486
16487         Tests for module 'j1'.
16488         * modules/j1-tests: New file.
16489         * tests/test-j1.c: New file.
16490
16491         Tests for module 'j0'.
16492         * modules/j0-tests: New file.
16493         * tests/test-j0.c: New file.
16494
16495         Tests for module 'hypot'.
16496         * modules/hypot-tests: New file.
16497         * tests/test-hypot.c: New file.
16498
16499         Tests for module 'fmod'.
16500         * modules/fmod-tests: New file.
16501         * tests/test-fmod.c: New file.
16502
16503         Tests for module 'fabs'.
16504         * modules/fabs-tests: New file.
16505         * tests/test-fabs.c: New file.
16506
16507         Tests for module 'exp'.
16508         * modules/exp-tests: New file.
16509         * tests/test-exp.c: New file.
16510
16511         Tests for module 'erfc'.
16512         * modules/erfc-tests: New file.
16513         * tests/test-erfc.c: New file.
16514
16515         Tests for module 'erf'.
16516         * modules/erf-tests: New file.
16517         * tests/test-erf.c: New file.
16518
16519         Tests for module 'cosh'.
16520         * modules/cosh-tests: New file.
16521         * tests/test-cosh.c: New file.
16522
16523         Tests for module 'cos'.
16524         * modules/cos-tests: New file.
16525         * tests/test-cos.c: New file.
16526
16527         Tests for module 'copysign'.
16528         * modules/copysign-tests: New file.
16529         * tests/test-copysign.c: New file.
16530
16531         Tests for module 'cbrt'.
16532         * modules/cbrt-tests: New file.
16533         * tests/test-cbrt.c: New file.
16534
16535         Tests for module 'atan2'.
16536         * modules/atan2-tests: New file.
16537         * tests/test-atan2.c: New file.
16538
16539         Tests for module 'atan'.
16540         * modules/atan-tests: New file.
16541         * tests/test-atan.c: New file.
16542
16543         Tests for module 'asin'.
16544         * modules/asin-tests: New file.
16545         * tests/test-asin.c: New file.
16546
16547         Tests for module 'acos'.
16548         * modules/acos-tests: New file.
16549         * tests/test-acos.c: New file.
16550
16551 2010-01-24  Bruno Haible  <bruno@clisp.org>
16552
16553         Fix tests for common <math.h> functions.
16554         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
16555         code snippet that references the function pointer, rather than merely
16556         calling the function. Substitute the FUNC_LIBM variable.
16557         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
16558         * modules/acos (configure.ac): Likewise.
16559         * modules/asin (configure.ac): Likewise.
16560         * modules/atan (configure.ac): Likewise.
16561         * modules/atan2 (configure.ac): Likewise.
16562         * modules/cbrt (configure.ac): Likewise.
16563         * modules/copysign (configure.ac): Likewise.
16564         * modules/cos (configure.ac): Likewise.
16565         * modules/cosh (configure.ac): Likewise.
16566         * modules/erf (configure.ac): Likewise.
16567         * modules/erfc (configure.ac): Likewise.
16568         * modules/exp (configure.ac): Likewise.
16569         * modules/fabs (configure.ac): Likewise.
16570         * modules/fmod (configure.ac): Likewise.
16571         * modules/hypot (configure.ac): Likewise.
16572         * modules/j0 (configure.ac): Likewise.
16573         * modules/j1 (configure.ac): Likewise.
16574         * modules/jn (configure.ac): Likewise.
16575         * modules/ldexp (configure.ac): Likewise.
16576         * modules/lgamma (configure.ac): Likewise.
16577         * modules/log (configure.ac): Likewise.
16578         * modules/log10 (configure.ac): Likewise.
16579         * modules/log1p (configure.ac): Likewise.
16580         * modules/logb (configure.ac): Likewise.
16581         * modules/modf (configure.ac): Likewise.
16582         * modules/nextafter (configure.ac): Likewise.
16583         * modules/pow (configure.ac): Likewise.
16584         * modules/remainder (configure.ac): Likewise.
16585         * modules/rint (configure.ac): Likewise.
16586         * modules/sin (configure.ac): Likewise.
16587         * modules/sinh (configure.ac): Likewise.
16588         * modules/tan (configure.ac): Likewise.
16589         * modules/tanh (configure.ac): Likewise.
16590         * modules/y0 (configure.ac): Likewise.
16591         * modules/y1 (configure.ac): Likewise.
16592         * modules/yn (configure.ac): Likewise.
16593
16594 2010-01-24  Bruno Haible  <bruno@clisp.org>
16595
16596         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
16597         * tests/test-acosl.c (x): New variable.
16598         (main): Store argument in x and fetch it from x.
16599         * tests/test-asinl.c (x): New variable.
16600         (main): Store argument in x and fetch it from x.
16601         * tests/test-atanl.c (x): New variable.
16602         (main): Store argument in x and fetch it from x.
16603         * tests/test-cosl.c (x): New variable.
16604         (main): Store argument in x and fetch it from x.
16605         * tests/test-expl.c (x): New variable.
16606         (main): Store argument in x and fetch it from x.
16607         * tests/test-logl.c (x): New variable.
16608         (main): Store argument in x and fetch it from x.
16609         * tests/test-sinl.c (x): New variable.
16610         (main): Store argument in x and fetch it from x.
16611         * tests/test-sqrtl.c (x): New variable.
16612         (main): Store argument in x and fetch it from x.
16613         * tests/test-tanl.c (x): New variable.
16614         (main): Store argument in x and fetch it from x.
16615
16616 2010-01-24  Bruno Haible  <bruno@clisp.org>
16617
16618         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
16619         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
16620         assignments to the initial TESTS_ENVIRONMENT.
16621         * doc/gnulib.texi (Unit test modules): Document it.
16622         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
16623         TESTS_ENVIRONMENT.
16624         * modules/btowc-tests (Makefile.am): Likewise.
16625         * modules/c-stack-tests (Makefile.am): Likewise.
16626         * modules/c-strcase-tests (Makefile.am): Likewise.
16627         * modules/copy-file-tests (Makefile.am): Likewise.
16628         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
16629         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
16630         * modules/mbrtowc-tests (Makefile.am): Likewise.
16631         * modules/mbscasecmp-tests (Makefile.am): Likewise.
16632         * modules/mbscasestr-tests (Makefile.am): Likewise.
16633         * modules/mbschr-tests (Makefile.am): Likewise.
16634         * modules/mbscspn-tests (Makefile.am): Likewise.
16635         * modules/mbsinit-tests (Makefile.am): Likewise.
16636         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
16637         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
16638         * modules/mbspbrk-tests (Makefile.am): Likewise.
16639         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
16640         * modules/mbsrchr-tests (Makefile.am): Likewise.
16641         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
16642         * modules/mbsspn-tests (Makefile.am): Likewise.
16643         * modules/mbsstr-tests (Makefile.am): Likewise.
16644         * modules/nl_langinfo-tests (Makefile.am): Likewise.
16645         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
16646         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
16647         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
16648         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
16649         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
16650         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
16651         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
16652         * modules/wcrtomb-tests (Makefile.am): Likewise.
16653         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
16654         * modules/wcsrtombs-tests (Makefile.am): Likewise.
16655         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
16656         assignments from TESTS_ENVIRONMENT.
16657         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
16658         augmentation.
16659         * modules/argp-version-etc-tests (Makefile.am): Likewise.
16660         * modules/atexit-tests (Makefile.am): Likewise.
16661         * modules/binary-io-tests (Makefile.am): Likewise.
16662         * modules/closein-tests (Makefile.am): Likewise.
16663         * modules/dprintf-posix-tests (Makefile.am): Likewise.
16664         * modules/exclude-tests (Makefile.am): Likewise.
16665         * modules/fflush-tests (Makefile.am): Likewise.
16666         * modules/fpending-tests (Makefile.am): Likewise.
16667         * modules/fprintf-posix-tests (Makefile.am): Likewise.
16668         * modules/freadahead-tests (Makefile.am): Likewise.
16669         * modules/freadptr-tests (Makefile.am): Likewise.
16670         * modules/freadseek-tests (Makefile.am): Likewise.
16671         * modules/fseek-tests (Makefile.am): Likewise.
16672         * modules/fseeko-tests (Makefile.am): Likewise.
16673         * modules/ftell-tests (Makefile.am): Likewise.
16674         * modules/ftello-tests (Makefile.am): Likewise.
16675         * modules/idpriv-drop-tests (Makefile.am): Likewise.
16676         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
16677         * modules/lseek-tests (Makefile.am): Likewise.
16678         * modules/parse-duration-tests (Makefile.am): Likewise.
16679         * modules/perror-tests (Makefile.am): Likewise.
16680         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
16681         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
16682         * modules/pipe-tests (Makefile.am): Likewise.
16683         * modules/pread-tests (Makefile.am): Likewise.
16684         * modules/printf-posix-tests (Makefile.am): Likewise.
16685         * modules/select-tests (Makefile.am): Likewise.
16686         * modules/sigpipe-tests (Makefile.am): Likewise.
16687         * modules/tsearch-tests (Makefile.am): Likewise.
16688         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
16689         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
16690         * modules/uniname/uniname-tests (Makefile.am): Likewise.
16691         * modules/uniwidth/width-tests (Makefile.am): Likewise.
16692         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
16693         * modules/version-etc-tests (Makefile.am): Likewise.
16694         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
16695         * modules/vprintf-posix-tests (Makefile.am): Likewise.
16696         * modules/xalloc-die-tests (Makefile.am): Likewise.
16697         * modules/xprintf-posix-tests (Makefile.am): Likewise.
16698         * modules/xstrtoimax-tests (Makefile.am): Likewise.
16699         * modules/xstrtol-tests (Makefile.am): Likewise.
16700         * modules/xstrtoumax-tests (Makefile.am): Likewise.
16701         * modules/yesno-tests (Makefile.am): Likewise.
16702         Suggested by Jim Meyering.
16703
16704 2010-01-24  Bruno Haible  <bruno@clisp.org>
16705
16706         More documentation.
16707         * doc/gnulib.texi (Writing modules): New chapter.
16708         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
16709         the new chapter.
16710
16711 2010-01-24  Jim Meyering  <meyering@redhat.com>
16712
16713         maint.mk: do not prepend "./" after filtering
16714         * top/maint.mk (_prepend_srcdir_prefix): New variable
16715         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
16716         "./" when $(srcdir) is ".".
16717
16718         define STREQ(a,b) consistently, removing useless parentheses
16719         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
16720         since the only risk is that "a" or "b" contains an unparenthesized
16721         comma, but if either did that, STREQ would have 3 or more arguments.
16722         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
16723         * lib/fts.c (STREQ): Remove unnecessary parentheses.
16724         * lib/hash-triple.c (STREQ): Likewise.
16725         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
16726         * lib/getugroups.c (STREQ): Likewise.
16727
16728 2010-01-23  Jim Meyering  <meyering@redhat.com>
16729
16730         maint.mk: fix syntax-check in a non-srcdir build directory
16731         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
16732         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
16733
16734 2010-01-22  Jim Meyering  <meyering@redhat.com>
16735
16736         userspec: add unit tests
16737         * tests/test-userspec.c: New file.
16738         * modules/userspec-tests: Likewise.
16739
16740 2010-01-21  Jim Meyering  <meyering@redhat.com>
16741
16742         maint.mk: handle source file names containing "." robustly
16743         * top/maint.mk (_dot_escaped_srcdir): Define.
16744         (VC_LIST): Use it in LHS of sed substitution.
16745
16746 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
16747
16748         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
16749         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
16750         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
16751         from a non-srcdir build.
16752
16753 2010-01-20  Eric Blake  <ebb9@byu.net>
16754
16755         warn-on-use: use instead of link-warning
16756         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
16757         * modules/unistd (Depends-on, Makefile.am): Likewise.
16758         * modules/arpa_inet (Depends-on): Replace link-warning with
16759         warn-on-use.
16760         (Makefile.am): Update rules accordingly.
16761         * modules/ctype (Depends-on, Makefile.am): Likewise.
16762         * modules/dirent (Depends-on, Makefile.am): Likewise.
16763         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
16764         * modules/inttypes (Depends-on, Makefile.am): Likewise.
16765         * modules/langinfo (Depends-on, Makefile.am): Likewise.
16766         * modules/locale (Depends-on, Makefile.am): Likewise.
16767         * modules/math (Depends-on, Makefile.am): Likewise.
16768         * modules/search (Depends-on, Makefile.am): Likewise.
16769         * modules/signal (Depends-on, Makefile.am): Likewise.
16770         * modules/spawn (Depends-on, Makefile.am): Likewise.
16771         * modules/stdlib (Depends-on, Makefile.am): Likewise.
16772         * modules/string (Depends-on, Makefile.am): Likewise.
16773         * modules/strings (Depends-on, Makefile.am): Likewise.
16774         * modules/sys_file (Depends-on, Makefile.am): Likewise.
16775         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
16776         * modules/sys_select (Depends-on, Makefile.am): Likewise.
16777         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
16778         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
16779         * modules/sys_times (Depends-on, Makefile.am): Likewise.
16780         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
16781         * modules/wchar (Depends-on, Makefile.am): Likewise.
16782         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
16783         should be poisoned.
16784         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
16785         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
16786         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
16787         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16788         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16789         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16790         * m4/math_h.m4 (gl_MATH_H): Likewise.
16791         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16792         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
16793         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16794         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16795         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16796         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
16797         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16798         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
16799         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16800         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16801         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16802         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
16803         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16804         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16805         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16806         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
16807         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
16808         GL_LINK_WARNING.
16809         * lib/ctype.in.h: Likewise.
16810         * lib/dirent.in.h: Likewise.
16811         * lib/fcntl.in.h: Likewise.
16812         * lib/inttypes.in.h: Likewise.
16813         * lib/langinfo.in.h: Likewise.
16814         * lib/locale.in.h: Likewise.
16815         * lib/math.in.h: Likewise.
16816         * lib/search.in.h: Likewise.
16817         * lib/signal.in.h: Likewise.
16818         * lib/spawn.in.h: Likewise.
16819         * lib/stdio.in.h: Likewise.
16820         * lib/stdlib.in.h: Likewise.
16821         * lib/string.in.h: Likewise.
16822         * lib/strings.in.h: Likewise.
16823         * lib/sys_file.in.h: Likewise.
16824         * lib/sys_ioctl.in.h: Likewise.
16825         * lib/sys_select.in.h: Likewise.
16826         * lib/sys_socket.in.h: Likewise.
16827         * lib/sys_stat.in.h: Likewise.
16828         * lib/sys_times.in.h: Likewise.
16829         * lib/sys_utsname.in.h: Likewise.
16830         * lib/unistd.in.h: Likewise.
16831         * lib/wchar.in.h: Likewise.
16832
16833 2010-01-20  Bruno Haible  <bruno@clisp.org>
16834
16835         Avoid duplicate -lm.
16836         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
16837         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
16838         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
16839         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
16840         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
16841         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
16842         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
16843         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
16844         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
16845         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
16846         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
16847         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16848         Reported by Paolo Bonzini.
16849
16850 2010-01-19  Bruno Haible  <bruno@clisp.org>
16851
16852         langinfo, nl_langinfo: Relicense under LGPLv2+.
16853         * modules/langinfo (License): Change to LGPLv2+.
16854         * modules/nl_langinfo (License): Likewise.
16855         Patch by David Lutterkort <lutter@redhat.com>.
16856
16857 2010-01-19  Bruno Haible  <bruno@clisp.org>
16858
16859         Avoid compilation error with cc on OSF/1 5.1.
16860         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
16861         statement, not before.
16862         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16863
16864 2010-01-18  Bruno Haible  <bruno@clisp.org>
16865
16866         Avoid a link error due to the __printf__ symbol.
16867         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
16868         and 2.6.x.
16869         (__format__, __printf__): Remove definitions.
16870         * lib/argp-fmtstream.h: Likewise.
16871         * lib/argp.h: Likewise.
16872         * lib/error.h: Likewise.
16873         * lib/vasnprintf.h: Likewise.
16874         * lib/xprintf.h: Likewise.
16875         * lib/xvasprintf.h: Likewise.
16876         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16877
16878 2010-01-18  Bruno Haible  <bruno@clisp.org>
16879
16880         Tests for module 'tanl'.
16881         * modules/tanl-tests: New file.
16882         * tests/test-tanl.c: New file.
16883
16884         Tests for module 'sqrtl'.
16885         * modules/sqrtl-tests: New file.
16886         * tests/test-sqrtl.c: New file.
16887
16888         Tests for module 'sinl'.
16889         * modules/sinl-tests: New file.
16890         * tests/test-sinl.c: New file.
16891
16892         Tests for module 'logl'.
16893         * modules/logl-tests: New file.
16894         * tests/test-logl.c: New file.
16895
16896         Tests for module 'expl'.
16897         * modules/expl-tests: New file.
16898         * tests/test-expl.c: New file.
16899
16900         Tests for module 'cosl'.
16901         * modules/cosl-tests: New file.
16902         * tests/test-cosl.c: New file.
16903
16904         Tests for module 'atanl'.
16905         * modules/atanl-tests: New file.
16906         * tests/test-atanl.c: New file.
16907
16908         Tests for module 'asinl'.
16909         * modules/asinl-tests: New file.
16910         * tests/test-asinl.c: New file.
16911
16912         Tests for module 'acosl'.
16913         * modules/acosl-tests: New file.
16914         * tests/test-acosl.c: New file.
16915
16916         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16917         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
16918         tanl): Use the standard gnulib idiom.
16919         * lib/cosl.c: Don't include trigl.c and sincosl.c.
16920         * lib/sinl.c: Likewise.
16921         * lib/tanl.c: Don't include trigl.c.
16922         (kernel_tanl): Make static.
16923         * lib/sincosl.c: Include trigl.h first.
16924         * lib/trigl.c: Likewise.
16925         * m4/acosl.m4: New file.
16926         * m4/asinl.m4: New file.
16927         * m4/atanl.m4: New file.
16928         * m4/cosl.m4: New file.
16929         * m4/expl.m4: New file.
16930         * m4/logl.m4: New file.
16931         * m4/sinl.m4: New file.
16932         * m4/sqrtl.m4: New file.
16933         * m4/tanl.m4: New file.
16934         * m4/mathl.m4: Remove file.
16935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
16936         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
16937         Don't initialize GNULIB_MATHL.
16938         * modules/acosl: New file.
16939         * modules/asinl: New file.
16940         * modules/atanl: New file.
16941         * modules/cosl: New file.
16942         * modules/expl: New file.
16943         * modules/logl: New file.
16944         * modules/sinl: New file.
16945         * modules/sqrtl: New file.
16946         * modules/tanl: New file.
16947         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
16948         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
16949         substitute GNULIB_MATHL.
16950         * modules/mathl: Rewritten.
16951         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
16952         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
16953         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
16954         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
16955         * doc/posix-functions/expl.texi: Mention the 'expl' module.
16956         * doc/posix-functions/logl.texi: Mention the 'logl' module.
16957         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
16958         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
16959         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
16960
16961 2010-01-18  Bruno Haible  <bruno@clisp.org>
16962
16963         sqrt: Make gl_FUNC_SQRT requirable.
16964         * m4/sqrt.m4: New file.
16965         * modules/sqrt (Files): Add it.
16966         (configure.ac): Invoke gl_FUNC_SQRT.
16967
16968 2010-01-18  Bruno Haible  <bruno@clisp.org>
16969
16970         New modules for common <math.h> functions.
16971         * m4/mathfunc.m4: New file.
16972         * modules/acos: New file.
16973         * modules/asin: New file.
16974         * modules/atan: New file.
16975         * modules/atan2: New file.
16976         * modules/cbrt: New file.
16977         * modules/copysign: New file.
16978         * modules/cos: New file.
16979         * modules/cosh: New file.
16980         * modules/erf: New file.
16981         * modules/erfc: New file.
16982         * modules/exp: New file.
16983         * modules/fabs: New file.
16984         * modules/fmod: New file.
16985         * modules/hypot: New file.
16986         * modules/j0: New file.
16987         * modules/j1: New file.
16988         * modules/jn: New file.
16989         * modules/ldexp: New file.
16990         * modules/lgamma: New file.
16991         * modules/log: New file.
16992         * modules/log10: New file.
16993         * modules/log1p: New file.
16994         * modules/logb: New file.
16995         * modules/modf: New file.
16996         * modules/nextafter: New file.
16997         * modules/pow: New file.
16998         * modules/remainder: New file.
16999         * modules/rint: New file.
17000         * modules/sin: New file.
17001         * modules/sinh: New file.
17002         * modules/sqrt: New file.
17003         * modules/tan: New file.
17004         * modules/tanh: New file.
17005         * modules/y0: New file.
17006         * modules/y1: New file.
17007         * modules/yn: New file.
17008         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17009         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17010         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17011         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17012         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17013         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17014         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17015         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17016         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17017         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17018         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17019         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17020         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17021         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17022         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17023         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17024         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17025         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17026         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17027         * doc/posix-functions/log.texi: Mention the 'log' module.
17028         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17029         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17030         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17031         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17032         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17033         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17034         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17035         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17036         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17037         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17038         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17039         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17040         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17041         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17042         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17043         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17044
17045 2010-01-18  Jim Meyering  <meyering@redhat.com>
17046
17047         ignore-value: relax license to LGPLv2+
17048         * modules/ignore-value (License): Relax to LGPLv2+.
17049
17050         getdate: don't leak when TZ contains two or more '"'s
17051         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17052         double quote in TZ after the first one.
17053
17054         readtokens: do not leak internal token_lengths buffer
17055         * lib/readtokens.c (readtokens): Free the local, lengths,
17056         when the supplied "token_lengths" parameter is NULL.
17057
17058 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17059
17060         Fix a couple of missing LIBTHREAD link failures on AIX.
17061         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17062         $(LIBTHREAD).
17063         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17064
17065         Link test-poll against INET_PTON_LIB.
17066         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17067         for inet_pton on Solaris 10.
17068
17069 2010-01-17  Bruno Haible  <bruno@clisp.org>
17070
17071         unistdio/*-sprintf: Fix typo in module description.
17072         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17073         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17074         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17075         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17076         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17077         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17078         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17080
17081 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17082
17083         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17084         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17085         variables in shell case patterns, for AIX and HP-UX ksh.
17086
17087         Split large sed scripts, for HP-UX sed.
17088         * modules/stdio: Split sed scripts around 50 sed commands,
17089         to avoid HP-UX limit of 99 commands, in the near future.
17090         * modules/string: Likewise.
17091         * modules/unistd: Likewise.
17092
17093         gnulib-tool: avoid writing in the current directory.
17094         * gnulib-tool (func_emit_lib_Makefile_am)
17095         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17096         not in the current directory, so concurrent gnulib-tool
17097         instances do not interfere.
17098
17099 2010-01-16  Jim Meyering  <meyering@redhat.com>
17100
17101         doc: update users.txt
17102         * users.txt: Add grep.
17103         (diffutils, gzip): Update URLs.
17104
17105 2010-01-12  Bruno Haible  <bruno@clisp.org>
17106
17107         posix_spawn: Avoid test failure on Cygwin.
17108         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17109         characters.
17110         Reported by Simon Josefsson.
17111
17112 2010-01-12  Bruno Haible  <bruno@clisp.org>
17113
17114         * tests/test-cond.c (main): When skipping the test, show the reason.
17115
17116 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17117
17118         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17119
17120 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17121
17122         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17123         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17124
17125 2010-01-12  Eric Blake  <ebb9@byu.net>
17126
17127         build: guarantee AS_VAR_IF
17128         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17129         (gl_AS_VAR_IF): Move...
17130         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17131         Reported by Simon Josefsson.
17132
17133 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17134
17135         * lib/stdio.in.h: Fix typo.
17136
17137 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17138
17139         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17140         libgpg-error.
17141
17142 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17143
17144         * tests/test-xalloc-die.sh: Use $EXEEXT.
17145
17146 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17147             Bruno Haible  <bruno@clisp.org>
17148
17149         getlogin, getlogin_r: Avoid test failure.
17150         * tests/test-getlogin.c: Include <stdio.h>.
17151         (main): Skip the test when the function fails because stdin is not a
17152         tty.
17153         * tests/test-getlogin_r.c: Include <stdio.h>.
17154         (main): Skip the test when the function fails because stdin is not a
17155         tty.
17156
17157 2010-01-11  Eric Blake  <ebb9@byu.net>
17158
17159         tests: avoid more large file warnings
17160         * tests/test-fflush.c: Avoid warning about ftell use.
17161         * tests/test-fseek.c: Avoid warning about fseek use.
17162
17163 2010-01-10  Bruno Haible  <bruno@clisp.org>
17164
17165         nproc: Work better on Linux when /proc and /sys are not mounted.
17166         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17167         as lower bound when, on glibc/Linux systems,
17168         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17169         Suggested by Pádraig Brady <P@draigbrady.com>.
17170         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17171
17172         nproc: Refactor.
17173         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17174         extracted from num_processors.
17175         (num_processors): Call it.
17176
17177 2010-01-11  Jim Meyering  <meyering@redhat.com>
17178
17179         utimecmp: avoid new warning from upcoming gcc-4.5.0
17180         * lib/utimecmp.c (BILLION): Define using #define rather than an
17181         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17182
17183 2010-01-11  Eric Blake  <ebb9@byu.net>
17184
17185         math: add portability warnings for classification macros
17186         * modules/math (Depends-on): Add warn-on-use.
17187         (Makefile.am): Provide new substitutions.
17188         * m4/math_h.m4 (gl_MATH_H): Require inline.
17189         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17190         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17191         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17192         implement warnings.
17193
17194         unistd: warn on use of environ without module
17195         * modules/unistd (Depends-on): Add warn-on-use.
17196         (Makefile.am): Provide new substitutions.
17197         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17198         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17199
17200         stdio: warn on suspicious uses
17201         * modules/stdio (Depends-on): Add warn-on-use.
17202         (Makefile.am): Provide new substitutions.
17203         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17204         fseeko.
17205         * lib/stdio.in.h (gets): Always warn on use.
17206         (fseek, ftell): Adjust when warnings are issued, and honor
17207         _GL_NO_LARGE_FILES as a way to silence the warning.
17208         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
17209         any warning about large file offsets.
17210         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
17211         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
17212         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
17213         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
17214         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
17215         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
17216         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
17217         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
17218
17219         warn-on-use: new module
17220         * modules/warn-on-use: New file.
17221         * build-aux/warn-on-use.h: Likewise.
17222         * m4/warn-on-use.m4: Likewise.
17223         * MODULES.html.sh (Support for building): Mention it.
17224
17225 2010-01-10  Bruno Haible  <bruno@clisp.org>
17226
17227         Tests for module 'unistr/u32-strdup'.
17228         * modules/unistr/u32-strdup-tests: New file.
17229         * tests/unistr/test-u32-strdup.c: New file.
17230
17231         Tests for module 'unistr/u16-strdup'.
17232         * modules/unistr/u16-strdup-tests: New file.
17233         * tests/unistr/test-u16-strdup.c: New file.
17234
17235         Tests for module 'unistr/u8-strdup'.
17236         * modules/unistr/u8-strdup-tests: New file.
17237         * tests/unistr/test-u8-strdup.c: New file.
17238         * tests/unistr/test-strdup.h: New file.
17239
17240         Tests for module 'unistr/u32-strncmp'.
17241         * modules/unistr/u32-strncmp-tests: New file.
17242         * tests/unistr/test-u32-strncmp.c: New file.
17243
17244         Tests for module 'unistr/u16-strncmp'.
17245         * modules/unistr/u16-strncmp-tests: New file.
17246         * tests/unistr/test-u16-strncmp.c: New file.
17247
17248         Tests for module 'unistr/u8-strncmp'.
17249         * modules/unistr/u8-strncmp-tests: New file.
17250         * tests/unistr/test-u8-strncmp.c: New file.
17251         * tests/unistr/test-strncmp.h: New file.
17252
17253         Tests for module 'unistr/u32-strcoll'.
17254         * modules/unistr/u32-strcoll-tests: New file.
17255         * tests/unistr/test-u32-strcoll.c: New file.
17256
17257         Tests for module 'unistr/u16-strcoll'.
17258         * modules/unistr/u16-strcoll-tests: New file.
17259         * tests/unistr/test-u16-strcoll.c: New file.
17260
17261         Tests for module 'unistr/u8-strcoll'.
17262         * modules/unistr/u8-strcoll-tests: New file.
17263         * tests/unistr/test-u8-strcoll.c: New file.
17264
17265         Tests for module 'unistr/u32-strcmp'.
17266         * modules/unistr/u32-strcmp-tests: New file.
17267         * tests/unistr/test-u32-strcmp.c: New file.
17268         * tests/unistr/test-u32-strcmp.h: New file.
17269
17270         Tests for module 'unistr/u16-strcmp'.
17271         * modules/unistr/u16-strcmp-tests: New file.
17272         * tests/unistr/test-u16-strcmp.c: New file.
17273         * tests/unistr/test-u16-strcmp.h: New file.
17274
17275         Tests for module 'unistr/u8-strcmp'.
17276         * modules/unistr/u8-strcmp-tests: New file.
17277         * tests/unistr/test-u8-strcmp.c: New file.
17278         * tests/unistr/test-u8-strcmp.h: New file.
17279         * tests/unistr/test-strcmp.h: New file.
17280
17281         Tests for module 'unistr/u32-strncat'.
17282         * modules/unistr/u32-strncat-tests: New file.
17283         * tests/unistr/test-u32-strncat.c: New file.
17284
17285         Tests for module 'unistr/u16-strncat'.
17286         * modules/unistr/u16-strncat-tests: New file.
17287         * tests/unistr/test-u16-strncat.c: New file.
17288
17289         Tests for module 'unistr/u8-strncat'.
17290         * modules/unistr/u8-strncat-tests: New file.
17291         * tests/unistr/test-u8-strncat.c: New file.
17292         * tests/unistr/test-strncat.h: New file.
17293
17294         Tests for module 'unistr/u32-strcat'.
17295         * modules/unistr/u32-strcat-tests: New file.
17296         * tests/unistr/test-u32-strcat.c: New file.
17297
17298         Tests for module 'unistr/u16-strcat'.
17299         * modules/unistr/u16-strcat-tests: New file.
17300         * tests/unistr/test-u16-strcat.c: New file.
17301
17302         Tests for module 'unistr/u8-strcat'.
17303         * modules/unistr/u8-strcat-tests: New file.
17304         * tests/unistr/test-u8-strcat.c: New file.
17305         * tests/unistr/test-strcat.h: New file.
17306
17307         Tests for module 'unistr/u32-stpncpy'.
17308         * modules/unistr/u32-stpncpy-tests: New file.
17309         * tests/unistr/test-u32-stpncpy.c: New file.
17310
17311         Tests for module 'unistr/u16-stpncpy'.
17312         * modules/unistr/u16-stpncpy-tests: New file.
17313         * tests/unistr/test-u16-stpncpy.c: New file.
17314
17315         Tests for module 'unistr/u8-stpncpy'.
17316         * modules/unistr/u8-stpncpy-tests: New file.
17317         * tests/unistr/test-u8-stpncpy.c: New file.
17318         * tests/unistr/test-stpncpy.h: New file.
17319
17320         Tests for module 'unistr/u32-strncpy'.
17321         * modules/unistr/u32-strncpy-tests: New file.
17322         * tests/unistr/test-u32-strncpy.c: New file.
17323
17324         Tests for module 'unistr/u16-strncpy'.
17325         * modules/unistr/u16-strncpy-tests: New file.
17326         * tests/unistr/test-u16-strncpy.c: New file.
17327
17328         Tests for module 'unistr/u8-strncpy'.
17329         * modules/unistr/u8-strncpy-tests: New file.
17330         * tests/unistr/test-u8-strncpy.c: New file.
17331         * tests/unistr/test-strncpy.h: New file.
17332
17333         Tests for module 'unistr/u32-stpcpy'.
17334         * modules/unistr/u32-stpcpy-tests: New file.
17335         * tests/unistr/test-u32-stpcpy.c: New file.
17336
17337         Tests for module 'unistr/u16-stpcpy'.
17338         * modules/unistr/u16-stpcpy-tests: New file.
17339         * tests/unistr/test-u16-stpcpy.c: New file.
17340
17341         Tests for module 'unistr/u8-stpcpy'.
17342         * modules/unistr/u8-stpcpy-tests: New file.
17343         * tests/unistr/test-u8-stpcpy.c: New file.
17344         * tests/unistr/test-stpcpy.h: New file.
17345
17346         Tests for module 'unistr/u32-strcpy'.
17347         * modules/unistr/u32-strcpy-tests: New file.
17348         * tests/unistr/test-u32-strcpy.c: New file.
17349
17350         Tests for module 'unistr/u16-strcpy'.
17351         * modules/unistr/u16-strcpy-tests: New file.
17352         * tests/unistr/test-u16-strcpy.c: New file.
17353
17354         Tests for module 'unistr/u8-strcpy'.
17355         * modules/unistr/u8-strcpy-tests: New file.
17356         * tests/unistr/test-u8-strcpy.c: New file.
17357         * tests/unistr/test-strcpy.h: New file.
17358
17359         Tests for module 'unistr/u32-strnlen'.
17360         * modules/unistr/u32-strnlen-tests: New file.
17361         * tests/unistr/test-u32-strnlen.c: New file.
17362
17363         Tests for module 'unistr/u16-strnlen'.
17364         * modules/unistr/u16-strnlen-tests: New file.
17365         * tests/unistr/test-u16-strnlen.c: New file.
17366
17367         Tests for module 'unistr/u8-strnlen'.
17368         * modules/unistr/u8-strnlen-tests: New file.
17369         * tests/unistr/test-u8-strnlen.c: New file.
17370         * tests/unistr/test-strnlen.h: New file.
17371
17372         Tests for module 'unistr/u32-strlen'.
17373         * modules/unistr/u32-strlen-tests: New file.
17374         * tests/unistr/test-u32-strlen.c: New file.
17375
17376         Tests for module 'unistr/u16-strlen'.
17377         * modules/unistr/u16-strlen-tests: New file.
17378         * tests/unistr/test-u16-strlen.c: New file.
17379
17380         Tests for module 'unistr/u8-strlen'.
17381         * modules/unistr/u8-strlen-tests: New file.
17382         * tests/unistr/test-u8-strlen.c: New file.
17383
17384         Tests for module 'unistr/u32-prev'.
17385         * modules/unistr/u32-prev-tests: New file.
17386         * tests/unistr/test-u32-prev.c: New file.
17387
17388         Tests for module 'unistr/u16-prev'.
17389         * modules/unistr/u16-prev-tests: New file.
17390         * tests/unistr/test-u16-prev.c: New file.
17391
17392         Tests for module 'unistr/u8-prev'.
17393         * modules/unistr/u8-prev-tests: New file.
17394         * tests/unistr/test-u8-prev.c: New file.
17395
17396         Tests for module 'unistr/u32-next'.
17397         * modules/unistr/u32-next-tests: New file.
17398         * tests/unistr/test-u32-next.c: New file.
17399
17400         Tests for module 'unistr/u16-next'.
17401         * modules/unistr/u16-next-tests: New file.
17402         * tests/unistr/test-u16-next.c: New file.
17403
17404         Tests for module 'unistr/u8-next'.
17405         * modules/unistr/u8-next-tests: New file.
17406         * tests/unistr/test-u8-next.c: New file.
17407
17408         Tests for module 'unistr/u32-strmbtouc'.
17409         * modules/unistr/u32-strmbtouc-tests: New file.
17410         * tests/unistr/test-u32-strmbtouc.c: New file.
17411
17412         Tests for module 'unistr/u16-strmbtouc'.
17413         * modules/unistr/u16-strmbtouc-tests: New file.
17414         * tests/unistr/test-u16-strmbtouc.c: New file.
17415
17416         Tests for module 'unistr/u8-strmbtouc'.
17417         * modules/unistr/u8-strmbtouc-tests: New file.
17418         * tests/unistr/test-u8-strmbtouc.c: New file.
17419
17420         Tests for module 'unistr/u32-strmblen'.
17421         * modules/unistr/u32-strmblen-tests: New file.
17422         * tests/unistr/test-u32-strmblen.c: New file.
17423
17424         Tests for module 'unistr/u16-strmblen'.
17425         * modules/unistr/u16-strmblen-tests: New file.
17426         * tests/unistr/test-u16-strmblen.c: New file.
17427
17428         Tests for module 'unistr/u8-strmblen'.
17429         * modules/unistr/u8-strmblen-tests: New file.
17430         * tests/unistr/test-u8-strmblen.c: New file.
17431
17432         Tests for module 'unistr/u32-cpy-alloc'.
17433         * modules/unistr/u32-cpy-alloc-tests: New file.
17434         * tests/unistr/test-u32-cpy-alloc.c: New file.
17435
17436         Tests for module 'unistr/u16-cpy-alloc'.
17437         * modules/unistr/u16-cpy-alloc-tests: New file.
17438         * tests/unistr/test-u16-cpy-alloc.c: New file.
17439
17440         Tests for module 'unistr/u8-cpy-alloc'.
17441         * modules/unistr/u8-cpy-alloc-tests: New file.
17442         * tests/unistr/test-u8-cpy-alloc.c: New file.
17443         * tests/unistr/test-cpy-alloc.h: New file.
17444
17445         Tests for module 'unistr/u32-mbsnlen'.
17446         * modules/unistr/u32-mbsnlen-tests: New file.
17447         * tests/unistr/test-u32-mbsnlen.c: New file.
17448
17449         Tests for module 'unistr/u16-mbsnlen'.
17450         * modules/unistr/u16-mbsnlen-tests: New file.
17451         * tests/unistr/test-u16-mbsnlen.c: New file.
17452
17453         Tests for module 'unistr/u8-mbsnlen'.
17454         * modules/unistr/u8-mbsnlen-tests: New file.
17455         * tests/unistr/test-u8-mbsnlen.c: New file.
17456
17457         Tests for module 'unistr/u32-chr'.
17458         * modules/unistr/u32-chr-tests: New file.
17459         * tests/unistr/test-u32-chr.c: New file.
17460
17461         Tests for module 'unistr/u16-chr'.
17462         * modules/unistr/u16-chr-tests: New file.
17463         * tests/unistr/test-u16-chr.c: New file.
17464
17465         Tests for module 'unistr/u8-chr'.
17466         * modules/unistr/u8-chr-tests: New file.
17467         * tests/unistr/test-u8-chr.c: New file.
17468         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
17469
17470         Tests for module 'unistr/u32-cmp2'.
17471         * modules/unistr/u32-cmp2-tests: New file.
17472         * tests/unistr/test-u32-cmp2.c: New file.
17473
17474         Tests for module 'unistr/u16-cmp2'.
17475         * modules/unistr/u16-cmp2-tests: New file.
17476         * tests/unistr/test-u16-cmp2.c: New file.
17477
17478         Tests for module 'unistr/u8-cmp2'.
17479         * modules/unistr/u8-cmp2-tests: New file.
17480         * tests/unistr/test-u8-cmp2.c: New file.
17481         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
17482
17483         Tests for module 'unistr/u32-cmp'.
17484         * modules/unistr/u32-cmp-tests: New file.
17485         * tests/unistr/test-u32-cmp.c: New file.
17486
17487         Tests for module 'unistr/u16-cmp'.
17488         * modules/unistr/u16-cmp-tests: New file.
17489         * tests/unistr/test-u16-cmp.c: New file.
17490
17491         Tests for module 'unistr/u8-cmp'.
17492         * modules/unistr/u8-cmp-tests: New file.
17493         * tests/unistr/test-u8-cmp.c: New file.
17494         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
17495
17496         Tests for module 'unistr/u32-set'.
17497         * modules/unistr/u32-set-tests: New file.
17498         * tests/unistr/test-u32-set.c: New file.
17499
17500         Tests for module 'unistr/u16-set'.
17501         * modules/unistr/u16-set-tests: New file.
17502         * tests/unistr/test-u16-set.c: New file.
17503
17504         Tests for module 'unistr/u8-set'.
17505         * modules/unistr/u8-set-tests: New file.
17506         * tests/unistr/test-u8-set.c: New file.
17507         * tests/unistr/test-set.h: New file.
17508
17509         Tests for module 'unistr/u32-move'.
17510         * modules/unistr/u32-move-tests: New file.
17511         * tests/unistr/test-u32-move.c: New file.
17512
17513         Tests for module 'unistr/u16-move'.
17514         * modules/unistr/u16-move-tests: New file.
17515         * tests/unistr/test-u16-move.c: New file.
17516
17517         Tests for module 'unistr/u8-move'.
17518         * modules/unistr/u8-move-tests: New file.
17519         * tests/unistr/test-u8-move.c: New file.
17520         * tests/unistr/test-move.h: New file.
17521
17522         Tests for module 'unistr/u32-cpy'.
17523         * modules/unistr/u32-cpy-tests: New file.
17524         * tests/unistr/test-u32-cpy.c: New file.
17525
17526         Tests for module 'unistr/u16-cpy'.
17527         * modules/unistr/u16-cpy-tests: New file.
17528         * tests/unistr/test-u16-cpy.c: New file.
17529
17530         Tests for module 'unistr/u8-cpy'.
17531         * modules/unistr/u8-cpy-tests: New file.
17532         * tests/unistr/test-u8-cpy.c: New file.
17533         * tests/unistr/test-cpy.h: New file.
17534
17535 2010-01-09  Bruno Haible  <bruno@clisp.org>
17536
17537         Tests for module 'unistr/u32-uctomb'.
17538         * modules/unistr/u32-uctomb-tests: New file.
17539         * tests/unistr/test-u32-uctomb.c: New file.
17540
17541         Tests for module 'unistr/u16-uctomb'.
17542         * modules/unistr/u16-uctomb-tests: New file.
17543         * tests/unistr/test-u16-uctomb.c: New file.
17544
17545         Tests for module 'unistr/u8-uctomb'.
17546         * modules/unistr/u8-uctomb-tests: New file.
17547         * tests/unistr/test-u8-uctomb.c: New file.
17548
17549         Tests for module 'unistr/u32-mbtoucr'.
17550         * modules/unistr/u32-mbtoucr-tests: New file.
17551         * tests/unistr/test-u32-mbtoucr.c: New file.
17552
17553         Tests for module 'unistr/u16-mbtoucr'.
17554         * modules/unistr/u16-mbtoucr-tests: New file.
17555         * tests/unistr/test-u16-mbtoucr.c: New file.
17556
17557         Tests for module 'unistr/u8-mbtoucr'.
17558         * modules/unistr/u8-mbtoucr-tests: New file.
17559         * tests/unistr/test-u8-mbtoucr.c: New file.
17560
17561         Tests for module 'unistr/u32-mbtouc'.
17562         * modules/unistr/u32-mbtouc-tests: New file.
17563         * tests/unistr/test-u32-mbtouc.c: New file.
17564
17565         Tests for module 'unistr/u16-mbtouc'.
17566         * modules/unistr/u16-mbtouc-tests: New file.
17567         * tests/unistr/test-u16-mbtouc.c: New file.
17568
17569         Tests for module 'unistr/u8-mbtouc'.
17570         * modules/unistr/u8-mbtouc-tests: New file.
17571         * tests/unistr/test-u8-mbtouc.c: New file.
17572
17573         Tests for module 'unistr/u32-mbtouc-unsafe'.
17574         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
17575         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
17576         * tests/unistr/test-u32-mbtouc.h: New file.
17577
17578         Tests for module 'unistr/u16-mbtouc-unsafe'.
17579         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
17580         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
17581         * tests/unistr/test-u16-mbtouc.h: New file.
17582
17583         Tests for module 'unistr/u8-mbtouc-unsafe'.
17584         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
17585         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
17586         * tests/unistr/test-u8-mbtouc.h: New file.
17587
17588         Tests for module 'unistr/u32-mblen'.
17589         * modules/unistr/u32-mblen-tests: New file.
17590         * tests/unistr/test-u32-mblen.c: New file.
17591
17592         Tests for module 'unistr/u16-mblen'.
17593         * modules/unistr/u16-mblen-tests: New file.
17594         * tests/unistr/test-u16-mblen.c: New file.
17595
17596         Tests for module 'unistr/u8-mblen'.
17597         * modules/unistr/u8-mblen-tests: New file.
17598         * tests/unistr/test-u8-mblen.c: New file.
17599
17600         Tests for module 'unistr/u32-to-u16'.
17601         * modules/unistr/u32-to-u16-tests: New file.
17602         * tests/unistr/test-u32-to-u16.c: New file.
17603
17604         Tests for module 'unistr/u32-to-u8'.
17605         * modules/unistr/u32-to-u8-tests: New file.
17606         * tests/unistr/test-u32-to-u8.c: New file.
17607
17608         Tests for module 'unistr/u16-to-u32'.
17609         * modules/unistr/u16-to-u32-tests: New file.
17610         * tests/unistr/test-u16-to-u32.c: New file.
17611
17612         Tests for module 'unistr/u16-to-u8'.
17613         * modules/unistr/u16-to-u8-tests: New file.
17614         * tests/unistr/test-u16-to-u8.c: New file.
17615
17616         Tests for module 'unistr/u8-to-u32'.
17617         * modules/unistr/u8-to-u32-tests: New file.
17618         * tests/unistr/test-u8-to-u32.c: New file.
17619
17620         Tests for module 'unistr/u8-to-u16'.
17621         * modules/unistr/u8-to-u16-tests: New file.
17622         * tests/unistr/test-u8-to-u16.c: New file.
17623
17624         Tests for module 'unistr/u32-check'.
17625         * modules/unistr/u32-check-tests: New file.
17626         * tests/unistr/test-u32-check.c: New file.
17627
17628         Tests for module 'unistr/u16-check'.
17629         * modules/unistr/u16-check-tests: New file.
17630         * tests/unistr/test-u16-check.c: New file.
17631
17632         Tests for module 'unistr/u8-check'.
17633         * modules/unistr/u8-check-tests: New file.
17634         * tests/unistr/test-u8-check.c: New file.
17635
17636         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
17637         (category_equals): New function.
17638         (main): Add more tests.
17639         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
17640
17641         * tests/unictype/test-bidi_byname.c (main): Add more tests.
17642
17643 2010-01-10  Bruno Haible  <bruno@clisp.org>
17644
17645         unistr/u*-strcoll: Try harder to distinguish different strings.
17646         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
17647         compare s1 and s2 to see if they are different.
17648
17649 2010-01-10  Bruno Haible  <bruno@clisp.org>
17650
17651         unistr/u*-stpncpy: Fix the return value.
17652         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
17653         description of the return value consistent with stpncpy in glibc.
17654         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
17655         written non-NUL unit.
17656
17657 2010-01-10  Bruno Haible  <bruno@clisp.org>
17658
17659         unistr/u*-next: Add missing dependencies.
17660         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
17661         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
17662         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
17663
17664 2010-01-10  Bruno Haible  <bruno@clisp.org>
17665
17666         unistr/u8-mbsnlen: Fix return value for incomplete character.
17667         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
17668         u8_mblen.
17669         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
17670         Remove unistr/u8-mblen.
17671         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
17672         u16_mblen.
17673         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
17674         Remove unistr/u16-mblen.
17675
17676 2010-01-10  Bruno Haible  <bruno@clisp.org>
17677
17678         wchar: Fix compilation error when <wchar.h> is used from coreutils.
17679         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
17680         Reported by Brian Gough <bjg@gnu.org> and
17681         Chris Clayton <chris2553@googlemail.com> via
17682         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
17683
17684 2010-01-09  Bruno Haible  <bruno@clisp.org>
17685
17686         unistr/u16-to-u32: Reject invalid input.
17687         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
17688         u16_mbtouc.
17689         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
17690         Remove unistr/u16-mbtouc.
17691
17692         unistr/u16-to-u8: Reject invalid input.
17693         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
17694         u16_mbtouc.
17695         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
17696         Remove unistr/u16-mbtouc.
17697
17698         unistr/u8-to-u32: Reject invalid input.
17699         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
17700         u8_mbtouc.
17701         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
17702         Remove unistr/u8-mbtouc.
17703
17704         unistr/u8-to-u16: Reject invalid input.
17705         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
17706         u8_mbtouc.
17707         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
17708         Remove unistr/u8-mbtouc.
17709
17710 2010-01-09  Bruno Haible  <bruno@clisp.org>
17711
17712         Tests for module 'getlogin'.
17713         * modules/getlogin-tests: New file.
17714         * tests/test-getlogin.c: New file.
17715
17716         New module 'getlogin'.
17717         * lib/unistd.in.h (getlogin): New declaration.
17718         * lib/getlogin.c: New file.
17719         * m4/getlogin.m4: New file.
17720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
17721         HAVE_GETLOGIN.
17722         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
17723         HAVE_GETLOGIN.
17724         * modules/getlogin: New file.
17725         * doc/posix-functions/getlogin.texi: Mention the new module.
17726         Reported by John W. Eaton <jwe@gnu.org>.
17727
17728 2010-01-09  Bruno Haible  <bruno@clisp.org>
17729
17730         getlogin_r: Support for native Windows.
17731         * lib/getlogin_r.c: Include <windows.h>
17732         (getlogin_r): Implement for native Windows.
17733         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
17734         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
17735         via John W. Eaton <jwe@gnu.org>.
17736
17737 2010-01-09  Bruno Haible  <bruno@clisp.org>
17738
17739         getlogin_r: Small fixes.
17740         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
17741         succeeds.
17742         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
17743         before testing whether getlogin_r is declared. No need to set
17744         HAVE_DECL_GETLOGIN_R to 1.
17745         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
17746
17747 2010-01-09  Bruno Haible  <bruno@clisp.org>
17748
17749         * lib/unistd.in.h (getlogin_r): Add comment.
17750
17751 2010-01-09  Bruno Haible  <bruno@clisp.org>
17752
17753         Tests for module 'getlogin_r'.
17754         * modules/getlogin_r-tests: New file.
17755         * tests/test-getlogin_r.c: New file.
17756
17757 2010-01-09  Jim Meyering  <meyering@redhat.com>
17758
17759         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
17760         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
17761         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
17762
17763 2010-01-08  Simon Josefsson  <simon@josefsson.org>
17764
17765         * lib/dup2.c (rpl_dup2): Improve comment.
17766
17767 2010-01-08  Eric Blake  <ebb9@byu.net>
17768
17769         maint.mk: allow packages to add makefile @@ exceptions
17770         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
17771         (sc_makefile_check): Rename...
17772         (sc_makefile_at_at_check): ...to this, and use hook.
17773
17774         dup2: work around mingw bug
17775         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
17776         Reported by Simon Josefsson.
17777
17778 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
17779
17780         glob: Fix C++ compilation.
17781         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
17782         C++.
17783
17784 2010-01-07  Bruno Haible  <bruno@clisp.org>
17785
17786         Fix indentation of wctype.in.h, broken since 2007-01-06.
17787         * lib/wctype.in.h: Fix indentation of preprocessor directives.
17788
17789 2010-01-07  Bruno Haible  <bruno@clisp.org>
17790
17791         mbslen: Avoid collision with system function.
17792         * lib/string.in.h [MirBSD]: Include <wchar.h>.
17793         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
17794         * m4/mbslen.m4: New file.
17795         * modules/mbslen (Files): Add it.
17796         (configure.ac): Invoke gl_MBSLEN.
17797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
17798         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
17799         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
17800         via Ian Beckwith <ianb@erislabs.net>.
17801
17802 2010-01-07  Bruno Haible  <bruno@clisp.org>
17803
17804         dirent: Document the last fix.
17805         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
17806
17807 2010-01-07  Bruno Haible  <bruno@clisp.org>
17808
17809         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
17810         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
17811         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
17812         va_list are defined.
17813         * doc/posix-headers/stdio.texi: Document the bug of missing types.
17814         Reported by Eric Blake.
17815
17816 2010-01-07  Bruno Haible  <bruno@clisp.org>
17817
17818         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
17819         * modules/xlist (Depends-on): Add 'list',
17820         * modules/xoset (Depends-on): Add 'oset'.
17821         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17822
17823 2010-01-07  Bruno Haible  <bruno@clisp.org>
17824
17825         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
17826         * doc/posix-functions/strncasecmp.texi: Likewise.
17827
17828 2010-01-07  Bruno Haible  <bruno@clisp.org>
17829
17830         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
17831
17832 2010-01-07  John W. Eaton  <jwe@octave.org>
17833
17834         wctype: allow C++ use
17835         * lib/wctype.in.h: Add extern "C" block for C++.
17836
17837 2010-01-06  Eric Blake  <ebb9@byu.net>
17838
17839         maint.mk: detect incorrect GFDL usage
17840         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
17841
17842 2010-01-06  Jim Meyering  <meyering@redhat.com>
17843         and Eric Blake  <ebb9@byu.net>
17844
17845         maint.mk: ignore multi-line copyright in NEWS
17846         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
17847
17848 2010-01-06  Eric Blake  <ebb9@byu.net>
17849
17850         select: add missing dependency
17851         * modules/select-tests (Depends-on): Move sockets dependency...
17852         * modules/select (Depends-on): ...here.
17853         Reported by Ian Beckwith.
17854
17855         doc: regenerate INSTALL
17856         * doc/INSTALL: Reflect recent autoconf update.
17857         * doc/INSTALL.ISO: Likewise.
17858         * doc/INSTALL.UTF-8: Likewise.
17859
17860         pread: fix compilation on glibc
17861         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
17862         Reported by Ralf Wildenhues.
17863
17864         dirent: fix test failure
17865         * lib/dirent.in.h (includes): Guarantee ino_t.
17866         Reported by Ralf Wildenhues.
17867
17868 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
17869
17870         linkat, renameat: avoid bad free
17871         * lib/at-func2.c (at_func2): Fix typo.
17872         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
17873
17874 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17875
17876         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
17877         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
17878         to avoid failure of symlink test later.
17879
17880 2010-01-06  Eric Blake  <ebb9@byu.net>
17881
17882         stdio, unistd: guarantee ssize_t
17883         * lib/unistd.in.h (includes): Ensure that types required by POSIX
17884         2008 are exposed when needed.
17885         * lib/stdio.in.h (includes): Likewise.
17886         Reported by Ralf Wildenhues.
17887
17888 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
17889
17890         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
17891         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
17892         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
17893
17894 2010-01-06  Jim Meyering  <meyering@redhat.com>
17895
17896         readtokens: this module *does* require xalloc.h
17897         It uses only functions that were omitted by the old syntax-check rule.
17898         * lib/readtokens.c: Include "xalloc.h" once again.
17899         * modules/readtokens (Depends-on): Add xalloc.
17900         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
17901
17902 2010-01-05  Eric Blake  <ebb9@byu.net>
17903
17904         maint: support 'make announcement' from a VPATH build
17905         * top/maint.mk (announcement): Look for correct NEWS file.
17906
17907 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
17908
17909         utimens (fdutimens): ignore a negative FD, per contract
17910         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
17911         when we have a valid file descriptor.  Otherwise, using a brand
17912         new glibc (with just-patched futimens that now fails with EBADF)
17913         would cause this function to fail with ENOSYS.
17914         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
17915         See also http://bugzilla.redhat.com/552320.
17916
17917 2010-01-05  Eric Blake  <ebb9@byu.net>
17918
17919         strcase: document what it provides
17920         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
17921         gnulib module.
17922         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
17923         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
17924
17925 2010-01-05  Jim Meyering  <meyering@redhat.com>
17926
17927         maint: remove useless inclusions of "xalloc.h"
17928         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
17929         * lib/readtokens.c: Likewise.
17930         * lib/same.c: Likewise.
17931         * modules/getloadavg (Depends-on): Remove xalloc.
17932         * modules/readtokens: Likewise.
17933         * modules/same: Likewise.
17934
17935         maint.mk: include 4 more function names in alloca.h-checking regexp
17936         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
17937         regexp.  Before, we would give a false-positive (saying alloca.h
17938         is included unnecessarily) when the only uses involved omitted symbols.
17939
17940         xalloc.h: use consistent formatting
17941         * lib/xalloc.h: Move declarations to start in the first column.
17942
17943 2010-01-05  Eric Blake  <ebb9@byu.net>
17944
17945         mkdir: avoid xalloc
17946         * lib/mkdir.c (includes): Drop unused header.
17947         Reported by John W. Eaton.
17948
17949 2010-01-04  Jim Meyering  <meyering@redhat.com>
17950
17951         nl_langinfo: avoid configure-time syntax error
17952         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
17953         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
17954         the empty string.  Don't let that provoke a shell syntax error.
17955
17956         regcomp, regexec, fnmatch: avoid array bounds read error
17957         * lib/regcomp.c (build_equiv_class): From glibc:
17958         Use only the low 24 bits of a findidx return value as an index
17959         into the weights array.  Patch by Ulrich Drepper:
17960         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
17961         * lib/regexec.c (check_node_accept_bytes): Likewise.
17962         * lib/fnmatch_loop.c (FCT): Likewise.
17963
17964         regcomp: skip collseq lookup when there are no rules
17965         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
17966         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
17967
17968         regcomp: recognize ill-formed { } expressions
17969         * lib/regcomp.c (parse_dup_op): From glibc:
17970         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
17971
17972         regcomp: fix typo in comment
17973         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
17974         s/satisfy/satisfies/.
17975
17976         regcomp: sync from glibc: remove dead store
17977         * lib/regcomp.c (duplicate_node_closure): Remove useless
17978         search_duplicated_node call and dead store.
17979
17980         regcomp: sync from glibc; always use nl_langinfo
17981         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
17982         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
17983         * modules/regex (Depends-on): Add nl_langinfo.
17984
17985 2010-01-04  Eric Blake  <ebb9@byu.net>
17986
17987         fdopendir: fix configure test
17988         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
17989
17990 2010-01-01  Bruno Haible  <bruno@clisp.org>
17991
17992         wchar: Remove unused configure check.
17993         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
17994
17995 2010-01-01  Eric Blake  <ebb9@byu.net>
17996
17997         headers: make check of system header explicit
17998         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
17999         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18000         ourselves.
18001         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18002         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18003         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18004         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18005         internals.
18006         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18007         missing.
18008         Suggested by Bruno Haible.
18009
18010 2010-01-01  Jim Meyering  <meyering@redhat.com>
18011
18012         ChangeLog: tweak to eliminate unnecessary copyright line
18013         * ChangeLog: Remove a copyright line that was mistakenly updated
18014         by today's update-copyright run.  Reported by Eric Blake.
18015
18016         test-update-copyright: don't let envvar setting cause test failure
18017         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18018
18019 2010-01-01  Bruno Haible  <bruno@clisp.org>
18020
18021         localename: Avoid gcc warning.
18022         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18023         function if it is not used.
18024
18025 2010-01-01  Jim Meyering  <meyering@redhat.com>
18026
18027         update nearly all FSF copyright year lists to include 2010
18028         Use the same procedure as for 2009, outlined in
18029         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18030
18031         version-etc: set COPYRIGHT_YEAR to 2010
18032         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18033
18034 2009-12-31  Eric Blake  <ebb9@byu.net>
18035
18036         doc: correct availability of cygwin 1.5.x getopt
18037         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18038         variables.
18039         * doc/posix-functions/opterr.texi (opterr): Likewise.
18040         * doc/posix-functions/optind.texi (optind): Likewise.
18041         * doc/posix-functions/optopt.texi (optopt): Likewise.
18042         * doc/posix-functions/tzname.texi (tzname): Likewise.
18043
18044         openat: update maintainer
18045         * modules/openat (Maintainer): Add myself.
18046
18047         utimens: avoid shadowing warning
18048         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18049         buffers into one, to avoid shadowing, as well as avoiding a
18050         redundant stat.
18051         Reported by Jim Meyering.
18052
18053         test-dup2: avoid compiler warning
18054         * tests/test-dup2.c (is_inheritable): Only define if used.
18055
18056 2010-01-01  Bruno Haible  <bruno@clisp.org>
18057
18058         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18059         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18060         defined, use wctomb instead of wcrtomb.
18061
18062 2010-01-01  Bruno Haible  <bruno@clisp.org>
18063
18064         iconv: Reject native Solaris iconv.
18065         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18066         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18067
18068 2009-12-31  Bruno Haible  <bruno@clisp.org>
18069
18070         * tests/test-signal.c (main): Remove test of 'SIG'.
18071
18072 2009-12-31  Bruno Haible  <bruno@clisp.org>
18073
18074         spawn: Fix incomplete fix.
18075         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18076         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18077         warnings for GNULIB_POSIXCHECK again.
18078         Reported by Eric Blake.
18079
18080 2009-12-31  Bruno Haible  <bruno@clisp.org>
18081
18082         Avoid namespace pollution on glibc systems.
18083         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18084         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18085         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18086         glibc systems.
18087
18088 2009-12-31  Bruno Haible  <bruno@clisp.org>
18089
18090         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18091         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18092         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18093         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18094         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18095         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18096         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18097
18098 2009-12-31  Bruno Haible  <bruno@clisp.org>
18099
18100         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18101         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18102         afterwards.
18103
18104 2009-12-31  Bruno Haible  <bruno@clisp.org>
18105
18106         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18107         SYS_UTSNAME_H.
18108
18109 2009-12-31  Bruno Haible  <bruno@clisp.org>
18110
18111         spawn: Fix misapplied patch.
18112         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18113         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18114         warnings for GNULIB_POSIXCHECK.
18115
18116 2009-12-31  Bruno Haible  <bruno@clisp.org>
18117
18118         times: Update after sys_times changed.
18119         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18120         * modules/times (Files): Add it.
18121         (configure.ac): Invoke gl_FUNC_TIMES.
18122
18123 2009-12-31  Bruno Haible  <bruno@clisp.org>
18124
18125         Use AC_C_INLINE where necessary.
18126         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18127         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18128         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18129         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18130         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18131         * m4/mbiter.m4 (gl_MBITER): Likewise.
18132         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18133         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18134         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18135         * modules/u64 (configure.ac): Likewise.
18136
18137 2009-12-31  Bruno Haible  <bruno@clisp.org>
18138
18139         Use AC_C_INLINE instead of module 'inline' where possible.
18140         * modules/inline (Description): Clarify purpose.
18141         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18142         * modules/count-one-bits (Depends-on): Remove inline.
18143         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18144         * modules/openat (Depends-on): Remove inline.
18145         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18146         instead of depending on module 'inline'.
18147         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18148         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18149         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18150         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18151         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18152         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18153         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18154         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18155         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18156         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18157         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18158         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18159         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18160         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18161         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18162         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18163         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18164         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18165         Likewise.
18166         * modules/unictype/property-ascii-hex-digit (Depends-on,
18167         configure.ac): Likewise.
18168         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18169         configure.ac): Likewise.
18170         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18171         configure.ac): Likewise.
18172         * modules/unictype/property-bidi-block-separator (Depends-on,
18173         configure.ac): Likewise.
18174         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18175         configure.ac): Likewise.
18176         * modules/unictype/property-bidi-common-separator (Depends-on,
18177         configure.ac): Likewise.
18178         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18179         Likewise.
18180         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18181         configure.ac): Likewise.
18182         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18183         configure.ac): Likewise.
18184         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18185         configure.ac): Likewise.
18186         * modules/unictype/property-bidi-european-digit (Depends-on,
18187         configure.ac): Likewise.
18188         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18189         configure.ac): Likewise.
18190         * modules/unictype/property-bidi-left-to-right (Depends-on,
18191         configure.ac): Likewise.
18192         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18193         configure.ac): Likewise.
18194         * modules/unictype/property-bidi-other-neutral (Depends-on,
18195         configure.ac): Likewise.
18196         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18197         Likewise.
18198         * modules/unictype/property-bidi-segment-separator (Depends-on,
18199         configure.ac): Likewise.
18200         * modules/unictype/property-bidi-whitespace (Depends-on,
18201         configure.ac): Likewise.
18202         * modules/unictype/property-combining (Depends-on, configure.ac):
18203         Likewise.
18204         * modules/unictype/property-composite (Depends-on, configure.ac):
18205         Likewise.
18206         * modules/unictype/property-currency-symbol (Depends-on,
18207         configure.ac): Likewise.
18208         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
18209         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
18210         Likewise.
18211         * modules/unictype/property-default-ignorable-code-point (Depends-on,
18212         configure.ac): Likewise.
18213         * modules/unictype/property-deprecated (Depends-on, configure.ac):
18214         Likewise.
18215         * modules/unictype/property-diacritic (Depends-on, configure.ac):
18216         Likewise.
18217         * modules/unictype/property-extender (Depends-on, configure.ac):
18218         Likewise.
18219         * modules/unictype/property-format-control (Depends-on, configure.ac):
18220         Likewise.
18221         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
18222         Likewise.
18223         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
18224         Likewise.
18225         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
18226         Likewise.
18227         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
18228         Likewise.
18229         * modules/unictype/property-hyphen (Depends-on, configure.ac):
18230         Likewise.
18231         * modules/unictype/property-id-continue (Depends-on, configure.ac):
18232         Likewise.
18233         * modules/unictype/property-id-start (Depends-on, configure.ac):
18234         Likewise.
18235         * modules/unictype/property-ideographic (Depends-on, configure.ac):
18236         Likewise.
18237         * modules/unictype/property-ids-binary-operator (Depends-on,
18238         configure.ac): Likewise.
18239         * modules/unictype/property-ids-trinary-operator (Depends-on,
18240         configure.ac): Likewise.
18241         * modules/unictype/property-ignorable-control (Depends-on,
18242         configure.ac): Likewise.
18243         * modules/unictype/property-iso-control (Depends-on, configure.ac):
18244         Likewise.
18245         * modules/unictype/property-join-control (Depends-on, configure.ac):
18246         Likewise.
18247         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
18248         Likewise.
18249         * modules/unictype/property-line-separator (Depends-on, configure.ac):
18250         Likewise.
18251         * modules/unictype/property-logical-order-exception (Depends-on,
18252         configure.ac): Likewise.
18253         * modules/unictype/property-lowercase (Depends-on, configure.ac):
18254         Likewise.
18255         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
18256         * modules/unictype/property-non-break (Depends-on, configure.ac):
18257         Likewise.
18258         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
18259         Likewise.
18260         * modules/unictype/property-numeric (Depends-on, configure.ac):
18261         Likewise.
18262         * modules/unictype/property-other-alphabetic (Depends-on,
18263         configure.ac): Likewise.
18264         * modules/unictype/property-other-default-ignorable-code-point
18265         (Depends-on, configure.ac): Likewise.
18266         * modules/unictype/property-other-grapheme-extend (Depends-on,
18267         configure.ac): Likewise.
18268         * modules/unictype/property-other-id-continue (Depends-on,
18269         configure.ac): Likewise.
18270         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
18271         Likewise.
18272         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
18273         Likewise.
18274         * modules/unictype/property-other-math (Depends-on, configure.ac):
18275         Likewise.
18276         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
18277         Likewise.
18278         * modules/unictype/property-paired-punctuation (Depends-on,
18279         configure.ac): Likewise.
18280         * modules/unictype/property-paragraph-separator (Depends-on,
18281         configure.ac): Likewise.
18282         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
18283         Likewise.
18284         * modules/unictype/property-pattern-white-space (Depends-on,
18285         configure.ac): Likewise.
18286         * modules/unictype/property-private-use (Depends-on, configure.ac):
18287         Likewise.
18288         * modules/unictype/property-punctuation (Depends-on, configure.ac):
18289         Likewise.
18290         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
18291         Likewise.
18292         * modules/unictype/property-radical (Depends-on, configure.ac):
18293         Likewise.
18294         * modules/unictype/property-sentence-terminal (Depends-on,
18295         configure.ac): Likewise.
18296         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
18297         Likewise.
18298         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
18299         * modules/unictype/property-terminal-punctuation (Depends-on,
18300         configure.ac): Likewise.
18301         * modules/unictype/property-titlecase (Depends-on, configure.ac):
18302         Likewise.
18303         * modules/unictype/property-unassigned-code-value (Depends-on,
18304         configure.ac): Likewise.
18305         * modules/unictype/property-unified-ideograph (Depends-on,
18306         configure.ac): Likewise.
18307         * modules/unictype/property-uppercase (Depends-on, configure.ac):
18308         Likewise.
18309         * modules/unictype/property-variation-selector (Depends-on,
18310         configure.ac): Likewise.
18311         * modules/unictype/property-white-space (Depends-on, configure.ac):
18312         Likewise.
18313         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
18314         Likewise.
18315         * modules/unictype/property-xid-start (Depends-on, configure.ac):
18316         Likewise.
18317         * modules/unictype/property-zero-width (Depends-on, configure.ac):
18318         Likewise.
18319         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
18320         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
18321         Likewise.
18322
18323 2009-12-31  Bruno Haible  <bruno@clisp.org>
18324
18325         Remove unnecessary AC_C_INLINE invocation.
18326         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
18327         since 2009-08-21.
18328
18329 2009-12-31  Jim Meyering  <meyering@redhat.com>
18330
18331         maint.mk: don't require explicit gpg_key_ID in cfg.mk
18332         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
18333         With this change, we can all remove the gpg_key_ID = ... definition
18334         from our respective cfg.mk files.
18335
18336         maint.mk: create announcement template in ~/, not in /tmp
18337         * top/maint.mk (emit_upload_commands): Adjust.
18338         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
18339         Remove temporary file, .ci-msg.
18340
18341 2009-12-31  Eric Blake  <ebb9@byu.net>
18342
18343         link-warning: always build headers with link warnings
18344         * modules/arpa_inet (Makefile.am): Always build replacement
18345         header.
18346         * modules/ctype (Makefile.am): Likewise.
18347         * modules/dirent (Makefile.am): Likewise.
18348         * modules/inttypes (Makefile.am): Likewise.
18349         * modules/langinfo (Makefile.am): Likewise.
18350         * modules/locale (Makefile.am): Likewise.
18351         * modules/spawn (Makefile.am): Likewise.
18352         * modules/sys_file (Makefile.am): Likewise.
18353         * modules/sys_ioctl (Makefile.am): Likewise.
18354         * modules/sys_select (Makefile.am): Likewise.
18355         * modules/sys_socket (Makefile.am): Likewise.
18356         * modules/sys_times (Makefile.am): Likewise.
18357         * modules/sys_utsname (Makefile.am): Likewise.
18358         * modules/sys_wait (Makefile.am): Likewise.
18359         * modules/wchar (Makefile.am): Likewise.
18360         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
18361         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
18362         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
18363         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
18364         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
18365         Likewise.
18366         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18367         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18368         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
18369         Likewise.
18370         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
18371         Likewise.
18372         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
18373         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
18374         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
18375         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18376         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18377         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18378         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18379         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
18380         (gl_WCHAR_H_DEFAULTS): Likewise.
18381
18382 2009-12-31  Eric Blake  <ebb9@byu.net>
18383
18384         signal, spawn: use link warnings
18385         * lib/signal.in.h (sigset_t): Make unconditional.
18386         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
18387         (sigpending, sigprocmask, sigaction): Add link warnings.
18388         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
18389         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
18390         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
18391         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
18392         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
18393         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
18394         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
18395         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
18396         (posix_spawn_file_actions_destroy)
18397         (posix_spawn_file_actions_addopen)
18398         (posix_spawn_file_actions_addclose)
18399         (posix_spawn_file_actions_adddup2): Likewise.
18400         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
18401         * tests/test-signal.c (main): Enhance test.
18402
18403         spawn: improve wrapper support
18404         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
18405         (gl_SPAWN_H_DEFAULTS): New defaults.
18406         * modules/spawn (Makefile.am): Substitute them.
18407         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
18408         Only declare if missing or broken.
18409
18410         sys_times, sys_utsname: use include_next
18411         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
18412         header.
18413         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
18414         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
18415         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
18416         * modules/sys_times (Depends-on): Add include_next.
18417         (Makefile.am): Substitute additional values.
18418         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18419         * lib/sys_times.in.h (includes): Include native header, if
18420         available.
18421         * lib/sys_utsname.in.h (includes): Likewise.
18422         * tests/test-sys_times.c (main): Enhance test.
18423
18424         fdutimensat: revert prior patch
18425         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
18426         utimens.h.
18427         Reported by Bruno Haible.
18428
18429 2009-12-30  Eric Blake  <ebb9@byu.net>
18430
18431         sys_wait: drop link-warning dependency
18432         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
18433         link-warning efforts.
18434         * lib/sys_wait.in.h: Likewise.
18435
18436         fdutimensat: remove bogus dependency
18437         * modules/fdutimensat (Depends-on): Drop inline.
18438
18439         unistd: fix typo
18440         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
18441
18442 2009-12-30  Bruno Haible  <bruno@clisp.org>
18443
18444         Fix compilation error with Solaris cc.
18445         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
18446         * lib/unicase/u16-is-invariant.c: Likewise.
18447         * lib/unicase/u32-is-invariant.c: Likewise.
18448         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
18449
18450 2009-12-30  Bruno Haible  <bruno@clisp.org>
18451
18452         Fix test crash.
18453         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
18454         locales.
18455         Reported by Simon Josefsson <simon@josefsson.org>.
18456
18457 2009-12-30  Bruno Haible  <bruno@clisp.org>
18458
18459         Fix compilation error on most platforms.
18460         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
18461         Reported by Simon Josefsson <simon@josefsson.org>
18462         and Nelson H. F. Beebe <beebe@math.utah.edu>.
18463
18464 2009-12-30  Eric Blake  <ebb9@byu.net>
18465
18466         futimens, utimensat: work around ntfs-3g bug
18467         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
18468         a ctime bug is present, and expand workaround to cover ntfs-3g.
18469         * lib/utimens.c (fdutimens, lutimens): Likewise.
18470         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
18471         (validate_timespec): Adjust return value.
18472         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
18473         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18474         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
18475
18476 2009-12-29  Eric Blake  <ebb9@byu.net>
18477
18478         link-warning: make usage consistent
18479         * modules/ctype (Depends-on): Add link-warning.
18480         (Makefile.am): Update rules accordingly.
18481         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18482         * modules/locale (Depends-on, Makefile.am): Likewise.
18483         * modules/sys_file (Makefile.am): Likewise.
18484         * modules/getopt-posix (Makefile.am): Delete unused link warning
18485         efforts.
18486         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
18487         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
18488         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
18489         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
18490
18491         stdio: remove unused variables
18492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
18493         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
18494         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18495
18496         tests: test more substitute headers
18497         * modules/ctype-tests: New file.
18498         * modules/dirent-tests: Likewise.
18499         * modules/spawn-tests: Likewise.
18500         * modules/sys_file-tests: Likewise.
18501         * modules/sys_ioctl-tests: Likewise.
18502         * modules/sys_wait-tests: Likewise.
18503         * tests/test-ctype.c: Likewise.
18504         * tests/test-dirent.c: Likewise.
18505         * tests/test-spawn.c: Likewise.
18506         * tests/test-sys_file.c: Likewise.
18507         * tests/test-sys_ioctl.c: Likewise.
18508         * tests/test-sys_wait.c: Likewise.
18509         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
18510         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
18511         whether or not flock is in use.
18512
18513         tests: remove License section from module
18514         * modules/arpa_inet-tests: Remove unneeded section.
18515         * modules/byteswap-tests: Likewise.
18516         * modules/ceilf-tests: Likewise.
18517         * modules/ceill-tests: Likewise.
18518         * modules/crypto/des-tests: Likewise.
18519         * modules/crypto/gc-arcfour-tests: Likewise.
18520         * modules/crypto/gc-arctwo-tests: Likewise.
18521         * modules/crypto/gc-des-tests: Likewise.
18522         * modules/crypto/gc-hmac-md5-tests: Likewise.
18523         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18524         * modules/crypto/gc-md2-tests: Likewise.
18525         * modules/crypto/gc-md4-tests: Likewise.
18526         * modules/crypto/gc-md5-tests: Likewise.
18527         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18528         * modules/crypto/gc-rijndael-tests: Likewise.
18529         * modules/crypto/gc-sha1-tests: Likewise.
18530         * modules/crypto/gc-tests: Likewise.
18531         * modules/crypto/md2-tests: Likewise.
18532         * modules/crypto/md4-tests: Likewise.
18533         * modules/fcntl-h-tests: Likewise.
18534         * modules/floorf-tests: Likewise.
18535         * modules/floorl-tests: Likewise.
18536         * modules/frexp-nolibm-tests: Likewise.
18537         * modules/frexp-tests: Likewise.
18538         * modules/frexpl-nolibm-tests: Likewise.
18539         * modules/frexpl-tests: Likewise.
18540         * modules/getaddrinfo-tests: Likewise.
18541         * modules/inttypes-tests: Likewise.
18542         * modules/isfinite-tests: Likewise.
18543         * modules/isinf-tests: Likewise.
18544         * modules/ldexpl-tests: Likewise.
18545         * modules/locale-tests: Likewise.
18546         * modules/math-tests: Likewise.
18547         * modules/netdb-tests: Likewise.
18548         * modules/netinet_in-tests: Likewise.
18549         * modules/printf-frexp-tests: Likewise.
18550         * modules/printf-frexpl-tests: Likewise.
18551         * modules/priv-set-tests: Likewise.
18552         * modules/random_r-tests: Likewise.
18553         * modules/round-tests: Likewise.
18554         * modules/roundf-tests: Likewise.
18555         * modules/roundl-tests: Likewise.
18556         * modules/search-tests: Likewise.
18557         * modules/select-tests: Likewise.
18558         * modules/signal-tests: Likewise.
18559         * modules/stdbool-tests: Likewise.
18560         * modules/stddef-tests: Likewise.
18561         * modules/stdint-tests: Likewise.
18562         * modules/stdio-tests: Likewise.
18563         * modules/stdlib-tests: Likewise.
18564         * modules/string-tests: Likewise.
18565         * modules/strings-tests: Likewise.
18566         * modules/sys_select-tests: Likewise.
18567         * modules/sys_socket-tests: Likewise.
18568         * modules/sys_stat-tests: Likewise.
18569         * modules/sys_time-tests: Likewise.
18570         * modules/sys_utsname-tests: Likewise.
18571         * modules/sysexits-tests: Likewise.
18572         * modules/time-tests: Likewise.
18573         * modules/trunc-tests: Likewise.
18574         * modules/truncf-tests: Likewise.
18575         * modules/truncl-tests: Likewise.
18576         * modules/tsearch-tests: Likewise.
18577         * modules/unistd-tests: Likewise.
18578         * modules/wchar-tests: Likewise.
18579         * modules/wctype-tests: Likewise.
18580
18581         tests: fix license on several tests
18582         * tests/test-des.c: Update to GPLv3+.
18583         * tests/test-flock.c: Likewise.
18584         * tests/test-fsync.c: Likewise.
18585         * tests/test-futimens.h: Likewise.
18586         * tests/test-gc-arcfour.c: Likewise.
18587         * tests/test-gc-arctwo.c: Likewise.
18588         * tests/test-gc-des.c: Likewise.
18589         * tests/test-gc-hmac-md5.c: Likewise.
18590         * tests/test-gc-hmac-sha1.c: Likewise.
18591         * tests/test-gc-md2.c: Likewise.
18592         * tests/test-gc-md4.c: Likewise.
18593         * tests/test-gc-md5.c: Likewise.
18594         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18595         * tests/test-gc-rijndael.c: Likewise.
18596         * tests/test-gc-sha1.c: Likewise.
18597         * tests/test-gc.c: Likewise.
18598         * tests/test-getcwd.c: Likewise.
18599         * tests/test-link.c: Likewise.
18600         * tests/test-link.h: Likewise.
18601         * tests/test-lutimens.h: Likewise.
18602         * tests/test-md2.c: Likewise.
18603         * tests/test-md4.c: Likewise.
18604         * tests/test-mkdir.h: Likewise.
18605         * tests/test-rename.c: Likewise.
18606         * tests/test-rename.h: Likewise.
18607         * tests/test-safe-alloc.c: Likewise.
18608         * tests/test-utimens-common.h: Likewise.
18609         * tests/test-utimens.h: Likewise.
18610
18611         maint: sync license texts
18612         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
18613         * doc/gpl-3.0.texi: Revert copyright year update.
18614         * doc/lgpl-3.0.texi: Likewise.
18615
18616 2009-12-29  Jim Meyering  <meyering@redhat.com>
18617
18618         update nearly all FSF copyright year lists to include 2009
18619         The files named by the following are exempted:
18620             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
18621               test -f "$dst" && { echo "$dst"; continue; }
18622               test -d "$dst" || continue
18623               echo "$dst"/$(basename "$src")
18624             done > exempt
18625             git ls-files tests/unictype >> exempt
18626         In the remaining files, convert to all-interval notation if
18627         - there is already at least one year interval like 2000-2003
18628         - the file is maintained by me
18629         - the file is in lib/uni*/, where that style already prevails
18630         Otherwise, use update-copyright's default.
18631
18632 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18633         and Eric Blake  <ebb9@byu.net>
18634
18635         tests: don't require debug system() to pass
18636         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
18637         * tests/test-rmdir.h (test_rmdir_func): Likewise.
18638         * tests/test-unlink.h (test_unlink_func): Likewise.
18639         * tests/test-fstatat.c (main): ...into callers.
18640         * tests/test-lstat.c (main): Likewise.
18641         * tests/test-rmdir.c (main): Likewise.
18642         * tests/test-unlink.c (main): Likewise.
18643         * tests/test-unlinkat.c (main): Likewise.
18644         * tests/test-areadlink-with-size.c (main): Don't require a
18645         debug-only system call to pass, aiding cross-testing to mingw.
18646         * tests/test-areadlink.c (main): Likewise.
18647         * tests/test-areadlinkat-with-size.c (main): Likewise.
18648         * tests/test-areadlinkat.c (main): Likewise.
18649         * tests/test-canonicalize-lgpl.c (main): Likewise.
18650         * tests/test-canonicalize.c (main): Likewise.
18651         * tests/test-chown.c (main): Likewise.
18652         * tests/test-fchownat.c (main): Likewise.
18653         * tests/test-lchown.c (main): Likewise.
18654         * tests/test-fdutimensat.c (main): Likewise.
18655         * tests/test-futimens.c (main): Likewise.
18656         * tests/test-link.c (main): Likewise.
18657         * tests/test-linkat.c (main): Likewise.
18658         * tests/test-mkdir.c (main): Likewise.
18659         * tests/test-mkdirat.c (main): Likewise.
18660         * tests/test-mkfifo.c (main): Likewise.
18661         * tests/test-mkfifoat.c (main): Likewise.
18662         * tests/test-mknod.c (main): Likewise.
18663         * tests/test-readlink.c (main): Likewise.
18664         * tests/test-remove.c (main): Likewise.
18665         * tests/test-rename.c (main): Likewise.
18666         * tests/test-renameat.c (main): Likewise.
18667         * tests/test-symlink.c (main): Likewise.
18668         * tests/test-symlinkat.c (main): Likewise.
18669         * tests/test-utimens.c (main): Likewise.
18670         * tests/test-utimensat.c (main): Likewise.
18671
18672 2009-12-29  Simon Josefsson  <simon@josefsson.org>
18673
18674         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
18675         on $(UNUSED_PARAMETER_H) to avoid build failure.
18676
18677 2009-12-28  Jim Meyering  <meyering@redhat.com>
18678
18679         update-copyright: you may specify a max. line length other than 72
18680         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18681
18682         maint: use consistent FSF copyright line syntax
18683         * lib/posixtm.c: Add missing comma in FSF copyright line.
18684         * lib/posixtm.h: Likewise.
18685         * lib/getugroups.c: Add missing ", Inc.".
18686
18687         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
18688         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
18689         FSF copyright line.  Remove trailing blanks.
18690
18691 2009-12-28  Eric Blake  <ebb9@byu.net>
18692
18693         test-dup2: reduce dependencies
18694         * modules/cloexec (Configure.ac): Set witness.
18695         * modules/dup2-tests (Depends-on): Drop cloexec.
18696         * tests/test-dup2.c (main): Skip portion of test if cloexec module
18697         not present.
18698         Suggested by Bruno Haible.
18699
18700 2009-12-26  Bruno Haible  <bruno@clisp.org>
18701
18702         Remove an unneeded dependency.
18703         * modules/fseterr (Depends-on): Remove dup2.
18704
18705 2009-12-26  Eric Blake  <ebb9@byu.net>
18706
18707         tests: use macros.h in more places
18708         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
18709         (ASSERT_STREAM): Provide default of stderr.
18710         * tests/test-dirent-safer.c: Include macros.h, using alternate
18711         stream for assertions.
18712         * tests/test-dup-safer.c: Likewise.
18713         * tests/test-freopen-safer.c: Likewise.
18714         * tests/test-getopt.c: Likewise.
18715         * tests/test-openat-safer.c: Likewise.
18716         * tests/test-pipe.c: Likewise.
18717         * tests/test-popen-safer.c: Likewise.
18718         * modules/dirent-safer-tests (Files): Include macros.h.
18719         * modules/unistd-safer-tests (Files): Likewise.
18720         * modules/freopen-safer-tests (Files): Likewise.
18721         * modules/getopt-posix-tests (Files): Likewise.
18722         * modules/openat-safer-tests (Files): Likewise.
18723         * modules/pipe-tests (Files): Likewise.
18724
18725 2009-12-26  Bruno Haible  <bruno@clisp.org>
18726
18727         javacomp: Portability fix.
18728         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
18729         that it also works on Solaris.
18730
18731 2009-12-26  Bruno Haible  <bruno@clisp.org>
18732
18733         localename: Fix storage allocation of gl_locale_name_thread's result.
18734         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
18735         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
18736         all platforms that have 'uselocale'.
18737         (gl_locale_name_thread_unsafe): New function, extracted from
18738         gl_locale_name_thread.
18739         (gl_locale_name_thread): Call struniq on all platforms that have
18740         'uselocale'.
18741         * tests/test-localename.c (test_locale_name_thread): Check that the
18742         resulting strings are permanently allocated.
18743         * modules/localename-tests (Depends-on): Add strdup.
18744
18745 2009-12-26  Bruno Haible  <bruno@clisp.org>
18746
18747         * tests/test-localename.c (categories): Fill in the strings.
18748
18749 2009-12-26  Jim Meyering  <meyering@redhat.com>
18750
18751         isdir: complete the removal of m4/isdir.m4
18752         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
18753
18754         isdir: clean up, since at least grep still uses it
18755         * lib/isdir.c: Include "isdir.h".
18756         (S_ISDIR): Remove now-unneeded definition.
18757         * modules/isdir (Files): Add lib/isdir.h.
18758         * lib/isdir.h: New file, with declaration.
18759         * m4/isdir.m4: Remove file -- unneeded.
18760
18761 2009-12-25  Bruno Haible  <bruno@clisp.org>
18762
18763         selinux-h: Make generated .h files standalone.
18764         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
18765         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
18766         * lib/se-selinux.in.h: Likewise.
18767         * modules/selinux-h (Depends-on): Add unused-parameter.
18768         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
18769         selinux/selinux.h and selinux/context.h.
18770         Suggested by Eric Blake.
18771
18772 2009-12-25  Bruno Haible  <bruno@clisp.org>
18773
18774         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
18775         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
18776         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
18777         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
18778         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
18779
18780 2009-12-24  Bruno Haible  <bruno@clisp.org>
18781
18782         openat: Fix warning.
18783         * lib/openat-proc.c: Include <unistd.h>.
18784
18785 2009-12-24  Bruno Haible  <bruno@clisp.org>
18786
18787         New module 'unused-parameter'.
18788         * build-aux/unused-parameter.h: New file, extracted from earlier
18789         gnulib-common.m4.
18790         * modules/unused-parameter: New file.
18791         * lib/unistr.h: Include unused-parameter.h.
18792         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
18793         _GL_UNUSED.
18794         * modules/unistr/base (Depends-on): Add unused-parameter.
18795
18796 2009-12-24  Bruno Haible  <bruno@clisp.org>
18797
18798         Add missing dependencies to 'extensions' module.
18799         * m4/extensions.m4: Add comment.
18800         * modules/accept4 (Depends-on): Add extensions.
18801         * modules/dup3 (Depends-on): Likewise.
18802         * modules/fcntl (Depends-on): Likewise.
18803         * modules/futimens (Depends-on): Likewise.
18804         * modules/mknod (Depends-on): Likewise.
18805         * modules/pipe2 (Depends-on): Likewise.
18806         * modules/stat-time (Depends-on): Likewise.
18807         * modules/strcasestr-simple (Depends-on): Likewise.
18808         * modules/strsignal (Depends-on): Likewise.
18809         * modules/utimensat (Depends-on): Likewise.
18810         * modules/localcharset (Depends-on): Likewise. Needed because of
18811         gl_FCNTL_O_FLAGS.
18812         * modules/wcrtomb (Depends-on): Likewise. Needed because of
18813         AC_TYPE_MBSTATE_T.
18814         * modules/wcsnrtombs (Depends-on): Likewise.
18815         * modules/wcsrtombs (Depends-on): Likewise.
18816
18817 2009-12-24  Bruno Haible  <bruno@clisp.org>
18818
18819         binary-io: Avoid gcc warning due to SET_BINARY.
18820         * lib/binary-io.h (SET_BINARY): Cast the result to void.
18821         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
18822
18823 2009-12-24  Bruno Haible  <bruno@clisp.org>
18824
18825         Avoid future namespace pollution on glibc systems.
18826         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
18827         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
18828         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
18829         glibc systems.
18830
18831 2009-12-24  Bruno Haible  <bruno@clisp.org>
18832
18833         Refactor common macros used in tests.
18834         * tests/macros.h: New file.
18835         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
18836         and/or <stdlib.h>, if appropriate.
18837         (ASSERT, SIZEOF): Remove macros.
18838         * tests/test-areadlink-with-size.c: Likewise.
18839         * tests/test-areadlinkat.c: Likewise.
18840         * tests/test-areadlinkat-with-size.c: Likewise.
18841         * tests/test-argmatch.c: Likewise.
18842         * tests/test-argv-iter.c: Likewise.
18843         * tests/test-array-mergesort.c: Likewise.
18844         * tests/test-array_list.c: Likewise.
18845         * tests/test-array_oset.c: Likewise.
18846         * tests/test-avltree_list.c: Likewise.
18847         * tests/test-avltree_oset.c: Likewise.
18848         * tests/test-avltreehash_list.c: Likewise.
18849         * tests/test-base64.c: Likewise.
18850         * tests/test-binary-io.c: Likewise.
18851         * tests/test-bitrotate.c: Likewise.
18852         * tests/test-btowc.c: Likewise.
18853         * tests/test-byteswap.c: Likewise.
18854         * tests/test-c-ctype.c: Likewise.
18855         * tests/test-c-stack.c: Likewise.
18856         * tests/test-c-strcasecmp.c: Likewise.
18857         * tests/test-c-strcasestr.c: Likewise.
18858         * tests/test-c-strncasecmp.c: Likewise.
18859         * tests/test-c-strstr.c: Likewise.
18860         * tests/test-canonicalize-lgpl.c: Likewise.
18861         * tests/test-canonicalize.c: Likewise.
18862         * tests/test-carray_list.c: Likewise.
18863         * tests/test-ceilf1.c: Likewise.
18864         * tests/test-ceilf2.c: Likewise.
18865         * tests/test-ceill.c: Likewise.
18866         * tests/test-chown.c: Likewise.
18867         * tests/test-cloexec.c: Likewise.
18868         * tests/test-copy-acl.c: Likewise.
18869         * tests/test-copy-file.c: Likewise.
18870         * tests/test-count-one-bits.c: Likewise.
18871         * tests/test-dprintf-posix.c: Likewise.
18872         * tests/test-dup2.c: Likewise.
18873         * tests/test-dup3.c: Likewise.
18874         * tests/test-duplocale.c: Likewise.
18875         * tests/test-fbufmode.c: Likewise.
18876         * tests/test-fchdir.c: Likewise.
18877         * tests/test-fchownat.c: Likewise.
18878         * tests/test-fcntl-safer.c: Likewise.
18879         * tests/test-fcntl.c: Likewise.
18880         * tests/test-fdopendir.c: Likewise.
18881         * tests/test-fdutimensat.c: Likewise.
18882         * tests/test-fflush2.c: Likewise.
18883         * tests/test-file-has-acl.c: Likewise.
18884         * tests/test-filevercmp.c: Likewise.
18885         * tests/test-flock.c: Likewise.
18886         * tests/test-floorf1.c: Likewise.
18887         * tests/test-floorf2.c: Likewise.
18888         * tests/test-floorl.c: Likewise.
18889         * tests/test-fnmatch.c: Likewise.
18890         * tests/test-fopen.h: Likewise.
18891         * tests/test-fpending.c: Likewise.
18892         * tests/test-fprintf-posix.c: Likewise.
18893         * tests/test-fpurge.c: Likewise.
18894         * tests/test-freadable.c: Likewise.
18895         * tests/test-freadahead.c: Likewise.
18896         * tests/test-freading.c: Likewise.
18897         * tests/test-freadptr.c: Likewise.
18898         * tests/test-freadptr2.c: Likewise.
18899         * tests/test-freadseek.c: Likewise.
18900         * tests/test-freopen.c: Likewise.
18901         * tests/test-frexp.c: Likewise.
18902         * tests/test-frexpl.c: Likewise.
18903         * tests/test-fseek.c: Likewise.
18904         * tests/test-fseeko.c: Likewise.
18905         * tests/test-fstatat.c: Likewise.
18906         * tests/test-fstrcmp.c: Likewise.
18907         * tests/test-fsync.c: Likewise.
18908         * tests/test-ftell.c: Likewise.
18909         * tests/test-ftello.c: Likewise.
18910         * tests/test-func.c: Likewise.
18911         * tests/test-futimens.c: Likewise.
18912         * tests/test-fwritable.c: Likewise.
18913         * tests/test-fwriting.c: Likewise.
18914         * tests/test-getcwd.c: Likewise.
18915         * tests/test-getdate.c: Likewise.
18916         * tests/test-getdelim.c: Likewise.
18917         * tests/test-getdtablesize.c: Likewise.
18918         * tests/test-getgroups.c: Likewise.
18919         * tests/test-getline.c: Likewise.
18920         * tests/test-getndelim2.c: Likewise.
18921         * tests/test-glob.c: Likewise.
18922         * tests/test-hash.c: Likewise.
18923         * tests/test-i-ring.c: Likewise.
18924         * tests/test-iconv-utf.c: Likewise.
18925         * tests/test-iconv.c: Likewise.
18926         * tests/test-idpriv-drop.c: Likewise.
18927         * tests/test-idpriv-droptemp.c: Likewise.
18928         * tests/test-inet_ntop.c: Likewise.
18929         * tests/test-inet_pton.c: Likewise.
18930         * tests/test-isblank.c: Likewise.
18931         * tests/test-isfinite.c: Likewise.
18932         * tests/test-isinf.c: Likewise.
18933         * tests/test-isnan.c: Likewise.
18934         * tests/test-isnand.h: Likewise.
18935         * tests/test-isnanf.h: Likewise.
18936         * tests/test-isnanl.h: Likewise.
18937         * tests/test-lchown.c: Likewise.
18938         * tests/test-ldexpl.c: Likewise.
18939         * tests/test-link.c: Likewise.
18940         * tests/test-linkat.c: Likewise.
18941         * tests/test-linked_list.c: Likewise.
18942         * tests/test-linkedhash_list.c: Likewise.
18943         * tests/test-localename.c: Likewise.
18944         * tests/test-lseek.c: Likewise.
18945         * tests/test-lstat.c: Likewise.
18946         * tests/test-mbmemcasecmp.c: Likewise.
18947         * tests/test-mbmemcasecoll.c: Likewise.
18948         * tests/test-mbrtowc.c: Likewise.
18949         * tests/test-mbscasecmp.c: Likewise.
18950         * tests/test-mbscasestr1.c: Likewise.
18951         * tests/test-mbscasestr2.c: Likewise.
18952         * tests/test-mbscasestr3.c: Likewise.
18953         * tests/test-mbscasestr4.c: Likewise.
18954         * tests/test-mbschr.c: Likewise.
18955         * tests/test-mbscspn.c: Likewise.
18956         * tests/test-mbsinit.c: Likewise.
18957         * tests/test-mbsncasecmp.c: Likewise.
18958         * tests/test-mbsnrtowcs.c: Likewise.
18959         * tests/test-mbspbrk.c: Likewise.
18960         * tests/test-mbspcasecmp.c: Likewise.
18961         * tests/test-mbsrchr.c: Likewise.
18962         * tests/test-mbsrtowcs.c: Likewise.
18963         * tests/test-mbsspn.c: Likewise.
18964         * tests/test-mbsstr1.c: Likewise.
18965         * tests/test-mbsstr2.c: Likewise.
18966         * tests/test-mbsstr3.c: Likewise.
18967         * tests/test-memchr.c: Likewise.
18968         * tests/test-memchr2.c: Likewise.
18969         * tests/test-memcmp.c: Likewise.
18970         * tests/test-memmem.c: Likewise.
18971         * tests/test-memrchr.c: Likewise.
18972         * tests/test-mkdir.c: Likewise.
18973         * tests/test-mkdirat.c: Likewise.
18974         * tests/test-mkfifo.c: Likewise.
18975         * tests/test-mkfifoat.c: Likewise.
18976         * tests/test-mknod.c: Likewise.
18977         * tests/test-nanosleep.c: Likewise.
18978         * tests/test-nl_langinfo.c: Likewise.
18979         * tests/test-obstack-printf.c: Likewise.
18980         * tests/test-open.c: Likewise.
18981         * tests/test-openat.c: Likewise.
18982         * tests/test-pipe-filter-gi1.c: Likewise.
18983         * tests/test-pipe-filter-gi2-main.c: Likewise.
18984         * tests/test-pipe-filter-ii1.c: Likewise.
18985         * tests/test-pipe-filter-ii2-main.c: Likewise.
18986         * tests/test-pipe2.c: Likewise.
18987         * tests/test-popen.h: Likewise.
18988         * tests/test-posixtm.c: Likewise.
18989         * tests/test-pread.c: Likewise.
18990         * tests/test-printf-frexp.c: Likewise.
18991         * tests/test-printf-frexpl.c: Likewise.
18992         * tests/test-printf-posix.c: Likewise.
18993         * tests/test-priv-set.c: Likewise.
18994         * tests/test-quotearg.c: Likewise.
18995         * tests/test-random_r.c: Likewise.
18996         * tests/test-rawmemchr.c: Likewise.
18997         * tests/test-rbtree_list.c: Likewise.
18998         * tests/test-rbtree_oset.c: Likewise.
18999         * tests/test-rbtreehash_list.c: Likewise.
19000         * tests/test-readlink.c: Likewise.
19001         * tests/test-remove.c: Likewise.
19002         * tests/test-rename.c: Likewise.
19003         * tests/test-renameat.c: Likewise.
19004         * tests/test-rmdir.c: Likewise.
19005         * tests/test-round1.c: Likewise.
19006         * tests/test-roundf1.c: Likewise.
19007         * tests/test-roundl.c: Likewise.
19008         * tests/test-safe-alloc.c: Likewise.
19009         * tests/test-sameacls.c: Likewise.
19010         * tests/test-set-mode-acl.c: Likewise.
19011         * tests/test-setenv.c: Likewise.
19012         * tests/test-sigaction.c: Likewise.
19013         * tests/test-signbit.c: Likewise.
19014         * tests/test-sleep.c: Likewise.
19015         * tests/test-snprintf-posix.c: Likewise.
19016         * tests/test-snprintf.c: Likewise.
19017         * tests/test-sprintf-posix.c: Likewise.
19018         * tests/test-stat-time.c: Likewise.
19019         * tests/test-stat.c: Likewise.
19020         * tests/test-strcasestr.c: Likewise.
19021         * tests/test-strchrnul.c: Likewise.
19022         * tests/test-strerror.c: Likewise.
19023         * tests/test-striconv.c: Likewise.
19024         * tests/test-striconveh.c: Likewise.
19025         * tests/test-striconveha.c: Likewise.
19026         * tests/test-strsignal.c: Likewise.
19027         * tests/test-strstr.c: Likewise.
19028         * tests/test-strtod.c: Likewise.
19029         * tests/test-strverscmp.c: Likewise.
19030         * tests/test-symlink.c: Likewise.
19031         * tests/test-symlinkat.c: Likewise.
19032         * tests/test-trunc1.c: Likewise.
19033         * tests/test-trunc2.c: Likewise.
19034         * tests/test-truncf1.c: Likewise.
19035         * tests/test-truncf2.c: Likewise.
19036         * tests/test-truncl.c: Likewise.
19037         * tests/test-uname.c: Likewise.
19038         * tests/test-unlink.c: Likewise.
19039         * tests/test-unlinkat.c: Likewise.
19040         * tests/test-unsetenv.c: Likewise.
19041         * tests/test-usleep.c: Likewise.
19042         * tests/test-utimens.c: Likewise.
19043         * tests/test-utimensat.c: Likewise.
19044         * tests/test-vasnprintf-posix.c: Likewise.
19045         * tests/test-vasnprintf-posix2.c: Likewise.
19046         * tests/test-vasnprintf.c: Likewise.
19047         * tests/test-vasprintf-posix.c: Likewise.
19048         * tests/test-vasprintf.c: Likewise.
19049         * tests/test-vdprintf-posix.c: Likewise.
19050         * tests/test-vfprintf-posix.c: Likewise.
19051         * tests/test-vprintf-posix.c: Likewise.
19052         * tests/test-vsnprintf-posix.c: Likewise.
19053         * tests/test-vsnprintf.c: Likewise.
19054         * tests/test-vsprintf-posix.c: Likewise.
19055         * tests/test-wcrtomb.c: Likewise.
19056         * tests/test-wcsnrtombs.c: Likewise.
19057         * tests/test-wcsrtombs.c: Likewise.
19058         * tests/test-wctype.c: Likewise.
19059         * tests/test-wcwidth.c: Likewise.
19060         * tests/test-xfprintf-posix.c: Likewise.
19061         * tests/test-xmemdup0.c: Likewise.
19062         * tests/test-xprintf-posix.c: Likewise.
19063         * tests/test-xvasprintf.c: Likewise.
19064         * tests/unicase/test-locale-language.c: Likewise.
19065         * tests/unicase/test-mapping-part1.h: Likewise.
19066         * tests/unicase/test-predicate-part1.h: Likewise.
19067         * tests/unicase/test-u8-casecmp.c: Likewise.
19068         * tests/unicase/test-u8-casecoll.c: Likewise.
19069         * tests/unicase/test-u8-casefold.c: Likewise.
19070         * tests/unicase/test-u8-is-cased.c: Likewise.
19071         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19072         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19073         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19074         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19075         * tests/unicase/test-u8-tolower.c: Likewise.
19076         * tests/unicase/test-u8-totitle.c: Likewise.
19077         * tests/unicase/test-u8-toupper.c: Likewise.
19078         * tests/unicase/test-u16-casecmp.c: Likewise.
19079         * tests/unicase/test-u16-casecoll.c: Likewise.
19080         * tests/unicase/test-u16-casefold.c: Likewise.
19081         * tests/unicase/test-u16-is-cased.c: Likewise.
19082         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19083         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19084         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19085         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19086         * tests/unicase/test-u16-tolower.c: Likewise.
19087         * tests/unicase/test-u16-totitle.c: Likewise.
19088         * tests/unicase/test-u16-toupper.c: Likewise.
19089         * tests/unicase/test-u32-casecmp.c: Likewise.
19090         * tests/unicase/test-u32-casecoll.c: Likewise.
19091         * tests/unicase/test-u32-casefold.c: Likewise.
19092         * tests/unicase/test-u32-is-cased.c: Likewise.
19093         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19094         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19095         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19096         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19097         * tests/unicase/test-u32-tolower.c: Likewise.
19098         * tests/unicase/test-u32-totitle.c: Likewise.
19099         * tests/unicase/test-u32-toupper.c: Likewise.
19100         * tests/unicase/test-ulc-casecmp.c: Likewise.
19101         * tests/unicase/test-ulc-casecoll.c: Likewise.
19102         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19103         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19104         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19105         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19106         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19107         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19108         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19109         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19110         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19111         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19112         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19113         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19114         * tests/unictype/test-bidi_byname.c: Likewise.
19115         * tests/unictype/test-bidi_name.c: Likewise.
19116         * tests/unictype/test-bidi_of.c: Likewise.
19117         * tests/unictype/test-bidi_test.c: Likewise.
19118         * tests/unictype/test-block_list.c: Likewise.
19119         * tests/unictype/test-block_of.c: Likewise.
19120         * tests/unictype/test-block_test.c: Likewise.
19121         * tests/unictype/test-categ_and.c: Likewise.
19122         * tests/unictype/test-categ_and_not.c: Likewise.
19123         * tests/unictype/test-categ_byname.c: Likewise.
19124         * tests/unictype/test-categ_name.c: Likewise.
19125         * tests/unictype/test-categ_none.c: Likewise.
19126         * tests/unictype/test-categ_of.c: Likewise.
19127         * tests/unictype/test-categ_or.c: Likewise.
19128         * tests/unictype/test-categ_test_withtable.c: Likewise.
19129         * tests/unictype/test-combining.c: Likewise.
19130         * tests/unictype/test-decdigit.c: Likewise.
19131         * tests/unictype/test-digit.c: Likewise.
19132         * tests/unictype/test-mirror.c: Likewise.
19133         * tests/unictype/test-numeric.c: Likewise.
19134         * tests/unictype/test-pr_byname.c: Likewise.
19135         * tests/unictype/test-pr_test.c: Likewise.
19136         * tests/unictype/test-predicate-part1.h: Likewise.
19137         * tests/unictype/test-scripts.c: Likewise.
19138         * tests/unictype/test-sy_c_ident.c: Likewise.
19139         * tests/unictype/test-sy_java_ident.c: Likewise.
19140         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19141         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19142         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19143         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19144         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19145         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19146         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19147         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19148         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19149         * tests/uninorm/test-compat-decomposition.c: Likewise.
19150         * tests/uninorm/test-composition.c: Likewise.
19151         * tests/uninorm/test-decomposing-form.c: Likewise.
19152         * tests/uninorm/test-decomposition.c: Likewise.
19153         * tests/uninorm/test-u8-nfc.c: Likewise.
19154         * tests/uninorm/test-u8-nfd.c: Likewise.
19155         * tests/uninorm/test-u8-nfkc.c: Likewise.
19156         * tests/uninorm/test-u8-nfkd.c: Likewise.
19157         * tests/uninorm/test-u8-normcmp.c: Likewise.
19158         * tests/uninorm/test-u8-normcoll.c: Likewise.
19159         * tests/uninorm/test-u16-nfc.c: Likewise.
19160         * tests/uninorm/test-u16-nfd.c: Likewise.
19161         * tests/uninorm/test-u16-nfkc.c: Likewise.
19162         * tests/uninorm/test-u16-nfkd.c: Likewise.
19163         * tests/uninorm/test-u16-normcmp.c: Likewise.
19164         * tests/uninorm/test-u16-normcoll.c: Likewise.
19165         * tests/uninorm/test-u32-nfc.c: Likewise.
19166         * tests/uninorm/test-u32-nfd.c: Likewise.
19167         * tests/uninorm/test-u32-nfkc.c: Likewise.
19168         * tests/uninorm/test-u32-nfkd.c: Likewise.
19169         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19170         * tests/uninorm/test-u32-normcmp.c: Likewise.
19171         * tests/uninorm/test-u32-normcoll.c: Likewise.
19172         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19173         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19174         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19175         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19176         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19177         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19178         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19179         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19180         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19181         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19182         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19183         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19184         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19185         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19186         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19187         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19188         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19189         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19190         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19191         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19192         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19193         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19194         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19195         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19196         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19197         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19198         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19199         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19200         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19201         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19202         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19203         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19204         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19205         * tests/uniwidth/test-u8-strwidth.c: Likewise.
19206         * tests/uniwidth/test-u8-width.c: Likewise.
19207         * tests/uniwidth/test-u16-strwidth.c: Likewise.
19208         * tests/uniwidth/test-u16-width.c: Likewise.
19209         * tests/uniwidth/test-u32-strwidth.c: Likewise.
19210         * tests/uniwidth/test-u32-width.c: Likewise.
19211         * tests/uniwidth/test-uc_width.c: Likewise.
19212         * tests/uniwidth/test-uc_width2.c: Likewise.
19213         * modules/acl-tests (Files): Add tests/macros.h.
19214         * modules/areadlink-tests (Files): Likewise.
19215         * modules/areadlink-with-size-tests (Files): Likewise.
19216         * modules/areadlinkat-tests (Files): Likewise.
19217         * modules/areadlinkat-with-size-tests (Files): Likewise.
19218         * modules/argmatch-tests (Files): Likewise.
19219         * modules/argv-iter-tests (Files): Likewise.
19220         * modules/array-list-tests (Files): Likewise.
19221         * modules/array-mergesort-tests (Files): Likewise.
19222         * modules/array-oset-tests (Files): Likewise.
19223         * modules/avltree-list-tests (Files): Likewise.
19224         * modules/avltree-oset-tests (Files): Likewise.
19225         * modules/avltreehash-list-tests (Files): Likewise.
19226         * modules/base64-tests (Files): Likewise.
19227         * modules/binary-io-tests (Files): Likewise.
19228         * modules/bitrotate-tests (Files): Likewise.
19229         * modules/btowc-tests (Files): Likewise.
19230         * modules/byteswap-tests (Files): Likewise.
19231         * modules/c-ctype-tests (Files): Likewise.
19232         * modules/c-stack-tests (Files): Likewise.
19233         * modules/c-strcase-tests (Files): Likewise.
19234         * modules/c-strcasestr-tests (Files): Likewise.
19235         * modules/c-strstr-tests (Files): Likewise.
19236         * modules/canonicalize-lgpl-tests (Files): Likewise.
19237         * modules/canonicalize-tests (Files): Likewise.
19238         * modules/carray-list-tests (Files): Likewise.
19239         * modules/ceilf-tests (Files): Likewise.
19240         * modules/ceill-tests (Files): Likewise.
19241         * modules/chown-tests (Files): Likewise.
19242         * modules/cloexec-tests (Files): Likewise.
19243         * modules/copy-file-tests (Files): Likewise.
19244         * modules/count-one-bits-tests (Files): Likewise.
19245         * modules/dprintf-posix-tests (Files): Likewise.
19246         * modules/dup2-tests (Files): Likewise.
19247         * modules/dup3-tests (Files): Likewise.
19248         * modules/duplocale-tests (Files): Likewise.
19249         * modules/fbufmode-tests (Files): Likewise.
19250         * modules/fchdir-tests (Files): Likewise.
19251         * modules/fcntl-safer-tests (Files): Likewise.
19252         * modules/fcntl-tests (Files): Likewise.
19253         * modules/fdopendir-tests (Files): Likewise.
19254         * modules/fdutimensat-tests (Files): Likewise.
19255         * modules/fflush-tests (Files): Likewise.
19256         * modules/filevercmp-tests (Files): Likewise.
19257         * modules/flock-tests (Files): Likewise.
19258         * modules/floorf-tests (Files): Likewise.
19259         * modules/floorl-tests (Files): Likewise.
19260         * modules/fnmatch-tests (Files): Likewise.
19261         * modules/fopen-safer-tests (Files): Likewise.
19262         * modules/fopen-tests (Files): Likewise.
19263         * modules/fpending-tests (Files): Likewise.
19264         * modules/fprintf-posix-tests (Files): Likewise.
19265         * modules/fpurge-tests (Files): Likewise.
19266         * modules/freadable-tests (Files): Likewise.
19267         * modules/freadahead-tests (Files): Likewise.
19268         * modules/freading-tests (Files): Likewise.
19269         * modules/freadptr-tests (Files): Likewise.
19270         * modules/freadseek-tests (Files): Likewise.
19271         * modules/freopen-tests (Files): Likewise.
19272         * modules/frexp-nolibm-tests (Files): Likewise.
19273         * modules/frexp-tests (Files): Likewise.
19274         * modules/frexpl-nolibm-tests (Files): Likewise.
19275         * modules/frexpl-tests (Files): Likewise.
19276         * modules/fseek-tests (Files): Likewise.
19277         * modules/fseeko-tests (Files): Likewise.
19278         * modules/fstrcmp-tests (Files): Likewise.
19279         * modules/fsync-tests (Files): Likewise.
19280         * modules/ftell-tests (Files): Likewise.
19281         * modules/ftello-tests (Files): Likewise.
19282         * modules/func-tests (Files): Likewise.
19283         * modules/futimens-tests (Files): Likewise.
19284         * modules/fwritable-tests (Files): Likewise.
19285         * modules/fwriting-tests (Files): Likewise.
19286         * modules/getcwd-tests (Files): Likewise.
19287         * modules/getdate-tests (Files): Likewise.
19288         * modules/getdelim-tests (Files): Likewise.
19289         * modules/getdtablesize-tests (Files): Likewise.
19290         * modules/getgroups-tests (Files): Likewise.
19291         * modules/getline-tests (Files): Likewise.
19292         * modules/getndelim2-tests (Files): Likewise.
19293         * modules/glob-tests (Files): Likewise.
19294         * modules/hash-tests (Files): Likewise.
19295         * modules/i-ring-tests (Files): Likewise.
19296         * modules/iconv-tests (Files): Likewise.
19297         * modules/iconv_open-utf-tests (Files): Likewise.
19298         * modules/idpriv-drop-tests (Files): Likewise.
19299         * modules/idpriv-droptemp-tests (Files): Likewise.
19300         * modules/inet_ntop-tests (Files): Likewise.
19301         * modules/inet_pton-tests (Files): Likewise.
19302         * modules/isblank-tests (Files): Likewise.
19303         * modules/isfinite-tests (Files): Likewise.
19304         * modules/isinf-tests (Files): Likewise.
19305         * modules/isnan-tests (Files): Likewise.
19306         * modules/isnand-nolibm-tests (Files): Likewise.
19307         * modules/isnand-tests (Files): Likewise.
19308         * modules/isnanf-nolibm-tests (Files): Likewise.
19309         * modules/isnanf-tests (Files): Likewise.
19310         * modules/isnanl-nolibm-tests (Files): Likewise.
19311         * modules/isnanl-tests (Files): Likewise.
19312         * modules/lchown-tests (Files): Likewise.
19313         * modules/ldexpl-tests (Files): Likewise.
19314         * modules/link-tests (Files): Likewise.
19315         * modules/linkat-tests (Files): Likewise.
19316         * modules/linked-list-tests (Files): Likewise.
19317         * modules/linkedhash-list-tests (Files): Likewise.
19318         * modules/localename-tests (Files): Likewise.
19319         * modules/lseek-tests (Files): Likewise.
19320         * modules/lstat-tests (Files): Likewise.
19321         * modules/mbmemcasecmp-tests (Files): Likewise.
19322         * modules/mbmemcasecoll-tests (Files): Likewise.
19323         * modules/mbrtowc-tests (Files): Likewise.
19324         * modules/mbscasecmp-tests (Files): Likewise.
19325         * modules/mbscasestr-tests (Files): Likewise.
19326         * modules/mbschr-tests (Files): Likewise.
19327         * modules/mbscspn-tests (Files): Likewise.
19328         * modules/mbsinit-tests (Files): Likewise.
19329         * modules/mbsncasecmp-tests (Files): Likewise.
19330         * modules/mbsnrtowcs-tests (Files): Likewise.
19331         * modules/mbspbrk-tests (Files): Likewise.
19332         * modules/mbspcasecmp-tests (Files): Likewise.
19333         * modules/mbsrchr-tests (Files): Likewise.
19334         * modules/mbsrtowcs-tests (Files): Likewise.
19335         * modules/mbsspn-tests (Files): Likewise.
19336         * modules/mbsstr-tests (Files): Likewise.
19337         * modules/memchr-tests (Files): Likewise.
19338         * modules/memchr2-tests (Files): Likewise.
19339         * modules/memcmp-tests (Files): Likewise.
19340         * modules/memmem-tests (Files): Likewise.
19341         * modules/memrchr-tests (Files): Likewise.
19342         * modules/mkdir-tests (Files): Likewise.
19343         * modules/mkfifo-tests (Files): Likewise.
19344         * modules/mkfifoat-tests (Files): Likewise.
19345         * modules/mknod-tests (Files): Likewise.
19346         * modules/nanosleep-tests (Files): Likewise.
19347         * modules/nl_langinfo-tests (Files): Likewise.
19348         * modules/obstack-printf-tests (Files): Likewise.
19349         * modules/open-tests (Files): Likewise.
19350         * modules/openat-tests (Files): Likewise.
19351         * modules/pipe-filter-gi-tests (Files): Likewise.
19352         * modules/pipe-filter-ii-tests (Files): Likewise.
19353         * modules/pipe2-tests (Files): Likewise.
19354         * modules/popen-safer-tests (Files): Likewise.
19355         * modules/popen-tests (Files): Likewise.
19356         * modules/posixtm-tests (Files): Likewise.
19357         * modules/pread-tests (Files): Likewise.
19358         * modules/printf-frexp-tests (Files): Likewise.
19359         * modules/printf-frexpl-tests (Files): Likewise.
19360         * modules/printf-posix-tests (Files): Likewise.
19361         * modules/priv-set-tests (Files): Likewise.
19362         * modules/quotearg-tests (Files): Likewise.
19363         * modules/random_r-tests (Files): Likewise.
19364         * modules/rawmemchr-tests (Files): Likewise.
19365         * modules/rbtree-list-tests (Files): Likewise.
19366         * modules/rbtree-oset-tests (Files): Likewise.
19367         * modules/rbtreehash-list-tests (Files): Likewise.
19368         * modules/readlink-tests (Files): Likewise.
19369         * modules/remove-tests (Files): Likewise.
19370         * modules/rename-tests (Files): Likewise.
19371         * modules/renameat-tests (Files): Likewise.
19372         * modules/rmdir-tests (Files): Likewise.
19373         * modules/round-tests (Files): Likewise.
19374         * modules/roundf-tests (Files): Likewise.
19375         * modules/roundl-tests (Files): Likewise.
19376         * modules/safe-alloc-tests (Files): Likewise.
19377         * modules/setenv-tests (Files): Likewise.
19378         * modules/sigaction-tests (Files): Likewise.
19379         * modules/signbit-tests (Files): Likewise.
19380         * modules/sleep-tests (Files): Likewise.
19381         * modules/snprintf-posix-tests (Files): Likewise.
19382         * modules/snprintf-tests (Files): Likewise.
19383         * modules/sprintf-posix-tests (Files): Likewise.
19384         * modules/stat-tests (Files): Likewise.
19385         * modules/stat-time-tests (Files): Likewise.
19386         * modules/strcasestr-tests (Files): Likewise.
19387         * modules/strchrnul-tests (Files): Likewise.
19388         * modules/strerror-tests (Files): Likewise.
19389         * modules/striconv-tests (Files): Likewise.
19390         * modules/striconveh-tests (Files): Likewise.
19391         * modules/striconveha-tests (Files): Likewise.
19392         * modules/strsignal-tests (Files): Likewise.
19393         * modules/strstr-tests (Files): Likewise.
19394         * modules/strtod-tests (Files): Likewise.
19395         * modules/strverscmp-tests (Files): Likewise.
19396         * modules/symlink-tests (Files): Likewise.
19397         * modules/symlinkat-tests (Files): Likewise.
19398         * modules/trunc-tests (Files): Likewise.
19399         * modules/truncf-tests (Files): Likewise.
19400         * modules/truncl-tests (Files): Likewise.
19401         * modules/uname-tests (Files): Likewise.
19402         * modules/unicase/cased-tests (Files): Likewise.
19403         * modules/unicase/ignorable-tests (Files): Likewise.
19404         * modules/unicase/locale-language-tests (Files): Likewise.
19405         * modules/unicase/tolower-tests (Files): Likewise.
19406         * modules/unicase/totitle-tests (Files): Likewise.
19407         * modules/unicase/toupper-tests (Files): Likewise.
19408         * modules/unicase/u8-casecmp-tests (Files): Likewise.
19409         * modules/unicase/u8-casecoll-tests (Files): Likewise.
19410         * modules/unicase/u8-casefold-tests (Files): Likewise.
19411         * modules/unicase/u8-is-cased-tests (Files): Likewise.
19412         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
19413         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
19414         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
19415         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
19416         * modules/unicase/u8-tolower-tests (Files): Likewise.
19417         * modules/unicase/u8-totitle-tests (Files): Likewise.
19418         * modules/unicase/u8-toupper-tests (Files): Likewise.
19419         * modules/unicase/u16-casecmp-tests (Files): Likewise.
19420         * modules/unicase/u16-casecoll-tests (Files): Likewise.
19421         * modules/unicase/u16-casefold-tests (Files): Likewise.
19422         * modules/unicase/u16-is-cased-tests (Files): Likewise.
19423         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
19424         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
19425         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
19426         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
19427         * modules/unicase/u16-tolower-tests (Files): Likewise.
19428         * modules/unicase/u16-totitle-tests (Files): Likewise.
19429         * modules/unicase/u16-toupper-tests (Files): Likewise.
19430         * modules/unicase/u32-casecmp-tests (Files): Likewise.
19431         * modules/unicase/u32-casecoll-tests (Files): Likewise.
19432         * modules/unicase/u32-casefold-tests (Files): Likewise.
19433         * modules/unicase/u32-is-cased-tests (Files): Likewise.
19434         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
19435         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
19436         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
19437         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
19438         * modules/unicase/u32-tolower-tests (Files): Likewise.
19439         * modules/unicase/u32-totitle-tests (Files): Likewise.
19440         * modules/unicase/u32-toupper-tests (Files): Likewise.
19441         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
19442         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
19443         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
19444         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
19445         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
19446         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
19447         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
19448         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
19449         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
19450         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
19451         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
19452         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
19453         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
19454         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
19455         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
19456         * modules/unictype/bidicategory-name-tests (Files): Likewise.
19457         * modules/unictype/bidicategory-of-tests (Files): Likewise.
19458         * modules/unictype/bidicategory-test-tests (Files): Likewise.
19459         * modules/unictype/block-list-tests (Files): Likewise.
19460         * modules/unictype/block-of-tests (Files): Likewise.
19461         * modules/unictype/block-test-tests (Files): Likewise.
19462         * modules/unictype/category-C-tests (Files): Likewise.
19463         * modules/unictype/category-Cc-tests (Files): Likewise.
19464         * modules/unictype/category-Cf-tests (Files): Likewise.
19465         * modules/unictype/category-Cn-tests (Files): Likewise.
19466         * modules/unictype/category-Co-tests (Files): Likewise.
19467         * modules/unictype/category-Cs-tests (Files): Likewise.
19468         * modules/unictype/category-L-tests (Files): Likewise.
19469         * modules/unictype/category-Ll-tests (Files): Likewise.
19470         * modules/unictype/category-Lm-tests (Files): Likewise.
19471         * modules/unictype/category-Lo-tests (Files): Likewise.
19472         * modules/unictype/category-Lt-tests (Files): Likewise.
19473         * modules/unictype/category-Lu-tests (Files): Likewise.
19474         * modules/unictype/category-M-tests (Files): Likewise.
19475         * modules/unictype/category-Mc-tests (Files): Likewise.
19476         * modules/unictype/category-Me-tests (Files): Likewise.
19477         * modules/unictype/category-Mn-tests (Files): Likewise.
19478         * modules/unictype/category-N-tests (Files): Likewise.
19479         * modules/unictype/category-Nd-tests (Files): Likewise.
19480         * modules/unictype/category-Nl-tests (Files): Likewise.
19481         * modules/unictype/category-No-tests (Files): Likewise.
19482         * modules/unictype/category-P-tests (Files): Likewise.
19483         * modules/unictype/category-Pc-tests (Files): Likewise.
19484         * modules/unictype/category-Pd-tests (Files): Likewise.
19485         * modules/unictype/category-Pe-tests (Files): Likewise.
19486         * modules/unictype/category-Pf-tests (Files): Likewise.
19487         * modules/unictype/category-Pi-tests (Files): Likewise.
19488         * modules/unictype/category-Po-tests (Files): Likewise.
19489         * modules/unictype/category-Ps-tests (Files): Likewise.
19490         * modules/unictype/category-S-tests (Files): Likewise.
19491         * modules/unictype/category-Sc-tests (Files): Likewise.
19492         * modules/unictype/category-Sk-tests (Files): Likewise.
19493         * modules/unictype/category-Sm-tests (Files): Likewise.
19494         * modules/unictype/category-So-tests (Files): Likewise.
19495         * modules/unictype/category-Z-tests (Files): Likewise.
19496         * modules/unictype/category-Zl-tests (Files): Likewise.
19497         * modules/unictype/category-Zp-tests (Files): Likewise.
19498         * modules/unictype/category-Zs-tests (Files): Likewise.
19499         * modules/unictype/category-and-not-tests (Files): Likewise.
19500         * modules/unictype/category-and-tests (Files): Likewise.
19501         * modules/unictype/category-byname-tests (Files): Likewise.
19502         * modules/unictype/category-name-tests (Files): Likewise.
19503         * modules/unictype/category-none-tests (Files): Likewise.
19504         * modules/unictype/category-of-tests (Files): Likewise.
19505         * modules/unictype/category-or-tests (Files): Likewise.
19506         * modules/unictype/category-test-withtable-tests (Files): Likewise.
19507         * modules/unictype/combining-class-tests (Files): Likewise.
19508         * modules/unictype/ctype-alnum-tests (Files): Likewise.
19509         * modules/unictype/ctype-alpha-tests (Files): Likewise.
19510         * modules/unictype/ctype-blank-tests (Files): Likewise.
19511         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
19512         * modules/unictype/ctype-digit-tests (Files): Likewise.
19513         * modules/unictype/ctype-graph-tests (Files): Likewise.
19514         * modules/unictype/ctype-lower-tests (Files): Likewise.
19515         * modules/unictype/ctype-print-tests (Files): Likewise.
19516         * modules/unictype/ctype-punct-tests (Files): Likewise.
19517         * modules/unictype/ctype-space-tests (Files): Likewise.
19518         * modules/unictype/ctype-upper-tests (Files): Likewise.
19519         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
19520         * modules/unictype/decimal-digit-tests (Files): Likewise.
19521         * modules/unictype/digit-tests (Files): Likewise.
19522         * modules/unictype/mirror-tests (Files): Likewise.
19523         * modules/unictype/numeric-tests (Files): Likewise.
19524         * modules/unictype/property-alphabetic-tests (Files): Likewise.
19525         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
19526         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
19527         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
19528         Likewise.
19529         * modules/unictype/property-bidi-block-separator-tests (Files):
19530         Likewise.
19531         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
19532         Likewise.
19533         * modules/unictype/property-bidi-common-separator-tests (Files):
19534         Likewise.
19535         * modules/unictype/property-bidi-control-tests (Files): Likewise.
19536         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
19537         Likewise.
19538         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
19539         Likewise.
19540         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
19541         Likewise.
19542         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
19543         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
19544         Likewise.
19545         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
19546         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
19547         Likewise.
19548         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
19549         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
19550         * modules/unictype/property-bidi-segment-separator-tests (Files):
19551         Likewise.
19552         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
19553         * modules/unictype/property-byname-tests (Files): Likewise.
19554         * modules/unictype/property-combining-tests (Files): Likewise.
19555         * modules/unictype/property-composite-tests (Files): Likewise.
19556         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
19557         * modules/unictype/property-dash-tests (Files): Likewise.
19558         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
19559         * modules/unictype/property-default-ignorable-code-point-tests (Files):
19560         Likewise.
19561         * modules/unictype/property-deprecated-tests (Files): Likewise.
19562         * modules/unictype/property-diacritic-tests (Files): Likewise.
19563         * modules/unictype/property-extender-tests (Files): Likewise.
19564         * modules/unictype/property-format-control-tests (Files): Likewise.
19565         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
19566         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
19567         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
19568         * modules/unictype/property-hex-digit-tests (Files): Likewise.
19569         * modules/unictype/property-hyphen-tests (Files): Likewise.
19570         * modules/unictype/property-id-continue-tests (Files): Likewise.
19571         * modules/unictype/property-id-start-tests (Files): Likewise.
19572         * modules/unictype/property-ideographic-tests (Files): Likewise.
19573         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
19574         * modules/unictype/property-ids-trinary-operator-tests (Files):
19575         Likewise.
19576         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
19577         * modules/unictype/property-iso-control-tests (Files): Likewise.
19578         * modules/unictype/property-join-control-tests (Files): Likewise.
19579         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
19580         * modules/unictype/property-line-separator-tests (Files): Likewise.
19581         * modules/unictype/property-logical-order-exception-tests (Files):
19582         Likewise.
19583         * modules/unictype/property-lowercase-tests (Files): Likewise.
19584         * modules/unictype/property-math-tests (Files): Likewise.
19585         * modules/unictype/property-non-break-tests (Files): Likewise.
19586         * modules/unictype/property-not-a-character-tests (Files): Likewise.
19587         * modules/unictype/property-numeric-tests (Files): Likewise.
19588         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
19589         * modules/unictype/property-other-default-ignorable-code-point-tests
19590         (Files): Likewise.
19591         * modules/unictype/property-other-grapheme-extend-tests (Files):
19592         Likewise.
19593         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
19594         * modules/unictype/property-other-id-start-tests (Files): Likewise.
19595         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
19596         * modules/unictype/property-other-math-tests (Files): Likewise.
19597         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
19598         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
19599         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
19600         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
19601         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
19602         * modules/unictype/property-private-use-tests (Files): Likewise.
19603         * modules/unictype/property-punctuation-tests (Files): Likewise.
19604         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
19605         * modules/unictype/property-radical-tests (Files): Likewise.
19606         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
19607         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
19608         * modules/unictype/property-space-tests (Files): Likewise.
19609         * modules/unictype/property-terminal-punctuation-tests (Files):
19610         Likewise.
19611         * modules/unictype/property-test-tests (Files): Likewise.
19612         * modules/unictype/property-titlecase-tests (Files): Likewise.
19613         * modules/unictype/property-unassigned-code-value-tests (Files):
19614         Likewise.
19615         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
19616         * modules/unictype/property-uppercase-tests (Files): Likewise.
19617         * modules/unictype/property-variation-selector-tests (Files): Likewise.
19618         * modules/unictype/property-white-space-tests (Files): Likewise.
19619         * modules/unictype/property-xid-continue-tests (Files): Likewise.
19620         * modules/unictype/property-xid-start-tests (Files): Likewise.
19621         * modules/unictype/property-zero-width-tests (Files): Likewise.
19622         * modules/unictype/scripts-tests (Files): Likewise.
19623         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
19624         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
19625         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
19626         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
19627         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
19628         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
19629         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
19630         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
19631         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
19632         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
19633         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
19634         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
19635         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
19636         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
19637         * modules/uninorm/composition-tests (Files): Likewise.
19638         * modules/uninorm/decomposing-form-tests (Files): Likewise.
19639         * modules/uninorm/decomposition-tests (Files): Likewise.
19640         * modules/uninorm/filter-tests (Files): Likewise.
19641         * modules/uninorm/nfc-tests (Files): Likewise.
19642         * modules/uninorm/nfd-tests (Files): Likewise.
19643         * modules/uninorm/nfkc-tests (Files): Likewise.
19644         * modules/uninorm/nfkd-tests (Files): Likewise.
19645         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
19646         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
19647         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
19648         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
19649         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
19650         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
19651         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
19652         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19653         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
19654         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
19655         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
19656         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
19657         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19658         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
19659         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
19660         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
19661         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
19662         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19663         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
19664         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
19665         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
19666         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
19667         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19668         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
19669         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
19670         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
19671         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
19672         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
19673         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
19674         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
19675         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
19676         * modules/uniwidth/u8-width-tests (Files): Likewise.
19677         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
19678         * modules/uniwidth/u16-width-tests (Files): Likewise.
19679         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
19680         * modules/uniwidth/u32-width-tests (Files): Likewise.
19681         * modules/uniwidth/width-tests (Files): Likewise.
19682         * modules/unlink-tests (Files): Likewise.
19683         * modules/unsetenv-tests (Files): Likewise.
19684         * modules/usleep-tests (Files): Likewise.
19685         * modules/utimens-tests (Files): Likewise.
19686         * modules/utimensat-tests (Files): Likewise.
19687         * modules/vasnprintf-posix-tests (Files): Likewise.
19688         * modules/vasnprintf-tests (Files): Likewise.
19689         * modules/vasprintf-posix-tests (Files): Likewise.
19690         * modules/vasprintf-tests (Files): Likewise.
19691         * modules/vdprintf-posix-tests (Files): Likewise.
19692         * modules/vfprintf-posix-tests (Files): Likewise.
19693         * modules/vprintf-posix-tests (Files): Likewise.
19694         * modules/vsnprintf-posix-tests (Files): Likewise.
19695         * modules/vsnprintf-tests (Files): Likewise.
19696         * modules/vsprintf-posix-tests (Files): Likewise.
19697         * modules/wcrtomb-tests (Files): Likewise.
19698         * modules/wcsnrtombs-tests (Files): Likewise.
19699         * modules/wcsrtombs-tests (Files): Likewise.
19700         * modules/wctype-tests (Files): Likewise.
19701         * modules/wcwidth-tests (Files): Likewise.
19702         * modules/xmemdup0-tests (Files): Likewise.
19703         * modules/xprintf-posix-tests (Files): Likewise.
19704         * modules/xvasprintf-tests (Files): Likewise.
19705
19706 2009-12-24  Eric Blake  <ebb9@byu.net>
19707
19708         test-nanosleep: fix typo
19709         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
19710         patch.
19711         Reported by Bruno Haible.
19712
19713 2009-12-24  Bruno Haible  <bruno@clisp.org>
19714
19715         Reduce namespace pollution on glibc systems.
19716         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
19717         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
19718         systems.
19719         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
19720         <getopt.h> on glibc systems.
19721         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
19722         systems.
19723         * lib/fcntl.c: Include <unistd.h> here instead.
19724
19725 2009-12-24  Bruno Haible  <bruno@clisp.org>
19726
19727         * lib/stdlib.in.h (includes): Fix typo in today's commit.
19728
19729 2009-12-24  Eric Blake  <ebb9@byu.net>
19730
19731         tests: add signature checks
19732         * tests/signature.h (SIGNATURE_CHECK): New file.
19733         * modules/atexit-tests (Files): Use it.
19734         * modules/btowc-tests (Files): Likewise.
19735         * modules/canonicalize-lgpl-tests (Files): Likewise.
19736         * modules/ceilf-tests (Files): Likewise.
19737         * modules/ceill-tests (Files): Likewise.
19738         * modules/chown-tests (Files): Likewise.
19739         * modules/dprintf-posix-tests (Files): Likewise.
19740         * modules/dup2-tests (Files): Likewise.
19741         * modules/dup3-tests (Files): Likewise.
19742         * modules/duplocale-tests (Files): Likewise.
19743         * modules/fchdir-tests (Files): Likewise.
19744         * modules/fcntl-tests (Files): Likewise.
19745         * modules/fdopendir-tests (Files): Likewise.
19746         * modules/fflush-tests (Files): Likewise.
19747         * modules/flock-tests (Files): Likewise.
19748         * modules/floorf-tests (Files): Likewise.
19749         * modules/floorl-tests (Files): Likewise.
19750         * modules/fnmatch-tests (Files): Likewise.
19751         * modules/fopen-tests (Files): Likewise.
19752         * modules/fprintf-posix-tests (Files): Likewise.
19753         * modules/freopen-tests (Files): Likewise.
19754         * modules/frexp-nolibm-tests (Files): Likewise.
19755         * modules/frexp-tests (Files): Likewise.
19756         * modules/frexpl-nolibm-tests (Files): Likewise.
19757         * modules/frexpl-tests (Files): Likewise.
19758         * modules/fseek-tests (Files): Likewise.
19759         * modules/fseeko-tests (Files): Likewise.
19760         * modules/fsync-tests (Files): Likewise.
19761         * modules/ftell-tests (Files): Likewise.
19762         * modules/ftello-tests (Files): Likewise.
19763         * modules/futimens-tests (Files): Likewise.
19764         * modules/getaddrinfo-tests (Files): Likewise.
19765         * modules/getcwd-tests (Files): Likewise.
19766         * modules/getdelim-tests (Files): Likewise.
19767         * modules/getdtablesize-tests (Files): Likewise.
19768         * modules/getgroups-tests (Files): Likewise.
19769         * modules/gethostname-tests (Files): Likewise.
19770         * modules/getline-tests (Files): Likewise.
19771         * modules/getopt-posix-tests (Files): Likewise.
19772         * modules/gettimeofday-tests (Files): Likewise.
19773         * modules/glob-tests (Files): Likewise.
19774         * modules/iconv-tests (Files): Likewise.
19775         * modules/inet_ntop-tests (Files): Likewise.
19776         * modules/inet_pton-tests (Files): Likewise.
19777         * modules/isblank-tests (Files): Likewise.
19778         * modules/lchown-tests (Files): Likewise.
19779         * modules/ldexpl-tests (Files): Likewise.
19780         * modules/link-tests (Files): Likewise.
19781         * modules/linkat-tests (Files): Likewise.
19782         * modules/lseek-tests (Files): Likewise.
19783         * modules/lstat-tests (Files): Likewise.
19784         * modules/mbrtowc-tests (Files): Likewise.
19785         * modules/mbsinit-tests (Files): Likewise.
19786         * modules/mbsnrtowcs-tests (Files): Likewise.
19787         * modules/mbsrtowcs-tests (Files): Likewise.
19788         * modules/memchr-tests (Files): Likewise.
19789         * modules/memcmp-tests (Files): Likewise.
19790         * modules/memmem-tests (Files): Likewise.
19791         * modules/memrchr-tests (Files): Likewise.
19792         * modules/mkdir-tests (Files): Likewise.
19793         * modules/mkfifo-tests (Files): Likewise.
19794         * modules/mkfifoat-tests (Files): Likewise.
19795         * modules/mknod-tests (Files): Likewise.
19796         * modules/nanosleep-tests (Files): Likewise.
19797         * modules/nl_langinfo-tests (Files): Likewise.
19798         * modules/obstack-printf-tests (Files): Likewise.
19799         * modules/open-tests (Files): Likewise.
19800         * modules/openat-tests (Files): Likewise.
19801         * modules/perror-tests (Files): Likewise.
19802         * modules/pipe2-tests (Files): Likewise.
19803         * modules/poll-tests (Files): Likewise.
19804         * modules/popen-tests (Files): Likewise.
19805         * modules/posix_spawn-tests (Files): Likewise.
19806         * modules/posix_spawnp-tests (Files): Likewise.
19807         * modules/pread-tests (Files): Likewise.
19808         * modules/printf-posix-tests (Files): Likewise.
19809         * modules/pty-tests (Files): Likewise.
19810         * modules/random_r-tests (Files): Likewise.
19811         * modules/rawmemchr-tests (Files): Likewise.
19812         * modules/readlink-tests (Files): Likewise.
19813         * modules/remove-tests (Files): Likewise.
19814         * modules/rename-tests (Files): Likewise.
19815         * modules/renameat-tests (Files): Likewise.
19816         * modules/rmdir-tests (Files): Likewise.
19817         * modules/round-tests (Files): Likewise.
19818         * modules/roundf-tests (Files): Likewise.
19819         * modules/roundl-tests (Files): Likewise.
19820         * modules/select-tests (Files): Likewise.
19821         * modules/setenv-tests (Files): Likewise.
19822         * modules/sigaction-tests (Files): Likewise.
19823         * modules/sleep-tests (Files): Likewise.
19824         * modules/snprintf-posix-tests (Files): Likewise.
19825         * modules/snprintf-tests (Files): Likewise.
19826         * modules/sprintf-posix-tests (Files): Likewise.
19827         * modules/stat-tests (Files): Likewise.
19828         * modules/strcasestr-tests (Files): Likewise.
19829         * modules/strchrnul-tests (Files): Likewise.
19830         * modules/strerror-tests (Files): Likewise.
19831         * modules/strsignal-tests (Files): Likewise.
19832         * modules/strstr-tests (Files): Likewise.
19833         * modules/strtod-tests (Files): Likewise.
19834         * modules/strverscmp-tests (Files): Likewise.
19835         * modules/symlink-tests (Files): Likewise.
19836         * modules/symlinkat-tests (Files): Likewise.
19837         * modules/times-tests (Files): Likewise.
19838         * modules/trunc-tests (Files): Likewise.
19839         * modules/truncf-tests (Files): Likewise.
19840         * modules/truncl-tests (Files): Likewise.
19841         * modules/tsearch-tests (Files): Likewise.
19842         * modules/uname-tests (Files): Likewise.
19843         * modules/unlink-tests (Files): Likewise.
19844         * modules/unsetenv-tests (Files): Likewise.
19845         * modules/usleep-tests (Files): Likewise.
19846         * modules/utimensat-tests (Files): Likewise.
19847         * modules/vasprintf-tests (Files): Likewise.
19848         * modules/vdprintf-posix-tests (Files): Likewise.
19849         * modules/vfprintf-posix-tests (Files): Likewise.
19850         * modules/vprintf-posix-tests (Files): Likewise.
19851         * modules/vsnprintf-posix-tests (Files): Likewise.
19852         * modules/vsnprintf-tests (Files): Likewise.
19853         * modules/vsprintf-posix-tests (Files): Likewise.
19854         * modules/wcrtomb-tests (Files): Likewise.
19855         * modules/wcsnrtombs-tests (Files): Likewise.
19856         * modules/wcsrtombs-tests (Files): Likewise.
19857         * modules/wcwidth-tests (Files): Likewise.
19858         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
19859         * tests/test-isinf.c (isinf): Likewise.
19860         * tests/test-isnan.c (isnan): Likewise.
19861         * tests/test-signbit.c (signbit): Likewise.
19862         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
19863         declaration, either as macro or with correct signature.
19864         (select): Ensure function under test is declared with correct
19865         signature in correct header.
19866         * tests/test-atexit.c (atexit): Likewise.
19867         * tests/test-btowc.c (btowc): Likewise.
19868         * tests/test-canonicalize-lgpl.c (realpath)
19869         (canonicalize_file_name): Likewise.
19870         * tests/test-ceilf1.c (ceilf): Likewise.
19871         * tests/test-ceill.c (ceill): Likewise.
19872         * tests/test-chown.c (chown): Likewise.
19873         * tests/test-dprintf-posix.c (dprintf): Likewise.
19874         * tests/test-dup2.c (dup2): Likewise.
19875         * tests/test-dup3.c (dup3): Likewise.
19876         * tests/test-duplocale.c (duplocale): Likewise.
19877         * tests/test-fchdir.c (fchdir): Likewise.
19878         * tests/test-fchownat.c (fchownat): Likewise.
19879         * tests/test-fcntl.c (fcntl): Likewise.
19880         * tests/test-fdopendir.c (fdopendir): Likewise.
19881         * tests/test-fflush.c (fflush): Likewise.
19882         * tests/test-flock.c (flock): Likewise.
19883         * tests/test-floorf1.c (floorf): Likewise.
19884         * tests/test-floorl.c (floorl): Likewise.
19885         * tests/test-fnmatch.c (fnmatch): Likewise.
19886         * tests/test-fopen.c (fopen): Likewise.
19887         * tests/test-fprintf-posix.c (fprintf): Likewise.
19888         * tests/test-freopen.c (freopen): Likewise.
19889         * tests/test-frexp.c (frexp): Likewise.
19890         * tests/test-frexpl.c (frexpl): Likewise.
19891         * tests/test-fseek.c (fseek): Likewise.
19892         * tests/test-fseeko.c (fseeko): Likewise.
19893         * tests/test-fstatat.c (fstatat): Likewise.
19894         * tests/test-fsync.c (fsync): Likewise.
19895         * tests/test-ftell.c (ftell): Likewise.
19896         * tests/test-ftello.c (ftello): Likewise.
19897         * tests/test-futimens.c (futimens): Likewise.
19898         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
19899         (gai_strerror): Likewise.
19900         * tests/test-getcwd.c (getcwd): Likewise.
19901         * tests/test-getdelim.c (getdelim): Likewise.
19902         * tests/test-getdtablesize.c (getdtablesize): Likewise.
19903         * tests/test-getgroups.c (getgroups): Likewise.
19904         * tests/test-gethostname.c (gethostname): Likewise.
19905         * tests/test-getline.c (getline): Likewise.
19906         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
19907         Likewise.
19908         * tests/test-gettimeofday.c (gettimeofday): Likewise.
19909         * tests/test-glob.c (glob, globfree): Likewise.
19910         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
19911         * tests/test-inet_ntop.c (inet_ntop): Likewise.
19912         * tests/test-inet_pton.c (inet_pton): Likewise.
19913         * tests/test-isblank.c (isblank): Likewise.
19914         * tests/test-lchown.c (lchown): Likewise.
19915         * tests/test-ldexpl.c (ldexpl): Likewise.
19916         * tests/test-link.c (link): Likewise.
19917         * tests/test-linkat.c (linkat): Likewise.
19918         * tests/test-lseek.c (lseek): Likewise.
19919         * tests/test-lstat.c (lstat): Likewise.
19920         * tests/test-mbrtowc.c (mbrtowc): Likewise.
19921         * tests/test-mbsinit.c (mbsinit): Likewise.
19922         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
19923         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
19924         * tests/test-memchr.c (memchr): Likewise.
19925         * tests/test-memcmp.c (memcmp): Likewise.
19926         * tests/test-memmem.c (memmem): Likewise.
19927         * tests/test-memrchr.c (memrchr): Likewise.
19928         * tests/test-mkdir.c (mkdir): Likewise.
19929         * tests/test-mkdirat.c (mkdirat): Likewise.
19930         * tests/test-mkfifo.c (mkfifo): Likewise.
19931         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
19932         * tests/test-mknod.c (mknod): Likewise.
19933         * tests/test-nanosleep.c (nanosleep): Likewise.
19934         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
19935         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
19936         Likewise.
19937         * tests/test-open.c (open): Likewise.
19938         * tests/test-openat.c (openat): Likewise.
19939         * tests/test-perror.c (perror): Likewise.
19940         * tests/test-pipe2.c (pipe2): Likewise.
19941         * tests/test-poll.c (poll): Likewise.
19942         * tests/test-popen.c (popen, pclose): Likewise.
19943         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
19944         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
19945         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
19946         (posix_spawn_file_actions_destroy)
19947         (posix_spawn_file_actions_addclose)
19948         (posix_spawn_file_actions_addopen)
19949         (posix_spawn_file_actions_adddup2): Likewise.
19950         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
19951         * tests/test-pread.c (pread): Likewise.
19952         * tests/test-printf-posix.c (printf): Likewise.
19953         * tests/test-pty.c (openpty, forkpty): Likewise.
19954         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
19955         (random_r): Likewise.
19956         * tests/test-rawmemchr.c (rawmemchr): Likewise.
19957         * tests/test-readlink.c (readlink): Likewise.
19958         * tests/test-remove.c (remove): Likewise.
19959         * tests/test-rename.c (rename): Likewise.
19960         * tests/test-renameat.c (renameat): Likewise.
19961         * tests/test-rmdir.c (rmdir): Likewise.
19962         * tests/test-round1.c (round): Likewise.
19963         * tests/test-roundf1.c (roundf): Likewise.
19964         * tests/test-roundl.c (roundl): Likewise.
19965         * tests/test-setenv.c (setenv): Likewise.
19966         * tests/test-sigaction.c (sigaction): Likewise.
19967         * tests/test-sleep.c (sleep): Likewise.
19968         * tests/test-snprintf.c (snprintf): Likewise.
19969         * tests/test-sprintf-posix.c (sprintf): Likewise.
19970         * tests/test-stat.c (stat): Likewise.
19971         * tests/test-stpncpy.c (stpncpy): Likewise.
19972         * tests/test-strcasestr.c (strcasestr): Likewise.
19973         * tests/test-strchrnul.c (strchrnul): Likewise.
19974         * tests/test-strerror.c (strerror): Likewise.
19975         * tests/test-strsignal.c (strsignal): Likewise.
19976         * tests/test-strstr.c (strstr): Likewise.
19977         * tests/test-strtod.c (strtod): Likewise.
19978         * tests/test-strverscmp.c (strverscmp): Likewise.
19979         * tests/test-symlink.c (symlink): Likewise.
19980         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
19981         * tests/test-times.c (times): Likewise.
19982         * tests/test-trunc1.c (trunc): Likewise.
19983         * tests/test-truncf1.c (truncf): Likewise.
19984         * tests/test-truncl.c (truncl): Likewise.
19985         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
19986         Likewise.
19987         * tests/test-uname.c (uname): Likewise.
19988         * tests/test-unlink.c (unlink): Likewise.
19989         * tests/test-unlinkat.c (unlinkat): Likewise.
19990         * tests/test-unsetenv.c (unsetenv): Likewise.
19991         * tests/test-usleep.c (usleep): Likewise.
19992         * tests/test-utimensat.c (utimensat): Likewise.
19993         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
19994         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
19995         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
19996         * tests/test-vprintf-posix.c (vprintf): Likewise.
19997         * tests/test-vsnprintf.c (vsnprintf): Likewise.
19998         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
19999         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20000         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20001         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20002         * tests/test-wcwidth.c (wcwidth): Likewise.
20003
20004         build: pull in conditional headers during GNULIB_POSIXCHECK
20005         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20006         definitions from any conditionally-included headers.
20007         * lib/stdlib.in.h (includes): Likewise.
20008         * lib/unistd.in.h (includes): Likewise.
20009
20010 2009-12-24  Bruno Haible  <bruno@clisp.org>
20011
20012         * tests/test-argv-iter.c: Include header file being tested immediately
20013         after config.h.
20014         * tests/test-base64.c: Likewise.
20015         * tests/test-flock.c: Likewise.
20016         * tests/test-fsync.c: Likewise.
20017         * tests/test-getdate.c: Likewise.
20018         * tests/test-getndelim2.c: Likewise.
20019         * tests/test-isfinite.c: Likewise.
20020         * tests/test-isinf.c: Likewise.
20021         * tests/test-strerror.c: Likewise.
20022         * tests/test-strsignal.c: Likewise.
20023
20024 2009-12-23  Eric Blake  <ebb9@byu.net>
20025
20026         unistd: work around cygwin bug
20027         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20028         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20029         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20030
20031 2009-12-23  Bruno Haible  <bruno@clisp.org>
20032
20033         localename: More tests.
20034         * tests/test-localename.c (SIZEOF): New macro.
20035         (categories): New variable.
20036         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20037         test_locale_name_default): Add test w.r.t. thread locale.
20038         (test_locale_name_thread): New function.
20039         (main): Invoke it.
20040
20041         localename: Make aware of thread locale.
20042         * lib/localename.h (gl_locale_name_thread): New declaration.
20043         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20044         behaviour with respect to thread locale.
20045         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20046         <langinfo.h>, glthread/lock.h.
20047         (SIZE_BITS): New macro.
20048         (string_hash): New function.
20049         (struct hash_node): New type.
20050         (HASH_TABLE_SIZE): New macro.
20051         (struniq_hash_table, struniq_lock): New variables.
20052         (struniq): New function.
20053         (gl_locale_name_thread): New function.
20054         (gl_locale_name): Invoke it.
20055         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20056         * modules/localename (Depends-on): Add lock.
20057         Reported by Mike Gran <spk121@yahoo.com>.
20058
20059 2009-12-23  Eric Blake  <ebb9@byu.net>
20060
20061         va-args: new module
20062         * modules/va-args: New file.
20063         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20064         * MODULES.html.sh (Core language properties): Mention it.
20065
20066         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20067         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20068         named alias for __attribute__((__unused__)).
20069         * lib/chown.c: Update client.
20070         * lib/fchmodat.c: Likewise.
20071         * lib/fts.c: Likewise.
20072         * lib/getdate.y: Likewise.
20073         * lib/getgroups.c: Likewise.
20074         * lib/getopt.c: Likewise.
20075         * lib/getugroups.c: Likewise.
20076         * lib/mkdir.c: Likewise.
20077         * lib/mkfifo.c: Likewise.
20078         * lib/mkfifoat.c: Likewise.
20079         * lib/mknod.c: Likewise.
20080         * lib/mknodat.c: Likewise.
20081         * lib/readlink.c: Likewise.
20082         * lib/se-context.in.h: Likewise.
20083         * lib/se-selinux.in.h: Likewise.
20084         * lib/sockets.c: Likewise.
20085         * lib/symlink.c: Likewise.
20086         * lib/symlinkat.c: Likewise.
20087         * lib/unicodeio.c: Likewise.
20088         * lib/unistr.h: Likewise.
20089         * tests/test-areadlink.c: Likewise.
20090         * tests/test-areadlinkat.c: Likewise.
20091         * tests/test-filenamecat.c: Likewise.
20092         * tests/test-fseeko.c: Likewise.
20093         * tests/test-ftello.c: Likewise.
20094         * tests/test-getdate.c: Likewise.
20095         * tests/test-getgroups.c: Likewise.
20096         * tests/test-gethostname.c: Likewise.
20097         * tests/test-quotearg.c: Likewise.
20098         * tests/test-version-etc.c: Likewise.
20099         * tests/test-xalloc-die.c: Likewise.
20100         * tests/test-xfprintf-posix.c: Likewise.
20101         * tests/test-xprintf-posix.c: Likewise.
20102         * tests/test-xvasprintf.c: Likewise.
20103
20104         tests: avoid compiler warnings
20105         * tests/test-fcntl.c (main): Delete unused parameters.
20106         * tests/test-freopen-safer.c (main): Likewise.
20107         * tests/test-xalloc-die.c (main): Mark unused parameters.
20108         * tests/test-fseeko.c (main): Likewise.
20109         * tests/test-ftello.c (main): Likewise.
20110         * tests/test-nanosleep.c (main): Avoid declaration warning.
20111         * tests/test-sleep.c (main): Likewise.
20112         * tests/test-unsetenv.c (main): Silence warning about string
20113         literal.
20114         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20115
20116 2009-12-23  Bruno Haible  <bruno@clisp.org>
20117
20118         * tests/test-localename.c (test_locale_name): New function, extracted
20119         from main. Also test mixed situations.
20120         (test_locale_name_posix, test_locale_name_environ,
20121         test_locale_name_default): New functions.
20122         (main): Invoke them all.
20123         * modules/localename-tests (configure.ac): Test for newlocale.
20124
20125 2009-12-23  Bruno Haible  <bruno@clisp.org>
20126
20127         unistd: Ensure getcwd gets declared before being overridden.
20128         * lib/unistd.in.h: Conditionally include <io.h>.
20129
20130 2009-12-22  Bruno Haible  <bruno@clisp.org>
20131
20132         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20133         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20134         (gl_WCHAR_H): Invoke it.
20135         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20136         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20137         Reported by Karl Berry <karl@freefriends.org>.
20138
20139 2009-12-22  Eric Blake  <ebb9@byu.net>
20140
20141         math, unistd: avoid redundant includes
20142         * lib/math.in.h (isnan): No need to re-include <math.h>.
20143         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20144
20145         getsubopt: work around cygwin bug
20146         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20147         avoid conflicting with system getsubopt.
20148         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20149         bug.
20150
20151         getopt: synchronize from glibc
20152         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20153         parameter order.  Adjust all callers.
20154         (_getopt_internal_r, main): Adjust quoting in error messages.
20155         Drop considerations for outdated POSIX 1003.2 error message.
20156         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20157         callers.
20158         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20159
20160         test-getopt: test stderr behavior
20161         * modules/getopt-posix-tests (Depends-on): Add dup2.
20162         * tests/test-getopt.c (ASSERT): Avoid stderr.
20163         (main): Move stderr to a temporary file.
20164         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20165         Instead, add parameter to inform caller if output occurred.
20166         (test_getopt): Adjust all existing tests to expect silence, and
20167         add new tests of leading ":".
20168         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20169         glibc shortcomings with leading "-:" or "+:" in optstring.
20170         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20171         Likewise.
20172         * doc/posix-functions/getopt.texi (getopt): Likewise.
20173
20174         test-getopt: enhance test
20175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20176         supports optind=0.
20177         * tests/test-getopt.c (OPTIND_MIN): Move...
20178         * tests/test-getopt.h (OPTIND_MIN): ...here.
20179         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20180         Require that optind=0 works, since modern BSD supports it in
20181         addition to optreset, and since coreutils expects it.
20182         (test_getopt_long_only): New test.
20183         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20184         glibc shortcomings with 'W;', and enforcement of optind=0.
20185         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20186         Likewise.
20187
20188 2009-12-21  Bruno Haible  <bruno@clisp.org>
20189
20190         localename: Improvements for MacOS X and Cygwin.
20191         * lib/localename.h (gl_locale_name_environ): New declaration.
20192         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20193         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20194         (gl_locale_name_posix): Invoke it.
20195         (gl_locale_name_default): Add comments. Use Windows native API also on
20196         Cygwin.
20197
20198 2009-12-21  Bruno Haible  <bruno@clisp.org>
20199
20200         Update list of Win32 locale ids.
20201         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20202         (LANG_SAMI): Renamed from LANG_SAAMI.
20203         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20204         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20205         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
20206         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
20207         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
20208         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
20209         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
20210         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
20211         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
20212         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
20213         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
20214         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
20215         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
20216         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
20217         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
20218         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
20219         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
20220         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
20221         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
20222         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
20223         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
20224         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
20225         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
20226         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
20227         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
20228         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
20229         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
20230         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
20231         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
20232         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
20233         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
20234         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
20235         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
20236         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
20237         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
20238         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
20239         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
20240         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
20241         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
20242         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
20243         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
20244         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
20245         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
20246         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
20247         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
20248         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
20249         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
20250         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
20251         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
20252         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
20253         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
20254         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
20255         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
20256         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
20257         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
20258         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
20259         Add more languages and countries for Sami, Sorbian. Add more countries
20260         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
20261         for Pashto. Change country for Syriac, Tswana.
20262
20263 2009-12-21  Eric Blake  <ebb9@byu.net>
20264
20265         test-utimens: avoid spurious failure
20266         * tests/test-chown.h (nap): Factor...
20267         * tests/nap.h: ...into new file.
20268         * tests/test-lchown.h (nap): Avoid duplication.
20269         * tests/test-utimens-common.h (nap): Use shared implementation,
20270         necessary on file systems with 1-second resolution.
20271         * modules/chown-tests (Files): Include new file.
20272         * modules/fdutimensat-tests (Files): Likewise.
20273         * modules/futimens-tests (Files): Likewise.
20274         * modules/lchown-tests (Files): Likewise.
20275         * modules/openat-tests (Files): Likewise.
20276         * modules/utimens-tests (Files): Likewise.
20277         * modules/utimensat-tests (Files): Likewise.
20278
20279 2009-12-19  Eric Blake  <ebb9@byu.net>
20280
20281         futimens, utimensat: work around Linux bug
20282         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
20283         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20284         * lib/utimensat.c (rpl_utimensat): Work around it.
20285         * lib/futimens.c (rpl_futimens): Adjust comment.
20286
20287         utimens: work around Linux ctime bug
20288         * lib/utimens.c (detect_ctime_bug): New helper function.
20289         (update_timespec): Differentiate between workaround needed for
20290         this bug vs. what is needed for systems that lack utimensat.
20291         (fdutimens, lutimens): Work around bug.
20292
20293         utimens: check for ctime update
20294         * tests/test-utimens-common.h (check_ctime): Define.
20295         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
20296         * tests/test-futimens.h (test_futimens): Likewise.
20297         * tests/test-lutimens.h (test_lutimens): Likewise.
20298         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20299         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
20300
20301 2009-12-19  Bruno Haible  <bruno@clisp.org>
20302
20303         dprintf-posix: Check against memory leak fixed on 2009-12-15.
20304         * tests/test-dprintf-posix2.sh: New file.
20305         * tests/test-dprintf-posix2.c: New file.
20306         * modules/dprintf-posix-tests (Files): Add them.
20307         (configure.ac): Check for getrlimit and setrlimit.
20308         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20309
20310 2009-12-19  Bruno Haible  <bruno@clisp.org>
20311
20312         fprintf-posix: Check against memory leak fixed on 2009-12-15.
20313         * tests/test-fprintf-posix3.sh: New file.
20314         * tests/test-fprintf-posix3.c: New file.
20315         * modules/fprintf-posix-tests (Files): Add them.
20316         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
20317
20318 2009-12-19  Eric Blake  <ebb9@byu.net>
20319
20320         dirfd: fix prototype
20321         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
20322         * lib/dirfd.c (dirfd): Likewise.
20323
20324         canonicalize: reduce memory usage
20325         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
20326         allocation to size.
20327         Reported by Solar Designer <solar@openwall.com>.
20328
20329 2009-12-19  Bruno Haible  <bruno@clisp.org>
20330
20331         New module attribute 'Applicability'.
20332         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
20333         * gnulib-tool: New option --extract-applicability.
20334         (func_usage): Document it.
20335         (sed_extract_prog): Recognize it.
20336         (func_get_applicability): New function.
20337         (func_import): Generalize handling of 'link-warning' module.
20338         * modules/link-warning (Applicability): New section.
20339         * modules/arg-nonnull (Applicability): New section.
20340         Repoted by Simon Josefsson <simon@josefsson.org>.
20341
20342 2009-12-19  Bruno Haible  <bruno@clisp.org>
20343
20344         fflush: tweak
20345         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
20346         * lib/fseeko.c (rpl_fseeko): Likewise.
20347
20348 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
20349
20350         * lib/gl_list.h: Fix typo in comment.
20351
20352 2009-12-16  Eric Blake  <ebb9@byu.net>
20353
20354         fcntl: use to simplify other modules
20355         * modules/cloexec (Depends-on): Add fcntl.
20356         * modules/fchdir (Depends-on): Likewise.
20357         * modules/fd-safer-flag (Depends-on): Likewise.
20358         * modules/unistd-safer (Depends-on): Likewise.
20359         * modules/dup3 (configure.ac): Set module indicator.
20360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
20361         missing.
20362         * lib/fchdir.c (_gl_register_dup): Fix comment.
20363         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
20364         * lib/dup-safer.c (dup_safer): Likewise.
20365         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
20366         * lib/dup3.c (dup3): Likewise.
20367         * tests/test-fchdir.c (main): Enhance test.
20368         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
20369
20370         fcntl: port portions of fcntl to mingw
20371         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
20372         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
20373         replacement for mingw.
20374         * modules/fcntl (Description): Update.
20375         (Depends-on): Add dup2.
20376         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
20377         * modules/fcntl-h (Makefile.am): Substitute it.
20378         * lib/fcntl.in.h (fcntl): Update declaration.
20379         (F_DUPFD, F_GETFD): New macros, when needed.
20380         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
20381         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
20382         * tests/test-fcntl.c (check_flags, main): Enhance test for items
20383         we now guarantee.
20384
20385         fcntl: work around cygwin bug in F_DUPFD
20386         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
20387         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
20388         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
20389         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
20390         * doc/posix-functions/fcntl.texi (fcntl): Document it.
20391
20392         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
20393         * modules/fcntl (Files): List new files.
20394         (configure.ac): Run a test.
20395         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
20396         * lib/fcntl.c (rpl_fcntl): Likewise.
20397         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
20398         (gl_FCNTL_H): Always replace fcntl.h.
20399         * modules/fcntl-h (Makefile.am): Substitute witnesses.
20400         * lib/fcntl.in.h (fcntl): Declare replacement.
20401         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
20402         needed, plus a witness.
20403         * doc/posix-functions/fcntl.texi (fcntl): Document this.
20404         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
20405         * tests/test-fcntl.c: New file.
20406         * modules/fcntl-tests: Likewise.
20407
20408         binary-io: avoid potential compilation warning
20409         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
20410         directives.
20411
20412         fflush: avoid compilation error on NetBSD
20413         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
20414         between off_t and fpos_t, since the latter is sometimes a struct.
20415         * lib/fseeko.c (rpl_fseeko): Likewise.
20416         Reported by Alexander Nasonov <alnsn@yandex.ru>.
20417
20418 2009-12-15  Eric Blake  <ebb9@byu.net>
20419
20420         fcntl-h, stdio, sys_ioctl: fix declarations
20421         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
20422         function must not take arguments.
20423         * lib/sys_ioctl.in.h (ioctl): Likewise.
20424         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
20425         (open): Add a link warning.
20426
20427 2009-12-15  Jim Meyering  <meyering@redhat.com>
20428
20429         areadlink, areadlink-with-size: relax license to LGPLv2+
20430         * modules/areadlink (License): Relax to LGPLv2+.
20431         * modules/areadlink-with-size (License): Likewise.
20432
20433 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
20434             Bruno Haible  <bruno@clisp.org>
20435
20436         *printf: Fix memory leak.
20437         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
20438         * lib/vfprintf.c (vfprintf): Likewise.
20439         * lib/dprintf.c (dprintf): Likewise.
20440         * lib/vdprintf.c (vdprintf): Likewise.
20441
20442 2009-12-14  Eric Blake  <ebb9@byu.net>
20443
20444         accept4: adjust module dependencies
20445         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
20446
20447         utimens: one more try at avoiding compiler warning
20448         * lib/utimens.c (lutimens): Lower scope of result.
20449
20450 2009-12-13  Bruno Haible  <bruno@clisp.org>
20451
20452         Move the malloc checking from module 'list' to new module 'xlist'.
20453         * modules/xlist: New file.
20454         * lib/gl_xlist.h: New file.
20455         * lib/gl_xlist.c: New file.
20456         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
20457         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
20458         gl_list_add_last, gl_list_add_before, gl_list_add_after,
20459         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
20460         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
20461         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
20462         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
20463         gl_sortedlist_nx_add): New declarations.
20464         (struct gl_list_implementation): Rename and change methods accordingly.
20465         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
20466         (gl_list_nx_create): Renamed from gl_list_create.
20467         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20468         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20469         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20470         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20471         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20472         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20473         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20474         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20475         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
20476         gl_list_create_empty.
20477         (gl_list_nx_create): Renamed from gl_list_create.
20478         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
20479         (gl_list_nx_set_at): Renamed from gl_list_set_at.
20480         (gl_list_nx_add_first): Renamed from gl_list_add_first.
20481         (gl_list_nx_add_last): Renamed from gl_list_add_last.
20482         (gl_list_nx_add_before): Renamed from gl_list_add_before.
20483         (gl_list_nx_add_after): Renamed from gl_list_add_after.
20484         (gl_list_nx_add_at): Renamed from gl_list_add_at.
20485         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
20486         * lib/gl_array_list.c: Don't include xalloc.h.
20487         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
20488         NULL upon out-of-memory.
20489         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
20490         out-of-memory.
20491         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
20492         Change return type to 'int'.
20493         (gl_array_nx_set_at): Renamed from gl_array_set_at.
20494         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20495         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
20496         upon out-of-memory.
20497         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
20498         upon out-of-memory.
20499         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
20500         upon out-of-memory.
20501         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
20502         upon out-of-memory.
20503         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
20504         out-of-memory.
20505         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
20506         Update.
20507         (gl_array_list_implementation): Update.
20508         * lib/gl_carray_list.c: Don't include xalloc.h.
20509         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
20510         Return NULL upon out-of-memory.
20511         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
20512         out-of-memory.
20513         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
20514         Change return type to 'int'.
20515         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
20516         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
20517         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
20518         upon out-of-memory.
20519         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
20520         upon out-of-memory.
20521         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
20522         out-of-memory.
20523         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
20524         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
20525         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
20526         Update.
20527         (gl_carray_list_implementation): Update.
20528         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
20529         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
20530         gl_linked_create_empty. Return NULL upon out-of-memory.
20531         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
20532         out-of-memory.
20533         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
20534         Change return type to 'int'. Return -1 upon out-of-memory.
20535         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
20536         out-of-memory.
20537         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
20538         upon out-of-memory.
20539         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
20540         upon out-of-memory.
20541         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
20542         NULL upon out-of-memory.
20543         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
20544         upon out-of-memory.
20545         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
20546         out-of-memory.
20547         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
20548         Update.
20549         * lib/gl_linked_list.c: Don't include xalloc.h.
20550         (gl_linked_list_implementation): Update.
20551         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
20552         (add_to_bucket): Change return type to 'int'.
20553         (gl_linkedhash_list_implementation): Update.
20554         * lib/gl_anytree_list1.h (free_subtree): New function.
20555         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
20556         gl_tree_create_empty. Return NULL upon out-of-memory.
20557         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
20558         Change return type to 'int'. Return -1 upon out-of-memory.
20559         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
20560         out-of-memory.
20561         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
20562         (gl_tree_remove_node): New function, moved here from
20563         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
20564         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
20565         Update.
20566         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
20567         malloc, not xmalloc. Return NULL upon out-of-memory.
20568         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20569         out-of-memory.
20570         (gl_tree_remove_node_from_tree): New function, extracted from
20571         gl_tree_remove_node.
20572         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20573         upon out-of-memory.
20574         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20575         out-of-memory.
20576         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20577         upon out-of-memory.
20578         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20579         upon out-of-memory.
20580         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20581         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
20582         not xmalloc. Return NULL upon out-of-memory.
20583         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
20584         out-of-memory.
20585         (gl_tree_remove_node_from_tree): New function, extracted from
20586         gl_tree_remove_node.
20587         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
20588         upon out-of-memory.
20589         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
20590         out-of-memory.
20591         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
20592         upon out-of-memory.
20593         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
20594         upon out-of-memory.
20595         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
20596         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
20597         gl_anytree_list1.h before gl_anyavltree_list2.h.
20598         (gl_avltree_list_implementation): Update.
20599         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
20600         gl_anytree_list1.h before gl_anyavltree_list2.h.
20601         (gl_rbtree_list_implementation): Update.
20602         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
20603         Change return type to 'int'. Return -1 upon out-of-memory. Use
20604         __builtin_expect.
20605         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
20606         (gl_avltreehash_list_implementation): Update.
20607         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
20608         (gl_rbtreehash_list_implementation): Update.
20609         * modules/array-list (Depends-on): Remove xalloc.
20610         * modules/carray-list (Depends-on): Likewise.
20611         * modules/linked-list (Depends-on): Likewise.
20612         * modules/linkedhash-list (Depends-on): Likewise.
20613         * modules/avltree-list (Depends-on): Likewise.
20614         * modules/rbtree-list (Depends-on): Likewise.
20615         * modules/avltreehash-list (Depends-on): Likewise.
20616         * modules/rbtreehash-list (Depends-on): Likewise.
20617
20618         * modules/xsublist: New file.
20619         * lib/gl_xsublist.h: New file.
20620         * lib/gl_xsublist.c: New file.
20621         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
20622         (gl_sublist_nx_create): New declaration.
20623         * lib/gl_sublist.c: Don't include xalloc.h.
20624         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
20625         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
20626         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
20627         Change return type to 'int'. Return -1 upon out-of-memory.
20628         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
20629         upon out-of-memory.
20630         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
20631         NULL upon out-of-memory.
20632         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
20633         upon out-of-memory.
20634         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
20635         NULL upon out-of-memory.
20636         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
20637         NULL upon out-of-memory.
20638         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
20639         upon out-of-memory.
20640         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
20641         (gl_sublist_list_implementation): Update.
20642         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
20643         upon out-of-memory.
20644         * modules/sublist (Depends-on): Remove xalloc.
20645
20646         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
20647         * tests/test-carray_list.c: Likewise.
20648         * tests/test-linked_list.c: Likewise.
20649         * tests/test-linkedhash_list.c: Likewise.
20650         * tests/test-avltree_list.c: Likewise.
20651         * tests/test-rbtree_list.c: Likewise.
20652         * tests/test-avltreehash_list.c: Likewise.
20653         * tests/test-rbtreehash_list.c: Likewise.
20654         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
20655         * modules/carray-list-tests (Makefile.am): Likewise.
20656         * modules/linked-list-tests (Makefile.am): Likewise.
20657         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20658         * modules/avltree-list-tests (Makefile.am): Likewise.
20659         * modules/rbtree-list-tests (Makefile.am): Likewise.
20660         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20661         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20662
20663         * NEWS: Mention the changes.
20664
20665         * lib/clean-temp.c: Include gl_xlist.h.
20666         * modules/clean-temp (Depends-on): Add xlist.
20667
20668         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
20669         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
20670
20671         * tests/test-array_oset.c: Include gl_xlist.h.
20672         * modules/array-oset-tests (Depends-on): Add xlist.
20673
20674         Reported by José E. Marchesi <jemarch@gnu.org>.
20675
20676 2009-12-13  Bruno Haible  <bruno@clisp.org>
20677
20678         Move the malloc checking from module 'oset' to new module 'xoset'.
20679         * modules/xoset: New file.
20680         * lib/gl_xoset.h: New file.
20681         * lib/gl_xoset.c: New file.
20682         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
20683         declarations.
20684         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
20685         (struct gl_oset_implementation): Rename and change methods accordingly.
20686         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
20687         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20688         'int'. Mark as __warn_unused_result__.
20689         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
20690         gl_oset_create_empty.
20691         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
20692         'int'.
20693         * lib/gl_array_oset.c: Don't include xalloc.h.
20694         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
20695         malloc, not xmalloc.
20696         (grow): Change return type to 'int'. Don't call xalloc_die.
20697         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
20698         to 'int'.
20699         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
20700         'int'.
20701         (gl_array_oset_implementation): Update.
20702         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
20703         gl_tree_create_empty.
20704         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
20705         'int'.
20706         * lib/gl_avltree_oset.c: Don't include xalloc.h.
20707         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20708         xmalloc.
20709         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20710         not xmalloc.
20711         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20712         xmalloc.
20713         (gl_avltree_oset_implementation): Update.
20714         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
20715         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
20716         xmalloc.
20717         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
20718         not xmalloc.
20719         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
20720         xmalloc.
20721         (gl_rbtree_oset_implementation): Update.
20722         * modules/array-oset (Depends-on): Remove xalloc.
20723         * modules/avltree-oset (Depends-on): Likewise.
20724         * modules/rbtree-oset (Depends-on): Likewise.
20725         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
20726         * tests/test-avltree_oset.c: Likewise.
20727         * tests/test-rbtree_oset.c: Likewise.
20728         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
20729         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
20730         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20731         * NEWS: Mention the change.
20732
20733 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
20734
20735         maint.mk: allow a project to override release-prep commands
20736         * top/maint.mk (alpha, beta, stable): Move release-preparatory
20737         commands into a new rule.
20738         (release-prep): New rule.
20739         (release-prep-hook): New overridable variable.
20740
20741 2009-12-13  Bruno Haible  <bruno@clisp.org>
20742
20743         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
20744
20745 2009-12-13  Jim Meyering  <meyering@redhat.com>
20746
20747         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
20748         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
20749
20750 2009-12-12  Bruno Haible  <bruno@clisp.org>
20751
20752         duplocale: Tweak.
20753         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
20754
20755 2009-12-12  Karl Berry  <karl@gnu.org>
20756
20757         * config/srclist.txt (strtoll.c): tab changes, no more sync.
20758
20759 2009-12-12  Bruno Haible  <bruno@clisp.org>
20760
20761         * m4/po.m4: Undo incorrect untabification.
20762
20763 2009-12-12  Bruno Haible  <bruno@clisp.org>
20764
20765         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
20766         * modules/c-strtod (Depends-on): Add locale.
20767         * modules/c-strtold (Depends-on): Likewise.
20768
20769 2009-12-12  Bruno Haible  <bruno@clisp.org>
20770
20771         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
20772
20773 2009-12-11  Eric Blake  <ebb9@byu.net>
20774
20775         setenv: relax requirement in light of POSIX ruling
20776         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
20777         not NULL.
20778         * tests/test-setenv.c (main): Relax test.
20779         * tests/test-unsetenv.c (main): Likewise.
20780         * doc/posix-functions/setenv.texi (setenv): Document this.
20781         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
20782
20783 2009-12-11  Bruno Haible  <bruno@clisp.org>
20784
20785         New module 'fd-safer-flag'.
20786         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
20787         * lib/dup-safer.c (dup_safer_flag): Remove function.
20788         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
20789         * lib/fd-safer.c (fd_safer_flag): Remove function.
20790         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
20791         * modules/cloexec (configure.ac): Drop indicator macro.
20792         * modules/fd-safer-flag: New file.
20793         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
20794         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
20795         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
20796
20797 2009-12-11  Bruno Haible  <bruno@clisp.org>
20798
20799         Tests for module 'nl_langinfo'.
20800         * modules/nl_langinfo-tests: New file.
20801         * tests/test-nl_langinfo.sh: New file.
20802         * tests/test-nl_langinfo.c: New file.
20803
20804         New module 'nl_langinfo'.
20805         * lib/nl_langinfo.c: New file.
20806         * m4/nl_langinfo.m4: New file.
20807         * modules/nl_langinfo: New file.
20808         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
20809
20810 2009-12-11  Bruno Haible  <bruno@clisp.org>
20811
20812         Tests for module 'langinfo'.
20813         * modules/langinfo-tests: New file.
20814         * tests/test-langinfo.c: New file.
20815
20816         New module 'langinfo'.
20817         * lib/langinfo.in.h: New file.
20818         * m4/langinfo_h.m4: New file.
20819         * modules/langinfo: New file.
20820         * doc/posix-headers/langinfo.texi: Mention the new module.
20821
20822 2009-12-11  Bruno Haible  <bruno@clisp.org>
20823
20824         * lib/config.charset: Untabify.
20825
20826 2009-12-11  Bruno Haible  <bruno@clisp.org>
20827
20828         * modules/unistd-safer (configure.ac): Drop indicator macro.
20829
20830 2009-12-11  Bruno Haible  <bruno@clisp.org>
20831
20832         Move pipe2-safer code to its own file.
20833         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
20834         * lib/pipe-safer.c (pipe2_safer): Remove function.
20835         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
20836         (Makefile.am): Add it to lib_SOURCES.
20837
20838 2009-12-10  Bruno Haible  <bruno@clisp.org>
20839
20840         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
20841
20842 2009-12-10  Bruno Haible  <bruno@clisp.org>
20843
20844         Declare which arguments expect non-NULL values, for GCC and clang.
20845         * build-aux/arg-nonnull.h: New file.
20846         * modules/arg-nonnull: New file.
20847         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
20848         (inet_ntop, inet_pton): Use it.
20849         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
20850         (closedir, dirfd, opendir, scandir, alphasort): Use it.
20851         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
20852         (open, openat): Use it.
20853         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
20854         (fnmatch): Use it.
20855         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
20856         (getopt, getopt_long, getopt_long_only): Use it.
20857         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
20858         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
20859         Use it.
20860         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
20861         (iconv_open): Use it.
20862         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
20863         (strtoimax, strtoumax): Use it.
20864         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
20865         (duplocale): Use it.
20866         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
20867         (frexp, frexpl): Use it.
20868         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
20869         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
20870         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
20871         (tsearch, tfind, tdelete, twalk): Use it.
20872         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
20873         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20874         sigpending): Use it.
20875         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
20876         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20877         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20878         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20879         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20880         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20881         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20882         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20883         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20884         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20885         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20886         Use it.
20887         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
20888         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
20889         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
20890         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
20891         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
20892         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
20893         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
20894         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
20895         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
20896         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
20897         strtoull, unsetenv): Use it.
20898         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
20899         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20900         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20901         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
20902         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
20903         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
20904         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
20905         (strcasecmp, strncasecmp): Use it.
20906         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
20907         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
20908         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
20909         rpl_setsockopt): Use it.
20910         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
20911         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
20912         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
20913         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
20914         (gettimeofday): Use it.
20915         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
20916         (times): Use it.
20917         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
20918         (uname): Use it.
20919         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
20920         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
20921         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
20922         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
20923         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
20924         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
20925         unlinkat, write): Use it.
20926         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
20927         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
20928         * lib/argv-iter.h: Include arg-nonnull.h.
20929         (_ATTRIBUTE_NONNULL_): Remove macro.
20930         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
20931         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
20932         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
20933         optimization.
20934         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
20935         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
20936         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
20937         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
20938         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
20939         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
20940         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
20941         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
20942         * modules/arpa_inet (Depends-on): Add arg-nonnull.
20943         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
20944         * modules/dirent (Depends-on): Add arg-nonnull.
20945         (Makefile.am): Insert arg-nonnull.h into dirent.h.
20946         * modules/fcntl-h (Depends-on): Add arg-nonnull.
20947         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
20948         * modules/fnmatch (Depends-on): Add arg-nonnull.
20949         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
20950         * modules/getopt-posix (Depends-on): Add arg-nonnull.
20951         (Makefile.am): Insert arg-nonnull.h into getopt.h.
20952         * modules/glob (Depends-on): Add arg-nonnull.
20953         (Makefile.am): Insert arg-nonnull.h into glob.h.
20954         * modules/iconv_open (Depends-on): Add arg-nonnull.
20955         (Makefile.am): Insert arg-nonnull.h into iconv.h.
20956         * modules/inttypes (Depends-on): Add arg-nonnull.
20957         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
20958         * modules/locale (Depends-on): Add arg-nonnull.
20959         (Makefile.am): Insert arg-nonnull.h into locale.h.
20960         * modules/math (Depends-on): Add arg-nonnull.
20961         (Makefile.am): Insert arg-nonnull.h into math.h.
20962         * modules/netdb (Depends-on): Add arg-nonnull.
20963         (Makefile.am): Insert arg-nonnull.h into netdb.h.
20964         * modules/search (Depends-on): Add arg-nonnull.
20965         (Makefile.am): Insert arg-nonnull.h into search.h.
20966         * modules/signal (Depends-on): Add arg-nonnull.
20967         (Makefile.am): Insert arg-nonnull.h into signal.h.
20968         * modules/spawn (Depends-on): Add arg-nonnull.
20969         (Makefile.am): Insert arg-nonnull.h into spawn.h.
20970         * modules/stdio (Depends-on): Add arg-nonnull.
20971         (Makefile.am): Insert arg-nonnull.h into stdio.h.
20972         * modules/stdlib (Depends-on): Add arg-nonnull.
20973         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
20974         * modules/string (Depends-on): Add arg-nonnull.
20975         (Makefile.am): Insert arg-nonnull.h into string.h.
20976         * modules/strings (Depends-on): Add arg-nonnull.
20977         (Makefile.am): Insert arg-nonnull.h into strings.h.
20978         * modules/sys_socket (Depends-on): Add arg-nonnull.
20979         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
20980         * modules/sys_stat (Depends-on): Add arg-nonnull.
20981         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
20982         * modules/sys_time (Depends-on): Add arg-nonnull.
20983         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
20984         * modules/sys_times (Depends-on): Add arg-nonnull.
20985         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
20986         * modules/sys_utsname (Depends-on): Add arg-nonnull.
20987         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
20988         * modules/time (Depends-on): Add arg-nonnull.
20989         (Makefile.am): Insert arg-nonnull.h into time.h.
20990         * modules/unistd (Depends-on): Add arg-nonnull.
20991         (Makefile.am): Insert arg-nonnull.h into unistd.h.
20992         * modules/wchar (Depends-on): Add arg-nonnull.
20993         (Makefile.am): Insert arg-nonnull.h into wchar.h.
20994         * modules/argv-iter (Depends-on): Add arg-nonnull.
20995         * tests/test-canonicalize.c (null_ptr): New function.
20996         (main): Use it.
20997         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
20998         (main): Use it.
20999         * tests/test-memmem.c (null_ptr): New function.
21000         (main): Use it.
21001         Reported by Jim Meyering.
21002
21003 2009-12-10  Bruno Haible  <bruno@clisp.org>
21004
21005         Use spaces for indentation, not tabs.
21006         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21007         * m4/*.m4: Untabify.
21008         * build-aux/*.h: Untabify.
21009         * tests/**/*.[hc]: Untabify.
21010         * README: New section "Indent with spaces, not TABs", based on
21011         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21012         * NEWS: Mention the change.
21013
21014 2009-12-10  Bruno Haible  <bruno@clisp.org>
21015
21016         pty test: Fix link error.
21017         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21018         test_pty_LDADD.
21019
21020 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21021
21022         * modules/pty: New file.
21023         * modules/pty-tests: New file.
21024         * m4/pty.m4: New file.
21025         * tests/test-pty.c: New file.
21026         * doc/glibc-headers/pty.texi: Modified.
21027         * doc/glibc-functions/forkpty.texi: Modified.
21028         * doc/glibc-functions/openpty.texi: Modified.
21029
21030 2009-12-10  Bruno Haible  <bruno@clisp.org>
21031
21032         Avoid syntax error in C++ mode.
21033         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21034
21035 2009-12-10  Bruno Haible  <bruno@clisp.org>
21036
21037         Use sed with option -e.
21038         * gnulib-tool (func_version, func_emit_copyright_notice,
21039         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21040         option -e to sed.
21041         * modules/link-warning (Makefile.am): Likewise.
21042
21043 2009-12-10  Jim Meyering  <meyering@redhat.com>
21044
21045         mgetgroups: do not write bytes beyond end of malloc'd buffer
21046         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21047         username, we call getgroups with a one-element-shorter buffer,
21048         but still told it the length was original, max_n_groups.
21049
21050 2009-12-09  Eric Blake  <ebb9@byu.net>
21051
21052         cloexec: relax license
21053         * modules/cloexec (Maintainer): Add myself.
21054         (License): Use LGPL, not GPL.
21055
21056         link-warning: optimize generation
21057         * modules/link-warning (Makefile.am): Reduce process usage.
21058
21059 2009-12-09  Bruno Haible  <bruno@clisp.org>
21060
21061         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21062         workaround was added on 2009-11-17.
21063
21064 2009-12-09  Jim Meyering  <meyering@redhat.com>
21065             Bruno Haible  <bruno@clisp.org>
21066
21067         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21068         * modules/link-warning (Makefile.am): Make the comment-removing sed
21069         command more robust in the face of bootstrap-prepended comment lines.
21070
21071 2009-12-09  Bruno Haible  <bruno@clisp.org>
21072
21073         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21074         most one group.
21075
21076 2009-12-09  Simon Josefsson <simon@josefsson.org>
21077             Bruno Haible  <bruno@clisp.org>
21078
21079         * build-aux/link-warning.h: Add copyright notice.
21080         * modules/link-warning (Makefile.am): Generate link-warning.h from
21081         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21082         * NEWS: Mention change in link-warning module.
21083         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21084         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21085         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21086         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21087         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21088         * modules/math (Makefile.am): Add dependency to math.h.
21089         * modules/search (Makefile.am): Add dependency to search.h.
21090         * modules/signal (Makefile.am): Add dependency to signal.h.
21091         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21092         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21093         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21094         * modules/string (Makefile.am): Add dependency to string.h.
21095         * modules/strings (Makefile.am): Add dependency to strings.h.
21096         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21097         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21098         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21099         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21100         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21101         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21102         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21103         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21104         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21105
21106 2009-12-09  Bruno Haible  <bruno@clisp.org>
21107
21108         fchdir: Optimize away rpl_fstat when possible.
21109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21110         REPLACE_OPEN_DIRECTORY.
21111         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21112
21113 2009-12-09  Bruno Haible  <bruno@clisp.org>
21114
21115         * lib/fchdir.c: Update comment.
21116
21117 2009-12-09  Bruno Haible  <bruno@clisp.org>
21118
21119         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21120
21121 2009-12-08  Eric Blake  <ebb9@byu.net>
21122
21123         fchdir: avoid memory leak on re-registration.
21124         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21125
21126 2009-12-08  Jim Meyering  <meyering@redhat.com>
21127
21128         init.sh: avoid Solaris 10 /bin/sh portability problem
21129         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21130         sourced script:
21131           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21132           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21133           bar
21134         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21135         and two tests used that idiom.
21136         * tests/init.sh: Update suggested usage comments.
21137         (path_prepend_): New function, to be used in place
21138         of the --src-path=DIR option.
21139         (setup_): Move PATH-prepending code into path_prepend_.
21140         * tests/test-pread.sh: Adapt to new usage.
21141         * tests/test-xalloc-die.sh: Likewise.
21142
21143 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21144
21145         * doc/gnulib.texi (Glibc pty.h): Add.
21146         * doc/glibc-functions/forkpty.texi: Add.
21147         * doc/glibc-functions/openpty.texi: Add.
21148         Suggested by Bruno Haible.
21149
21150 2009-12-08  Eric Blake  <ebb9@byu.net>
21151
21152         fchdir: fix logic bugs
21153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21154         * tests/test-fchdir.c (main): Enhance test.
21155         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21156         is in use.
21157
21158         dup2: fix logic bugs
21159         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21160         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21161         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21162         exists.
21163         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21164
21165 2009-12-07  Eric Blake  <ebb9@byu.net>
21166
21167         unlink: fix m4 detection
21168         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21169
21170         unistd-safer: add unit test
21171         * modules/unistd-safer-tests: New file.
21172         * tests/test-dup-safer.c: Likewise.
21173         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21174         * tests/test-dup2.c (setmode): Likewise.
21175         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21176
21177         cloexec: preserve text vs. binary across dup_cloexec
21178         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21179         mode.
21180         * modules/dup2-tests (Depends-on): Add binary-io.
21181         * modules/cloexec-tests (Depends-on): Likewise.
21182         * tests/test-dup2.c (setmode, is_mode): New helpers.
21183         (main): Add tests that translation mode is preserved.
21184         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21185         Reported by Bruno Haible.
21186
21187         mgetgroups: reduce duplicate listings
21188         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21189         resulting array.
21190         * tests/test-chown.h (test_chown): Simplify client.
21191         * tests/test-lchown.h (test_lchown): Likewise.
21192
21193 2009-12-06  Bruno Haible  <bruno@clisp.org>
21194
21195         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21196         value.
21197
21198 2009-12-06  Bruno Haible  <bruno@clisp.org>
21199
21200         * lib/progname.c: Include stdio.h, stdlib.h.
21201         (set_program_name): Reject a NULL argument.
21202
21203 2009-12-05  Eric Blake  <ebb9@byu.net>
21204
21205         pipe2-safer: new module
21206         * modules/pipe2-safer: New file.
21207         * lib/unistd-safer.h (pipe2_safer): New prototype.
21208         * lib/unistd--.h (pipe2): New wrapper.
21209         * lib/pipe-safer.c (pipe2_safer): New function.
21210         * modules/pipe (Depends-on): Add pipe2-safer.
21211         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
21212
21213         stdlib-safer: preserve cloexec flag for mkostemp[s]
21214         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
21215         fd_safer_flag.
21216
21217         unistd-safer: allow preservation of cloexec status via flag
21218         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
21219         prototypes.
21220         * lib/dup-safer.c (dup_safer_flag): New function.
21221         * lib/fd-safer.c (fd_safer_flag): Likewise.
21222         * modules/cloexec (configure.ac): Set witness.
21223
21224         test-dup2: enhance test
21225         * modules/dup2-tests (Depends-on): Add cloexec.
21226         * tests/test-dup2.c (main): Enhance test.
21227
21228         cloexec: add dup_cloexec
21229         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
21230         header and comments.
21231         * lib/cloexec.c (set_cloexec_flag): Add comments.
21232         (dup_cloexec): New function, with mingw implementation borrowed
21233         from...
21234         * lib/w32spawn.h (dup_noinherit): ...here.
21235         * modules/execute (Depends-on): Add cloexec.
21236         * modules/pipe (Depends-on): Likewise.
21237         * modules/cloexec (Depends-on): Add dup2.
21238         * modules/cloexec-tests (Files): New file.
21239         * tests/test-cloexec.c: Likewise.
21240
21241         test-xalloc-die: fix test for mingw
21242         * modules/xalloc-die-tests (Files): Add tests/init.sh.
21243         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
21244         directory and .exe suffix off argv[0] output.
21245
21246         test-fseeko: fix test for mingw
21247         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
21248         than undefining fseek, so test will pass on mingw.
21249
21250 2009-12-05  Bruno Haible  <bruno@clisp.org>
21251
21252         * lib/progname.h (set_program_name): Clarify specification.
21253         * lib/progname.c (set_program_name): Likewise.
21254         Reported by Jim Meyering.
21255
21256 2009-12-05  Jim Meyering  <meyering@redhat.com>
21257
21258         maint.mk: backslash-escape parens in default regexp
21259         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
21260         backslash-escape the literal parentheses.
21261
21262         maint.mk: news-date-check: use grep -E
21263         * top/maint.mk (today): Define a Make variable, not a...
21264         (news-date-check): ...shell variable.
21265         (news-date-regexp): Use the Make variable.
21266         Use grep's -E option.  Change the failing diagnostic to mention
21267         the variable, $(news-date-regexp).
21268
21269 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
21270
21271         maintainer-makefile: allow customization of NEWS entry format
21272         * top/maint.mk (news-date-regexp): New overridable variable.
21273         (news-date-check): Use it.
21274
21275 2009-12-04  Eric Blake  <ebb9@byu.net>
21276
21277         mgetgroups: add xgetgroups, and avoid ENOSYS failures
21278         * lib/mgetgroups.h (xgetgroups): New prototype.
21279         * lib/mgetgroups.c (xgetgroups): New wrapper.
21280         (mgetgroups): Handle ENOSYS.
21281         * modules/mgetgroups (Depends-on): Add realloc.
21282         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
21283
21284         mgetgroups: avoid argument promotion issues with -1
21285         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
21286         for invalid gid_t.
21287         * tests/test-chown.h (getegid, test_chown): Likewise.
21288         * tests/test-lchown.h (getegid, test_lchown): Likewise.
21289
21290 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
21291
21292         exclude: Fix header file problems.
21293         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
21294
21295 2009-12-01  Jim Meyering  <meyering@redhat.com>
21296
21297         fts: fts_open: do not let an empty string cause immediate failure
21298         This is required in support of GNU rm, for which the command
21299         "rm A '' B" must process and remove both A and B, in spite of
21300         the empty string argument.
21301         * lib/fts.c (fts_open): Do not let the presence of an empty string
21302         cause fts_open to fail immediately.  Most fts-using tools must be
21303         able to process all arguments, in order, and can be expected to
21304         diagnose such arguments themselves.
21305
21306 2009-11-30  Eric Blake  <ebb9@byu.net>
21307
21308         utimens: fix compilation error
21309         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
21310         Declare variable at right scope.
21311
21312 2009-11-29  Jim Meyering  <meyering@redhat.com>
21313
21314         bootstrap: handle perl-5.11's changed --version output
21315         * build-aux/bootstrap (get_version): Handle perl separately,
21316         since perl-5.11's --version output is different.
21317
21318 2009-11-28  Jim Meyering  <meyering@redhat.com>
21319
21320         userspec: depend on the inttostr module, too
21321         * modules/userspec (Depends-on): Add inttostr.
21322
21323         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
21324         * lib/userspec.c (parse_with_separator): Do not accept a user ID
21325         number of MAXUID when it evaluates to (uid_t) -1.
21326         Likewise for group ID.  Reported by Matt McCutchen in
21327         <http://savannah.gnu.org/bugs/?28113>
21328
21329         userspec: reformat to use spaces, not TABs
21330         * lib/userspec.c: Expand TABs to spaces.
21331         Add Emacs' "indent-tabs-mode: nil" hint.
21332
21333 2009-11-27  Eric Blake  <ebb9@byu.net>
21334
21335         getopt-gnu: flush out another BSD bug
21336         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
21337         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
21338         flush out BSD bug.
21339         * tests/test-getopt.h (test_getopt): End lists with NULL.
21340         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21341         (test_getopt_long_posix): Enhance test.
21342         * modules/getopt-posix-tests (Depends-on): Add stdbool.
21343         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
21344         getopt-gnu.
21345         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21346         Likewise.
21347
21348 2009-11-27  Simon Josefsson  <simon@josefsson.org>
21349
21350         * modules/idpriv-droptemp-tests (Notice): Fix text.
21351
21352 2009-11-27  Jim Meyering  <meyering@redhat.com>
21353
21354         test-xalloc-die: avoid spurious failure due to libtool argv difference
21355         In a libtool-enabled project, this test would fail due to a difference
21356         in the emitted program name, e.g.,
21357         -test-xalloc-die: memory exhausted
21358         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
21359         Use program to avoid that.
21360         * modules/xalloc-die-tests (Depends-on): Add progname.
21361         * tests/test-xalloc-die.c: Include progname.h".
21362         (program_name): Remove decl.
21363         (main): Call set_program_name.
21364         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
21365
21366 2009-11-26  Richard Jones  <rjones@redhat.com>
21367
21368         w32sock: leave win32 error in place.
21369         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
21370
21371 2009-11-26  Eric Blake  <ebb9@byu.net>
21372
21373         init.sh: suggest to use skip_ and fail_ functions in comments
21374         * tests/init.sh: Add a sentence.
21375
21376 2009-11-25  Bruno Haible  <bruno@clisp.org>
21377
21378         init.sh: add documentation in comments
21379         * tests/init.sh: Add some developer and user documentation.
21380
21381 2009-11-26  Jim Meyering  <meyering@redhat.com>
21382
21383         init.sh: accommodate even those who specify bogus srcdir manually
21384         * tests/init.sh: Normally, srcdir is guaranteed by automake and
21385         configure-time tests to be sanitized, so that there is no need to
21386         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
21387         (with no double quotes) suffices.  However, since tests may be
21388         invoked manually, and since you may explicitly set srcdir to the
21389         name of a directory containing spaces, do quote its uses here.
21390         * tests/test-pread.sh: Likewise.
21391         Suggested by Bruno Haible.
21392
21393         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
21394         * tests/test-pread.sh: Write no data into the pipe, because
21395         test-pread actually reads none.  This avoids a diagnostic,
21396         "bash: echo: write error: Broken pipe", that arises in the unusual
21397         event something is ignoring SIGPIPE, and might be interpreted
21398         as some sort of failure.  Reported by Bruno Haible.
21399
21400 2009-11-25  Jim Meyering  <meyering@redhat.com>
21401
21402         test-pread: cover failure with ESPIPE and EINVAL
21403         * tests/test-pread.c (main): Test for failure, too.
21404         * tests/test-pread.sh: Invoke with stdin on a pipe.
21405         Suggested by Eric Blake.
21406
21407         pread: improvement and fix
21408         * modules/pread (Depends-on): Depend on lseek, for portability to
21409         e.g., mingw.  Suggested by Eric Blake.
21410         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
21411
21412         unistd.in.h: correct declaration of pread
21413         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
21414         Reported by Richard W.M. Jones.
21415
21416         test-pread.sh: distribute the test script
21417         * modules/pread-tests (Files): Include test-pread.sh.
21418
21419         test-pread.sh: clean up
21420         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
21421         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
21422         That is unnecessary, since it's always ".".
21423         Suggestion from Eric Blake.
21424
21425         test-pread.sh: make executable
21426         * tests/test-pread.sh: Set executable bit.
21427         Reported by Eric Blake.
21428
21429         correct typo in test-pread.sh
21430         * tests/test-pread.sh: Add #! line.
21431
21432         test pread
21433         * tests/test-pread.c: New file.
21434         * tests/test-pread.sh: Likewise.
21435         * modules/pread-tests: Likewise.
21436
21437         pread: new module
21438         * modules/pread: New file.
21439         * lib/unistd.in.h (pread): Define/declare.
21440         * lib/pread.c (pread): New file.
21441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
21442         * modules/unistd (Makefile.am): Substitute witnesses.
21443         * doc/posix-functions/pread.texi (pread): Update.
21444         * MODULES.html.sh: Add pread.
21445
21446 2009-11-25  Jim Meyering  <meyering@redhat.com>
21447
21448         tests/init.sh: new file to be used via most *.sh tests
21449         * tests/init.sh: New file.
21450
21451 2009-11-25  Eric Blake  <ebb9@byu.net>
21452
21453         utimens: work around older Linux failure with symlinks
21454         * lib/utimens.c (lutimensat_works_really): New variable.
21455         (fdutimens, lutimens): Use it to manage kernels that support
21456         nanosecond times on files, but not on symlinks.
21457         Reported by OndÅ™ej Vašík.
21458
21459         utimes: fix configure grammar
21460         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
21461
21462 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
21463
21464         regex: Fix fastmap for multibyte character ranges.
21465         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
21466         characters when a multibyte character range is included.
21467
21468 2009-11-22  Andy Wingo  <wingo@pobox.com>
21469
21470         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
21471         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
21472
21473 2009-11-24  Bruno Haible  <bruno@clisp.org>
21474
21475         doc: Most *_l functions exist in MacOS X 10.5.
21476         * doc/posix-functions/duplocale.texi: Update platforms list.
21477         * doc/posix-functions/freelocale.texi: Likewise.
21478         * doc/posix-functions/newlocale.texi: Likewise.
21479         * doc/posix-functions/uselocale.texi: Likewise.
21480         * doc/posix-functions/isalnum_l.texi: Likewise.
21481         * doc/posix-functions/isalpha_l.texi: Likewise.
21482         * doc/posix-functions/isblank_l.texi: Likewise.
21483         * doc/posix-functions/iscntrl_l.texi: Likewise.
21484         * doc/posix-functions/isdigit_l.texi: Likewise.
21485         * doc/posix-functions/isgraph_l.texi: Likewise.
21486         * doc/posix-functions/islower_l.texi: Likewise.
21487         * doc/posix-functions/isprint_l.texi: Likewise.
21488         * doc/posix-functions/ispunct_l.texi: Likewise.
21489         * doc/posix-functions/isspace_l.texi: Likewise.
21490         * doc/posix-functions/isupper_l.texi: Likewise.
21491         * doc/posix-functions/iswalnum_l.texi: Likewise.
21492         * doc/posix-functions/iswalpha_l.texi: Likewise.
21493         * doc/posix-functions/iswblank_l.texi: Likewise.
21494         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21495         * doc/posix-functions/iswctype_l.texi: Likewise.
21496         * doc/posix-functions/iswdigit_l.texi: Likewise.
21497         * doc/posix-functions/iswgraph_l.texi: Likewise.
21498         * doc/posix-functions/iswlower_l.texi: Likewise.
21499         * doc/posix-functions/iswprint_l.texi: Likewise.
21500         * doc/posix-functions/iswpunct_l.texi: Likewise.
21501         * doc/posix-functions/iswspace_l.texi: Likewise.
21502         * doc/posix-functions/iswupper_l.texi: Likewise.
21503         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21504         * doc/posix-functions/isxdigit_l.texi: Likewise.
21505         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
21506         * doc/posix-functions/strcasecmp_l.texi: Likewise.
21507         * doc/posix-functions/strcoll_l.texi: Likewise.
21508         * doc/posix-functions/strfmon_l.texi: Likewise.
21509         * doc/posix-functions/strftime_l.texi: Likewise.
21510         * doc/posix-functions/strncasecmp_l.texi: Likewise.
21511         * doc/posix-functions/strxfrm_l.texi: Likewise.
21512         * doc/posix-functions/tolower_l.texi: Likewise.
21513         * doc/posix-functions/toupper_l.texi: Likewise.
21514         * doc/posix-functions/towctrans_l.texi: Likewise.
21515         * doc/posix-functions/towlower_l.texi: Likewise.
21516         * doc/posix-functions/towupper_l.texi: Likewise.
21517         * doc/posix-functions/wcscoll_l.texi: Likewise.
21518         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21519         * doc/posix-functions/wctrans_l.texi: Likewise.
21520         * doc/posix-functions/wctype_l.texi: Likewise.
21521         * doc/glibc-functions/strptime_l.texi: Likewise.
21522         * doc/glibc-functions/strtod_l.texi: Likewise.
21523         * doc/glibc-functions/strtof_l.texi: Likewise.
21524         * doc/glibc-functions/strtol_l.texi: Likewise.
21525         * doc/glibc-functions/strtold_l.texi: Likewise.
21526         * doc/glibc-functions/strtoll_l.texi: Likewise.
21527         * doc/glibc-functions/strtoul_l.texi: Likewise.
21528         * doc/glibc-functions/strtoull_l.texi: Likewise.
21529         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21530         * doc/glibc-functions/wcstod_l.texi: Likewise.
21531         * doc/glibc-functions/wcstof_l.texi: Likewise.
21532         * doc/glibc-functions/wcstol_l.texi: Likewise.
21533         * doc/glibc-functions/wcstold_l.texi: Likewise.
21534         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21535         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21536         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21537
21538 2009-11-24  Bruno Haible  <bruno@clisp.org>
21539
21540         duplocale: Fix logic bug.
21541         * lib/duplocale.c: Don't include <langinfo.h>.
21542         (_NL_LOCALE_NAME): Remove macro.
21543         (rpl_duplocale): Use setlocale instead of nl_langinfo.
21544         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
21545
21546 2009-11-23  Jim Meyering  <meyering@redhat.com>
21547
21548         test-update-copyright: don't hard-code /usr/bin/perl
21549         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
21550         perl to print the current year.  Gilles Espinasse reported that
21551         the replaced use of perl was hard-coded as /usr/bin/perl.
21552
21553 2009-11-23  Bruno Haible  <bruno@clisp.org>
21554
21555         duplocale: Add support for glibc 2.3.x.
21556         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
21557
21558 2009-11-22  Bruno Haible  <bruno@clisp.org>
21559
21560         vasnprintf: Tiny optimization.
21561         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
21562         MacOS X.
21563
21564 2009-11-22  Bruno Haible  <bruno@clisp.org>
21565
21566         Tests for module 'duplocale'.
21567         * modules/duplocale-tests: New file.
21568         * tests/test-duplocale.c: New file.
21569
21570         New module 'duplocale'.
21571         * m4/duplocale.m4: New file.
21572         * lib/locale.in.h (duplocale): New declaration.
21573         * lib/duplocale.c: New file.
21574         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
21575         gl_LOCALE_H_DEFAULTS): New macros.
21576         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
21577         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
21578         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
21579         REPLACE_DUPLOCALE.
21580         * modules/duplocale: New file.
21581         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
21582
21583 2009-11-22  Bruno Haible  <bruno@clisp.org>
21584
21585         * modules/locale-tests (configure.ac): Test for newlocale function.
21586         * tests/test-locale.c: When the system has extended locale functions,
21587         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
21588
21589         locale: Make locale_t available when possible.
21590         * lib/locale.in.h: Include <xlocale.h> when it exists.
21591         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
21592         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
21593         * modules/locale (Depends-on): Add extensions.
21594         (Makefile.am): Also substitute HAVE_XLOCALE_H.
21595         * doc/posix-headers/locale.texi: Document the problem with locale_t.
21596
21597 2009-11-22  Bruno Haible  <bruno@clisp.org>
21598
21599         Add comments.
21600         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
21601         invocation.
21602         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
21603         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21604         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21605
21606 2009-11-22  Bruno Haible  <bruno@clisp.org>
21607
21608         error: account for the possibility of freopen (stdout).
21609         * lib/error.c: Include <unistd.h>.
21610         (flush_stdout): New function, extracted from error and error_at_line.
21611         Determine stdout's fd dynamically.
21612         (error, error_at_line): Invoke flush_stdout.
21613         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
21614         * modules/error (Depends-on): Add unistd.
21615
21616 2009-11-22  Bruno Haible  <bruno@clisp.org>
21617
21618         diffseq: Add comment.
21619         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
21620
21621 2009-11-22  Jim Meyering  <meyering@redhat.com>
21622
21623         c-stack: avoid defining an unused static function
21624         * lib/c-stack.c (find_stack_direction): Do not define this function
21625         when it will not be used.
21626
21627         diffseq: avoid spurious gcc warnings
21628         * lib/diffseq.h (IF_LINT2): Define.
21629         (compareseq): Use it to initialize two members of "part".
21630         This avoids two used-uninitialized warnings.
21631
21632 2009-11-21  Jim Meyering  <meyering@redhat.com>
21633
21634         c-stack: avoid "ignoring return value of `write'" warning
21635         * lib/c-stack.c: Include "ignore-value.h".
21636         (die): Explicitly ignore each write return value.
21637         * modules/c-stack (Depends-on): Add ignore-value.
21638
21639 2009-11-21  Bruno Haible  <bruno@clisp.org>
21640
21641         diffseq: reduce scope of variable 'best'.
21642         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
21643         variable, earlier used for two different purposes.
21644
21645 2009-11-21  Jim Meyering  <meyering@redhat.com>
21646
21647         diffseq: remove useless assignment to "best"
21648         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
21649         assignment.  At that point "best" is already guaranteed to be zero.
21650
21651 2009-11-20  Eric Blake  <ebb9@byu.net>
21652
21653         build: mention ftp redirector in release announcements
21654         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
21655         values that used to come from cfg.mk; mention FTP redirect URL.
21656         * build-aux/announce-gen: Mention the mirror list.
21657         Suggested by Karl Berry.
21658
21659         nanosleep: improve port to mingw
21660         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
21661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
21662         LIB_NANOSLEEP, but only when needed.
21663         * modules/select (Link): Document LIBSOCKET.
21664         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
21665         enough.
21666
21667         nanosleep: work around cygwin bug
21668         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
21669         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
21670         bug.
21671         (getnow): Delete, not needed.
21672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
21673         LIB_CLOCK_GETTIME.
21674         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
21675         clock-time, gettime.
21676         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
21677         bug.
21678         * modules/nanosleep-tests: New test.
21679         * tests/test-nanosleep.c: New file.
21680
21681         sleep: work around cygwin bug
21682         * lib/sleep.c (rpl_sleep): Work around the bug.
21683         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
21684         (gl_PREREQ_SLEEP): Delete unused macro.
21685         * modules/sleep (Depends-on): Add verify.
21686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
21687         * modules/unistd (Makefile.am): Substitute witness.
21688         * lib/unistd.in.h (sleep): Update prototype.
21689         * doc/posix-functions/sleep.texi (sleep): Document the bug.
21690         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
21691         * modules/sleep-tests (Depends-on): Check for alarm.
21692
21693 2009-11-20  Jim Meyering  <meyering@redhat.com>
21694
21695         maint.mk: improve sc_prohibit_magic_number_exit
21696         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
21697         so it does not match uses like System.exit(1).
21698         Add comments showing how to correct all offenders.
21699
21700 2009-11-19  Eric Blake  <ebb9@byu.net>
21701
21702         xalloc-die-tests: add missing library
21703         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
21704
21705         test-xvasprintf: silence compiler warnings
21706         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
21707         empty string from gcc.
21708
21709 2009-11-19  Jim Meyering  <meyering@redhat.com>
21710
21711         xfreopen: new module, from coreutils
21712         * modules/xfreopen: New module.
21713         * lib/xfreopen.c: New file.
21714         * lib/xfreopen.h: New file.
21715         * MODULES.html.sh (File stream based Input/Output"): Add it.
21716
21717 2009-11-19  Eric Blake  <ebb9@byu.net>
21718
21719         manywarnings: depend on warnings
21720         * modules/manywarnings (Depends-on): Add warnings.
21721
21722         build: avoid compiler warnings
21723         * lib/select.c (rpl_select): Delete unused variable.
21724         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
21725
21726 2009-11-18  Eric Blake  <ebb9@byu.net>
21727
21728         tests: avoid false negative with --with-packager
21729         * tests/test-version-etc.sh: Discard packager information.
21730         * tests/test-argp-version-etc-1.sh: Likewise.
21731         Reported by Mike Frysinger.
21732
21733         utimens: fix regression on Solaris
21734         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
21735         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
21736         can only change fd timestamps via futimesat.  Instead, use an
21737         additional witness macro to avoid BSD bug.
21738         Reported by Jim Meyering.
21739
21740 2009-11-17  Eric Blake  <ebb9@byu.net>
21741
21742         usleep: use it to simplify tests
21743         * modules/stat-time-tests (Depends-on): Add usleep.
21744         (configure.ac): Drop usleep check.
21745         * modules/chown-tests (Depends-on, configure.ac): Likewise.
21746         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
21747         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
21748         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
21749         * modules/openat-tests (Depends-on, configure.ac): Likewise.
21750         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
21751         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
21752         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
21753         Likewise.
21754         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
21755         * tests/test-lchown.h (nap): Likewise.
21756         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
21757         * tests/test-stat-time.c (nap): Likewise.
21758         * tests/test-utimens-common.h (nap): Update comments.
21759
21760         usleep: new module
21761         * modules/usleep: New file.
21762         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21763         * lib/usleep.c (usleep): Likewise.
21764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
21765         * modules/unistd (Makefile.am): Substitute witnesses.
21766         * lib/unistd.in.h (usleep): Add declaration.
21767         * doc/pastposix-functions/usleep.texi (usleep): Document this.
21768         * MODULES.html.sh (Date and time): Likewise.
21769         * modules/usleep-tests (Depends-on): New test.
21770         * tests/test-usleep.c: New file.
21771
21772         chown: work around OpenBSD bug
21773         * lib/chown.c (rpl_chown): Work around the bug.
21774         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
21775         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
21776         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
21777         * modules/chown (Depends-on): Add stdbool.
21778         * modules/lchown (Depends-on): Likewise.
21779         * doc/posix-functions/chown.texi (chown): Document the bug.
21780         * doc/posix-functions/lchown.texi (lchown): Likewise.
21781         * tests/test-lchown.h (test_chown): Relax test.
21782
21783         mkstemp: avoid conflict with C++ keyword template
21784         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
21785         * lib/mkostemp.c (mkostemp): Likewise.
21786         * lib/mkostemps.c (mkostemps): Likewise.
21787         * lib/mkstemp.c (mkstemp): Likewise.
21788         * lib/mkstemps.c (mkstemps): Likewise.
21789
21790         xalloc-die-tests: optimize
21791         * tests/test-xalloc-die.sh: Reduce number of processes.
21792
21793 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21794
21795         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
21796         patch from ludo@gnu.org (Ludovic Courtès).
21797
21798 2009-11-17  Jim Meyering  <meyering@redhat.com>
21799
21800         version-etc: use proper license string
21801         * modules/version-etc (License): Use LGPL, not LGPLv3+.
21802         * modules/version-etc-fsf: Likewise.
21803
21804 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21805
21806         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
21807         printed to stdout.  Deal with EOL differences.
21808
21809 2009-11-17  Eric Blake  <ebb9@byu.net>
21810
21811         unsetenv: work around Solaris bug
21812         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
21813         * lib/unsetenv.c (rpl_unsetenv): Work around it.
21814         Reported by Jim Meyering.
21815
21816         vasnprintf: avoid compiler warnings
21817         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
21818         variables.
21819         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
21820
21821 2009-11-17  Simon Josefsson  <simon@josefsson.org>
21822
21823         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
21824         settings since xalloc-die is no longer the self test,
21825         xalloc-die.sh is.
21826
21827 2009-11-17  Jim Meyering  <meyering@redhat.com>
21828
21829         test-xalloc-die.sh: make the code agree with the commit log
21830         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
21831         at the end, just in case you happen to have a test-xalloc-die
21832         program in some other PATH directory.
21833
21834         test-xalloc-die.sh: fix a portability bug
21835         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
21836         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
21837         Otherwise, argv[0] (as often seen in diagnostics) would be too
21838         system-dependent, sometimes with, and sometimes without the leading "./".
21839
21840         version-etc-fsf: relax license to LGPLv3+
21841         * modules/version-etc-fsf (License): Relax license.
21842
21843 2009-11-16  Eric Blake  <ebb9@byu.net>
21844
21845         xalloc-die-tests: avoid printing null pointer
21846         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
21847         shell script.
21848         * tests/test-xalloc-die.c (program_name): Declare.
21849         * tests/test-xalloc-die.sh (tmpfiles): New file.
21850
21851         setenv, unsetenv: work around various bugs
21852         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
21853         (setenv) [HAVE_SETENV]: Work around bugs.
21854         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
21855         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
21856         for bugs.
21857         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
21858         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
21859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
21860         * modules/stdlib (Makefile.am): Update substitutions.
21861         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
21862         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
21863         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21864         * modules/setenv-tests: New test.
21865         * modules/unsetenv-tests: Likewise.
21866         * tests/test-setenv.c: New file.
21867         * tests/test-unsetenv.c: Likewise.
21868
21869 2009-11-16  Jim Meyering  <meyering@redhat.com>
21870
21871         version-etc: relax license to LGPLv3+
21872         * modules/version-etc (License): Relax license.
21873
21874         better AC_REQUIRE expanded-before-required-warning avoidance
21875         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
21876         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
21877         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
21878         which is no longer needed.
21879
21880 2009-11-16  Eric Blake  <ebb9@byu.net>
21881
21882         test-freading: clean up temporary file
21883         * tests/test-freading.c (main): Remove file on success, and use
21884         ASSERT more liberally.
21885         Reported by Jim Meyering.
21886
21887 2009-11-16  Jim Meyering  <meyering@redhat.com>
21888
21889         avoid new AC_REQUIRE expanded-before-required warnings
21890         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
21891         merely using it.
21892         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
21893         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
21894
21895 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21896
21897         * tests/test-xalloc-die.c: New file.
21898         * modules/xalloc-die-tests: New file.
21899         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
21900         XFAIL_TESTS so it can be appended by modules.
21901
21902 2009-11-15  Simon Josefsson  <simon@josefsson.org>
21903
21904         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
21905         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
21906
21907 2009-11-14  Eric Blake  <ebb9@byu.net>
21908
21909         fnmatch: avoid compiler warning
21910         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
21911         to silence compiler warning about mismatch signedness in ?:.
21912         Reported by Robert Millan.
21913
21914         intprops: add double-inclusion guard
21915         * lib/intprops.h: Allow idempotent includes.
21916         Suggested by Bruce Korb.
21917
21918         openat: detect Solaris fchownat bug
21919         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
21920         penalizing glibc chownat when only lchownat is broken.
21921         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
21922         trailing slash bugs.
21923         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
21924         * modules/openat-tests (Files): Include more files.
21925         (Depends-on): Add mgetgroups, sleep, stat-time.
21926         (configure.ac): Add additional checks.
21927         (Makefile.am): Build new test.
21928         * tests/test-fchownat.c: New file.
21929
21930         lchown: detect Solaris and FreeBSD bug
21931         * lib/lchown.c (rpl_lchown): Work around bug.
21932         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
21933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21934         * modules/unistd (Makefile.am): Populate it.
21935         * lib/unistd.in.h (lchown): Update declaration.
21936         * doc/posix-functions/lchown.texi (lchown): Document the bug.
21937         * modules/lchown-tests: New file.
21938         * tests/test-lchown.h (test_lchown): Likewise.
21939         * tests/test-lchown.c (main): Likewise.
21940
21941         chown: detect Solaris and FreeBSD bug
21942         * lib/chown.c (rpl_chown): Work around bug.
21943         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
21944         (gl_PREREQ_CHOWN): Delete.
21945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
21946         * modules/unistd (Makefile.am): Populate it.
21947         * lib/unistd.in.h (chown): Update declaration.
21948         * lib/lchown.c (chown): Update client.
21949         * modules/lchown (Depends-on): Add lstat.
21950         * doc/posix-functions/chown.texi (chown): Document the bug.
21951         * doc/posix-functions/getgroups.texi (getgroups): Document
21952         getgroups pitfall.
21953         * modules/chown-tests: New file.
21954         * tests/test-chown.h (test_chown): Likewise.
21955         * tests/test-chown.c (main): Likewise.
21956
21957 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
21958
21959         gnulib-tool: correctly detect absence of m4 directories
21960         * gnulib-tool: Avoid extra newline on data passed to wc -l.
21961
21962 2009-11-14  Jim Meyering  <meyering@redhat.com>
21963
21964         maint.mk: Prohibit inclusion of "xalloc.h" without use.
21965         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
21966
21967 2009-11-14  John W. Eaton  <jwe@gnu.org>
21968
21969         strftime.h: wrap funtion declaration in extern "C" block
21970         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
21971
21972 2009-11-13  Eric Blake  <ebb9@byu.net>
21973
21974         getgroups: avoid compiler warning
21975         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
21976
21977         getgroups: work around FreeBSD bug
21978         * lib/getgroups.c (rpl_getgroups): Work around the bug.
21979         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
21980         * doc/posix-functions/getgroups.texi (getgroups): Document it.
21981         * tests/test-getgroups.c (main): Fix buffer overrun.
21982
21983         getgroups: avoid compilation failure
21984         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
21985         * modules/getgroups (Depends-on): Add stdint.
21986
21987 2009-11-13  Jim Meyering  <meyering@redhat.com>
21988
21989         test-getgroups: avoid compilation failure
21990         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
21991
21992 2009-11-13  Eric Blake  <ebb9@byu.net>
21993
21994         mgetgroups: new module, taken from coreutils
21995         * modules/mgetgroups: New file.
21996         * lib/mgetgroups.h: Likewise.
21997         * lib/mgetgroups.c (mgetgroups): Likewise.
21998         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
21999         * MODULES.html.sh (Users and groups): Mention it.
22000
22001         getgroups: don't expose GETGROUPS_T to user
22002         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22003         an element at a time if GETGROUPS_T is wrong size.
22004         * lib/getugroups.h (getugroups): Change signature.
22005         * lib/unistd.in.h (getgroups): Likewise.
22006         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22007         signature needs fixing.
22008         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22009         AC_TYPE_GETGROUPS.
22010         * modules/group-member (Depends-on): Add getgroups.
22011         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22012         (group_member): Rely on getgroups replacement.
22013         * lib/getugroups.c (getugroups): Use gid_t.
22014         * tests/test-getgroups.c (main): Likewise.
22015         * NEWS: Mention the signature change.
22016         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22017         problem with signature.
22018         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22019         GETGROUPS_T is still useful for setgroups.
22020
22021         getgroups, getugroups: provide stubs for mingw
22022         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22023         * lib/getugroups.c (getugroups): Likewise.
22024         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22025         function.  Modernize replacement scheme.
22026         (gl_PREREQ_GETGROUPS): Delete.
22027         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22028         * modules/getgroups (configure.ac): Declare witness.
22029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22030         * modules/unistd (Depends-on): Substitute witness.
22031         * lib/unistd.in.h (getgroups): Declare replacement.
22032
22033         getgroups: avoid calling exit
22034         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22035         drop xalloc.
22036         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22037         dependencies.
22038         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22039         exiting, in the rare case of malloc failure.
22040
22041         getgroups: fix logic error
22042         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22043         has more than 20 groups.
22044         * modules/getgroups-tests: New test.
22045         * tests/test-getgroups.c: New file.
22046
22047 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22048
22049         * tests/test-base64.c: Improve.
22050
22051 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22052
22053         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22054         Blake <ebb9@byu.net>.
22055
22056 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22057
22058         * tests/test-xvasprintf.c: Add %s%s related checks.
22059
22060 2009-11-12  Eric Blake  <ebb9@byu.net>
22061
22062         version-etc: match standards.texi style
22063         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22064         and use <> only for URLs.
22065
22066 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22067
22068         fts: do not fail on a submount during traversal
22069         * lib/fts.c (fts_build): Read the stat info again after opening
22070         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22071         Original report at http://bugzilla.redhat.com/501848.
22072
22073 2009-11-12  Jim Meyering  <meyering@redhat.com>
22074
22075         bootstrap: sync from coreutils
22076         * build-aux/bootstrap (bootstrap_epilogue): New function.
22077         Use git_modules_config in one more place.  This make bootstrap's
22078         --gnulib-srcdir option more useful for testing.
22079
22080         bootstrap: generalize autoheader check
22081         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22082         AC_CONFIG_HEADERS.
22083
22084 2009-11-11  Eric Blake  <ebb9@byu.net>
22085
22086         mkfifoat: use new modules for Solaris and BSD bugs
22087         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22088         * lib/mkfifoat.c (mknodat): Split...
22089         * lib/mknodat.c (mknodat): ...into new file.
22090         * modules/mkfifoat (Files): Ship new file.
22091         (Depends-on): Add mkfifo, mknod.
22092         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22093         (Depends-on): Add symlink.
22094         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22095         redundant with test_mkfifo.h.
22096         (do_mkfifoat, do_mknodat): New helpers.
22097
22098         mknod: new module
22099         * modules/mknod: New file.
22100         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22101         * lib/mknod.c (mknod): Likewise.
22102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22103         defaults.
22104         * modules/sys_stat (Makefile.am): Substitute them.
22105         * lib/sys_stat.in.h (mknod): Declare replacement.
22106         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22107         Document it.
22108         * doc/posix-functions/mknod.texi (mknod): Likewise.
22109         * modules/mknod-tests: New test.
22110         * tests/test-mknod.c: Likewise.
22111
22112         mkfifo: new module
22113         * modules/mkfifo: New file.
22114         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22115         * lib/mkfifo.c (mkfifo): Likewise.
22116         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22117         defaults.
22118         * modules/sys_stat (Makefile.am): Substitute them.
22119         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22120         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22121         Document it.
22122         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22123         * modules/mkfifo-tests: New test.
22124         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22125         from test-mkfifoat.c.
22126         * tests/test-mkfifo.c: New file.
22127
22128         readlink: detect FreeBSD bug
22129         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22130         slash on symlink.
22131         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22132         * tests/test-readlink.h (test_readlink): Enhance test.
22133
22134         symlink: detect FreeBSD bug
22135         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22136         slash on symlink.
22137         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22138         * tests/test-symlink.h (test_symlink): Enhance test.
22139
22140 2009-11-10  Eric Blake  <ebb9@byu.net>
22141
22142         link: detect FreeBSD bug
22143         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22144         symlink.
22145         * doc/posix-functions/link.texi (link): Document the bug.
22146         * tests/test-link.h (test_link): Enhance test.
22147         * tests/test-linkat.c (main): Update caller.
22148
22149         unlink, remove: detect FreeBSD bug
22150         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22151         slash on symlink.
22152         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22153         * doc/posix-functions/remove.texi (remove): Likewise.
22154         * tests/test-unlink.h (test_unlink): Enhance test.
22155         * tests/test-remove.c (main): Likewise.
22156
22157 2009-11-09  Eric Blake  <ebb9@byu.net>
22158
22159         rename: detect FreeBSD bug
22160         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22161         slash on symlink.
22162         * modules/renameat-tests (Depends-on): Add filenamecat.
22163         * tests/test-rename.h (test_rename): Allow one more errno.
22164         * tests/test-renameat.c (main): Likewise.
22165         * doc/posix-functions/rename.texi (rename): Document the bug.
22166
22167         open: detect FreeBSD bug
22168         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22169         symlink.
22170         * doc/posix-functions/open.texi (open): Document the bug.
22171         * doc/posix-functions/utimes.texi (utimes): Likewise.
22172         * tests/test-open.h (test_open): Add parameters, and test symlink
22173         handling.
22174         * tests/test-open.c (main): Adjust caller.
22175         * tests/test-fcntl-safer.c (main): Likewise.
22176         * modules/open-tests (Depends-on): Add stdbool, symlink.
22177         * modules/fcntl-safer-tests (Depends-on): Likewise.
22178         * tests/test-openat.c (main): Add test-open tests.
22179
22180         stat: detect FreeBSD bug
22181         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22182         symlink.
22183         * doc/posix-functions/stat.texi (stat): Document the bug.
22184         * tests/test-stat.h (test_stat_func): Add argument.
22185         * tests/test-stat.c (main): Adjust caller.
22186         * tests/test-fstatat.c (main): Likewise.
22187         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22188         Reported by Jim Meyering.
22189
22190 2009-11-09  James Youngman  <jay@gnu.org>
22191
22192         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22193         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22194
22195 2009-11-08  Jim Meyering  <meyering@redhat.com>
22196
22197         utimens: remove invalid futimesat call
22198         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22199         It used the file descriptor of the target file as the DIR_FD
22200         parameter and NULL as the file name.  That caused failure with
22201         errno == EFAULT on FreeBSD-8.0-rc2
22202
22203 2009-11-07  Eric Blake  <ebb9@byu.net>
22204
22205         fflush, freadseek: use fseeko, not fseek
22206         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
22207         (clear_ungetc_buffer): Avoid potential problems on large files.
22208         * lib/freadseek.c (freadseek): Likewise.
22209         * modules/freadseek (Depends-on): Add fseeko.
22210         * modules/fseek (configure.ac): Set a witness.
22211         * tests/test-fflush.c (main): Use fseeko.
22212         * tests/test-fpurge.c (fseek): Disable link warning.
22213         * tests/test-freadable.c (fseek): Likewise.
22214         * tests/test-freading.c (fseek): Likewise.
22215         * tests/test-fseeko.c (fseek): Likewise.
22216         * tests/test-ftell.c (fseek): Likewise.
22217         * tests/test-ftello.c (fseek): Likewise.
22218         * tests/test-fwritable.c (fseek): Likewise.
22219         * tests/test-fwriting.c (fseek): Likewise.
22220
22221 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22222
22223         * modules/memchr (Depends-on): Drop getpagesize dependency.
22224
22225 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22226
22227         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
22228         Reported by Ludovic Courtès.
22229         * build-aux/pmccabe2html: Improve example usage.
22230         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
22231
22232 2009-11-06  Jim Meyering  <meyering@redhat.com>
22233
22234         do-release-commit-and-tag: New module.
22235         Automate the release-commit and tag process.
22236         * build-aux/do-release-commit-and-tag: New script, from coreutils.
22237         * modules/do-release-commit-and-tag: New file.
22238         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22239
22240 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22241
22242         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
22243         because test-select.c uses inet_pton.
22244
22245 2009-11-06  Simon Josefsson  <simon@josefsson.org>
22246
22247         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
22248         GETADDRINFO_LIB.  Bump serial number.
22249         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
22250         Suggested by Eric Blake <ebb9@byu.net>.
22251
22252 2009-11-05  Eric Blake  <ebb9@byu.net>
22253
22254         strtod: detect darwin bug
22255         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
22256         Reported by Leo Davis.
22257
22258         freopen-safer: new module
22259         * modules/freopen-safer: New module.
22260         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
22261         * lib/freopen-safer.c (freopen_safer): New file.
22262         * lib/stdio-safer.h (freopen_safer): New declaration.
22263         * lib/stdio--.h (freopen): New override.
22264         * MODULES.html.sh (File stream based Input/Output): Mention it.
22265         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
22266         freopen-safer module.
22267         * doc/posix-functions/stderr.texi (stderr): Likewise.
22268         * doc/posix-functions/stdin.texi (stdin): Likewise.
22269         * doc/posix-functions/stdout.texi (stdout): Likewise.
22270         * modules/freopen-safer-tests: New test.
22271         * tests/test-reopen-safer.c: New file.
22272
22273 2009-11-05  Jim Meyering  <meyering@redhat.com>
22274
22275         maint.mk: Prohibit inclusion of "close-stream.h" without use.
22276         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22277
22278 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22279
22280         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
22281
22282 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22283
22284         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
22285
22286 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22287
22288         Fix link error.
22289         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22290         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22291
22292 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22293
22294         * tests/test-func.c: Also test value of __func__.
22295
22296 2009-11-05  Simon Josefsson  <simon@josefsson.org>
22297
22298         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
22299         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
22300
22301 2009-11-05  Bruno Haible  <bruno@clisp.org>
22302
22303         Fix link error.
22304         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
22305         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22306         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
22307
22308 2009-11-05  Bruno Haible  <bruno@clisp.org>
22309
22310         Tests for module 'inet_pton'.
22311         * modules/inet_pton-tests: New file.
22312         * tests/test-inet_pton.c: New file.
22313
22314 2009-11-05  Bruno Haible  <bruno@clisp.org>
22315
22316         Tests for module 'inet_ntop'.
22317         * modules/inet_ntop-tests: New file.
22318         * tests/test-inet_ntop.c: New file.
22319
22320 2009-11-04  Eric Blake  <ebb9@byu.net>
22321
22322         stdlib-safer: wrap all mkstemp variants
22323         * modules/mkostemp (configure.ac): Set witness.
22324         * modules/mkostemps (configure.ac): Likewise.
22325         * modules/mkstemps (configure.ac): Likewise.
22326         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
22327         (mkstemps_safer): Wrap more functions.
22328         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
22329         wrapping.
22330         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
22331         (mkstemps_safer): Implement the wrappers.
22332
22333         mkstemps, mkostemps: new modules
22334         * modules/mkostemps: New module.
22335         * modules/mkstemps: Likewise.
22336         * lib/mkostemps.c (mkostemps): New file.
22337         * lib/mkstemps.c (mkstemps): Likewise.
22338         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
22339         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
22340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
22341         * modules/stdlib (Makefile.am): Substitute them.
22342         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
22343         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
22344         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
22345         * doc/gnulib.texi (Glibc stdlib.h): Include them.
22346         * MODULES.html.sh (File system functions): Mention them.
22347
22348         tempname: resync from glibc
22349         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
22350         same values for __GT_FILE as glibc.  Abort even when assertions
22351         are disabled.
22352         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
22353         match its value otherwise.  Allow idempotent inclusion.
22354         * lib/mkdtemp.c (mkdtemp): Adjust caller.
22355         * lib/mkostemp.c (mkostemp): Likewise.
22356         * lib/mkstemp.c (mkstemp): Likewise.
22357         * lib/tmpfile.c (tmpfile): Likewise.
22358         * NEWS: Document this.
22359
22360         utimens: fix use of futimens on older Linux
22361         * lib/utimens.c (fdutimens): Use updated, rather than original,
22362         timespec to avoid bug in older Linux kernel.
22363         Reported by Simon Josefsson.
22364
22365 2009-11-04  Bruno Haible  <bruno@clisp.org>
22366
22367         Make num_processors more flexible and consistent.
22368         * lib/nproc.h (enum nproc_query): New type.
22369         (num_processors): Add a 'query' argument.
22370         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
22371         (num_processors): Add a 'query' argument. Test the value of the
22372         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
22373         mingw, count the number of CPUs available for the current process.
22374         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
22375         Check for sched_getaffinity and sched_getaffinity_np.
22376         * modules/nproc (Depends-on): Add c-ctype, extensions.
22377         * NEWS: Mention the change.
22378
22379 2009-11-03  Bruno Haible  <bruno@clisp.org>
22380
22381         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
22382
22383 2009-11-03  Jim Meyering  <meyering@redhat.com>
22384
22385         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
22386         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
22387         if it is defined.
22388
22389 2009-11-02  Eric Blake  <ebb9@byu.net>
22390
22391         mktime, timegm: share common declaration
22392         * lib/mktime-internal.h: New file.
22393         * lib/mktime.c: Use it rather than open-coding a declaration.
22394         * lib/timegm.c: Likewise.
22395         * modules/mktime (Files): Ship it.
22396         * modules/timegm (Files): Likewise.
22397         Suggested by Bruno Haible.
22398
22399         test-update-copyright: update test to match script changes
22400         * tests/test-update-copyright.sh: Avoid hard-coding perl
22401         location.  Don't update *.bak created by earlier runs.
22402
22403 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22404             Simon Josefsson  <simon@josefsson.org>
22405             Bruno Haible  <bruno@clisp.org>
22406
22407         Fix link error on Solaris 8.
22408         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
22409         also in libnsl. Define also INET_PTON_LIB.
22410         * modules/inet_pton (Link): New section.
22411
22412 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22413             Bruno Haible  <bruno@clisp.org>
22414
22415         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
22416         * modules/inet_ntop (Link): New section.
22417         Reported by Boyan Kasarov <bkasarov@gmail.com>.
22418
22419 2009-11-02  Eric Blake  <ebb9@byu.net>
22420
22421         maint: avoid compiler warnings in m4 macros
22422         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
22423         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
22424
22425 2009-11-02  Simon Josefsson  <simon@josefsson.org>
22426
22427         * m4/pmccabe2html.m4: Remove file.
22428         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
22429         function.  Change maintainer.
22430         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
22431         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
22432         Courtès).
22433
22434 2009-10-31  Eric Blake  <ebb9@byu.net>
22435
22436         fseeko: fix m4 regression
22437         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
22438         regression from 2009-10-27.
22439         Reported by Ralf Wildenhues.
22440
22441 2009-10-31  Jim Meyering  <meyering@redhat.com>
22442
22443         inttostr: aesthetics and improved (compile-time) safety
22444         Define inttype_is_signed rather than inttype_is_unsigned,
22445         since the sole use is via "#if inttype_is_signed".
22446         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
22447         inttype_is_unsigned.
22448         * lib/offtostr.c (inttype_is_signed): Likewise.
22449         * lib/uinttostr.c (inttype_is_signed): Likewise.
22450         * lib/umaxtostr.c (inttype_is_signed): Likewise.
22451         * lib/inttostr.c (inttostr): Use verify to cross-check the
22452         inttype_is_signed value and the signedness of the actual type.
22453         * modules/inttostr (Depends-on): Add verify.
22454
22455 2009-10-30  Eric Blake  <ebb9@byu.net>
22456
22457         build: avoid compiler warnings
22458         * lib/fchmodat.c (lchmod): Mark unused variables.
22459         * lib/getopt.c (_getopt_initialize): Likewise.
22460         * lib/mktime.c (__mktime_internal): Provide prototype.
22461         * lib/inttostr.c (inttostr): Avoid compiler warning even with
22462         older gcc that do not understand #pragma GCC diagnostic.
22463         * lib/uinttostr.c (inttype_is_unsigned): Define.
22464         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
22465
22466 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22467
22468         stat: fix compilation on AIX
22469         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
22470         only see struct stat64.
22471
22472 2009-10-30  Eric Blake  <ebb9@byu.net>
22473
22474         exclude: make more robust
22475         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
22476         rather than masking a coding bug.
22477         Suggested by Bruno Haible.
22478
22479 2009-10-30  Jim Meyering  <meyering@redhat.com>
22480
22481         perl scripts: remove #!/usr/bin/perl in favor of more portable...
22482         Rather than putting #!/usr/bin/perl on the first line,
22483         start with a variant of what's recommended by "man perlrun" that
22484         invokes the first "perl" program from your shell's search path.
22485         * build-aux/gitlog-to-changelog: Replace #!... as above.
22486         Add a "Local Variables" perl mode setting.
22487         Prompted by a patch from Ludovic Courtès.
22488         Improved by Eric Blake.
22489         * build-aux/useless-if-before-free: Likewise.
22490         * build-aux/announce-gen: Likewise.
22491         * build-aux/update-copyright: Likewise.
22492
22493 2009-10-29  Eric Blake  <ebb9@byu.net>
22494
22495         filenamecat-lgpl: adjust clients
22496         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
22497         filenamecat.
22498         * modules/renameat (Depends-on): Likewise.
22499
22500         filenamecat: split into filenamecat-lgpl
22501         * modules/filenamecat-lgpl: New module.
22502         * modules/filenamecat (Files): Move library-safe files into
22503         filenamecat-lgpl.
22504         (Depends-on): Add filenamecat-lgpl.
22505         (configure.ac): Declare witness.
22506         * lib/filenamecat.h (file_name_concat): Only declare when using
22507         GPL module.
22508         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
22509         Move...
22510         * lib/filenamecat-lgpl.c: ...into new file.
22511         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
22512         (gl_FILE_NAME_CONCAT): Use it.
22513         * MODULES.html.sh (File system functions): Mention new module.
22514
22515         argp: avoid memory leak
22516         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
22517         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
22518         base_name, since the latter malloc()s and can call exit().
22519         Leak introduced 2006-07-03.
22520
22521         dirname-lgpl: adjust clients that don't need full dirname
22522         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
22523         * modules/filenamecat (Depends-on): Likewise.
22524         * modules/linkat (Depends-on): Likewise.
22525         * modules/mkancesdirs (Depends-on): Likewise.
22526         * modules/mkdir (Depends-on): Likewise.
22527         * modules/openat (Depends-on): Likewise.
22528         * modules/savewd (Depends-on): Likewise.
22529         * modules/rename (Depends-on): Likewise.
22530         (License): Relax license.
22531         * modules/mkdir-tests (Depends-on): Drop progname.
22532         (Makefile.am): Delete unneeded LDADD.
22533         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
22534
22535         dirname: split into dirname-lgpl
22536         * modules/dirname-lgpl: New module.
22537         * modules/dirname (Files): Move library-safe files into
22538         dirname-lgpl.
22539         (Depends-on): Add dirname-lgpl.
22540         (configure.ac): Declare witness.
22541         * modules/double-slash-root (License): Relax license.
22542         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
22543         module.
22544         * lib/dirname.c (dir_len, mdir_name): Move...
22545         * lib/dirname-lgpl.c: ...into new file.
22546         * lib/basename.c (last_component, base_len): Move...
22547         * lib/basename-lgpl.c: ...into new file.
22548         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
22549         (gl_DIRNAME): Use it.
22550         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
22551         Mention new module.
22552         * modules/dirname-tests (Depends-on): Add progname.
22553         * tests/test-dirname.c (program_name): Delete.
22554
22555         mkdir: make safe for libraries
22556         * modules/mkdir (Depends-on): Drop xalloc.
22557         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
22558         exit.
22559
22560         tests: avoid some compiler warnings
22561         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
22562         literals.
22563         * tests/test-memchr.c (main): Avoid type mismatch.
22564         * tests/test-arpa_inet.c (main): Avoid unused parameters.
22565         * tests/test-base64.c (main): Likewise.
22566         * tests/test-getdelim.c (main): Likewise.
22567         * tests/test-gethostname.c (main): Likewise.
22568         * tests/test-getline.c (main): Likewise.
22569         * tests/test-netinet_in.c (main): Likewise.
22570         * tests/test-select.c (open_server_socket, main): Likewise.
22571         * tests/test-select-stdin.c (main): Likewise.
22572         * tests/test-sockets.c (main): Likewise.
22573         * tests/test-strsignal.c (main): Likewise.
22574         * tests/test-sys_select.c (main): Likewise.
22575         * tests/test-sys_socket.c (main): Likewise.
22576         * tests/test-u64.c (main): Likewise.
22577         * tests/test-xfprintf-posix.c (main): Likewise.
22578         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
22579
22580         sockets: avoid compiler warning
22581         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
22582
22583         maint: detect usage(1) and other suspicious exits
22584         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
22585
22586 2009-10-29  Jim Meyering  <meyering@redhat.com>
22587
22588         timespec: long-to-int truncation could make timespec_cmp malfunction
22589         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
22590         a multiple of 2^32 nanoseconds as no difference.
22591
22592 2009-10-28  Jim Meyering  <meyering@redhat.com>
22593
22594         fprintftime: wrap macro code argument in "do {...} while(0)"
22595         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
22596         cpy macro must be a statement that can be followed by a semicolon.
22597         Now that the else clause contains a comment and is hence longer
22598         than one line, I require curly braces.  That in turn requires
22599         that we wrap this code block in the standard do...while(0).
22600
22601         fprintftime: remove stray semicolon from previous change
22602         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
22603
22604         fprintftime: avoid a warning about ignored fwrite return value
22605         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
22606         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
22607         that is unsafe.
22608         * modules/fprintftime (Depends-on): Add ignore-value.
22609
22610         exclude: avoid an unwarranted warning
22611         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
22612
22613 2009-10-27  Eric Blake  <ebb9@byu.net>
22614
22615         fseek: avoid compilation failure when fflush is replaced
22616         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
22617         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
22618         module is in use.
22619         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22620         module is not in use; since REPLACE_FSEEK worked otherwise.
22621         (GNULIB_FTELLO): Likewise for ftell.
22622         Reported by Ian Beckwith and others.
22623
22624 2009-10-27  Bruno Haible  <bruno@clisp.org>
22625
22626         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
22627         Reported by Jim Meyering.
22628
22629 2009-10-27  Jim Meyering  <jim@meyering.net>
22630             Bruno Haible  <bruno@clisp.org>
22631
22632         Avoid warning despite dropping the return value of fwrite.
22633         * lib/unicodeio.c: Include ignore-value.h.
22634         (fwrite_success_callback): Explicitly ignore fwrite's return value.
22635         * modules/unicodeio (Depends-on): Add ignore-value.
22636
22637 2009-10-26  Eric Blake  <ebb9@byu.net>
22638
22639         areadlinkat: fix fallback path
22640         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
22641         pointer and zero.
22642
22643 2009-10-22  Pádraig Brady  <P@draigBrady.com>
22644
22645         Use a better IO block size for modern systems
22646         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
22647         * lib/md2.c: Likewise.
22648         * lib/md4.c: Likewise.
22649         * lib/md5.c: Likewise.
22650         * lib/sha1.c: Likewise.
22651         * lib/sha256.c: Likewise.
22652         * lib/sha512.c: Likewise.
22653
22654 2009-10-22  Eric Blake  <ebb9@byu.net>
22655
22656         tests: avoid several compiler warnings
22657         * tests/test-getcwd.c (main): Avoid buffer underflow.
22658         * tests/test-getdate.c (main): String literals are not safe with
22659         putenv, so use setenv.  Declare unused argument.
22660         * modules/getdate-tests (Depends-on): Add setenv.
22661         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
22662         problems with string literals in char *.
22663         * tests/test-hash.c (main): Avoid shadowing declaration.
22664         (insert_new): Treat string literals as char const *.
22665         * tests/test-getopt.h (test_getopt): Likewise.
22666         (getopt_loop): Alter types to minimize casting elsewhere.
22667         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
22668         (test_getopt_long_posix): Likewise.
22669         (do_getopt_long): Add wrapper to minimize casting.
22670         * tests/test-atexit.c (clear_temp_file): Use void.
22671         * tests/test-areadlink-with-size.c (main): Declare unused
22672         arguments.
22673         * tests/test-areadlink.c (main): Likewise.
22674         * tests/test-areadlinkat-with-size.c (main): Likewise.
22675         * tests/test-areadlinkat.c (main): Likewise.
22676         * tests/test-canonicalize-lgpl.c (main): Likewise.
22677         * tests/test-canonicalize.c (main): Likewise.
22678         * tests/test-dirent-safer.c (main): Likewise.
22679         * tests/test-dirname.c (main): Likewise.
22680         * tests/test-dup2.c (main): Likewise.
22681         * tests/test-fchdir.c (main): Likewise.
22682         * tests/test-fcntl-h.c (main): Likewise.
22683         * tests/test-fcntl-safer.c (main): Likewise.
22684         * tests/test-fdopendir.c (main): Likewise.
22685         * tests/test-fdutimensat.c (main): Likewise.
22686         * tests/test-fflush.c (main): Likewise.
22687         * tests/test-filenamecat.c (main): Likewise.
22688         * tests/test-filevercmp.c (main): Likewise.
22689         * tests/test-fopen-safer.c (main): Likewise.
22690         * tests/test-fopen.c (main): Likewise.
22691         * tests/test-fpending.c (main): Likewise.
22692         * tests/test-fpurge.c (main): Likewise.
22693         * tests/test-freading.c (main): Likewise.
22694         * tests/test-fstatat.c (main): Likewise.
22695         * tests/test-fsync.c (main): Likewise.
22696         * tests/test-futimens.c (main): Likewise.
22697         * tests/test-getndelim2.c (main): Likewise.
22698         * tests/test-gettimeofday.c (main): Likewise.
22699         * tests/test-getopt.c (main): Likewise.
22700         * tests/test-i-ring.c (main): Likewise.
22701         * tests/test-inttypes.c (main): Likewise.
22702         * tests/test-link.c (main): Likewise.
22703         * tests/test-lstat.c (main): Likewise.
22704         * tests/test-math.c (main): Likewise.
22705         * tests/test-md5.c (main): Likewise.
22706         * tests/test-memchr2.c (main): Likewise.
22707         * tests/test-memrchr.c (main): Likewise.
22708         * tests/test-mkdir.c (main): Likewise.
22709         * tests/test-mkdirat.c (main): Likewise.
22710         * tests/test-mkfifoat.c (main): Likewise.
22711         * tests/test-open.c (main): Likewise.
22712         * tests/test-openat-safer.c (main): Likewise.
22713         * tests/test-openat.c (main): Likewise.
22714         * tests/test-quotearg.c (main): Likewise.
22715         * tests/test-rawmemchr.c (main): Likewise.
22716         * tests/test-readlink.c (main): Likewise.
22717         * tests/test-remove.c (main): Likewise.
22718         * tests/test-rename.c (main): Likewise.
22719         * tests/test-renameat.c (main): Likewise.
22720         * tests/test-rmdir.c (main): Likewise.
22721         * tests/test-sha1.c (main): Likewise.
22722         * tests/test-signal.c (main): Likewise.
22723         * tests/test-sigaction.c (main): Likewise.
22724         * tests/test-stat.c (main): Likewise.
22725         * tests/test-stat-time.c (main): Likewise.
22726         * tests/test-stddef.c (main): Likewise.
22727         * tests/test-stdint.c (main): Likewise.
22728         * tests/test-stdio.c (main): Likewise.
22729         * tests/test-stdlib.c (main): Likewise.
22730         * tests/test-strchrnul.c (main): Likewise.
22731         * tests/test-strerror.c (main): Likewise.
22732         * tests/test-string.c (main): Likewise.
22733         * tests/test-strtod.c (main): Likewise.
22734         * tests/test-strverscmp.c (main): Likewise.
22735         * tests/test-symlink.c (main): Likewise.
22736         * tests/test-symlinkat.c (main): Likewise.
22737         * tests/test-sys_stat.c (main): Likewise.
22738         * tests/test-sys_time.c (main): Likewise.
22739         * tests/test-time.c (main): Likewise.
22740         * tests/test-unistd.c (main): Likewise.
22741         * tests/test-unlink.c (main): Likewise.
22742         * tests/test-unlinkat.c (main): Likewise.
22743         * tests/test-utimens.c (main): Likewise.
22744         * tests/test-utimensat.c (main): Likewise.
22745         * tests/test-version-etc.c (main): Likewise.
22746         * tests/test-wchar.c (main): Likewise.
22747         * tests/test-wctype.c (main): Likewise.
22748         * tests/test-xprintf-posix.c (main): Likewise.
22749         * tests/test-posixtm.c (main): Likewise.
22750         (STREQ): Delete unused macro.
22751         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
22752         shadowed variables.
22753         * tests/test-memchr.c (main): Likewise.
22754
22755 2009-10-21  Eric Blake  <ebb9@byu.net>
22756
22757         areadlinkat: avoid failure on older glibc
22758         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
22759         rather than mis-comparing 0 against FUNC_RESULT of char*.
22760
22761 2009-10-21  Bruno Haible  <bruno@clisp.org>
22762
22763         * modules/stpncpy (License): Relicense under LGPLv2+.
22764         Reported by David Lutterkort <lutter@redhat.com>.
22765
22766 2009-10-20  Eric Blake  <ebb9@byu.net>
22767
22768         utimensat: work around Solaris 9 bug
22769         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
22770         has trailing slash bugs.
22771         * tests/test-lutimens.h (test_lutimens): Enhance test.
22772         * tests/test-utimens.h (test_utimens): Likewise.
22773         * doc/posix-functions/utime.texi (utime): Enhance documentation.
22774         * doc/posix-functions/utimes.texi (utimes): Likewise.
22775         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22776         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
22777         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
22778         * doc/posix-functions/futimens.texi (futimens): Likewise.
22779
22780         fdutimensat: new module
22781         * modules/fdutimensat: New file.
22782         * lib/fdutimensat.c (fdutimensat): Likewise.
22783         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
22784         * MODULES.html.sh (File system functions): Mention module.
22785         * modules/fdutimensat-tests: New test.
22786         * tests/test-fdutimensat.c: Likewise.
22787
22788         doc: regenerate INSTALL
22789         * doc/INSTALL: Reflect recent autoconf update.
22790         * doc/INSTALL.ISO: Likewise.
22791         * doc/INSTALL.UTF-8: Likewise.
22792
22793 2009-10-20  Pádraig Brady  <P@draigBrady.com>
22794
22795         acl: warn if ACL support is not detected
22796         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
22797
22798 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
22799
22800         * lib/nproc.h: Add extern "C" block for C++.
22801
22802 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
22803             Bruno Haible  <bruno@clisp.org>
22804
22805         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
22806         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
22807         * doc/posix-functions/isalpha.texi: Likewise.
22808         * doc/posix-functions/isblank.texi: Likewise.
22809         * doc/posix-functions/iscntrl.texi: Likewise.
22810         * doc/posix-functions/isdigit.texi: Likewise.
22811         * doc/posix-functions/isgraph.texi: Likewise.
22812         * doc/posix-functions/islower.texi: Likewise.
22813         * doc/posix-functions/isprint.texi: Likewise.
22814         * doc/posix-functions/ispunct.texi: Likewise.
22815         * doc/posix-functions/isspace.texi: Likewise.
22816         * doc/posix-functions/isupper.texi: Likewise.
22817         * doc/posix-functions/isxdigit.texi: Likewise.
22818
22819 2009-10-18  Bruno Haible  <bruno@clisp.org>
22820
22821         Tests for module 'isblank'.
22822         * modules/isblank-tests: New file.
22823         * tests/test-isblank.c: New file.
22824
22825         New module 'isblank'.
22826         * lib/isblank.c: New file.
22827         * m4/isblank.m4: New file.
22828         * modules/isblank: New file.
22829         * doc/posix-functions/isblank.texi: Mention the new module.
22830
22831 2009-10-18  Bruno Haible  <bruno@clisp.org>
22832
22833         New module 'ctype'.
22834         * lib/ctype.in.h: New file.
22835         * m4/ctype.m4: New file.
22836         * modules/ctype: New file.
22837         * doc/posix-headers/ctype.texi: Mention the new module.
22838
22839 2009-10-18  Jim Meyering  <meyering@redhat.com>
22840
22841         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
22842         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
22843         right after its initialization, rather than farther down.
22844         Keeping these in close proximity makes it easier to ensure
22845         that each such variable is initialized.  E.g.,
22846
22847             LIB_CLOCK_GETTIME=
22848             AC_SUBST([LIB_CLOCK_GETTIME])
22849
22850         This change also increments these serial numbers.
22851         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
22852         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22854
22855 2009-10-18  Bruno Haible  <bruno@clisp.org>
22856
22857         Don't let environment variables perturb build.
22858         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
22859         (gl_PREREQ_GETHRXTIME): ... not here.
22860
22861 2009-10-18  Bruno Haible  <bruno@clisp.org>
22862
22863         Avoid symlink attack in localcharset module.
22864         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
22865         (O_NOFOLLOW): Define fallback.
22866         (get_charset_aliases): Don't open the file if it is a symbolic link.
22867         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
22868         gl_FCNTL_H.
22869         (gl_FCNTL_H): Require it.
22870         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
22871         * modules/localcharset (Files): Add m4/fcntl_h.m4.
22872         Reported by Fergal Glynn <fglynn@veracode.com>.
22873
22874 2009-10-18  Bruno Haible  <bruno@clisp.org>
22875
22876         Implement nproc for mingw.
22877         * lib/nproc.c: Include <windows.h>
22878         (num_processors): On native Windows platforms, try GetSystemInfo.
22879
22880 2009-10-18  Bruno Haible  <bruno@clisp.org>
22881
22882         Implement nproc for IRIX.
22883         * lib/nproc.c: Include <sys/sysmp.h>.
22884         (num_processors): On IRIX systems, try sysmp.
22885         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
22886
22887 2009-10-18  Bruno Haible  <bruno@clisp.org>
22888
22889         Implement nproc for HP-UX.
22890         * lib/nproc.c: Include <sys/pstat.h>
22891         (num_processors): On HP-UX systems, try pstat_getdynamic.
22892         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
22893         pstat_getdynamic.
22894
22895 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
22896             Bruno Haible  <bruno@clisp.org>
22897
22898         Implement nproc for NetBSD, OpenBSD.
22899         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
22900         (ARRAY_SIZE): New macro.
22901         (num_processors): On BSD systems, try sysctl of HW_NCPU.
22902         * m4/nproc.m4: New file.
22903         * modules/nproc (Files): Add m4/nproc.m4.
22904         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
22905         (Makefile.am): Instead, augment lib_SOURCES.
22906
22907 2009-10-18  Bruno Haible  <bruno@clisp.org>
22908
22909         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
22910         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
22911         sys/param.h.
22912
22913 2009-10-16  Eric Blake  <ebb9@byu.net>
22914
22915         utimensat: new module
22916         * modules/utimensat: New file.
22917         * lib/utimensat.c (utimensat): Likewise.
22918         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22919         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
22920         so we can work around Linux bugs.
22921         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
22922         * modules/sys_stat (Makefile.am): Substitute them.
22923         * lib/sys_stat.in.h (utimensat): Declare it.
22924         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
22925         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22926         * modules/utimensat-tests: New test.
22927         * tests/test-utimensat.c: Likewise.
22928
22929         utimens: let lutimens work on non-symlinks
22930         * lib/utimens.c (lutimens): Fall back to utimens rather than
22931         failing with ENOSYS, when file is not a symlink.
22932         (utimens): Reduce redirection.
22933         * tests/test-lutimens.h (test_lutimens): Update test to cover
22934         non-symlinks.
22935         * tests/test-utimens.h (test_utimens): Update test to cover
22936         symlinks.
22937         * tests/test-utimens.c (main): Update caller.
22938
22939         utimens: cache whether utimensat syscall works
22940         * lib/utimens.c (utimensat_works_really): New cache variable.
22941         (fdutimens, lutimens): Use it to avoid failing syscall.
22942
22943         test-stat-time, test-utimens: improve portability
22944         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
22945         ext4 on alpha, and for cygwin.
22946         * tests/test-utimens-common.h: New file.
22947         (nap): Factor delays into single function.
22948         * tests/test-lutimens.h (test_lutimens): Use new header.
22949         * tests/test-futimens.h (test_futimens): Likewise.
22950         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
22951         timestamps to occur from same machine, as was done previously for
22952         test_utimens.
22953         * modules/utimens-tests (Files): Ship new file.
22954         * modules/futimens-tests (Files): Likewise.
22955         Reported in part by Jim Meyering.
22956
22957         sys_stat: sort replacement declarations
22958         * lib/sys_stat.in.h: Sort declarations.
22959         * lib/futimens.c (futimens): Fix typo.
22960
22961 2009-10-15  Jim Meyering  <meyering@redhat.com>
22962
22963         don't let environment settings perturb build
22964         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
22965         could cause a configure-time and/or build-time malfunction.
22966         Typically, a configure-time function-in-library test is performed
22967         via code like this:
22968
22969           LIB_VAR=
22970           AC_SUBST([LIB_VAR])
22971           prefix_saved_LIBS=$LIBS
22972             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
22973                        [test "$ac_cv_search_FUNC" = "none required" ||
22974                         LIB_VAR=$ac_cv_search_FUNC])
22975           LIBS=$prefix_saved_LIBS
22976
22977         However, in each of the files affected by this change, the LIB_VAR=
22978         initialization was omitted.  Thus, when set in the environment, its
22979         value would propagate into generated Makefiles when FUNC is not found
22980         in LIB_NAME.
22981         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
22982         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
22983         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22984
22985 2009-10-14  Eric Blake  <ebb9@byu.net>
22986
22987         fchdir: avoid infinite recursion in mingw
22988         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
22989         recursing.
22990
22991         test-stat-time: port to mingw
22992         * tests/test-stat-time.c (force_unlink): Return a value.
22993         (test_ctime) [W32]: Fix compilation error.
22994         (nap): Don't call usleep with too large an argument.  Use
22995         force_unlink.
22996         * doc/pastposix-functions/usleep.texi (usleep): Document the
22997         portability issue.
22998
22999 2009-10-13  Jim Meyering  <meyering@redhat.com>
23000
23001         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23002         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23003         * modules/pipe-filter-ii: Likewise.
23004         * modules/sys_socket-tests: Likewise.
23005         * modules/tsearch-tests: Likewise.
23006         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23007         (check): Depend on it.
23008
23009 2009-10-12  Eric Blake  <ebb9@byu.net>
23010
23011         utimens-tests: port to NFS file systems
23012         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23013         comparisons to avoid spurious failures from timestamp drift
23014         between NFS machines.
23015
23016 2009-10-12  Eric Blake  <ebb9@byu.net>
23017
23018         stat-time-tests: minor cleanups
23019         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23020         * tests/test-stat-time.c (nap): Separate assignment from call.
23021         Suggested by Paolo Bonzini and Bruno Haible.
23022
23023         sys_stat: guarantee struct timespec
23024         * lib/sys_stat.in.h (includes): Always include <time.h>
23025         * modules/sys_stat (Depends-on): Add time.
23026         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23027         mode_t permission values.
23028         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23029         get at subsecond timestamps.
23030
23031 2009-10-10  Eric Blake  <ebb9@byu.net>
23032
23033         futimens: new module
23034         * modules/futimens: New file.
23035         * lib/futimens.c (futimens): Likewise.
23036         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23037         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23038         we can work around Linux bugs.
23039         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23040         * modules/sys_stat (Makefile.am): Substitute them.
23041         * lib/sys_stat.in.h (futimens): Declare it.
23042         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23043         * doc/posix-functions/futimens.texi (futimens): Likewise.
23044         * modules/futimens-tests: New test.
23045         * tests/test-futimens.c: Likewise.
23046
23047         utimens: introduce fdutimens
23048         * lib/utimens.h (fdutimens): New prototype.
23049         * lib/utimens.c (gl_futimens): Move guts...
23050         (fdutimens): ...to new interface.
23051         * tests/test-utimens.c (do_fdutimens): Use it.
23052
23053         utimens: add UTIME_NOW and UTIME_OMIT support
23054         * lib/utimens.c (validate_timespec, update_timespec): New helper
23055         functions.
23056         (gl_futimens, lutimens): Use them.
23057         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23058         stdbool, sys_stat.
23059         (Link): Mention resulting library dependency.
23060         * modules/utimecmp (Link): Likewise.
23061         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23062         (Makefile.am): Pick up library dependency.
23063         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23064         definition.
23065         * tests/test-sys_stat.c: Test the definitions.
23066         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23067         * NEWS: Document library dependency.
23068
23069         utimecmp: support symlink timestamps
23070         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23071         hashing when possible.  Use pathconf when available.
23072         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23073         * modules/utimecmp (Depends-on): Add lstat.
23074
23075         utimens: add lutimens interface
23076         * lib/utimens.c (lutimens): New function.
23077         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23078         * lib/utimens.h (lutimens): Declare new interface.
23079         * tests/test-utimens.c (main): Enhance test.
23080         * tests/test-lutimens.h (test_lutimens): New file.
23081         * modules/utimens-tests (Files): Distribute it.
23082         (Depends-on): Add symlink.
23083         (configure.ac): Check for usleep.
23084
23085         utimens: validate futimens usage
23086         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23087         fewer syscalls on failure later on.  Avoid compiler warning on
23088         mingw.
23089         * modules/utimens (Depends-on): Add dup2.
23090
23091         utimens: add test
23092         * modules/utimens-tests: New test.
23093         * tests/test-utimens.h: New file.
23094         * tests/test-futimens.h: Likewise.
23095         * tests/test-utimens.c: Likewise.
23096
23097         doc: mention timestamp portability issues
23098         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23099         instead.
23100         * doc/posix-functions/utime.texi (utime): Likewise.
23101         * doc/posix-functions/utimes.texi (utimes): Likewise.
23102         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23103         instead.
23104         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23105         module.
23106         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23107         Mention weakness with symlink timestamps.
23108         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23109         to utimensat/futimens instead.
23110         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23111
23112         test-dup2: enhance test
23113         * tests/test-dup2.c (main): Also check AT_FDCWD.
23114
23115         test-stat-time: avoid more spurious failures
23116         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23117         xfs; and avoid race if the two timestamps cross quantization edge.
23118
23119         relocatable: prefer 'file system' over 'filesystem'
23120         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23121         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23122         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23123         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23124         * lib/relocatable.c (compute_curr_prefix): Likewise.
23125
23126 2009-10-10  Jim Meyering  <meyering@redhat.com>
23127
23128         stat-time-tests: check for the usleep function
23129         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23130
23131 2009-10-10  Bruno Haible  <bruno@clisp.org>
23132
23133         * modules/xnanosleep: Put the Link section after the Include section.
23134
23135 2009-10-09  Eric Blake  <ebb9@byu.net>
23136
23137         dup2: work around FreeBSD 6.1 bug
23138         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23139         * doc/posix-functions/dup2.texi (dup2): Document it.
23140         Reported by Nelson H. F. Beebe and Jim Meyering.
23141
23142         test-stat-time: port to buggy NFS clients
23143         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23144         (test_ctime): Also skip test if mtime and ctime are skewed.
23145
23146         maint: prefer 'file system' over 'filesystem'
23147         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23148         * doc/posix-functions/lstat.texi (lstat): Likewise.
23149         * lib/file-has-acl.c (file_has_acl): Likewise.
23150         * lib/fwriteerror.c [TEST]: Likewise.
23151         * tests/test-areadlink.h (test_areadlink): Likewise.
23152         * tests/test-areadlinkat-with-size.c (main): Likewise.
23153         * tests/test-areadlinkat.c (main): Likewise.
23154         * tests/test-canonicalize-lgpl.c (main): Likewise.
23155         * tests/test-canonicalize.c (main): Likewise.
23156         * tests/test-fstatat.c (main): Likewise.
23157         * tests/test-linkat.c (main): Likewise.
23158         * tests/test-lstat.h (test_lstat_func): Likewise.
23159         * tests/test-mkdir.h (test_mkdir): Likewise.
23160         * tests/test-readlink.h (test_readlink): Likewise.
23161         * tests/test-remove.c (main): Likewise.
23162         * tests/test-rename.h (test_rename): Likewise.
23163         * tests/test-renameat.c (main): Likewise.
23164         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23165         * tests/test-symlink.h (test_symlink): Likewise.
23166         * tests/test-symlinkat.c (main): Likewise.
23167         * tests/test-unlink.h (test_unlink_func): Likewise.
23168         * tests/test-unlinkat.c (main): Likewise.
23169
23170         maint: make realtime library usage explicit
23171         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23172         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23173         * modules/settime (Link): Likewise.
23174         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23175
23176         test-stat-time: speed up execution
23177         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23178         warning on mingw.
23179         (nap): New helper function.
23180         (prepare_test): Use it to reduce sleep time.
23181         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23182         execution.
23183         * modules/stat-time-tests (configure.ac): Check for usleep.
23184
23185 2009-10-09  Jim Meyering  <meyering@redhat.com>
23186
23187         selinux-h: always use getfilecon wrappers
23188         * lib/getfilecon.c: New file.
23189         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23190         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23191         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23192         (fgetfilecon): Provide a stub.
23193         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23194         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23195         file unconditionally.
23196         When <selinux/selinux.h> is found, arrange to use wrappers.
23197         * modules/selinux-h (Files): Add getfilecon.c.
23198         (Makefile.am): Substitute include-next-related bits
23199         into the now-always-generated selinux/selinux.h file.
23200         * doc/glibc-functions/lgetfilecon.texi: New file.
23201         * doc/glibc-functions/fgetfilecon.texi: New file.
23202         * doc/glibc-functions/getfilecon.texi: New file.
23203         * doc/glibc-functions/getfilecon-desc.texi: New file.
23204         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23205         which to pull in the new files.
23206         * MODULES.html.sh (Misc): Add selinux-h.
23207
23208 2009-10-08  Jim Meyering  <meyering@redhat.com>
23209
23210         unistd: fix comment typo
23211         * lib/unistd.in.h (euidaccess): Fix a comment typo.
23212
23213 2009-10-08  Eric Blake  <ebb9@byu.net>
23214
23215         areadlink: use SIZE_MAX consistently
23216         * modules/areadlink (Depends-on): Add stdint.
23217         * modules/areadlink-with-size (Depends-on): Likewise.
23218         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
23219         gives NULL; drop sys/types, since unistd gives size_t; and add
23220         stdint for SIZE_MAX.
23221         (SIZE_MAX): Rely on headers.
23222         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
23223         and add stdint.
23224         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
23225         (SIZE_MAX): Likewise.
23226         (INITIAL_BUF_SIZE): Turn into enum.
23227         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
23228
23229 2009-10-08  Jim Meyering  <meyering@redhat.com>
23230
23231         areadlinkat: avoid compilation failure
23232         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
23233         Fix typo in comment.
23234
23235 2009-10-07  Eric Blake  <ebb9@byu.net>
23236
23237         areadlinkat-with-size: new module
23238         * modules/areadlinkat-with-size: New module.
23239         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
23240         * lib/areadlink.h (areadlinkat): Declare it.
23241         * MODULES.html.sh (File system functions): Mention it.
23242         * modules/areadlinkat-with-size-tests: New test.
23243         * tests/test-areadlinkat-with-size.c: New file.
23244
23245         xreadlinkat: new module
23246         * modules/xreadlinkat: New module.
23247         * lib/xreadlinkat.c (xreadlinkat): New file.
23248         * lib/xreadlink.h (xreadlinkat): Declare it.
23249         * MODULES.html.sh (File system functions): Mention it.
23250
23251         areadlinkat: new module
23252         * lib/at-func.c (FUNC_FAIL): New define.
23253         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
23254         * modules/areadlinkat: New module.
23255         * lib/linkat.c (areadlinkat): Move...
23256         * lib/areadlinkat.c (areadlinkat): ...to new file.
23257         * lib/areadlink.h (areadlinkat): Declare it.
23258         * modules/linkat (Depends-on): Add areadlinkat.
23259         * MODULES.html.sh (File system functions): Mention it.
23260         * modules/areadlinkat-tests: New test.
23261         * tests/test-areadlinkat.c: New file.
23262
23263         areadlink, areadlink-with-size: add tests
23264         * modules/areadlink-tests: New test.
23265         * modules/areadlink-with-size-tests: Likewise.
23266         * tests/test-areadlink.h: New file.
23267         * tests/test-areadlink.c: Likewise.
23268         * tests/test-areadlink-with-size.c: Likewise.
23269
23270         maint: minor cleanups
23271         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
23272         _UNUSED_PARAMETER_ instead.
23273         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
23274         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
23275         * modules/linkat-tests (Files): Distribute test-link.h.
23276
23277         openat, utimens: whitespace cleanup
23278         * lib/openat.c: Prefer space throughout, rather than mix of 8
23279         spaces vs. tabs.
23280         * lib/at-func.c: Likewise.
23281         * lib/utimens.c: Likewise.
23282
23283         openat: avoid using wrong fd
23284         * lib/openat.c (openat_permissive): Reject user's fd if saving the
23285         working directory chooses same fd.
23286         * lib/at-func.c (AT_FUNC_NAME): Likewise.
23287
23288         mkdir, mkdirat: fix cygwin 1.5.x bug
23289         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
23290         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
23291         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
23292         bug.
23293         (gl_PREREQ_MKDIR): Delete unused macro.
23294         * modules/mkdir (Files): Track file rename.
23295         (configure.ac): Update macro name.
23296         * modules/openat (Depends-on): Add mkdir.
23297         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
23298
23299         mkdir, mkdirat: add tests
23300         * modules/mkdir-tests: New test.
23301         * tests/test-mkdir.h: New file.
23302         * tests/test-mkdir.c: Likewise.
23303         * tests/test-mkdirat.c: Likewise.
23304         * modules/openat-tests (Files): Add new files.
23305         (Makefile.am): Run new test.
23306
23307 2009-10-06  Eric Blake  <ebb9@byu.net>
23308
23309         doc: tweak *at function documentation
23310         * doc/posix-functions/faccessat.texi (faccessat): Mention
23311         known issue with replacement.
23312         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
23313         * doc/posix-functions/linkat.texi (linkat): Likewise.
23314         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
23315         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
23316         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23317         * doc/posix-functions/renameat.texi (renameat): Likewise.
23318         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23319
23320         openat: fix GNU/Hurd bug in unlinkat
23321         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
23322         broken.
23323         * doc/posix-functions/unlink.texi (unlink): Document this.
23324         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
23325
23326         fdopendir: fix GNU/Hurd bug
23327         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
23328         allowing non-directory fds.
23329         * lib/fdopendir.c (rpl_fdopendir): Work around it.
23330         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23331         * modules/dirent (Makefile.am): Substitute it.
23332         * lib/dirent.in.h (fdopendir): Declare replacement.
23333         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
23334         * tests/test-fdopendir.c (main): Test something other than
23335         /dev/null, since on Hurd that behaves like a directory.
23336
23337         test-symlink: port to GNU/Hurd
23338         * tests/test-symlink.h (test_symlink): Relax expected errno.
23339
23340         doc: tweak more cygwin information
23341         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
23342         now compatible with glibc.
23343         * doc/posix-functions/getopt.texi (getopt): Likewise.
23344
23345         getopt-gnu: add another test
23346         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
23347         guarantee behavior relied on by m4.
23348         * tests/test-getopt.c (main): Use it.
23349         * modules/getopt-posix-tests (Depends-on): Add setenv.
23350         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
23351
23352         getopt: fix compilation on darwin
23353         * lib/getopt.in.h (includes): Leave breadcrumbs during system
23354         include.
23355         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
23356         Reported by Ludovic Courtès.
23357
23358 2009-10-06  Bruno Haible  <bruno@clisp.org>
23359
23360         * modules/size_max (Description): Discourage its use.
23361         Reported by Simon Josefsson.
23362
23363 2009-10-06  Jim Meyering  <meyering@redhat.com>
23364
23365         linkat: avoid compilation failure
23366         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
23367
23368 2009-10-05  Eric Blake  <ebb9@byu.net>
23369
23370         linkat: support Linux 2.6.17
23371         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
23372         linkat on Linux, but allow cache variable override.
23373         * lib/linkat.c (rpl_linkat): Define override.
23374         * modules/linkat (Depends-on): Add symlinkat.
23375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
23376         * modules/unistd (Makefile.am): Substitute it.
23377         * lib/unistd.in.h (linkat): Declare replacement.
23378         Reported by Pádraig Brady.
23379
23380         quotearg: port test to systems with C.UTF-8 locale
23381         * tests/test-quotearg.c (struct result_strings): Add another
23382         member, differentiating between C.ASCII and C.UTF-8 handling.
23383         (compare_strings): Add parameter.
23384         (main): Adjust all callers.
23385
23386         getopt: avoid clash with FreeBSD _getopt_internal
23387         * lib/getopt.in.h (_getopt_internal): Override the name.
23388         * lib/getopt_int.h (includes): Pick up any overrides.
23389         Reported by Reuben Thomas.
23390
23391         hash: allow C89 compilation
23392         * lib/hash.c (check_tuning): Move declaration before statement.
23393         Reported by Reuben Thomas.
23394
23395 2009-10-05  Karl Berry  <karl@gnu.org>
23396
23397         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
23398
23399 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
23400             Bruno Haible  <bruno@clisp.org>
23401
23402         * lib/uname.c (uname): Use a table-driven algorithm to compute
23403         Windows NT versions.
23404
23405 2009-10-04  Bruno Haible  <bruno@clisp.org>
23406
23407         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
23408         program_invocation_short_name.
23409         * modules/progname (configure.ac): Test for presence of
23410         program_invocation_short_name.
23411         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23412
23413 2009-10-04  Bruno Haible  <bruno@clisp.org>
23414
23415         * lib/progname.c (set_program_name): Fix comment.
23416         Reported by Jim Meyering.
23417
23418 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23419             Bruno Haible  <bruno@clisp.org>
23420
23421         * lib/uname.c: Include <string.h>.
23422         (uname): Do only one call to GetVersionEx in the common case.
23423
23424 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
23425             Bruno Haible  <bruno@clisp.org>
23426
23427         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
23428         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
23429         (uname): Add support for Windows CE and various non-x86 CPU types.
23430
23431 2009-10-03  Bruno Haible  <bruno@clisp.org>
23432
23433         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
23434         invocation to tests/configure.ac.
23435         Reported by Ian Beckwith <ianb@erislabs.net>.
23436
23437 2009-10-02  Eric Blake  <ebb9@byu.net>
23438
23439         fchdir: avoid compiler warning
23440         * lib/fchdir.c (canonicalize_file_name)
23441         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
23442
23443         test-open: support mingw errno values
23444         * tests/test-open.h (test_open): Relax test.
23445         * tests/test-fopen.h (test_fopen): Likewise.
23446         * tests/test-openat-safer.c (main): Likewise.
23447
23448         open: fix opening directory on mingw
23449         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
23450
23451         test-open: on GNU/Hurd, /dev/null is a directory
23452         * tests/test-fopen.h (main): Rename...
23453         (test_fopen): ...to this.  Use a guaranteed non-directory when
23454         confirming open behavior on trailing slash.
23455         * tests/test-openat-safer.c (main): Likewise.
23456         * tests/test-open.h (main): Likewise....
23457         (test_open): ...to this.
23458         * tests/test-fopen.c (main): Adjust caller.
23459         * tests/test-fopen-safer.c (main): Likewise.
23460         * tests/test-open.c (main): Likewise.
23461         * tests/test-fcntl-safer.c (main): Likewise.
23462         Reported by Samuel Thibault.
23463
23464         rename, fchdir: don't ignore chdir failure
23465         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
23466         * lib/rename.c (rpl_rename) [W32]: Likewise.
23467         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
23468         an empty destination directory if source cannot be renamed,
23469         although there is still possibility for failure.
23470         * doc/posix-functions/rename.texi (rename): Document the race.
23471         Reported by Jim Meyering.
23472
23473         maint: cleanup whitespace in recent commits
23474         * lib/rename.c (rpl_rename): Remove tabs.
23475         * tests/test-link.h (test_link): Likewise.
23476         * lib/fchdir.c (get_name): Likewise.
23477         Reported by Jim Meyering.
23478
23479 2009-10-02  Ben Pfaff  <blp@gnu.org>
23480
23481         relocatable-prog-wrapper: Add missing dependency on
23482         double-slash-root.
23483         * modules/relocatable-prog-wrapper: Add dependency.
23484         Reported by Ian Beckwith <ianb@erislabs.net>.
23485
23486 2009-10-02  Eric Blake  <ebb9@byu.net>
23487
23488         renameat: fix Solaris bugs
23489         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
23490         needed fixing.
23491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
23492         * modules/stdio (Makefile.am): Substitute it.
23493         * lib/stdio.in.h (renameat): Declare replacement.
23494         * lib/renameat.c (rpl_renameat): Implement fix.
23495
23496         renameat: new module
23497         * modules/renameat: New file.
23498         * lib/renameat.c (renameat): Likewise.
23499         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
23500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23501         * modules/stdio (Makefile.am): Substitute them.
23502         * lib/stdio.in.h (renameat): Declare it.
23503         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23504         * doc/posix-functions/renameat.texi (renameat): Likewise.
23505         * modules/renameat-tests: New test.
23506         * tests/test-renameat.c: Likewise.
23507
23508         rename: fix mingw bugs
23509         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
23510         directory overwrite bugs.
23511
23512         rename: fix another cygwin 1.5 bug
23513         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
23514         checks.
23515         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
23516         unnecessary cygwin workarounds.  Also work around bug with moving
23517         full directory onto an empty one.
23518         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
23519
23520         rename-dest-slash: merge into rename module
23521         * modules/rename-dest-slash (Status): Mark obsolete.
23522         (Depends-on): Add rename.
23523         (Files): Let rename do it all.
23524         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
23525         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
23526         * m4/rename-dest-slash.m4: ...so this file can be deleted.
23527         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
23528         * lib/rename.c (rpl_rename): Update comments.
23529
23530         rename: fix cygwin 1.5.x bugs
23531         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
23532         * lib/rename.c (rpl_rename): Work around them.
23533         * modules/rename (Depends-on): Add same-inode.
23534
23535         rename: fix Solaris 10 bug
23536         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23537         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
23538         was the only bug.
23539
23540         rename: fix Solaris 9 bug
23541         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
23542         on non-directory.  Avoid calling exit.
23543         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
23544         strdup.
23545         * modules/rename-tests (Depends-on): Drop lstat.
23546         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
23547         (gl_PREREQ_RENAME): Delete unused macro.
23548
23549         rename-dest-slash: fix NetBSD bug
23550         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
23551         links.
23552         * modules/rename-dest-slash (Depends-on): Add same-inode.
23553
23554         rename-tests: new test, exposes several platform bugs
23555         * modules/rename-tests: New file.
23556         * tests/test-rename.h: Likewise.
23557         * tests/test-rename.c: Likewise.
23558         * doc/posix-functions/rename.texi (rename): Improve documentation,
23559         including bugs that will eventually be fixed in gnulib.
23560
23561 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
23562
23563         * lib/uname.c: Include <stdlib.h>
23564         (uname): Assume version info is available.
23565
23566 2009-10-02  Jim Meyering  <meyering@redhat.com>
23567
23568         gnu-web-doc-update: correct --help output
23569         * build-aux/gnu-web-doc-update: Make --help output relevant.
23570
23571         gnu-web-doc-update: add standard options
23572         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23573
23574         gnu-web-doc-update: New module.
23575         Use this script to automatically update the on-line web documentation
23576         for your GNU project at http://www.gnu.org/software/$pkg/manual/
23577         * modules/gnu-web-doc-update: New file, from coreutils.
23578         * build-aux/gnu-web-doc-update: New script.
23579
23580 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
23581
23582         link: LoadLibrary is not needed.
23583         * lib/link.c: Use GetModuleHandle.
23584
23585 2009-10-01  Eric Blake  <ebb9@byu.net>
23586
23587         getopt: bump serial number
23588         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
23589         change.
23590
23591         tests: tighten link, rmdir, and remove tests
23592         * tests/test-link.h (includes): No need to use <config.h> here.
23593         Clean up if directory hard link was created, otherwise test for
23594         trailing '.'.
23595         * tests/test-linkat.c (main): Simplify.
23596         * tests/test-remove.c (main): Enhance test for trailing '.'.
23597         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23598
23599 2009-10-01  Jim Meyering  <meyering@redhat.com>
23600
23601         maint.mk: requiring "make major" was annoying, for a "minor" release.
23602         What is intended is "stable", to contrast with alpha and beta,
23603         so require "make stable", not "make major".
23604         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
23605         (get_tool_versions): Likewise.
23606         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
23607
23608 2009-09-30  Ben Pfaff  <blp@gnu.org>
23609
23610         Fix broken build of replacement for Windows tmpfile().
23611         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
23612         flags argument added along with the 'mkostemp' module.
23613
23614 2009-09-28  Bruno Haible  <bruno@clisp.org>
23615
23616         Avoid identifier clash with POSIX function 'remove' defined as a macro.
23617         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
23618         to 'remove_elt'.
23619         (gl_list_remove): Update.
23620         * lib/gl_list.c (gl_list_remove): Update.
23621         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
23622         to 'remove_elt'.
23623         (gl_oset_remove): Update.
23624         * lib/gl_list.c (gl_oset_remove): Update.
23625         Reported by Eric Blake.
23626
23627 2009-09-28  Eric Blake  <ebb9@byu.net>
23628
23629         doc: mention yet more cygwin 1.7 status
23630         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
23631         cygwin.
23632         * doc/glibc-functions/execvpe.texi (execvpe): New file.
23633         * doc/gnulib.texi (Glibc unistd.h): Mention it.
23634
23635         argp: fix test failure
23636         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
23637         that are not upper-case.  Pass correct range to tolower.
23638
23639 2009-09-27  Jim Meyering  <meyering@redhat.com>
23640
23641         test-yesno: work around sparc-dash here-document infelicity
23642         Without this change, the literal \177 byte in a here document
23643         would make dash 0.5.5.1-3 access uninitialized memory.
23644         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
23645         Instead, use a marker, "@", and filter through tr to create the desired
23646         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
23647
23648 2009-09-27  Bruno Haible  <bruno@clisp.org>
23649
23650         Disable untested support for new flavours of ACLs on AIX.
23651         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
23652         progress.
23653         * lib/set-mode-acl.c (qset_acl): Likewise.
23654
23655 2008-12-07  Bruno Haible  <bruno@clisp.org>
23656
23657         Add support for new flavours of ACLs on AIX. (Untested.)
23658         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
23659         (file_has_acl): Add support for newer AIX.
23660         * lib/set-mode-acl.c (qset_acl): Likewise.
23661         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
23662         Rainer Tammer <tammer@tammer.net>.
23663
23664 2009-09-26  Eric Blake  <ebb9@byu.net>
23665
23666         argp: fix compilation of getopt
23667         * lib/getopt.in.h (includes): Use different guard than glibc.
23668         Reported by Sergey Poznyakoff.
23669
23670         doc: mention more cygwin 1.7 status
23671         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
23672         bug.
23673         * doc/posix-functions/execl.texi (execl): Likewise.
23674         * doc/posix-functions/execle.texi (execle): Likewise.
23675         * doc/posix-functions/execlp.texi (execlp): Likewise.
23676         * doc/posix-functions/execv.texi (execv): Likewise.
23677         * doc/posix-functions/execve.texi (execve): Likewise.
23678         * doc/posix-functions/execvp.texi (execvp): Likewise.
23679         * doc/glibc-functions/canonicalize_file_name.texi
23680         (canonicalize_file_name): Cygwin 1.7 now provides this.
23681         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
23682         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
23683         on AT_SYMLINK_NOFOLLOW.
23684
23685 2009-09-24  Eric Blake  <ebb9@byu.net>
23686
23687         test-linkat: make test more robust
23688         * tests/test-linkat.c (main): Avoid collision with EEXIST.
23689
23690         getopt: fix inclusion guards for cygwin
23691         * modules/getopt-posix (Depends-on): Add include-next.
23692         (Makefile.am): Substitute more items in replacement header.
23693         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
23694         <getopt.h>.
23695         * lib/getopt.in.h (includes): Use split inclusion guard, and
23696         prefer <getopt.h> over include <unistd.h> when one is present.
23697         (option): Also override name of 'struct option'.
23698
23699         same-inode: revert prior change; it is not yet ready
23700         * NEWS: Undo mention of this change.
23701         * lib/same-inode.h (same-inode.h): Undo tri-state change.
23702         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23703         * lib/cycle-check.c (cycle_check): Likewise.
23704         * lib/same.c (same_name): Likewise.
23705         * lib/at-func2.c (at_func2): Likewise.
23706
23707 2009-09-23  Eric Blake  <ebb9@byu.net>
23708
23709         linkat: new module
23710         * modules/linkat: New file.
23711         * lib/at-func2.c (at_func2): Likewise.
23712         * lib/linkat.c (linkat): Likewise.
23713         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23714         * lib/openat-priv.h (at_func2): Add declaration.
23715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23716         * modules/unistd (Makefile.am): Substitute them.
23717         * lib/unistd.in.h (linkat): Declare it.
23718         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23719         * doc/posix-functions/linkat.texi (linkat): Likewise.
23720         * doc/posix-functions/link.texi (link): Tweak wording.
23721         * tests/test-link.c (main): Move guts...
23722         * tests/test-link.h (test_link): ...into new file.
23723         * modules/linkat-tests: New test.
23724         * tests/test-linkat.c: Likewise.
23725         * modules/link-tests (Files): Ship new file.
23726         (Depends-on): Add stdbool.
23727
23728         dirname: add library-safe mdir_name
23729         * lib/dirname.h (mdir_name): New prototype.
23730         * lib/dirname.c (dir_name): Move guts...
23731         (mdir_name): ...to new function that avoids xalloc_die.
23732
23733         fchdir: another mingw fix
23734         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
23735         * lib/fchdir.c (get_name): New helper method; skips canonicalize
23736         on mingw (where it has not yet been ported), and make it optional
23737         elsewhere.
23738         (_gl_register_fd): Use it.
23739
23740         same-inode: make SAME_INODE tri-state, to port to mingw
23741         * NEWS: Mention this change.
23742         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
23743         st_ino always being 0.
23744         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
23745         * lib/cycle-check.c (cycle_check): Likewise.
23746         * lib/same.c (same_name): Likewise.
23747
23748         lstat: avoid mingw compilation error
23749         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
23750         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
23751         lstat ourselves.
23752         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
23753         was adequate.
23754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
23755         the checks for lstat.
23756         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
23757
23758         link: fix test failure on Solaris 9
23759         * lib/link.c (rpl_link): Don't assume link will catch bogus
23760         trailing slash on source.
23761
23762         test-symlinkat: enhance test
23763         * tests/test-readlink.c (main): Move guts...
23764         * tests/test-readlink.h (test_readlink): ...into new file.
23765         * tests/test-symlink.c (main): Move guts...
23766         * tests/test-symlink.h (test_symlink): ...into new file.
23767         * tests/test-symlinkat.c (main): Use new files for further
23768         coverage.
23769         (do_symlink, do_readlink): New helper functions.
23770         * modules/symlink-tests (Files): Ship new file.
23771         (Depends-on): Add stdbool.
23772         * modules/readlink-tests (Files): Ship new file.
23773         (Depends-on): Add stdbool.
23774         * modules/symlinkat-tests (Files): Use new files.
23775
23776 2009-09-23  Eric Blake  <ebb9@byu.net>
23777
23778         readlink: document portability issue with symlink length
23779         * doc/posix-functions/lstat.texi (lstat): Mention that some file
23780         systems have bogus st_size on symlinks, and mention the
23781         areadlink-with-size module.
23782         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23783         * doc/posix-functions/readlink.texi (readlink): Mention the
23784         areadlink module, and ERANGE failure.
23785         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23786         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
23787
23788         readlink: fix Solaris 9 bug with trailing slash
23789         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
23790         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
23791         * doc/posix-functions/readlink.texi (readlink): Document this.
23792         * modules/readlink-tests: New test.
23793         * tests/test-readlink.c: Likewise.
23794
23795         readlink: fix cygwin 1.5.x bug with return type
23796         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
23797         * lib/unistd.in.h (readlink): Use ssize_t.
23798         * lib/readlink.c (readlink): Likewise.
23799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23800         * modules/unistd (Makefile.am): Substitute it.
23801         * lib/unistd.in.h (readlink): Declare replacement.
23802         * doc/posix-functions/readlink.texi (readlink): Document this.
23803
23804         symlink: use throughout gnulib
23805         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
23806         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
23807         symlink is not used.
23808         * modules/symlinkat (Depends-on): Add symlink.
23809         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23810         * modules/canonicalize-tests (Depends-on): Likewise.
23811         * modules/lstat-tests (Depends-on): Likewise.
23812         * modules/openat-tests (Depends-on): Likewise.
23813         * modules/remove-tests (Depends-on): Likewise.
23814         * modules/rmdir-tests (Depends-on): Likewise.
23815         * modules/unlink-tests (Depends-on): Likewise.
23816         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
23817         * tests/test-canonicalize.c (symlink): Likewise.
23818         * tests/test-fstatat.c (symlink): Likewise.
23819         * tests/test-lstat.c (symlink): Likewise.
23820         * tests/test-remove.c (symlink): Likewise.
23821         * tests/test-rmdir.c (symlink): Likewise.
23822         * tests/test-unlink.c (symlink): Likewise.
23823         * tests/test-unlinkat.c (symlink): Likewise.
23824
23825         symlink: new module, for Solaris 9 bug
23826         * modules/symlink: New file.
23827         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23828         * lib/symlink.c: Likewise.
23829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23830         * modules/unistd (Makefile.am): Substitute them.
23831         * lib/unistd.in.h (symlink): Declare replacement.
23832         * MODULES.html.sh (File system functions): Mention it.
23833         * doc/posix-functions/symlink.texi (symlink): Likewise.
23834         * modules/symlink-tests: New test.
23835         * tests/test-symlink.c: Likewise.
23836
23837 2009-09-23  Bruno Haible  <bruno@clisp.org>
23838
23839         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
23840         when needed.
23841         Test case: gnulib-tool --import --with-tests atexit inttypes.
23842         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
23843
23844 2009-09-23  Bruno Haible  <bruno@clisp.org>
23845
23846         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
23847         subcommand, not in a subshell.
23848
23849 2009-09-22  Eric Blake  <ebb9@byu.net>
23850
23851         unistd: sort replacement declarations
23852         * lib/unistd.in.h: Sort declarations.
23853
23854         open, openat: minor optimization
23855         * lib/open.c (open): If open succeeded, len is non-zero.
23856         * lib/openat.c (rpl_openat): Likewise.
23857
23858         link-follow: ensure correct result
23859         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
23860         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
23861         distinguish between possible failures.
23862
23863 2009-09-21  Eric Blake  <ebb9@byu.net>
23864
23865         fts: avoid compiler warning
23866         * lib/fts.c (dirent_inode_sort_may_be_useful)
23867         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
23868
23869 2009-09-19  Bruno Haible  <bruno@clisp.org>
23870
23871         * lib/progreloc.c (canonicalize_file_name): New declaration.
23872
23873 2009-09-19  Eric Blake  <ebb9@byu.net>
23874
23875         link: fix quoting
23876         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
23877
23878         openat: fix openat bugs on Solaris 9
23879         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
23880         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
23881         * modules/openat (Depends-on): Add open.
23882         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
23883         * modules/fcntl-h (Makefile.am): Substitute it.
23884         * lib/fcntl.in.h (openat): Declare replacement.
23885         * doc/posix-functions/openat.texi (openat): Document this.
23886
23887         openat: move fstatat and unlinkat into correct files
23888         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
23889         compiled.
23890         * lib/openat.c (fstatat, unlinkat): Move...
23891         * lib/fstatat.c (fstatat): ...into correct files.
23892         * lib/unlinkat.c (unlinkat): Likewise.
23893
23894         openat: fix unlinkat bugs on Solaris 9
23895         * lib/unlinkat.c (unlinkat): New file.
23896         * modules/openat (Depends-on): Add unlink.
23897         (Files): Distribute it.
23898         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
23899         trailing slash behavior is broken.
23900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23901         * modules/unistd (Makefile.am): Substitute it.
23902         * lib/unistd.in.h (unlinkat): Declare replacement.
23903         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
23904
23905         openat: fix fstatat bugs on Solaris 9
23906         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
23907         stat.
23908         * doc/posix-functions/fstatat.texi (fstatat): Document this.
23909
23910         test-unlinkat: enhance test, to expose Solaris 9 bug
23911         * tests/test-unlink.c (main): Factor guts...
23912         * tests/test-unlink.h (test_rmdir_func): ...into new file.
23913         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
23914         * tests/test-rmdir.c (main): Adjust caller.
23915         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
23916         (unlinker): New helper function.
23917         (rmdirat): Enhance check.
23918         * modules/rmdir-tests (Depends-on): Add stdbool.
23919         * modules/unlink-tests (Depends-on): Likewise.
23920         (Files): Add test-unlink.h.
23921         * modules/openat-tests (Files): Likewise.
23922         (Depends-on): Add unlinkdir.
23923
23924         test-fstatat: new test, to expose Solaris 9 bugs
23925         * tests/test-stat.c (main): Factor guts...
23926         * tests/test-stat.h (test_stat_func): ...into new file.
23927         * tests/test-lstat.c (main): Factor guts...
23928         * tests/test-lstat.h (test_lstat_func): ...into new file.
23929         * tests/test-fstatat.c: New file.
23930         * modules/stat-tests (Files): Add test-stat.h.
23931         * modules/lstat-tests (Files): Add test-lstat.h.
23932         (Depends-on): Add stdbool.
23933         * modules/openat-tests (Depends-on): Add pathmax.
23934         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
23935         (Makefile.am): Run new test.
23936
23937         remove: new module, for mingw and Solaris 9 bugs
23938         * modules/remove: New file.
23939         * lib/remove.c: Likewise.
23940         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
23941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
23942         * modules/stdio (Makefile.am): Use them.
23943         * lib/stdio.in.h (remove): Declare replacement.
23944         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23945         * doc/posix-functions/remove.texi (remove): Likewise.
23946         * modules/remove-tests: New test.
23947         * tests/test-remove.c: Likewise.
23948
23949         unlink: new module, for Solaris 9 bug
23950         * modules/unlink: New file.
23951         * lib/unlink.c: Likewise.
23952         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
23954         * modules/unistd (Makefile.am): Use them.
23955         * lib/unistd.in.h (stat): Declare replacement.
23956         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23957         * doc/posix-functions/unlink.texi (unlink): Likewise.
23958         * modules/unlink-tests: New test.
23959         * tests/test-unlink.c: Likewise.
23960
23961         lstat: fix Solaris 9 bug
23962         * lib/lstat.c (lstat): Also check for trailing slash on
23963         non-symlink, non-directories.  Use stat module to simplify logic.
23964         * doc/posix-functions/lstat.texi (lstat): Document it.
23965         * modules/lstat-tests (Depends-on): Add errno, same-inode.
23966         (configure.ac): Check for symlink.
23967         * tests/test-lstat.c (main): Add more tests.
23968
23969         stat: add as dependency to other modules
23970         * modules/chown (Depends-on): Add stat.
23971         * modules/euidaccess (Depends-on): Likewise.
23972         * modules/fchdir (Depends-on): Likewise.
23973         * modules/isdir (Depends-on): Likewise.
23974         * modules/link (Depends-on): Likewise.
23975         * modules/lstat (Depends-on): Likewise.
23976         * modules/mkdir-p (Depends-on): Likewise.
23977         * modules/modechange (Depends-on): Likewise.
23978         * modules/open (Depends-on): Likewise.
23979         * modules/readlink (Depends-on): Likewise.
23980         * modules/same (Depends-on): Likewise.
23981
23982         stat: fix Solaris 9 bug
23983         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
23984         slash.
23985         * lib/stat.c (rpl_stat): Work around it.
23986         * doc/posix-functions/stat.texi (stat): Update documentation.
23987
23988         stat: new module, for mingw bug
23989         * modules/stat: New file.
23990         * lib/stat.c: Likewise.
23991         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23992         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23993         * modules/sys_stat (Makefile.am): Use them.
23994         * lib/sys_stat.in.h (stat): Declare replacement.
23995         * lib/openat.c (fstatat): Deal with lstat and stat being function
23996         macros.
23997         * modules/openat (Depends-on): Add inline.
23998         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23999         * doc/posix-functions/stat.texi (stat): Likewise.
24000         * modules/stat-tests: New test.
24001         * tests/test-stat.c: Likewise.
24002
24003 2009-09-19  Jim Meyering  <meyering@redhat.com>
24004
24005         syntax-check: detect unnecessary inclusion of canonicalize.h
24006         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24007
24008 2009-09-19  Eric Blake  <ebb9@byu.net>
24009
24010         canonicalize-lgpl: adjust clients to use correct header
24011         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24012         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24013         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24014         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24015         * lib/progreloc.c (includes): Likewise.
24016
24017 2009-09-19  Jim Meyering  <meyering@redhat.com>
24018
24019         test-posixtm.c: correct a comment
24020         * tests/test-posixtm.c: Correct first-line comment.
24021         Spotted by Eric Blake.
24022
24023 2009-09-16  Jim Meyering  <meyering@redhat.com>
24024
24025         posixtm-tests: make T const-correct; add a test case
24026         * tests/test-posixtm.c (T): Declare const.
24027         Add a test for -(2^31+1).
24028         Remove useless can-succeed-only-in-2002 test.
24029
24030         posixtm-tests: adjust the sole failing test
24031         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24032         expected output matches what mktime now produces.  Cross-checked via
24033         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24034
24035         posixtm: move #ifdef'd tests into a new module
24036         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24037         * tests/test-posixtm.c: ... this new file.
24038         * modules/posixtm-tests: New module.
24039
24040 2009-09-19  Eric Blake  <ebb9@byu.net>
24041
24042         openat: simplify use of at-func.c
24043         * lib/at-func.c (includes): Include prerequisites here, to
24044         simplify requirements on client files.
24045         * lib/openat-priv.h: Add double-inclusion guard.
24046         * lib/faccessat.c (includes): Simplify.
24047         * lib/fchmodat.c (includes): Likewise.
24048         * lib/fchownat.c (includes): Likewise.
24049         * lib/mkdirat.c (includes): Likewise.
24050         * lib/mkfifoat.c (includes): Likewise.
24051         * lib/symlinkat.c (includes): Likewise.
24052
24053         openat: allow return of fd 0
24054         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24055         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24056         unistd-safer.
24057         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24058         <fcntl.h>; this module does not leak fds.
24059         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24060         must be allowed to return 0, leaving openat_safer to add the
24061         safety.
24062         (openat_permissive): Avoid writing to just-opened fd 2 if
24063         restoring the current directory fails.
24064         * lib/openat-die.c (openat_restore_fail): Add comment.
24065         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24066         (save_cwd): Guarantee safe fd, but without use of open_safer.
24067         * tests/test-openat.c: New test.
24068         * modules/openat-tests (Files, Makefile.am): Distribute and build
24069         new file.
24070
24071         relocatable-prog-wrapper: fix build
24072         * modules/relocatable-prog-wrapper (Files): Update name of
24073         canonicalize m4 file, broken on 2009-09-17.
24074         Reported by emad hajjar <aleppos@hotmail.com>.
24075
24076 2009-09-19  Bruno Haible  <bruno@clisp.org>
24077
24078         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24079         * lib/safe-alloc.c: Likewise.
24080         Reported by Ian Beckwith <ianb@erislabs.net>.
24081
24082 2009-09-18  Bruno Haible  <bruno@clisp.org>
24083
24084         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24085         Reported by <erobles@sensacd.com.mx>.
24086
24087 2009-09-17  Eric Blake  <ebb9@byu.net>
24088
24089         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24090         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24091         slashes when checking if last component is missing.
24092         * tests/test-canonicalize.c (main): Test this.
24093
24094         canonicalize, canonicalize-lgpl: honor // if distinct from /
24095         * modules/canonicalize (Files): Add double-slash-root.m4.
24096         * modules/canonicalize-lgpl (Files): Likewise.
24097         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24098         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24099         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24100         fallback definition.
24101         (canonicalize_filename_mode): Use it to protect //.
24102         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24103         (__realpath): Likewise.
24104         * tests/test-canonicalize.c (main): Test this.
24105         * tests/test-canonicalize-lgpl.c (main): Likewise.
24106         * modules/canonicalize-tests (Depends-on): Add same-inode.
24107         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24108
24109         canonicalize-lgpl: fix glibc bug with trailing slash
24110         * m4/canonicalize-lgpl.m4: Move contents...
24111         * m4/canonicalize.m4: ...here.
24112         (gl_CANONICALIZE_LGPL): Factor realpath check...
24113         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24114         glibc 2.3.5 bug, fixed 2005-04-27.
24115         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24116         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24117         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24118         * modules/canonicalize-lgpl (Files): Manage file rename.
24119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24120         * modules/stdlib (Makefile.am): Substitute witness.
24121         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24122         is needed.
24123         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24124         replacement is required.
24125         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24126         * doc/glibc-functions/canonicalize_file_name.texi
24127         (canonicalize_file_name): Document this.
24128         * doc/posix-functions/realpath.texi (realpath): Likewise.
24129
24130         canonicalize-lgpl: reject non-directory with trailing slash
24131         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24132         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24133         catches failures in glibc 2.3.5.
24134         * tests/test-canonicalize.c (main): Likewise.
24135
24136         canonicalize-lgpl: use native realpath if it works
24137         * lib/canonicalize-lgpl.c (realpath): Guard with
24138         FUNC_REALPATH_WORKS.
24139         * lib/stdlib.in.h (realpath): Make declaration optional based on
24140         HAVE_REALPATH.
24141         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24142         native realpath works.
24143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24144         * modules/stdlib (Makefile.am): Substitute witness.
24145
24146         canonicalize, canonicalize-lgpl: use <stdlib.h>
24147         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24148         (Include): Mention <stdlib.h>.
24149         (configure.ac): Mention functions we provide.
24150         * modules/canonicalize (configure.ac): Likewise.
24151         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24152         realpath if canonicalize_file_name is missing.
24153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24154         * modules/stdlib (Makefile.am): Substitute witnesses.
24155         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24156         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24157         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24158         * NEWS: Document this.
24159         * doc/glibc-functions/canonicalize_file_name.texi
24160         (canonicalize_file_name): Likewise.
24161         * doc/posix-functions/realpath.texi (realpath): Likewise.
24162         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24163
24164         test-canonicalize: consolidate into single C program
24165         * tests/test-canonicalize.sh: Delete; move setup into...
24166         * tests/test-canonicalize.c (main): ...the program, making it
24167         easier to run in debugger.  Add some tests.
24168         * modules/canonicalize-tests (Files): Remove unused file.
24169         (Depends-on): Add progname.
24170         (configure.ac, Makefile.am): Simplify.
24171
24172         test-canonicalize-lgpl: consolidate into single C program
24173         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24174         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24175         easier to run in debugger.  Add some tests.
24176         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24177         (configure.ac, Makefile.am): Simplify.
24178
24179         canonicalize: avoid resolvepath
24180         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24181         unnecessary checks.
24182         * lib/canonicalize.c (includes): Simplify.
24183         (canonicalize_file_name): Drop resolvepath implementation.
24184         * modules/canonicalize (Depends-on): Drop filenamecat.
24185
24186         canonicalize: don't lose errno
24187         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24188         over calls to free.
24189
24190         canonicalize: simplify errno handling
24191         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24192         assignment.
24193
24194         canonicalize, canonicalize-lgpl: update module dependencies
24195         * modules/canonicalize (Depends-on): Add extensions, lstat,
24196         pathmax, stdlib.
24197         (Files): Drop pathmax.h.
24198         (configure.ac): Adjust macro name.
24199         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24200         lstat, stdlib, sys_stat.
24201         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24202         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24203         extensions.
24204         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24205         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
24206         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
24207         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
24208         declaration, if available.
24209         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
24210         we can rely on the readlink module.
24211         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
24212         (includes): Use <unistd.h> unconditionally.
24213
24214 2009-09-17  Eric Blake  <ebb9@byu.net>
24215
24216         maint: make Include sections of modules consistent
24217         * modules/alloca: Use only header name; no need to list #include.
24218         * modules/alloca-opt: Likewise.
24219         * modules/arpa_inet: Likewise.
24220         * modules/canon-host: Likewise.
24221         * modules/configmake: Likewise.
24222         * modules/dirent: Likewise.
24223         * modules/eealloc: Likewise.
24224         * modules/environ: Likewise.
24225         * modules/fchdir: Likewise.
24226         * modules/fcntl: Likewise.
24227         * modules/fcntl-h: Likewise.
24228         * modules/gethrxtime: Likewise.
24229         * modules/gettime: Likewise.
24230         * modules/ignore-value: Likewise.
24231         * modules/inet_ntop: Likewise.
24232         * modules/inet_pton: Likewise.
24233         * modules/inttypes: Likewise.
24234         * modules/isnand-nolibm: Likewise.
24235         * modules/isnanf-nolibm: Likewise.
24236         * modules/mbchar: Likewise.
24237         * modules/mbfile: Likewise.
24238         * modules/mbiter: Likewise.
24239         * modules/mbuiter: Likewise.
24240         * modules/netdb: Likewise.
24241         * modules/netinet_in: Likewise.
24242         * modules/nproc: Likewise.
24243         * modules/pagealign_alloc: Likewise.
24244         * modules/poll: Likewise.
24245         * modules/printf-frexp: Likewise.
24246         * modules/pthread: Likewise.
24247         * modules/putenv: Likewise.
24248         * modules/random_r: Likewise.
24249         * modules/relocatable-prog: Likewise.
24250         * modules/search: Likewise.
24251         * modules/select: Likewise.
24252         * modules/selinux-h: Likewise.
24253         * modules/settime: Likewise.
24254         * modules/signal: Likewise.
24255         * modules/size_max: Likewise.
24256         * modules/socklen: Likewise.
24257         * modules/ssize_t: Likewise.
24258         * modules/stdarg: Likewise.
24259         * modules/stdbool: Likewise.
24260         * modules/stddef: Likewise.
24261         * modules/stdint: Likewise.
24262         * modules/stdio: Likewise.
24263         * modules/stdlib: Likewise.
24264         * modules/string: Likewise.
24265         * modules/strings: Likewise.
24266         * modules/sys_file: Likewise.
24267         * modules/sys_ioctl: Likewise.
24268         * modules/sys_select: Likewise.
24269         * modules/sys_socket: Likewise.
24270         * modules/sys_stat: Likewise.
24271         * modules/sys_time: Likewise.
24272         * modules/sys_times: Likewise.
24273         * modules/sys_utsname: Likewise.
24274         * modules/sys_wait: Likewise.
24275         * modules/sysexits: Likewise.
24276         * modules/time: Likewise.
24277         * modules/times: Likewise.
24278         * modules/tmpfile: Likewise.
24279         * modules/trim: Likewise.
24280         * modules/unistd: Likewise.
24281         * modules/wchar: Likewise.
24282         * modules/wctype: Likewise.
24283
24284 2009-09-17  Bruno Haible  <bruno@clisp.org>
24285
24286         Make getdate.y compile on QNX and NetBSD 5 / i386.
24287         * m4/getdate.m4 (gl_GETDATE): Conditionally define
24288         TIME_T_FITS_IN_LONG_INT.
24289         * lib/getdate.y (long_time_t): New type.
24290         (relative_time): Change type of 'seconds' field to long_time_t.
24291         (get_date): Update types of local variables. Check against overflow
24292         during conversion from long_time_t to time_t.
24293         Reported by Matt Kraai <kraai@ftbfs.org>
24294         and Hasso Tepper <hasso@netbsd.org>.
24295
24296 2009-09-17  Bruno Haible  <bruno@clisp.org>
24297
24298         * modules/COPYING: Update copyright years.
24299         * modules/README: Likeiwse.
24300         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
24301         Reported by Ian Beckwith <ianb@erislabs.net>.
24302
24303 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24304
24305         * users.txt: Update references for gnuit package.
24306
24307 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
24308
24309         * m4/getdelim.m4: Fix typo in copyright line.
24310
24311 2009-09-17  Bruno Haible  <bruno@clisp.org>
24312
24313         * lib/atoll.c: Use the standard header with GPL copyright.
24314         * lib/argz.in.h: Likewise.
24315         * lib/glob.c: Likewise.
24316         * lib/glob-libc.h: Likewise.
24317         * lib/random_r.c: Likewise.
24318         * lib/siglist.h: Likewise.
24319         * lib/strsignal.c: Likewise.
24320         Reported by Ian Beckwith <ianb@erislabs.net>.
24321
24322 2009-09-17  Eric Blake  <ebb9@byu.net>
24323
24324         rmdir: ensure correct dependency order
24325         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
24326
24327 2009-09-17  Bruno Haible  <bruno@clisp.org>
24328
24329         Disable assertion that fails on NetBSD 5 / i386.
24330         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
24331         Reported by Sam Steingold <sds@gnu.org>
24332         and Hasso Tepper <hasso@netbsd.org>.
24333
24334 2009-09-16  Eric Blake  <ebb9@byu.net>
24335
24336         unlinkdir: port to mingw
24337         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
24338         on which no one can unlink a directory.
24339
24340         stdlib: sort witness names
24341         * modules/stdlib (Makefile.am): Sort replacements.
24342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24343         * lib/stdlib.in.h: Likewise.
24344
24345         parse-duration-tests: avoid link failure
24346         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
24347         LIBINTL.
24348         Reported by Tom G. Christensen.
24349
24350         openat-tests: ensure unlinkat behaves like rmdir
24351         * tests/test-rmdir.c (main): Factor guts...
24352         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
24353         * modules/rmdir-tests (Files): Ship new file.
24354         * modules/openat-tests: New test.
24355         * tests/test-unlinkat.c: Likewise.
24356
24357         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
24358         * modules/rmdir-errno (Status, Notice): Now obsolete.
24359
24360         rmdir: work around cygwin 1.5.x and mingw bugs
24361         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
24362         * lib/rmdir.c (rmdir): Work around it.
24363         * modules/rmdir (Status, Notice): No longer obsolete.
24364         (Files): Add dos.m4.
24365         (Depends-on): Add unistd.
24366         (configure.ac): Set witnesses.
24367         (License): Relax to LGPLv2+.
24368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
24369         * modules/unistd (Makefile.am): Substitute witnesses.
24370         * lib/unistd.in.h (rmdir): Declare replacement.
24371         * doc/posix-functions/rmdir.texi (rmdir): Document this.
24372         * modules/rmdir-tests: New tests.
24373         * tests/test-rmdir.c: Likewise.
24374
24375 2009-09-15  Eric Blake  <ebb9@byu.net>
24376
24377         fchdir: improve use of replacement functions
24378         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
24379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
24380         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
24381         REPLACE_CLOSEDIR.
24382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
24383         * modules/sys_stat (Makefile.am): Substitute correct witness.
24384         * modules/dirent (Makefile.am): Likewise.
24385         * modules/unistd (Makefile.am): Likewise.
24386         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
24387         * lib/unistd.in.h (dup): Likewise.
24388         * lib/sys_stat.in.h (fstat): Likewise.
24389
24390         maint: ignore gnulib-tool temp files
24391         * .gitignore: Ignore files created during gnulib-tool --test.
24392
24393 2009-09-13  Jim Meyering  <meyering@redhat.com>
24394
24395         posixtm: don't reject a time that specify "60" as the number of seconds
24396         * lib/posixtm.c (posixtime): The code to reject invalid dates
24397         would also reject a time specified with the .60 suffix.
24398         But POSIX allows that, in order to accommodate leap seconds.
24399         So don't reject it.
24400         (main): Adjust tests accordingly.
24401         * modules/posixtm (Depends-on): Add stpcpy.
24402
24403 2009-09-11  Jim Meyering  <meyering@redhat.com>
24404
24405         announce-gen: include [$release_type] in emitted Subject:
24406         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
24407         e.g., [stable] in the emitted Subject: line.
24408
24409 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24410
24411         Remove obsolete macros from several modules.
24412         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
24413         obsolete Autoconf macros with their modern counterparts.
24414         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
24415         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
24416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
24417         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
24418         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
24419         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24421         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24422         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24423         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
24424         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24425         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24426         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
24427         * m4/sockets.m4 (gl_SOCKETS): Likewise.
24428         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
24429         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
24430         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24431         * m4/time_r.m4 (gl_TIME_R): Likewise.
24432         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24433         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
24434         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24435
24436         Fix copyright header in build-aux scripts.
24437         * build-aux/git-version-gen: Fix copyright header to match GPLv3
24438         recommendation.
24439         * build-aux/ncftpput-ftp: Likewise.
24440         * build-aux/update-copyright: Likewise.
24441
24442 2009-09-09  Eric Blake  <ebb9@byu.net>
24443
24444         test-link: allow Linux choice of errno
24445         * tests/test-link.c (main): Relax test for alternate error.
24446
24447         strndup: fix improper m4 caching
24448         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
24449         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
24450         (gl_PREREQ_STRNDUP): Delete.
24451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
24452         * modules/string (Makefile.am): Substitute it.
24453         * lib/string.in.h (strndup): Modernize prototype.
24454
24455         getcwd: port to mingw
24456         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
24457         different from the POSIX assumptions made throughout the getcwd
24458         module; fortunately, the mingw getcwd does not need replacement.
24459         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
24460         * modules/getcwd-tests: New test.
24461         * tests/test-getcwd.c: Likewise.
24462
24463         link: fix platform bugs
24464         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
24465         * lib/link.c (link): Work around them.  Fix related mingw bug.
24466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
24467         * modules/unistd (Makefile.am): Substitute it.
24468         * lib/unistd.in.h (link): Declare replacement.
24469         * doc/posix-functions/link.texi (link): Document this.
24470         * modules/link (Depends-on): Add strdup-posix, sys_stat.
24471
24472         test-link: consolidate into single C program, test more cases
24473         * tests/test-link.sh: Delete.
24474         * tests/test-link.c: Test more error conditions.  Exposes bugs on
24475         at least Cygwin and Solaris.
24476         * modules/link-tests (Files): Remove unused file.
24477         (Depends-on): Add errno, sys_stat.
24478         (Makefile.am): Simplify.
24479
24480 2009-09-08  Bruno Haible  <bruno@clisp.org>
24481
24482         Work around towlower, towupper bug on mingw.
24483         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
24484         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
24485         * doc/posix-functions/towlower.texi: Mention the mingw bug.
24486         * doc/posix-functions/towupper.texi: Likewise.
24487         Reported by Eric Blake.
24488
24489 2009-09-08  Jim Meyering  <meyering@redhat.com>
24490
24491         build: don't try to run autoheader if we don't use it
24492         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
24493         is not used in configure.ac.
24494
24495 2009-09-08  Eric Blake  <ebb9@byu.net>
24496
24497         euidaccess: fix compilation error
24498         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
24499
24500         rawmemchr: relax license
24501         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
24502         okay.
24503         Reported by Jim Meyering.
24504
24505         mkfifoat: new module
24506         * modules/mkfifoat: New file.
24507         * lib/mkfifoat.c: Likewise.
24508         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
24509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24510         * modules/sys_stat (Makefile.am): Use them.
24511         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
24512         * MODULES.html.sh (File system functions): Mention module.
24513         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24514         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24515         * modules/mkfifoat-tests: New test.
24516         * tests/test-mkfifoat.c: Likewise.
24517
24518         strchrnul: relax license
24519         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
24520         okay.
24521         Reported by Jim Meyering.
24522
24523 2009-09-08  Eric Blake  <ebb9@byu.net>
24524
24525         fstatat: fix compilation on Solaris
24526         * lib/fstatat.c (includes): Add fcntl.h.
24527         Reported by Pádraig Brady.
24528
24529 2009-09-07  Eric Blake  <ebb9@byu.net>
24530
24531         rename: modernize replacement
24532         * modules/rename (Depends-on): Add stdio.
24533         (configure.ac): Declare witness.
24534         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
24535         stdio take care of replacement.
24536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
24537         * modules/stdio (Makefile.am): Substitute them.
24538         * lib/stdio.in.h (rename): Declare replacement.
24539         * lib/rename.c (includes): Allow cross-compilation to non-windows
24540         machines.
24541         * doc/posix-functions/rename.texi (rename): Improve
24542         documentation.
24543
24544         stdio: sort witness names
24545         * modules/stdio (Makefile.am): Sort replacements.
24546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24547         * lib/stdio.in.h: Likewise.
24548
24549         getcwd: minor cleanups
24550         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
24551         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
24552
24553         openat: provide more convenience names
24554         * modules/faccessat (configure.ac): Add C witness.
24555         * lib/unistd.in.h (readlinkat): Fix typo.
24556         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
24557         convenience wrappers.
24558         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
24559         wrappers in syntax checks.
24560
24561 2009-09-06  Eric Blake  <ebb9@byu.net>
24562
24563         doc: fix comments in recent patches
24564         * lib/faccessat.c: Mention correct function.
24565         * lib/fchmodat.c: Likewise.
24566         * lib/fchownat.c: Likewise.
24567         * lib/symlinkat.c: Likewise.
24568         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
24569         constants.
24570
24571         faccessat, symlinkat: continue cleanup of previous patch
24572         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
24573         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24574         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
24575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
24576         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
24577         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
24578         set.
24579
24580 2009-09-06  Bruno Haible  <bruno@clisp.org>
24581
24582         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
24583         (fstatat): Declare if GNULIB_FSTATAT is set.
24584         (mkdirat): Declare if GNULIB_MKDIRAT is set.
24585         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
24586         (unlinkat): Declare if GNULIB_UNLINKAT is set.
24587         * modules/fcntl-h (Files): Remove m4/openat.m4.
24588         * modules/sys_stat (Files): Remove m4/openat.m4.
24589         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
24590         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
24591         * modules/unistd (Files): Remove m4/openat.m4.
24592         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
24593         GNULIB_OPENAT.
24594         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
24595         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
24596         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
24597         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
24598         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
24599         gl_OPENAT_DEFAULTS.
24600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
24601         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
24602         Don't require gl_OPENAT_DEFAULTS.
24603         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
24604         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
24605         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
24606         (gl_OPENAT_DEFAULTS): Remove macro.
24607
24608 2009-09-06  Bruno Haible  <bruno@clisp.org>
24609
24610         * modules/openat (configure.ac): Remove unneeded witness.
24611
24612 2009-09-06  Bruno Haible  <bruno@clisp.org>
24613
24614         Set errno to ENOSYS when a function is entirely unsupported.
24615         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
24616         EOPNOTSUPP.
24617         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
24618         * modules/chown (Depends-on): Remove errno.
24619
24620 2009-09-06  Bruno Haible  <bruno@clisp.org>
24621
24622         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
24623
24624 2009-09-06  Bruno Haible  <bruno@clisp.org>
24625
24626         * lib/sys_stat.in.h: Fix preprocessor command indentation.
24627
24628 2009-09-06  Ben Pfaff  <blp@gnu.org>
24629             Bruno Haible  <bruno@clisp.org>
24630
24631         Work around a glibc bug in strtok_r.
24632         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
24633         Undefine if UNDEFINE_STRTOK_R is set.
24634         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
24635         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24636         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
24637         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
24638         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
24639         UNDEFINE_STRTOK_R.
24640         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
24641
24642 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24643
24644         exclude: minor fix
24645         * lib/exclude.c: Include wctype.h
24646
24647 2009-09-06  Akim Demaille  <demaille@gostai.com>
24648
24649         bootstrap: improve error message
24650         * build-aux/bootstrap (find_tool): Upon failure, report the list
24651         of candidates.
24652         Honor the initial value of the envvar.
24653
24654 2009-09-05  Eric Blake  <ebb9@byu.net>
24655
24656         symlinkat: new module
24657         * modules/symlinkat: New file.
24658         * lib/symlinkat.c: Likewise.
24659         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
24660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24661         * modules/unistd (Makefile.am): Use them.
24662         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
24663         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
24664         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
24665         * MODULES.html.sh (File system functions): Mention module.
24666         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24667         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24668         * modules/symlinkat-tests: New test.
24669         * tests/test-symlinkat.c: Likewise.
24670
24671         test-openat-safer: add more checks
24672         * tests/test-openat-safer.c (main): Check more code paths.
24673
24674 2009-09-05  Jim Meyering  <meyering@redhat.com>
24675
24676         syntax-check: detect unnecessary inclusion of openat.h
24677         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
24678
24679 2009-09-05  Bruno Haible  <bruno@clisp.org>
24680
24681         Support towlower, towupper.
24682         * doc/posix-functions/towlower.texi: Mention module wctype.
24683         * doc/posix-functions/towupper.texi: Likewise.
24684         * lib/wctype.in.h (towlower, towupper): New functions.
24685         * tests/test-wctype.c: Include stdio.h, stdlib.h.
24686         (ASSERT): New macro.
24687         (e): New variable.
24688         (main): Test also towlower, towupper. Test WEOF argument.
24689         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
24690
24691 2009-09-05  Bruno Haible  <bruno@clisp.org>
24692
24693         Fix conversion behaviour when the input is invalid.
24694         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
24695         mark occurring in first pass of indirect conversion.
24696         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
24697         input.
24698         Found by clang's static analyzer.
24699
24700 2009-09-05  Bruno Haible  <bruno@clisp.org>
24701
24702         * tests/test-striconveh.c (main): Test indirect conversion on platforms
24703         where direct conversion is possible.
24704
24705 2009-09-04  Eric Blake  <ebb9@byu.net>
24706
24707         openat: fail with ENOENT on empty name
24708         * lib/openat-proc.c (openat_proc_name): Special-case the empty
24709         buffer.
24710
24711         link-follow: fix logic bug in prior patch
24712         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
24713         reversed sense of yes and no in prior patch.  Avoid confusing
24714         compilation failure with desired semantics.
24715
24716         link-follow: accomodate mingw and cross-compilation
24717         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
24718         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
24719         cross-compilation results to -1, to make linkat easier to
24720         implement when cross-compiling.  Trivially support mingw.
24721         * modules/link-follow (configure.ac): Call new name.
24722         * NEWS: Mention this.
24723
24724 2009-09-03  Eric Blake  <ebb9@byu.net>
24725
24726         faccessat: compile replacement
24727         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
24728         needed.
24729
24730         fts: fix compilation error
24731         * lib/fts.c (includes): Re-add "openat.h", for
24732         openat_needs_fchdir.
24733
24734         faccessat: new module
24735         * modules/faccessat: New file.
24736         * lib/faccessat.c: Likewise.
24737         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
24738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24739         * modules/unistd (Makefile.am): Use it.
24740         * lib/unistd.in.h (faccessat): Declare it.
24741         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
24742         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
24743         * MODULES.html.sh (File system functions): Mention it.
24744         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
24745         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24746
24747         euidaccess: prefer POSIX over non-standard implementation
24748         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
24749         * lib/euidaccess.c (euidaccess): Use it if available.
24750
24751         openat: make template easier to use
24752         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
24753         AT_FUNC_F2 to be undefined.
24754         (VALIDATE_FLAG): New macro; use it to reject bad flags.
24755         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
24756         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
24757         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
24758         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
24759         Likewise.
24760         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
24761         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
24762         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
24763         Likewise.
24764
24765         openat: declare in POSIX headers
24766         * NEWS: Mention this.
24767         * modules/openat (configure.ac): Declare witnesses.
24768         (Depends-on): Add fcntl-h, sys_stat, unistd.
24769         (Include): Mention correct headers.
24770         * modules/fcntl-h (Depends-on): Add link-warning.
24771         (Files): Add openat.m4.
24772         (Makefile.am): Substitute witnesses.
24773         * modules/sys_stat (Files, Makefile.am): Likewise.
24774         * modules/unistd (Files, Makefile.am): Likewise.
24775         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
24776         (gl_OPENAT_DEFAULTS): New macro.
24777         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
24778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
24779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
24780         (SYS_STAT_H): Remove unused variable.
24781         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
24782         * lib/fcntl--.h (includes): Remove unneeded header.
24783         * lib/openat-safer.c (includes): Likewise.
24784         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
24785         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
24786         appropriate headers.
24787         (__OPENAT_PREFIX): Delete.
24788         * lib/fcntl.in.h (openat): Provide declaration.
24789         (AT_FDCWD): Fix Solaris bug.
24790         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
24791         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
24792         * lib/fchmodat.c (includes):  Adjust to find declaration.
24793         * lib/fchownat.c (includes): Likewise.
24794         * lib/mkdirat.c (includes): Likewise.
24795         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
24796         still visible.
24797
24798 2009-09-02  Eric Blake  <ebb9@byu.net>
24799
24800         errno: use consistently
24801         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
24802         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
24803         * lib/canonicalize.c (ELOOP): Likewise.
24804         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
24805         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
24806         * lib/lchown.c (EOPNOTSUPP): Likewise.
24807         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
24808         * lib/savewd.c (ESTALE): Likewise.
24809         * lib/settime.c (ENOSYS): Likewise.
24810         * lib/utimens.c (ENOSYS): Likewise.
24811         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
24812         * lib/chdir-safer.c (ELOOP): Likewise.
24813         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
24814         * modules/c-stack (Depends-on): Add errno.
24815         * modules/canonicalize (Depends-on): Likewise.
24816         * modules/chdir-safer (Depends-on): Likewise.
24817         * modules/fdopendir (Depends-on): Likewise.
24818         * modules/inet_ntop (Depends-on): Likewise.
24819         * modules/inet_pton (Depends-on): Likewise.
24820         * modules/lchown (Depends-on): Likewise.
24821         * modules/openat (Depends-on): Likewise.
24822         * modules/savewd (Depends-on): Likewise.
24823         * modules/settime (Depends-on): Likewise.
24824         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
24825
24826         fts: avoid leaking fds
24827         * modules/fts (Depends-on): Add cloexec.
24828         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
24829         flag.
24830
24831         fts: make directory fds more robust
24832         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
24833         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
24834
24835         backupfile, chdir-long, fts, savedir: make safer
24836         * lib/backupfile.c (includes): Use "dirent--.h", since
24837         numbered_backup can write to stderr during readdir.
24838         * lib/savedir.c (includes): Likewise.
24839         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
24840         emulation can write to stderr on failure.
24841         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
24842         * lib/getcwd.c: Document why opendir_safer is unused.
24843         * lib/glob.c: Likewise.
24844         * lib/scandir.c: Likewise.
24845         * lib/openat-proc.c: Likewise, for open_safer.
24846         * modules/backupfile (Depends-on): Add dirent-safer.
24847         * modules/savedir (Depends-on): Likewise.
24848         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
24849         * modules/chdir-long (Depends-on): Add openat-safer.
24850
24851         openat-safer: new module
24852         * modules/openat-safer: New file.
24853         * lib/openat-safer.c: Likewise.
24854         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
24855         * lib/fcntl-safer.h (openat_safer): Declare.
24856         * lib/fcntl--.h (openat): Override.
24857         * MODULES.html.sh (File descriptor based I/O): Mention it.
24858         * lib/openat.h: Add double-inclusion guards.
24859         * lib/openat.c (includes): Only include "fcntl-safer.h", not
24860         "fcntl--.h", so we can implement openat.
24861         * modules/openat-safer-tests: New test.
24862         * tests/test-openat-safer.c: New file.
24863
24864         dirent-safer: new module
24865         * modules/dirent-safer: New file.
24866         * lib/dirent--.h: Likewise.
24867         * lib/dirent-safer.h: Likewise.
24868         * lib/opendir-safer.c: Likewise.
24869         * m4/dirent-safer.m4: Likewise.
24870         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
24871         * modules/dirent-safer-tests: New test.
24872         * tests/test-dirent-safer.c: New file.
24873         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
24874
24875         fdopendir: optimize on mingw
24876         * lib/unistd.in.h (_gl_directory_name): New prototype.
24877         * lib/fchdir.c (_gl_directory_name): Implement it.
24878         (fchdir): Use it to simplify implementation.
24879         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
24880         fchdir, when available, to avoid calling [f]chdir().
24881
24882         fdopendir: split into its own module
24883         * lib/openat.c (fdopendir): Move...
24884         * lib/fdopendir.c: ...into new file.
24885         * modules/fdopendir: New module.
24886         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
24887         * modules/openat (Depends-on): Add fdopendir.
24888         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
24889         fdopendir here.
24890         * modules/savedir (Depends-on): Only need fdopendir, not full
24891         openat.
24892         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
24893         * lib/openat.h (fdopendir): Drop prototype.
24894         * lib/dirent.in.h (fdopendir): Provide prototype.
24895         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
24896         * modules/dirent (Makefile.am): Substitute them.
24897         * MODULES.html.sh (File system functions): Mention it.
24898         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
24899         * modules/fdopendir-tests: New file.
24900         * tests/test-fdopendir.c: Likewise.
24901
24902         fchdir: use more consistent macro convention
24903         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
24904         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
24905         REPLACE_FCHDIR, rather than relying on config.h macros.
24906         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
24907         inside a single make-time REPLACE_FCHDIR block, rather than using
24908         the config.h FCHDIR_REPLACEMENT.
24909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
24910         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
24911         Manage fstat replacement.
24912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
24913         REPLACE_FCHDIR.
24914         * modules/sys_stat (Files): Add m4/unistd_h.m4.
24915         (Makefile.am): Substitute REPLACE_FCHDIR.
24916         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
24917         FCHDIR_REPLACEMENT.
24918         * lib/dup-safer.c (dup_safer): Likewise.
24919         * lib/dup2.c (rpl_dup2): Likewise.
24920         * lib/dup3.c (rpl_dup3): Likewise.
24921         * lib/open.c (rpl_open): Likewise.
24922
24923         fchdir: simplify error handling, and support dup3
24924         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
24925         stdbool, malloc-posix, realloc-posix.
24926         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
24927         (ensure_dirs_slot): Return false on allocation failure.
24928         (rpl_dup2): Delete.
24929         (_gl_register_dup): New function.
24930         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
24931         (_gl_register_fd): Close fd on allocation failure.
24932         * lib/fcntl.in.h (_gl_register_fd): Update signature.
24933         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
24934         prototype.
24935         (rpl_dup2_fchdir): Delete prototype.
24936         * lib/open.c (open): Update caller.
24937         * lib/dup2.c (dup2): Track fchdir metadata.
24938         * lib/dup3.c (dup3): Likewise.
24939         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
24940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
24941
24942 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24943
24944         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
24945         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
24946         don't pass arguments to AC_OUTPUT.
24947
24948 2009-09-02  Bruno Haible  <bruno@clisp.org>
24949
24950         * modules/mkdtemp (License): Relicense under LGPLv2+.
24951         Reported by Paolo Bonzini.
24952
24953 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24954
24955         Replace uses of obsolete autoconf macros in Jim's modules.
24956         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
24957         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
24958         can evoke a warning from autoconf when run with -Wobsolete
24959         enabled.  They were declared obsolete for good reasons (see
24960         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
24961         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
24962         should not continue using the deprecated macros.
24963         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
24964         obsolete Autoconf macros with modern counterparts.
24965         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24966         * m4/dos.m4 (gl_AC_DOS): Likewise.
24967         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
24968         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24969         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
24970         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
24971         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
24972         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
24973         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
24974         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
24975         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
24976         Likewise.
24977         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24978         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
24979         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
24980         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
24981         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
24982         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
24983
24984 2009-09-01  Eric Blake  <ebb9@byu.net>
24985
24986         fchdir: fix off-by-one bug in previous patch
24987         * lib/fchdir.c (rpl_fstat): Use correct bounds.
24988         (_gl_unregister_fd): Delete useless if.
24989
24990 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
24991
24992         maint.mk: sort the list of syntax-check rules
24993         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
24994         easier to get a sense of progress when the rules are run sequentially
24995         and take a long time.
24996
24997 2009-09-01  Simon Josefsson  <simon@josefsson.org>
24998
24999         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25000         * modules/netinet_in: Likewise.
25001         * modules/sys_file: Likewise.
25002         * modules/sys_ioctl: Likewise.
25003         * modules/sys_select: Likewise.
25004         * modules/sys_socket: Likewise.
25005         * modules/sys_stat: Likewise.
25006         * modules/sys_time: Likewise.
25007         * modules/sys_times: Likewise.
25008         * modules/sys_utsname: Likewise.
25009         * modules/sys_wait: Likewise.
25010
25011 2009-09-01  Jim Meyering  <meyering@redhat.com>
25012
25013         fts: help ensure that return values are not ignored
25014         * lib/fts_.h (__GNUC_PREREQ): Define.
25015         (__attribute_warn_unused_result__): Define.
25016         (fts_children, fts_close, fts_open, fts_read): Declare with
25017         __attribute_warn_unused_result__.
25018
25019         fts: fts_close now fails also when closing a dir file descriptor fails
25020         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25021         and propagate to caller, along with errno.
25022
25023         announce-gen: correct formatting in --help output
25024         * build-aux/announce-gen (usage): Move the one-line description in
25025         --help output "up", to where it belongs, just after Usage:.
25026
25027 2009-08-31  Eric Blake  <ebb9@byu.net>
25028
25029         fchdir: port to mingw
25030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25031         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25032         opened, then use a substitute.
25033         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25034         replacement.
25035         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25036         (_gl_register_fd): No need to check stat if open already filters
25037         all directories.
25038         (fchdir): Fix error condition to match POSIX.
25039         * modules/fchdir (Depends-on): Add sys_stat.
25040         * doc/posix-functions/open.texi (open): Document the limitation.
25041         * modules/fchdir-tests: New file.
25042         * tests/test-fchdir.c: Likewise.
25043
25044         canonicalize: allow cross-testing from cygwin to mingw
25045         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25046         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25047         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25048         Likewise.
25049         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25050         target does not support symlinks.
25051         * tests/test-canonicalize-lgpl.sh: Likewise.
25052
25053         chown: avoid compilation warning on mingw
25054         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25055         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25056         mingw.
25057         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25058         * modules/chown (Depends-on): Add errno.
25059
25060 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25061
25062         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25063         command.
25064
25065 2009-08-31  Jim Meyering  <meyering@redhat.com>
25066
25067         canonicalize: remove useless initialization
25068         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25069         initialization of local, "end".
25070
25071 2009-08-30  Bruno Haible  <bruno@clisp.org>
25072
25073         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25074         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25075         ENOSYS.
25076
25077 2009-08-30  Bruno Haible  <bruno@clisp.org>
25078
25079         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25080         /usr/xpg4/bin/tr when it exists.
25081         * tests/test-pipe-filter-gi1.sh: Likewise.
25082
25083 2009-08-30  Bruno Haible  <bruno@clisp.org>
25084
25085         Work around deficient /usr/bin/id program on Solaris.
25086         * tests/test-file-has-acl.sh (ID): New variable.
25087         * tests/test-set-mode-acl.sh (ID): Likewise.
25088         * tests/test-copy-acl.sh (ID): Likewise.
25089         * tests/test-copy-file.sh (ID): Likewise.
25090
25091 2009-08-30  Bruno Haible  <bruno@clisp.org>
25092
25093         New module 'xstriconveh'.
25094         * lib/xstriconveh.h: New file.
25095         * lib/xstriconveh.c: New file.
25096         * modules/xstriconveh: New file.
25097
25098 2009-08-30  Bruno Haible  <bruno@clisp.org>
25099
25100         Make it easier to use mem_cd_iconveh.
25101         * lib/striconveh.h (iconveh_t): New type.
25102         (iconveh_open, iconveh_close): New declarations.
25103         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25104         with a single 'const iconveh_t *' argument.
25105         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25106         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25107         with a single 'const iconveh_t *' argument.
25108         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25109         * tests/test-striconveh.c (main): Update.
25110         * NEWS: Mention the change.
25111
25112 2009-08-30  Bruno Haible  <bruno@clisp.org>
25113
25114         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25115         problem.
25116
25117 2009-08-30  Bruno Haible  <bruno@clisp.org>
25118
25119         Work around iconv_open problem on Solaris.
25120         * lib/iconv_open-solaris.gperf: New file.
25121         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25122         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25123         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25124         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25125         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25126         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25127
25128 2009-08-29  Jim Meyering  <meyering@redhat.com>
25129
25130         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25131         * top/maint.mk (cvs-check): Remove target; it was just an alias
25132         to the better-named vc-diff-check.
25133         (maintainer-distcheck): Remove rule.  It was used only from
25134         the (alpha/beta/major) target, and all of its commands but one
25135         were coreutils-specific.
25136         (vc-dist): Remove rule.
25137         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25138         Run vc-diff-check, not vc-dist.
25139         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25140
25141 2009-08-27  Bruno Haible  <bruno@clisp.org>
25142
25143         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25144         of 0.
25145
25146 2009-08-27  Bruno Haible  <bruno@clisp.org>
25147
25148         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25149         compilers.
25150         * doc/func.texi: Document the SunPRO C bug.
25151
25152 2009-08-27  Bruno Haible  <bruno@clisp.org>
25153
25154         Fix link error on Solaris.
25155         * tests/test-parse-duration.c (xstrdup): Remove function.
25156
25157 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25158
25159         ignore-value: handle pointer types, too
25160         * lib/ignore-value.h (__attribute__): Remove definition.
25161         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25162         of a more concise and more-often effective "(void) i" statement.
25163         (ignore_ptr): New function to suppress warnings from functions that
25164         return pointers, and to make it explicit that one function doesn't
25165         handle all cases.
25166
25167 2009-08-25  Bruno Haible  <bruno@clisp.org>
25168
25169         dup2: work around a Linux bug.
25170         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25171         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25172         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25173         Reported by Simon Josefsson.
25174
25175 2009-08-25  Jim Meyering  <meyering@redhat.com>
25176
25177         libguestfs uses gnulib
25178         * users.txt: Add libguestfs.
25179
25180 2009-08-24  Eric Blake  <ebb9@byu.net>
25181
25182         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25183         * lib/pipe2.c (includes): Add binary-io.h.
25184         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25185
25186 2009-08-24  Bruno Haible  <bruno@clisp.org>
25187
25188         Tolerate declared but missing accept4 syscall.
25189         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25190         available.
25191         * lib/sys_socket.in.h (accept4): If the function is already present,
25192         override it.
25193         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25194         * modules/accept4 (Makefile.am): Compile accept4.c always.
25195         Reported by Paolo Bonzini and Eric Blake.
25196
25197 2009-08-23  Bruno Haible  <bruno@clisp.org>
25198
25199         New module 'accept4'.
25200         * lib/sys_socket.in.h (accept4): New declaration.
25201         * lib/accept4.c: New file.
25202         * m4/accept4.m4: New file.
25203         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25204         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25205         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
25206         HAVE_ACCEPT4.
25207         * modules/accept4: New file.
25208         * doc/glibc-functions/accept4.texi: Mention the new module.
25209
25210 2009-08-24  Jim Meyering  <meyering@redhat.com>
25211
25212         progname: also set global program_invocation_name, when possible
25213         Before this change, a libtool-enabled program that calls glibc's
25214         error function would report the program name as
25215         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
25216         * modules/progname (configure.ac): Check for a declaration of
25217         program_invocation_name.
25218         * lib/progname.c:  Include <errno.h>.
25219         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
25220         Set program_invocation_name.
25221
25222 2009-08-23  Bruno Haible  <bruno@clisp.org>
25223
25224         * lib/dup3.c: Include <string.h>.
25225
25226 2009-08-23  Bruno Haible  <bruno@clisp.org>
25227
25228         * lib/dup3.c (dup3): Test only once whether the system actually exists.
25229         * lib/pipe2.c (pipe2): Likewise.
25230         Suggested by Eric Blake.
25231
25232 2009-08-23  Bruno Haible  <bruno@clisp.org>
25233
25234         Tolerate declared but missing dup3 syscall.
25235         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
25236         * lib/unistd.in.h (dup3): If the function is already present,
25237         override it.
25238         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
25239         * modules/dup3 (Makefile.am): Compile dup3.c always.
25240         Reported by Paolo Bonzini.
25241
25242 2009-08-23  Bruno Haible  <bruno@clisp.org>
25243
25244         Tolerate declared but missing pipe2 syscall.
25245         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
25246         available.
25247         * lib/unistd.in.h (pipe2): If the function is already present,
25248         override it.
25249         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
25250         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
25251         Reported by Paolo Bonzini.
25252
25253 2009-08-23  Bruno Haible  <bruno@clisp.org>
25254
25255         * lib/pipe2.c (pipe2): Move #ifs inside function.
25256
25257 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25258
25259         quotearg: document limitations of quote_these_too
25260         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
25261         those limitations are created.
25262         * lib/quotearg.h (set_char_quoting): Document that digits and
25263         letters that are special after backslash are not permitted.
25264         (quotearg_char): Cross-reference set_char_quoting documentation.
25265
25266 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
25267
25268         quotearg: implement custom_quoting_style
25269         * lib/quotearg.c: (struct quoting_options): Add left_quote and
25270         right_quote fields.
25271         (set_custom_quoting): New public function.
25272         (quotearg_buffer_restyled): Add left_quote and right_quote
25273         arguments, handle them very much like locale quoting, and update
25274         all uses.
25275         (quotearg_n_custom): New public function.
25276         (quotearg_n_custom_mem): New public function.
25277         (quotearg_custom): New public function.
25278         (quotearg_custom_mem): New public function.
25279         * lib/quotearg.h: Prototype and document new public functions.
25280         (enum quoting_style): For escape_quoting_style and
25281         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
25282         ignored even though they're otherwise like c_quoting_style.
25283         Add custom_quoting_style member and document with comparison to
25284         clocale_quoting_style.
25285         * tests/test-quotearg.c (custom_quotes): New array.
25286         (custom_results): New array.
25287         (main): Extend to test custom quoting.
25288
25289 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25290
25291         quotearg: fix right quote escaping when it's in quote_these_too
25292         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
25293         quote, be sure to prepend only one backslash.
25294         * tests/test-quotearg.c (use_quote_double_quotes): New function.
25295         (main): Test it.
25296
25297 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
25298
25299         quotearg-tests: test escaping of embedded locale quotes
25300         * tests/test-quotearg.c (struct result_strings): Add member for
25301         new input.
25302         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
25303         (inputs): Add new input.
25304         (results_g): Add expected results.
25305         (flag_results): Likewise.
25306         (locale_results): Likewise.
25307         (compare_strings): Check those.
25308
25309 2009-08-23  Bruno Haible  <bruno@clisp.org>
25310
25311         Tests for module 'dup3'.
25312         * modules/dup3-tests: New file.
25313         * tests/test-dup3.c: New file.
25314
25315         New module 'dup3'.
25316         * lib/unistd.in.h (dup3): New declaration.
25317         * lib/dup3.c: New file.
25318         * m4/dup3.m4: New file.
25319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
25320         HAVE_DUP3.
25321         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
25322         * modules/dup3: New file.
25323         * doc/glibc-functions/dup3.texi: Mention the new module.
25324
25325 2009-08-23  Bruno Haible  <bruno@clisp.org>
25326
25327         Tweak the dup2 test.
25328         * tests/test-dup2.c (main): Create the test file empty. Verify that an
25329         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
25330         the test file is still empty. Fix argument order of lseek.
25331
25332 2009-08-23  Bruno Haible  <bruno@clisp.org>
25333
25334         Avoid test link errors when the modules getopt-gnu, gettext are used.
25335         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
25336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25337
25338 2009-08-23  Bruno Haible  <bruno@clisp.org>
25339
25340         Fix getdtablesize() on mingw.
25341         * lib/getdtablesize.c (getdtablesize): Implement differently.
25342         * lib/unistd.in.h (getdtablesize): Improve comment.
25343
25344 2009-08-23  Bruno Haible  <bruno@clisp.org>
25345
25346         New module 'mkostemp'.
25347         Based on Ulrich Drepper's 2007-08-10 change in glibc.
25348         * lib/stdlib.in.h (mksotemp): New declaration.
25349         * lib/mkostemp.c: New file, from glibc with modifications.
25350         * lib/tempname.h (GT_FILE): Remove outdated comment.
25351         (gen_tempname): Add flags argument.
25352         * lib/tempname.c (__GT_BIGFILE): Remove macro.
25353         (__GT_FILE): Map to 1.
25354         (small_open, large_open): Remove macros.
25355         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
25356         * lib/mkstemp.c (mkstemp): Update.
25357         * lib/mkdtemp.c (mkdtemp): Likewise.
25358         * m4/mkostemp.m4: New file.
25359         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
25360         HAVE_MKOSTEMP.
25361         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
25362         HAVE_MKOSTEMP.
25363         * modules/mkostemp: New file, based on modules/mkstemp.
25364         * doc/glibc-functions/mkostemp.texi: Mention the new module.
25365         * NEWS: Mention the change.
25366
25367 2009-08-23  Bruno Haible  <bruno@clisp.org>
25368
25369         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
25370         Reported by Eric Blake.
25371
25372 2009-08-23  Bruno Haible  <bruno@clisp.org>
25373
25374         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
25375         Reported by Eric Blake.
25376
25377 2009-08-23  Bruno Haible  <bruno@clisp.org>
25378
25379         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
25380         * modules/pipe2 (Depends-on): Likewise.
25381
25382 2009-08-23  Eric Blake  <ebb9@byu.net>
25383
25384         fcntl-h: add O_TTY_INIT support
25385         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
25386         * tests/test-fcntl-h.c (o): Test it.
25387         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25388
25389         fcntl-h: rename from fcntl, in preparation for fcntl(2)
25390         * modules/fcntl: Move <fcntl.h> header replacement...
25391         * modules/fcntl-h: ...to new name, so as not to collide with
25392         like-named function.
25393         * tests/test-fcntl.c: Rename...
25394         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
25395         * modules/fcntl-tests: Rename...
25396         * modules/fcntl-h-tests: ...to this.  Update test file name.
25397         * modules/chdir-long (Depends-on): Update clients.
25398         * modules/chdir-safer (Depends-on): Likewise.
25399         * modules/fcntl-safer (Depends-on): Likewise.
25400         * modules/fts (Depends-on): Likewise.
25401         * modules/mkancesdirs (Depends-on): Likewise.
25402         * modules/mkdir-p (Depends-on): Likewise.
25403         * modules/open (Depends-on): Likewise.
25404         * modules/savewd (Depends-on): Likewise.
25405         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
25406         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
25407
25408 2009-08-22  Bruno Haible  <bruno@clisp.org>
25409
25410         * modules/binary-io (License): Relicense under LGPL.
25411         * modules/pipe2 (License): Likewise.
25412
25413 2009-08-22  Bruno Haible  <bruno@clisp.org>
25414
25415         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
25416         return value.
25417         * lib/pipe-filter-gi.c (filter_init): Likewise.
25418         Reported by Eric Blake.
25419
25420 2009-08-22  Bruno Haible  <bruno@clisp.org>
25421
25422         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
25423         * modules/pipe (Depends-on): Add pipe2.
25424
25425 2009-08-22  Bruno Haible  <bruno@clisp.org>
25426
25427         Tests for module 'pipe2'.
25428         * modules/pipe2-tests: New file.
25429         * tests/test-pipe2.c: New file.
25430
25431         New module 'pipe2'.
25432         * lib/unistd.in.h (pipe2): New declaration.
25433         * lib/pipe2.c: New file.
25434         * m4/pipe2.m4: New file.
25435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
25436         HAVE_PIPE2.
25437         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
25438         * modules/pipe2: New file.
25439         * doc/glibc-functions/pipe2.texi: Mention the new module.
25440
25441 2009-08-22  Bruno Haible  <bruno@clisp.org>
25442
25443         Reference some new glibc functions.
25444         * doc/glibc-functions/accept4.texi: New file.
25445         * doc/glibc-functions/dup3.texi: New file.
25446         * doc/glibc-functions/mkostemp.texi: New file.
25447         * doc/glibc-functions/pipe2.texi: New file.
25448         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
25449         (Glibc sys/socket.h): Refer to accept4.
25450         (Glibc unistd.h): Refer to dup3, pipe2.
25451         Reported by Eric Blake.
25452
25453 2009-08-22  Jim Meyering  <meyering@redhat.com>
25454             Bruno Haible  <bruno@clisp.org>
25455
25456         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
25457         This makes it so packages using automake-1.11's silent-rules option
25458         can print e.g., a single "GEN    configmake.h" line, rather than
25459         the 30+ statements that perform the job.  If you want to see the
25460         actual commands, you can still run "make V=1".
25461         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
25462         so that make output is abbreviated when those variables are defined
25463         appropriately.
25464         * modules/argz: Likewise.
25465         * modules/arpa_inet: Likewise.
25466         * modules/byteswap: Likewise.
25467         * modules/configmake: Likewise.
25468         * modules/dirent: Likewise.
25469         * modules/errno: Likewise.
25470         * modules/fcntl: Likewise.
25471         * modules/float: Likewise.
25472         * modules/fnmatch: Likewise.
25473         * modules/getopt-posix: Likewise.
25474         * modules/glob: Likewise.
25475         * modules/iconv_open: Likewise.
25476         * modules/inttypes: Likewise.
25477         * modules/localcharset: Likewise.
25478         * modules/locale: Likewise.
25479         * modules/math: Likewise.
25480         * modules/netdb: Likewise.
25481         * modules/netinet_in: Likewise.
25482         * modules/poll: Likewise.
25483         * modules/posix_spawnp-tests: Likewise.
25484         * modules/sched: Likewise.
25485         * modules/search: Likewise.
25486         * modules/selinux-h: Likewise.
25487         * modules/signal: Likewise.
25488         * modules/spawn: Likewise.
25489         * modules/stdarg: Likewise.
25490         * modules/stdbool: Likewise.
25491         * modules/stddef: Likewise.
25492         * modules/stdint: Likewise.
25493         * modules/stdio: Likewise.
25494         * modules/stdlib: Likewise.
25495         * modules/string: Likewise.
25496         * modules/strings: Likewise.
25497         * modules/sys_file: Likewise.
25498         * modules/sys_ioctl: Likewise.
25499         * modules/sys_select: Likewise.
25500         * modules/sys_socket: Likewise.
25501         * modules/sys_stat: Likewise.
25502         * modules/sys_time: Likewise.
25503         * modules/sys_times: Likewise.
25504         * modules/sys_utsname: Likewise.
25505         * modules/sys_wait: Likewise.
25506         * modules/sysexits: Likewise.
25507         * modules/time: Likewise.
25508         * modules/unistd: Likewise.
25509         * modules/wchar: Likewise.
25510         * modules/wctype: Likewise.
25511
25512 2009-08-22  Jim Meyering  <meyering@redhat.com>
25513
25514         announce-gen: detect write failure
25515         * build-aux/announce-gen: Add Coda at end.
25516         Remove equivalent-but-more-verbose block at top.
25517
25518 2009-08-19  Akim Demaille  <demaille@gostai.com>
25519
25520         bootstrap: --help to stdout.
25521         * bootstrap (usage): Don't send --help to stderr.
25522         Use a here doc instead of a long string.
25523
25524 2009-08-21  Eric Blake  <ebb9@byu.net>
25525
25526         test-popen-safer: split from test-popen
25527         * tests/test-popen.c (main): Move...
25528         * tests/test-popen.h: ...into new file.
25529         * tests/test-popen-safer2.c: New file.
25530         * modules/popen-tests (Files): Add test-popen.h.
25531         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
25532         Suggested by Bruno Haible.
25533
25534         test-fcntl-safer: split from test-open
25535         * tests/test-open.c (main): Move...
25536         * tests/test-open.h: ...into new file.
25537         * tests/test-fcntl-safer.c: New file.
25538         * modules/open-tests (Files): Add test-open.h.
25539         * modules/fcntl-safer-tests: New file.
25540         Suggested by Bruno Haible.
25541
25542         test-fopen-safer: split from test-fopen
25543         * tests/test-fopen.c (main): Move...
25544         * tests/test-fopen.h: ...into new file.
25545         * tests/test-fopen-safer.c: New file.
25546         * modules/fopen-tests (Files): Add test-fopen.h.
25547         * modules/fopen-safer-tests: New file.
25548         Suggested by Bruno Haible.
25549
25550 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25551
25552         popen-safer: test O_CLOEXEC at run-time.
25553         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
25554
25555 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
25556
25557         fcntl: move more flags to the header
25558         * lib/cloexec.c: Do not define FD_CLOEXEC here.
25559         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
25560         * lib/fcntl.in.h: Do both things here.
25561
25562 2009-08-21  Jim Meyering  <meyering@redhat.com>
25563
25564         consistently remove $@-t before redirecting to it
25565         * modules/argz: Remove $@-t and $@ before redirecting to the former.
25566         * modules/alloca-opt: Likewise.
25567         * modules/byteswap: Likewise.
25568         * modules/fnmatch: Likewise.
25569         * modules/getopt-posix: Likewise.
25570         * modules/glob: Likewise.
25571         * modules/poll: Likewise.
25572         * modules/posix_spawnp-tests: Likewise.
25573         * modules/sys_socket: Likewise.
25574         * modules/sysexits: Likewise.
25575
25576 2009-08-21  Eric Blake  <ebb9@byu.net>
25577
25578         popen: simplify access to original popen
25579         * lib/popen.c (rpl_popen): No need to worry about popen being a
25580         macro.
25581         Reported by Bruno Haible.
25582
25583 2009-08-20  Eric Blake  <ebb9@byu.net>
25584
25585         build: avoid some compiler warnings
25586         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
25587         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
25588         type.
25589         (new_exclude_segment, excluded_file_pattern_p)
25590         (excluded_file_name_p): Reduce scope.
25591         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
25592         old-style declaration.
25593
25594 2009-08-20  Simon Josefsson  <simon@josefsson.org>
25595
25596         * tests/test-exclude1.sh: Handle Windows EOL.
25597         * tests/test-exclude2.sh: Likewise.
25598         * tests/test-exclude3.sh: Likewise.
25599         * tests/test-exclude4.sh: Likewise.
25600         * tests/test-exclude5.sh: Likewise.
25601         * tests/test-exclude6.sh: Likewise.
25602         * tests/test-exclude7.sh: Likewise.
25603
25604 2009-08-19  Akim Demaille  <demaille@gostai.com>
25605
25606         bootstrap: find sha1sum when named gsha1sum.
25607         * bootstrap (find_tool): New.
25608         ($SHA1SUM): New.
25609         Use it.
25610
25611 2009-08-20  Jim Meyering  <meyering@redhat.com>
25612
25613         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
25614         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
25615         expression that converts "." in a file name to "\." in the resulting
25616         regexp.  Start with a dummy statement, so that prior shell variable
25617         definitions are expanded portably.  Reported by Simon Josefsson.
25618
25619 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
25620
25621         Fix polling for writeability of a screen buffer.
25622         * lib/poll.c: Distinguish input and screen buffers for the
25623         Win32 implementation.
25624         * lib/select.c: Likewise.
25625
25626 2009-08-19  Eric Blake  <ebb9@byu.net>
25627
25628         popen-safer: prevent popen from clobbering std descriptors
25629         * modules/popen-safer: New file.
25630         * lib/popen-safer.c: Likewise.
25631         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
25632         * lib/stdio--.h (popen): Provide override.
25633         * lib/stdio-safer.h (popen_safer): Provide declaration.
25634         * tests/test-popen.c (includes): Partially test this.
25635         * modules/popen-safer-tests: New file, for more tests.
25636         * tests/test-popen-safer.c: Likewise.
25637         * MODULES.html.sh (file stream based Input/Output): Mention it.
25638
25639         tests: test some of the *-safer modules
25640         * modules/fopen-safer (Depends-on): Add fopen.
25641         * modules/fcntl-safer (Depends-on): Add fcntl.
25642         * modules/stdlib-safer (Depends-on): Add stdlib.
25643         (configure.ac): Set indicator.
25644         * modules/unistd-safer (configure.ac): Likewise.
25645         * modules/tmpfile-safer (configure.ac): Likewise.
25646         (Depends-on): Add tmpfile.
25647         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
25648         active.
25649         * tests/test-fopen.c (includes): Test safer versions when they are
25650         in use.
25651         * tests/test-open.c (includes): Likewise.
25652
25653         popen: fix cygwin 1.5 bug when stdin closed
25654         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
25655         * modules/popen: New file.
25656         * modules/popen-tests: Likewise.
25657         * tests/test-popen.c: Likewise.
25658         * m4/popen.m4: Likewise.
25659         * lib/popen.c: Likewise.
25660         * lib/stdio.in.h (popen): New declaration.
25661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
25662         * modules/stdio (Makefile.am): Likewise.
25663         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
25664
25665 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
25666
25667         maint.mk: give full control over update-copyright exclusions
25668         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
25669         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
25670         (update-copyright): Don't force inclusion of top-level
25671         ChangeLog.  Don't force exclusion of all COPYING files, but make
25672         them the default exclusion instead.
25673
25674 2009-08-16  Bruno Haible  <bruno@clisp.org>
25675
25676         Fix test failures on Solaris 10.
25677         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
25678         tests when Solaris iconv() is used.
25679         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
25680         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
25681         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
25682         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
25683         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
25684
25685 2009-08-16  Bruno Haible  <bruno@clisp.org>
25686
25687         Fix test failures on Solaris 10.
25688         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
25689         'tr' program and pass it as first argument.
25690         * tests/test-pipe-filter-gi1.sh: Likewise.
25691         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
25692         program as first argument.
25693         * tests/test-pipe-filter-gi1.c (main): Likewise.
25694
25695 2009-08-16  Eric Blake  <ebb9@byu.net>
25696
25697         fpurge: fix previous commits
25698         * modules/fpurge (Makefile.am): Make replacement conditional,
25699         partially reverting 2007-04-29 change; missed in previous
25700         attempt.
25701         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
25702         is missing.
25703
25704 2009-08-16  Bruno Haible  <bruno@clisp.org>
25705
25706         Clarify fpurge's effect on the file position.
25707         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
25708         * tests/test-fpurge.c (main): Make a second pass for checking the file
25709         position.
25710
25711 2009-08-16  Bruno Haible  <bruno@clisp.org>
25712
25713         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
25714         declaration of fpurge is missing.
25715         * tests/test-fpurge.c (main): Check that the file has not more contents
25716         than expected. Close the file before removing it.
25717
25718 2009-08-15  Eric Blake  <ebb9@byu.net>
25719
25720         fpurge: don't wrap working cygwin implementation
25721         * lib/fpurge.c (fpurge): Fix comment typo.
25722         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
25723         1.7 to avoid replacement.
25724         * tests/test-fpurge.c (main): Enhance test.
25725
25726 2009-08-15  Eric Blake  <ebb9@byu.net>
25727         and Jim Meyering  <meyering@redhat.com>
25728
25729         test-update-copyright: skip if perl is insufficient
25730         * tests/test-update-copyright.sh: Failure to run maintainer tool
25731         should not cause testsuite failure on cygwin 1.5.
25732
25733 2009-08-14  Eric Blake  <ebb9@byu.net>
25734
25735         doc: mention more functions added in cygwin 1.7.0
25736         * doc/posix-headers/limits.texi (limits.h): Update for recent
25737         cygwin additions.
25738         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
25739         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
25740         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
25741         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
25742         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
25743
25744 2009-08-14  Eric Blake  <ebb9@byu.net>
25745
25746         maint.mk: simplify update-copyright rule
25747         * top/maint.mk (update-copyright-local): Delete, and document how
25748         to do it in cfg.mk instead.
25749         (update-copyright-exclude-regexp): Delete, and document how to do
25750         it in .x-update-copyright instead.
25751         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
25752         exclude ChangeLog.
25753
25754 2009-08-14  Bruno Haible  <bruno@clisp.org>
25755
25756         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
25757
25758 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25759
25760         maint.mk: support update-copyright-env
25761         * top/maint.mk (update-copyright-env): Define place-holder.
25762         (update-copyright): Expand $(update-copyright-env) before
25763         invoking update-copyright.
25764
25765 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25766
25767         update-copyright: implement forced reformatting
25768         * build-aux/update-copyright: Implement and document
25769         UPDATE_COPYRIGHT_FORCE.
25770         * tests/test-update-copyright.sh: Test it.
25771
25772 2009-08-14  Eric Blake  <ebb9@byu.net>
25773         and Bruno Haible  <bruno@clisp.org>
25774
25775         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
25776         * tests/test-locale.c: Revert previous patch related to NULL.
25777         * tests/test-stdio.c: Likewise.
25778         * tests/test-stdlib.c: Likewise.
25779         * tests/test-string.c: Likewise.
25780         * tests/test-unistd.c: Likewise.
25781         * modules/time-tests (Depends-on): Add verify.
25782         * modules/wchar-tests (Depends-on): Likewise.
25783         * tests/test-time.c: Test for NULL compliance.
25784         * tests/test-wchar.c: Likewise.
25785         * modules/locale (Depends-on): Add stddef.
25786         * modules/stdio (Depends-on): Likewise.
25787         * modules/stdlib (Depends-on): Likewise.
25788         * modules/string (Depends-on): Likewise.
25789         * modules/time (Depends-on): Likewise.
25790         * modules/unistd (Depends-on): Likewise.
25791         * modules/wchar (Depends-on): Likewise.
25792         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
25793         * lib/stdlib.in.h (includes): Likewise.
25794         * lib/string.in.h (includes): Likewise.
25795         * lib/time.in.h (includes): Likewise.
25796         * lib/unistd.in.h (includes): Likewise.
25797         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
25798         replaced.
25799         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25800         * m4/stddef_h.m4: New file.
25801         * modules/stddef: Likewise.
25802         * lib/stddef.in.h: Likewise.
25803         * modules/stddef-tests: Likewise.
25804         * tests/test-stddef.c: Likewise.
25805         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
25806         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
25807         * doc/posix-headers/locale.texi (locale.h): Likewise.
25808         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
25809         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25810         * doc/posix-headers/string.texi (string.h): Likewise.
25811         * doc/posix-headers/time.texi (time.h): Likewise.
25812         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
25813         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
25814
25815 2009-08-14  Eric Blake  <ebb9@byu.net>
25816
25817         doc: improve git diff of texinfo files
25818         * .gitattributes: Add rule for *.texi files, with hint on how to
25819         use it.
25820         Copied from m4, and based on a report by Bruno Haible.
25821
25822 2009-08-14  Bruno Haible  <bruno@clisp.org>
25823
25824         Disable multithread support by default on Cygwin 1.5.x for real.
25825         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
25826
25827 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
25828
25829         update-copyright: much ado about intervals
25830         * build-aux/update-copyright: Implement and document
25831         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
25832         of copyright year intervals.
25833         Also, document UPDATE_COPYRIGHT_YEAR.
25834         * tests/test-update-copyright.sh: Test it.
25835
25836         update-copyright: convert 2-digit to 4-digit years
25837         * build-aux/update-copyright: Implement and document.
25838         * tests/test-update-copyright.sh: Update.
25839
25840 2009-08-14  Jim Meyering  <meyering@redhat.com>
25841
25842         test-exclude: avoid coreutils "make check" failure
25843         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
25844         just as in test-argmatch.c.
25845
25846 2009-08-13  Eric Blake  <ebb9@byu.net>
25847
25848         test-dup2: fix bad assumption
25849         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
25850         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
25851
25852         test-version-etc: fix CRLF portability issue
25853         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
25854         recognize \r.
25855         * tests/test-argp-version-etc-1.sh: Likewise.
25856
25857         getopt: update client modules
25858         * modules/argp (Depends-on): Use getopt-gnu.
25859         * modules/git-merge-changelog (Depends-on): Likewise.
25860         * modules/long-options (Depends-on): Likewise.
25861         * modules/xstrtol (Depends-on): Likewise.
25862
25863 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25864
25865         * tests/test-version-etc.sh: Don't fail on different
25866         project/version.  Don't fail on CRLF differences.  Rewrite to use
25867         multiple -e instead of multiple sed forks, suggested by Eric Blake
25868         <ebb9@byu.net>.
25869         * tests/test-argp-version-etc-1.sh: Likewise.
25870
25871 2009-08-13  Simon Josefsson  <simon@josefsson.org>
25872
25873         * tests/test-version-etc.sh: Don't fail on different
25874         project/version.
25875
25876 2009-08-12  Bruno Haible  <bruno@clisp.org>
25877
25878         Tests for modules 'getopt-posix', 'getopt-gnu'.
25879         * modules/getopt-posix-tests: New file.
25880         * tests/test-getopt.c: New file.
25881         * tests/test-getopt.h: New file.
25882         * tests/test-getopt_long.h: New file.
25883
25884         New modules 'getopt-posix', 'getopt-gnu'.
25885         * modules/getopt-gnu: New file, renamed from modules/getopt.
25886         * modules/getopt-posix: New file.
25887         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
25888         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
25889         (gl_GETOPT): Remove macro.
25890         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
25891         Disable the test against BSD systems that declare optreset. Test
25892         against mingw bug. Test against lack of support of optional arguments
25893         on many platforms.
25894         * doc/glibc-headers/getopt.texi: Update module name and list of
25895         relevant platforms.
25896         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
25897         'getopt-gnu' and more portability problems.
25898         * NEWS: Mention the changes.
25899
25900 2009-08-12  Bruno Haible  <bruno@clisp.org>
25901
25902         Ensure that optarg etc. get declared by <unistd.h>.
25903         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
25904         AC_USE_SYSTEM_EXTENSIONS.
25905         * modules/getopt (Depends-on): Add 'extensions'.
25906
25907 2009-08-12  Bruno Haible  <bruno@clisp.org>
25908
25909         Avoid test link errors.
25910         * modules/pipe-filter-ii-tests (Makefile.am): Define
25911         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
25912         * modules/pipe-filter-gi-tests (Makefile.am): Define
25913         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
25914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25915
25916 2009-08-12  Bruno Haible  <bruno@clisp.org>
25917
25918         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
25919         gl_GETOPT_SUBSTITUTE before.
25920         (gl_GETOPT): Use it.
25921         * m4/argp.m4 (gl_ARGP): Update.
25922         Reported by Sergey Poznyakoff.
25923
25924         * m4/getopt.m4: Reorder macros.
25925         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
25926         (gl_GETOPT_SUBSTITUTE): Remove macro.
25927
25928 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25929
25930         Minor improvement in gitlog-to-changelog
25931
25932         * build-aux/gitlog-to-changelog: New option `--format' makes
25933         output format string configurable.
25934
25935 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25936
25937         Optimize exclude: use hash tables for non-wildcard patterns.
25938
25939         * lib/exclude.c: Include hash.h and mbuiter.h
25940         (struct exclude_pattern, exclude_segment): New data types.
25941         (struct exclude): Rewrite.
25942         (fnmatch_pattern_has_wildcards): New function.
25943         (new_exclude_segment, free_exclude_segment): New functions.
25944         (excluded_file_pattern_p, excluded_file_name_p): New functions.
25945         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
25946         * lib/exclude.h (is_fnmatch_pattern): New prototype.
25947         * modules/exclude: Depend on hash and mbuiter.
25948
25949         * modules/exclude-tests: New file.
25950         * tests/test-exclude.c: New file.
25951         * tests/test-exclude1.sh: New file.
25952         * tests/test-exclude2.sh: New file.
25953         * tests/test-exclude3.sh: New file.
25954         * tests/test-exclude4.sh: New file.
25955         * tests/test-exclude5.sh: New file.
25956         * tests/test-exclude6.sh: New file.
25957         * tests/test-exclude7.sh: New file.
25958
25959 2009-08-12  Bruno Haible  <bruno@clisp.org>
25960
25961         Ensure that getopt() gets declared by <unistd.h>.
25962         * lib/unistd.in.h: Conditionally include getopt.h.
25963         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
25964         Set GNULIB_UNISTD_H_GETOPT.
25965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25966         GNULIB_UNISTD_H_GETOPT.
25967         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
25968
25969 2009-08-12  Bruno Haible  <bruno@clisp.org>
25970
25971         Clarify logic.
25972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
25973         gl_replace_getopt instead of GETOPT_H.
25974
25975 2009-08-12  Bruno Haible  <bruno@clisp.org>
25976
25977         * m4/getopt.m4: Add comments.
25978
25979 2009-08-12  Bruno Haible  <bruno@clisp.org>
25980
25981         Disable multithread support by default on Cygwin 1.5.x.
25982         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
25983         set gl_use_threads=no if not specified otherwise.
25984
25985 2009-08-11  Bruno Haible  <bruno@clisp.org>
25986
25987         Avoid compilation error on NetBSD 5.0.
25988         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
25989         * tests/test-stdio.c: Likewise.
25990         * tests/test-stdlib.c: Likewise.
25991         * tests/test-string.c: Likewise.
25992         * tests/test-unistd.c: Likewise.
25993         Reported by Greg Troxel <gdt@ir.bbn.com>
25994         at <https://savannah.gnu.org/support/?106973>.
25995
25996 2009-08-11  Bruno Haible  <bruno@clisp.org>
25997
25998         * modules/dup2-tests (Depends-on): Remove close.
25999
26000         Undo 2009-07-19 commit.
26001         * modules/acl-tests (Depends-on): Remove close.
26002         * modules/binary-io-tests (Depends-on): Likewise.
26003         * modules/closein-tests (Depends-on): Likewise.
26004         * modules/flock-tests (Depends-on): Likewise.
26005         * modules/fsync-tests (Depends-on): Likewise.
26006         * modules/lseek-tests (Depends-on): Likewise.
26007         * modules/pipe-tests (Depends-on): Likewise.
26008         * modules/posix_spawn-tests (Depends-on): Likewise.
26009         * modules/posix_spawnp-tests (Depends-on): Likewise.
26010         * modules/stat-time-tests (Depends-on): Likewise.
26011         * modules/yesno-tests (Depends-on): Likewise.
26012
26013 2009-08-10  Bruno Haible  <bruno@clisp.org>
26014
26015         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26016
26017 2009-08-10  Bruno Haible  <bruno@clisp.org>
26018
26019         Fix a gcc warning.
26020         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26021
26022 2009-08-10  Bruno Haible  <bruno@clisp.org>
26023
26024         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26025         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26026         not only the first time.
26027         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26028         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26029         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26030         is 1, not only the the first time.
26031
26032 2009-08-10  Bruno Haible  <bruno@clisp.org>
26033
26034         Make it possible to use module 'gethostname' without module 'close'.
26035         * lib/unistd.in.h (close): Evoke a link error only if
26036         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26038         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26039         * modules/unistd (Makefile.am): Substitute
26040         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26041         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26042         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26043         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26044         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26045         * modules/sys_ioctl (Makefile.am): Substitute
26046         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26047         * modules/socket (configure.ac): On native Windows, set
26048         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26049         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26050         Reported by Sam Steingold <sds@gnu.org>.
26051
26052 2009-08-10  Bruno Haible  <bruno@clisp.org>
26053
26054         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26055         * modules/ioctl (configure.ac): Likewise.
26056
26057 2009-08-10  Bruno Haible  <bruno@clisp.org>
26058
26059         Avoid collision between gnulib wrapper and libintl wrapper.
26060         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26061         already defined in intl/printf.c.
26062         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26063         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26064
26065 2009-08-09  Bruno Haible  <bruno@clisp.org>
26066
26067         Make <sys/select.h> really self-contained, also on Solaris 10.
26068         * lib/sys_select.in.h: Include <string.h>.
26069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26070         Solaris 10 problem.
26071         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26072         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26073         Reported by Jim Meyering.
26074
26075 2009-08-09  Bruno Haible  <bruno@clisp.org>
26076
26077         Avoid warnings from 'aclocal' that are due to a use of macro name
26078         AM_XGETTEXT_OPTION that is not defined in automake.
26079         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26080         automake.
26081         * modules/error (configure.ac): Likewise.
26082         * modules/propername (configure.ac): Likewise.
26083         * modules/vasprintf (configure.ac): Likewise.
26084         * modules/verror (configure.ac): Likewise.
26085         * modules/xprintf (configure.ac): Likewise.
26086         * modules/xvasprintf (configure.ac): Likewise.
26087
26088 2009-08-08  Bruno Haible  <bruno@clisp.org>
26089
26090         Avoid compilation error in C++ mode.
26091         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26092         Reported by Sam Steingold <sds@gnu.org>.
26093
26094 2009-08-08  Bruno Haible  <bruno@clisp.org>
26095
26096         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26097         for the various Unix platforms.
26098         * doc/posix-headers/limits.texi: Update platforms list regarding
26099         HOST_NAME_MAX.
26100         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26101
26102 2009-08-07  Jim Meyering  <meyering@redhat.com>
26103
26104         selinux-at: fix typo in a comment
26105         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26106         Spotted by Paolo Bonzini.
26107
26108         selinux-at: remove redundant m4 code, add documentation
26109         * modules/selinux-at (configure.ac): Remove redundant code.
26110         LIB_SELINUX is already set via the dependent module, selinux-h.
26111         (Include): Add quotes around selinux-at.h.
26112         * lib/selinux-at.h: Add documentation.
26113         Reported by Bruno Haible in
26114         http://marc.info/?l=gnulib-bug&m=124958988300749
26115
26116 2009-08-07  Bruno Haible  <bruno@clisp.org>
26117
26118         Avoid link error on MacOS X 10.3 and 10.4.
26119         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26120         on non-ELF systems.
26121         * lib/argp-pv.c (argp_program_version): Likewise.
26122         Reported by Simon Josefsson.
26123
26124 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26125
26126         * tests/test-version-etc.sh: Use $EXEEXT.
26127
26128 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26129
26130         update-copyright: update documentation to point to maint.mk
26131         * build-aux/update-copyright: Here.
26132
26133 2009-08-06  Jim Meyering  <meyering@redhat.com>
26134
26135         maint.mk: support update-copyright-local
26136         * top/maint.mk (update-copyright-local): Define place-holder.
26137         (update-copyright): Depend on $(update-copyright-local).
26138
26139 2009-08-06  Jim Meyering  <meyering@redhat.com>
26140
26141         selinux-at: new module
26142         Initially written for coreutils, this module will soon be
26143         used by findutils, too.
26144         * MODULES.html.sh [Misc]: Add selinux-at.
26145         * lib/selinux-at.h: New file, from coreutils.
26146         * lib/selinux-at.c: Likewise.
26147         * modules/selinux-at: Likewise.
26148         (License): Change from LGPL to GPL, since it depends
26149         on the GPL'd openat module.
26150
26151         doc: update README
26152         * README: Remove references to cogito.
26153         Remove cvs-repo-updating instructions from 2007.
26154         Don't imply that CVS is better if you have limited disk space.
26155
26156 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26157
26158         update-copyright: support C-style comments
26159         * build-aux/update-copyright: Implement and document.
26160         * tests/test-update-copyright.sh: Test.
26161
26162 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26163
26164         update-copyright: support omitted "(C)"
26165         * build-aux/update-copyright: Implement and document.  Also,
26166         allow variable whitespace before "(C)".
26167         * tests/test-update-copyright.sh: Test.
26168
26169 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26170
26171         update-copyright: don't trip on non-FSF copyright statements
26172         * build-aux/update-copyright: Fix so that the first correctly
26173         formatted FSF copyright statement is recognized no matter what
26174         appears before it.  Update documentation.
26175         * tests/test-update-copyright.sh: Test that.
26176
26177 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26178
26179         update-copyright: clean up code a little
26180         * build-aux/update-copyright: Append "_re" to the name of any
26181         variable holding a regular expression.
26182         Replace "old" and "new" with "stmt" in variable names.
26183         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26184         handled correctly.
26185         Format code more consistently.
26186
26187 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26188
26189         update-copyright-tests: improve portability
26190         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26191         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26192
26193 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26194
26195         update-copyright: support @copyright{} and &copy;
26196         * build-aux/update-copyright: Implement and document.
26197         * tests/test-update-copyright.sh: Test.
26198
26199 2009-08-04  Jim Meyering  <meyering@redhat.com>
26200
26201         update-copyright-tests: correctly test EOL=\r\n handling
26202         * tests/test-update-copyright.sh: Put \r at the end of some lines
26203         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26204
26205         maint.mk: make update-copyright exclusion list more configurable
26206         * top/maint.mk (update-copyright): Default to excluding COPYING,
26207         but allow an override, in case someone does want to update that file.
26208
26209         maint.mk: don't update copyright date in COPYING
26210         * top/maint.mk (update-copyright): Exclude COPYING.
26211
26212         maint.mk: add a copyright-updating rule
26213         * top/maint.mk (update-copyright): New rule.
26214         Derived from coreutils/Makefile.am.
26215
26216         update-copyright: rename some variables
26217         * build-aux/update-copyright: Rename a few variables for clarity.
26218         Tweak syntax.  List Joel E. Denny as coauthor.
26219
26220 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26221
26222         update-copyright: fix bug for 2-digit last year and add tests
26223         * build-aux/update-copyright: Fix bug.
26224         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
26225         specified.
26226         * modules/update-copyright-tests: New
26227         * tests/test-update-copyright.sh: New.
26228
26229 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26230
26231         update-copyright: handle leading tabs in line prefix
26232         * build-aux/update-copyright: Count leading tabs as 8 spaces
26233         when computing margin.  This helps with the formatting of
26234         ChangeLogs, for example.
26235         Fix documentation a little.
26236
26237 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26238
26239         update-copyright: support EOL=\r\n
26240         * build-aux/update-copyright: Implement that.
26241
26242 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
26243
26244         update-copyright: automatically format copyright statements
26245         * build-aux/update-copyright: Implement that.
26246         Also, be a little more predictable and safer by always failing
26247         when the full copyright format is not perfectly recognized as an
26248         unbroken whole.  Discussed at
26249         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
26250         Rewrite documentation.
26251
26252 2009-08-03  Bruno Haible  <bruno@clisp.org>
26253
26254         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
26255
26256 2009-08-02  Bruno Haible  <bruno@clisp.org>
26257
26258         Tests for module 'uname'.
26259         * modules/uname-tests: New file.
26260         * tests/test-uname.c: New file.
26261
26262         New module 'uname'.
26263         * lib/uname.c: New file.
26264         * m4/uname.m4: New file.
26265         * modules/uname: New file.
26266         * doc/posix-functions/uname.texi: Mention the new module.
26267
26268 2009-08-02  Bruno Haible  <bruno@clisp.org>
26269
26270         Tests for module 'sys_utsname'.
26271         * modules/sys_utsname-tests: New file.
26272         * tests/test-sys_utsname.c: New file.
26273
26274         New module 'sys_utsname'.
26275         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
26276         * m4/sys_utsname_h.m4: New file.
26277         * modules/sys_utsname: New file.
26278         * doc/posix-headers/sys_utsname.texi: Mention the new module.
26279
26280 2009-08-02  Bruno Haible  <bruno@clisp.org>
26281
26282         Implicitly initialize the sockets library.
26283         * lib/gethostname.c: Include sockets.h.
26284         (rpl_gethostname): Invoke gl_sockets_startup.
26285         * lib/socket.c: Include sockets.h.
26286         (rpl_socket): Invoke gl_sockets_startup.
26287         * modules/gethostname (Depends-on): Add sockets.
26288         * modules/socket (Depends-on): Likewise.
26289         * tests/test-poll.c: Don't include sockets.h.
26290         (main): Don't invoke gl_sockets_startup.
26291         * tests/test-select.c: Don't include sockets.h.
26292         (main): Don't invoke gl_sockets_startup.
26293
26294 2009-08-02  Bruno Haible  <bruno@clisp.org>
26295
26296         Allow multiple calls to gl_sockets_startup.
26297         * lib/sockets.c (initialized_sockets_version): New variable.
26298         (gl_sockets_startup): Do nothing if already called for this or a higher
26299         version.
26300         (gl_sockets_cleanup): Reset initialized_sockets_version.
26301
26302 2009-08-03  Simon Josefsson  <simon@josefsson.org>
26303
26304         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
26305         different project/version.
26306
26307 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
26308             Bruno Haible  <bruno@clisp.org>
26309
26310         Tests for module 'pipe-filter-gi'.
26311         * modules/pipe-filter-gi-tests: New file.
26312         * tests/test-pipe-filter-gi1.sh: New file.
26313         * tests/test-pipe-filter-gi1.c: New file.
26314         * tests/test-pipe-filter-gi2.sh: New file.
26315         * tests/test-pipe-filter-gi2-main.c: New file.
26316         * tests/test-pipe-filter-gi2-child.c: New file.
26317
26318         New module 'pipe-filter-gi'.
26319         * lib/pipe-filter-gi.c: New file.
26320         * modules/pipe-filter-gi: New file.
26321
26322 2009-08-02  Bruno Haible  <bruno@clisp.org>
26323             Paolo Bonzini  <bonzini@gnu.org>
26324
26325         Tests for module 'pipe-filter-ii'.
26326         * modules/pipe-filter-ii-tests: New file.
26327         * tests/test-pipe-filter-ii1.sh: New file.
26328         * tests/test-pipe-filter-ii1.c: New file.
26329         * tests/test-pipe-filter-ii2.sh: New file.
26330         * tests/test-pipe-filter-ii2-main.c: New file.
26331         * tests/test-pipe-filter-ii2-child.c: New file.
26332
26333         New module 'pipe-filter-ii'.
26334         * lib/pipe-filter.h: New file.
26335         * lib/pipe-filter-ii.c: New file.
26336         * lib/pipe-filter-aux.h: New file.
26337         * modules/pipe-filter-ii: New file.
26338
26339 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26340
26341         * lib/gc-libgcrypt.c: Change copyright to FSF.
26342         * lib/gc-gnulib.c: Likewise.
26343
26344 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
26345
26346         * lib/gethostname.c: Include limits.h.
26347
26348 2009-08-02  Simon Josefsson  <simon@josefsson.org>
26349             Bruno Haible  <bruno@clisp.org>
26350
26351         Ensure HOST_NAME_MAX as part of the gethostname module.
26352         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
26353         define also HOST_NAME_MAX.
26354         * tests/test-gethostname.c: Include <limits.h>.
26355         (main): Check also HOST_NAME_MAX.
26356         * doc/posix-headers/limits.texi: Document the mingw problem.
26357
26358 2009-08-02  Bruno Haible  <bruno@clisp.org>
26359
26360         * lib/gethostname.c (gethostname): Fix handling of large len argument.
26361         Add comments.
26362
26363 2009-03-31  Simon Josefsson  <simon@josefsson.org>
26364
26365         * lib/gethostname.c: Add Windows wrapper.
26366         * m4/gethostname.m4: Look for gethostname in -lws2_32.
26367         * modules/gethostname: Depend on sys_socket & errno, for also
26368         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
26369         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
26370
26371 2009-07-31  Jim Meyering  <meyering@redhat.com>
26372
26373         getloadavg: fix symbol name in comment
26374         * lib/getloadavg.c: Correct a typo I introduced when adding
26375         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
26376         Matt Kraai spotted the problem.
26377
26378 2009-07-29  Matt Kraai  <mkraai@beckman.com>
26379
26380         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
26381         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
26382         code also if ! defined N_NAME_POINTER.
26383         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
26384         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
26385         but the n_name member is a 12-byte array.
26386
26387 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
26388
26389         update-copyright: generalize comment handling
26390         * build-aux/update-copyright: Handle copyright statements
26391         within more comment styles.
26392         Document usage.
26393         Report any file with an external copyright holder or parse failure.
26394
26395 2009-07-29  Jim Meyering  <meyering@redhat.com>
26396
26397         mktime: correct setting of REPLACE_MKTIME
26398         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
26399
26400         update-copyright: new module
26401         * modules/update-copyright: New file.
26402         * build-aux/update-copyright: New file.
26403         * MODULES.html.sh (maint+release support): Add update-copyright.
26404
26405 2009-07-27  Bruno Haible  <bruno@clisp.org>
26406
26407         Fix compilation error when <ctime> is used and mktime is replaced.
26408         * lib/time.in.h (mktime): New declaration.
26409         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
26410         REPLACE_MKTIME instead of defining mktime in config.h.
26411         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
26412         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
26413         Reported by Ross McFarland <rwmcfa1@neces.com>.
26414
26415 2009-07-27  Bruno Haible  <bruno@clisp.org>
26416
26417         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
26418         Reported by Matt Kraai <mkraai@beckman.com>.
26419
26420 2009-07-25  Jim Meyering  <meyering@redhat.com>
26421
26422         maint.mk: avoid warnings about missing files
26423         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
26424         diagnostic when .prev-version does not exist.
26425         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
26426         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
26427         nonexistent cfg.mk.
26428         Suggestions from Simon Josefsson.
26429
26430 2009-07-25  Bruno Haible  <bruno@clisp.org>
26431
26432         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
26433         defined as macros. Needed on QNX 6.4.1.
26434         Reported by Matt Kraai <mkraai@beckman.com>.
26435
26436 2009-07-23  Jim Meyering  <meyering@redhat.com>
26437
26438         maint.mk: invoke "make dist" with a working value of XZ_OPT
26439         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
26440
26441 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
26442
26443         Make fseeko.c compile on QNX.
26444         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
26445
26446 2009-07-22  Peter Simons  <simons@cryp.to>
26447
26448         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
26449         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
26450         * lib/md4.h: Likewise.
26451         * lib/md5.h: Likewise.
26452         * lib/sha1.h: Likewise.
26453         * lib/sha256.h: Likewise.
26454         * lib/sha512.h: Likewise.
26455
26456         tests-sha1: don't assign literal string to 'char *' variable
26457         * tests/test-sha1.c (main): Declare locals with "const" to match
26458         attributes of the right hand side.
26459
26460 2009-07-21  Eric Blake  <ebb9@byu.net>
26461
26462         dup2: fix more mingw problems
26463         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
26464         fd to itself.
26465         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26466         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
26467         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
26468         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
26469         care of mingw bugs.
26470
26471 2009-07-21  Jim Meyering  <meyering@redhat.com>
26472
26473         vc-list-files: avoid failure when /bin/sh is dash
26474         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
26475         On some Debian based systems, /bin/sh is a symlink to dash, and running
26476         this command would omit the "/" following each 'tests' prefix:
26477           dash -x build-aux/vc-list-files -C . tests
26478         That is because bash and dash work differently:
26479           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
26480           bash ok
26481           dash odd
26482
26483 2009-07-21  Eric Blake  <ebb9@byu.net>
26484
26485         dup2-tests: test previous patch
26486         * modules/dup2-tests: New file.
26487         * tests/test-dup2.c: Likewise.
26488         * tests/test-open.c (main): Avoid unspecified behavior.
26489         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
26490         test.
26491
26492         dup2: work around mingw and cygwin 1.5 bug
26493         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
26494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26495         * modules/unistd (Makefile.am): Substitute it.
26496         * lib/unistd.in.h (dup2): Declare the replacement.
26497         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
26498         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
26499         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
26500         * modules/execute (Depends-on): Add dup2.
26501         * modules/fseterr (Depends-on): Likewise.
26502         * modules/pipe (Depends-on): Likewise.
26503         * modules/posix_spawn-internal (Depends-on): Likewise.
26504
26505 2009-07-21  Bruno Haible  <bruno@clisp.org>
26506
26507         * modules/.gitattributes: New file.
26508
26509 2009-07-20  Bruno Haible  <bruno@clisp.org>
26510
26511         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
26512         (main): Use it.
26513
26514 2009-07-20  Eric Blake  <ebb9@byu.net>
26515
26516         test-pipe: make a bit more robust.
26517         * tests/test-pipe.c (myerr): Allow error messages regardless of
26518         what we do to stderr.
26519         (test_pipe): Rearrange to avoid deadlock.
26520         (child_main): Try a larger read, to ensure we avoided deadlock.
26521         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
26522         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
26523         if misused.
26524
26525 2009-07-19  Jim Meyering  <meyering@redhat.com>
26526
26527         fts: avoid false-positive cycle-detection
26528         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
26529         for each new command line argument.
26530
26531 2009-07-19  Bruno Haible  <bruno@clisp.org>
26532
26533         Fix build error on mingw with the modules sys_select and unistd.
26534         * modules/acl-tests (Depends-on): Add close.
26535         * modules/binary-io-tests (Depends-on): Likewise.
26536         * modules/closein-tests (Depends-on): Likewise.
26537         * modules/flock-tests (Depends-on): Likewise.
26538         * modules/fsync-tests (Depends-on): Likewise.
26539         * modules/lseek-tests (Depends-on): Likewise.
26540         * modules/pipe-tests (Depends-on): Likewise.
26541         * modules/posix_spawn-tests (Depends-on): Likewise.
26542         * modules/posix_spawnp-tests (Depends-on): Likewise.
26543         * modules/stat-time-tests (Depends-on): Likewise.
26544         * modules/yesno-tests (Depends-on): Likewise.
26545
26546 2009-07-19  Bruno Haible  <bruno@clisp.org>
26547
26548         Unify conditionals.
26549         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
26550         macros, not at the compiler macros.
26551         * lib/pipe.c: Likewise.
26552         * lib/execute.c: Likewise.
26553         * lib/spawni.c: Likewise.
26554
26555 2009-07-19  Bruno Haible  <bruno@clisp.org>
26556
26557         Fix handling of closed stdin/stdout/stderr on mingw.
26558         * lib/w32spawn.h: Include unistd.h.
26559         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
26560         file descriptor with O_NOINHERIT flag.
26561         (fd_safer_noinherit): New function, based on fd-safer.c.
26562         (dup_safer_noinherit): New function, based on dup-safer.c.
26563         (undup_safer_noinherit): New function.
26564         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
26565         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
26566         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
26567         instead of fd_safer.
26568         * tests/test-pipe.c: Include <windows.h>.
26569         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
26570
26571         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
26572         from main.
26573         (test_pipe): Pass an extra argument for disambiguation.
26574         (main): Invoke parent_main or child_main.
26575
26576         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
26577         consistently.
26578
26579 2009-07-18  Eric Blake  <ebb9@byu.net>
26580
26581         test-pipe: fix mingw build
26582         * tests/test-pipe.c (main): Avoid fcntl on mingw.
26583
26584 2009-07-18  Bruno Haible  <bruno@clisp.org>
26585
26586         * modules/pipe-tests (Makefile.am): Fix typo.
26587
26588 2009-07-18  Eric Blake  <ebb9@byu.net>
26589
26590         error: fix mingw build
26591         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
26592         Reported by Bruno Haible.
26593
26594         error: avoid undefined use of stdout
26595         * lib/error.c (error, error_at_line): Check that fd 1 is open
26596         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
26597         is handling faults and the close_stdout module wants to report the
26598         detection of closed stdout as an error.
26599
26600 2009-07-17  Eric Blake  <ebb9@byu.net>
26601
26602         pipe: be robust in face of closed fds
26603         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
26604         should cause child to misbehave.
26605         * modules/pipe-tests: New module.
26606         * tests/test-pipe.c: New file.
26607         * tests/test-pipe.sh: New file.
26608         Reported by Akim Demaille.
26609
26610 2009-07-14  Bruno Haible  <bruno@clisp.org>
26611
26612         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
26613         Reported by anonymous kc.
26614
26615 2009-07-07  Jim Meyering  <meyering@redhat.com>
26616
26617         maint.mk: don't look for translatable strings in *.m4 or *.mk
26618         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
26619         when searching for translatable strings.
26620
26621 2009-07-05  Jim Meyering  <meyering@redhat.com>
26622
26623         remove superfluous parentheses in STREQ definition
26624         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
26625         * lib/getugroups.c (STREQ): Likewise.
26626         * lib/fnmatch.c (STREQ): Likewise.
26627         Spotted by Bruno Haible.
26628
26629 2009-07-04  Jim Meyering  <meyering@redhat.com>
26630
26631         argv-iter: new module
26632         * MODULES.html.sh: Add argv-iter.
26633         * lib/argv-iter.c, lib/argv-iter.h: New files.
26634         * modules/argv-iter: New file.
26635         * modules/argv-iter-tests: New file.
26636         * tests/test-argv-iter.c: Test it.
26637
26638 2009-07-04  Bruno Haible  <bruno@clisp.org>
26639
26640         Fix assertion.
26641         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
26642         contains more exact copies of a given entry than file2, leave the extra
26643         copies unpaired rather than aborting.
26644         Reported by Eric Blake.
26645
26646 2009-07-02  Bruno Haible  <bruno@clisp.org>
26647
26648         Speedup git-merge-changelog for git cherry-pick.
26649         * lib/git-merge-changelog.c (struct entries_mapping): New type.
26650         (entries_mapping_get): New function, extracted from compute_mapping.
26651         (entries_mapping_reverse_get): New function.
26652         (compute_mapping): Add a 'full' argument. Return the result in a
26653         'struct entries_mapping'.
26654         (main): Update. Access the mappings through entries_mapping_get.
26655         Reported by Eric Blake.
26656
26657 2009-07-02  Bruno Haible  <bruno@clisp.org>
26658
26659         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
26660         best_i.
26661
26662 2009-07-02  Bruno Haible  <bruno@clisp.org>
26663
26664         Speed up approximate search for matching ChangeLog entries.
26665         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
26666         argument. Call fstrcmp_bounded instead of fstrcmp.
26667         (compute_mapping, try_split_merged_entry, main): Update callers.
26668
26669 2009-07-02  Bruno Haible  <bruno@clisp.org>
26670
26671         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
26672
26673 2009-06-30  Bruno Haible  <bruno@clisp.org>
26674
26675         Reduce the number of uc_is_cased calls.
26676         * lib/unicase.h (casing_suffix_context_t): Add
26677         'first_char_except_ignorable' field.
26678         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
26679         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
26680         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
26681         Update initializer.
26682         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
26683         case-ignorable characters.
26684         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
26685         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
26686         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
26687         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
26688         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
26689
26690 2009-06-30  Bruno Haible  <bruno@clisp.org>
26691
26692         Tests for module 'unicase/ignorable'.
26693         * modules/unicase/ignorable-tests: New file.
26694         * tests/unicase/test-ignorable.c: New file, generated by
26695         gen-uni-tables.
26696
26697         Tests for module 'unicase/cased'.
26698         * modules/unicase/cased-tests: New file.
26699         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
26700         * tests/unicase/test-predicate-part1.h: New file, derived from
26701         tests/unictype/test-predicate-part1.h.
26702         * tests/unicase/test-predicate-part2.h: New file, same as
26703         tests/unictype/test-predicate-part2.h.
26704
26705         Fix evaluation of "Before C" condition of FINAL_SIGMA.
26706         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
26707         (output_casing_properties): New function.
26708         (main): Call it.
26709         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
26710         * lib/unicase/cased.c: Include unictype/bitmap.h.
26711         (uc_is_cased): Define through a bitmap lookup.
26712         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
26713         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
26714         (uc_is_case_ignorable): Define through a bitmap lookup.
26715         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
26716         lib/unictype/bitmap.h.
26717         (Depends-on): Add inline. Clean up.
26718         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
26719         lib/unictype/bitmap.h.
26720         (Depends-on): Add inline. Clean up.
26721         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
26722         recognition.
26723         * tests/unicase/test-u16-tolower.c (main): Likewise.
26724         * tests/unicase/test-u32-tolower.c (main): Likewise.
26725
26726 2009-06-30  Bruno Haible  <bruno@clisp.org>
26727
26728         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
26729         * lib/unicase/u16-casemap.c: Likewise.
26730         * lib/unicase/u32-casemap.c: Likewise.
26731
26732 2009-06-29  Bruno Haible  <bruno@clisp.org>
26733
26734         Define u32_casefold as a wrapper around u32_ct_casefold.
26735         * lib/unicase/u32-casefold.c: Update.
26736         * modules/unicase/u32-casefold (Depends-on): Add
26737         unicase/u32-ct-casefold, unicase/empty-prefix-context,
26738         unicase/empty-suffix-context. Clean up.
26739
26740         Define u16_casefold as a wrapper around u16_ct_casefold.
26741         * lib/unicase/u16-casefold.c: Update.
26742         * modules/unicase/u16-casefold (Depends-on): Add
26743         unicase/u16-ct-casefold, unicase/empty-prefix-context,
26744         unicase/empty-suffix-context. Clean up.
26745
26746         Define u8_casefold as a wrapper around u8_ct_casefold.
26747         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
26748         * lib/unicase/u8-casefold.c: Update.
26749         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
26750         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26751
26752         Define u32_totitle as a wrapper around u32_ct_totitle.
26753         * lib/unicase/u32-totitle.c: Update.
26754         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
26755         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26756
26757         Define u16_totitle as a wrapper around u16_ct_totitle.
26758         * lib/unicase/u16-totitle.c: Update.
26759         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
26760         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26761
26762         Define u8_totitle as a wrapper around u8_ct_totitle.
26763         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
26764         functions.
26765         (FUNC): Delegate to U_CT_TOTITLE.
26766         * lib/unicase/u8-totitle.c: Update.
26767         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
26768         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
26769
26770         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
26771         invocation.
26772         * modules/unicase/u32-tolower (Depends-on): Add
26773         unicase/empty-prefix-context, unicase/empty-suffix-context.
26774
26775         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
26776         invocation.
26777         * modules/unicase/u16-tolower (Depends-on): Add
26778         unicase/empty-prefix-context, unicase/empty-suffix-context.
26779
26780         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
26781         * modules/unicase/u8-tolower (Depends-on): Add
26782         unicase/empty-prefix-context, unicase/empty-suffix-context.
26783
26784         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
26785         invocation.
26786         * modules/unicase/u32-toupper (Depends-on): Add
26787         unicase/empty-prefix-context, unicase/empty-suffix-context.
26788
26789         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
26790         invocation.
26791         * modules/unicase/u16-toupper (Depends-on): Add
26792         unicase/empty-prefix-context, unicase/empty-suffix-context.
26793
26794         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
26795         * modules/unicase/u8-toupper (Depends-on): Add
26796         unicase/empty-prefix-context, unicase/empty-suffix-context.
26797
26798         New module 'unicase/u32-ct-casefold'.
26799         * lib/unicase/u32-ct-casefold.c: New file.
26800         * modules/unicase/u32-ct-casefold: New file.
26801
26802         New module 'unicase/u16-ct-casefold'.
26803         * lib/unicase/u16-ct-casefold.c: New file.
26804         * modules/unicase/u16-ct-casefold: New file.
26805
26806         New module 'unicase/u8-ct-casefold'.
26807         * lib/unicase/u8-ct-casefold.c: New file.
26808         * lib/unicase/u-ct-casefold.h: New file, derived from
26809         lib/unicase/u-casefold.h.
26810         * modules/unicase/u8-ct-casefold: New file.
26811
26812         New module 'unicase/u32-ct-totitle'.
26813         * lib/unicase/u32-ct-totitle.c: New file.
26814         * modules/unicase/u32-ct-totitle: New file.
26815
26816         New module 'unicase/u16-ct-totitle'.
26817         * lib/unicase/u16-ct-totitle.c: New file.
26818         * modules/unicase/u16-ct-totitle: New file.
26819
26820         New module 'unicase/u8-ct-totitle'.
26821         * lib/unicase/u8-ct-totitle.c: New file.
26822         * lib/unicase/u-ct-totitle.h: New file, derived from
26823         lib/unicase/u-totitle.h.
26824         * modules/unicase/u8-ct-totitle: New file.
26825
26826         New module 'unicase/u32-ct-tolower'.
26827         * lib/unicase/u32-ct-tolower.c: New file.
26828         * modules/unicase/u32-ct-tolower: New file.
26829
26830         New module 'unicase/u16-ct-tolower'.
26831         * lib/unicase/u16-ct-tolower.c: New file.
26832         * modules/unicase/u16-ct-tolower: New file.
26833
26834         New module 'unicase/u8-ct-tolower'.
26835         * lib/unicase/u8-ct-tolower.c: New file.
26836         * modules/unicase/u8-ct-tolower: New file.
26837
26838         New module 'unicase/u32-ct-toupper'.
26839         * lib/unicase/u32-ct-toupper.c: New file.
26840         * modules/unicase/u32-ct-toupper: New file.
26841
26842         New module 'unicase/u16-ct-toupper'.
26843         * lib/unicase/u16-ct-toupper.c: New file.
26844         * modules/unicase/u16-ct-toupper: New file.
26845
26846         New module 'unicase/u8-ct-toupper'.
26847         * lib/unicase/u8-ct-toupper.c: New file.
26848         * modules/unicase/u8-ct-toupper: New file.
26849
26850         Add context arguments to u*_casemap functions.
26851         * lib/unicase/unicasemap.h: Include unicase.h.
26852         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
26853         suffix_context arguments.
26854         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
26855         functions.
26856         (FUNC): Add prefix_context and suffix_context arguments. Use
26857         uc_is_cased and uc_is_case_ignorable.
26858         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
26859         * lib/unicase/u16-casemap.c: Likewise.
26860         * lib/unicase/u32-casemap.c: Likewise.
26861         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
26862         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26863         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
26864         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26865         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
26866         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
26867
26868         New module 'unicase/u32-suffix-context'.
26869         * lib/unicase/u32-suffix-context.c: New file.
26870         * modules/unicase/u32-suffix-context: New file.
26871
26872         New module 'unicase/u16-suffix-context'.
26873         * lib/unicase/u16-suffix-context.c: New file.
26874         * modules/unicase/u16-suffix-context: New file.
26875
26876         New module 'unicase/u8-suffix-context'.
26877         * lib/unicase/u8-suffix-context.c: New file.
26878         * lib/unicase/u-suffix-context.h: New file.
26879         * modules/unicase/u8-suffix-context: New file.
26880
26881         New module 'unicase/empty-suffix-context'.
26882         * lib/unicase/empty-suffix-context.c: New file.
26883         * modules/unicase/empty-suffix-context: New file.
26884
26885         New module 'unicase/u32-prefix-context'.
26886         * lib/unicase/u32-prefix-context.c: New file.
26887         * modules/unicase/u32-prefix-context: New file.
26888
26889         New module 'unicase/u16-prefix-context'.
26890         * lib/unicase/u16-prefix-context.c: New file.
26891         * modules/unicase/u16-prefix-context: New file.
26892
26893         New module 'unicase/u8-prefix-context'.
26894         * lib/unicase/u8-prefix-context.c: New file.
26895         * lib/unicase/u-prefix-context.h: New file.
26896         * lib/unicase/context.h: New file.
26897         * modules/unicase/u8-prefix-context: New file.
26898
26899         New module 'unicase/empty-prefix-context'.
26900         * lib/unicase/empty-prefix-context.c: New file.
26901         * modules/unicase/empty-prefix-context: New file.
26902
26903         New module 'unicase/ignorable'.
26904         * lib/unicase/ignorable.c: New file.
26905         * modules/unicase/ignorable: New file.
26906
26907         New module 'unicase/cased'.
26908         * lib/unicase/caseprop.h: New file.
26909         * lib/unicase/cased.c: New file.
26910         * modules/unicase/cased: New file.
26911
26912         New functions for case mapping of substrings.
26913         * lib/unicase.h (casing_prefix_context_t): New type.
26914         (unicase_empty_prefix_context): New variable.
26915         (u8_casing_prefix_context, u16_casing_prefix_context,
26916         u32_casing_prefix_context, u8_casing_prefixes_context,
26917         u16_casing_prefixes_context, u32_casing_prefixes_context): New
26918         declarations.
26919         (casing_suffix_context_t): New type.
26920         (unicase_empty_suffix_context): New variable.
26921         (u8_casing_suffix_context, u16_casing_suffix_context,
26922         u32_casing_suffix_context, u8_casing_suffixes_context,
26923         u16_casing_suffixes_context, u32_casing_suffixes_context,
26924         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
26925         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
26926         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
26927         declarations.
26928
26929 2009-06-28  Jim Meyering  <meyering@redhat.com>
26930
26931         boostrap: indent only with spaces
26932         * build-aux/bootstrap: Indent only with spaces, never TABs.
26933
26934         bootstrap: split long lines
26935         * build-aux/bootstrap: Keep line length < 80.
26936
26937         bootstrap: sync from coreutils
26938         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
26939         just as autoreconf does.  Verify a list of prerequisite
26940         package-name,version-number pairs if defined in bootstrap.conf.
26941         Refer to README-prereq, if prerequisites are not satisfied.
26942
26943 2009-06-27  Eric Blake  <ebb9@byu.net>
26944
26945         tests: add test for bogus NULL definition
26946         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
26947         * tests/test-stdlib.c: Likewise.
26948         * tests/test-string.c: Likewise.
26949         * tests/test-locale.c: Likewise.
26950         * tests/test-unistd.c: Likewise.
26951         * modules/stdio-tests (Depends-on): Add verify.
26952         * modules/stdlib-tests (Depends-on): Likewise.
26953         * modules/string-tests (Depends-on): Likewise.
26954         * modules/locale-tests (Depends-on): Likewise.
26955         * modules/unistd-tests (Depends-on): Likewise.
26956
26957 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
26958
26959         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
26960         self-explaining comment.
26961         * m4/selinux-selinux-h: Update serial.
26962         (gl_LIBSELINUX): New macro, adding a warning for missing development
26963         packages to code extracted from...
26964         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
26965         Add warning for missing development packages here, too.
26966
26967 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
26968
26969         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
26970
26971 2009-06-25  Eric Blake  <ebb9@byu.net>
26972
26973         version-etc: fix regression
26974         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
26975         gcc.
26976         (version_etc): Use it, to catch bugs with trailing NULL.
26977         * lib/version-etc.c (version_etc_arn): Delete unused argument.
26978         (version_etc_va): Fix logic bug.
26979         * modules/version-etc-tests: Add test.
26980         * tests/test-version-etc.c: New file.
26981         * tests/test-version-etc.sh: Likewise.
26982
26983 2009-06-25  Sam Steingold  <sds@gnu.org>
26984
26985         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
26986         mbtowc declaration.
26987
26988 2009-06-25  Eric Blake  <ebb9@byu.net>
26989
26990         fpurge: migrate into <stdio.h>
26991         * lib/fpurge.h: Delete...
26992         * lib/stdio.in.h (fpurge): ...and declare here, instead.
26993         * lib/fpurge.c (fpurge): Change declaring header.
26994         * modules/fpurge (Files): Drop deleted file.
26995         (Depends-on): Add stdio.
26996         (configure.ac): Set witness.
26997         * modules/stdio (Makefile.am): Support fpurge macros.
26998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26999         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27000         * lib/fflush.c: Update client.
27001         * tests/test-fpurge.c: Likewise.
27002         * NEWS: Mention the change.
27003
27004 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27005
27006         * lib/argp-version-etc.c (program_authors): Add const
27007         qualifier.
27008         * lib/version-etc.c: Fix typos in the comments.
27009         * modules/argp-version-etc: Depends on version-etc.
27010
27011 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27012
27013         argp-version-etc: new module.
27014
27015         * lib/argp-version-etc.c: New file.
27016         * lib/argp-version-etc.h: New file.
27017         * modules/argp-version-etc: New file.
27018         * modules/argp-version-etc-tests: New file.
27019         * tests/test-argp-version-etc.c: New test.
27020         * tests/test-argp-version-etc-1.sh: New test.
27021
27022 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27023
27024         Provide additional interfaces and documentation for version-etc
27025         module.
27026
27027         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27028         interfaces.
27029         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27030         prototypes.
27031
27032 2009-06-24  Bruno Haible  <bruno@clisp.org>
27033
27034         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27035         HAVE_LIB${NAME} macro.
27036         Reported by Sam Steingold <sds@gnu.org>.
27037
27038 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27039
27040         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27041         needed.
27042
27043 2009-06-21  Bruno Haible  <bruno@clisp.org>
27044
27045         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27046         work.
27047         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27048         together with LIB${NAME}, LTLIB${NAME}.
27049         Reported by Sam Steingold <sds@gnu.org>.
27050
27051 2009-06-20  Jim Meyering  <meyering@redhat.com>
27052
27053         tests: make sc_require_test_exit_idiom more generic
27054         * top/maint.mk (Exit_witness_file): New overridable variable.
27055         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27056         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27057
27058 2009-06-19  Jim Meyering  <meyering@redhat.com>
27059
27060         hash: reverse order of src/dst parameters in an internal interface
27061         * lib/hash.c (transfer_entries): Reverse order of parameters to
27062         put DST before SRC.  Adjust callers.
27063
27064         tests: test-hash: avoid wholesale duplication
27065         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27066         Instead, use a loop and add a single conditional.
27067
27068         tests: test-hash: allow seed selection via a command line argument
27069         * tests/test-hash.c (get_seed): New function.
27070         (main): Use it.
27071
27072 2009-06-19  Eric Blake  <ebb9@byu.net>
27073
27074         hash: avoid memory leak on allocation failure
27075         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27076         failure.  Factor repeated algorithm...
27077         (transfer_entries): ...into new helper routine.
27078         (hash_delete): React to hash_rehash return value.
27079
27080         hash: reduce memory pressure in hash_rehash no-op case
27081         * lib/hash.c (next_prime): Avoid overflow.
27082         (hash_initialize): Factor bucket size computation...
27083         (compute_bucket_size): ...into new helper function.
27084         (hash_rehash): Use new function and open coding to reduce memory
27085         pressure, and avoid a memory leak in USE_OBSTACK code.
27086         Reported by Jim Meyering.
27087
27088 2009-06-18  Eric Blake  <ebb9@byu.net>
27089
27090         hash: make rotation more obvious
27091         * modules/hash (Depends-on): Add bitrotate and stdint.
27092         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27093         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27094         (SIZE_MAX): Rely on headers for definition.
27095         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27096         (raw_hasher): Use rotr_sz.
27097         Suggested by Jim Meyering.
27098
27099         hash: fix memory leak in last patch
27100         * lib/hash.c (hash_rehash): Avoid memory leak.
27101
27102         hash: avoid no-op rehashing
27103         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27104
27105         hash: provide default callback functions
27106         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27107         (hash_initialize): Use them as defaults.
27108         * tests/test-hash.c (main): Test this.
27109
27110         hash: minor optimization
27111         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27112         when possible.
27113         (hash_initialize): Document this promise.
27114         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27115         * tests/test-hash.c (hash_compare_strings): Test this.
27116
27117 2009-06-18  Bruno Haible  <bruno@clisp.org>
27118
27119         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27120         going to be replaced anyway.
27121
27122 2009-06-18  Bruno Haible  <bruno@clisp.org>
27123
27124         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27125         in one place.
27126         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27127         be replaced anyway.
27128
27129 2009-06-18  Eric Blake  <ebb9@byu.net>
27130
27131         hash: check for resize before insertion
27132         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27133         threshold before insertion, so that a pathological hash_rehash
27134         that fills every bucket can still trigger another rehash.
27135
27136 2009-06-18  Jim Meyering  <meyering@redhat.com>
27137
27138         hash-tests: add a loop around the small tests
27139         * tests/test-hash.c (main): Repeat small tests with selected
27140         small initial table sizes.
27141
27142 2009-06-17  Eric Blake  <ebb9@byu.net>
27143
27144         hash: minor cleanups
27145         * lib/hash.h (hash_entry): Make opaque, by moving...
27146         * lib/hash.c (hash_entry): ...here.
27147         (hash_insert): Clarify restrictions on what can be inserted.
27148         (hash_get_next): Clarify when it is safe to remove an element
27149         during traversal.
27150         (check_tuning): Skip verification when tuning is known safe.
27151         (hash_initialize): Clarify restrictions on tuning.
27152
27153 2009-06-17  Jim Meyering  <jim@meyering.net>
27154         and Eric Blake  <ebb9@byu.net>
27155
27156         hash-tests: new module
27157         * modules/hash-tests: New file.
27158         * tests/test-hash.c: New file.
27159
27160 2009-06-17  Eric Blake  <ebb9@byu.net>
27161
27162         strstr-simple: document new module
27163         * MODULES.html.sh: Document new module.
27164
27165         strstr, strcasestr: replace on platforms with broken memchr
27166         * modules/strstr: Split into...
27167         * modules/strstr-simple: ...new module that does not care about
27168         performance, but does care about glibc bug.
27169         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27170         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27171         if platform memchr is broken, per Debian bug 521737.
27172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27173         memchr.
27174         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27175         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27176         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27177         * modules/mountlist (Depends-on): Add strstr-simple.
27178         * modules/gen-uni-tables (Depends-on): Likewise.
27179         * modules/argz (Depends-on): Add strstr.
27180
27181 2009-06-17  Bruno Haible  <bruno@clisp.org>
27182
27183         * modules/posix_spawn-internal (Depends-on): Add errno.
27184
27185 2009-06-17  Bruno Haible  <bruno@clisp.org>
27186
27187         Define missing ESTALE on Interix 3.5.
27188         * lib/errno.in.h (ESTALE): Assign a value if missing.
27189         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27190         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27191         missing.
27192         * doc/posix-headers/errno.texi: Mention the Interix bug.
27193         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27194
27195 2009-06-15  Eric Blake  <ebb9@byu.net>
27196
27197         memchr, memchr2: add valgrind exception
27198         * lib/memchr.valgrind: New file.
27199         * lib/memchr2.valgrind: New file.
27200         * modules/memchr (Files): Distribute valgrind file.
27201         * modules/memchr2 (Files): Likewise.
27202
27203         docs: memchr is no longer obsolete
27204         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27205         * lib/string.in.h (memchr): Simplify logic.
27206
27207 2009-06-14  Jim Meyering  <meyering@redhat.com>
27208
27209         link-follow: fix the "checking..." message to not mention trailing slash
27210         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
27211         never considered trailing slashes.
27212
27213 2009-06-14  Bruno Haible  <bruno@clisp.org>
27214
27215         * m4/memchr.m4: Mention also the bug on IA-64.
27216         * doc/posix-functions/memchr.texi: Likewise.
27217
27218 2009-06-12  Eric Blake  <ebb9@byu.net>
27219
27220         memchr: detect broken x86_64 and alpha implementations
27221         * modules/memchr-tests (Depends-on): Move mmap detection...
27222         * modules/memchr (Depends-on): ...here.
27223         (configure.ac): Set indicator.
27224         * lib/string.in.h (memchr): Declare replacement.
27225         * modules/string (Makefile.am): Trigger replacement.
27226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27227         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
27228         bugs.
27229         * doc/posix-functions/memchr.texi (memchr): Document the bug.
27230         * modules/getpagesize (License): Relax license.
27231
27232 2009-06-11  Bruno Haible  <bruno@clisp.org>
27233
27234         * lib/idpriv.h: Add more references.
27235
27236 2009-06-08  Bruno Haible  <bruno@clisp.org>
27237
27238         Tests for module 'idpriv-droptemp'.
27239         * modules/idpriv-droptemp-tests: New file.
27240         * tests/test-idpriv-droptemp.sh: New file.
27241         * tests/test-idpriv-droptemp.su.sh: New file.
27242         * tests/test-idpriv-droptemp.c: New file.
27243
27244         New module 'idpriv-droptemp'.
27245         * lib/idpriv-droptemp.c: New file.
27246         * modules/idpriv-droptemp: New file.
27247
27248 2009-06-08  Bruno Haible  <bruno@clisp.org>
27249
27250         Tests for module 'idpriv-drop'.
27251         * modules/idpriv-drop-tests: New file.
27252         * tests/test-idpriv-drop.sh: New file.
27253         * tests/test-idpriv-drop.su.sh: New file.
27254         * tests/test-idpriv-drop.c: New file.
27255
27256         New module 'idpriv-drop'.
27257         * lib/idpriv.h: New file.
27258         * lib-idpriv-drop.c: New file.
27259         * m4/idpriv.m4: New file.
27260         * modules/idpriv-drop: New file.
27261
27262 2009-06-08  Bruno Haible  <bruno@clisp.org>
27263
27264         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
27265         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27266         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27267         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27268         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27269         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27270         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27271
27272 2009-06-08  Eric Blake  <ebb9@byu.net>
27273
27274         test-strstr: use memory fence, when possible
27275         * tests/test-strstr.c (main): Use memory fence, in order to be
27276         more likely to trigger Debian bug 521737.
27277         * modules/strstr-tests (Files): Pull in additional files.
27278
27279         memchr: no longer obsolete, for wider field testing
27280         * modules/memchr (Status, Notice): Delete, this module is no
27281         longer obsolete.
27282         * modules/vasnprintf (Depends-on): Add memchr.
27283
27284 2009-06-07  Jim Meyering  <meyering@redhat.com>
27285
27286         hash: declare some functions with the warn_unused_result attribute
27287         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
27288
27289 2009-06-07  Bruno Haible  <bruno@clisp.org>
27290
27291         * tests/test-alignof.c: Don't test int64_t if it does not exist.
27292         Reported by Eric Blake.
27293
27294 2009-06-06  Eric Blake  <ebb9@byu.net>
27295
27296         test-alignof: fix typo with long double
27297         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
27298         compiler error.
27299
27300 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
27301
27302         Escape non-texinfo { and }s.
27303         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
27304         markup error.
27305
27306 2009-06-04  Jim Meyering  <meyering@redhat.com>
27307
27308         gitlog-to-changelog: don't infloop on an empty commit log
27309         * build-aux/gitlog-to-changelog: Warn about an empty log message.
27310         Reported by Boris Petersen <transacid@centerim.org>.
27311
27312 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
27313
27314         version-etc: extend for packagers
27315         Add three new configure options, intended for packagers:
27316           --with-packager="packager name"
27317           --with-packager-version="packager-specific version"
27318           --with-packager-bug-reports="packager bug reporting"
27319         An example with coreutils:
27320           $ ./configure \
27321             --with-packager=Gentoo \
27322             --with-packager-bug-report=http://bugs.gentoo.org/ \
27323             --with-packager-version="patchset 1.6"
27324           $ ./src/ls --version | head -n2
27325           ls (GNU coreutils) 7.1-dirty
27326           Packaged by Gentoo (patchset 1.6)
27327         Note that the bug reporting info via --help doesn't show up because
27328         coreutils uses its own custom emit_bug_reporting_address() implementation
27329         in src/system.h.  If it didn't, it'd look like:
27330           $ ./src/ls --help | tail -n4
27331           Report bugs to <bug-coreutils@gnu.org>.
27332           Report Gentoo bugs to <http://bugs.gentoo.org/>.
27333           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
27334           General help using GNU software: <http://www.gnu.org/gethelp/>.
27335         * lib/version-etc.c: Print new information, if provided.
27336         * m4/version-etc.m4: New file.
27337         * modules/version-etc (Files): Add m4/version-etc.m4.
27338         (configure.ac): Add gl_VERSION_ETC.
27339
27340 2009-05-31  Bruno Haible  <bruno@clisp.org>
27341
27342         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
27343         and 'int64_t'.
27344         * modules/alignof-tests (Dependencies): Add stdint.
27345         Reported by Eric Blake.
27346
27347 2009-05-31  Bruno Haible  <bruno@clisp.org>
27348
27349         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
27350         restriction due to compiler bugs.
27351         Reported by Eric Blake.
27352
27353 2009-05-31  Simon Josefsson  <simon@josefsson.org>
27354             Bruno Haible  <bruno@clisp.org>
27355
27356         Fix test-alignof failure.
27357         * lib/alignof.h (alignof_slot): New macro.
27358         (alignof_type): New macro, with the same semantics as the previous
27359         'alignof'.
27360         (alignof): Alias to alignof_slot.
27361         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
27362         check that the results are usable as constant expressions.
27363
27364 2009-05-31  Bruno Haible  <bruno@clisp.org>
27365
27366         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
27367         * tests/test-memchr.c (main): Check that memchr does not read past the
27368         first occurrence of the byte.
27369         * tests/test-strstr.c (main): Update comment.
27370         Suggested by Eric Blake.
27371
27372 2009-05-30  Bruno Haible  <bruno@clisp.org>
27373
27374         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
27375         detail how to use dumpbin.
27376         Reported by David Byron <dbyron@dbyron.com>.
27377
27378 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27379
27380         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
27381
27382 2009-06-02  Simon Josefsson  <simon@josefsson.org>
27383
27384         * m4/manywarnings.m4: Add GCC 4.4 warnings.
27385
27386 2009-05-28  Bruno Haible  <bruno@clisp.org>
27387
27388         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
27389         build-aux/ files.
27390
27391 2009-05-28  Simon Josefsson  <simon@josefsson.org>
27392
27393         * gnulib-tool (func_import): Transform license on build-aux/ files too.
27394
27395 2009-05-27  Simon Josefsson  <simon@josefsson.org>
27396
27397         * gnulib-tool (sed_transform_main_lib_file)
27398         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
27399         regexps.
27400
27401 2009-05-26  Simon Josefsson  <simon@josefsson.org>
27402
27403         * tests/test-strstr.c: Add another self-test.
27404         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
27405         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
27406
27407 2009-05-23  Bruno Haible  <bruno@clisp.org>
27408
27409         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
27410         change.
27411
27412 2009-05-21  Bruno Haible  <bruno@clisp.org>
27413
27414         Simplify use of mode_t varargs.
27415         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
27416         uses 'mode_t' or 'int'.
27417         * lib/openat.c (openat): Likewise.
27418         * lib/open-safer.c (open_safer): Likewise.
27419         * m4/mode_t.m4: New file.
27420         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
27421         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
27422         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
27423         * modules/open (Files): Add m4/mode_t.m4.
27424         * modules/openat (Files): Likewise.
27425         * modules/fcntl-safer (Files): Likewise.
27426         Suggested by Eric Blake.
27427
27428 2009-05-21  Pádraig Brady  <P@draigbrady.com>
27429
27430         * doc/glibc-functions/fallocate.texi: New file.
27431         * doc/gnulib.texi: Include it.
27432
27433 2009-05-21  Eric Blake  <ebb9@byu.net>
27434             Bruno Haible  <bruno@clisp.org>
27435
27436         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
27437         invocations.
27438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27439
27440 2009-05-21  Eric Blake  <ebb9@byu.net>
27441             Bruno Haible  <bruno@clisp.org>
27442
27443         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
27444         include_next. Fix of 2008-11-20 commit.
27445         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
27446         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
27447         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
27448         NEXT_MATH_H.
27449         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
27450         instead of NEXT_MATH_H.
27451
27452 2009-05-21  Bruno Haible  <bruno@clisp.org>
27453
27454         Avoid redefinition warnings for SIZE_MAX.
27455         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
27456         Reported by Simon Josefsson.
27457
27458 2009-05-21  Bruno Haible  <bruno@clisp.org>
27459
27460         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
27461         AC_CACHE_VAL.
27462
27463 2009-05-20  Bruno Haible  <bruno@clisp.org>
27464
27465         Make zeroptr.h work on mingw.
27466         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
27467         mprotect.
27468         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
27469         * modules/memchr2-tests (configure.ac): Likewise.
27470         * modules/memcmp-tests (configure.ac): Likewise.
27471         * modules/memmem-tests (configure.ac): Likewise.
27472         * modules/memrchr-tests (configure.ac): Likewise.
27473         Reported by Simon Josefsson.
27474
27475 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27476
27477         * tests/test-glob.c: Include string.h for strcmp prototype.
27478
27479 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27480
27481         * modules/getdelim (Depends-on): Add explicit stdint, although it
27482         was implicitly already pulled in via realloc-posix.
27483         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
27484
27485 2009-05-20  Simon Josefsson  <simon@josefsson.org>
27486
27487         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
27488         G. Christensen" <tgc@jupiterrise.com>.
27489         * m4/sys_socket_h.m4: Check for sa_family_t.
27490         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
27491         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
27492         * tests/test-sys_socket.c: Check that sa_family_t works.
27493
27494 2009-05-18  Eric Blake  <ebb9@byu.net>
27495
27496         maint.mk: allow gnulib_dir in VPATH build
27497         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
27498
27499 2009-05-15  Jim Meyering  <meyering@redhat.com>
27500
27501         maint.mk: Give gnulib_dir a default definition.
27502         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
27503         Thus, most packages no longer need to specify this variable in cfg.mk
27504
27505 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
27506
27507         rename.m4: fix typos that would make non-mingw cross-configure fail
27508         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
27509
27510 2009-05-13  Eric Blake  <ebb9@byu.net>
27511
27512         mmap-anon: avoid out-of-order autoconf expansion
27513         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
27514         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
27515         * modules/memchr-tests (Depends-on): Add extensions.
27516         * modules/memchr2-tests (Depends-on): Add extensions.
27517         * modules/memcmp-tests (Depends-on): Add extensions.
27518         * modules/memmem-tests (Depends-on): Add extensions.
27519         * modules/memrchr-tests (Depends-on): Add extensions.
27520
27521 2009-05-13  Bruno Haible  <bruno@clisp.org>
27522
27523         Make some tests ISO C 99 compliant.
27524         * tests/zerosize-ptr.h: New file.
27525         * tests/test-memchr.c: Include zerosize-ptr.h.
27526         (main): Use a zero-size object pointer instead of NULL.
27527         * tests/test-memchr2.c: Include zerosize-ptr.h.
27528         (main): Use a zero-size object pointer instead of NULL.
27529         * tests/test-memcmp.c: Include zerosize-ptr.h.
27530         (main): Use a zero-size object pointer instead of NULL.
27531         * tests/test-memmem.c: Include zerosize-ptr.h.
27532         (main): Use a zero-size object pointer instead of NULL.
27533         * tests/test-memrchr.c: Include zerosize-ptr.h.
27534         (main): Use a zero-size object pointer instead of NULL.
27535         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
27536         m4/mmap-anon.m4.
27537         (Depends-on): Add getpagesize.
27538         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27539         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
27540         m4/mmap-anon.m4.
27541         (Depends-on): Add getpagesize.
27542         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27543         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
27544         m4/mmap-anon.m4.
27545         (Depends-on): Add getpagesize.
27546         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27547         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
27548         m4/mmap-anon.m4.
27549         (Depends-on): Add getpagesize.
27550         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27551         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
27552         m4/mmap-anon.m4.
27553         (Depends-on): Add getpagesize.
27554         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
27555
27556 2009-05-12  Bruno Haible  <bruno@clisp.org>
27557
27558         Tests for module 'alignof'.
27559         * modules/alignof-tests: New file.
27560         * tests/test-alignof.c: New file.
27561
27562 2009-05-12  Bruno Haible  <bruno@clisp.org>
27563
27564         Fix alignof macro.
27565         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
27566         vendor compilers that are always correct.
27567
27568 2009-05-12  Bruno Haible  <bruno@clisp.org>
27569
27570         Make the MAP_ANONYMOUS detection work on HP-UX 11.
27571         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
27572         not whether its fully works.
27573
27574 2009-05-12  Bruno Haible  <bruno@clisp.org>
27575
27576         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
27577
27578 2009-05-12  Jim Meyering  <meyering@redhat.com>
27579
27580         * top/maint.mk: Adjust backslash alignment.
27581
27582 2009-05-11  Simon Josefsson  <simon@josefsson.org>
27583
27584         * top/maint.mk: Make $(srcdir)/build-aux configurable.
27585
27586 2009-05-11  Eric Blake  <ebb9@byu.net>
27587
27588         argp: avoid undefined behavior
27589         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
27590         macros.
27591
27592 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27593
27594         * tests/test-vc-list-files-git.sh: Do git config of user.email and
27595         user.name to prevent git commit from complaining.
27596
27597 2009-05-10  Bruno Haible  <bruno@clisp.org>
27598
27599         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
27600         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
27601         it rewrites every file name only once.
27602         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
27603
27604 2009-05-08  Bruno Haible  <bruno@clisp.org>
27605
27606         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
27607         instead of 'max'.
27608
27609 2009-05-08  Simon Josefsson  <simon@josefsson.org>
27610
27611         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
27612         sockaddr_storage test.
27613
27614 2009-05-07  Simon Josefsson  <simon@josefsson.org>
27615
27616         * modules/sys_socket (Makefile.am): Substitute
27617         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
27618         * m4/sys_socket_h.m4: Check for sockaddr_storage.
27619         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
27620         * tests/test-sys_socket.c: Check sockaddr_storage.
27621
27622 2009-05-08  Bruno Haible  <bruno@clisp.org>
27623
27624         New module 'alignof'.
27625         * lib/alignof.h: New file.
27626         * modules/alignof: New file.
27627
27628 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27629             Bruno Haible  <bruno@clisp.org>
27630
27631         Fix test-file-has-acl on FreeBSD.
27632         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
27633         mask is implicitly added.
27634         * tests/test-file-has-acl.c: Include <signal.h>.
27635         (main): Terminate the test after 5 seconds.
27636         * modules/acl-tests (configure.ac): Check for alarm function.
27637
27638 2009-05-04  Bruno Haible  <bruno@clisp.org>
27639
27640         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
27641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
27642         * modules/errno (configure.ac): Drop AC_REQUIRE.
27643         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
27644         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
27645
27646 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27647
27648         * modules/glob-tests: New module.
27649         * tests/test-glob.c: Add.
27650
27651 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27652
27653         * modules/fnmatch-tests: New module.
27654         * tests/test-fnmatch.c: Add.
27655
27656 2009-05-04  Eric Blake  <ebb9@byu.net>
27657
27658         maint: make the new no-submodule-changes rule VPATH-safe
27659         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
27660
27661 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27662             Bruno Haible  <bruno@clisp.org>
27663
27664         acl: Fix infinite loop on FreeBSD.
27665         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
27666         of return value from acl_get_entry.
27667         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
27668         Likewise.
27669
27670 2009-05-03  Bruno Haible  <bruno@clisp.org>
27671
27672         * lib/acl-internal.h (acl_entries): Clarify return value.
27673         * lib/acl_entries.c (acl_entries): Likewise.
27674
27675 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27676
27677         Bug fix in acl module.
27678         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
27679
27680 2009-05-03  Bruno Haible  <bruno@clisp.org>
27681
27682         Create gperf-generated file in the source dir, not in the build dir.
27683         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
27684         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
27685         * modules/unicase/locale-language (unicase/locale-languages.h):
27686         Likewise.
27687         * modules/unicase/special-casing (unicase/special-casing-table.h):
27688         Likewise.
27689         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
27690         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
27691         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
27692         Reported by Ralf Wildenhues.
27693
27694 2009-05-03  Bruno Haible  <bruno@clisp.org>
27695
27696         * modules/fnmatch (Description, configure.ac): Taken from
27697         fnmatch-posix.
27698         * modules/fnmatch-posix: Turn into a symbolic reference to the
27699         'fnmatch' module, and deprecate.
27700         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
27701
27702 2009-05-03  Bruno Haible  <bruno@clisp.org>
27703
27704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
27705         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
27706         Reported by Ralf Wildenhues.
27707
27708 2009-05-04  Simon Josefsson  <simon@josefsson.org>
27709
27710         * m4/fnmatch.m4: Fix fnmatch re-define.
27711
27712 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
27713
27714         priv-set: new module and tests; adapt write-any-file
27715         * lib/priv-set.c: New file.
27716         * lib/priv-set.h: New file.
27717         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
27718         * lib/write-any-file.c: Simplify by using priv-set module.
27719         * m4/priv-set.m4: New file.
27720         * modules/priv-set: New file.
27721         * modules/unlinkdir: Add dependency on priv-set module.
27722         * modules/write-any-file: Likewise.
27723
27724         Tests for module 'priv-set'.
27725         * modules/priv-set-tests: New file.
27726         * tests/test-priv-set.c: New file.
27727
27728 2009-05-03  Jim Meyering  <meyering@redhat.com>
27729             Bruno Haible  <bruno@clisp.org>
27730
27731         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
27732         use the converted UTF-8 variant of the name instead.
27733
27734 2009-05-03  Jim Meyering  <meyering@redhat.com>
27735
27736         tests: tighten some getdate tests
27737         * tests/test-getdate.c (main): Tighten tests: require equality,
27738         not just greater than.  Set TZ envvar to UTC0.
27739
27740 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27741
27742         getdate: correctly interpret "next monday" when run on a Monday
27743         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
27744         that e.g., "next tues" (when run on a tuesday) results in a date
27745         that is one week in the future, and not today's date.
27746         I.e., add a week when the wday is the same as the current one.
27747         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
27748         and earlier by Martin Bernreuther and Jan Minář.
27749         * tests/test-getdate.c (main): Check that "next DAY" is always in
27750         the future and that "last DAY" is always in the past.
27751
27752 2009-05-02  Jim Meyering  <meyering@redhat.com>
27753
27754         build: ensure that a release build fails when a submodule is unclean
27755         * top/maint.mk (no-submodule-changes): New rule.
27756         (alpha beta major): Depend on it.
27757
27758 2009-05-02  Bruno Haible  <bruno@clisp.org>
27759
27760         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
27761         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
27762         shell variable gl_fnmatch_required to detect which variant is
27763         requested.
27764         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
27765         gl_FUNC_FNMATCH_POSIX.
27766         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
27767         exclude fnmatch-posix.
27768
27769 2009-05-02  Bruno Haible  <bruno@clisp.org>
27770
27771         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
27772         * modules/mbsrtowcs (License): Change to LGPLv2+.
27773         * modules/strnlen1 (License): Likewise.
27774         Reported by Simon Josefsson.
27775
27776 2009-05-02  Bruno Haible  <bruno@clisp.org>
27777
27778         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
27779         "cross".
27780         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
27781         gnulib-tool was called with option --source-base=lib.
27782
27783 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27784
27785         Use automake *-local hooks without commands, for extensibility.
27786         * modules/localcharset (Makefile.am): Rename install-exec-local
27787         rule to install-exec-localcharset, and make it a prerequisite of
27788         install-exec-local.  Likewise, rename the uninstall-local rule to
27789         uninstall-localcharset, and make it a prerequisite of the former.
27790
27791 2009-05-01  Bruno Haible  <bruno@clisp.org>
27792
27793         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
27794         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27795         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
27796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
27797         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
27798         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27799         m4/locale-zh.m4, m4/codeset.m4.
27800
27801         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
27802         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
27803         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
27804         m4/locale-zh.m4.
27805
27806         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
27807         REPLACE_WCRTOMB if mbstate_t must be replaced.
27808         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
27809         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
27810
27811 2009-05-01  Bruno Haible  <bruno@clisp.org>
27812
27813         Avoid compiler warnings when redefining macros defined by <libintl.h>.
27814         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
27815         dngettext, dcngettext, textdomain, bindtextdomain,
27816         bind_textdomain_codeset): Undefine before redefining.
27817
27818 2009-04-30  Bruno Haible  <bruno@clisp.org>
27819
27820         Fix bug introduced on 2009-04-25.
27821         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
27822         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
27823         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
27824         is defined.
27825         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
27826         is defined.
27827         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
27828         is defined.
27829         Reported by Elbert_Pol <elbert.pol@gmail.com>.
27830
27831 2009-04-28  Bruno Haible  <bruno@clisp.org>
27832
27833         Comment tweaks.
27834         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
27835         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
27836         * lib/unicase.h (u*_casexfrm): Likewise.
27837         Reported by Paolo Bonzini.
27838
27839 2009-04-28  Bruno Haible  <bruno@clisp.org>
27840
27841         Fix a compilation error.
27842         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
27843         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
27844         Reported by Jim Meyering.
27845
27846 2009-04-27  Bruno Haible  <bruno@clisp.org>
27847
27848         New module 'libunistring'.
27849         * modules/libunistring: New file.
27850         * m4/libunistring.m4: New file.
27851         * MODULES.html.sh (Unicode string functions): Add it.
27852
27853 2009-04-27  Eric Blake  <ebb9@byu.net>
27854
27855         maint.mk: allow package-specific header to provide <config.h>
27856         * top/maint.mk (sc_require_config_h): New variable.
27857         (sc_require_config_h, sc_require_config_h_first): Use it.
27858
27859 2009-04-27  Simon Josefsson  <simon@josefsson.org>
27860
27861         * top/maint.mk (sc_avoid_if_before_free): Except
27862         useless-if-before-free script.
27863
27864 2009-04-27  Eric Blake  <ebb9@byu.net>
27865
27866         maintainer-makefile: depend on all required helper scripts
27867         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
27868         useless-if-before-free.
27869         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
27870         version, rather than assuming gnulib checkout is available.
27871         Reported by Simen Josefsson.
27872
27873 2009-04-26  Bruno Haible  <bruno@clisp.org>
27874
27875         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
27876         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
27877         "../" or "..".
27878
27879 2009-04-26  Bruno Haible  <bruno@clisp.org>
27880
27881         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
27882         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
27883         AC_LIB_HAVE_LINKFLAGS.
27884
27885 2009-04-26  Bruno Haible  <bruno@clisp.org>
27886
27887         Simplify calling convention of u*_conv_from_encoding.
27888         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
27889         u32_conv_from_encoding): Expect a resultbuf argument and return the
27890         result directly as a pointer.
27891         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
27892         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
27893         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
27894         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
27895         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
27896         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27897         Update.
27898         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
27899         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
27900         * lib/vasnprintf.c (VASNPRINTF): Update.
27901         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
27902         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
27903         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
27904         * NEWS: Mention the change.
27905
27906 2009-04-26  Bruno Haible  <bruno@clisp.org>
27907
27908         Simplify calling convention of u*_conv_to_encoding.
27909         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27910         u32_conv_to_encoding): Expect a resultbuf argument and return the
27911         result directly as a pointer.
27912         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27913         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
27914         freeing scaled_offsets if mem_iconveha failed.
27915         * lib/unicase/u-casexfrm.h (FUNC): Update.
27916         * lib/uninorm/u-normxfrm.h (FUNC): Update.
27917         * lib/vasnprintf.c (VASNPRINTF): Update.
27918         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
27919         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
27920         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
27921         * NEWS: Mention the change.
27922
27923 2009-04-26  Bruno Haible  <bruno@clisp.org>
27924
27925         Avoid test failures on AIX and OSF/1.
27926         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
27927         malloc(0).
27928         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
27929         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
27930         Likewise.
27931         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
27932         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
27933         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
27934         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
27935         * doc/posix-functions/malloc.texi: Document the portability problem
27936         related to malloc(0).
27937
27938 2009-04-26  Bruno Haible  <bruno@clisp.org>
27939
27940         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
27941         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
27942         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
27943
27944 2009-04-25  Bruno Haible  <bruno@clisp.org>
27945
27946         Avoid link error when creating a namespace clean library.
27947         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
27948         as macro with arguments if already defined as an alias.
27949         * lib/signbitf.c (gl_signbitf): Don't undefine.
27950         * lib/signbitd.c (gl_signbitd): Don't undefine.
27951         * lib/signbitl.c (gl_signbitl): Don't undefine.
27952
27953 2009-04-25  Jim Meyering  <meyering@redhat.com>
27954
27955         vc-list-files: fix another quoting bug
27956         * build-aux/vc-list-files: Avoid sed backslash expansion
27957         of pathological directory names.
27958
27959 2009-04-25  Eric Blake  <ebb9@byu.net>
27960
27961         vc-list-files: fix shell quoting error
27962         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
27963         timestamp.
27964
27965 2009-04-25  Jim Meyering  <meyering@redhat.com>
27966
27967         vc-list-files: restore lost functionality with subdir argument
27968         * build-aux/vc-list-files: When given a non-"." sub-directory
27969         argument, substitute the $dir/ prefix back onto each resulting name.
27970         Otherwise, coreutils' root_tests check would fail.
27971
27972 2009-04-24  Eric Blake  <ebb9@byu.net>
27973
27974         vc-list-files: ignore git symlinks
27975         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
27976         than ls-files, to ignore git symlinks.
27977
27978         maint.mk: import improvements from m4
27979         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
27980         (move_if_change): Delete unused macro.
27981         (news-date-check, vc-diff-check): Support VPATH builds.
27982         (announcement): Likewise.  Split --bootstrap-tools list...
27983         (boostrap-tools): ...into separate list, which can be overridden
27984         in cfg.mk.
27985         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
27986         requiring dependency on useless-if-before-free module.
27987         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
27988         Support VPATH builds.
27989
27990 2009-04-24  Jim Meyering  <meyering@redhat.com>
27991
27992         maint.mk: remove coreutils-specific rules and variables
27993         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
27994         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
27995         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
27996
27997         maint.mk: remove obsolete rule
27998         * top/maint.mk (rel-check): Remove rule.
27999         (WGET, WGETFLAGS): Remove now-unused variables.
28000
28001 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28002
28003         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28004         consistency.
28005
28006         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28007         '$(PATH_SEPARATOR)' instead of ':'.
28008
28009 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28010
28011         * lib/getopt1.c (main): Use 'const' for static array.
28012
28013 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28014
28015         * top/maint.mk: Sync with coreutils.
28016         * NEWS: Explain incompatibilities.
28017
28018 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28019             Bruno Haible  <bruno@clisp.org>
28020
28021         Fix cross-compilation results.
28022         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28023         statement, as third argument of AC_TRY_RUN.
28024         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28025         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28026         Likewise.
28027         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28028         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28029         Likewise.
28030         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28031         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28032         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28033
28034 2009-04-20  Bruno Haible  <bruno@clisp.org>
28035
28036         Avoid test failure on mingw.
28037         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28038
28039 2009-04-20  Bruno Haible  <bruno@clisp.org>
28040
28041         Avoid compilation error on mingw.
28042         * modules/localename-tests (Depends-on): Add locale.
28043
28044 2009-04-19  Bruno Haible  <bruno@clisp.org>
28045
28046         Support for building a shared library on Windows platforms.
28047         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28048         (main): Test the presence of UNINORM_NFC here.
28049         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28050         (main): Test the presence of UNINORM_NFD here.
28051         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28052         (main): Test the presence of UNINORM_NFKC here.
28053         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28054         (main): Test the presence of UNINORM_NFKD here.
28055
28056 2009-04-19  Bruno Haible  <bruno@clisp.org>
28057
28058         Avoid a compiler warning.
28059         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28060         Change type of variable 'sequence'.
28061
28062 2009-04-19  Bruno Haible  <bruno@clisp.org>
28063
28064         * modules/configmake (Makefile.am): When the contents of configmake.h
28065         does not change, arrange to preserve its modification time.
28066
28067 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28068
28069         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28070         gettext domain.
28071
28072 2009-04-16  Jim Meyering  <meyering@redhat.com>
28073
28074         useless-if-before-free: improve conversion code
28075         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28076         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28077
28078 2009-04-14  Bruno Haible  <bruno@clisp.org>
28079
28080         * modules/fcntl (Depends-on): Add extensions.
28081         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28082
28083 2009-04-12  Ben Pfaff  <blp@gnu.org>
28084
28085         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28086         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28087
28088 2009-03-20  Ben Pfaff  <blp@gnu.org>
28089
28090         Make rename replace existing destinations on Windows.
28091         * m4/rename.m4: Add test for Mingw.
28092         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28093         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28094         * doc/posix-functions/rename.texi: Document.
28095
28096 2009-04-10  Bruno Haible  <bruno@clisp.org>
28097
28098         New include file "iconveh.h".
28099         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28100         * lib/striconveh.h: Include it.
28101         (enum iconv_ilseq_handler): Remove definition.
28102         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28103         striconveh.h.
28104         * lib/striconveha.c: Include striconveh.h.
28105         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28106         * modules/striconveh (Files): Add lib/iconveh.h.
28107         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28108         lib/striconveh.h.
28109
28110 2009-04-10  Bruno Haible  <bruno@clisp.org>
28111
28112         * lib/uniconv.h: Update comment.
28113
28114 2009-04-10  Bruno Haible  <bruno@clisp.org>
28115
28116         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28117         always.
28118         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28119         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28120         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28121         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28122         "unistring-notinline.h", so that the function gets defined always.
28123         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28124         * lib/unistr/u8-uctomb.c: Likewise.
28125         * lib/unistr/u16-mbtouc.c: Likewise.
28126         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28127         * lib/unistr/u16-uctomb.c: Likewise.
28128         * lib/unistr/u32-mbtouc.c: Likewise.
28129         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28130         * lib/unistr/u32-uctomb.c: Likewise.
28131
28132 2009-04-10  Bruno Haible  <bruno@clisp.org>
28133
28134         Mark 'utime' obsolete.
28135         * modules/utime (Status, Notice): New sections.
28136         Suggested by Jim Meyering.
28137
28138         Fix cross-compile guess for utime test.
28139         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28140         autoconf.
28141         * doc/posix-functions/utime.texi: Give more precisions.
28142         Reported by Jan <ipif@ymail.com>.
28143
28144 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28145
28146         filevercmp: correct today's change
28147         * lib/filevercmp.c: Also handle coreutils' test inputs.
28148         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28149
28150         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28151         for reporting it.
28152         * lib/filevercmp.c: Special handle for "", "." and "..".
28153         * tests/test-filevercmp.c: Enlarge the set suite.
28154
28155 2009-04-07  Jim Meyering  <meyering@redhat.com>
28156
28157         useless-if-before-free: show how to remove braced useless free, too
28158         * build-aux/useless-if-before-free: still only in a comment, though.
28159
28160 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28161
28162         maint.mk: import changes to syntax-check macros from coreutils
28163         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28164         Use them in the relevant macros.
28165
28166 2009-04-06  Bruno Haible  <bruno@clisp.org>
28167
28168         Fix unportable use of bit-fields.
28169         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28170         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28171         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28172
28173 2009-04-06  Bruno Haible  <bruno@clisp.org>
28174
28175         Avoid test failures on AIX and OSF/1.
28176         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28177         that malloc(0) = NULL.
28178         * tests/unicase/test-u8-tolower.c (check): Likewise.
28179         * tests/unicase/test-u8-totitle.c (check): Likewise.
28180         * tests/unicase/test-u8-toupper.c (check): Likewise.
28181         * tests/unicase/test-u16-casefold.c (check): Likewise.
28182         * tests/unicase/test-u16-tolower.c (check): Likewise.
28183         * tests/unicase/test-u16-totitle.c (check): Likewise.
28184         * tests/unicase/test-u16-toupper.c (check): Likewise.
28185         * tests/unicase/test-u32-casefold.c (check): Likewise.
28186         * tests/unicase/test-u32-tolower.c (check): Likewise.
28187         * tests/unicase/test-u32-totitle.c (check): Likewise.
28188         * tests/unicase/test-u32-toupper.c (check): Likewise.
28189         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28190         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28191         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28192         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28193         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28194         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28195         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28196         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28197         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28198         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28199         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28200         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28201
28202 2009-04-05  Bruno Haible  <bruno@clisp.org>
28203
28204         Work around an autoconf limitation.
28205         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
28206         comment line if it would be longer than 3 KB.
28207
28208 2009-04-05  Bruno Haible  <bruno@clisp.org>
28209
28210         Avoid test failure with libiconv-1.13.
28211         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
28212         of the expected test results.
28213
28214 2009-04-05  Bruno Haible  <bruno@clisp.org>
28215
28216         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
28217         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
28218         that it should be installed.
28219
28220 2009-04-05  Bruno Haible  <bruno@clisp.org>
28221
28222         * gnulib-tool: New option --copy-file.
28223         (func_usage): Document it.
28224         (func_dest_tmpfilename): Moved out of func_import.
28225         (func_add_file, func_update_file): New functions, extracted from
28226         func_import.
28227         (func_import): Update.
28228
28229 2009-04-05  Karl Berry  <karl@gnu.org>
28230
28231         * README: prominently mention gnulib-tool.
28232         Rearrange sections so getting the code is near the top.
28233
28234 2009-04-05  Bruno Haible  <bruno@clisp.org>
28235
28236         * lib/unicase.h: Mention u*_cmp2.
28237         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28238         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
28239         * lib/unicase/ulc-casecmp.c: Likewise.
28240         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
28241         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
28242         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
28243         unistr/u8-cmp.
28244         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
28245         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
28246         unistr/u16-cmp.
28247         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
28248         unistr/u32-cmp.
28249
28250         * lib/uninorm.h: Mention u*_cmp2.
28251         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
28252         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
28253         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
28254         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
28255         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
28256         unistr/u8-cmp.
28257         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
28258         unistr/u16-cmp.
28259         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
28260         unistr/u32-cmp.
28261
28262         New module 'unistr/u32-cmp2'.
28263         * lib/unistr/u32-cmp2.c: New file.
28264         * modules/unistr/u32-cmp2: New file.
28265
28266         New module 'unistr/u16-cmp2'.
28267         * lib/unistr/u16-cmp2.c: New file.
28268         * modules/unistr/u16-cmp2: New file.
28269
28270         New module 'unistr/u8-cmp2'.
28271         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
28272         * lib/unistr/u8-cmp2.c: New file.
28273         * lib/unistr/u-cmp2.h: New file.
28274         * modules/unistr/u8-cmp2: New file.
28275
28276 2009-04-05  Bruno Haible  <bruno@clisp.org>
28277
28278         * lib/unictype.h (uc_property_is_valid): New macro.
28279         * tests/unictype/test-pr_byname.c (main): Use it.
28280
28281         * lib/unistr.h: Doc fixes.
28282         * lib/uniconv.h: Doc fixes.
28283         * lib/unictype.h: Doc fixes.
28284
28285 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28286
28287         Port coreutils 7.2 to Solaris 8.
28288
28289         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
28290         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
28291         for Solaris 8.  This is a bit of a hack, as it means it's the
28292         caller's responsibility to add -lnsl if needed, but most likely it
28293         won't be needed since only getaddrinfo uses this and getaddrinfo
28294         isn't needed on Solaris 8.
28295
28296         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
28297         problem to Solaris 8 encountered with coreutils 7.2, which
28298         resulted in a message "fnmatch.c:292: warning: passing argument 4
28299         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
28300         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
28301
28302 2009-04-03  Simon Josefsson  <simon@josefsson.org>
28303
28304         * m4/ld-version-script.m4: Add FIXME comment.
28305
28306 2009-04-02  Simon Josefsson  <simon@josefsson.org>
28307
28308         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
28309         SOVERSION variable.
28310
28311 2009-04-02  Bruno Haible  <bruno@clisp.org>
28312
28313         * Makefile (info, html, dvi, pdf): Combine the rules.
28314         Suggested by Jim Meyering.
28315
28316 2009-04-01  Bruno Haible  <bruno@clisp.org>
28317
28318         * Makefile (info, html, dvi, pdf): New targets.
28319         Reported by Reuben Thomas <rrt@sc3d.org>.
28320
28321 2009-04-01  Bruno Haible  <bruno@clisp.org>
28322
28323         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
28324         can be put into PATH.
28325         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
28326
28327 2009-04-01  Bruno Haible  <bruno@clisp.org>
28328
28329         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
28330
28331 2009-04-01  Bruno Haible  <bruno@clisp.org>
28332
28333         Rename module 'visibility'.
28334         * modules/lib-symbol-visibility: Renamed from modules/visibility.
28335         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
28336         * doc/gnulib.texi: Update.
28337         * MODULES.html.sh (Misc): Update.
28338         * NEWS: Mention the change.
28339
28340 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28341
28342         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
28343         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
28344         Eric Blake <ebb9@byu.net> for review.
28345         * MODULES.html.sh: Add lib-msvc-compat.
28346         * doc/gnulib.texi: Link to new section.
28347         * m4/ld-output-def.m4: New file.
28348         * doc/ld-output-def.texi: New file.
28349
28350 2009-04-01  Simon Josefsson  <simon@josefsson.org>
28351
28352         Rename ld-version-script to lib-symbol-versions.  Suggested by
28353         Bruno Haible <bruno@clisp.org>.
28354         * modules/ld-version-script: Renamed to lib-symbol-versions.
28355         * doc/ld-version-script.texi: Fix module name.
28356         * MODULES.html.sh: Add lib-symbol-versions.
28357
28358 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28359
28360         * modules/u64-tests: New file.
28361         * tests/test-u64.c: New file.
28362
28363 2009-03-04  Simon Josefsson  <simon@josefsson.org>
28364
28365         * MODULES.html.sh: Mention u64.
28366         * modules/u64: New module.
28367         * modules/crypto/sha512: Depend on u64 module instead of providing
28368         u64.h.
28369
28370 2009-03-27  Eric Blake  <ebb9@byu.net>
28371
28372         test-strerror: make debugging EAI_SYSTEM easier
28373         * modules/getaddrinfo-tests (Depends-on): Add strerror.
28374         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
28375         failure was EAI_SYSTEM.
28376
28377 2009-03-25  Bruno Haible  <bruno@clisp.org>
28378
28379         Fix a problem with --enable-relocatable on Solaris 7.
28380         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
28381         since 2008-02-24.
28382
28383 2009-03-25  Eric Blake  <ebb9@byu.net>
28384
28385         test-sockets: avoid gcc warning
28386         * tests/test-sockets.c (main): Silence compiler warning.
28387
28388 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28389
28390         New modules nproc, pthread, contributed by Glen Lenker.
28391
28392         * MODULES.html.sh: Add pthread, nproc.
28393         * lib/nproc.c: New file.
28394         * lib/nproc.h: New file.
28395         * lib/pthread.in.h: New file.
28396         * m4/pthread.m4: New file.
28397         * modules/nproc: New file.
28398         * modules/pthread: New file.
28399
28400 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28401
28402         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
28403         New variable.
28404
28405 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
28406
28407         filevercmp: handle simple~ and numbered.~3~ backup suffixes
28408         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
28409         * tests/test-filevercmp.c: Add tests for backup suffixes.
28410
28411 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28412
28413         * modules/stdlib (Depends-on): Add stdint, needed when defining
28414         struct random_data on, for example, HP-UX 10.20.  Reported by
28415         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28416
28417 2009-03-24  Simon Josefsson  <simon@josefsson.org>
28418
28419         * lib/readline.c (readline): Call fflush on stdout after printing
28420         prompt.
28421
28422 2009-03-20  Bruno Haible  <bruno@clisp.org>
28423
28424         Remove dependency from 'close' module to -lws2_32 on native Windows.
28425         * lib/close-hook.h: New file.
28426         * lib/close-hook.c: New file.
28427         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
28428         w32sock.h.
28429         (_gl_close_fd_maybe_socket): Remove function.
28430         (rpl_close): Invoke execute_all_close_hooks instead of
28431         _gl_close_fd_maybe_socket.
28432         * lib/sockets.c: Include close-hook.h, w32sock.h.
28433         (close_fd_maybe_socket): New function, essentially from lib/close.c.
28434         (close_sockets_hook): New variable.
28435         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
28436         (gl_sockets_cleanup): Unregister it.
28437         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
28438         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
28439         * modules/close-hook: New file.
28440         * modules/close (Files): Remove lib/w32sock.h.
28441         (Depends-on): Add close-hook.
28442         (Link): Remove section.
28443         * modules/sockets (Files): Add lib/w32sock.h.
28444         (Depends-on): Add close-hook.
28445         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
28446         invocation.
28447         * NEWS: Mention that LIB_CLOSE is gone.
28448
28449 2009-03-23  Eric Blake  <ebb9@byu.net>
28450
28451         signal-tests: test previous patch
28452         * tests/test-signal.c: New file.
28453         * modules/signal-tests: Likewise.
28454
28455         signal.h: always support 'volatile sig_atomic_t'
28456         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
28457         (gl_SIGNAL_H_DEFAULTS): Add a default.
28458         * modules/signal (Makefile.am): Substitute if needed.
28459         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
28460         users can blindly add volatile.
28461         * doc/posix-headers/signal.texi (signal.h): Document it.
28462         Reported by Matthew Woehlke.
28463
28464 2009-03-23  Jim Meyering  <meyering@redhat.com>
28465
28466         pathmax: PATH_MAX: use pathconf only when available
28467         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
28468         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
28469         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
28470         This avoids a link failure in a PSP cross-compilation environment
28471         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
28472
28473         * lib/vasnprintf.c (divide): Fix typo in comment.
28474
28475 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28476
28477         * gnulib-tool (func_filter_filelist): Fix comment.
28478
28479 2009-03-20  Bruno Haible  <bruno@clisp.org>
28480
28481         Make sockets.h self-contained.
28482         * lib/sockets.c: Include sockets.h first.
28483         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
28484
28485 2009-03-19  Eric Blake  <ebb9@byu.net>
28486
28487         doc: mention more functions added in cygwin 1.7.0
28488         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
28489         addition.
28490         * doc/posix-functions/log2f.texi: Likewise.
28491
28492 2009-03-19  Jim Meyering  <meyering@redhat.com>
28493
28494         fsusage: avoid syntax error due to statement-before-declaration
28495         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
28496         after all declarations.  Reported by Matthew Woehlke in
28497         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
28498
28499 2009-03-18  Eric Blake  <ebb9@byu.net>
28500
28501         build-aux/compile: sync from automake
28502         * build-aux/compile: New file, from automake.
28503         * config/srclist.txt: Mention build-aux/compile.
28504
28505 2009-03-17  Bruno Haible  <bruno@clisp.org>
28506
28507         * lib/git-merge-changelog.c: Fix typo in comment.
28508         Reported by Reuben Thomas <rrt@sc3d.org>.
28509
28510 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
28511
28512         * m4/regex.m4: update and improve help for
28513         --without-included-regex.
28514
28515 2009-03-17  Simon Josefsson  <simon@josefsson.org>
28516
28517         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
28518         failure on missing include files.
28519
28520 2009-03-17  Eric Blake  <ebb9@byu.net>
28521
28522         doc: mention more functions added in cygwin 1.7.0
28523         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
28524         addition.
28525         * doc/posix-functions/fwscanf.texi: Likewise.
28526         * doc/posix-functions/swprintf.texi: Likewise.
28527         * doc/posix-functions/swscanf.texi: Likewise.
28528         * doc/posix-functions/vfwprintf.texi: Likewise.
28529         * doc/posix-functions/vfwscanf.texi: Likewise.
28530         * doc/posix-functions/vswprintf.texi: Likewise.
28531         * doc/posix-functions/vswscanf.texi: Likewise.
28532         * doc/posix-functions/vwprintf.texi: Likewise.
28533         * doc/posix-functions/vwscanf.texi: Likewise.
28534         * doc/posix-functions/wcscasecmp.texi: Likewise.
28535         * doc/posix-functions/wcsdup.texi: Likewise.
28536         * doc/posix-functions/wcsftime.texi: Likewise.
28537         * doc/posix-functions/wcsncasecmp.texi: Likewise.
28538         * doc/posix-functions/wprintf.texi: Likewise.
28539         * doc/posix-functions/wscanf.texi: Likewise.
28540         * doc/glibc-functions/gethostbyname2.texi: Likewise.
28541
28542 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28543
28544         maint.mk: really add $(AM_MAKEFLAGS)
28545         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
28546         was inadvertently omitted in the last commit.
28547         Spotted by Bruno Haible.
28548
28549         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
28550         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
28551         $(AM_MAKEFLAGS)' rather than plain `make'.
28552
28553         gnulib-tool: execute $MAKE not make
28554         * gnulib-tool: Default $MAKE to 'make'.
28555         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
28556         than make.  Initialize $MAKE in the do-autobuild script.
28557
28558         gnulib-tool: use $MAKE not make in generated files
28559         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
28560         make, in generated files.  Initialize $MAKE in the do-autobuild
28561         script.
28562
28563         * top/GNUmakefile (_have-git-version-gen): Fix typo.
28564
28565         GNUmakefile: disable parallelism only for multiple, recursive targets
28566         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
28567         additions in the Makefile.
28568         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
28569         by Automake.
28570         (.NOTPARALLEL): Only disable parallel builds if multiple targets
28571         are listed on the command line and at least one of them is
28572         listed in $(ALL_RECURSIVE_TARGETS).
28573
28574 2009-03-14  Bruno Haible  <bruno@clisp.org>
28575
28576         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
28577         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
28578         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
28579         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
28580         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
28581         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
28582         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
28583         unistr/u8-uctomb.
28584         * modules/unistr/u8-strchr (Depends-on): Likewise.
28585         * modules/unistr/u8-strrchr (Depends-on): Likewise.
28586         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
28587         unistr/u16-uctomb.
28588         * modules/unistr/u16-strchr (Depends-on): Likewise.
28589         * modules/unistr/u16-strrchr (Depends-on): Likewise.
28590
28591 2009-03-12  Bruno Haible  <bruno@clisp.org>
28592
28593         Work around select() bug on Interix 3.5.
28594         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
28595         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
28596         * m4/select.m4: New file.
28597         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
28598         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
28599         * modules/select (Files): Add m4/select.m4.
28600         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
28601         * modules/nanosleep (Depends-on): Add select.
28602         * modules/poll (Depends-on): Likewise.
28603         * doc/posix-functions/select.texi: Mention the Interix bug.
28604         Reported by Markus Duft <mduft@gentoo.org>.
28605
28606         * lib/select.c: Renamed from lib/winsock-select.c.
28607         * modules/select (Files): Add lib/select.c, remove
28608         lib/winsock-select.c.
28609         (configure.ac): Update.
28610
28611 2009-03-12  Jim Meyering  <meyering@redhat.com>
28612
28613         avoid gcc warnings about unused macro definitions
28614         * lib/readtokens.c (STREQ): Remove unused definition.
28615         * lib/xmalloc.c (SIZE_MAX): Likewise.
28616         * lib/openat-die.c (N_): Likewise.
28617         * lib/mountlist.c (SIZE_MAX): Remove definition.
28618         Instead, include <stdint.h>.
28619         * lib/readutmp.c: Likewise.
28620         * modules/readutmp (Depends-on): Add stdint.
28621         * modules/mountlist (Depends-on): Add stdint.
28622         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
28623
28624 2009-03-10  Bruno Haible  <bruno@clisp.org>
28625
28626         Tests for module 'mbmemcasecoll'.
28627         * modules/mbmemcasecoll-tests: New file.
28628         * tests/test-mbmemcasecoll1.sh: New file.
28629         * tests/test-mbmemcasecoll2.sh: New file.
28630         * tests/test-mbmemcasecoll3.sh: New file.
28631         * tests/test-mbmemcasecoll.c: New file.
28632
28633         New module 'mbmemcasecoll'.
28634         * lib/mbmemcasecoll.h: New file.
28635         * lib/mbmemcasecoll.c: New file.
28636         * modules/mbmemcasecoll: New file.
28637
28638         * tests/test-mbmemcasecmp.h: New file, extracted from
28639         tests/test-mbmemcasecmp.c.
28640         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
28641         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
28642         (main): Update.
28643         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
28644
28645 2009-03-09  Bruno Haible  <bruno@clisp.org>
28646
28647         Tests for module 'mbmemcasecmp'.
28648         * modules/mbmemcasecmp-tests: New file.
28649         * tests/test-mbmemcasecmp1.sh: New file.
28650         * tests/test-mbmemcasecmp2.sh: New file.
28651         * tests/test-mbmemcasecmp3.sh: New file.
28652         * tests/test-mbmemcasecmp.c: New file.
28653
28654         New module 'mbmemcasecmp'.
28655         * lib/mbmemcasecmp.h: New file.
28656         * lib/mbmemcasecmp.c: New file.
28657         * modules/mbmemcasecmp: New file.
28658
28659 2009-03-09  Bruno Haible  <bruno@clisp.org>
28660
28661         Tests for module 'unicase/ulc-casecoll'.
28662         * modules/unicase/ulc-casecoll-tests: New file.
28663         * tests/unicase/test-ulc-casecoll1.sh: New file.
28664         * tests/unicase/test-ulc-casecoll2.sh: New file.
28665         * tests/unicase/test-ulc-casecoll.c: New file.
28666
28667         New module 'unicase/ulc-casecoll'.
28668         * lib/unicase.h (ulc_casecoll): New declaration.
28669         * lib/unicase/ulc-casecoll.c: New file.
28670         * modules/unicase/ulc-casecoll: New file.
28671
28672         New module 'unicase/ulc-casexfrm'.
28673         * lib/unicase.h (ulc_casexfrm): New declaration.
28674         * lib/unicase/ulc-casexfrm.c: New file.
28675         * modules/unicase/ulc-casexfrm: New file.
28676
28677 2009-03-09  Bruno Haible  <bruno@clisp.org>
28678
28679         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
28680         invocations.
28681
28682         * m4/mbscasecmp.m4: Remove file.
28683         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
28684         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
28685
28686         * m4/mbscasestr.m4: Remove file.
28687         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
28688         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
28689
28690         * m4/mbschr.m4: Remove file.
28691         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
28692         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
28693
28694         * m4/mbscspn.m4: Remove file.
28695         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
28696         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
28697
28698         * m4/mbslen.m4: Remove file.
28699         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
28700         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
28701
28702         * m4/mbsncasecmp.m4: Remove file.
28703         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
28704         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
28705
28706         * m4/mbsnlen.m4: Remove file.
28707         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
28708         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
28709
28710         * m4/mbspbrk.m4: Remove file.
28711         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
28712         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
28713
28714         * m4/mbspcasecmp.m4: Remove file.
28715         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
28716         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
28717
28718         * m4/mbsrchr.m4: Remove file.
28719         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
28720         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
28721
28722         * m4/mbssep.m4: Remove file.
28723         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
28724         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
28725
28726         * m4/mbsspn.m4: Remove file.
28727         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
28728         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
28729
28730         * m4/mbsstr.m4: Remove file.
28731         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
28732         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
28733
28734         * m4/mbstok_r.m4: Remove file.
28735         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
28736         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
28737
28738         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
28739
28740         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
28741         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
28742
28743         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
28744
28745 2009-03-08  Bruno Haible  <bruno@clisp.org>
28746
28747         Tests for module 'unicase/ulc-casecmp'.
28748         * modules/unicase/ulc-casecmp-tests: New file.
28749         * tests/unicase/test-ulc-casecmp1.sh: New file.
28750         * tests/unicase/test-ulc-casecmp2.sh: New file.
28751         * tests/unicase/test-ulc-casecmp.c: New file.
28752
28753         New module 'unicase/ulc-casecmp'.
28754         * lib/unicase.h (ulc_casecmp): New declaration.
28755         * lib/unicase/ulc-casecmp.c: New file.
28756         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
28757         'const SRC_UNIT *'.
28758         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
28759         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
28760         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
28761         * modules/unicase/ulc-casecmp: New file.
28762
28763         Tests for module 'unicase/u32-is-cased'.
28764         * modules/unicase/u32-is-cased-tests: New file.
28765         * tests/unicase/test-u32-is-cased.c: New file.
28766
28767         Tests for module 'unicase/u16-is-cased'.
28768         * modules/unicase/u16-is-cased-tests: New file.
28769         * tests/unicase/test-u16-is-cased.c: New file.
28770
28771         Tests for module 'unicase/u8-is-cased'.
28772         * modules/unicase/u8-is-cased-tests: New file.
28773         * tests/unicase/test-u8-is-cased.c: New file.
28774         * tests/unicase/test-is-cased.h: New file.
28775
28776         New module 'unicase/u32-is-cased'.
28777         * lib/unicase/u32-is-cased.c: New file.
28778         * modules/unicase/u32-is-cased: New file.
28779
28780         New module 'unicase/u16-is-cased'.
28781         * lib/unicase/u16-is-cased.c: New file.
28782         * modules/unicase/u16-is-cased: New file.
28783
28784         New module 'unicase/u8-is-cased'.
28785         * lib/unicase/u8-is-cased.c: New file.
28786         * lib/unicase/u-is-cased.h: New file.
28787         * modules/unicase/u8-is-cased: New file.
28788
28789         Tests for module 'unicase/u32-is-casefolded'.
28790         * modules/unicase/u32-is-casefolded-tests: New file.
28791         * tests/unicase/test-u32-is-casefolded.c: New file.
28792
28793         Tests for module 'unicase/u16-is-casefolded'.
28794         * modules/unicase/u16-is-casefolded-tests: New file.
28795         * tests/unicase/test-u16-is-casefolded.c: New file.
28796
28797         Tests for module 'unicase/u8-is-casefolded'.
28798         * modules/unicase/u8-is-casefolded-tests: New file.
28799         * tests/unicase/test-u8-is-casefolded.c: New file.
28800         * tests/unicase/test-is-casefolded.h: New file.
28801
28802         New module 'unicase/u32-is-casefolded'.
28803         * lib/unicase/u32-is-casefolded.c: New file.
28804         * modules/unicase/u32-is-casefolded: New file.
28805
28806         New module 'unicase/u16-is-casefolded'.
28807         * lib/unicase/u16-is-casefolded.c: New file.
28808         * modules/unicase/u16-is-casefolded: New file.
28809
28810         New module 'unicase/u8-is-casefolded'.
28811         * lib/unicase/u8-is-casefolded.c: New file.
28812         * modules/unicase/u8-is-casefolded: New file.
28813
28814         Tests for module 'unicase/u32-is-titlecase'.
28815         * modules/unicase/u32-is-titlecase-tests: New file.
28816         * tests/unicase/test-u32-is-titlecase.c: New file.
28817
28818         Tests for module 'unicase/u16-is-titlecase'.
28819         * modules/unicase/u16-is-titlecase-tests: New file.
28820         * tests/unicase/test-u16-is-titlecase.c: New file.
28821
28822         Tests for module 'unicase/u8-is-titlecase'.
28823         * modules/unicase/u8-is-titlecase-tests: New file.
28824         * tests/unicase/test-u8-is-titlecase.c: New file.
28825         * tests/unicase/test-is-titlecase.h: New file.
28826
28827         New module 'unicase/u32-is-titlecase'.
28828         * lib/unicase/u32-is-titlecase.c: New file.
28829         * modules/unicase/u32-is-titlecase: New file.
28830
28831         New module 'unicase/u16-is-titlecase'.
28832         * lib/unicase/u16-is-titlecase.c: New file.
28833         * modules/unicase/u16-is-titlecase: New file.
28834
28835         New module 'unicase/u8-is-titlecase'.
28836         * lib/unicase/u8-is-titlecase.c: New file.
28837         * modules/unicase/u8-is-titlecase: New file.
28838
28839         Tests for module 'unicase/u32-is-lowercase'.
28840         * modules/unicase/u32-is-lowercase-tests: New file.
28841         * tests/unicase/test-u32-is-lowercase.c: New file.
28842
28843         Tests for module 'unicase/u16-is-lowercase'.
28844         * modules/unicase/u16-is-lowercase-tests: New file.
28845         * tests/unicase/test-u16-is-lowercase.c: New file.
28846
28847         Tests for module 'unicase/u8-is-lowercase'.
28848         * modules/unicase/u8-is-lowercase-tests: New file.
28849         * tests/unicase/test-u8-is-lowercase.c: New file.
28850         * tests/unicase/test-is-lowercase.h: New file.
28851
28852         New module 'unicase/u32-is-lowercase'.
28853         * lib/unicase/u32-is-lowercase.c: New file.
28854         * modules/unicase/u32-is-lowercase: New file.
28855
28856         New module 'unicase/u16-is-lowercase'.
28857         * lib/unicase/u16-is-lowercase.c: New file.
28858         * modules/unicase/u16-is-lowercase: New file.
28859
28860         New module 'unicase/u8-is-lowercase'.
28861         * lib/unicase/u8-is-lowercase.c: New file.
28862         * modules/unicase/u8-is-lowercase: New file.
28863
28864         Tests for module 'unicase/u32-is-uppercase'.
28865         * modules/unicase/u32-is-uppercase-tests: New file.
28866         * tests/unicase/test-u32-is-uppercase.c: New file.
28867
28868         Tests for module 'unicase/u16-is-uppercase'.
28869         * modules/unicase/u16-is-uppercase-tests: New file.
28870         * tests/unicase/test-u16-is-uppercase.c: New file.
28871
28872         Tests for module 'unicase/u8-is-uppercase'.
28873         * modules/unicase/u8-is-uppercase-tests: New file.
28874         * tests/unicase/test-u8-is-uppercase.c: New file.
28875         * tests/unicase/test-is-uppercase.h: New file.
28876
28877         New module 'unicase/u32-is-uppercase'.
28878         * lib/unicase/u32-is-uppercase.c: New file.
28879         * modules/unicase/u32-is-uppercase: New file.
28880
28881         New module 'unicase/u16-is-uppercase'.
28882         * lib/unicase/u16-is-uppercase.c: New file.
28883         * modules/unicase/u16-is-uppercase: New file.
28884
28885         New module 'unicase/u8-is-uppercase'.
28886         * lib/unicase/u8-is-uppercase.c: New file.
28887         * modules/unicase/u8-is-uppercase: New file.
28888
28889         New module 'unicase/u32-is-invariant'.
28890         * lib/unicase/u32-is-invariant.c: New file.
28891         * modules/unicase/u32-is-invariant: New file.
28892
28893         New module 'unicase/u16-is-invariant'.
28894         * lib/unicase/u16-is-invariant.c: New file.
28895         * modules/unicase/u16-is-invariant: New file.
28896
28897         New module 'unicase/u8-is-invariant'.
28898         * lib/unicase/u8-is-invariant.c: New file.
28899         * lib/unicase/invariant.h: New file.
28900         * lib/unicase/u-is-invariant.h: New file.
28901         * modules/unicase/u8-is-invariant: New file.
28902
28903         Tests for module 'unicase/u32-casecoll'.
28904         * modules/unicase/u32-casecoll-tests: New file.
28905         * tests/unicase/test-u32-casecoll.c: New file.
28906
28907         Tests for module 'unicase/u16-casecoll'.
28908         * modules/unicase/u16-casecoll-tests: New file.
28909         * tests/unicase/test-u16-casecoll.c: New file.
28910
28911         Tests for module 'unicase/u8-casecoll'.
28912         * modules/unicase/u8-casecoll-tests: New file.
28913         * tests/unicase/test-u8-casecoll.c: New file.
28914
28915         New module 'unicase/u32-casecoll'.
28916         * lib/unicase/u32-casecoll.c: New file.
28917         * modules/unicase/u32-casecoll: New file.
28918
28919         New module 'unicase/u16-casecoll'.
28920         * lib/unicase/u16-casecoll.c: New file.
28921         * modules/unicase/u16-casecoll: New file.
28922
28923         New module 'unicase/u8-casecoll'.
28924         * lib/unicase/u8-casecoll.c: New file.
28925         * lib/unicase/u-casecoll.h: New file.
28926         * modules/unicase/u8-casecoll: New file.
28927
28928         New module 'unicase/u32-casexfrm'.
28929         * lib/unicase/u32-casexfrm.c: New file.
28930         * modules/unicase/u32-casexfrm: New file.
28931
28932         New module 'unicase/u16-casexfrm'.
28933         * lib/unicase/u16-casexfrm.c: New file.
28934         * modules/unicase/u16-casexfrm: New file.
28935
28936         New module 'unicase/u8-casexfrm'.
28937         * lib/unicase/u8-casexfrm.c: New file.
28938         * lib/unicase/u-casexfrm.h: New file.
28939         * modules/unicase/u8-casexfrm: New file.
28940
28941         Tests for module 'unicase/u32-casecmp'.
28942         * modules/unicase/u32-casecmp-tests: New file.
28943         * tests/unicase/test-u32-casecmp.c: New file.
28944
28945         Tests for module 'unicase/u16-casecmp'.
28946         * modules/unicase/u16-casecmp-tests: New file.
28947         * tests/unicase/test-u16-casecmp.c: New file.
28948
28949         Tests for module 'unicase/u8-casecmp'.
28950         * modules/unicase/u8-casecmp-tests: New file.
28951         * tests/unicase/test-u8-casecmp.c: New file.
28952         * tests/unicase/test-casecmp.h: New file.
28953
28954         New module 'unicase/u32-casecmp'.
28955         * lib/unicase/u32-casecmp.c: New file.
28956         * modules/unicase/u32-casecmp: New file.
28957
28958         New module 'unicase/u16-casecmp'.
28959         * lib/unicase/u16-casecmp.c: New file.
28960         * modules/unicase/u16-casecmp: New file.
28961
28962         New module 'unicase/u8-casecmp'.
28963         * lib/unicase/u8-casecmp.c: New file.
28964         * lib/unicase/u-casecmp.h: New file.
28965         * modules/unicase/u8-casecmp: New file.
28966
28967         Tests for module 'unicase/u32-casefold'.
28968         * modules/unicase/u32-casefold-tests: New file.
28969         * tests/unicase/test-u32-casefold.c: New file.
28970
28971         Tests for module 'unicase/u16-casefold'.
28972         * modules/unicase/u16-casefold-tests: New file.
28973         * tests/unicase/test-u16-casefold.c: New file.
28974
28975         Tests for module 'unicase/u8-casefold'.
28976         * modules/unicase/u8-casefold-tests: New file.
28977         * tests/unicase/test-u8-casefold.c: New file.
28978
28979         New module 'unicase/u32-casefold'.
28980         * lib/unicase/u32-casefold.c: New file.
28981         * modules/unicase/u32-casefold: New file.
28982
28983         New module 'unicase/u16-casefold'.
28984         * lib/unicase/u16-casefold.c: New file.
28985         * modules/unicase/u16-casefold: New file.
28986
28987         New module 'unicase/u8-casefold'.
28988         * lib/unicase/u8-casefold.c: New file.
28989         * lib/unicase/u-casefold.h: New file.
28990         * modules/unicase/u8-casefold: New file.
28991
28992         New module 'unicase/tocasefold'.
28993         * lib/unicase/casefold.h: New file.
28994         * lib/unicase/tocasefold.c: New file.
28995         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
28996         * modules/unicase/tocasefold: New file.
28997
28998         Tests for module 'unicase/u32-totitle'.
28999         * modules/unicase/u32-totitle-tests: New file.
29000         * tests/unicase/test-u32-totitle.c: New file.
29001
29002         Tests for module 'unicase/u16-totitle'.
29003         * modules/unicase/u16-totitle-tests: New file.
29004         * tests/unicase/test-u16-totitle.c: New file.
29005
29006         Tests for module 'unicase/u8-totitle'.
29007         * modules/unicase/u8-totitle-tests: New file.
29008         * tests/unicase/test-u8-totitle.c: New file.
29009
29010         New module 'unicase/u32-totitle'.
29011         * lib/unicase/u32-totitle.c: New file.
29012         * modules/unicase/u32-totitle: New file.
29013
29014         New module 'unicase/u16-totitle'.
29015         * lib/unicase/u16-totitle.c: New file.
29016         * modules/unicase/u16-totitle: New file.
29017
29018         New module 'unicase/u8-totitle'.
29019         * lib/unicase/u8-totitle.c: New file.
29020         * lib/unicase/u-totitle.h: New file.
29021         * modules/unicase/u8-totitle: New file.
29022
29023         Tests for module 'unicase/u32-tolower'.
29024         * modules/unicase/u32-tolower-tests: New file.
29025         * tests/unicase/test-u32-tolower.c: New file.
29026
29027         Tests for module 'unicase/u16-tolower'.
29028         * modules/unicase/u16-tolower-tests: New file.
29029         * tests/unicase/test-u16-tolower.c: New file.
29030
29031         Tests for module 'unicase/u8-tolower'.
29032         * modules/unicase/u8-tolower-tests: New file.
29033         * tests/unicase/test-u8-tolower.c: New file.
29034
29035         New module 'unicase/u32-tolower'.
29036         * lib/unicase/u32-tolower.c: New file.
29037         * modules/unicase/u32-tolower: New file.
29038
29039         New module 'unicase/u16-tolower'.
29040         * lib/unicase/u16-tolower.c: New file.
29041         * modules/unicase/u16-tolower: New file.
29042
29043         New module 'unicase/u8-tolower'.
29044         * lib/unicase/u8-tolower.c: New file.
29045         * modules/unicase/u8-tolower: New file.
29046
29047         Tests for module 'unicase/u32-toupper'.
29048         * modules/unicase/u32-toupper-tests: New file.
29049         * tests/unicase/test-u32-toupper.c: New file.
29050
29051         Tests for module 'unicase/u16-toupper'.
29052         * modules/unicase/u16-toupper-tests: New file.
29053         * tests/unicase/test-u16-toupper.c: New file.
29054
29055         Tests for module 'unicase/u8-toupper'.
29056         * modules/unicase/u8-toupper-tests: New file.
29057         * tests/unicase/test-u8-toupper.c: New file.
29058
29059         New module 'unicase/u32-toupper'.
29060         * lib/unicase/u32-toupper.c: New file.
29061         * modules/unicase/u32-toupper: New file.
29062
29063         New module 'unicase/u16-toupper'.
29064         * lib/unicase/u16-toupper.c: New file.
29065         * modules/unicase/u16-toupper: New file.
29066
29067         New module 'unicase/u8-toupper'.
29068         * lib/unicase/u8-toupper.c: New file.
29069         * modules/unicase/u8-toupper: New file.
29070
29071         New module 'unicase/u32-casemap'.
29072         * lib/unicase/u32-casemap.c: New file.
29073         * modules/unicase/u32-casemap: New file.
29074
29075         New module 'unicase/u16-casemap'.
29076         * lib/unicase/u16-casemap.c: New file.
29077         * modules/unicase/u16-casemap: New file.
29078
29079         New module 'unicase/u8-casemap'.
29080         * lib/unicase/unicasemap.h: New file.
29081         * lib/unicase/u8-casemap.c: New file.
29082         * lib/unicase/u-casemap.h: New file.
29083         * modules/unicase/u8-casemap: New file.
29084
29085         New module 'unicase/special-casing'.
29086         * lib/unicase/special-casing.h: New file.
29087         * lib/unicase/special-casing.c: New file.
29088         * lib/unicase/special-casing-table.gperf: New file, generated by
29089         gen-uni-tables.c.
29090         * modules/unicase/special-casing: New file.
29091
29092         Tests for module 'unicase/locale-language'.
29093         * modules/unicase/locale-language-tests: New file.
29094         * tests/unicase/test-locale-language.sh: New file.
29095         * tests/unicase/test-locale-language.c: New file.
29096
29097         New module 'unicase/locale-language'.
29098         * lib/unicase/locale-language.c: New file.
29099         * lib/unicase/locale-languages.gperf: New file.
29100         * modules/unicase/locale-language: New file.
29101
29102         Generate more tables for case conversion and case folding.
29103         * lib/gen-uni-tables.c (SCC_*): New enum items.
29104         (struct special_casing_rule): New type.
29105         (casing_rules, num_casing_rules, allocated_casing_rules): New
29106         variables.
29107         (add_casing_rule, fill_casing_rules): New functions.
29108         (struct casefold_rule): New type.
29109         (casefolding_rules, num_casefolding_rules,
29110         allocated_casefolding_rules): New variables.
29111         (fill_casefolding_rules): New function.
29112         (unicode_casefold): New variable.
29113         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29114         sort_casing_rules, output_casing_rules): New functions.
29115         (main): Accept to more arguments: SpecialCasing.txt and
29116         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29117         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29118         Output mapping for casefolding.
29119
29120         * lib/unicase.h: Include stdbool.h, uninorm.h.
29121         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29122         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29123         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29124         arguments.
29125         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29126         resultp arguments.
29127         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29128         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29129         resultp arguments.
29130         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29131         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29132         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29133         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29134         declarations.
29135         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29136
29137 2009-03-08  Bruno Haible  <bruno@clisp.org>
29138
29139         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29140         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29141         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29142         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29143
29144 2009-03-07  Bruno Haible  <bruno@clisp.org>
29145
29146         Adjust u*_normcmp, u*_normcoll API.
29147         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29148         u16_normcoll, u32_normcoll): Change failure conventions.
29149         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29150         errno and return -1.
29151         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29152
29153 2009-03-07  Bruno Haible  <bruno@clisp.org>
29154
29155         Tests for module 'uninorm/u32-normcoll'.
29156         * modules/uninorm/u32-normcoll-tests: New file.
29157         * tests/uninorm/test-u32-normcoll.c: New file.
29158
29159         Tests for module 'uninorm/u16-normcoll'.
29160         * modules/uninorm/u16-normcoll-tests: New file.
29161         * tests/uninorm/test-u16-normcoll.c: New file.
29162
29163         Tests for module 'uninorm/u8-normcoll'.
29164         * modules/uninorm/u8-normcoll-tests: New file.
29165         * tests/uninorm/test-u8-normcoll.c: New file.
29166
29167 2009-03-07  Bruno Haible  <bruno@clisp.org>
29168
29169         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29170         tests/uninorm/test-u32-normcmp.c.
29171         * tests/uninorm/test-u32-normcmp.c: Include it.
29172         (test_nonascii): New function, extracted from main. Add some more
29173         tests.
29174         (main): Invoke test_ascii and test_nonascii.
29175         * modules/uninorm/u32-normcmp-tests (Files): Add
29176         tests/uninorm/test-u32-normcmp.h.
29177         (Depends-on): Remove uninorm/u32-normcmp.
29178
29179         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29180         tests/uninorm/test-u16-normcmp.c.
29181         * tests/uninorm/test-u16-normcmp.c: Include it.
29182         (test_nonascii): New function, extracted from main. Add some more
29183         tests.
29184         (main): Invoke test_ascii and test_nonascii.
29185         * modules/uninorm/u16-normcmp-tests (Files): Add
29186         tests/uninorm/test-u16-normcmp.h.
29187         (Depends-on): Remove uninorm/u16-normcmp.
29188
29189         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29190         tests/uninorm/test-u8-normcmp.c.
29191         * tests/uninorm/test-u8-normcmp.c: Include it.
29192         (test_nonascii): New function, extracted from main. Add some more
29193         tests.
29194         (main): Invoke test_ascii and test_nonascii.
29195         * modules/uninorm/u8-normcmp-tests (Files): Add
29196         tests/uninorm/test-u8-normcmp.h.
29197         (Depends-on): Remove uninorm/u8-normcmp.
29198
29199 2009-03-07  Bruno Haible  <bruno@clisp.org>
29200
29201         New module 'uninorm/u32-normcoll'.
29202         * lib/uninorm/u32-normcoll.c: New file.
29203         * modules/uninorm/u32-normcoll: New file.
29204
29205         New module 'uninorm/u16-normcoll'.
29206         * lib/uninorm/u16-normcoll.c: New file.
29207         * modules/uninorm/u16-normcoll: New file.
29208
29209         New module 'uninorm/u8-normcoll'.
29210         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
29211         declarations.
29212         * lib/uninorm/u8-normcoll.c: New file.
29213         * lib/uninorm/u-normcoll.h: New file.
29214         * modules/uninorm/u8-normcoll: New file.
29215
29216         New module 'uninorm/u32-normxfrm'.
29217         * lib/uninorm/u32-normxfrm.c: New file.
29218         * modules/uninorm/u32-normxfrm: New file.
29219
29220         New module 'uninorm/u16-normxfrm'.
29221         * lib/uninorm/u16-normxfrm.c: New file.
29222         * modules/uninorm/u16-normxfrm: New file.
29223
29224         New module 'uninorm/u8-normxfrm'.
29225         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
29226         declarations.
29227         * lib/uninorm/u8-normxfrm.c: New file.
29228         * lib/uninorm/u-normxfrm.h: New file.
29229         * modules/uninorm/u8-normxfrm: New file.
29230
29231 2009-03-07  Bruno Haible  <bruno@clisp.org>
29232
29233         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
29234         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
29235         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
29236
29237 2009-03-07  Bruno Haible  <bruno@clisp.org>
29238
29239         New module 'memxfrm'.
29240         * lib/memxfrm.h: New file.
29241         * lib/memxfrm.c: New file.
29242         * modules/memxfrm: New file.
29243
29244 2009-03-07  Bruno Haible  <bruno@clisp.org>
29245
29246         New module 'memcmp2'.
29247         * lib/memcmp2.h: New file.
29248         * lib/memcmp2.c: New file.
29249         * modules/memcmp2: New file.
29250
29251 2009-03-07  Bruno Haible  <bruno@clisp.org>
29252
29253         Tests for module 'uninorm/decomposing-form'.
29254         * modules/uninorm/decomposing-form-tests: New file.
29255         * tests/uninorm/test-decomposing-form.c: New file.
29256
29257         New module 'uninorm/decomposing-form'.
29258         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
29259         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
29260         Add 'decomposing_variant' field.
29261         * lib/uninorm/decomposing-form.c: New file.
29262         * lib/uninorm/nfc.c (uninorm_nfc): Update.
29263         * lib/uninorm/nfd.c (uninorm_nfd): Update.
29264         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
29265         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
29266         * modules/uninorm/decomposing-form: New file.
29267         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
29268         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
29269
29270 2009-03-07  Bruno Haible  <bruno@clisp.org>
29271
29272         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
29273         strings.
29274
29275 2009-03-06  Bruno Haible  <bruno@clisp.org>
29276
29277         Tests for module 'uninorm/u32-normcmp'.
29278         * tests/uninorm/test-u32-normcmp.c: New file.
29279         * modules/uninorm/u32-normcmp-tests: New file.
29280
29281         Tests for module 'uninorm/u16-normcmp'.
29282         * tests/uninorm/test-u16-normcmp.c: New file.
29283         * modules/uninorm/u16-normcmp-tests: New file.
29284
29285         Tests for module 'uninorm/u8-normcmp'.
29286         * tests/uninorm/test-u8-normcmp.c: New file.
29287         * modules/uninorm/u8-normcmp-tests: New file.
29288
29289         New module 'uninorm/u32-normcmp'.
29290         * lib/uninorm/u32-normcmp.c: New file.
29291         * modules/uninorm/u32-normcmp: New file.
29292
29293         New module 'uninorm/u16-normcmp'.
29294         * lib/uninorm/u16-normcmp.c: New file.
29295         * modules/uninorm/u16-normcmp: New file.
29296
29297         New module 'uninorm/u8-normcmp'.
29298         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
29299         declarations.
29300         * lib/uninorm/u8-normcmp.c: New file.
29301         * lib/uninorm/u-normcmp.h: New file.
29302         * modules/uninorm/u8-normcmp: New file.
29303
29304 2009-03-06  Bruno Haible  <bruno@clisp.org>
29305
29306         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
29307         Reported by Eric Blake.
29308
29309 2009-03-06  Eric Blake  <ebb9@byu.net>
29310             Bruno Haible  <bruno@clisp.org>
29311
29312         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
29313         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
29314         condition.
29315         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29316         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
29317         condition.
29318         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
29319
29320 2009-03-06  Eric Blake  <ebb9@byu.net>
29321
29322         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
29323         to avoid compiler warnings.
29324         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
29325
29326 2009-03-05  Bruno Haible  <bruno@clisp.org>
29327
29328         * tests/test-ftell.c (main): Disable test beyond end of file on
29329         FreeMiNT.
29330         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29331
29332 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
29333
29334         * lib/filevercmp.c: Move hidden files up in ordering.
29335         * tests/test-filevercmp.c: Add tests for hidden files.
29336
29337 2009-03-04  Bruno Haible  <bruno@clisp.org>
29338
29339         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
29340         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
29341         AM_CFLAGS.
29342         Reported by Simon Josefsson.
29343
29344 2009-03-03  Bruno Haible  <bruno@clisp.org>
29345
29346         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
29347         Reported by Simon Josefsson.
29348
29349         * doc/ld-version-script.texi: Update node reference.
29350
29351 2009-03-03  Bruno Haible  <bruno@clisp.org>
29352
29353         * modules/visibility (License): Change to 'unlimited'.
29354         Suggested by Simon Josefsson.
29355
29356 2009-03-03  Jim Meyering  <meyering@redhat.com>
29357
29358         unlinkdir: cannot_unlink_dir may modify process state
29359         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
29360         it's neither thread-safe nor appropriate for use in a library.
29361
29362 2009-03-03  Eric Blake  <ebb9@byu.net>
29363
29364         test-closein: silence test under Darwin
29365         * tests/test-closein.sh: Ignore stderr from cat, since we don't
29366         care if it dies from EPIPE or EBADF.
29367
29368 2009-03-03  Bruno Haible  <bruno@clisp.org>
29369
29370         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
29371         earlier.
29372         * doc/visibility.texi: Fix @node and @section.
29373
29374 2009-03-03  Simon Josefsson  <simon@josefsson.org>
29375
29376         * doc/gnulib.texi: Link to sections for ld version script and
29377         visibility.
29378         * doc/visibility.texi: Add @node and @section.
29379         * modules/ld-version-script: New module.
29380         * m4/ld-version-script.m4: New file.
29381         * doc/ld-version-script.texi: New file.
29382
29383 2009-03-02  David Lutterkort  <lutter@redhat.com>
29384
29385         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
29386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29387
29388 2009-03-02  Bruno Haible  <bruno@clisp.org>
29389
29390         * doc/visibility.texi: Mention libtool's -export-symbols option.
29391
29392 2009-03-02  Jim Meyering  <meyering@redhat.com>
29393
29394         announce-gen: new option: --no-print-checksums
29395         * build-aux/announce-gen (usage): Describe it.
29396         (print_checksums): Print a newline here, not in the [*] footnote.
29397         (main): Honor it.
29398
29399 2009-03-01  Bruno Haible  <bruno@clisp.org>
29400
29401         Use socklen_t in the native Windows replacements prototypes.
29402         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
29403         instead of 'int'.
29404         * lib/getsockopt.c (rpl_getsockopt): Likewise.
29405         * lib/setsockopt.c (rpl_setsockopt): Likewise.
29406         * modules/getsockopt (Depends-on): Add socklen.
29407         * modules/setsockopt (Depends-on): Add socklen.
29408
29409 2009-03-01  Bruno Haible  <bruno@clisp.org>
29410
29411         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
29412         least 4.2.
29413
29414 2009-03-01  Eric Blake  <ebb9@byu.net>
29415             Bruno Haible  <bruno@clisp.org>
29416
29417         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
29418         error messages.
29419         * lib/wait-process.c (wait_subprocess): Omit error message about
29420         deadly signal sent to the child of termsigp != NULL.
29421
29422 2009-03-01  Eric Blake  <ebb9@byu.net>
29423
29424         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
29425
29426 2009-03-01  Bruno Haible  <bruno@clisp.org>
29427
29428         Avoid a gcc warning.
29429         * tests/test-sched.c (b): Make global.
29430         Reported by Eric Blake.
29431
29432 2009-01-19  Martin Lambers  <marlam@marlam.de>
29433
29434         Provide POSIX semantics for socket timeout options on W32.
29435         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
29436         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
29437         * modules/setsockopt: Depend on sys_time module for struct timeval.
29438         * modules/getsockopt: Depend on sys_time module for struct timeval.
29439
29440 2009-03-01  Simon Josefsson  <simon@josefsson.org>
29441
29442         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
29443         __USE_GNU, for consistency with netdb.in.h.
29444         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29445
29446 2009-03-01  Bruno Haible  <bruno@clisp.org>
29447
29448         More support for FreeMiNT.
29449         * lib/fseeko.c (rpl_fseeko): Complete last commit.
29450         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29451
29452 2009-03-01  Bruno Haible  <bruno@clisp.org>
29453
29454         More support for FreeMiNT.
29455         * lib/fpurge.c (fpurge): Correct last commit.
29456         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29457
29458 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29459
29460         Fix unportable awk script in vc-list-files.
29461         * build-aux/vc-list-files: In the replacement awk script, use
29462         substr with a second argument of 1, not zero.
29463         Report by Simon Josefsson.
29464
29465 2009-02-28  Bruno Haible  <bruno@clisp.org>
29466
29467         More support for FreeMiNT.
29468         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
29469         to FreeMiNT today.
29470         * lib/fwriting.c (fwriting): Likewise.
29471         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
29472
29473 2009-02-28  Bruno Haible  <bruno@clisp.org>
29474
29475         * tests/test-freadseek.c (main): Disable test beyond end of file on
29476         FreeMiNT.
29477         * tests/test-ftello.c (main): Likewise.
29478         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
29479
29480 2009-02-28  Bruno Haible  <bruno@clisp.org>
29481
29482         Add tentative support for FreeMiNT.
29483         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
29484         * lib/fpurge.c (fpurge): Likewise.
29485         * lib/freadable.c (freadable): Likewise.
29486         * lib/freading.c (freading): Likewise.
29487         * lib/freadptr.c (freadptr): Likewise.
29488         * lib/freadseek.c (freadptrinc): Likewise.
29489         * lib/fseeko.c (rpl_fseeko): Likewise.
29490         * lib/fseterr.c (fseterr): Likewise.
29491         * lib/fwritable.c (fwritable): Likewise.
29492         * lib/fwriting.c (fwriting): Likewise.
29493         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
29494         Hourihane.
29495         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29496
29497 2009-02-28  Bruno Haible  <bruno@clisp.org>
29498
29499         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
29500         SIGCHLD.
29501         Reported by Jim Meyering.
29502
29503 2009-02-28  Bruno Haible  <bruno@clisp.org>
29504
29505         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
29506         Mention the results of these tests on various platforms.
29507         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
29508         order.
29509         * doc/posix-functions/printf.texi: Likewise.
29510         * doc/posix-functions/snprintf.texi: Likewise.
29511         * doc/posix-functions/sprintf.texi: Likewise.
29512         * doc/posix-functions/vfprintf.texi: Likewise.
29513         * doc/posix-functions/vprintf.texi: Likewise.
29514         * doc/posix-functions/vsnprintf.texi: Likewise.
29515         * doc/posix-functions/vsprintf.texi: Likewise.
29516         * doc/glibc-functions/obstack_printf.texi: Likewise.
29517         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29518
29519 2009-02-28  Bruno Haible  <bruno@clisp.org>
29520
29521         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
29522         Reported by Loïc Minier <lool@dooz.org>.
29523
29524 2009-02-27  Bruno Haible  <bruno@clisp.org>
29525
29526         * gnulib-tool (func_import): Make the sed expression used to create the
29527         sed script for updating the .gitignore file POSIX compliant.
29528         Reported by Eric Blake.
29529
29530 2009-02-27  Bruno Haible  <bruno@clisp.org>
29531
29532         * gnulib-tool (sed): Don't alias as "sed --posix".
29533         Reported by Eric Blake.
29534
29535 2009-02-27  Bruno Haible  <bruno@clisp.org>
29536
29537         Avoid test link errors.
29538         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
29539         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
29540         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
29541         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
29542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29543
29544 2009-02-27  Bruno Haible  <bruno@clisp.org>
29545
29546         Avoid spurious "(cached)" in configure output.
29547         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
29548         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
29549         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29550         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29551         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29552         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29553         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29554         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29555         Reported by Eric Blake.
29556
29557 2009-02-27  Eric Blake  <ebb9@byu.net>
29558
29559         printf: fix regression in previous patch
29560         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
29561
29562 2009-02-27  Bruno Haible  <bruno@clisp.org>
29563
29564         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
29565         value.
29566         * lib/stdint.in.h: Likewise.
29567         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
29568
29569 2009-02-27  Eric Blake  <ebb9@byu.net>
29570
29571         doc: mention more functions added in cygwin 1.7.0
29572         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
29573         addition.
29574         * doc/posix-functions/open_wmemstream.texi: Likewise.
29575         * doc/posix-functions/wcsnlen.texi: Likewise.
29576         * doc/posix-functions/wcsnrtombs.texi: Likewise.
29577         * doc/posix-functions/wcstod.texi: Likewise.
29578         * doc/posix-functions/wcstof.texi: Likewise.
29579         * doc/posix-functions/wcstoimax.texi: Likewise.
29580         * doc/posix-functions/wcstok.texi: Likewise.
29581         * doc/posix-functions/wcstoumax.texi: Likewise.
29582
29583         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
29584         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
29585         * doc/posix-functions/fprintf.texi: Update.
29586         * doc/posix-functions/printf.texi: Update.
29587         * doc/posix-functions/snprintf.texi: Update.
29588         * doc/posix-functions/sprintf.texi: Update.
29589         * doc/posix-functions/vfprintf.texi: Update.
29590         * doc/posix-functions/vprintf.texi: Update.
29591         * doc/posix-functions/vsnprintf.texi: Update.
29592         * doc/posix-functions/vsprintf.texi: Update.
29593         * doc/glibc-functions/obstack_printf.texi: Update.
29594         * doc/glibc-functions/obstack_vprintf.texi: Update.
29595
29596 2009-02-26  Eric Blake  <ebb9@byu.net>
29597
29598         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
29599         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
29600         compilation bug by using runtime conversion.
29601         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29602         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
29603         * modules/ceill-tests (Files): Use nan.h.
29604         * modules/floorl-tests (Files): Likewise.
29605         * modules/frexpl-tests (Files): Likewise.
29606         * modules/isnanl-tests (Files): Likewise.
29607         * modules/ldexpl-tests (Files): Likewise.
29608         * modules/roundl-tests (Files): Likewise.
29609         * modules/truncl-tests (Files): Likewise.
29610         * tests/test-ceill.c (main): Use a working NaN.
29611         * tests/test-floorl.c (main): Likewise.
29612         * tests/test-frexpl.c (main): Likewise.
29613         * tests/test-isnan.c (test_long_double): Likewise.
29614         * tests/test-isnanl.h (main): Likewise.
29615         * tests/test-ldexpl.h (main): Likewise.
29616         * tests/test-roundl.h (main): Likewise.
29617         * tests/test-truncl.h (main): Likewise.
29618         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
29619
29620 2009-02-26  Eric Blake  <ebb9@byu.net>
29621             Bruno Haible  <bruno@clisp.org>
29622
29623         Work around a *printf bug with %ls on Solaris.
29624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
29625         precision is specified, sprintf stops converting the wide string
29626         argument when the number of bytes that have been produced by this
29627         conversion equals or exceeds the precision.
29628         * doc/posix-functions/fprintf.texi: Update.
29629         * doc/posix-functions/printf.texi: Update.
29630         * doc/posix-functions/snprintf.texi: Update.
29631         * doc/posix-functions/sprintf.texi: Update.
29632         * doc/posix-functions/vfprintf.texi: Update.
29633         * doc/posix-functions/vprintf.texi: Update.
29634         * doc/posix-functions/vsnprintf.texi: Update.
29635         * doc/posix-functions/vsprintf.texi: Update.
29636         * doc/glibc-functions/obstack_printf.texi: Update.
29637         * doc/glibc-functions/obstack_vprintf.texi: Update.
29638
29639 2009-02-26  Eric Blake  <ebb9@byu.net>
29640
29641         stdlib: favor compiler check of random.h
29642         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
29643         to avoid an ObjC random.h installed by Swarm.
29644
29645 2009-02-26  Bruno Haible  <bruno@clisp.org>
29646
29647         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
29648         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
29649         Reported by Gary V. Vaughan <gary@gnu.org>.
29650
29651 2009-02-26  Bruno Haible  <bruno@clisp.org>
29652
29653         Fix *printf behaviour regarding the %ls directive.
29654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
29655         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
29656         NEED_PRINTF_DIRECTIVE_LS.
29657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
29658         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29659         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29660         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
29661         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
29662         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
29663         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29664         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29665         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29666         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29667         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29668         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
29669         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29670         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29671         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29672         * doc/posix-functions/fprintf.texi: Update.
29673         * doc/posix-functions/printf.texi: Update.
29674         * doc/posix-functions/snprintf.texi: Update.
29675         * doc/posix-functions/sprintf.texi: Update.
29676         * doc/posix-functions/vfprintf.texi: Update.
29677         * doc/posix-functions/vprintf.texi: Update.
29678         * doc/posix-functions/vsnprintf.texi: Update.
29679         * doc/posix-functions/vsprintf.texi: Update.
29680         * doc/glibc-functions/obstack_printf.texi: Update.
29681         * doc/glibc-functions/obstack_vprintf.texi: Update.
29682         Reported by Eric Blake.
29683
29684 2009-02-25  Bruno Haible  <bruno@clisp.org>
29685
29686         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
29687         with known value.
29688         Reported by Gary V. Vaughan <gary@gnu.org>.
29689
29690 2009-02-25  Bruno Haible  <bruno@clisp.org>
29691
29692         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
29693         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
29694         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
29695         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
29696         Reported by Gary V. Vaughan <gary@gnu.org>.
29697
29698 2009-02-25  Bruno Haible  <bruno@clisp.org>
29699
29700         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
29701         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
29702         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
29703         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
29704         Reported by Gary V. Vaughan <gary@gnu.org>.
29705
29706 2009-02-25  Eric Blake  <ebb9@byu.net>
29707
29708         tests: skip fseek/ftell tests if ungetc is broken
29709         * m4/ungetc.m4: New file.
29710         * modules/fseek-tests: Split test, so ungetc dependency is
29711         separate from rest of test.
29712         * modules/fseeko-tests: Likewise.
29713         * modules/ftell-tests: Likewise.
29714         * modules/ftello-tests: Likewise.
29715         * tests/test-fseek.c (main): Isolate ungetc dependency.
29716         * tests/test-fseeko.c (main): Likewise.
29717         * tests/test-ftell.c (main): Likewise.
29718         * tests/test-ftello.c (main): Likewise.
29719         * tests/test-fseek2.sh: New file.
29720         * tests/test-fseeko2.sh: Likewise.
29721         * tests/test-ftell2.sh: Likewise.
29722         * tests/test-ftello2.sh: Likewise.
29723
29724 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
29725
29726         test-getaddrinfo: fix usage of skip return code 77
29727         * tests/test-gettaddrinfo.c: Return skip code 77 only
29728         for first occurance of skip (4x77 is not 77)
29729
29730 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
29731
29732         strtod: avoid C99 decl-after-statement
29733         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
29734
29735 2009-02-24  Eric Blake  <ebb9@byu.net>
29736
29737         strtod: detect HP-UX 11.31 bug
29738         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
29739         Reported by Gary V. Vaughan.
29740
29741 2009-02-23  Bruno Haible  <bruno@clisp.org>
29742
29743         Fix invalid read past end of memory block.
29744         * lib/vasnprintf.c (DCHAR_SET): Define.
29745         (local_wcslen): Define only when needed.
29746         (local_strnlen, local_wcsnlen): New functions.
29747         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
29748         directives that involve a conversion ourselves.
29749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
29750         wcsnlen, mbrtowc, wcrtomb.
29751         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
29752         * tests/test-vasprintf-posix.c (test_function): Likewise.
29753         * tests/test-snprintf-posix.h (test_function): Likewise.
29754         * tests/test-sprintf-posix.h (test_function): Likewise.
29755         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29756
29757 2009-02-22  Bruno Haible  <bruno@clisp.org>
29758
29759         Implement new clarified decomposition of Hangul syllables.
29760         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
29761         of type LTV, return only a pairwise decomposition.
29762         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
29763         Likewise.
29764         * tests/uninorm/test-decomposition.c (main): Updated expected result.
29765         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
29766         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
29767
29768 2009-02-22  Bruno Haible  <bruno@clisp.org>
29769
29770         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
29771         zero-length results and shrink excess allocated memory.
29772         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
29773         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
29774         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
29775         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
29776         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
29777         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
29778         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
29779         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
29780         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
29781         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
29782         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
29783         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
29784
29785 2009-02-21  Bruno Haible  <bruno@clisp.org>
29786
29787         * doc/gnulib.texi: Include safe-alloc.texi earlier.
29788         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
29789         spaces after a period. Put a space between a macro name and its
29790         argument list. Trivial rewordings.
29791         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
29792         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
29793         (main): Return 0 explicitly.
29794
29795 2009-02-21  Bruno Haible  <bruno@clisp.org>
29796
29797         Tests for module 'uninorm/filter'.
29798         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
29799         * modules/uninorm/filter-tests: New file.
29800
29801         New module 'uninorm/filter'.
29802         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
29803         uninorm_filter_flush, uninorm_filter_free): New declarations.
29804         * lib/uninorm/uninorm-filter.c: New file.
29805         * modules/uninorm/filter: New file.
29806
29807 2009-02-21  Bruno Haible  <bruno@clisp.org>
29808
29809         Tests for module 'uninorm/nfkc'.
29810         * tests/uninorm/test-nfkc.c: New file.
29811         * tests/uninorm/test-u8-nfkc.c: New file.
29812         * tests/uninorm/test-u16-nfkc.c: New file.
29813         * tests/uninorm/test-u32-nfkc.c: New file.
29814         * tests/uninorm/test-u32-nfkc-big.sh: New file.
29815         * tests/uninorm/test-u32-nfkc-big.c: New file.
29816         * modules/uninorm/nfkc-tests: New file.
29817
29818         New module 'uninorm/nfkc'.
29819         * lib/uninorm/nfkc.c: New file.
29820         * modules/uninorm/nfkc: New file.
29821
29822         Tests for module 'uninorm/nfkd'.
29823         * tests/uninorm/test-nfkd.c: New file.
29824         * tests/uninorm/test-u8-nfkd.c: New file.
29825         * tests/uninorm/test-u16-nfkd.c: New file.
29826         * tests/uninorm/test-u32-nfkd.c: New file.
29827         * tests/uninorm/test-u32-nfkd-big.sh: New file.
29828         * tests/uninorm/test-u32-nfkd-big.c: New file.
29829         * modules/uninorm/nfkd-tests: New file.
29830
29831         New module 'uninorm/nfkd'.
29832         * lib/uninorm/nfkd.c: New file.
29833         * modules/uninorm/nfkd: New file.
29834
29835         Tests for module 'uninorm/nfc'.
29836         * tests/uninorm/test-nfc.c: New file.
29837         * tests/uninorm/test-u8-nfc.c: New file.
29838         * tests/uninorm/test-u16-nfc.c: New file.
29839         * tests/uninorm/test-u32-nfc.c: New file.
29840         * tests/uninorm/test-u32-nfc-big.sh: New file.
29841         * tests/uninorm/test-u32-nfc-big.c: New file.
29842         * modules/uninorm/nfc-tests: New file.
29843
29844         New module 'uninorm/nfc'.
29845         * lib/uninorm/nfc.c: New file.
29846         * modules/uninorm/nfc: New file.
29847
29848         Tests for module 'uninorm/nfd'.
29849         * tests/uninorm/test-nfd.c: New file.
29850         * tests/uninorm/test-u8-nfd.c: New file.
29851         * tests/uninorm/test-u16-nfd.c: New file.
29852         * tests/uninorm/test-u32-nfd.c: New file.
29853         * tests/uninorm/test-u32-nfd-big.sh: New file.
29854         * tests/uninorm/test-u32-nfd-big.c: New file.
29855         * tests/uninorm/test-u32-normalize-big.h: New file.
29856         * tests/uninorm/test-u32-normalize-big.c: New file.
29857         * tests/uninorm/NormalizationTest.txt: New file, created from
29858         Unicode 5.1.0 NormalizationTest.txt.
29859         * modules/uninorm/nfd-tests: New file.
29860
29861         New module 'uninorm/nfd'.
29862         * lib/uninorm/nfd.c: New file.
29863         * modules/uninorm/nfd: New file.
29864
29865         New module 'uninorm/u32-normalize'.
29866         * lib/uninorm/u32-normalize.c: New file.
29867         * modules/uninorm/u32-normalize: New file.
29868
29869         New module 'uninorm/u16-normalize'.
29870         * lib/uninorm/u16-normalize.c: New file.
29871         * modules/uninorm/u16-normalize: New file.
29872
29873         New module 'uninorm/u8-normalize'.
29874         * lib/uninorm/u8-normalize.c: New file.
29875         * lib/uninorm/normalize-internal.h: New file.
29876         * lib/uninorm/u-normalize-internal.h: New file.
29877         * modules/uninorm/u8-normalize: New file.
29878
29879         New module 'uninorm/decompose-internal'.
29880         * lib/uninorm/decompose-internal.c: New file.
29881         * modules/uninorm/decompose-internal: New file.
29882
29883         Tests for module 'uninorm/composition'.
29884         * tests/uninorm/test-composition.c: New file.
29885         * modules/uninorm/composition-tests: New file.
29886
29887         New module 'uninorm/composition'.
29888         * lib/uninorm/composition.c: New file.
29889         * lib/uninorm/composition-table.gperf: New file, generated by
29890         gen-uni-tables.
29891         * modules/uninorm/composition: New file.
29892
29893         Tests for module 'uninorm/compat-decomposition'.
29894         * tests/uninorm/test-compat-decomposition.c: New file.
29895         * modules/uninorm/compat-decomposition-tests: New file.
29896
29897         New module 'uninorm/compat-decomposition'.
29898         * lib/uninorm/decompose-internal.h: New file.
29899         * lib/uninorm/compat-decomposition.c: New file.
29900         * modules/uninorm/compat-decomposition: New file.
29901
29902         Tests for module 'uninorm/canonical-decomposition'.
29903         * tests/uninorm/test-canonical-decomposition.c: New file.
29904         * modules/uninorm/canonical-decomposition-tests: New file.
29905
29906         New module 'uninorm/canonical-decomposition'.
29907         * lib/uninorm/canonical-decomposition.c: New file.
29908         * modules/uninorm/canonical-decomposition: New file.
29909
29910         Tests for module 'uninorm/decomposition'.
29911         * tests/uninorm/test-decomposition.c: New file.
29912         * modules/uninorm/decomposition-tests: New file.
29913
29914         New module 'uninorm/decomposition'.
29915         * lib/uninorm/decomposition.c: New file.
29916         * modules/uninorm/decomposition: New file.
29917
29918         New module 'uninorm/decomposition-table'.
29919         * lib/uninorm/decomposition-table.h: New file.
29920         * lib/uninorm/decomposition-table.c: New file.
29921         * lib/uninorm/decomposition-table1.h: New file, generated by
29922         gen-uni-tables.
29923         * lib/uninorm/decomposition-table2.h: New file, generated by
29924         gen-uni-tables.
29925         * modules/uninorm/decomposition-table: New file.
29926
29927         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
29928         (UC_DECOMP_*): New enumeration items.
29929         (get_decomposition): New function.
29930         (struct decomp_table): New type.
29931         (output_decomposition, output_decomposition_tables): New functions.
29932         (unicode_composition_exclusions): New variable.
29933         (fill_composition_exclusions, debug_output_composition_tables): New
29934         functions.
29935         (main): Accept one more argument. Invoke fill_composition_exclusions.
29936         Output decomposition and composition tables.
29937
29938         New module 'uninorm/base'.
29939         * lib/uninorm.h: New file.
29940         * lib/unictype.h: Update comment.
29941         * modules/uninorm/base: New file.
29942
29943 2009-02-21  David Lutterkort  <lutter@redhat.com>
29944
29945         Tests for module 'safe-alloc'.
29946         * tests/test-safe-alloc.c: New file.
29947         * modules/safe-alloc-tests: New file.
29948
29949         New module 'safe-alloc'.
29950         * lib/safe-alloc.h: New file.
29951         * lib/safe-alloc.c: New file.
29952         * m4/safe-alloc.m4: New file.
29953         * modules/safe-alloc: New file.
29954         * doc/safe-alloc.texi: New file.
29955         * doc/gnulib.texi: Include it.
29956         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29957         safe-alloc.
29958
29959 2009-02-18  Bruno Haible  <bruno@clisp.org>
29960
29961         Fix link error on non-glibc systems.
29962         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
29963         variable.
29964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29965
29966 2009-02-18  Jim Meyering  <meyering@redhat.com>
29967
29968         fts: avoid used-uninitialized error due to recent change
29969         * lib/fts.c (fts_read): Guard uses of the new member,
29970         parent->fts_n_dirs_remaining, since it's not relevant for
29971         the parent of a directory specified on the command-line.
29972
29973 2009-02-17  James Youngman  <jay@gnu.org>
29974             Bruno Haible  <bruno@clisp.org>
29975
29976         * m4/include_next.m4: Reformulate comment.
29977
29978 2009-02-16  Jim Meyering  <meyering@redhat.com>
29979
29980         fts: add #if guards so that the fts_lgpl module still builds
29981         * lib/fts.c: Guard just-added hash-table-using parts with
29982         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
29983         Reported by Simon Josefsson.
29984
29985 2009-02-15  Bruno Haible  <bruno@clisp.org>
29986
29987         * modules/array-mergesort-tests: New file.
29988         * tests/test-array-mergesort.c: New file.
29989
29990         New module 'array-mergesort'.
29991         * modules/array-mergesort: New file.
29992         * lib/array-mergesort.h: New file.
29993
29994 2009-02-15  Bruno Haible  <bruno@clisp.org>
29995
29996         Fix 2009-02-07 commit.
29997         * lib/gen-uni-tables.c (output_predicate, output_category,
29998         output_combclass, output_bidi_category, output_decimal_digit,
29999         output_digit, output_numeric, output_mirror, output_scripts,
30000         output_ident_category, output_simple_mapping): Fix format directives.
30001         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30002
30003 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30004
30005         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30006         fixes are available from IBM.
30007
30008 2009-02-13  Jim Meyering  <meyering@redhat.com>
30009
30010         fts: arrange not to stat non-directories in more cases
30011         This makes GNU find (when it doesn't need to stat each file)
30012         *much* more efficient at traversing reiserfs file systems.
30013         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30014         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30015         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30016         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30017         (leaf_optimization_applies): New function.
30018         (LCO_hash, LCO_compare): New helper functions.
30019         (link_count_optimize_ok): New function.
30020         (fts_stat): Initialize new member (if dir).
30021         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30022         we've just stat'ed a directory.  Skip the stat call when possible.
30023         ---
30024         Note this AFS-related exchange:
30025         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30026         and note find's pioctl call in find/fstype.c.
30027         But that is necessary only if you want to enable the
30028         optimization for AFS, and for now, I don't.
30029
30030         fts: move a function definition "up" (no semantic change)
30031         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30032         "up" to precede upcoming use of a related function.
30033
30034 2009-02-11  Jim Meyering  <meyering@redhat.com>
30035
30036         fts: correct internal computation of nlinks (optimization-related)
30037         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30038         whether the current entry is a directory, so don't test it.
30039
30040 2009-02-10  Bruno Haible  <bruno@clisp.org>
30041
30042         Tests for module 'uniwbrk/ulc-wordbreaks'.
30043         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30044         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30045         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30046
30047         Tests for module 'uniwbrk/u32-wordbreaks'.
30048         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30049         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30050
30051         Tests for module 'uniwbrk/u16-wordbreaks'.
30052         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30053         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30054
30055         Tests for module 'uniwbrk/u8-wordbreaks'.
30056         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30057         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30058
30059 2009-02-10  Bruno Haible  <bruno@clisp.org>
30060
30061         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30062         property.
30063         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30064         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30065         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30066
30067 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30068
30069         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30070         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30071
30072 2009-02-10  Bruno Haible  <bruno@clisp.org>
30073
30074         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30075         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30076         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30077         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30078         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30079         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30080
30081 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30082
30083         * lib/sockets.h (gl_fd_to_handle): New function.
30084
30085         * tests/test-sockets.c: Call gl_fd_to_handle.
30086
30087 2009-02-09  Bruno Haible  <bruno@clisp.org>
30088
30089         * doc/havelib.texi: Document the conventions on bi-arch systems.
30090
30091 2009-02-08  Bruno Haible  <bruno@clisp.org>
30092
30093         Document the AC_LIB_LINKFLAGS macro.
30094         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30095         * doc/gnulib.texi: Include it.
30096
30097 2009-02-08  Bruno Haible  <bruno@clisp.org>
30098
30099         Fix wrong order of sections, compared to TOC.
30100         * doc/gnulib.texi: Include relocatable-maint.texi after the
30101         "Regular expressions" node, not before.
30102
30103 2009-02-08  Bruno Haible  <bruno@clisp.org>
30104
30105         Tests for module 'unicase/totitle'.
30106         * modules/unicase/totitle-tests: New file.
30107
30108         Tests for module 'unicase/tolower'.
30109         * modules/unicase/tolower-tests: New file.
30110
30111         Tests for module 'unicase/toupper'.
30112         * modules/unicase/toupper-tests: New file.
30113         * tests/unicase/test-mapping-part1.h: New file.
30114         * tests/unicase/test-mapping-part2.h: New file.
30115
30116         New module 'unicase/totitle'.
30117         * modules/unicase/totitle: New file.
30118         * lib/unicase/totitle.c: New file.
30119
30120         New module 'unicase/tolower'.
30121         * modules/unicase/tolower: New file.
30122         * lib/unicase/tolower.c: New file.
30123
30124         New module 'unicase/toupper'.
30125         * modules/unicase/toupper: New file.
30126         * lib/unicase/toupper.c: New file.
30127         * lib/unicase/simple-mapping.h: New file.
30128
30129         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30130         (mapping_table): New structure.
30131         (output_simple_mapping): New function.
30132         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30133         * modules/gen-uni-tables (Description): Update.
30134         * lib/unicase/toupper.h: New file, automatically generated by
30135         gen-uni-tables.
30136         * lib/unicase/tolower.h: New file, automatically generated by
30137         gen-uni-tables.
30138         * lib/unicase/totitle.h: New file, automatically generated by
30139         gen-uni-tables.
30140         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30141         gen-uni-tables.
30142         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30143         gen-uni-tables.
30144         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30145         gen-uni-tables.
30146
30147         New module 'unicase/base'.
30148         * modules/unicase/base: New file.
30149         * lib/unicase.h: New file.
30150
30151 2009-02-08  Bruno Haible  <bruno@clisp.org>
30152
30153         New module 'uniwbrk/ulc-wordbreaks'.
30154         * modules/uniwbrk/ulc-wordbreaks: New file.
30155         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30156
30157         New module 'uniwbrk/u32-wordbreaks'.
30158         * modules/uniwbrk/u32-wordbreaks: New file.
30159         * lib/uniwbrk/u32-wordbreaks.c: New file.
30160
30161         New module 'uniwbrk/u16-wordbreaks'.
30162         * modules/uniwbrk/u16-wordbreaks: New file.
30163         * lib/uniwbrk/u16-wordbreaks.c: New file.
30164
30165         New module 'uniwbrk/u8-wordbreaks'.
30166         * modules/uniwbrk/u8-wordbreaks: New file.
30167         * lib/uniwbrk/u8-wordbreaks.c: New file.
30168         * lib/uniwbrk/u-wordbreaks.h: New file.
30169
30170         New module 'uniwbrk/table'.
30171         * modules/uniwbrk/table: New file.
30172         * lib/uniwbrk/wbrktable.h: New file.
30173         * lib/uniwbrk/wbrktable.c: New file.
30174
30175         New module 'uniwbrk/wordbreak-property'.
30176         * modules/uniwbrk/wordbreak-property: New file.
30177         * lib/uniwbrk/wordbreak-property.c: New file.
30178
30179         * lib/gen-uni-tables.c (WBP_*): New enum items.
30180         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30181         (unicode_org_wbp): New variable.
30182         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30183         New functions.
30184         (wbp_table): New structure.
30185         (output_wbp, output_wbrk_tables): New functions.
30186         (main): Accept additional argument. Invoke fill_org_wbp,
30187         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30188         output_wbrk_tables.
30189         * modules/gen-uni-tables (Description): Update.
30190         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30191         gen-uni-tables.
30192
30193         New module 'uniwbrk/base'.
30194         * modules/uniwbrk/base: New file.
30195         * lib/uniwbrk.h: New file.
30196
30197 2009-02-08  Bruno Haible  <bruno@clisp.org>
30198
30199         Update to Unicode 5.1.0.
30200         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30201         U+2185..U+2188.
30202         (is_property_default_ignorable_code_point): Don't include characters
30203         of category Cc or Cs and not-a-characters.
30204         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30205         U+0D79, U+109E, U+109F, U+A60C.
30206         * lib/unictype/bidi_of.h: Regenerated.
30207         * lib/unictype/blocks.h: Regenerated.
30208         * lib/unictype/categ_C.h: Regenerated.
30209         * lib/unictype/categ_Cf.h: Regenerated.
30210         * lib/unictype/categ_Cn.h: Regenerated.
30211         * lib/unictype/categ_L.h: Regenerated.
30212         * lib/unictype/categ_Ll.h: Regenerated.
30213         * lib/unictype/categ_Lm.h: Regenerated.
30214         * lib/unictype/categ_Lo.h: Regenerated.
30215         * lib/unictype/categ_Lu.h: Regenerated.
30216         * lib/unictype/categ_M.h: Regenerated.
30217         * lib/unictype/categ_Mc.h: Regenerated.
30218         * lib/unictype/categ_Me.h: Regenerated.
30219         * lib/unictype/categ_Mn.h: Regenerated.
30220         * lib/unictype/categ_N.h: Regenerated.
30221         * lib/unictype/categ_Nd.h: Regenerated.
30222         * lib/unictype/categ_Nl.h: Regenerated.
30223         * lib/unictype/categ_No.h: Regenerated.
30224         * lib/unictype/categ_P.h: Regenerated.
30225         * lib/unictype/categ_Pd.h: Regenerated.
30226         * lib/unictype/categ_Pe.h: Regenerated.
30227         * lib/unictype/categ_Pf.h: Regenerated.
30228         * lib/unictype/categ_Pi.h: Regenerated.
30229         * lib/unictype/categ_Po.h: Regenerated.
30230         * lib/unictype/categ_Ps.h: Regenerated.
30231         * lib/unictype/categ_S.h: Regenerated.
30232         * lib/unictype/categ_Sk.h: Regenerated.
30233         * lib/unictype/categ_Sm.h: Regenerated.
30234         * lib/unictype/categ_So.h: Regenerated.
30235         * lib/unictype/categ_of.h: Regenerated.
30236         * lib/unictype/combining.h: Regenerated.
30237         * lib/unictype/ctype_alnum.h: Regenerated.
30238         * lib/unictype/ctype_alpha.h: Regenerated.
30239         * lib/unictype/ctype_graph.h: Regenerated.
30240         * lib/unictype/ctype_lower.h: Regenerated.
30241         * lib/unictype/ctype_print.h: Regenerated.
30242         * lib/unictype/ctype_punct.h: Regenerated.
30243         * lib/unictype/ctype_upper.h: Regenerated.
30244         * lib/unictype/decdigit.h: Regenerated.
30245         * lib/unictype/digit.h: Regenerated.
30246         * lib/unictype/mirror.h: Regenerated.
30247         * lib/unictype/numeric.h: Regenerated.
30248         * lib/unictype/pr_alphabetic.h: Regenerated.
30249         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
30250         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
30251         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
30252         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
30253         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
30254         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
30255         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
30256         * lib/unictype/pr_combining.h: Regenerated.
30257         * lib/unictype/pr_dash.h: Regenerated.
30258         * lib/unictype/pr_decimal_digit.h: Regenerated.
30259         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
30260         * lib/unictype/pr_deprecated.h: Regenerated.
30261         * lib/unictype/pr_diacritic.h: Regenerated.
30262         * lib/unictype/pr_extender.h: Regenerated.
30263         * lib/unictype/pr_format_control.h: Regenerated.
30264         * lib/unictype/pr_grapheme_base.h: Regenerated.
30265         * lib/unictype/pr_grapheme_extend.h: Regenerated.
30266         * lib/unictype/pr_grapheme_link.h: Regenerated.
30267         * lib/unictype/pr_id_continue.h: Regenerated.
30268         * lib/unictype/pr_id_start.h: Regenerated.
30269         * lib/unictype/pr_ideographic.h: Regenerated.
30270         * lib/unictype/pr_ignorable_control.h: Regenerated.
30271         * lib/unictype/pr_lowercase.h: Regenerated.
30272         * lib/unictype/pr_math.h: Regenerated.
30273         * lib/unictype/pr_numeric.h: Regenerated.
30274         * lib/unictype/pr_other_alphabetic.h: Regenerated.
30275         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
30276         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
30277         * lib/unictype/pr_other_id_continue.h: Regenerated.
30278         * lib/unictype/pr_other_lowercase.h: Regenerated.
30279         * lib/unictype/pr_other_math.h: Regenerated.
30280         * lib/unictype/pr_punctuation.h: Regenerated.
30281         * lib/unictype/pr_sentence_terminal.h: Regenerated.
30282         * lib/unictype/pr_soft_dotted.h: Regenerated.
30283         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
30284         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
30285         * lib/unictype/pr_unified_ideograph.h: Regenerated.
30286         * lib/unictype/pr_uppercase.h: Regenerated.
30287         * lib/unictype/pr_xid_continue.h: Regenerated.
30288         * lib/unictype/pr_xid_start.h: Regenerated.
30289         * lib/unictype/pr_zero_width.h: Regenerated.
30290         * lib/unictype/scripts.h: Regenerated.
30291         * lib/unictype/scripts_byname.gperf: Regenerated.
30292         * lib/unictype/sy_java_ident.h: Regenerated.
30293         * lib/unilbrk/lbrkprop1.h: Regenerated.
30294         * lib/unilbrk/lbrkprop2.h: Regenerated.
30295         * tests/unictype/test-categ_C.c: Regenerated.
30296         * tests/unictype/test-categ_Cf.c: Regenerated.
30297         * tests/unictype/test-categ_Cn.c: Regenerated.
30298         * tests/unictype/test-categ_L.c: Regenerated.
30299         * tests/unictype/test-categ_Ll.c: Regenerated.
30300         * tests/unictype/test-categ_Lm.c: Regenerated.
30301         * tests/unictype/test-categ_Lo.c: Regenerated.
30302         * tests/unictype/test-categ_Lu.c: Regenerated.
30303         * tests/unictype/test-categ_M.c: Regenerated.
30304         * tests/unictype/test-categ_Mc.c: Regenerated.
30305         * tests/unictype/test-categ_Me.c: Regenerated.
30306         * tests/unictype/test-categ_Mn.c: Regenerated.
30307         * tests/unictype/test-categ_N.c: Regenerated.
30308         * tests/unictype/test-categ_Nd.c: Regenerated.
30309         * tests/unictype/test-categ_Nl.c: Regenerated.
30310         * tests/unictype/test-categ_No.c: Regenerated.
30311         * tests/unictype/test-categ_P.c: Regenerated.
30312         * tests/unictype/test-categ_Pd.c: Regenerated.
30313         * tests/unictype/test-categ_Pe.c: Regenerated.
30314         * tests/unictype/test-categ_Pf.c: Regenerated.
30315         * tests/unictype/test-categ_Pi.c: Regenerated.
30316         * tests/unictype/test-categ_Po.c: Regenerated.
30317         * tests/unictype/test-categ_Ps.c: Regenerated.
30318         * tests/unictype/test-categ_S.c: Regenerated.
30319         * tests/unictype/test-categ_Sk.c: Regenerated.
30320         * tests/unictype/test-categ_Sm.c: Regenerated.
30321         * tests/unictype/test-categ_So.c: Regenerated.
30322         * tests/unictype/test-ctype_alnum.c: Regenerated.
30323         * tests/unictype/test-ctype_alpha.c: Regenerated.
30324         * tests/unictype/test-ctype_graph.c: Regenerated.
30325         * tests/unictype/test-ctype_lower.c: Regenerated.
30326         * tests/unictype/test-ctype_print.c: Regenerated.
30327         * tests/unictype/test-ctype_punct.c: Regenerated.
30328         * tests/unictype/test-ctype_upper.c: Regenerated.
30329         * tests/unictype/test-decdigit.h: Regenerated.
30330         * tests/unictype/test-digit.h: Regenerated.
30331         * tests/unictype/test-numeric.h: Regenerated.
30332         * tests/unictype/test-pr_alphabetic.c: Regenerated.
30333         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
30334         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
30335         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
30336         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
30337         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
30338         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
30339         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
30340         * tests/unictype/test-pr_combining.c: Regenerated.
30341         * tests/unictype/test-pr_dash.c: Regenerated.
30342         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
30343         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
30344         * tests/unictype/test-pr_deprecated.c: Regenerated.
30345         * tests/unictype/test-pr_diacritic.c: Regenerated.
30346         * tests/unictype/test-pr_extender.c: Regenerated.
30347         * tests/unictype/test-pr_format_control.c: Regenerated.
30348         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
30349         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
30350         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
30351         * tests/unictype/test-pr_id_continue.c: Regenerated.
30352         * tests/unictype/test-pr_id_start.c: Regenerated.
30353         * tests/unictype/test-pr_ideographic.c: Regenerated.
30354         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
30355         * tests/unictype/test-pr_lowercase.c: Regenerated.
30356         * tests/unictype/test-pr_math.c: Regenerated.
30357         * tests/unictype/test-pr_numeric.c: Regenerated.
30358         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
30359         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
30360         Regenerated.
30361         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
30362         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
30363         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
30364         * tests/unictype/test-pr_other_math.c: Regenerated.
30365         * tests/unictype/test-pr_punctuation.c: Regenerated.
30366         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
30367         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
30368         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
30369         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
30370         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
30371         * tests/unictype/test-pr_uppercase.c: Regenerated.
30372         * tests/unictype/test-pr_xid_continue.c: Regenerated.
30373         * tests/unictype/test-pr_xid_start.c: Regenerated.
30374         * tests/unictype/test-pr_zero_width.c: Regenerated.
30375
30376         Update to Unicode 5.1.0.
30377         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
30378         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
30379         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
30380         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
30381         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
30382         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
30383         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
30384         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
30385         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
30386         (nonspacing_table_ind): Update.
30387         * tests/uniwidth/test-uc_width2.sh: Update expected result.
30388
30389         Update to Unicode 5.1.0.
30390         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
30391         code transform.
30392         * lib/uniname/uniname.c (unicode_character_name,
30393         unicode_name_character): Add the range 0x1Fxxx to the code transform.
30394         * lib/uniname/uninames.h: Regenerated.
30395         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
30396
30397 2009-02-07  Bruno Haible  <bruno@clisp.org>
30398
30399         Merge gen-ctype and gen-lbrk into a single program.
30400         * lib/gen-uni-tables.c: New file, incorporating
30401         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
30402         Add directory prefixes to the names of the generated files.
30403         * lib/unictype/gen-ctype.c: Remove file.
30404         * lib/unilbrk/gen-lbrk.c: Remove file.
30405         * modules/gen-uni-tables: New file.
30406         * modules/unictype/gen-ctype: Remove file.
30407         * modules/unilbrk/gen-lbrk: Remove file.
30408
30409 2009-02-07  Bruno Haible  <bruno@clisp.org>
30410
30411         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
30412
30413         New module 'unistr/u32-strcoll'.
30414         * modules/unistr/u32-strcoll: New file.
30415         * lib/unistr/u32-strcoll.c: New file.
30416
30417         New module 'unistr/u16-strcoll'.
30418         * modules/unistr/u16-strcoll: New file.
30419         * lib/unistr/u16-strcoll.c: New file.
30420
30421         New module 'unistr/u8-strcoll'.
30422         * modules/unistr/u8-strcoll: New file.
30423         * lib/unistr/u8-strcoll.c: New file.
30424         * lib/unistr/u-strcoll.h: New file.
30425
30426 2009-02-07  Bruno Haible  <bruno@clisp.org>
30427
30428         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
30429         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30430         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
30431         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
30432         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
30433         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
30434
30435 2009-02-07  Bruno Haible  <bruno@clisp.org>
30436
30437         Make 64-bit clean.
30438         * lib/unictype/gen-ctype.c (output_predicate, output_category,
30439         output_combclass, output_bidi_category, output_decimal_digit,
30440         output_digit, output_numeric, output_mirror, output_scripts,
30441         output_ident_category): Use proper width specifier in format strings.
30442
30443 2009-02-07  Bruno Haible  <bruno@clisp.org>
30444
30445         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
30446         failure behaviour.
30447
30448 2009-02-07  Jim Meyering  <meyering@redhat.com>
30449
30450         regex: avoid compilation failure with upcoming gcc-4.4
30451         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
30452         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
30453         "... error: integer overflow in preprocessor expression".
30454
30455 2009-02-05  Ben Pfaff  <blp@gnu.org>
30456
30457         Fix link errors on Windows when close module is used.
30458         * modules/close: Add $(LIB_CLOSE) to Link section.
30459         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
30460         $(LIB_CLOSE) on Windows.
30461
30462 2009-02-05  Jim Meyering  <meyering@redhat.com>
30463
30464         still avoid unused-parameter warnings, but do it cleanly
30465         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
30466         (get_fs_usage): Cast to void instead.
30467         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
30468         (dev_from_mount_options, read_file_system_list): Cast to void.
30469         Prompted by Bruno Haible.
30470
30471 2009-02-04  Jim Meyering  <meyering@redhat.com>
30472
30473         fsusage.c: correct copyright year
30474         * lib/fsusage.c: Reflect year in which the change is pushed into
30475
30476         avoid misc. warnings
30477         * lib/fsusage.c (UNUSED_PARAM): Define.
30478         (get_fs_usage): Mark parameter "disk" as unused.
30479         * lib/getugroups.c (getgrent): Use "void" in prototype.
30480         * lib/mountlist.c: Mark unused parameters.
30481         (read_file_system_list): Declare a local with "const".
30482         * lib/nanosleep.c (getnow): Declare static.
30483         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
30484
30485         dirfd: set errno upon failure
30486         * lib/dirfd.c: Include <errno.h>.
30487         Set errno to ENOTSUP when returning -1.
30488         * modules/dirfd (Depends-on): Add errno.
30489         Suggested by John Kodis <kodis@comcast.net>.
30490
30491 2009-02-01  Bruno Haible  <bruno@clisp.org>
30492
30493         Don't assume sizeof (long) >= sizeof (void *).
30494         * lib/memcmp.c: Include stdint.h.
30495         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
30496         srcp2 to 'const byte *'.
30497         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
30498         types to uintptr_t.
30499         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
30500         * modules/memcmp (Depends-on): Add stdint.
30501         Reported by Ozkan Sezer <sezeroz@gmail.com>.
30502
30503 2009-01-30  Eric Blake  <ebb9@byu.net>
30504
30505         fix more require-before-expand issues
30506         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
30507         expand, AC_PROG_AWK.
30508         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
30509
30510 2009-01-28  Eric Blake  <ebb9@byu.net>
30511
30512         version-etc: use consistent URL formatting
30513         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
30514         Improve formatting.  Use fputs for string without %.
30515
30516 2009-01-28  Jim Meyering  <meyering@redhat.com>
30517
30518         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
30519         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
30520         "underquoted definition of NAME" from autoconf-2.59.
30521
30522 2009-01-28  Bruno Haible  <bruno@clisp.org>
30523
30524         * doc/gnulib.texi: Add "Obsolete modules" to index.
30525
30526 2009-01-28  Jim Meyering  <meyering@redhat.com>
30527
30528         useless-if-before-free: recognize more variants
30529         * build-aux/useless-if-before-free: Also recognize e.g.,
30530         if (NULL != p) free (p);
30531
30532 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
30533
30534         test-getaddrinfo: skip (don't fail) this test when there's no network
30535         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
30536         on the presumption that it means you lack network access.
30537
30538 2009-01-26  Jim Meyering  <meyering@redhat.com>
30539
30540         fflush: avoid warnings on modern systems
30541         * lib/fflush.c (rpl_fflush): Move declarations of locals,
30542         pos and result, into scopes where they're used.
30543
30544 2009-01-26  Eric Blake  <ebb9@byu.net>
30545
30546         Silence warning reintroduced by recent extensions patch.
30547         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
30548         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
30549         autoconf.
30550
30551         Backport improved autoconf semantics of AC_DEFUN_ONCE.
30552         * m4/00gnulib.m4: New file.
30553         * gnulib-tool (func_get_filelist): Always use it.
30554         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
30555         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
30556
30557 2009-01-25  Bruno Haible  <bruno@clisp.org>
30558
30559         Make test-quotearg work on MacOS X and AIX.
30560         * tests/test-quotearg.sh: New file.
30561         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
30562         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
30563         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
30564         include <libintl.h>.
30565         (fake_locale): Remove variable.
30566         (gettext, dgettext, dcgettext): Remove functions.
30567         (main): Instead of setting a fake locale, set a real locale. Call
30568         textdomain and bindtextdomain.
30569         * modules/quotearg-tests (Files): Add the new files.
30570         (Depends-on): Add gettext, setenv, unsetenv.
30571         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30572         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
30573         Augment TESTS_ENVIRONMENT.
30574
30575 2009-01-25  Bruno Haible  <bruno@clisp.org>
30576
30577         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
30578         fr_FR.ISO8859-1 locale on MacOS X.
30579         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
30580         ja_JP.eucJP locale on MacOS X.
30581         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
30582         zh_CN.GB18030 locale on MacOS X.
30583
30584 2009-01-25  Bruno Haible  <bruno@clisp.org>
30585
30586         Avoid link errors on MacOS X 10.3.
30587         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
30588         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30589
30590 2009-01-25  Bruno Haible  <bruno@clisp.org>
30591
30592         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30593         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
30594         * modules/pipe (Files): Remove m4/posix_spawn.m4.
30595         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30596         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
30597         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30598         posix_spawnattr_init, posix_spawnattr_setsigmask,
30599         posix_spawnattr_setflags, posix_spawnattr_destroy.
30600
30601         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
30602         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
30603         * modules/execute (Files): Remove m4/posix_spawn.m4.
30604         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
30605         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
30606         posix_spawnattr_init, posix_spawnattr_setsigmask,
30607         posix_spawnattr_setflags, posix_spawnattr_destroy.
30608
30609 2009-01-25  Bruno Haible  <bruno@clisp.org>
30610
30611         * lib/glthread/threadlib.c: Include <stdlib.h>.
30612
30613 2009-01-25  Bruno Haible  <bruno@clisp.org>
30614
30615         * lib/glthread/threadlib.c (dummy): New declaration.
30616
30617 2009-01-25  Bruno Haible  <bruno@clisp.org>
30618
30619         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
30620         multibyte characters also for the GB18030 encoding. Don't crash when
30621         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
30622
30623 2009-01-25  Bruno Haible  <bruno@clisp.org>
30624
30625         Avoid redefining 'struct random_data' on OSF/1 5.1.
30626         * lib/stdlib.in.h: Include <random.h> if it exists.
30627         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
30628         HAVE_RANDOM_H. Include <random.h> when testing whether
30629         'struct random_data' exists.
30630         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
30631
30632 2009-01-25  Bruno Haible  <bruno@clisp.org>
30633
30634         Don't install charset.alias on MacOS X >= 10.3.
30635         * lib/localcharset.c (DARWIN7): New macro.
30636         (get_charset_aliases): Hardcode the result for Darwin7.
30637         * modules/localcharset (install-exec-local): Don't install
30638         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
30639
30640 2009-01-25  Bruno Haible  <bruno@clisp.org>
30641
30642         Don't install charset.alias on mingw and Cygwin.
30643         * modules/localcharset (install-exec-local): Don't install
30644         charset.alias on mingw and Cygwin, if the file does not yet exist.
30645         The result for these platforms is hardcoded in localcharset.c.
30646
30647 2009-01-25  Bruno Haible  <bruno@clisp.org>
30648
30649         Make it possible again to use AC_GNU_SOURCE together with gnulib.
30650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
30651         before requiring AC_USE_SYSTEM_EXTENSIONS.
30652
30653 2009-01-25  Jim Meyering  <meyering@redhat.com>
30654
30655         c-strtod: avoid warnings
30656         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
30657         "assignment discards qualifiers from pointer target type" warnings.
30658
30659 2009-01-24  Bruno Haible  <bruno@clisp.org>
30660
30661         Add support for non-UTF-8 locales on MacOS X.
30662         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
30663         canonical encodings. For Darwin 7 and newer, don't map traditional
30664         encodings to UTF-8.
30665         Reported by Vincent Lefevre <vincent@vinc17.org>
30666         at <http://savannah.gnu.org/bugs/?25235>.
30667
30668 2009-01-24  Bruno Haible  <bruno@clisp.org>
30669
30670         * doc/gnulib.texi (Obsolete modules): New section.
30671         Reported by Mike Frysinger <vapier@gentoo.org>.
30672
30673 2009-01-24  Bruno Haible  <bruno@clisp.org>
30674
30675         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
30676         (%.dvi): New rule.
30677
30678 2009-01-24  Bruno Haible  <bruno@clisp.org>
30679
30680         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
30681         Reported by Eric Blake.
30682
30683 2009-01-24  Bruno Haible  <bruno@clisp.org>
30684
30685         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
30686         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
30687         Reported by Gary V. Vaughan <gary@gnu.org>.
30688
30689 2009-01-24  Bruno Haible  <bruno@clisp.org>
30690
30691         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
30692
30693 2009-01-23  Bruno Haible  <bruno@clisp.org>
30694
30695         Make c-strtod, c-strtold usable in libraries.
30696         * lib/c-strtod.c: Include string.h instead of xalloc.h.
30697         (C_STRTOD): Call strdup instead of xstrdup.
30698         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
30699         * modules/c-strtold (Depends-on): Likewise.
30700         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
30701         * NEWS: Mention the change.
30702         Reported by Michael Gold <mgold@ncf.ca>.
30703
30704 2009-01-23  Jim Meyering  <meyering@redhat.com>
30705
30706         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
30707         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
30708         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
30709
30710 2009-01-23  Simon Josefsson  <simon@josefsson.org>
30711
30712         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
30713         GNU CoreUtils.
30714         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
30715         * modules/version-etc (Description): Update.
30716
30717 2009-01-22  Bruno Haible  <bruno@clisp.org>
30718
30719         Cache the C locale object.
30720         * lib/c-strtod.c (c_locale_cache): New variable.
30721         (c_locale): New function.
30722         (C_STRTOD): Use it, and don't call freelocale.
30723         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
30724         Suggested by Paolo Bonzini.
30725
30726 2009-01-21  Bruno Haible  <bruno@clisp.org>
30727
30728         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
30729         conditions other than overflow.
30730
30731 2009-01-21  Bruno Haible  <bruno@clisp.org>
30732
30733         * lib/c-strtod.c: Include errno.h.
30734         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
30735         value from STRTOD_L and STRTOD.
30736
30737 2009-01-21  Bruno Haible  <bruno@clisp.org>
30738         and Jim Meyering  <meyering@redhat.com>
30739
30740         nanosleep: skip configure test (fail it) for apple universal builds
30741         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
30742         universal builds, assume that nanosleep does not work.
30743         * modules/nanosleep (Depends-on): Add multiarch.
30744
30745         mktime: skip configure test (fail it) for apple universal builds
30746         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
30747         universal builds, assume that mktime does not work.
30748         * modules/mktime (Depends-on): Add multiarch.
30749
30750 2009-01-21  Eric Blake  <ebb9@byu.net>
30751
30752         multiarch: avoid expand-before-require warning
30753         * modules/multiarch (configure.ac): Require, rather than expand,
30754         gl_MULTIARCH.
30755         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
30756         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
30757         enforce that all clients require it.  Partial reversion of
30758         2008-12-29 patch.
30759
30760         error: avoid expand-before-require warning
30761         * modules/errno (configure.ac): Require, rather than expand,
30762         gl_HEADER_ERRNO_H.
30763         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
30764         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
30765         enforce that all clients require it.
30766
30767         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
30768         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
30769         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
30770         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
30771
30772 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
30773
30774         Revert:
30775         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30776
30777         regex: do not depend on obsolete modules.
30778         * modules/regex: Remove memcmp and memmove.
30779
30780 2009-01-20  Bruno Haible  <bruno@clisp.org>
30781
30782         Make the 'link' module link on Windows NT 4.
30783         * lib/link.c (_WIN32_WINNT): Don't define.
30784         (CreateHardLinkFuncType): New type.
30785         (CreateHardLinkFunc, initialized): New variables.
30786         (initialize): New function.
30787         (link): Invoke CreateHardLink indirectly through the function pointer.
30788
30789 2009-01-20  Bruno Haible  <bruno@clisp.org>
30790
30791         Fix compilation failure on mingw.
30792         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
30793
30794 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
30795
30796         * doc/c-strtod.texi: Mention a couple of restrictions.
30797
30798 2009-01-20  Jim Meyering  <meyering@redhat.com>
30799
30800         gettimeofday: move more declarations out of functions
30801         * lib/gettimeofday.c: Move extern declarations of tzset and
30802         gmtime out of containing functions.  Prompted by Bruno Haible.
30803
30804 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
30805
30806         regex: do not depend on obsolete modules.
30807         * modules/regex: Remove memcmp and memmove.
30808
30809 2009-01-19  Bruno Haible  <bruno@clisp.org>
30810
30811         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30812         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
30813         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30814         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
30815         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
30816
30817 2009-01-19  Bruno Haible  <bruno@clisp.org>
30818
30819         * tests/test-link.c: Include <errno.h>.
30820         (main): Exit with code 77 when a hard link cannot be created due to
30821         the file system.
30822         * tests/test-link.sh: Skip test when a hard link cannot be created due
30823         to the file system.
30824         Suggested by Eric Blake.
30825
30826 2009-01-19  Martin Lambers  <marlam@marlam.de>
30827
30828         * modules/link-tests: New file.
30829         * tests/test-link.sh: New file.
30830         * tests/test-link.c: New file.
30831
30832 2009-01-19  Eric Blake  <ebb9@byu.net>
30833
30834         doc: mention another function added in cygwin 1.7.0
30835         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
30836         Another new function in cygwin 1.7.
30837
30838 2009-01-19  Bruno Haible  <bruno@clisp.org>
30839
30840         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
30841         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
30842         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
30843         gl_BIGENDIAN, not AC_C_BIGENDIAN.
30844         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
30845         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30846         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30847         * m4/md4.m4 (gl_MD4): Likewise.
30848         * m4/md5.m4 (gl_MD5): Likewise.
30849         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
30850         * m4/sha1.m4 (gl_SHA1): Likewise.
30851         * m4/sha256.m4 (gl_SHA256): Likewise.
30852         * m4/sha512.m4 (gl_SHA512): Likewise.
30853
30854 2009-01-19  Bruno Haible  <bruno@clisp.org>
30855
30856         * modules/uniname/uniname-tests (Depends-on): Add progname.
30857         * tests/uniname/test-uninames.c: Include progname.h.
30858         (main): Call set_program_name.
30859
30860         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
30861         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
30862         (main): Call set_program_name.
30863
30864         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
30865         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
30866         (main): Call set_program_name.
30867
30868         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
30869         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
30870         (main): Call set_program_name.
30871
30872         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
30873         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
30874         (main): Call set_program_name.
30875
30876         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
30877         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
30878         (main): Call set_program_name.
30879
30880         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
30881         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
30882         (main): Call set_program_name.
30883
30884         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
30885         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
30886         (main): Call set_program_name.
30887
30888         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
30889         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
30890         (main): Call set_program_name.
30891
30892 2009-01-19  Eric Blake  <ebb9@byu.net>
30893
30894         test-unistd: test previous patch
30895         * tests/test-unistd.c: Test *_FILENO macros.
30896
30897         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
30898         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30899         Guarantee a definition.
30900         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
30901         * modules/unistd-safer (Depends-on): Add dependency on unistd.
30902         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
30903         * lib/dup-safer.c (STDERR_FILENO): Likewise.
30904         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30905         Likewise.
30906         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
30907         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
30908         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
30909         Likewise.
30910         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
30911         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
30912         (STDERR_FILENO): Likewise.
30913         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
30914         (STDERR_FILENO): Likewise.
30915         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
30916         (STDERR_FILENO): Likewise.
30917         Reported by Elbert Pol.
30918
30919 2009-01-19  Eric Blake  <ebb9@byu.net>
30920
30921         doc: mention more functions added in cygwin 1.7.0
30922         * doc/posix-functions/abort.texi (abort): Update wording related
30923         to cygwin.
30924         * doc/posix-functions/daylight.texi (daylight): Likewise.
30925         * doc/posix-functions/optarg.texi (optarg): Likewise.
30926         * doc/posix-functions/optarg.texi (opterr): Likewise.
30927         * doc/posix-functions/optarg.texi (optind): Likewise.
30928         * doc/posix-functions/optarg.texi (optopt): Likewise.
30929         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
30930         worked in 1.5.x, and was withdrawn in 1.7.
30931         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
30932         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
30933         cygwin versions.
30934         * doc/posix-functions/perror.texi (perror): Likewise.
30935         * doc/posix-functions/printf.texi (printf): Likewise.
30936         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
30937         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
30938         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
30939         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
30940         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30941         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
30942         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30943         Likewise.
30944         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30945         Likewise.
30946         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
30947         this function.
30948         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
30949         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
30950         Likewise.
30951         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
30952         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
30953         * doc/posix-functions/confstr.texi (confstr): Likewise.
30954         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
30955         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
30956         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
30957         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
30958         * doc/posix-functions/fputws.texi (fputws): Likewise.
30959         * doc/posix-functions/fwide.texi (fwide): Likewise.
30960         * doc/posix-functions/getwc.texi (getwc): Likewise.
30961         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
30962         * doc/posix-functions/putwc.texi (putwc): Likewise.
30963         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
30964         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
30965         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
30966         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
30967         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
30968         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
30969         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
30970         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
30971         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
30972         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
30973         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
30974
30975 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30976
30977         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
30978         * lib/ioctl.c: Include <sys/ioctl.h>.
30979
30980 2009-01-19  Simon Josefsson  <simon@josefsson.org>
30981
30982         * modules/getdate-tests (Depends-on): Add progname.
30983         * tests/test-getdate.c: Use progname module, to avoid link errors
30984         on non-glibc systems.
30985
30986 2009-01-18  Simon Josefsson  <simon@josefsson.org>
30987
30988         * modules/filenamecat-tests (Depends-on): Add progname.
30989         * modules/fstrcmp-tests (Depends-on): Likewise.
30990
30991         * tests/test-filenamecat.c: Use progname module, to avoid link
30992         errors on non-glibc systems.
30993         * tests/test-fstrcmp.c: Likewise.
30994
30995 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
30996
30997         gettimeofday: avoid warning: nested extern declaration of 'localtime'
30998         * lib/gettimeofday.c: Move extern declaration out of function.
30999
31000 2009-01-18  Bruno Haible  <bruno@clisp.org>
31001
31002         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31003         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31004         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31005
31006 2009-01-18  Bruno Haible  <bruno@clisp.org>
31007
31008         * lib/strftime.c (MEMPCPY): Remove unused macro.
31009         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31010
31011 2009-01-18  Martin Lambers  <marlam@marlam.de>
31012
31013         New module 'link'.
31014         * lib/unistd.in.h (link): New declaration.
31015         * lib/link.c: New file.
31016         * m4/link.m4: New file.
31017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31018         HAVE_LINK.
31019         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31020         * modules/link: New file.
31021         * doc/posix-functions/link.texi: Mention the new module.
31022
31023 2009-01-18  Bruno Haible  <bruno@clisp.org>
31024
31025         * tests/test-avltree_list.c (main): Call set_program_name.
31026         * tests/test-avltree_oset.c (main): Likewise.
31027         * tests/test-obstack-printf.c: Include progname.h.
31028         (main): Call set_program_name.
31029         * tests/test-quotearg.c: Include progname.h.
31030         (main): Call set_program_name.
31031         * tests/test-xmemdup0.c: Include progname.h.
31032         (main): Call set_program_name.
31033
31034 2009-01-18  Bruno Haible  <bruno@clisp.org>
31035
31036         New module 'alphasort'.
31037         * lib/dirent.in.h (alphasort): New declaration.
31038         * lib/alphasort.c: New file, from glibc with modifications.
31039         * m4/alphasort.m4: New file.
31040         * modules/alphasort: New file.
31041         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31042         HAVE_ALPHASORT.
31043         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31044         HAVE_ALPHASORT.
31045         * doc/posix-functions/alphasort.texi: Mention the new module and the
31046         portability problems.
31047
31048 2009-01-18  Bruno Haible  <bruno@clisp.org>
31049
31050         New module 'scandir'.
31051         * lib/dirent.in.h (scandir): New declaration.
31052         * lib/scandir.c: New file, from glibc with modifications.
31053         * m4/scandir.m4: New file.
31054         * modules/scandir: New file.
31055         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31056         HAVE_SCANDIR.
31057         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31058         HAVE_SCANDIR.
31059         * doc/posix-functions/scandir.texi: Mention the new module and the
31060         portability problems.
31061
31062 2009-01-17  Bruno Haible  <bruno@clisp.org>
31063
31064         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31065         Update documentation.
31066         (func_remove_suffix): Escape all dots in the suffix. Update
31067         documentation.
31068         (func_filter_filelist): Update documentation.
31069         Reported by Ralf Wildenhues.
31070
31071 2009-01-17  Bruno Haible  <bruno@clisp.org>
31072
31073         * modules/dprintf-posix-tests: New file.
31074         * tests/test-dprintf-posix.sh: New file.
31075         * tests/test-dprintf-posix.c: New file.
31076
31077         New modules 'dprintf', 'dprintf-posix'.
31078         * lib/stdio.in.h (dprintf): New declaration.
31079         * lib/dprintf.c: New file.
31080         * m4/dprintf.m4: New file.
31081         * m4/dprintf-posix.m4: New file.
31082         * modules/dprintf: New file.
31083         * modules/dprintf-posix: New file.
31084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31085         HAVE_DPRINTF, REPLACE_DPRINTF.
31086         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31087         HAVE_DPRINTF, REPLACE_DPRINTF.
31088         * doc/posix-functions/dprintf.texi: Mention the new modules.
31089
31090 2009-01-17  Bruno Haible  <bruno@clisp.org>
31091
31092         * modules/vdprintf-posix-tests: New file.
31093         * tests/test-vdprintf-posix.sh: New file.
31094         * tests/test-vdprintf-posix.c: New file.
31095
31096         New modules 'vdprintf', 'vdprintf-posix'.
31097         * lib/stdio.in.h (vdprintf): New declaration.
31098         * lib/vdprintf.c: New file.
31099         * m4/vdprintf.m4: New file.
31100         * m4/vdprintf-posix.m4: New file.
31101         * modules/vdprintf: New file.
31102         * modules/vdprintf-posix: New file.
31103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31104         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31105         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31106         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31107         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31108
31109 2009-01-17  Bruno Haible  <bruno@clisp.org>
31110
31111         Fix replacement of fopen on mingw.
31112         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31113         mingw.
31114
31115 2009-01-17  Bruno Haible  <bruno@clisp.org>
31116
31117         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31118         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31119
31120 2009-01-17  Bruno Haible  <bruno@clisp.org>
31121
31122         Avoid test-fflush2.sh failure on mingw.
31123         * tests/test-fflush2.c: Include binary-io.h.
31124         (main): Put standard input into binary mode.
31125         * modules/fflush-tests (Depends-on): Add binary-io.
31126
31127 2009-01-17  Bruno Haible  <bruno@clisp.org>
31128
31129         * lib/wchar.in.h: In another particular situation, include only the
31130         system's <wchar.h> file.
31131         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31132         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31133         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31134
31135 2009-01-17  Bruno Haible  <bruno@clisp.org>
31136
31137         Support for stripping executables in --enable-relocatable.
31138         * build-aux/install-reloc: Expect one more argument, or an environment
31139         variable RELOC_STRIP_PROG. If set, strip the destination program and
31140         its wrapper.
31141         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31142         RELOC_STRIP_PROG.
31143         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31144         to set RELOCATABLE_STRIP.
31145         * NEWS: Mention the new Makefile requirement.
31146
31147 2009-01-17  Bruno Haible  <bruno@clisp.org>
31148
31149         * build-aux/install-reloc: Remove debugging information left over by
31150         C compiler on MacOS X.
31151
31152 2009-01-17  Bruno Haible  <bruno@clisp.org>
31153
31154         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31155         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31156         _NSGetExecutablePath.
31157
31158 2009-01-16  Jim Meyering  <meyering@redhat.com>
31159
31160         strerror: avoid warnings about discarding "const"
31161         * lib/strerror.c (rpl_strerror): Instead of returning a const
31162         string from each and every "case", use a variable, and add a single
31163         cast after the switch.
31164
31165 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31166
31167         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31168
31169 2009-01-16  Bruno Haible  <bruno@clisp.org>
31170
31171         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31172         array initializer syntax that also works in C++ mode.
31173         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31174
31175 2009-01-16  Jim Meyering  <meyering@redhat.com>
31176
31177         poll: suppress a warning
31178         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31179         to ignore "...unsigned expression < 0 is always false" warnings.
31180
31181 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31182
31183         poll: remove declarations of unused variables
31184         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31185         sockbuf and optlen.
31186
31187 2009-01-15  Bruno Haible  <bruno@clisp.org>
31188
31189         Make fflush-after-ungetc POSIX compliant on BSD systems.
31190         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31191         (clear_ungetc_buffer): Implement also for other systems.
31192         (rpl_fflush): On glibc systems, invoke
31193         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31194         clear_ungetc_buffer after fetching the stream's position, not before.
31195
31196 2009-01-15  Bruno Haible  <bruno@clisp.org>
31197
31198         Make fflush-after-ungetc POSIX compliant on glibc systems.
31199         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31200         after ungetc.
31201         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31202         (rpl_fflush): On glibc systems, simply call the system's fflush
31203         function after clearing the ungetc buffer.
31204         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31205         Instead, lseek only to the end of file, then use the system's fseeko
31206         for the rest. On glibc systems, reset the EOF indicator bit.
31207
31208 2009-01-15  Jim Meyering  <meyering@redhat.com>
31209
31210         openmp.m4: revert quote-adding change, for portability to older autoconf
31211         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
31212         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
31213         Simon Josefsson noticed the problem when using autoconf-2.61.
31214
31215 2009-01-15  Bruno Haible  <bruno@clisp.org>
31216
31217         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
31218         * tests/test-fflush2.c (ASSERT): Always fail.
31219         (main): Add two tests for fflush() after ungetc(), taking into account
31220         the Austin Group's clarification.
31221         Suggested by Eric Blake.
31222
31223 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
31224
31225         mktime.m4: remove K&R-style function prototypes
31226         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
31227         for the Sun C++ compiler.
31228
31229 2009-01-14  Bruno Haible  <bruno@clisp.org>
31230
31231         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
31232         while including <wchar.h>.
31233         * lib/wchar.in.h: In two particular situations on HP-UX, include only
31234         the system's <wchar.h> file.
31235         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31236
31237 2009-01-14  Bruno Haible  <bruno@clisp.org>
31238
31239         * m4/csharp.m4: Don't mention gettext on the serial number line.
31240         * m4/csharpexec.m4: Likewise.
31241         * m4/eaccess.m4: Likewise.
31242         * m4/javaexec.m4: Likewise.
31243         * m4/sig_atomic_t.m4: Likewise.
31244         * m4/tmpdir.m4: Likewise.
31245         * m4/intldir.m4: Bump gettext version.
31246         * m4/lib-ld.m4: Likewise.
31247
31248 2009-01-14  Bruno Haible  <bruno@clisp.org>
31249
31250         * lib/progname.c (set_program_name): Add more comments.
31251         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31252
31253 2009-01-14  Simon Josefsson  <simon@josefsson.org>
31254
31255         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
31256         were sys/stat.h does not define it.
31257
31258 2009-01-14  Jim Meyering  <meyering@redhat.com>
31259
31260         many *.m4 files: improve m4 quoting
31261         99% of this change was performed by running the following commands:
31262         git ls-files | grep '\.m4$' | xargs perl -pi \
31263           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
31264           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31265           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
31266           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
31267         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
31268         The remainder were to add Copyright dates, increment serial numbers,
31269         undo some changes in comments, exclude m4/intl.m4, and add quotes
31270         around the "1" in ",1" where the unusual spacing prohibited the
31271         above regexps from doing the job.  For more details, see
31272         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
31273         * m4/acl.m4: Modified.
31274         * m4/afs.m4: Likewise.
31275         * m4/alloca.m4: Likewise.
31276         * m4/argp.m4: Likewise.
31277         * m4/argz.m4: Likewise.
31278         * m4/atexit.m4: Likewise.
31279         * m4/bison-i18n.m4: Likewise.
31280         * m4/bison.m4: Likewise.
31281         * m4/byteswap.m4: Likewise.
31282         * m4/c-stack.m4: Likewise.
31283         * m4/c-strtod.m4: Likewise.
31284         * m4/calloc.m4: Likewise.
31285         * m4/canonicalize-lgpl.m4: Likewise.
31286         * m4/chown.m4: Likewise.
31287         * m4/clock_time.m4: Likewise.
31288         * m4/codeset.m4: Likewise.
31289         * m4/copy-file.m4: Likewise.
31290         * m4/csharp.m4: Likewise.
31291         * m4/csharpcomp.m4: Likewise.
31292         * m4/csharpexec.m4: Likewise.
31293         * m4/d-ino.m4: Likewise.
31294         * m4/d-type.m4: Likewise.
31295         * m4/dirfd.m4: Likewise.
31296         * m4/double-slash-root.m4: Likewise.
31297         * m4/eaccess.m4: Likewise.
31298         * m4/eealloc.m4: Likewise.
31299         * m4/environ.m4: Likewise.
31300         * m4/errno_h.m4: Likewise.
31301         * m4/euidaccess.m4: Likewise.
31302         * m4/execute.m4: Likewise.
31303         * m4/fatal-signal.m4: Likewise.
31304         * m4/fchdir.m4: Likewise.
31305         * m4/fcntl_h.m4: Likewise.
31306         * m4/fileblocks.m4: Likewise.
31307         * m4/filenamecat.m4: Likewise.
31308         * m4/findprog.m4: Likewise.
31309         * m4/flexmember.m4: Likewise.
31310         * m4/fnmatch.m4: Likewise.
31311         * m4/fopen.m4: Likewise.
31312         * m4/fpending.m4: Likewise.
31313         * m4/fprintf-posix.m4: Likewise.
31314         * m4/free.m4: Likewise.
31315         * m4/frexp.m4: Likewise.
31316         * m4/frexpl.m4: Likewise.
31317         * m4/fsusage.m4: Likewise.
31318         * m4/ftruncate.m4: Likewise.
31319         * m4/gc-camellia.m4: Likewise.
31320         * m4/gc-random.m4: Likewise.
31321         * m4/gc.m4: Likewise.
31322         * m4/getaddrinfo.m4: Likewise.
31323         * m4/getcwd-abort-bug.m4: Likewise.
31324         * m4/getcwd-path-max.m4: Likewise.
31325         * m4/getdate.m4: Likewise.
31326         * m4/getdomainname.m4: Likewise.
31327         * m4/getgroups.m4: Likewise.
31328         * m4/gethostname.m4: Likewise.
31329         * m4/gethrxtime.m4: Likewise.
31330         * m4/getline.m4: Likewise.
31331         * m4/getloadavg.m4: Likewise.
31332         * m4/getndelim2.m4: Likewise.
31333         * m4/getpass.m4: Likewise.
31334         * m4/gettext.m4: Likewise.
31335         * m4/gettime.m4: Likewise.
31336         * m4/gettimeofday.m4: Likewise.
31337         * m4/gnulib-common.m4: Likewise.
31338         * m4/group-member.m4: Likewise.
31339         * m4/host-os.m4: Likewise.
31340         * m4/iconv.m4: Likewise.
31341         * m4/iconv_open.m4: Likewise.
31342         * m4/inet_ntop.m4: Likewise.
31343         * m4/inet_pton.m4: Likewise.
31344         * m4/inline.m4: Likewise.
31345         * m4/intldir.m4: Likewise.
31346         * m4/intlmacosx.m4: Likewise.
31347         * m4/intmax.m4: Likewise.
31348         * m4/intmax_t.m4: Likewise.
31349         * m4/inttypes.m4: Likewise.
31350         * m4/inttypes_h.m4: Likewise.
31351         * m4/inttypes-pri.m4: Likewise.
31352         * m4/isapipe.m4: Likewise.
31353         * m4/isnand.m4: Likewise.
31354         * m4/isnanf.m4: Likewise.
31355         * m4/isnanl.m4: Likewise.
31356         * m4/javacomp.m4: Likewise.
31357         * m4/javaexec.m4: Likewise.
31358         * m4/jm-winsz1.m4: Likewise.
31359         * m4/jm-winsz2.m4: Likewise.
31360         * m4/lchown.m4: Likewise.
31361         * m4/lcmessage.m4: Likewise.
31362         * m4/ldexpl.m4: Likewise.
31363         * m4/lib-ld.m4: Likewise.
31364         * m4/lib-link.m4: Likewise.
31365         * m4/libsigsegv.m4: Likewise.
31366         * m4/link-follow.m4: Likewise.
31367         * m4/localcharset.m4: Likewise.
31368         * m4/locale-fr.m4: Likewise.
31369         * m4/locale-ja.m4: Likewise.
31370         * m4/locale-tr.m4: Likewise.
31371         * m4/locale-zh.m4: Likewise.
31372         * m4/lock.m4: Likewise.
31373         * m4/longlong.m4: Likewise.
31374         * m4/ls-mntd-fs.m4: Likewise.
31375         * m4/lstat.m4: Likewise.
31376         * m4/malloc.m4: Likewise.
31377         * m4/mathl.m4: Likewise.
31378         * m4/mbrtowc.m4: Likewise.
31379         * m4/mbstate_t.m4: Likewise.
31380         * m4/mbswidth.m4: Likewise.
31381         * m4/memchr.m4: Likewise.
31382         * m4/memcmp.m4: Likewise.
31383         * m4/memcpy.m4: Likewise.
31384         * m4/memmem.m4: Likewise.
31385         * m4/memmove.m4: Likewise.
31386         * m4/mempcpy.m4: Likewise.
31387         * m4/memrchr.m4: Likewise.
31388         * m4/memset.m4: Likewise.
31389         * m4/minmax.m4: Likewise.
31390         * m4/mkdir-slash.m4: Likewise.
31391         * m4/mkdtemp.m4: Likewise.
31392         * m4/mktime.m4: Likewise.
31393         * m4/mmap-anon.m4: Likewise.
31394         * m4/mountlist.m4: Likewise.
31395         * m4/nanosleep.m4: Likewise.
31396         * m4/nls.m4: Likewise.
31397         * m4/nocrash.m4: Likewise.
31398         * m4/open.m4: Likewise.
31399         * m4/openat.m4: Likewise.
31400         * m4/openmp.m4: Likewise.
31401         * m4/pathmax.m4: Likewise.
31402         * m4/perl.m4: Likewise.
31403         * m4/physmem.m4: Likewise.
31404         * m4/pipe.m4: Likewise.
31405         * m4/po.m4: Likewise.
31406         * m4/poll.m4: Likewise.
31407         * m4/posixtm.m4: Likewise.
31408         * m4/posixver.m4: Likewise.
31409         * m4/printf-frexp.m4: Likewise.
31410         * m4/printf-frexpl.m4: Likewise.
31411         * m4/printf-posix.m4: Likewise.
31412         * m4/printf-posix-rpl.m4: Likewise.
31413         * m4/printf.m4: Likewise.
31414         * m4/progtest.m4: Likewise.
31415         * m4/putenv.m4: Likewise.
31416         * m4/readline.m4: Likewise.
31417         * m4/readlink.m4: Likewise.
31418         * m4/readutmp.m4: Likewise.
31419         * m4/realloc.m4: Likewise.
31420         * m4/regex.m4: Likewise.
31421         * m4/relocatable.m4: Likewise.
31422         * m4/relocatable-lib.m4: Likewise.
31423         * m4/rename-dest-slash.m4: Likewise.
31424         * m4/rename.m4: Likewise.
31425         * m4/rmdir-errno.m4: Likewise.
31426         * m4/rmdir.m4: Likewise.
31427         * m4/roundf.m4: Likewise.
31428         * m4/roundl.m4: Likewise.
31429         * m4/rpmatch.m4: Likewise.
31430         * m4/save-cwd.m4: Likewise.
31431         * m4/selinux-selinux-h.m4: Likewise.
31432         * m4/setenv.m4: Likewise.
31433         * m4/settime.m4: Likewise.
31434         * m4/sig2str.m4: Likewise.
31435         * m4/sig_atomic_t.m4: Likewise.
31436         * m4/signalblocking.m4: Likewise.
31437         * m4/signbit.m4: Likewise.
31438         * m4/sigpipe.m4: Likewise.
31439         * m4/sockets.m4: Likewise.
31440         * m4/sockpfaf.m4: Likewise.
31441         * m4/st_dm_mode.m4: Likewise.
31442         * m4/stat-time.m4: Likewise.
31443         * m4/stdbool.m4: Likewise.
31444         * m4/stdint.m4: Likewise.
31445         * m4/stdint_h.m4: Likewise.
31446         * m4/stpcpy.m4: Likewise.
31447         * m4/stpncpy.m4: Likewise.
31448         * m4/strcase.m4: Likewise.
31449         * m4/strchrnul.m4: Likewise.
31450         * m4/strcspn.m4: Likewise.
31451         * m4/strdup.m4: Likewise.
31452         * m4/strftime.m4: Likewise.
31453         * m4/strndup.m4: Likewise.
31454         * m4/strnlen.m4: Likewise.
31455         * m4/strpbrk.m4: Likewise.
31456         * m4/strptime.m4: Likewise.
31457         * m4/strsep.m4: Likewise.
31458         * m4/strtod.m4: Likewise.
31459         * m4/strtoimax.m4: Likewise.
31460         * m4/strtok_r.m4: Likewise.
31461         * m4/strtol.m4: Likewise.
31462         * m4/strtoll.m4: Likewise.
31463         * m4/strtoul.m4: Likewise.
31464         * m4/strtoull.m4: Likewise.
31465         * m4/strtoumax.m4: Likewise.
31466         * m4/strverscmp.m4: Likewise.
31467         * m4/threadlib.m4: Likewise.
31468         * m4/timegm.m4: Likewise.
31469         * m4/tm_gmtoff.m4: Likewise.
31470         * m4/tmpdir.m4: Likewise.
31471         * m4/tmpfile.m4: Likewise.
31472         * m4/tzset.m4: Likewise.
31473         * m4/uintmax_t.m4: Likewise.
31474         * m4/unlinkdir.m4: Likewise.
31475         * m4/unlocked-io.m4: Likewise.
31476         * m4/uptime.m4: Likewise.
31477         * m4/userspec.m4: Likewise.
31478         * m4/utimbuf.m4: Likewise.
31479         * m4/utime.m4: Likewise.
31480         * m4/utimes-null.m4: Likewise.
31481         * m4/utimes.m4: Likewise.
31482         * m4/vararrays.m4: Likewise.
31483         * m4/vasnprintf.m4: Likewise.
31484         * m4/vfprintf-posix.m4: Likewise.
31485         * m4/vprintf-posix.m4: Likewise.
31486         * m4/wait-process.m4: Likewise.
31487         * m4/wchar_t.m4: Likewise.
31488         * m4/wint_t.m4: Likewise.
31489         * m4/write-any-file.m4: Likewise.
31490         * m4/yield.m4: Likewise.
31491
31492 2009-01-13  Bruno Haible  <bruno@clisp.org>
31493
31494         Avoid test-copy-file.sh failures when ACL support insufficient.
31495         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
31496         TESTS_ENVIRONMENT.
31497         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
31498         Reported by Jim Meyering.
31499
31500 2009-01-13  Bruno Haible  <bruno@clisp.org>
31501
31502         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
31503         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
31504         * modules/unistdio/u8-printf-parse (Files): Likewise.
31505         * modules/unistdio/u32-printf-parse (Files): Likewise.
31506         * modules/unistdio/ulc-printf-parse (Files): Likewise.
31507
31508 2009-01-13  Simon Josefsson  <simon@josefsson.org>
31509
31510         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
31511         and m4/inttypes_h.m4 too.
31512
31513 2009-01-12  Eric Blake  <ebb9@byu.net>
31514
31515         tests: IRIX 6.2 cc can't compile -0.0 into .data
31516         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
31517         rather than at compile-time.
31518         * tests/test-floorl.c (minus_zero): Likewise.
31519         * tests/test-frexpl.c (minus_zero): Likewise.
31520         * tests/test-isnan.c (minus_zerol): Likewise.
31521         * tests/test-isnanl.h (minus_zero): Likewise.
31522         * tests/test-ldexpl.c (minus_zero): Likewise.
31523         * tests/test-roundl.c (minus_zero): Likewise.
31524         * tests/test-signbit.c (minus_zerol): Likewise.
31525         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
31526         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
31527         * tests/test-truncl.c (minus_zero): Likewise.
31528         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
31529         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
31530         Reported by Tom G. Christensen and Nelson H. F. Beebe.
31531
31532 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31533
31534         regex: fix glibc bug 9697
31535         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
31536         handling.
31537
31538 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31539
31540         regex: fix glibc bug 697
31541         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
31542         being NULL also if there are no backreferences.
31543
31544 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
31545
31546         regex: merge glibc changes
31547         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
31548         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
31549         re_string_skip_chars, re_string_reconstruct): Likewise.
31550         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
31551
31552 2009-01-07  Jim Meyering  <meyering@redhat.com>
31553
31554         poll: filter through cppi
31555         * lib/poll.c: Indent cpp directives to reflect nesting.
31556
31557 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
31558
31559         poll: don't return uninitialized
31560         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
31561
31562 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
31563
31564         avoid compile failure on AIX 6.1
31565         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
31566         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
31567
31568 2009-01-04  Jim Meyering  <meyering@redhat.com>
31569
31570         remove duplicate inclusion of <stdio.h>
31571         * tests/test-fprintf-posix.c: Likewise.
31572         * tests/test-printf-posix.c: Likewise.
31573         * tests/test-snprintf-posix.c: Likewise.
31574         * tests/test-sprintf-posix.c: Likewise.
31575         * tests/test-vasprintf-posix.c: Likewise.
31576         * tests/test-vfprintf-posix.c: Likewise.
31577         * tests/test-vprintf-posix.c: Likewise.
31578         * tests/test-vsnprintf-posix.c: Likewise.
31579         * tests/test-vsprintf-posix.c: Likewise.
31580
31581 2009-01-03  Jim Meyering  <meyering@redhat.com>
31582
31583         gnulib-tool: fix sed-based filtering
31584         * gnulib-tool (func_filter_filelist): Remove extra backslash
31585         in sed_fff_filter definition.
31586
31587 2009-01-02  Jim Meyering  <meyering@redhat.com>
31588
31589         strftime: avoid compilation failure on Solaris 2.6
31590         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
31591         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
31592         Don't #define mbrlen or mbsinit, since now they're guaranteed to
31593         be available.  Reported by Tom G. Christensen.  Details in
31594         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
31595
31596 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31597             Bruno Haible  <bruno@clisp.org>
31598
31599         Speed up gnulib-tool by doing more string processing through shell
31600         built-ins.
31601         * gnulib-tool (fast_func_append): New variable.
31602         (func_remove_prefix, func_remove_suffix): New functions.
31603         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
31604         (func_filter_filelist): New function.
31605         (func_get_dependencies): Use func_remove_suffix instead of sed.
31606         (func_get_automake_snippet): Use func_filter_filelist instead of a
31607         subshell and sed invocation.
31608
31609 2009-01-01  Bruno Haible  <bruno@clisp.org>
31610
31611         Fix a security bug.
31612         * gnulib-tool (func_import, import, update): Don't allow the characters
31613         '"', '$', '`', '\' in macro arguments that become part of commands that
31614         are evaluated.
31615
31616 2009-01-01  Bruno Haible  <bruno@clisp.org>
31617
31618         * gnulib-tool (func_reset_sigpipe): Add more comments.
31619
31620 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31621
31622         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
31623         func_emit_tests_Makefile_am, func_import): Abort loops early if we
31624         already know the answer.
31625
31626 2009-01-01  Jim Meyering  <meyering@redhat.com>
31627
31628         * lib/version-etc.c (version_etc_va): Update copyright year.
31629
31630 2008-12-30  Bruno Haible  <bruno@clisp.org>
31631
31632         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
31633         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
31634         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
31635
31636 2008-12-29  Eric Blake  <ebb9@byu.net>
31637
31638         multiarch: avoid autoconf AC_REQUIRE bug
31639         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
31640         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
31641         2.63 and older.
31642         Reported by Bruno Haible, and analyzed in
31643         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
31644
31645 2008-12-29  Bruno Haible  <bruno@clisp.org>
31646
31647         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
31648         files in subdirectories correctly.
31649         Reported by Ralf Wildenhues.
31650
31651 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31652
31653         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
31654         rather than 'join FILE -', for Solaris join.
31655
31656 2008-12-29  Bruno Haible  <bruno@clisp.org>
31657
31658         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
31659         quoting.
31660         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31661         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31662         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
31663         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
31664         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31665         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31666         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31667         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31668         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31669         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31670         * m4/nls.m4 (AM_NLS): Likewise.
31671         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
31672         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31673         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31674         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31675         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31676         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31677         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
31678         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31679         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31680         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31681         * m4/xsize.m4 (gl_XSIZE): Likewise.
31682         Suggested by Jim Meyering.
31683
31684 2008-11-17  Bruce Korb  <bkorb@gnu.org>
31685
31686         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
31687         * lib/parse-duration.c: use a switch instead of cascading if's.
31688
31689 2008-12-29  Eric Blake  <ebb9@byu.net>
31690
31691         wchar.h: supply WEOF on Irix 5.3
31692         * lib/wchar.in.h (wint_t): Also supply WEOF.
31693         * lib/wctype.in.h (wint_t): Likewise.
31694         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
31695         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
31696         Reported by Tom G. Christensen.
31697
31698 2008-12-26  Bruno Haible  <bruno@clisp.org>
31699
31700         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
31701         i486, i586, i686.
31702
31703 2008-12-26  Bruno Haible  <bruno@clisp.org>
31704
31705         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
31706
31707 2008-12-26  Bruno Haible  <bruno@clisp.org>
31708
31709         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
31710         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
31711         not __STDC_CONSTANT_MACROS.
31712         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
31713
31714 2008-12-25  Bruno Haible  <bruno@clisp.org>
31715
31716         Add support for universal builds to vasnprintf.
31717         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
31718         universal builds, guess no.
31719         * modules/vasnprintf-posix (Depends-on): Add multiarch.
31720         * modules/vasprintf-posix (Depends-on): Likewise.
31721         * modules/fprintf-posix (Depends-on): Likewise.
31722         * modules/vfprintf-posix (Depends-on): Likewise.
31723         * modules/snprintf-posix (Depends-on): Likewise.
31724         * modules/vsnprintf-posix (Depends-on): Likewise.
31725         * modules/sprintf-posix (Depends-on): Likewise.
31726         * modules/vsprintf-posix (Depends-on): Likewise.
31727         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31728         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31729         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31730         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31731         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31732         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31733         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31734
31735         Add support for universal builds to <inttypes.h>.
31736         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
31737         _SCNu64_PREFIX): In Apple
31738         universal builds, define directly, using _LP64.
31739         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
31740         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
31741         * modules/inttypes (Depends-on): Add multiarch.
31742         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31743
31744         Add support for universal builds to <stdint.h>.
31745         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
31746         universal builds, define directly, using _LP64.
31747         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
31748         Apple universal builds, don't test for the size and suffix of ptrdiff_t
31749         and size_t.
31750         * modules/stdint (Depends-on): Add multiarch.
31751         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
31752
31753         New module 'multiarch'.
31754         * modules/multiarch: New file.
31755         * m4/multiarch.m4: New file.
31756
31757 2008-12-25  Bruno Haible  <bruno@clisp.org>
31758
31759         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
31760
31761 2008-12-25  Bruno Haible  <bruno@clisp.org>
31762
31763         * modules/btowc (License): Relicense under LGPLv2+.
31764         * modules/mbsinit (License): Likewise.
31765         * modules/mbrtowc (License): Likewise.
31766         * modules/wcrtomb (License): Likewise.
31767         * modules/streq (License): Likewise.
31768         Reported by David Lutterkort <lutter@redhat.com>.
31769
31770 2008-12-23  Bruno Haible  <bruno@clisp.org>
31771
31772         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
31773
31774 2008-12-23  Bruno Haible  <bruno@clisp.org>
31775
31776         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
31777         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
31778         GETADDRINFO_LIB, not in LIBS.
31779         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
31780         * modules/canon-host (Link): Likewise.
31781         * NEWS: Mention the change.
31782         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
31783         GETADDRINFO_LIB.
31784
31785 2008-12-22  Bruno Haible  <bruno@clisp.org>
31786
31787         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
31788         * doc/posix-functions/iswalpha_l.texi: Likewise.
31789         * doc/posix-functions/iswblank_l.texi: Likewise.
31790         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31791         * doc/posix-functions/iswctype_l.texi: Likewise.
31792         * doc/posix-functions/iswdigit_l.texi: Likewise.
31793         * doc/posix-functions/iswgraph_l.texi: Likewise.
31794         * doc/posix-functions/iswlower_l.texi: Likewise.
31795         * doc/posix-functions/iswprint_l.texi: Likewise.
31796         * doc/posix-functions/iswpunct_l.texi: Likewise.
31797         * doc/posix-functions/iswspace_l.texi: Likewise.
31798         * doc/posix-functions/iswupper_l.texi: Likewise.
31799         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31800         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
31801         * doc/posix-functions/open_wmemstream.texi: Likewise.
31802         * doc/posix-functions/swscanf.texi: Likewise.
31803         * doc/posix-functions/towctrans_l.texi: Likewise.
31804         * doc/posix-functions/towlower.texi: Likewise.
31805         * doc/posix-functions/towlower_l.texi: Likewise.
31806         * doc/posix-functions/towupper.texi: Likewise.
31807         * doc/posix-functions/towupper_l.texi: Likewise.
31808         * doc/posix-functions/vfwprintf.texi: Likewise.
31809         * doc/posix-functions/vfwscanf.texi: Likewise.
31810         * doc/posix-functions/vswscanf.texi: Likewise.
31811         * doc/posix-functions/vwprintf.texi: Likewise.
31812         * doc/posix-functions/vwscanf.texi: Likewise.
31813         * doc/posix-functions/wcpcpy.texi: Likewise.
31814         * doc/posix-functions/wcpncpy.texi: Likewise.
31815         * doc/posix-functions/wcscasecmp.texi: Likewise.
31816         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
31817         * doc/posix-functions/wcscoll_l.texi: Likewise.
31818         * doc/posix-functions/wcsdup.texi: Likewise.
31819         * doc/posix-functions/wcsncasecmp.texi: Likewise.
31820         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
31821         * doc/posix-functions/wcsnlen.texi: Likewise.
31822         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31823         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31824         * doc/posix-functions/wctrans_l.texi: Likewise.
31825         * doc/posix-functions/wctype_l.texi: Likewise.
31826         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
31827         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
31828         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
31829         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
31830         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
31831         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
31832         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
31833         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
31834         * doc/glibc-functions/wcschrnul.texi: Likewise.
31835         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31836         * doc/glibc-functions/wcstod_l.texi: Likewise.
31837         * doc/glibc-functions/wcstof_l.texi: Likewise.
31838         * doc/glibc-functions/wcstol_l.texi: Likewise.
31839         * doc/glibc-functions/wcstold_l.texi: Likewise.
31840         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31841         * doc/glibc-functions/wcstoq.texi: Likewise.
31842         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31843         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31844         * doc/glibc-functions/wcstouq.texi: Likewise.
31845         * doc/glibc-functions/wmempcpy.texi: Likewise.
31846
31847 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
31848             Eric Blake  <ebb9@byu.net>
31849             Paolo Bonzini  <bonzini@gnu.org>
31850             Bruno Haible  <bruno@clisp.org>
31851
31852         Make c-stack work on Haiku.
31853         * lib/c-stack.c (SA_ONSTACK): Define fallback.
31854         (c_stack_action): Use SA_ONSTACK flag.
31855
31856 2008-12-22  Bruno Haible  <bruno@clisp.org>
31857
31858         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
31859
31860 2008-12-22  Bruno Haible  <bruno@clisp.org>
31861
31862         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
31863         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
31864         being overridden.
31865         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
31866         New macros.
31867         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
31868         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
31869         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
31870         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
31871
31872 2008-12-22  Bruno Haible  <bruno@clisp.org>
31873
31874         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
31875         from test code.
31876
31877 2008-12-22  Eric Blake  <ebb9@byu.net>
31878
31879         Avoid gcc warnings on cygwin.
31880         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
31881         Avoid unused variable.
31882         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
31883         Likewise.
31884
31885 2008-12-22  Bruno Haible  <bruno@clisp.org>
31886
31887         Remove HAVE_MBRTOWC conditionals.
31888         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
31889         (mbscasecmp): Assume mbrtowc function.
31890         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
31891         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
31892         * lib/mbschr.c: Include mbuiter.h unconditionally.
31893         (mbschr): Assume mbrtowc function.
31894         * lib/mbscspn.c: Include mbuiter.h unconditionally.
31895         (mbscspn): Assume mbrtowc function.
31896         * lib/mbslen.c: Include mbuiter.h unconditionally.
31897         (mbslen): Assume mbrtowc function.
31898         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
31899         (mbsncasecmp): Assume mbrtowc function.
31900         * lib/mbsnlen.c: Include mbiter.h unconditionally.
31901         (mbsnlen): Assume mbrtowc function.
31902         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
31903         (mbspbrk): Assume mbrtowc function.
31904         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
31905         (mbspcasecmp): Assume mbrtowc function.
31906         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
31907         (mbsrchr): Assume mbrtowc function.
31908         * lib/mbssep.c: Include mbuiter.h unconditionally.
31909         (mbssep): Assume mbrtowc function.
31910         * lib/mbsspn.c: Include mbuiter.h unconditionally.
31911         (mbsspn): Assume mbrtowc function.
31912         * lib/mbsstr.c: Include mbuiter.h unconditionally.
31913         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
31914         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
31915         (mbstok_r): Assume mbrtowc function.
31916         * lib/propername.c: Include mbuiter.h unconditionally.
31917         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
31918         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
31919         (trim2): Assume mbrtowc function.
31920         * lib/mbswidth.c (mbsinit): Remove fallback definition.
31921         (mbsnwidth): Assume mbrtowc function.
31922         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
31923         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
31924         fallback definitions.
31925         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
31926
31927 2008-12-22  Bruno Haible  <bruno@clisp.org>
31928
31929         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
31930
31931 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
31932
31933         * modules/regex: Request emulations for the mb*/wc* functions we need.
31934         * m4/regex.m4: Don't look for those functions here.
31935         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
31936
31937 2008-12-22  Bruno Haible  <bruno@clisp.org>
31938
31939         * modules/fnmatch (Depends-on): Remove duplicated dependency.
31940
31941 2008-12-21  Bruno Haible  <bruno@clisp.org>
31942
31943         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
31944         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
31945         (Include): Remove conditionalization.
31946         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
31947         (Include): Remove conditionalization.
31948         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
31949         (Include): Remove conditionalization.
31950         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
31951         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31952         * NEWS: Mention the change.
31953         Reported by Alan Hourihane <alanh@fairlite.co.uk>
31954         via Sergey Poznyakoff <gray@gnu.org.ua>.
31955
31956 2008-12-21  Bruno Haible  <bruno@clisp.org>
31957
31958         * MODULES.html.sh (Extended multibyte and wide character utilities
31959         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
31960         wcrtomb, wcsrtombs.
31961         (Support for systems lacking POSIX:2008): Add accept, bind, close,
31962         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
31963         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
31964         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
31965
31966 2008-12-21  Bruno Haible  <bruno@clisp.org>
31967
31968         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
31969
31970 2008-12-21  Bruno Haible  <bruno@clisp.org>
31971
31972         * modules/wcsnrtombs-tests: New file.
31973         * tests/test-wcsnrtombs1.sh: New file.
31974         * tests/test-wcsnrtombs2.sh: New file.
31975         * tests/test-wcsnrtombs3.sh: New file.
31976         * tests/test-wcsnrtombs4.sh: New file.
31977         * tests/test-wcsnrtombs.c: New file.
31978
31979         New module 'wcsnrtombs'.
31980         * lib/wchar.in.h (wcsnrtombs): New declaration.
31981         * lib/wcsnrtombs.c: New file.
31982         * lib/wcsrtombs-state.c: New file.
31983         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
31984         (internal_state): Remove variable.
31985         * m4/wcsnrtombs.m4: New file.
31986         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
31987         compilation units.
31988         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
31989         HAVE_WCSNRTOMBS.
31990         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
31991         HAVE_WCSNRTOMBS.
31992         * modules/wcsnrtombs: New file.
31993         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
31994         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
31995
31996 2008-12-21  Bruno Haible  <bruno@clisp.org>
31997
31998         * modules/wcsrtombs-tests: New file.
31999         * tests/test-wcsrtombs1.sh: New file.
32000         * tests/test-wcsrtombs2.sh: New file.
32001         * tests/test-wcsrtombs3.sh: New file.
32002         * tests/test-wcsrtombs4.sh: New file.
32003         * tests/test-wcsrtombs.c: New file.
32004
32005         New module 'wcsrtombs'.
32006         * lib/wchar.in.h (wcsrtombs): New declaration.
32007         * lib/wcsrtombs.c: New file.
32008         * m4/wcsrtombs.m4: New file.
32009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32010         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32011         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32012         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32013         * modules/wcsrtombs: New file.
32014         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32015         bugs.
32016
32017 2008-12-21  Bruno Haible  <bruno@clisp.org>
32018
32019         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32020         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32021         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32022         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32023         if not correct.
32024         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32025         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32026         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32027         m4/locale-zh.m4, m4/codeset.m4.
32028         * doc/posix-functions/wcrtomb.texi: Document the bug.
32029
32030 2008-12-21  Bruno Haible  <bruno@clisp.org>
32031
32032         Work around a btowc() bug on IRIX 6.5.
32033         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32034         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32035         REPLACE_WTOBC if not.
32036         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32037         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32038         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32039
32040 2008-12-21  Bruno Haible  <bruno@clisp.org>
32041
32042         * modules/wcrtomb-tests: New file.
32043         * tests/test-wcrtomb.sh: New file.
32044         * tests/test-wcrtomb.c: New file.
32045
32046         New module 'wcrtomb'.
32047         * lib/wchar.in.h (wcrtomb): New declaration.
32048         * lib/wcrtomb.c: New file.
32049         * m4/wcrtomb.m4: New file.
32050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32051         HAVE_WCRTOMB.
32052         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32053         HAVE_WCRTOMB.
32054         * modules/wcrtomb: New file.
32055         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32056
32057 2008-12-21  Bruno Haible  <bruno@clisp.org>
32058
32059         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32060         * modules/mbsrtowcs (Files): Likewise.
32061         * modules/wctob (Files): Likewise.
32062         * modules/c-strcase-tests (Files): Likewise.
32063         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32064         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32065         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32066         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32067         * modules/vasnprintf-posix-tests (Files): Likewise.
32068
32069 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32070
32071         gitlog-to-changelog: pass all command-line arguments to git-log
32072         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32073         it is sometimes convenient to filter the commits in various ways.
32074         gitlog-to-changelog only allows --since to specify a start date,
32075         but git-log itself supports many other filtering mechanisms.
32076         At the moment, I want to filter by branch name.  Rather than
32077         adding a --branch option to gitlog-to-changelog, it seems more
32078         flexible to simply pass all options directly to git-log and let
32079         git do the work.  Notice that this effectively makes --since a
32080         redundant option for gitlog-to-changelog, but removing it would
32081         require current usage to change since calls would then require
32082         an additional '--'.
32083
32084 2008-12-21  Bruno Haible  <bruno@clisp.org>
32085
32086         * modules/mbsnrtowcs-tests: New file.
32087         * tests/test-mbsnrtowcs1.sh: New file.
32088         * tests/test-mbsnrtowcs2.sh: New file.
32089         * tests/test-mbsnrtowcs3.sh: New file.
32090         * tests/test-mbsnrtowcs4.sh: New file.
32091         * tests/test-mbsnrtowcs.c: New file.
32092
32093         New module 'mbsnrtowcs'.
32094         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32095         * lib/mbsnrtowcs.c: New file.
32096         * lib/mbsrtowcs-state.c: New file.
32097         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32098         (internal_state): Remove variable.
32099         * m4/mbsnrtowcs.m4: New file.
32100         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32101         compilation units.
32102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32103         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32104         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32105         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32106         * modules/mbsnrtowcs: New file.
32107         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32108         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32109         portability problem.
32110
32111 2008-12-21  Bruno Haible  <bruno@clisp.org>
32112
32113         Work around mbsrtowcs bug.
32114         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32115         (gl_FUNC_MBSRTOWCS): Invoke it.
32116         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32117         m4/locale-zh.m4.
32118         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32119
32120 2008-12-21  Bruno Haible  <bruno@clisp.org>
32121
32122         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32123
32124 2008-12-21  Bruno Haible  <bruno@clisp.org>
32125
32126         Update doc for AIX.
32127         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32128         16-bit wchar_t type.
32129         * doc/posix-functions/btowc.texi: Likewise.
32130         * doc/posix-functions/fgetwc.texi: Likewise.
32131         * doc/posix-functions/fgetws.texi: Likewise.
32132         * doc/posix-functions/fputwc.texi: Likewise.
32133         * doc/posix-functions/fputws.texi: Likewise.
32134         * doc/posix-functions/fwide.texi: Likewise.
32135         * doc/posix-functions/fwprintf.texi: Likewise.
32136         * doc/posix-functions/fwscanf.texi: Likewise.
32137         * doc/posix-functions/getwchar.texi: Likewise.
32138         * doc/posix-functions/getwc.texi: Likewise.
32139         * doc/posix-functions/iswalnum.texi: Likewise.
32140         * doc/posix-functions/iswalpha.texi: Likewise.
32141         * doc/posix-functions/iswblank.texi: Likewise.
32142         * doc/posix-functions/iswcntrl.texi: Likewise.
32143         * doc/posix-functions/iswctype.texi: Likewise.
32144         * doc/posix-functions/iswdigit.texi: Likewise.
32145         * doc/posix-functions/iswgraph.texi: Likewise.
32146         * doc/posix-functions/iswlower.texi: Likewise.
32147         * doc/posix-functions/iswprint.texi: Likewise.
32148         * doc/posix-functions/iswpunct.texi: Likewise.
32149         * doc/posix-functions/iswspace.texi: Likewise.
32150         * doc/posix-functions/iswupper.texi: Likewise.
32151         * doc/posix-functions/iswxdigit.texi: Likewise.
32152         * doc/posix-functions/mbrtowc.texi: Likewise.
32153         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32154         * doc/posix-functions/mbstowcs.texi: Likewise.
32155         * doc/posix-functions/mbtowc.texi: Likewise.
32156         * doc/posix-functions/putwchar.texi: Likewise.
32157         * doc/posix-functions/putwc.texi: Likewise.
32158         * doc/posix-functions/swprintf.texi: Likewise.
32159         * doc/posix-functions/tolower.texi: Likewise.
32160         * doc/posix-functions/toupper.texi: Likewise.
32161         * doc/posix-functions/towctrans.texi: Likewise.
32162         * doc/posix-functions/ungetwc.texi: Likewise.
32163         * doc/posix-functions/vswprintf.texi: Likewise.
32164         * doc/posix-functions/wcrtomb.texi: Likewise.
32165         * doc/posix-functions/wcscat.texi: Likewise.
32166         * doc/posix-functions/wcschr.texi: Likewise.
32167         * doc/posix-functions/wcscmp.texi: Likewise.
32168         * doc/posix-functions/wcscoll.texi: Likewise.
32169         * doc/posix-functions/wcscpy.texi: Likewise.
32170         * doc/posix-functions/wcscspn.texi: Likewise.
32171         * doc/posix-functions/wcsftime.texi: Likewise.
32172         * doc/posix-functions/wcslen.texi: Likewise.
32173         * doc/posix-functions/wcsncat.texi: Likewise.
32174         * doc/posix-functions/wcsncmp.texi: Likewise.
32175         * doc/posix-functions/wcsncpy.texi: Likewise.
32176         * doc/posix-functions/wcspbrk.texi: Likewise.
32177         * doc/posix-functions/wcsrchr.texi: Likewise.
32178         * doc/posix-functions/wcsrtombs.texi: Likewise.
32179         * doc/posix-functions/wcsspn.texi: Likewise.
32180         * doc/posix-functions/wcsstr.texi: Likewise.
32181         * doc/posix-functions/wcstod.texi: Likewise.
32182         * doc/posix-functions/wcstof.texi: Likewise.
32183         * doc/posix-functions/wcstoimax.texi: Likewise.
32184         * doc/posix-functions/wcstok.texi: Likewise.
32185         * doc/posix-functions/wcstold.texi: Likewise.
32186         * doc/posix-functions/wcstoll.texi: Likewise.
32187         * doc/posix-functions/wcstol.texi: Likewise.
32188         * doc/posix-functions/wcstombs.texi: Likewise.
32189         * doc/posix-functions/wcstoull.texi: Likewise.
32190         * doc/posix-functions/wcstoul.texi: Likewise.
32191         * doc/posix-functions/wcstoumax.texi: Likewise.
32192         * doc/posix-functions/wcswidth.texi: Likewise.
32193         * doc/posix-functions/wcsxfrm.texi: Likewise.
32194         * doc/posix-functions/wctob.texi: Likewise.
32195         * doc/posix-functions/wctomb.texi: Likewise.
32196         * doc/posix-functions/wctrans.texi: Likewise.
32197         * doc/posix-functions/wctype.texi: Likewise.
32198         * doc/posix-functions/wcwidth.texi: Likewise.
32199         * doc/posix-functions/wmemchr.texi: Likewise.
32200         * doc/posix-functions/wmemcmp.texi: Likewise.
32201         * doc/posix-functions/wmemcpy.texi: Likewise.
32202         * doc/posix-functions/wmemmove.texi: Likewise.
32203         * doc/posix-functions/wmemset.texi: Likewise.
32204         * doc/posix-functions/wprintf.texi: Likewise.
32205         * doc/posix-functions/wscanf.texi: Likewise.
32206
32207 2008-12-21  Bruno Haible  <bruno@clisp.org>
32208
32209         Update doc for HP-UX 11.11.
32210         * doc/posix-functions/btowc.texi: Clarify that the function is missing
32211         in HP-UX version 11.00, not in all versions of HP-UX 11.
32212         * doc/posix-functions/fwide.texi: Likewise.
32213         * doc/posix-functions/fwprintf.texi: Likewise.
32214         * doc/posix-functions/fwscanf.texi: Likewise.
32215         * doc/posix-functions/inet_ntop.texi: Likewise.
32216         * doc/posix-functions/inet_pton.texi: Likewise.
32217         * doc/posix-functions/mbrlen.texi: Likewise.
32218         * doc/posix-functions/mbrtowc.texi: Likewise.
32219         * doc/posix-functions/mbsinit.texi: Likewise.
32220         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32221         * doc/posix-functions/swprintf.texi: Likewise.
32222         * doc/posix-functions/swscanf.texi: Likewise.
32223         * doc/posix-functions/towctrans.texi: Likewise.
32224         * doc/posix-functions/vfwprintf.texi: Likewise.
32225         * doc/posix-functions/vswprintf.texi: Likewise.
32226         * doc/posix-functions/vwprintf.texi: Likewise.
32227         * doc/posix-functions/wcrtomb.texi: Likewise.
32228         * doc/posix-functions/wcsrtombs.texi: Likewise.
32229         * doc/posix-functions/wcsstr.texi: Likewise.
32230         * doc/posix-functions/wctob.texi: Likewise.
32231         * doc/posix-functions/wctrans.texi: Likewise.
32232         * doc/posix-functions/wmemchr.texi: Likewise.
32233         * doc/posix-functions/wmemcmp.texi: Likewise.
32234         * doc/posix-functions/wmemcpy.texi: Likewise.
32235         * doc/posix-functions/wmemmove.texi: Likewise.
32236         * doc/posix-functions/wmemset.texi: Likewise.
32237         * doc/posix-functions/wprintf.texi: Likewise.
32238         * doc/posix-functions/wscanf.texi: Likewise.
32239
32240 2008-12-21  Bruno Haible  <bruno@clisp.org>
32241
32242         Work around a portability problem.
32243         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
32244         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
32245
32246 2008-12-20  Bruno Haible  <bruno@clisp.org>
32247
32248         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
32249         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
32250         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
32251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
32252         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
32253
32254         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
32255         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
32256         set.
32257         (GNULIB_defined_mbstate_t): New macro.
32258         (mbsinit): Redefine if REPLACE_MBSINIT is set.
32259         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
32260         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
32261         reuses the system's mbrtowc function but works around the bugs.
32262         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
32263         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
32264         macros.
32265         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
32266         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
32267         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
32268         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
32269         REPLACE_MBSINIT if mbsinit needs to be overridden.
32270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
32271         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32272         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
32273         REPLACE_MBSINIT, REPLACE_MBRTOWC.
32274         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32275         m4/locale-zh.m4.
32276         (Depends): Add mbsinit.
32277         * modules/mbsinit (Depends): Add mbrtowc.
32278         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
32279
32280 2008-12-20  Bruno Haible  <bruno@clisp.org>
32281
32282         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
32283         so that there are no conversion errors on AIX.
32284         * tests/test-mbsrtowcs.c (main): LIkewise.
32285
32286 2008-12-20  Bruno Haible  <bruno@clisp.org>
32287
32288         Work around wctob bug on Solaris <= 9.
32289         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
32290         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
32291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
32292         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
32293         * modules/wctob (Files): Add m4/locale-fr.m4.
32294         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
32295
32296 2008-12-20  Bruno Haible  <bruno@clisp.org>
32297
32298         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
32299         /dev/null.
32300         * tests/test-select-in.sh: Likewise.
32301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32302
32303 2008-12-20  Bruno Haible  <bruno@clisp.org>
32304
32305         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
32306         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
32307         Cygwin 1.5.x.
32308
32309 2008-12-20  Bruno Haible  <bruno@clisp.org>
32310
32311         Ensure mbstate_t is defined on HP-UX 11.11.
32312         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
32313         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
32314         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
32315         AC_USE_SYSTEM_EXTENSIONS.
32316         * modules/fnmatch (Depends-on): Add extensions.
32317         * modules/mbrlen (Depends-on): Likewise.
32318         * modules/mbrtowc (Depends-on): Likewise.
32319         * modules/mbsinit (Depends-on): Likewise.
32320         * modules/mbsrtowcs (Depends-on): Likewise.
32321         * modules/mbswidth (Depends-on): Likewise.
32322         * modules/quotearg (Depends-on): Likewise.
32323         * modules/strftime (Depends-on): Likewise.
32324
32325 2008-12-20  Bruno Haible  <bruno@clisp.org>
32326
32327         Ensure wctob is declared on IRIX 6.5.
32328         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
32329         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
32330         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
32331         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
32332         of HAVE_WCTOB.
32333         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
32334         HAVE_WCTOB.
32335         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
32336
32337 2008-12-19  Bruno Haible  <bruno@clisp.org>
32338
32339         * modules/mbsrtowcs-tests: New file.
32340         * tests/test-mbsrtowcs1.sh: New file.
32341         * tests/test-mbsrtowcs2.sh: New file.
32342         * tests/test-mbsrtowcs3.sh: New file.
32343         * tests/test-mbsrtowcs4.sh: New file.
32344         * tests/test-mbsrtowcs.c: New file.
32345
32346         New module 'mbsrtowcs'.
32347         * lib/wchar.in.h (mbsrtowcs): New declaration.
32348         * lib/mbsrtowcs.c: New file.
32349         * m4/mbsrtowcs.m4: New file.
32350         * modules/mbsrtowcs: New file.
32351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
32352         HAVE_MBSRTOWCS.
32353         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
32354         HAVE_MBSRTOWCS.
32355         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
32356
32357 2008-12-19  Bruno Haible  <bruno@clisp.org>
32358
32359         New module 'mbrlen'.
32360         * lib/wchar.in.h (mbrlen): New declaration.
32361         * lib/mbrlen.c: New file.
32362         * m4/mbrlen.m4: New file.
32363         * modules/mbrlen: New file.
32364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
32365         HAVE_MBRLEN.
32366         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
32367         HAVE_MBRLEN.
32368         * doc/posix-functions/mbrlen.texi: Document the new module.
32369
32370 2008-12-19  Bruno Haible  <bruno@clisp.org>
32371
32372         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
32373         * modules/mbrtowc (Depends-on): Add verify.
32374         Suggested by Paul Eggert.
32375
32376 2008-12-18  Bruno Haible  <bruno@clisp.org>
32377
32378         * modules/mbsinit-tests: New file.
32379         * tests/test-mbsinit.sh: New file.
32380         * tests/test-mbsinit.c: New file.
32381
32382 2008-12-18  Bruno Haible  <bruno@clisp.org>
32383
32384         * modules/mbrtowc-tests: New file.
32385         * tests/test-mbrtowc1.sh: New file.
32386         * tests/test-mbrtowc2.sh: New file.
32387         * tests/test-mbrtowc3.sh: New file.
32388         * tests/test-mbrtowc4.sh: New file.
32389         * tests/test-mbrtowc.c: New file.
32390
32391         New module 'mbrtowc'.
32392         * lib/wchar.in.h (mbstate_t): Override when the system does not have
32393         mbsinit and mbrtowc.
32394         (mbrtowc): New declaration.
32395         * lib/mbrtowc.c: New file.
32396         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
32397         * modules/mbrtowc: New file.
32398         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
32399         HAVE_MBRTOWC.
32400         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
32401         HAVE_MBRTOWC.
32402         * doc/posix-functions/mbrtowc.texi: Document the new module.
32403
32404 2008-12-18  Bruno Haible  <bruno@clisp.org>
32405
32406         New module 'wctob'.
32407         * lib/wchar.in.h (wctob): New declaration.
32408         * lib/wctob.c: New file.
32409         * m4/wctob.m4: New file.
32410         * modules/wctob: New file.
32411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
32412         HAVE_WCTOB.
32413         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
32414         * doc/posix-functions/wctob.texi: Document the new module.
32415
32416 2008-12-18  Bruno Haible  <bruno@clisp.org>
32417
32418         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
32419         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
32420
32421 2008-12-18  Simon Josefsson  <simon@josefsson.org>
32422
32423         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
32424         G. Christensen" <tgc@jupiterrise.com>.
32425
32426         * lib/flock.c: Need to include errno.h.  Reported by "Tom
32427         G. Christensen" <tgc@jupiterrise.com>.
32428
32429         * lib/flock.c: Need to include string.h.  Reported by "Tom
32430         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
32431         <ebb9@byu.net>.
32432
32433 2008-12-18  Bruno Haible  <bruno@clisp.org>
32434
32435         * m4/locale-ja.m4: New file, from GNU gettext.
32436
32437 2008-12-17  Bruno Haible  <bruno@clisp.org>
32438
32439         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
32440         Suggested by Eric Blake.
32441
32442 2008-12-17  Bruno Haible  <bruno@clisp.org>
32443
32444         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
32445
32446 2008-12-17  Bruno Haible  <bruno@clisp.org>
32447
32448         * lib/mbsinit.c: Include verify.h. Verify an assumption.
32449         * modules/mbsinit (Depends-on): Add verify.
32450         Suggested by Paul Eggert.
32451
32452 2008-12-17  Bruno Haible  <bruno@clisp.org>
32453
32454         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
32455         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
32456         gl_FUNC_MBRTOWC.
32457         * m4/mbiter.m4 (gl_MBITER): LIkewise.
32458         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
32459         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
32460         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
32461         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
32462         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
32463         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
32464         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
32465         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
32466         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
32467         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
32468         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
32469         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
32470         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
32471         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
32472         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32473         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
32474         * modules/trim (configure.ac): Likewise.
32475
32476 2008-12-17  Bruno Haible  <bruno@clisp.org>
32477
32478         * modules/btowc-tests: New file.
32479         * tests/test-btowc1.sh: New file.
32480         * tests/test-btowc2.sh: New file.
32481         * tests/test-btowc.c: New file.
32482
32483         New module 'btowc'.
32484         * lib/wchar.in.h (btowc): New declaration.
32485         * lib/btowc.c: New file.
32486         * m4/btowc.m4: New file.
32487         * modules/btowc: New file.
32488         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
32489         HAVE_BTOWC.
32490         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
32491         * doc/posix-functions/btowc.texi: Document the new module.
32492
32493 2008-12-17  Bruno Haible  <bruno@clisp.org>
32494
32495         New module 'mbsinit'.
32496         * lib/wchar.in.h (mbsinit): New declaration.
32497         * lib/mbsinit.c: New file.
32498         * m4/mbsinit.m4: New file.
32499         * modules/mbsinit: New file.
32500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
32501         HAVE_MBSINIT.
32502         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
32503         HAVE_MBSINIT.
32504         * doc/posix-functions/mbsinit.texi: Document the new module.
32505
32506 2008-12-16  Bruno Haible  <bruno@clisp.org>
32507
32508         * lib/unistd.in.h: Add comment.
32509         * tests/test-environ.c: Don't include <stdlib.h>.
32510
32511 2008-12-16  Bruno Haible  <bruno@clisp.org>
32512
32513         * lib/parse-duration.h (parse_duration): Document return value
32514         convention.
32515         * lib/parse-duration.c: Include specification header first. Add
32516         comments.
32517         (_): Remove macro.
32518         (parse_year_month_day, parse_hour_minute_second): Move side effects
32519         outside of strchr call.
32520         (parse_non_iso8601): Move side effects outside of isspace call.
32521         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
32522         call.
32523
32524 2008-12-16  Bruno Haible  <bruno@clisp.org>
32525
32526         * tests/test-parse-duration.sh: Produce no output when the test
32527         succeeds.
32528
32529 2008-12-16  Bruno Haible  <bruno@clisp.org>
32530
32531         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
32532         expressions.
32533
32534 2008-12-15  Bruno Haible  <bruno@clisp.org>
32535
32536         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
32537         * doc/glibc-functions/flistxattr.texi: Likewise.
32538         * doc/glibc-functions/fopencookie.texi: Likewise.
32539         * doc/glibc-functions/fremovexattr.texi: Likewise.
32540         * doc/glibc-functions/fsetxattr.texi: Likewise.
32541         * doc/glibc-functions/getxattr.texi: Likewise.
32542         * doc/glibc-functions/lgetxattr.texi: Likewise.
32543         * doc/glibc-functions/listxattr.texi: Likewise.
32544         * doc/glibc-functions/llistxattr.texi: Likewise.
32545         * doc/glibc-functions/lremovexattr.texi: Likewise.
32546         * doc/glibc-functions/lsetxattr.texi: Likewise.
32547         * doc/glibc-functions/removexattr.texi: Likewise.
32548         * doc/glibc-functions/setxattr.texi: Likewise.
32549         * doc/posix-functions/open_memstream.texi: Likewise.
32550
32551 2008-12-15  Eric Blake  <ebb9@byu.net>
32552
32553         Update doc for cygwin 1.7.
32554         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
32555         functions.
32556         * doc/posix-functions/fchmodat.texi: Likewise.
32557         * doc/posix-functions/fchownat.texi: Likewise.
32558         * doc/posix-functions/fdopendir.texi: Likewise.
32559         * doc/posix-functions/fmemopen.texi: Likewise.
32560         * doc/posix-functions/freeaddrinfo.texi: Likewise.
32561         * doc/posix-functions/fstatat.texi: Likewise.
32562         * doc/posix-functions/futimens.texi: Likewise.
32563         * doc/posix-functions/gai_strerror.texi: Likewise.
32564         * doc/posix-functions/getaddrinfo.texi: Likewise.
32565         * doc/posix-functions/getnameinfo.texi: Likewise.
32566         * doc/posix-functions/if_freenameindex.texi: Likewise.
32567         * doc/posix-functions/if_indextoname.texi: Likewise.
32568         * doc/posix-functions/if_nameindex.texi: Likewise.
32569         * doc/posix-functions/if_nametoindex.texi: Likewise.
32570         * doc/posix-functions/insque.texi: Likewise.
32571         * doc/posix-functions/linkat.texi: Likewise.
32572         * doc/posix-functions/llrint.texi: Likewise.
32573         * doc/posix-functions/llrintf.texi: Likewise.
32574         * doc/posix-functions/llrintl.texi: Likewise.
32575         * doc/posix-functions/lockf.texi: Likewise.
32576         * doc/posix-functions/lrintl.texi: Likewise.
32577         * doc/posix-functions/mkdirat.texi: Likewise.
32578         * doc/posix-functions/mkfifoat.texi: Likewise.
32579         * doc/posix-functions/mknodat.texi: Likewise.
32580         * doc/posix-functions/mq_close.texi: Likewise.
32581         * doc/posix-functions/mq_getattr.texi: Likewise.
32582         * doc/posix-functions/mq_notify.texi: Likewise.
32583         * doc/posix-functions/mq_open.texi: Likewise.
32584         * doc/posix-functions/mq_receive.texi: Likewise.
32585         * doc/posix-functions/mq_send.texi: Likewise.
32586         * doc/posix-functions/mq_setattr.texi: Likewise.
32587         * doc/posix-functions/mq_timedreceive.texi: Likewise.
32588         * doc/posix-functions/mq_timedsend.texi: Likewise.
32589         * doc/posix-functions/mq_unlink.texi: Likewise.
32590         * doc/posix-functions/open_memstream.texi: Likewise.
32591         * doc/posix-functions/openat.texi: Likewise.
32592         * doc/posix-functions/posix_fadvise.texi: Likewise.
32593         * doc/posix-functions/posix_fallocate.texi: Likewise.
32594         * doc/posix-functions/posix_madvise.texi: Likewise.
32595         * doc/posix-functions/posix_memalign.texi: Likewise.
32596         * doc/posix-functions/posix_openpt.texi: Likewise.
32597         * doc/posix-functions/readlinkat.texi: Likewise.
32598         * doc/posix-functions/remque.texi: Likewise.
32599         * doc/posix-functions/renameat.texi: Likewise.
32600         * doc/posix-functions/rintl.texi: Likewise.
32601         * doc/posix-functions/sem_unlink.texi: Likewise.
32602         * doc/posix-functions/shm_open.texi: Likewise.
32603         * doc/posix-functions/shm_unlink.texi: Likewise.
32604         * doc/posix-functions/signgam.texi: Likewise.
32605         * doc/posix-functions/sigset.texi: Likewise.
32606         * doc/posix-functions/stpcpy.texi: Likewise.
32607         * doc/posix-functions/stpncpy.texi: Likewise.
32608         * doc/posix-functions/strerror.texi: Likewise.
32609         * doc/posix-functions/strtod.texi: Likewise.
32610         * doc/posix-functions/symlinkat.texi: Likewise.
32611         * doc/posix-functions/unlinkat.texi: Likewise.
32612         * doc/posix-functions/utimensat.texi: Likewise.
32613         * doc/glibc-functions/bindresvport.texi: Likewise.
32614         * doc/glibc-functions/dn_expand.texi: Likewise.
32615         * doc/glibc-functions/exp10.texi: Likewise.
32616         * doc/glibc-functions/exp10f.texi: Likewise.
32617         * doc/glibc-functions/fgetxattr.texi: Likewise.
32618         * doc/glibc-functions/flistxattr.texi: Likewise.
32619         * doc/glibc-functions/fopencookie.texi: Likewise.
32620         * doc/glibc-functions/freeifaddrs.texi: Likewise.
32621         * doc/glibc-functions/fremovexattr.texi: Likewise.
32622         * doc/glibc-functions/fsetxattr.texi: Likewise.
32623         * doc/glibc-functions/getifaddrs.texi: Likewise.
32624         * doc/glibc-functions/getxattr.texi: Likewise.
32625         * doc/glibc-functions/lgetxattr.texi: Likewise.
32626         * doc/glibc-functions/listxattr.texi: Likewise.
32627         * doc/glibc-functions/llistxattr.texi: Likewise.
32628         * doc/glibc-functions/lremovexattr.texi: Likewise.
32629         * doc/glibc-functions/lsetxattr.texi: Likewise.
32630         * doc/glibc-functions/pow10.texi: Likewise.
32631         * doc/glibc-functions/pow10f.texi: Likewise.
32632         * doc/glibc-functions/rcmd_af.texi: Likewise.
32633         * doc/glibc-functions/removexattr.texi: Likewise.
32634         * doc/glibc-functions/res_init.texi: Likewise.
32635         * doc/glibc-functions/res_mkquery.texi: Likewise.
32636         * doc/glibc-functions/res_query.texi: Likewise.
32637         * doc/glibc-functions/res_querydomain.texi: Likewise.
32638         * doc/glibc-functions/res_send.texi: Likewise.
32639         * doc/glibc-functions/rresvport_af.texi: Likewise.
32640         * doc/glibc-functions/setxattr.texi: Likewise.
32641         * doc/glibc-functions/strcasestr.texi: Likewise.
32642
32643 2008-12-15  Bruno Haible  <bruno@clisp.org>
32644
32645         Fix compilation error on OSF/1 4.0.
32646         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
32647         <sys/time.h>, simply delegate to the system header.
32648         Reported by Daniel Richard G. <oss@teragram.com>.
32649
32650 2008-12-15  Bruno Haible  <bruno@clisp.org>
32651
32652         * doc/posix-functions/openat.texi: Mention the 'openat' module.
32653         * doc/posix-functions/fchmodat.texi: Likewise.
32654         * doc/posix-functions/fchownat.texi: Likewise.
32655         * doc/posix-functions/fdopendir.texi: Likewise.
32656         * doc/posix-functions/fstatat.texi: Likewise.
32657         * doc/posix-functions/mkdirat.texi: Likewise.
32658         * doc/posix-functions/unlinkat.texi: Likewise.
32659
32660 2008-12-14  Bruno Haible  <bruno@clisp.org>
32661
32662         Update doc for POSIX:2008.
32663         * doc/posix-functions/faccessat.texi: New file.
32664         * doc/posix-functions/fchmodat.texi: New file.
32665         * doc/posix-functions/fchownat.texi: New file.
32666         * doc/posix-functions/fdopendir.texi: New file.
32667         * doc/posix-functions/fstatat.texi: New file.
32668         * doc/posix-functions/futimens.texi: New file.
32669         * doc/posix-functions/linkat.texi: New file.
32670         * doc/posix-functions/mkdirat.texi: New file.
32671         * doc/posix-functions/mkfifoat.texi: New file.
32672         * doc/posix-functions/mknodat.texi: New file.
32673         * doc/posix-functions/open_wmemstream.texi: New file.
32674         * doc/posix-functions/openat.texi: New file.
32675         * doc/posix-functions/psiginfo.texi: New file.
32676         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
32677         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
32678         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
32679         * doc/posix-functions/readlinkat.texi: New file.
32680         * doc/posix-functions/renameat.texi: New file.
32681         * doc/posix-functions/strerror_l.texi: New file.
32682         * doc/posix-functions/symlinkat.texi: New file.
32683         * doc/posix-functions/unlinkat.texi: New file.
32684         * doc/posix-functions/utimensat.texi: New file.
32685         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32686
32687 2008-12-14  Bruno Haible  <bruno@clisp.org>
32688
32689         Update doc for POSIX:2008.
32690         * doc/posix-functions/alphasort.texi: Renamed from
32691         doc/glibc-functions/alphasort.texi.
32692         * doc/posix-functions/dirfd.texi: Renamed from
32693         doc/glibc-functions/dirfd.texi.
32694         * doc/posix-functions/dprintf.texi: Renamed from
32695         doc/glibc-functions/dprintf.texi.
32696         * doc/posix-functions/duplocale.texi: Renamed from
32697         doc/glibc-functions/duplocale.texi.
32698         * doc/posix-functions/fexecve.texi: Renamed from
32699         doc/glibc-functions/fexecve.texi.
32700         * doc/posix-functions/fmemopen.texi: Renamed from
32701         doc/glibc-functions/fmemopen.texi.
32702         * doc/posix-functions/freelocale.texi: Renamed from
32703         doc/glibc-functions/freelocale.texi.
32704         * doc/posix-functions/getdate_err.texi: Renamed from
32705         doc/glibc-functions/getdate_err.texi.
32706         * doc/posix-functions/isalnum_l.texi: Renamed from
32707         doc/glibc-functions/isalnum_l.texi.
32708         * doc/posix-functions/isalpha_l.texi: Renamed from
32709         doc/glibc-functions/isalpha_l.texi.
32710         * doc/posix-functions/isblank_l.texi: Renamed from
32711         doc/glibc-functions/isblank_l.texi.
32712         * doc/posix-functions/iscntrl_l.texi: Renamed from
32713         doc/glibc-functions/iscntrl_l.texi.
32714         * doc/posix-functions/isdigit_l.texi: Renamed from
32715         doc/glibc-functions/isdigit_l.texi.
32716         * doc/posix-functions/isgraph_l.texi: Renamed from
32717         doc/glibc-functions/isgraph_l.texi.
32718         * doc/posix-functions/islower_l.texi: Renamed from
32719         doc/glibc-functions/islower_l.texi.
32720         * doc/posix-functions/isprint_l.texi: Renamed from
32721         doc/glibc-functions/isprint_l.texi.
32722         * doc/posix-functions/ispunct_l.texi: Renamed from
32723         doc/glibc-functions/ispunct_l.texi.
32724         * doc/posix-functions/isspace_l.texi: Renamed from
32725         doc/glibc-functions/isspace_l.texi.
32726         * doc/posix-functions/isupper_l.texi: Renamed from
32727         doc/glibc-functions/isupper_l.texi.
32728         * doc/posix-functions/iswalnum_l.texi: Renamed from
32729         doc/glibc-functions/iswalnum_l.texi.
32730         * doc/posix-functions/iswalpha_l.texi: Renamed from
32731         doc/glibc-functions/iswalpha_l.texi.
32732         * doc/posix-functions/iswblank_l.texi: Renamed from
32733         doc/glibc-functions/iswblank_l.texi.
32734         * doc/posix-functions/iswcntrl_l.texi: Renamed from
32735         doc/glibc-functions/iswcntrl_l.texi.
32736         * doc/posix-functions/iswctype_l.texi: Renamed from
32737         doc/glibc-functions/iswctype_l.texi.
32738         * doc/posix-functions/iswdigit_l.texi: Renamed from
32739         doc/glibc-functions/iswdigit_l.texi.
32740         * doc/posix-functions/iswgraph_l.texi: Renamed from
32741         doc/glibc-functions/iswgraph_l.texi.
32742         * doc/posix-functions/iswlower_l.texi: Renamed from
32743         doc/glibc-functions/iswlower_l.texi.
32744         * doc/posix-functions/iswprint_l.texi: Renamed from
32745         doc/glibc-functions/iswprint_l.texi.
32746         * doc/posix-functions/iswpunct_l.texi: Renamed from
32747         doc/glibc-functions/iswpunct_l.texi.
32748         * doc/posix-functions/iswspace_l.texi: Renamed from
32749         doc/glibc-functions/iswspace_l.texi.
32750         * doc/posix-functions/iswupper_l.texi: Renamed from
32751         doc/glibc-functions/iswupper_l.texi.
32752         * doc/posix-functions/iswxdigit_l.texi: Renamed from
32753         doc/glibc-functions/iswxdigit_l.texi.
32754         * doc/posix-functions/isxdigit_l.texi: Renamed from
32755         doc/glibc-functions/isxdigit_l.texi.
32756         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
32757         doc/glibc-functions/mbsnrtowcs.texi.
32758         * doc/posix-functions/mkdtemp.texi: Renamed from
32759         doc/glibc-functions/mkdtemp.texi.
32760         * doc/posix-functions/newlocale.texi: Renamed from
32761         doc/glibc-functions/newlocale.texi.
32762         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
32763         doc/glibc-functions/nl_langinfo_l.texi.
32764         * doc/posix-functions/open_memstream.texi: Renamed from
32765         doc/glibc-functions/open_memstream.texi.
32766         * doc/posix-functions/opterr.texi: Renamed from
32767         doc/glibc-functions/opterr.texi.
32768         * doc/posix-functions/optind.texi: Renamed from
32769         doc/glibc-functions/optind.texi.
32770         * doc/posix-functions/optopt.texi: Renamed from
32771         doc/glibc-functions/optopt.texi.
32772         * doc/posix-functions/psignal.texi: Renamed from
32773         doc/glibc-functions/psignal.texi.
32774         * doc/posix-functions/scandir.texi: Renamed from
32775         doc/glibc-functions/scandir.texi.
32776         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
32777         doc/glibc-functions/sched_get_priority_min.texi.
32778         * doc/posix-functions/signgam.texi: Renamed from
32779         doc/glibc-functions/signgam.texi.
32780         * doc/posix-functions/stpcpy.texi: Renamed from
32781         doc/glibc-functions/stpcpy.texi.
32782         * doc/posix-functions/stpncpy.texi: Renamed from
32783         doc/glibc-functions/stpncpy.texi.
32784         * doc/posix-functions/strcasecmp_l.texi: Renamed from
32785         doc/glibc-functions/strcasecmp_l.texi.
32786         * doc/posix-functions/strcoll_l.texi: Renamed from
32787         doc/glibc-functions/strcoll_l.texi.
32788         * doc/posix-functions/strfmon_l.texi: Renamed from
32789         doc/glibc-functions/strfmon_l.texi.
32790         * doc/posix-functions/strftime_l.texi: Renamed from
32791         doc/glibc-functions/strftime_l.texi.
32792         * doc/posix-functions/strncasecmp_l.texi: Renamed from
32793         doc/glibc-functions/strncasecmp_l.texi.
32794         * doc/posix-functions/strndup.texi: Renamed from
32795         doc/glibc-functions/strndup.texi.
32796         * doc/posix-functions/strnlen.texi: Renamed from
32797         doc/glibc-functions/strnlen.texi.
32798         * doc/posix-functions/strsignal.texi: Renamed from
32799         doc/glibc-functions/strsignal.texi.
32800         * doc/posix-functions/strxfrm_l.texi: Renamed from
32801         doc/glibc-functions/strxfrm_l.texi.
32802         * doc/posix-functions/timer_gettime.texi: Renamed from
32803         doc/glibc-functions/timer_gettime.texi.
32804         * doc/posix-functions/tolower_l.texi: Renamed from
32805         doc/glibc-functions/tolower_l.texi.
32806         * doc/posix-functions/toupper_l.texi: Renamed from
32807         doc/glibc-functions/toupper_l.texi.
32808         * doc/posix-functions/towctrans_l.texi: Renamed from
32809         doc/glibc-functions/towctrans_l.texi.
32810         * doc/posix-functions/towlower_l.texi: Renamed from
32811         doc/glibc-functions/towlower_l.texi.
32812         * doc/posix-functions/towupper_l.texi: Renamed from
32813         doc/glibc-functions/towupper_l.texi.
32814         * doc/posix-functions/uselocale.texi: Renamed from
32815         doc/glibc-functions/uselocale.texi.
32816         * doc/posix-functions/vdprintf.texi: Renamed from
32817         doc/glibc-functions/vdprintf.texi.
32818         * doc/posix-functions/wcpcpy.texi:
32819         Renamed from doc/glibc-functions/wcpcpy.texi.
32820         * doc/posix-functions/wcpncpy.texi: Renamed from
32821         doc/glibc-functions/wcpncpy.texi.
32822         * doc/posix-functions/wcscasecmp.texi: Renamed from
32823         doc/glibc-functions/wcscasecmp.texi.
32824         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
32825         doc/glibc-functions/wcscasecmp_l.texi.
32826         * doc/posix-functions/wcscoll_l.texi: Renamed from
32827         doc/glibc-functions/wcscoll_l.texi.
32828         * doc/posix-functions/wcsdup.texi: Renamed from
32829         doc/glibc-functions/wcsdup.texi.
32830         * doc/posix-functions/wcsncasecmp.texi: Renamed from
32831         doc/glibc-functions/wcsncasecmp.texi.
32832         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
32833         doc/glibc-functions/wcsncasecmp_l.texi.
32834         * doc/posix-functions/wcsnlen.texi: Renamed from
32835         doc/glibc-functions/wcsnlen.texi.
32836         * doc/posix-functions/wcsnrtombs.texi: Renamed from
32837         doc/glibc-functions/wcsnrtombs.texi.
32838         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
32839         doc/glibc-functions/wcsxfrm_l.texi.
32840         * doc/posix-functions/wctrans_l.texi: Renamed from
32841         doc/glibc-functions/wctrans_l.texi.
32842         * doc/posix-functions/wctype_l.texi: Renamed from
32843         doc/glibc-functions/wctype_l.texi.
32844         * doc/gnulib.texi (Function Substitutes): Add these subsections.
32845         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
32846         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
32847         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
32848         these subsections.
32849         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
32850         Remove sections.
32851
32852 2008-12-14  Bruno Haible  <bruno@clisp.org>
32853
32854         Update doc for POSIX:2008.
32855         * doc/posix-functions/*.texi: Update URL of POSIX specification.
32856
32857 2008-12-14  Bruno Haible  <bruno@clisp.org>
32858
32859         Update doc for POSIX:2008.
32860         * doc/pastposix-functions/bcmp.texi: Renamed from
32861         doc/posix-functions/bcmp.texi.
32862         * doc/pastposix-functions/bcopy.texi: Renamed from
32863         doc/posix-functions/bcopy.texi.
32864         * doc/pastposix-functions/bsd_signal.texi: Renamed from
32865         doc/posix-functions/bsd_signal.texi.
32866         * doc/pastposix-functions/bzero.texi: Renamed from
32867         doc/posix-functions/bzero.texi.
32868         * doc/pastposix-functions/ecvt.texi: Renamed from
32869         doc/posix-functions/ecvt.texi.
32870         * doc/pastposix-functions/fcvt.texi: Renamed from
32871         doc/posix-functions/fcvt.texi.
32872         * doc/pastposix-functions/ftime.texi: Renamed from
32873         doc/posix-functions/ftime.texi.
32874         * doc/pastposix-functions/gcvt.texi: Renamed from
32875         doc/posix-functions/gcvt.texi.
32876         * doc/pastposix-functions/getcontext.texi: Renamed from
32877         doc/posix-functions/getcontext.texi.
32878         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
32879         doc/posix-functions/gethostbyaddr.texi.
32880         * doc/pastposix-functions/gethostbyname.texi: Renamed from
32881         doc/posix-functions/gethostbyname.texi.
32882         * doc/pastposix-functions/getwd.texi: Renamed from
32883         doc/posix-functions/getwd.texi.
32884         * doc/pastposix-functions/h_errno.texi: Renamed from
32885         doc/posix-functions/h_errno.texi.
32886         * doc/pastposix-functions/index.texi: Renamed from
32887         doc/posix-functions/index.texi.
32888         * doc/pastposix-functions/makecontext.texi: Renamed from
32889         doc/posix-functions/makecontext.texi.
32890         * doc/pastposix-functions/mktemp.texi: Renamed from
32891         doc/posix-functions/mktemp.texi.
32892         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
32893         doc/posix-functions/pthread_attr_getstackaddr.texi.
32894         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
32895         doc/posix-functions/pthread_attr_setstackaddr.texi.
32896         * doc/pastposix-functions/rindex.texi: Renamed from
32897         doc/posix-functions/rindex.texi.
32898         * doc/pastposix-functions/scalb.texi: Renamed from
32899         doc/posix-functions/scalb.texi.
32900         * doc/pastposix-functions/setcontext.texi: Renamed from
32901         doc/posix-functions/setcontext.texi.
32902         * doc/pastposix-functions/swapcontext.texi: Renamed from
32903         doc/posix-functions/swapcontext.texi.
32904         * doc/pastposix-functions/ualarm.texi: Renamed from
32905         doc/posix-functions/ualarm.texi.
32906         * doc/pastposix-functions/usleep.texi: Renamed from
32907         doc/posix-functions/usleep.texi.
32908         * doc/pastposix-functions/vfork.texi: Renamed from
32909         doc/posix-functions/vfork.texi.
32910         * doc/pastposix-functions/wcswcs.texi: Renamed from
32911         doc/posix-functions/wcswcs.texi.
32912         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
32913         (Function Substitutes): Update.
32914
32915 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32916
32917         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
32918         m4/strerror.m4.
32919
32920 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32921             Bruno Haible  <bruno@clisp.org>
32922
32923         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
32924
32925 2008-12-13  Bruno Haible  <bruno@clisp.org>
32926
32927         * modules/strtoull (Depends-on): Remove unistd.
32928
32929 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32930
32931         * modules/strtoull (Depends-on): Add stdlib.
32932
32933 2008-12-11  Simon Josefsson  <simon@josefsson.org>
32934
32935         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
32936
32937 2008-12-10  Jim Meyering  <meyering@redhat.com>
32938
32939         gl_ASSERT: don't say assertions are disabled when they're not
32940         * m4/assert.m4 (gl_ASSERT): Do not make configure report
32941         "checking whether to enable assertions... no", when they are in
32942         fact enabled.  This is solely a bug in the output of configure.
32943         In spite of saying "no", NDEBUG was not defined in that case.
32944         Also, as noted by Eric Blake, leave assertions enabled upon
32945         --enable-assert=INVALID.
32946
32947 2008-12-10  Bruno Haible  <bruno@clisp.org>
32948
32949         Change MODULES.html to refer to POSIX:2008 where possible.
32950         * MODULES.html.sh (POSIX2008_URL): New variable.
32951         (posix_headers): Remove sys/timeb, ucontext.
32952         (posix2001_headers): New variable.
32953         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
32954         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
32955         index, makecontext, mktemp, pthread_attr_getstackaddr,
32956         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
32957         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
32958         (posix2001_functions): New variable.
32959         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
32960         otherwise.
32961
32962 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32963
32964         add missing include to parse-duration.c
32965         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
32966         * modules/parse-duration (Depends-on): Add xalloc.
32967
32968         fix sed script reading maint.mk
32969         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
32970         (syntax-check-rules): Use it.
32971
32972 2008-12-09  Bruno Haible  <bruno@clisp.org>
32973
32974         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
32975         MacOS X 10.4/PowerPC.
32976         Reported by Simon Josefsson.
32977
32978 2008-12-08  Jim Meyering  <meyering@redhat.com>
32979
32980         work around mingw's lack of some S_IF definitions
32981         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
32982         Reported by Simon Josefsson.
32983
32984 2008-12-08  Bruno Haible  <bruno@clisp.org>
32985
32986         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
32987         applied to variables. Needed on MacOS X 10.4/PowerPC.
32988         Reported by Simon Josefsson.
32989
32990 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
32991         and Eric Blake  <ebb9@byu.net>
32992
32993         assert: honor --enable-assert
32994         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
32995         order to honor --enable-assert, rather than treating it as a
32996         synonym for --disable-assert.
32997
32998 2008-12-08  Jim Meyering  <meyering@redhat.com>
32999
33000         * lib/posixtm.c: Remove now-useless declaration of mktime.
33001
33002         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33003
33004 2008-12-07  Bruno Haible  <bruno@clisp.org>
33005
33006         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33007         test_once): Mark functions as static.
33008         * tests/test-tls.c (test_tls): Likewise.
33009
33010 2008-12-07  Bruno Haible  <bruno@clisp.org>
33011
33012         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33013         iconv_register_autodetect.
33014
33015 2008-12-07  Jim Meyering  <meyering@redhat.com>
33016
33017         posixtm.c: avoid a warning
33018         * lib/posixtm.c (posixtime): Don't initialize tm0.
33019         It's no longer needed to placate gcc4's -Wuninitialized,
33020         and the attempt to placate would elicit a new warning.
33021
33022         unicodeio.c: mark unused parameters
33023         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33024         (fallback_failure_callback): Likewise.
33025
33026 2008-12-07  Bruno Haible  <bruno@clisp.org>
33027
33028         * gnulib-tool (func_create_testdir): When building the tests
33029         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33030         Reported by Simon Josefsson.
33031
33032 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33033
33034         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33035
33036 2008-12-06  Bruno Haible  <bruno@clisp.org>
33037
33038         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33039         Suggested by Eric Blake.
33040
33041 2008-12-06  Bruno Haible  <bruno@clisp.org>
33042
33043         Fix a c-stack test failure on MacOS X.
33044         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33045         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33046         handler for SIGBUS as well.
33047         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33048         install a signal handler for SIGBUS as well.
33049         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33050
33051 2008-12-06  Bruno Haible  <bruno@clisp.org>
33052
33053         Advocacy documentation.
33054         * doc/gnulib-intro.texi (Benefits): New section.
33055         * doc/gnulib.texi: Update.
33056
33057 2008-12-06  Bruno Haible  <bruno@clisp.org>
33058
33059         Document the 'manywarnings' module.
33060         * doc/manywarnings.texi: New file.
33061         * doc/gnulib.texi: Include it.
33062
33063 2008-12-05  Eric Blake  <ebb9@byu.net>
33064
33065         tests: silence some gcc warnings
33066         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33067         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33068         type mismatches.
33069
33070 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33071             Bruno Haible  <bruno@clisp.org>
33072
33073         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33074
33075 2008-11-29  Jim Meyering  <meyering@redhat.com>
33076
33077         unicodeio.c: mark unused parameters
33078         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33079         (fallback_failure_callback): Likewise.
33080
33081         fts: fix a thinko
33082         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33083         (set_stat_type): Return S_IF*-valued "type" directly.
33084         Prompted by James Youngman's spotting a related bug.
33085         Confirmed by further testing through find.
33086
33087         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33088         * lib/fts.c (D_TYPE): Define.
33089         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33090         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33091         (s_ifmt_shift_bits): New function.
33092         (set_stat_type): New function.
33093         (fts_build): When not calling fts_stat, call set_stat_type
33094         to propagate dirent.d_type info to fts_read caller.
33095         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33096         fts_statp->st_mode type information may be valid.
33097
33098 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33099
33100         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33101         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33102         <sds@gnu.org>.
33103
33104 2008-11-20  Bruno Haible  <bruno@clisp.org>
33105
33106         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33107         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33108         INCLUDE_NEXT.
33109         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33110         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33111         * modules/math (Makefile.am): Substitute
33112         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33114
33115 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33116             Bruno Haible  <bruno@clisp.org>
33117
33118         * lib/stdint.in.h: Define all type macros so that their expansion is
33119         a single typedef'ed token. Fixes a compilation failure in Boost which
33120         does "using ::int8_t;".
33121
33122 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33123
33124         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33125         gl_MANYWARN_ALL_GCC.
33126         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33127         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33128         * modules/manywarnings: New file.
33129         * MODULES.html.sh: Mention manywarnings module.
33130
33131 2008-11-18  Bruno Haible  <bruno@clisp.org>
33132
33133         * doc/gnulib-tool.texi (Unit tests): New section.
33134
33135 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33136
33137         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33138         paths like 'lib/po/foo.po'.
33139
33140 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33141
33142         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33143         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33144
33145 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33146
33147         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33148         parameter works.
33149
33150 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33151
33152         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33153
33154 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33155
33156         * modules/parse-duration-tests: New file.
33157         * tests/test-parse-duration.sh: New file.
33158         * tests/test-parse-duration.c: New file.
33159
33160         New module 'parse-duration'.
33161         * lib/parse-duration.h: New file.
33162         * lib/parse-duration.c: New file.
33163         * modules/parse-duration: New file.
33164
33165 2008-11-17  Bruno Haible  <bruno@clisp.org>
33166
33167         * tests/test-select-out.sh: Comment out the first pipe test.
33168         Reported by Simon Josefsson.
33169
33170 2008-11-17  Bruno Haible  <bruno@clisp.org>
33171
33172         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33173         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33174         gl_HOSTENT.
33175
33176 2008-11-17  Bruno Haible  <bruno@clisp.org>
33177
33178         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33179         -lnetwork and -lnet. Needed for Haiku and BeOS.
33180
33181 2008-11-16  Bruno Haible  <bruno@clisp.org>
33182
33183         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33184
33185 2008-11-16  Bruno Haible  <bruno@clisp.org>
33186
33187         Avoid test failure on Haiku.
33188         * tests/test-fsync.c: Include <errno.h>.
33189         (main): Don't require that fsync (0) fails.
33190
33191 2008-11-15  Bruno Haible  <bruno@clisp.org>
33192
33193         New module 'hostent'.
33194         * modules/hostent: New file.
33195         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33196
33197 2008-11-15  Bruno Haible  <bruno@clisp.org>
33198
33199         New module 'servent'.
33200         * modules/servent: New file.
33201         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33202
33203 2008-11-15  Bruno Haible  <bruno@clisp.org>
33204
33205         Avoid generating same test program with two different rules.
33206         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
33207         test-frexp to test-frexp-nolibm.
33208         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
33209         test-frexpl to test-frexpl-nolibm.
33210
33211 2008-11-15  Bruno Haible  <bruno@clisp.org>
33212
33213         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
33214         $(FREXPL_LIBM).
33215
33216 2008-11-15  Bruno Haible  <bruno@clisp.org>
33217
33218         * lib/netdb.in.h: Activate the definitions also when the system's
33219         <netdb.h> has 'struct addrinfo'.
33220         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
33221         EAI_OVERFLOW or AI_NUMERICSERV.
33222         * doc/posix-headers/netdb.texi: Document the problem.
33223
33224 2008-11-15  Bruno Haible  <bruno@clisp.org>
33225
33226         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
33227
33228         Make the 'sched' module work on platforms where <sched.h> exists but
33229         is incomplete (such as Haiku).
33230         * lib/sched.in.h; Include the system's <sched.h> if it exists.
33231         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
33232         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
33233         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
33234         HAVE_STRUCT_SCHED_PARAM.
33235         * modules/sched (Depends-on): Add include_next.
33236         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
33237         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
33238         * doc/posix-headers/sched.texi: Document the issue.
33239
33240 2008-11-13  Jim Meyering  <meyering@redhat.com>
33241
33242         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
33243         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
33244         test would fail due to the difference in the Report bugs to ...
33245         line.  The expected address is empty, "<>", while the actual
33246         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
33247
33248 2008-11-12  Bruno Haible  <bruno@clisp.org>
33249
33250         lstat: don't compile lstat.c on systems lacking lstat
33251         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
33252         which don't have lstat; this is handled by lib/sys_stat.in.h already.
33253         Reported by Daniel P. Berrange via Jim Meyering.
33254
33255 2008-11-12  Jim Meyering  <meyering@redhat.com>
33256
33257         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
33258
33259 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33260
33261         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
33262         instead.
33263
33264 2008-11-12  Bruno Haible  <bruno@clisp.org>
33265
33266         * lib/unicodeio.c: Include unistr.h.
33267         (utf8_wctomb): Remove function.
33268         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
33269
33270 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33271
33272         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
33273         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
33274         <bruno@clisp.org>.
33275         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
33276
33277 2008-11-12  Simon Josefsson  <simon@josefsson.org>
33278
33279         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
33280         * doc/gnulib.texi: Add section for warnings.
33281
33282 2008-11-11  Bruno Haible  <bruno@clisp.org>
33283
33284         * lib/sockets.h: Add a comment.
33285
33286 2008-11-11  Karl Berry  <karl@gnu.org>
33287
33288         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
33289
33290 2008-11-11  Eric Blake  <ebb9@byu.net>
33291
33292         fdl.texi: avoid git symlinks
33293         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
33294
33295 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33296
33297         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
33298
33299 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33300
33301         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
33302         (gl_WARN_ADD): Substitute $2 if literal.
33303
33304 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33305
33306         * m4/warning.m4: Remove.
33307
33308 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
33309
33310         * m4/warnings.m4: Almost complete rewrite. :-)
33311
33312 2008-11-10  Simon Josefsson  <simon@josefsson.org>
33313
33314         * modules/warnings: New module.
33315         * m4/warnings.m4: New file.
33316         * MODULES.html.sh: Mention warnings module.
33317         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
33318         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33319
33320 2008-11-10  Eric Blake  <ebb9@byu.net>
33321
33322         fdl.texi: make a symlink to the latest version
33323         * doc/standards.texi: Revert today's earlier change.
33324         * doc/fdl-1.2.texi: Rename from old fdl.texi...
33325         * doc/fdl.texi: ...and replace this with a symlink to the newer
33326         fdl-1.3.texi.
33327
33328 2008-11-10  Bruno Haible  <bruno@clisp.org>
33329
33330         * tests/test-select-fd.c (main): Accept the result file name as fourth
33331         argument.
33332         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
33333         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
33334
33335 2008-11-10  Bruno Haible  <bruno@clisp.org>
33336
33337         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
33338         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
33339         as autoconf-substituted macros.
33340         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
33341         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
33342         gl_NETDB_H_DEFAULTS. Set these variables.
33343         * modules/netdb (Makefile.am): Substitute these variables.
33344
33345 2008-11-10  Eric Blake  <ebb9@byu.net>
33346
33347         standards.texi: include correct file for FDL 1.3
33348         * doc/standards.texi (GNU Free Documentation License): Change
33349         include file to pull in FDL 1.3, not 1.2.
33350
33351         fdl.texi: revert accidental change to license
33352         * doc/fdl.texi: This is FDL 1.2, not 1.3.
33353
33354 2008-11-10  Bruno Haible  <bruno@clisp.org>
33355
33356         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
33357         cross-compiling guesses also when the native compile gives no result.
33358
33359 2008-11-10  Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/spawni.c (__spawni): Force variable into the stack.
33362
33363 2008-11-10  Bruno Haible  <bruno@clisp.org>
33364
33365         Add support for Haiku.
33366         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
33367         glibc and BeOS, but also on Haiku.
33368         * lib/fpurge.c (fpurge): Likewise.
33369         * lib/freadable.c (freadable): Likewise.
33370         * lib/freadahead.c (freadahead): Likewise.
33371         * lib/freading.c (freading): Likewise.
33372         * lib/freadptr.c (freadptr): Likewise.
33373         * lib/freadseek.c (freadptrinc): Likewise.
33374         * lib/fseeko.c (rpl_fseeko): Likewise.
33375         * lib/fseterr.c (fseterr): Likewise.
33376         * lib/fwritable.c (fwritable): Likewise.
33377         * lib/fwriting.c (fwriting): Likewise.
33378         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
33379
33380 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33381
33382         * lib/config.charset: Treat Haiku like BeOS.
33383
33384 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
33385
33386         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
33387         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
33388
33389 2008-11-08  Bruno Haible  <bruno@clisp.org>
33390
33391         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
33392         AC_CACHE_CHECK.
33393
33394 2008-11-08  Bruno Haible  <bruno@clisp.org>
33395
33396         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
33397
33398 2008-11-08  Bruno Haible  <bruno@clisp.org>
33399
33400         * tests/test-select-fd.c: New file.
33401         * tests/test-select-in.sh: New file.
33402         * tests/test-select-out.sh: New file.
33403         * tests/test-select-stdin.c: New file.
33404         * modules/select-tests (Files): Add the new files.
33405         (Depends-on): Add gettimeofday.
33406         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
33407         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
33408         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
33409
33410 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
33411             Bruno Haible  <bruno@clisp.org>
33412
33413         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
33414
33415 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
33416
33417         * build-aux/pmccabe2html: Added support for C++ source files.
33418
33419 2008-11-05  Ben Pfaff  <blp@gnu.org>
33420
33421         Fix lib/close.c build on Windows.
33422         * modules/close (Files): Add lib/w32sock.h.
33423
33424 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
33425
33426         Accept Bison's NEWS format.
33427         * build-aux/announce-gen (print_news_deltas): Tweak
33428         $re_prefix.
33429
33430 2008-11-04  Bruno Haible  <bruno@clisp.org>
33431
33432         * modules/random_r (Maintainer): Add glibc.
33433
33434 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33435
33436         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
33437         by karl@freefriends.org (Karl Berry).
33438         * doc/alloca.texi: Likewise.
33439         * doc/c-ctype.texi: Likewise.
33440         * doc/c-strcase.texi: Likewise.
33441         * doc/c-strcaseeq.texi: Likewise.
33442         * doc/c-strcasestr.texi: Likewise.
33443         * doc/c-strstr.texi: Likewise.
33444         * doc/c-strtod.texi: Likewise.
33445         * doc/c-strtold.texi: Likewise.
33446         * doc/ctime.texi: Likewise.
33447         * doc/error.texi: Likewise.
33448         * doc/fdl.texi: Likewise.
33449         * doc/gcd.texi: Likewise.
33450         * doc/getdate.texi: Likewise.
33451         * doc/gnulib-intro.texi: Likewise.
33452         * doc/gnulib-tool.texi: Likewise.
33453         * doc/gnulib.texi: Likewise.
33454         * doc/inet_ntoa.texi: Likewise.
33455         * doc/maintain.texi: Likewise.
33456         * doc/make-stds.texi: Likewise.
33457         * doc/quote.texi: Likewise.
33458         * doc/regexprops-generic.texi: Likewise.
33459         * doc/standards.texi: Likewise.
33460         * doc/verify.texi: Likewise.
33461         * doc/visibility.texi: Likewise.
33462         * doc/gnulib.texi (GNU Free Documentation License): Include
33463         fdl-1.3.texi instead of fdl.texi.
33464
33465 2008-11-04  Simon Josefsson  <simon@josefsson.org>
33466
33467         * doc/fdl-1.3.texi: New file, from
33468         <http://www.gnu.org/licenses/fdl-1.3.texi>.
33469         * modules/fdl-1.3: Add.
33470         * MODULES.html.sh: Add fdl-1.3.
33471
33472 2008-11-03  Bruno Haible  <bruno@clisp.org>
33473
33474         Make determination of absolute name of header file work with AIX xlc.
33475         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
33476         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
33477         preprocessing.
33478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33479         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33480
33481 2008-11-03  Simon Josefsson  <simon@josefsson.org>
33482
33483         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
33484         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
33485         <ludo@gnu.org>.
33486
33487 2008-11-02  Bruno Haible  <bruno@clisp.org>
33488
33489         Mark 'strpbrk' obsolete.
33490         * modules/strpbrk (Status, Notice): New sections.
33491         * modules/strtok_r (Depends-on): Add strpbrk.
33492
33493 2008-11-02  Bruno Haible  <bruno@clisp.org>
33494
33495         Mark 'strdup' obsolete.
33496         * modules/strdup (Status, Notice): New sections.
33497         * modules/findprog (Depends-on): Add strdup.
33498         * modules/getaddrinfo (Depends-on): Likewise.
33499         * modules/localename (Depends-on): Likewise.
33500         * modules/relocatable-lib (Depends-on): Likewise.
33501         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
33502         * modules/relocatable-prog (Depends-on): Likewise.
33503         * modules/trim (Depends-on): Likewise.
33504         * modules/unictype/gen-ctype (Depends-on): Likewise.
33505         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33506
33507 2008-11-02  Bruno Haible  <bruno@clisp.org>
33508
33509         Mark 'strcspn' obsolete.
33510         * modules/strcspn (Status, Notice): New sections.
33511
33512 2008-11-02  Bruno Haible  <bruno@clisp.org>
33513
33514         Mark 'rmdir' obsolete.
33515         * modules/rmdir (Status, Notice): New sections.
33516         * modules/clean-temp (Depends-on): Add rmdir.
33517         * modules/openat (Depends-on): Likewise.
33518
33519 2008-11-02  Bruno Haible  <bruno@clisp.org>
33520
33521         Mark 'raise' obsolete.
33522         * modules/raise (Status, Notice): New sections.
33523         (Include): Specify <signal.h>.
33524         * modules/stdio (Depends-on): Add raise.
33525         * modules/write (Depends-on): Likewise.
33526
33527 2008-11-02  Bruno Haible  <bruno@clisp.org>
33528
33529         Mark 'memset' obsolete.
33530         * modules/memset (Status, Notice): New sections.
33531
33532 2008-11-02  Bruno Haible  <bruno@clisp.org>
33533
33534         Mark 'memmove' obsolete.
33535         * modules/memmove (Status, Notice): New sections.
33536         * modules/argp (Depends-on): Add memmove.
33537         * modules/argz (Depends-on): Likewise.
33538         * modules/canonicalize (Depends-on): Likewise.
33539         * modules/canonicalize-lgpl (Depends-on): Likewise.
33540         * modules/fts (Depends-on): Likewise.
33541         * modules/getcwd (Depends-on): Likewise.
33542         * modules/human (Depends-on): Likewise.
33543         * modules/regex (Depends-on): Likewise.
33544         * modules/striconveh (Depends-on): Likewise.
33545         * modules/trim (Depends-on): Likewise.
33546         * modules/unistr/u8-move (Depends-on): Likewise.
33547         * modules/unistr/u16-move (Depends-on): Likewise.
33548         * modules/unistr/u32-move (Depends-on): Likewise.
33549
33550 2008-11-02  Bruno Haible  <bruno@clisp.org>
33551
33552         Mark 'memcpy' obsolete.
33553         * modules/memcpy (Status, Notice): New sections.
33554
33555 2008-11-02  Bruno Haible  <bruno@clisp.org>
33556
33557         Mark 'memcmp' obsolete.
33558         * modules/memcmp (Status, Notice): New sections.
33559         * modules/argmatch (Depends-on): Add memchr.
33560         * modules/backupfile (Depends-on): Likewise.
33561         * modules/c-strcasestr (Depends-on): Likewise.
33562         * modules/crypto/des (Depends-on): Likewise.
33563         * modules/csharpcomp (Depends-on): Likewise.
33564         * modules/fnmatch (Depends-on): Likewise.
33565         * modules/git-merge-changelog (Depends-on): Likewise.
33566         * modules/isnand (Depends-on): Likewise.
33567         * modules/isnand-nolibm (Depends-on): Likewise.
33568         * modules/isnanf (Depends-on): Likewise.
33569         * modules/isnanf-nolibm (Depends-on): Likewise.
33570         * modules/isnanl (Depends-on): Likewise.
33571         * modules/isnanl-nolibm (Depends-on): Likewise.
33572         * modules/mbchar (Depends-on): Likewise.
33573         * modules/memcoll (Depends-on): Likewise.
33574         * modules/quotearg (Depends-on): Likewise.
33575         * modules/regex (Depends-on): Likewise.
33576         * modules/relocatable-prog (Depends-on): Likewise.
33577         * modules/same (Depends-on): Likewise.
33578         * modules/signbit (Depends-on): Likewise.
33579         * modules/strcasestr-simple (Depends-on): Likewise.
33580         * modules/unictype/gen-ctype (Depends-on): Likewise.
33581         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
33582         * modules/uniname/uniname (Depends-on): Likewise.
33583         * modules/unistr/u8-cmp (Depends-on): Likewise.
33584
33585 2008-11-02  Bruno Haible  <bruno@clisp.org>
33586
33587         Mark 'memchr' obsolete.
33588         * modules/memchr (Status, Notice): New sections.
33589         * modules/argp (Depends-on): Add memchr.
33590         * modules/base64 (Depends-on): Likewise.
33591         * modules/c-strcasestr (Depends-on): Likewise.
33592         * modules/chdir-long (Depends-on): Likewise.
33593         * modules/fnmatch (Depends-on): Likewise.
33594         * modules/getsubopt (Depends-on): Likewise.
33595         * modules/git-merge-changelog (Depends-on): Likewise.
33596         * modules/glob (Depends-on): Likewise.
33597         * modules/strcasestr-simple (Depends-on): Likewise.
33598         * modules/strnlen (Depends-on): Likewise.
33599
33600 2008-11-02  Bruno Haible  <bruno@clisp.org>
33601
33602         Mark 'atexit' obsolete.
33603         * modules/atexit (Status, Notice): New sections.
33604         * modules/chdir-long (Depends-on): Add atexit.
33605         * modules/wait-process (Depends-on): Likewise.
33606
33607 2008-11-02  Bruno Haible  <bruno@clisp.org>
33608
33609         * gnulib-tool: New option --with-obsolete.
33610         (func_usage): Document it.
33611         (func_modules_transitive_closure): Drop obsolete dependencies if
33612         incobsolete is not true.
33613         (func_import): Read and save the incobsolete variable to the cache.
33614
33615 2008-11-02  Bruno Haible  <bruno@clisp.org>
33616
33617         * modules/TEMPLATE-EXTENDED: New field 'Status'.
33618         * gnulib-tool: New option --extract-status.
33619         (func_usage): Document it.
33620         (sed_extract_prog): Recognize it.
33621         (func_get_status): New function.
33622
33623 2008-10-30  Simon Josefsson  <simon@josefsson.org>
33624
33625         * modules/sockets (License): Change from LGPL to LGPLv2+.
33626
33627 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33628
33629         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
33630
33631 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33632
33633         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33634         Mention times and sys_times.
33635         * modules/sys_times, modules/sys_times-tests: New modules.
33636         * modules/times, modules/times-tests: Likewise
33637         * m4/sys_times_h.m4: New file.
33638         * lib/sys_times.in.h: Likewise
33639         * lib/times.c: Likewise.
33640         * tests/test-sys_times.c: Likewise.
33641         * tests/test-times.c: Likewise.
33642         * doc/posix-headers/sys_times.texi: Update.
33643         * doc/posix-functions/times.texi: Update.
33644
33645 2008-10-28  Jim Meyering  <meyering@redhat.com>
33646
33647         * modules/tempname (Depends-on): Add lstat.
33648
33649         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
33650
33651 2008-10-28  Simon Josefsson  <simon@josefsson.org>
33652
33653         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
33654         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
33655         using idiom used elsewhere in gnulib.
33656
33657 2008-10-27  Jim Meyering  <meyering@redhat.com>
33658
33659         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
33660
33661 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33662
33663         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
33664         TESTS_ENVIRONMENT, for shell scripts that needs to call built
33665         programs.
33666         * tests/test-argp-2.sh: Use $EXEEXT when needed.
33667
33668 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33669
33670         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
33671
33672 2008-10-27  Bruno Haible  <bruno@clisp.org>
33673
33674         * tests/test-lstat.c: Include <stdio.h>.
33675
33676 2008-10-27  Simon Josefsson  <simon@josefsson.org>
33677
33678         * modules/lstat-tests: New module.
33679         * tests/test-lstat.c: New file.
33680
33681 2008-10-26  Jim Meyering  <meyering@redhat.com>
33682
33683         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
33684
33685 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33686             Bruno Haible  <bruno@clisp.org>
33687
33688         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
33689         * modules/configmake (Include): Add a note that the include must come
33690         after all system headers.
33691         * lib/javaversion.c: Include configmake.h after all other includes.
33692
33693 2008-10-26  Bruno Haible  <bruno@clisp.org>
33694
33695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
33696         HAVE_STRUCT_RANDOM_DATA to 1.
33697         (gl_STDLIB_H): Simplify.
33698
33699 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33700
33701         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
33702         substitute HAVE_STRUCT_RANDOM_DATA.
33703         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
33704         random_data.
33705         * modules/stdlib (Makefile.am): Substitute
33706         HAVE_STRUCT_RANDOM_DATA.
33707
33708 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33709
33710         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
33711         * doc/gnulib-intro.texi (Copyright): Likewise.
33712
33713 2008-10-26  Simon Josefsson  <simon@josefsson.org>
33714
33715         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
33716         findings.
33717
33718 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
33719             Bruno Haible  <bruno@clisp.org>
33720
33721         * lib/unistd.in.h: Include <winsock2.h>.
33722         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
33723         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
33724         Provide dummy declarations.
33725         (gethostname): Override.
33726         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
33727         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
33728         gl_PREREQ_SYS_H_WINSOCK2.
33729         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
33730         * doc/posix-functions/gethostname.texi: More details.
33731
33732 2008-10-25  Bruno Haible  <bruno@clisp.org>
33733
33734         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
33735         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
33736         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
33737
33738         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
33739         here ...
33740         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
33741         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
33742         gl_UNISTD_H_DEFAULTS.
33743
33744 2008-10-25  Eric Blake  <ebb9@byu.net>
33745
33746         signbit: avoid spurious compiler failure
33747         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
33748         declarations inside function.
33749
33750 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33751             Bruno Haible  <bruno@clisp.org>
33752
33753         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
33754         * modules/random_r (Depends-on): Add stdint.
33755
33756 2008-10-24  Bruno Haible  <bruno@clisp.org>
33757
33758         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
33759         Eggert.
33760         * modules/strerror (License): Likewise.
33761
33762 2008-10-24  Jim Meyering  <meyering@redhat.com>
33763
33764         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
33765         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
33766
33767 2008-10-24  Eric Blake  <ebb9@byu.net>
33768
33769         getgroups: fix compilation when getgroups is available
33770         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
33771         but with <config.h> override of getgroups disabled.
33772
33773 2008-10-24  Simon Josefsson  <simon@josefsson.org>
33774
33775         * doc/gnulib.texi (Header files): Add note about C++ problems.
33776         Explained by Bruno Haible <bruno@clisp.org>.
33777
33778 2008-10-23  Bruno Haible  <bruno@clisp.org>
33779
33780         Define a dummy SA_NODEFER macro on Interix.
33781         * lib/signal.in.h (SA_NODEFER): Define fallback.
33782         Reported by Aleksey Cheusov <cheusov@tut.by> via
33783         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
33784
33785 2008-10-23  Bruno Haible  <bruno@clisp.org>
33786
33787         * modules/freadahead (License): Change to LGPLv2+.
33788         Suggested by Simon Josefsson.
33789
33790 2008-10-23  Jim Meyering  <meyering@redhat.com>
33791
33792         random_r: new module
33793         * modules/random_r: New file.
33794         * m4/random_r.m4: New file.
33795         * lib/random_r.c: New file, from glibc.
33796         * modules/random_r-tests: New file.
33797         * tests/test-random_r.c: New file.
33798         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
33799          Declare.
33800         (RAND_MAX): Define.
33801         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
33802         * modules/stdlib: Substitute them, too.
33803         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
33804         * doc/glibc-functions/initstate_r.texi: Mention the new module.
33805         * doc/glibc-functions/random_r.texi: Likewise.
33806         * doc/glibc-functions/setstate_r.texi: Likewise.
33807         * doc/glibc-functions/srandom_r.texi: Likewise.
33808         * config/srclist.txt: Mention it.
33809
33810 2008-10-23  David Lutterkort  <lutter@redhat.com>
33811
33812         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
33813         link requirement
33814
33815 2008-10-23  Jim Meyering  <meyering@redhat.com>
33816
33817         selinux-h: mark parameters of stub functions as intentionally unused
33818         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
33819         * lib/se-context.in.h: Likewise.
33820
33821 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33822
33823         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
33824
33825 2008-10-22  Simon Josefsson  <simon@josefsson.org>
33826
33827         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
33828
33829 2008-10-22  Eric Blake  <ebb9@byu.net>
33830
33831         glthread/thread: avoid compiler warning
33832         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
33833         Add unreachable abort to silence compiler.
33834
33835 2008-10-22  Eric Blake  <ebb9@byu.net>
33836
33837         netdb: also supply struct addrinfo for cygwin 1.5.x
33838         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
33839         older cygwin.
33840         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
33841         cygwin.
33842         * doc/posix-headers/netdb.texi (netdb.h): Document this.
33843
33844 2008-10-22  Bruno Haible  <bruno@clisp.org>
33845
33846         * users.txt: Update entry about pspp.
33847
33848 2008-10-21  Bruno Haible  <bruno@clisp.org>
33849
33850         Simplification.
33851         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
33852         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
33853
33854         Simplification.
33855         * lib/ioctl.c (ioctl): Don't undefine.
33856         * lib/socket.c (socket): Don't undefine.
33857
33858         Remove unused module indicator macros.
33859         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
33860         GNULIB_$1 as a C macro.
33861
33862         * doc/posix-functions/close.texi: Undo last change.
33863         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
33864         Windows platforms.
33865
33866 2008-10-21  Bruno Haible  <bruno@clisp.org>
33867
33868         Add gethostname() declaration to <unistd.h>.
33869         * lib/unistd.in.h (gethostname): New declaration.
33870         * lib/gethostname.c: Include <unistd.h>.
33871         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
33872         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
33873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
33874         and HAVE_GETHOSTNAME.
33875         * modules/gethostname (Depends-on): Add unistd.
33876         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33877         (Include): Specify <unistd.h>.
33878         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
33879         HAVE_GETHOSTNAME.
33880         * tests/test-gethostname.c: Include <unistd.h> first.
33881
33882 2008-10-21  Bruno Haible  <bruno@clisp.org>
33883
33884         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
33885         * modules/select-tests (Depends-on): Likewise.
33886         Reported by Simon Josefsson.
33887
33888 2008-10-21  Simon Josefsson  <simon@josefsson.org>
33889
33890         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
33891         * lib/accept.c: New file, based on winsock.c.
33892         * lib/bind.c: New file, based on winsock.c.
33893         * lib/connect.c: New file, based on winsock.c.
33894         * lib/getpeername.c: New file, based on winsock.c.
33895         * lib/getsockname.c: New file, based on winsock.c.
33896         * lib/getsockopt.c: New file, based on winsock.c.
33897         * lib/ioctl.c: New file, based on winsock.c.
33898         * lib/listen.c: New file, based on winsock.c.
33899         * lib/recv.c: New file, based on winsock.c.
33900         * lib/recvfrom.c: New file, based on winsock.c.
33901         * lib/send.c: New file, based on winsock.c.
33902         * lib/sendto.c: New file, based on winsock.c.
33903         * lib/setsockopt.c: New file, based on winsock.c.
33904         * lib/shutdown.c: New file, based on winsock.c.
33905         * lib/socket.c: New file, based on winsock.c.
33906         * lib/w32sock.h: New file, based on winsock.c.
33907         * lib/winsock.c: Remove file.
33908         * modules/accept: Likewise.
33909         * modules/bind: Likewise.
33910         * modules/connect: Likewise.
33911         * modules/getpeername: Likewise.
33912         * modules/getsockname: Likewise.
33913         * modules/getsockopt: Likewise.
33914         * modules/ioctl: Likewise.
33915         * modules/listen: Likewise.
33916         * modules/recv: Likewise.
33917         * modules/recvfrom: Likewise.
33918         * modules/send: Likewise.
33919         * modules/sendto: Likewise.
33920         * modules/setsockopt: Likewise.
33921         * modules/shutdown: Likewise.
33922         * modules/socket: Use socket.c instead of winsock.c.
33923         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
33924         * doc/posix-functions/accept.texi: Doc fix.
33925         * doc/posix-functions/bind.texi: Doc fix.
33926         * doc/posix-functions/close.texi: Doc fix.
33927         * doc/posix-functions/connect.texi: Doc fix.
33928         * doc/posix-functions/getpeername.texi: Doc fix.
33929         * doc/posix-functions/getsockname.texi: Doc fix.
33930         * doc/posix-functions/getsockopt.texi: Doc fix.
33931         * doc/posix-functions/ioctl.texi: Doc fix.
33932         * doc/posix-functions/listen.texi: Doc fix.
33933         * doc/posix-functions/recv.texi: Doc fix.
33934         * doc/posix-functions/recvfrom.texi: Doc fix.
33935         * doc/posix-functions/send.texi: Doc fix.
33936         * doc/posix-functions/sendto.texi: Doc fix.
33937         * doc/posix-functions/setsockopt.texi: Doc fix.
33938         * doc/posix-functions/shutdown.texi: Doc fix.
33939         * doc/posix-functions/socket.texi: Doc fix.
33940
33941 2008-10-20  Bruno Haible  <bruno@clisp.org>
33942
33943         Take into account the role of SIGABRT_COMPAT on Windows 2008.
33944         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
33945         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
33946         as an alias for SIGABRT.
33947         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
33948         (sigaction): Map it to SIGABRT.
33949         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
33950
33951 2008-10-20  Bruno Haible  <bruno@clisp.org>
33952
33953         * lib/fts.c: Don't include lstat.h.
33954         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
33955
33956         Move the lstat() declaration to <sys/stat.h>.
33957         * lib/lstat.h: Remove file.
33958         * lib/sys_stat.in.h: Add special invocation convention.
33959         (lstat): New declaration.
33960         * lib/lstat.c (orig_lstat): New function.
33961         (rpl_lstat): Use orig_lstat instead of lstat.
33962         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
33963         AC_C_INLINE. Set REPLACE_LSTAT.
33964         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
33965         and REPLACE_LSTAT.
33966         * modules/lstat (Files): Remove lib/lstat.h.
33967         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
33968         (Include): Specify <sys/stat.h> instead of lstat.h.
33969         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
33970         REPLACE_LSTAT.
33971         * NEWS: Mention the change.
33972
33973 2008-10-20  Bruno Haible  <bruno@clisp.org>
33974
33975         * modules/posix_spawn-tests: New file.
33976         * tests/test-posix_spawn3.c: New file.
33977
33978 2008-10-20  Bruno Haible  <bruno@clisp.org>
33979
33980         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
33981         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33982         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
33983         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
33984         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
33985
33986 2008-10-20  Bruno Haible  <bruno@clisp.org>
33987
33988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
33989         of posix_spawn on AIX 5.3.
33990
33991 2008-10-20  Bruno Haible  <bruno@clisp.org>
33992
33993         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
33994
33995 2008-10-20  Bruno Haible  <bruno@clisp.org>
33996
33997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
33998         of AC_LANG_PROGRAM.
33999
34000 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34001
34002         * lib/netdb.in.h: Don't define GNU specific constants until they
34003         are supported or needed.  Reported by Bruno Haible
34004         <bruno@clisp.org>.
34005
34006 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34007
34008         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34009
34010 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34011
34012         * lib/getaddrinfo.h: Remove file.
34013         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34014         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34015         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34016         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34017         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34018         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34019         * tests/test-getaddrinfo.c: Likewise.
34020         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34021         * NEWS: Mention change.
34022
34023 2008-10-19  Bruno Haible  <bruno@clisp.org>
34024
34025         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34026
34027 2008-10-19  Bruno Haible  <bruno@clisp.org>
34028
34029         * lib/wait-process.c: Include simply <sys/wait.h>.
34030         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34031         WIFSTOPPED): Remove fallback definitions.
34032         * modules/wait-process (Depends-on): Add sys_wait.
34033
34034         New module 'sys_wait'.
34035         * modules/sys_wait: New file.
34036         * lib/sys_wait.in.h: New file, partially copied from
34037         lib/wait-process.c.
34038         * m4/sys_wait_h.m4: New file.
34039         * doc/posix-headers/sys_wait.texi: Mention the new module.
34040
34041 2008-10-19  Bruno Haible  <bruno@clisp.org>
34042
34043         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34044
34045 2008-10-19  Bruno Haible  <bruno@clisp.org>
34046
34047         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34048         * lib/wait-process.c (WAIT_T): Remove type.
34049         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34050         (wait_subprocess): Update.
34051
34052 2008-10-19  Bruno Haible  <bruno@clisp.org>
34053
34054         New module 'atoll'.
34055         * modules/atoll: New file.
34056         * lib/stdlib.in.h (atoll): New declaration.
34057         * lib/atoll.c: New file, from glibc with modifications.
34058         * m4/atoll.m4: New file.
34059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34060         HAVE_ATOLL.
34061         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34062         * doc/posix-functions/atoll.texi: Mention the new module.
34063
34064 2008-10-19  Bruno Haible  <bruno@clisp.org>
34065
34066         Add strtoull() declaration to <stdlib.h>.
34067         * lib/stdlib.in.h (strtoull): New declaration.
34068         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34069         Set HAVE_STRTOULL.
34070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34071         HAVE_STRTOULL.
34072         * modules/strtoull (Depends-on): Add stdlib.
34073         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34074         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34075         HAVE_STRTOULL.
34076
34077 2008-10-19  Bruno Haible  <bruno@clisp.org>
34078
34079         Add strtoll() declaration to <stdlib.h>.
34080         * lib/stdlib.in.h (strtoll): New declaration.
34081         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34082         Set HAVE_STRTOLL.
34083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34084         HAVE_STRTOLL.
34085         * modules/strtoll (Depends-on): Add stdlib.
34086         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34087         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34088
34089 2008-10-19  Bruno Haible  <bruno@clisp.org>
34090
34091         * modules/bcopy (Depends-on): Add strings.
34092         (Include): Specify <strings.h>.
34093
34094 2008-10-19  Bruno Haible  <bruno@clisp.org>
34095
34096         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34097
34098 2008-10-19  Bruno Haible  <bruno@clisp.org>
34099
34100         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34101         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34102         mingw.
34103
34104 2008-10-19  Bruno Haible  <bruno@clisp.org>
34105
34106         * lib/atanl.c: Don't include isnanl.h.
34107         * lib/cosl.c: Likewise.
34108         * lib/ldexpl.c: Likewise.
34109         * lib/logl.c: Likewise.
34110         * lib/sinl.c: Likewise.
34111         * lib/sqrtl.c: Likewise.
34112         * lib/tanl.c: Likewise.
34113
34114         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34115         * lib/isnanf.h: Remove file.
34116         * lib/isnand.h: Remove file.
34117         * lib/isnanl.h: Remove file.
34118         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34119         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34120         macros.
34121         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34122         HAVE_ISNANF, don't define it as a C macro.
34123         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34124         HAVE_ISNAND, don't define it as a C macro.
34125         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34126         HAVE_ISNANL, don't define it as a C macro.
34127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34128         HAVE_ISNAN[FDL].
34129         * modules/isnanf (Files): Remove lib/isnanf.h.
34130         (Depends-on): Add math.
34131         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34132         (Include): Specify <math.h> instead of isnanf.h.
34133         * modules/isnand (Files): Remove lib/isnand.h.
34134         (Depends-on): Add math.
34135         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34136         (Include): Specify <math.h> instead of isnand.h.
34137         * modules/isnanl (Files): Remove lib/isnanl.h.
34138         (Depends-on): Add math.
34139         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34140         (Include): Specify <math.h> instead of isnanl.h.
34141         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34142         HAVE_ISNAN[FDL].
34143         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34144         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34145         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34146         * NEWS: Mention the change.
34147
34148 2008-10-18  Bruno Haible  <bruno@clisp.org>
34149
34150         Add getusershell(), setusershell(), endusershell() declarations to
34151         <unistd.h>.
34152         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34153         declarations.
34154         * lib/getusershell.c: Include unistd.h.
34155         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34156         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34157         HAVE_GETUSERSHELL.
34158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34159         and HAVE_GETUSERSHELL.
34160         * modules/getusershell (Depends-on): Add unistd, extensions.
34161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34162         (Include): Specify <unistd.h>.
34163         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34164         HAVE_GETUSERSHELL.
34165
34166 2008-10-18  Bruno Haible  <bruno@clisp.org>
34167
34168         Add a getloadavg() declaration to <stdlib.h>.
34169         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34170         getloadavg declaration.
34171         (getloadavg): New declaration.
34172         * lib/getloadavg.c: Include <stdlib.h> first.
34173         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34174         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34175         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34177         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34178         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34179         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34180         (Include): Specify <stdlib.h>.
34181         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34182         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34183
34184 2008-10-18  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/dirchownmod.c: Don't include lchmod.h.
34187
34188         Move the lchmod() declaration to <sys/stat.h>.
34189         * lib/lchmod.h: Remove file.
34190         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34191         (lchmod): New declaration, moved here from lib/lchown.h.
34192         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34193         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34194         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34195         and HAVE_LCHMOD.
34196         * modules/lchmod (Files): Remove lib/lchmod.h.
34197         (Depends-on): Add sys_stat, extensions.
34198         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34199         (Include): Specify <sys/stat.h> instead of lchmod.h.
34200         * modules/sys_stat (Depends-on): Add link-warning.
34201         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34202         definition of GL_LINK_WARNING.
34203         * NEWS: Mention the change.
34204
34205 2008-10-18  Bruno Haible  <bruno@clisp.org>
34206
34207         * lib/fchdir.c: Don't include dirfd.h.
34208         * lib/fts.c: Likewise.
34209         * lib/getcwd.c: Likewise.
34210         * lib/glob.c: Likewise.
34211
34212         Move the dirfd() declaration to <dirent.h>.
34213         * lib/dirfd.h: Remove file.
34214         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
34215         (dirfd): New declaration.
34216         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
34217         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
34218         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
34219         HAVE_DECL_DIRFD.
34220         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
34221         HAVE_DECL_DIRFD.
34222         * modules/dirfd (Files): Remove lib/dirfd.h.
34223         (Depends-on): Add dirent, extensions.
34224         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
34225         (Include): Specify <dirent.h> instead of dirfd.h.
34226         * modules/dirent (Depends-on): Add link-warning.
34227         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
34228         definition of GL_LINK_WARNING.
34229         * NEWS: Mention the change.
34230
34231 2008-10-18  Bruno Haible  <bruno@clisp.org>
34232
34233         Move the euidaccess() declaration to <unistd.h>.
34234         * lib/euidaccess.h: Remove file.
34235         * lib/unistd.in.h (euidaccess): New declaration.
34236         * lib/euidaccess.c: Don't include euidaccess.h.
34237         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
34238         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
34239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
34240         and HAVE_EUIDACCESS.
34241         * modules/euidaccess (Files): Remove lib/euidaccess.h.
34242         (Depends-on): Add unistd.
34243         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34244         (Include): Specify <unistd.h> instead of euidaccess.h.
34245         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
34246         HAVE_EUIDACCESS.
34247         * NEWS: Mention the change.
34248
34249 2008-10-18  Bruno Haible  <bruno@clisp.org>
34250
34251         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
34252
34253         Move the getdomainname() declaration to <unistd.h>.
34254         * lib/getdomainname.h: Remove file.
34255         * lib/unistd.in.h (getdomainname): New declaration.
34256         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
34257         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
34258         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34259         HAVE_GETDOMAINNAME.
34260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34261         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
34262         * modules/getdomainname (Files): Remove lib/getdomainname.h.
34263         (Depends-on): Add unistd, extensions.
34264         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34265         (Includes): Specify <unistd.h> instead of getdomainname.h.
34266         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
34267         HAVE_GETDOMAINNAME.
34268         * NEWS: Mention the change.
34269
34270 2008-10-18  Bruno Haible  <bruno@clisp.org>
34271
34272         * modules/dirent: New file.
34273         * m4/dirent_h.m4: New file.
34274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
34275         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
34276         * modules/fchdir (Files): Remove lib/dirent.in.h.
34277         (Depends-on): Add dirent.
34278         (Makefile.am): Move rules to modules/dirent.
34279         * doc/posix-headers/dirent.texi: Mention the new module.
34280
34281 2008-10-18  Bruno Haible  <bruno@clisp.org>
34282
34283         Avoid -Wunused-parameter warnings in public gnulib header files.
34284         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
34285         macro.
34286         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
34287
34288 2008-10-18  Bruno Haible  <bruno@clisp.org>
34289
34290         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
34291         * doc/glibc-functions/error.texi: Mention the module 'error'.
34292         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
34293         * doc/glibc-functions/getdomainname.texi: Mention the module
34294         'getdomainname'.
34295         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
34296         * doc/glibc-functions/getpagesize.texi: Mention the module
34297         'getpagesize'.
34298         * doc/glibc-functions/getusershell.texi: Mention the module
34299         'getusershell'.
34300         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
34301         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
34302         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
34303         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
34304         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
34305         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
34306         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
34307         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
34308         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
34309         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
34310         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
34311         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
34312         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
34313         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
34314
34315 2008-10-17  Bruno Haible  <bruno@clisp.org>
34316
34317         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
34318         HP-UX and IRIX, use -0.0L.
34319         * tests/test-ceill.c (minus_zero): Likewise.
34320         * tests/test-floorl.c (minus_zero): Likewise.
34321         * tests/test-frexpl.c (minus_zero): Likewise.
34322         * tests/test-isnan.c (minus_zerol): Likewise.
34323         * tests/test-isnanl.h (minus_zero): Likewise.
34324         * tests/test-ldexpl.c (minus_zero): Likewise.
34325         * tests/test-roundl.c (minus_zero): Likewise.
34326         * tests/test-signbit.c (minus_zerol): Likewise.
34327         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
34328         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
34329         * tests/test-truncl.c (minus_zero): Likewise.
34330         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
34331         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
34332         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
34333         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34334
34335 2008-10-17  Bruno Haible  <bruno@clisp.org>
34336
34337         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
34338         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
34339         that it gets activated only for gcc >= 3.0.
34340         * lib/dirent.in.h: Likewise.
34341         * lib/errno.in.h: Likewise.
34342         * lib/fcntl.in.h: Likewise.
34343         * lib/float.in.h: Likewise.
34344         * lib/iconv.in.h: Likewise.
34345         * lib/inttypes.in.h: Likewise.
34346         * lib/locale.in.h: Likewise.
34347         * lib/math.in.h: Likewise.
34348         * lib/netdb.in.h: Likewise.
34349         * lib/netinet_in.in.h: Likewise.
34350         * lib/search.in.h: Likewise.
34351         * lib/signal.in.h: Likewise.
34352         * lib/spawn.in.h: Likewise.
34353         * lib/stdarg.in.h: Likewise.
34354         * lib/stdint.in.h: Likewise.
34355         * lib/stdio.in.h: Likewise.
34356         * lib/stdlib.in.h: Likewise.
34357         * lib/string.in.h: Likewise.
34358         * lib/strings.in.h: Likewise.
34359         * lib/sys_file.in.h: Likewise.
34360         * lib/sys_ioctl.in.h: Likewise.
34361         * lib/sys_select.in.h: Likewise.
34362         * lib/sys_socket.in.h: Likewise.
34363         * lib/sys_stat.in.h: Likewise.
34364         * lib/sys_time.in.h: Likewise.
34365         * lib/sysexits.in.h: Likewise.
34366         * lib/time.in.h: Likewise.
34367         * lib/unistd.in.h: Likewise.
34368         * lib/wchar.in.h: Likewise.
34369         * lib/wctype.in.h: Likewise.
34370         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34371
34372 2008-10-17  Jim Meyering  <meyering@redhat.com>
34373
34374         ignore-value: don't depend on inline module
34375         * modules/ignore-value (Depends-on): Remove 'inline'.
34376         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
34377         Suggestion from Bruno Haible.
34378
34379 2008-10-17  Bruno Haible  <bruno@clisp.org>
34380
34381         New implementation of condition variables for Win32.
34382         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
34383         (gl_linked_waitqueue_t): New type.
34384         (gl_cond_t): Use it.
34385         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
34386         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
34387         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
34388         (glthread_cond_init_func, glthread_cond_wait_func,
34389         glthread_cond_timedwait_func, glthread_cond_signal_func,
34390         glthread_cond_broadcast_func, glthread_cond_destroy_func):
34391         Reimplemented on the basis of gl_linked_waitqueue_t.
34392         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
34393         gl_waitqueue_t.
34394         (gl_rwlock_t): Update.
34395         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
34396
34397 2008-10-17  Simon Josefsson  <simon@josefsson.org>
34398
34399         * modules/recvfrom (Depends-on): Add dependency on getpeername.
34400         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34401
34402 2008-10-17  Jim Meyering  <meyering@redhat.com>
34403
34404         ignore-value: new module
34405         * modules/ignore-value: New file.
34406         * lib/ignore-value.h: New file.
34407         * MODULES.html.sh (Compiler warning management): New section,
34408         just for this module.  More to come.
34409
34410 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34411
34412         open-safer.c: avoid 'signed and unsigned in conditional...' warning
34413         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
34414         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
34415
34416 2008-10-16  Jim Meyering  <meyering@redhat.com>
34417
34418         openat-die.c: avoid 'no previous prototype' warning
34419         * lib/openat-die.c: Include "openat.h".
34420         Reported by Reuben Thomas <rrt@sc3d.org>.
34421
34422 2008-10-16  Simon Josefsson  <simon@josefsson.org>
34423
34424         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
34425         * lib/netdb.in.h: Fix typo.
34426         Reported by Bruno Haible  <bruno@clisp.org>
34427
34428         * lib/netdb.in.h: Include sys/socket.h for platforms without
34429         netdb.h, to get structures like hostent on MinGW.
34430         * modules/netdb (Depends-on): Add sys_socket.
34431
34432 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34433
34434         * modules/netdb, modules/netdb-tests: New file.
34435         * m4/netdb_h.m4: New file.
34436         * lib/netdb.in.h: Add, currently just an empty file pending
34437         definitions.
34438         * tests/test-netdb.c: New file.
34439         * doc/posix-headers/netdb.texi: Mention that we replace it if
34440         needed.
34441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34442         netdb.
34443
34444 2008-10-15  Simon Josefsson  <simon@josefsson.org>
34445
34446         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
34447         with code.
34448
34449 2008-10-13  Bruno Haible  <bruno@clisp.org>
34450
34451         * lib/glthread/cond.c (glthread_cond_wait_func,
34452         glthread_cond_timedwait_func): Add a comment.
34453
34454 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34455
34456         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
34457         * tests/test-select.c: Likewise,
34458
34459 2008-10-13  Bruno Haible  <bruno@clisp.org>
34460
34461         * lib/glthread/cond.c (glthread_cond_wait_func,
34462         glthread_cond_timedwait_func): Fix variable name.
34463         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
34464
34465 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
34466
34467         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
34468         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
34469         struct sockaddr.sa_len.
34470         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
34471
34472 2008-10-13  Simon Josefsson  <simon@josefsson.org>
34473
34474         * build-aux/pmccabe2html: Add css and css_url parameters.
34475
34476 2008-10-12  Bruno Haible  <bruno@clisp.org>
34477
34478         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
34479         calling aclx_get.
34480         Reported by Rainer Tammer <tammer@tammer.net>.
34481
34482 2008-10-12  Bruno Haible  <bruno@clisp.org>
34483
34484         Use msvcrt aware primitives for creation/termination of Win32 threads.
34485         * lib/glthread/thread.c: Include <process.h>.
34486         (glthread_create_func): Use _beginthreadex instead of CreateThread.
34487         (wrapper_func): Update signature.
34488         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
34489
34490 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34491             Bruno Haible  <bruno@clisp.org>
34492
34493         Provide a Win32 implementation of the 'cond' module.
34494         * lib/glthread/cond.h [USE_WIN32]: New implementation.
34495         * lib/glthread/cond.c (glthread_cond_init_func,
34496         glthread_cond_wait_func, glthread_cond_timedwait_func,
34497         glthread_cond_signal_func, glthread_cond_broadcast_func,
34498         glthread_cond_destroy_func) [USE_WIN32]: New functions.
34499         * modules/cond (Dependencies): Add gettimeofday.
34500
34501 2008-10-11  Bruno Haible  <bruno@clisp.org>
34502
34503         Make sleep work on older versions of mingw.
34504         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
34505         only whether it exists.
34506         * doc/posix-functions/sleep.texi: Mention the problem with older
34507         versions of mingw.
34508
34509 2008-10-11  Bruno Haible  <bruno@clisp.org>
34510
34511         New module 'shutdown'.
34512         * modules/shutdown: New file.
34513         * lib/sys_socket.in.h (shutdown): New declaration.
34514         * lib/winsock.c (shutdown): New function.
34515         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34516         GNULIB_SHUTDOWN.
34517         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
34518         * doc/posix-functions/shutdown.texi: Document the new module.
34519
34520 2008-10-11  Jim Meyering  <meyering@redhat.com>
34521
34522         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
34523
34524 2008-10-11  Bruno Haible  <bruno@clisp.org>
34525
34526         New module 'fclose'.
34527         * modules/fclose: New file.
34528         * lib/stdio.in.h (fclose): New declaration.
34529         * lib/fclose.c: New file.
34530         * m4/fclose.m4: New file.
34531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
34532         REPLACE_FCLOSE.
34533         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
34534         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
34535         REPLACE_FCLOSE.
34536         * modules/close (Depends-on): fclose.
34537         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
34538
34539 2008-10-11  Bruno Haible  <bruno@clisp.org>
34540
34541         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
34542         set errno and don't call _close.
34543
34544 2008-10-10  Bruno Haible  <bruno@clisp.org>
34545
34546         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
34547         ACL, not afterwards. Fixes test failure on Cygwin.
34548
34549 2008-10-09  Ben Pfaff  <blp@gnu.org>
34550
34551         * build-aux/announce-gen: Fix gnulib version related part of usage
34552         message.  Die with a useful error message if no tarballs are
34553         found.
34554
34555 2008-10-10  Jim Meyering  <meyering@redhat.com>
34556
34557         bootstrap: use git's --depth=N option only if it's supported
34558         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
34559         recognize the --depth option.  Reported by Pádraig Brady.
34560
34561 2008-10-09  Bruno Haible  <bruno@clisp.org>
34562
34563         New module 'ioctl'.
34564         * modules/ioctl: New file.
34565         * lib/sys_socket.in.h (ioctl): Remove declaration.
34566         * lib/winsock.c: Include <sys/ioctl.h>.
34567         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
34568         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34569         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
34570         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
34571         * doc/posix-functions/ioctl.texi: Mention the new module.
34572
34573 2008-10-09  Bruno Haible  <bruno@clisp.org>
34574
34575         New module 'sys_ioctl'.
34576         * lib/sys_ioctl.in.h: New file.
34577         * m4/sys_ioctl_h.m4: New file.
34578         * modules/sys_ioctl: New file.
34579         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
34580
34581 2008-10-09  Bruno Haible  <bruno@clisp.org>
34582
34583         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
34584         * lib/winsock.c: Include <stdarg.h>.
34585         (rpl_ioctl): Change to second argument 'int' and then varargs.
34586
34587 2008-10-09  Bruno Haible  <bruno@clisp.org>
34588
34589         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
34590         when the sys_socket module is present and the system has <winsock2.h>.
34591
34592 2008-10-09  Bruno Haible  <bruno@clisp.org>
34593
34594         * doc/posix-functions/close.texi: Mention module 'close' instead of
34595         module 'sys_socket'.
34596
34597 2008-10-09  Bruno Haible  <bruno@clisp.org>
34598
34599         * doc/glibc-headers/sys_ioctl.texi: New file.
34600         * doc/gnulib.texi: Include it.
34601
34602 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34603             Bruno Haible  <bruno@clisp.org>
34604
34605         Combine the two replacements of 'close'.
34606         * lib/sys_socket.in.h (close): Define to a reminder to include
34607         <unistd.h>.
34608         (_gl_close_fd_maybe_socket): New declaration.
34609         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
34610         * lib/winsock.c (close): Remove undefinition.
34611         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
34612         needed for the gnulib module 'close'.
34613         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
34614         define to an error symbol or to a warning, if suitable.
34615         * lib/close.c: Include <sys/socket.h>.
34616         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
34617         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
34618         UNISTD_H_HAVE_WINSOCK2_H.
34619         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
34620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34621         UNISTD_H_HAVE_WINSOCK2_H.
34622         * modules/sys_socket (Files): Add m4/unistd_h.m4.
34623         (configure.ac): Set a module indicator.
34624         (Makefile.am): Substitute GNULIB_CLOSE.
34625         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
34626         * modules/poll-tests (Depends-on): Add close.
34627         * modules/select-tests (Depends-on): Likewise.
34628
34629 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34630             Bruno Haible  <bruno@clisp.org>
34631
34632         New module 'close'.
34633         * modules/close: New file.
34634         * lib/unistd.in.h (close): Move declaration out of the
34635         FCHDIR_REPLACEMENT scope.
34636         (_gl_unregister_fd): New declaration.
34637         * lib/close.c: New file.
34638         * lib/fchdir.c (rpl_close): Remove function.
34639         * m4/close.m4: New file.
34640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34641         close.
34642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
34643         REPLACE_CLOSE.
34644         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
34645         REPLACE_CLOSE.
34646         * modules/fchdir (Depends-on): Add close.
34647
34648 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34649             Bruno Haible  <bruno@clisp.org>
34650
34651         * lib/fcntl.in.h (open): Simplify conditionals.
34652         (_gl_register_fd): New declaration.
34653         * lib/fchdir.c (rpl_open): Remove function.
34654         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
34655         also.
34656         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
34657         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
34658         open.
34659
34660 2008-10-09  Jim Meyering  <meyering@redhat.com>
34661
34662         GNUmakefile: use the more name-space-friendly "_version"
34663         * top/GNUmakefile (_dummy): Update.
34664         (_version): Rename from "version".
34665
34666 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34667             Bruno Haible  <bruno@clisp.org>
34668
34669         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
34670         rpl_close.
34671         (_gl_register_fd): New function, extracted from rpl_open.
34672         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
34673         (rpl_open, rpl_opendir): Use _gl_register_fd.
34674
34675 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
34676
34677         Fix organization of 'open' replacement.
34678         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
34679         (gl_FUNC_OPEN): Use it.
34680         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
34681
34682 2008-10-08  Bruno Haible  <bruno@clisp.org>
34683
34684         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
34685
34686 2008-10-08  Simon Josefsson  <simon@josefsson.org>
34687
34688         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
34689         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
34690         listen).
34691
34692 2008-10-08  Eric Blake  <ebb9@byu.net>
34693
34694         GNUmakefile: add 'make version' target
34695         * top/GNUmakefile (_curr-ver): Split version update rules...
34696         (version): ...into a target.
34697
34698 2008-10-07  Bruno Haible  <bruno@clisp.org>
34699
34700         Use a more portable replacement expression for -0.0L.
34701         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
34702         instead of -0.0L. Fix m4 quotation.
34703
34704         * tests/test-signbit.c: Include <float.h>.
34705         (minus_zero): New variable.
34706         (test_signbitl): Use minus_zero instead of -zero.
34707         * modules/signbit-tests (Depends-on): Add float.
34708
34709         * tests/test-ceill.c: Include <float.h>.
34710         (zero): Remove variable.
34711         (minus_zero): New variable.
34712         (main): Use minus_zero instead of -zero.
34713         * modules/ceill-tests (Depends-on): Add float.
34714
34715         * tests/test-floorl.c: Include <float.h>.
34716         (zero): Remove variable.
34717         (minus_zero): New variable.
34718         (main): Use minus_zero instead of -zero.
34719         * modules/floorl-tests (Depends-on): Add float.
34720
34721         * tests/test-roundl.c: Include <float.h>.
34722         (zero): Remove variable.
34723         (minus_zero): New variable.
34724         (main): Use minus_zero instead of -zero.
34725         * modules/roundl-tests (Depends-on): Add float.
34726
34727         * tests/test-truncl.c: Include <float.h>.
34728         (zero): Remove variable.
34729         (minus_zero): New variable.
34730         (main): Use minus_zero instead of -zero.
34731         * modules/truncl-tests (Depends-on): Add float.
34732
34733         * tests/test-frexpl.c (zero): Remove variable.
34734         (minus_zero): New variable.
34735         (main): Use minus_zero instead of -zero.
34736         * modules/frexpl-tests (Depends-on): Add float.
34737
34738         * tests/test-isnan.c (zerol): Remove variable.
34739         (minus_zerol): New variable.
34740         (test_long_double): Use minus_zerol instead of -zerol.
34741         * modules/isnan-tests (Depends-on): Add float.
34742
34743         * tests/test-isnanl.h (zero): Remove variable.
34744         (minus_zero): New variable.
34745         (main): Use minus_zero instead of -zero.
34746         * modules/isnanl-nolibm-tests (Depends-on): Add float.
34747         * modules/isnanl-tests (Depends-on): Add float.
34748
34749         * tests/test-ldexpl.c (zero): Remove variable.
34750         (minus_zero): New variable.
34751         (main): Use minus_zero instead of -zero.
34752         * modules/ldexpl-tests (Depends-on): Add float.
34753
34754         * tests/test-snprintf-posix.h (zerol): Remove variable.
34755         (minus_zerol): New variable.
34756         (test_function): Use minus_zerol instead of -zerol.
34757         * modules/snprintf-posix-tests (Depends-on): Add float.
34758         * modules/vsnprintf-posix-tests (Depends-on): Add float.
34759
34760         * tests/test-sprintf-posix.h (zerol): Remove variable.
34761         (minus_zerol): New variable.
34762         (test_function): Use minus_zerol instead of -zerol.
34763         * modules/sprintf-posix-tests (Depends-on): Add float.
34764         * modules/vsprintf-posix-tests (Depends-on): Add float.
34765
34766         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
34767         (minus_zerol): New variable.
34768         (test_function): Use minus_zerol instead of -zerol.
34769         * modules/vasnprintf-posix-tests (Depends-on): Add float.
34770
34771         * tests/test-vasprintf-posix.c (zerol): Remove variable.
34772         (minus_zerol): New variable.
34773         (test_function): Use minus_zerol instead of -zerol.
34774         * modules/vasprintf-posix-tests (Depends-on): Add float.
34775
34776 2008-10-07  Simon Josefsson  <simon@josefsson.org>
34777
34778         * MODULES.html.sh (Support for building documentation): Mention
34779         pmccabe2html.  Sort entries.
34780
34781         Add pmccabe2html module, from gnupdf.
34782         * build-aux/pmccabe.css: New file.
34783         * build-aux/pmccabe2html: New file.
34784         * m4/pmccabe2html.m4: New file.
34785         * modules/pmccabe2html: New file.
34786
34787 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
34788
34789         flock: new module
34790         * MODULES.html.sh: Add to list of modules.
34791         * lib/flock.c: flock implementation for Windows and Unix systems
34792         which have fcntl.
34793         * doc/glibc-functions/flock.texi: Update documentation.
34794         * lib/sys_file.in.h: <sys/file.h> header file.
34795         * m4/flock.m4: M4 macros.
34796         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
34797         * modules/flock: flock module.
34798         * modules/flock-tests: flock tests module.
34799         * modules/sys_file: sys/file.h module.
34800         * tests/test-flock.c: test suite for flock.
34801
34802 2008-10-06  Jim Meyering  <meyering@redhat.com>
34803
34804         bootstrap: check for LT_INIT more portably still ;-)
34805         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
34806         Spotted by Bruno Haible.
34807
34808 2008-10-06  Eric Blake  <ebb9@byu.net>
34809
34810         test-signbit: avoid tripping Irix cc bug on -0.0L
34811         * tests/test-signbit.c (minus_zerol): Delete, and replace with
34812         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
34813         entire testsuite consistent and avoids an Irix 6.2 bug.
34814
34815 2008-10-05  Bruno Haible  <bruno@clisp.org>
34816             Jim Meyering  <jim@meyering.net>
34817
34818         Add an option for ignoring EPIPE during close_stdout.
34819         * lib/closeout.h: Include <stdbool.h>.
34820         (close_stdout_set_ignore_EPIPE): New declaration.
34821         * lib/closeout.c: Include <stdbool.h>.
34822         (ignore_EPIPE): New variable.
34823         (close_stdout_set_ignore_EPIPE): New function.
34824         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
34825         * lib/close-stream.c (close_stream): Mention the possible EPIPE
34826         failure.
34827         * modules/closeout (Depends-on): Add stdbool.
34828
34829 2008-10-05  Bruno Haible  <bruno@clisp.org>
34830
34831         * modules/accept: New file.
34832         * modules/bind: New file.
34833         * modules/connect: New file.
34834         * modules/getpeername: New file.
34835         * modules/getsockname: New file.
34836         * modules/getsockopt: New file.
34837         * modules/listen: New file.
34838         * modules/recv: New file.
34839         * modules/recvfrom: New file.
34840         * modules/send: New file.
34841         * modules/sendto: New file.
34842         * modules/setsockopt: New file.
34843         * modules/socket: New file.
34844         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
34845         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34846         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
34847         the particular module is requested. Add a link warning when the
34848         particular module is not requested.
34849         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
34850         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
34851         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
34852         the particular module is requested.
34853         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
34854         gl_SYS_SOCKET_H_DEFAULTS): New macros.
34855         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
34856         * modules/sys_socket (Depends-on): Add link-warning.
34857         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
34858         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
34859         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
34860         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
34861         GL_LINK_WARNING.
34862         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
34863         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
34864         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
34865         * doc/posix-functions/getpeername.texi: Mention the new module
34866         'getpeername'.
34867         * doc/posix-functions/getsockname.texi: Mention the new module
34868         'getsockname'.
34869         * doc/posix-functions/getsockopt.texi: Mention the new module
34870         'getsockopt'.
34871         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
34872         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
34873         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
34874         * doc/posix-functions/send.texi: Mention the new module 'send'.
34875         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
34876         * doc/posix-functions/setsockopt.texi: Mention the new module
34877         'setsockopt'.
34878         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
34879         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
34880         listen, connect, accept.
34881         * modules/select-tests (Depends-on): Likewise.
34882
34883 2008-10-05  Bruno Haible  <bruno@clisp.org>
34884
34885         * lib/winsock.c (strerror): Remove unused #undef.
34886         (rpl_close): Remove unused local variable.
34887
34888         * modules/sys_socket (Depends-on); Add errno.
34889
34890 2008-10-05  Bruno Haible  <bruno@clisp.org>
34891
34892         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
34893         (select): Add a link warning when the 'select' module is not used.
34894         * modules/sys_select (Depends-on): Add link-warning.
34895         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
34896         Suggested by Paolo Bonzini.
34897
34898 2008-10-05  Jim Meyering  <meyering@redhat.com>
34899
34900         bootstrap: check for LT_INIT more portably
34901         * build-aux/bootstrap: Avoid using grep -E, since it's not
34902         portable enough.  Suggestion from Bruno Haible.
34903
34904 2008-10-05  Bruno Haible  <bruno@clisp.org>
34905
34906         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
34907         as being fixed by gnulib.
34908
34909 2008-10-05  Bruno Haible  <bruno@clisp.org>
34910
34911         * modules/select-tests: New file, mostly copied from
34912         modules/sys_select-tests.
34913         * tests/test-select.c: New file, mostly copied from
34914         tests/test-sys_select.c.
34915         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
34916         * modules/sys_select-tests (Depends-on): Remove all dependencies.
34917         (Makefile.am): Remove test_sys_select_LDADD.
34918
34919         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
34920         to an undefined symbol, for an error message.
34921         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
34922         (gl_SYS_SELECT_H_DEFAULTS): New macro.
34923         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
34924         winsock-select.c here.
34925         * modules/sys_select (Files): Remove lib/winsock-select.c.
34926         (Depends-on): Remove alloca.
34927         (Makefile.am): Substitute GNULIB_SELECT.
34928         * modules/select: New file.
34929         * doc/posix-functions/select.texi: Update.
34930
34931 2008-10-05  Bruno Haible  <bruno@clisp.org>
34932
34933         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
34934         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
34935         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
34936         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
34937         getdtablesize.
34938         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34939         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34940
34941 2008-10-05  Bruno Haible  <bruno@clisp.org>
34942
34943         * modules/getdtablesize-tests: New file.
34944         * tests/test-getdtablesize.c: New file.
34945
34946         New module 'getdtablesize'.
34947         * lib/unistd.in.h (getdtablesize): New declaration.
34948         * lib/getdtablesize.c: New file.
34949         * m4/getdtablesize.m4: New file.
34950         * modules/getdtablesize: New file.
34951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34952         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
34953         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
34954         HAVE_GETDTABLESIZE.
34955         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
34956
34957 2008-10-05  Bruno Haible  <bruno@clisp.org>
34958
34959         * modules/sched (Makefile.am): Fix typo.
34960         Reported by Simon Josefsson.
34961
34962 2008-10-05  Jim Meyering  <meyering@redhat.com>
34963
34964         bootstrap: check for LT_INIT, too
34965         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
34966         are deprecated.  Suggestion from Ralf Wildenhues.
34967
34968 2008-10-05  Bruno Haible  <bruno@clisp.org>
34969
34970         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
34971         overriding them by ours.
34972         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
34973
34974 2008-10-05  Jim Meyering  <meyering@redhat.com>
34975
34976         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
34977         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
34978         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
34979
34980 2008-10-04  Bruno Haible  <bruno@clisp.org>
34981
34982         * modules/dup2 (License): Change to LGPLv2+.
34983         * modules/sleep (License): Likewise.
34984         * modules/perror (License): Likewise.
34985         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
34986         Blake.
34987         * modules/signal (License): Likewise.
34988         * modules/sigprocmask (License): Likewise.
34989         * modules/raise (License): Change to LGPLv2+, with approval by Jim
34990         Meyering.
34991
34992 2008-10-04  Bruno Haible  <bruno@clisp.org>
34993
34994         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
34995         Reported by Rainer Tammer <tammer@tammer.net>.
34996
34997 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
34998             Bruno Haible  <bruno@clisp.org>
34999
35000         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35001         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35002         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35003
35004 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35005
35006         filevercmp: new module
35007         * lib/filevercmp.h: New function filevercmp comparing version strings.
35008         * lib/filevercmp.c: Implementation of filevercmp function.
35009         * modules/filevercmp: Module metadata.
35010         * tests/test-filevercmp.c: Unit test for new module.
35011         * modules/filevercmp-tests: Unit test metadata.
35012         * MODULES.html.sh: Add filevercmp module.
35013
35014 2008-10-03  Bruno Haible  <bruno@clisp.org>
35015
35016         * lib/c-ctype.h: Add comment.
35017         Reported by Jim Meyering.
35018
35019 2008-10-02  Bruno Haible  <bruno@clisp.org>
35020
35021         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35022
35023 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35024
35025         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35026         name of bootstrap.conf accordingly.
35027
35028 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35029
35030         * build-aux/bootstrap: Install git-merge-changelog configuration
35031         items into .gitconfig if needed.
35032
35033 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35034
35035         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35036         git repository, and initialize/update it accordingly.
35037
35038 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35039
35040         * modules/fsync-tests: New file.
35041         * tests/test-fsync.c: New file.
35042
35043         New module 'fsync'.
35044         * lib/fsync.c: New file.
35045         * m4/fsync.m4: New file.
35046         * modules/fsync: New file.
35047         * lib/unistd.in.h (fsync): New declaration.
35048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35049         GNULIB_FSYNC and HAVE_FSYNC.
35050         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35051         * MODULES.html.sh (posix_functions): Add fsync.
35052         * doc/posix-functions/fsync.texi: Mention the new module.
35053
35054 2008-10-02  Jim Meyering  <meyering@redhat.com>
35055
35056         fts.c: sync with similar code from coreutils' remove.c
35057         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35058         Guard also with "#if defined __linux__", since for now at least,
35059         this code is Linux-kernel-specific.
35060
35061 2008-10-02  Jim Meyering  <meyering@redhat.com>
35062
35063         fts: bug fixes
35064         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35065         Include <sys/vfs.h>, not <sys/statfs.h>.
35066
35067         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35068         Include <sys/vfs.h>, not <sys/statfs.h>.
35069
35070 2008-10-01  Bruno Haible  <bruno@clisp.org>
35071
35072         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35073         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35074         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35075         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35076         * doc/posix-functions/posix_spawnp.texi: Likewise.
35077         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35078         whether posix_spawn actually works.
35079         * m4/pipe.m4 (gl_PIPE): Likewise.
35080         * modules/execute (Files): Add m4/posix_spawn.m4.
35081         * modules/pipe (Files): Add m4/posix_spawn.m4.
35082         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35083
35084 2008-10-01  Jim Meyering  <meyering@redhat.com>
35085
35086         remove trailing spaces
35087         * NEWS: Likewise.
35088         * lib/poll.c (poll): Likewise.
35089         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35090         * lib/winsock.c (rpl_close): Likewise.
35091         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35092         * modules/yield: Likewise.
35093         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35094         * tests/test-sys_select.c (connect_to_socket): Likewise.
35095
35096         fts.c: adjust a new interface to be more generally useful
35097         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35098         (fts_build): Adjust caller.
35099
35100 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35101
35102         * modules/cond-tests: New file.
35103         * tests/test-cond.c: New file.
35104
35105 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35106             Bruno Haible  <bruno@clisp.org>
35107
35108         * modules/cond (Dependencies): Add errno, time.
35109         * lib/glthread/cond.h: Include <time.h>.
35110         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35111         across platforms.
35112
35113 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35114             Bruno Haible  <bruno@clisp.org>
35115
35116         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35117
35118 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35119             Bruno Haible  <bruno@clisp.org>
35120
35121         * modules/tls-tests (Depends-on): Add thread, yield.
35122         (configure.ac): Remove all checks.
35123         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35124         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35125         gl_thread_self): Remove definitions. Include glthread/thread.h and
35126         glthread/yield.h instead.
35127         (test_tls): Pass an additional NULL argument to gl_thread_join.
35128
35129 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35130             Bruno Haible  <bruno@clisp.org>
35131
35132         * modules/lock-tests (Depends-on): Add thread, yield.
35133         (configure.ac): Remove all checks.
35134         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35135         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35136         gl_thread_self): Remove definitions. Include glthread/thread.h and
35137         glthread/yield.h instead.
35138         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35139         additional NULL argument to gl_thread_join.
35140
35141 2008-09-30  Bruno Haible  <bruno@clisp.org>
35142
35143         Fix the Win32 implementation of the 'thread' module.
35144         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35145         pointer type.
35146         (gl_thread_self): Invoke gl_thread_self_func.
35147         (gl_thread_self_func): New declaration.
35148         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35149         (do_init_self_key, init_self_key): New functions.
35150         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35151         Remove some fields.
35152         (running_threads, running_lock): Remove variables.
35153         (get_current_thread_handle): New function.
35154         (gl_thread_self_func, wrapper_func, glthread_create_func,
35155         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35156         simplified.
35157
35158 2008-09-30  Bruno Haible  <bruno@clisp.org>
35159
35160         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35161         files.
35162
35163 2008-09-30  Jim Meyering  <meyering@redhat.com>
35164
35165         fts.m4: correct the test for statfs.f_type
35166         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35167         when checking for statfs.f_type.
35168
35169 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35170
35171         tests: avoid some compiler warnings
35172         * tests/test-memchr.c (main): Pass NULL indirectly.
35173         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35174
35175 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
35176
35177         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35178         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35179         exactly specified dayshifts.
35180         (dayshift): New rule.
35181         (rel): Add dayshift.
35182         (relative_time_table) [tomorrow, yesterday, today, now]:
35183         Use tDAY_SHIFT in place of tDAY_UNIT.
35184         * tests/test-getdate.c: Add tests for now-disallowed countable
35185         dayshifts, e.g., "4 yesterday ago".
35186
35187 2008-09-29  Bruno Haible  <bruno@clisp.org>
35188
35189         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35190         * tests/test-posix_spawn1.in.sh: Renamed from
35191         tests/test-posix_spawn.in.sh.
35192         * tests/test-posix_spawn2.c: New file.
35193         * tests/test-posix_spawn2.in.sh: New file.
35194         * modules/posix_spawnp-tests (Files): Update.
35195         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35196
35197 2008-09-29  Bruno Haible  <bruno@clisp.org>
35198
35199         Propagate effects of putenv/setenv/unsetenv to child processes.
35200         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35201         * lib/pipe.c (create_pipe): Likewise.
35202
35203 2008-09-29  Bruno Haible  <bruno@clisp.org>
35204
35205         Enable use of shell scripts as executables in mingw.
35206         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
35207         run the program as a shell script.
35208         * lib/pipe.c (create_pipe): Likewise.
35209         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
35210         resulting array.
35211
35212 2008-09-29  Eric Blake  <ebb9@byu.net>
35213
35214         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
35215
35216 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
35217
35218         * doc/posix-functions/accept.texi: Update mingw problems.
35219         * doc/posix-functions/bind.texi: Update mingw problems.
35220         * doc/posix-functions/close.texi: Update mingw problems.
35221         * doc/posix-functions/connect.texi: Update mingw problems.
35222         * doc/posix-functions/getpeername.texi: Update mingw problems.
35223         * doc/posix-functions/getsockname.texi: Update mingw problems.
35224         * doc/posix-functions/getsockopt.texi: Update mingw problems.
35225         * doc/posix-functions/ioctl.texi: Update mingw problems.
35226         * doc/posix-functions/listen.texi: Update mingw problems.
35227         * doc/posix-functions/recv.texi: Update mingw problems.
35228         * doc/posix-functions/recvfrom.texi: Update mingw problems.
35229         * doc/posix-functions/select.texi: Update mingw problems.
35230         * doc/posix-functions/send.texi: Update mingw problems.
35231         * doc/posix-functions/sendto.texi: Update mingw problems.
35232         * doc/posix-functions/setsockopt.texi: Update mingw problems.
35233         * doc/posix-functions/socket.texi: Update mingw problems.
35234
35235 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
35236             Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/sys_select.in.h: Include sys/time.h.
35239         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
35240         * modules/sys_select: Depend on sys_time.
35241         * tests/test-sys_select.c: Test that sys/select.h defines struct
35242         timeval fully.
35243
35244 2008-09-29  Bruno Haible  <bruno@clisp.org>
35245
35246         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
35247         * lib/sys_select.in.h: Likewise.
35248
35249 2008-09-29  Bruno Haible  <bruno@clisp.org>
35250
35251         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
35252
35253 2008-09-29  Bruno Haible  <bruno@clisp.org>
35254
35255         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
35256         Set LIBSOCKET instead of augmenting LIBS.
35257         * modules/sockets (Link): New section.
35258         * modules/sockets-tests (test_sockets_LDADD): New variable.
35259         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
35260         * modules/poll-tests (test_poll_LDADD): New variable.
35261         * NEWS: Document the change.
35262
35263 2008-09-29  Bruno Haible  <bruno@clisp.org>
35264
35265         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
35266         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
35267         ARPA_INET_H directly.
35268         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35269
35270 2008-09-28  Bruno Haible  <bruno@clisp.org>
35271
35272         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
35273         from gl_HEADER_SYS_SOCKET.
35274         (gl_HEADER_SYS_SOCKET): Invoke it.
35275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35276
35277 2008-09-28  Bruno Haible  <bruno@clisp.org>
35278
35279         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
35280         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
35281         Needed on OSF/1 4.0.
35282
35283 2008-09-28  Bruno Haible  <bruno@clisp.org>
35284
35285         Override open more carefully.
35286         * lib/open.c (orig_open): New function.
35287         (rpl_open): Use orig_open instead of open.
35288         * lib/fcntl.in.h: Add special invocation convention.
35289         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
35290         (gl_FUNC_OPEN): Invoke it.
35291
35292         Override freopen more carefully.
35293         * lib/freopen.c (orig_freopen): New function.
35294         (rpl_freopen): Use orig_freopen instead of freopen.
35295         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
35296         (gl_FUNC_FREOPEN): Invoke it.
35297
35298         Override fopen more carefully.
35299         * lib/fopen.c (orig_fopen): New function.
35300         (rpl_fopen): Use orig_fopen instead of fopen.
35301         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
35302         (gl_FUNC_FOPEN): Invoke it.
35303         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
35304
35305 2008-09-28  Bruno Haible  <bruno@clisp.org>
35306
35307         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
35308         SIGPIPE.
35309
35310 2008-09-28  Bruno Haible  <bruno@clisp.org>
35311
35312         * tests/test-sigaction.c (handler, main): Disable the check whether
35313         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
35314         glibc systems with LinuxThreads.
35315
35316 2008-09-28  Bruno Haible  <bruno@clisp.org>
35317
35318         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
35319
35320         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
35321         with AIX xlc.
35322         * lib/fcntl.in.h (open): Likewise.
35323         Reported by Rainer Tammer <tammer@tammer.net>.
35324
35325 2008-09-28  Bruno Haible  <bruno@clisp.org>
35326
35327         * modules/posix_spawnp-tests: New file.
35328         * tests/test-posix_spawn.c: New file.
35329         * tests/test-posix_spawn.in.sh: New file.
35330
35331         New module 'posix_spawnp'.
35332         * modules/posix_spawnp: New file.
35333         * lib/spawnp.c: New file, from GNU libc with modifications.
35334         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
35335
35336         New module 'posix_spawn'.
35337         * modules/posix_spawn: New file.
35338         * lib/spawn.c: New file, from GNU libc with modifications.
35339         * doc/posix-functions/posix_spawn.texi: Mention the new module.
35340
35341         New module 'posix_spawnattr_destroy'.
35342         * modules/posix_spawnattr_destroy: New file.
35343         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
35344         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
35345         module.
35346
35347         New module 'posix_spawnattr_setsigmask'.
35348         * modules/posix_spawnattr_setsigmask: New file.
35349         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
35350         modifications.
35351         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
35352         new module.
35353
35354         New module 'posix_spawnattr_getsigmask'.
35355         * modules/posix_spawnattr_getsigmask: New file.
35356         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
35357         modifications.
35358         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
35359         new module.
35360
35361         New module 'posix_spawnattr_setsigdefault'.
35362         * modules/posix_spawnattr_setsigdefault: New file.
35363         * lib/spawnattr_setdefault.c: New file, from GNU libc with
35364         modifications.
35365         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
35366         new module.
35367
35368         New module 'posix_spawnattr_getsigdefault'.
35369         * modules/posix_spawnattr_getsigdefault: New file.
35370         * lib/spawnattr_getdefault.c: New file, from GNU libc with
35371         modifications.
35372         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
35373         new module.
35374
35375         New module 'posix_spawnattr_setschedpolicy'.
35376         * modules/posix_spawnattr_setschedpolicy: New file.
35377         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
35378         modifications.
35379         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
35380         new module.
35381
35382         New module 'posix_spawnattr_getschedpolicy'.
35383         * modules/posix_spawnattr_getschedpolicy: New file.
35384         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
35385         modifications.
35386         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
35387         new module.
35388
35389         New module 'posix_spawnattr_setschedparam'.
35390         * modules/posix_spawnattr_setschedparam: New file.
35391         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
35392         modifications.
35393         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
35394         new module.
35395
35396         New module 'posix_spawnattr_getschedparam'.
35397         * modules/posix_spawnattr_getschedparam: New file.
35398         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
35399         modifications.
35400         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
35401         new module.
35402
35403         New module 'posix_spawnattr_setpgroup'.
35404         * modules/posix_spawnattr_setpgroup: New file.
35405         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
35406         modifications.
35407         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
35408         module.
35409
35410         New module 'posix_spawnattr_getpgroup'.
35411         * modules/posix_spawnattr_getpgroup: New file.
35412         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
35413         modifications.
35414         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
35415         module.
35416
35417         New module 'posix_spawnattr_setflags'.
35418         * modules/posix_spawnattr_setflags: New file.
35419         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
35420         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
35421         module.
35422
35423         New module 'posix_spawnattr_getflags'.
35424         * modules/posix_spawnattr_getflags: New file.
35425         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
35426         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
35427         module.
35428
35429         New module 'posix_spawnattr_init'.
35430         * modules/posix_spawnattr_init: New file.
35431         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
35432         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
35433         module.
35434
35435         New module 'posix_spawn_file_actions_destroy'.
35436         * modules/posix_spawn_file_actions_destroy: New file.
35437         * lib/spawn_faction_destroy.c: New file, from GNU libc with
35438         modifications.
35439         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
35440         the new module.
35441
35442         New module 'posix_spawn_file_actions_addopen'.
35443         * modules/posix_spawn_file_actions_addopen: New file.
35444         * lib/spawn_faction_addopen.c: New file, from GNU libc with
35445         modifications.
35446         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
35447         the new module.
35448
35449         New module 'posix_spawn_file_actions_adddup2'.
35450         * modules/posix_spawn_file_actions_adddup2: New file.
35451         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
35452         modifications.
35453         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
35454         the new module.
35455
35456         New module 'posix_spawn_file_actions_addclose'.
35457         * modules/posix_spawn_file_actions_addclose: New file.
35458         * lib/spawn_faction_addclose.c: New file, from GNU libc with
35459         modifications.
35460         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
35461         the new module.
35462
35463         New module 'posix_spawn_file_actions_init'.
35464         * modules/posix_spawn_file_actions_init: New file.
35465         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
35466         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
35467         new module.
35468
35469         New module 'posix_spawn-internal'.
35470         * modules/posix_spawn-internal: New file.
35471         * lib/spawn_int.h: New file, from GNU libc with modifications.
35472         * lib/spawni.c: New file, from GNU libc with modifications.
35473         * m4/posix_spawn.m4: New file.
35474
35475         New module 'spawn'.
35476         * modules/spawn: New file.
35477         * lib/spawn.in.h: New file, from GNU libc with modifications.
35478         * m4/spawn_h.m4: New file.
35479         * doc/posix-headers/spawn.texi: Mention the new module.
35480
35481 2008-09-28  Bruno Haible  <bruno@clisp.org>
35482
35483         * modules/sched-tests: New file.
35484         * tests/test-sched.c: New file.
35485
35486         New module 'sched'.
35487         * modules/sched: New file.
35488         * lib/sched.in.h: New file.
35489         * m4/sched_h.m4: New file.
35490         * doc/posix-headers/sched.texi: Mention the new module.
35491
35492 2008-09-27  Eric Blake  <ebb9@byu.net>
35493
35494         Fix previous patch, and tweak references to $0.
35495         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
35496         (func_version, func_gnulib_dir): Don't call this program
35497         gnulib-tool.
35498         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
35499         with using $0 in function.
35500         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
35501         (func_fatal_error): Reuse the name the user invoked us with.
35502
35503 2008-09-27  Bruno Haible  <bruno@clisp.org>
35504
35505         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
35506         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
35507         (gl_ICONV_H): Not here.
35508         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35509         instead of assigning ICONV_H directly.
35510
35511         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
35512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
35513         WCHAR_H directly.
35514
35515 2008-09-27  Bruno Haible  <bruno@clisp.org>
35516
35517         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
35518         * modules/arpa_inet (Depends-on): Add link-warning.
35519         (Makefile.am): Insert the definition of GL_LINK-WARNING.
35520         * modules/unistd (Makefile.am): Likewise.
35521
35522 2008-09-26  Bruno Haible  <bruno@clisp.org>
35523
35524         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
35525         variables.
35526         (func_version): Essentially copied from gnulib-tool.
35527         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
35528         func_readlink): Copied from gnulib-tool.
35529
35530 2008-09-26  Bruno Haible  <bruno@clisp.org>
35531
35532         * gnulib-tool (func_version): Change directory to $gnulib_dir before
35533         invoking git-version-gen.
35534
35535 2008-09-26  Bruno Haible  <bruno@clisp.org>
35536
35537         * posix-modules: Update to directory names changed on 2008-01-19.
35538         Remove commas in output before splitting into words. No more need to
35539         avoid 'ftruncate' since 2007-02-19.
35540
35541 2008-09-26  Bruno Haible  <bruno@clisp.org>
35542
35543         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
35544
35545 2008-09-26  Bruno Haible  <bruno@clisp.org>
35546
35547         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
35548         * modules/fwriteerror (Depends-on): Add errno.
35549
35550 2008-09-26  Bruno Haible  <bruno@clisp.org>
35551
35552         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
35553         * tests/test-vc-list-files-cvs.sh: Likewise.
35554
35555 2008-09-26  Bruno Haible  <bruno@clisp.org>
35556
35557         * doc/posix-headers/sys_resource.texi: Reorder items.
35558
35559 2008-09-26  Jim Meyering  <meyering@redhat.com>
35560
35561         fts: tweak inode comparison function
35562         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
35563         inode numbers, as documented.
35564
35565         fts: sort dirent entries on inode number before traversing
35566         This avoids a quadratic, seek-related performance penalty when
35567         operating on a directory containing many entries (measurable at 10k;
35568         3.5 hours at 2 million entries with a cold cache) on certain types
35569         of file systems, including ext3 and ext4, but not tmpfs.
35570         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
35571         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
35572         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
35573         (fs_handles_readdir_ordered_dirents_efficiently): New function.
35574         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
35575         (fts_build): Set the stat.st_ino member from D_INO.
35576         If it is likely to be useful, sort dirent entries on inode number.
35577
35578         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
35579         and the struct statfs.f_type member.
35580         * modules/fts (Depends-on): Add d-ino.
35581
35582 2008-09-26  Bruno Haible  <bruno@clisp.org>
35583
35584         * modules/sigpipe-die (Depends-on): Add sigpipe.
35585
35586         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
35587         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
35588         and GNULIB_STDIO_H_SIGPIPE are set.
35589         * lib/stdio-write.c: New file.
35590         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
35591         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35592         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35593         REPLACE_STDIO_WRITE_FUNCS.
35594         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
35595         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35596         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35597         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35598         * modules/stdio (Files): Add lib/stdio-write.c.
35599         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
35600         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
35601         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
35602         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
35603         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
35604         REPLACE_FPRINTF_POSIX.
35605         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
35606         REPLACE_PRINTF_POSIX.
35607         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
35608         REPLACE_VFPRINTF_POSIX.
35609         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
35610         REPLACE_VPRINTF_POSIX.
35611         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
35612         SIGPIPE issue.
35613         * doc/posix-functions/fputc.texi: Likewise.
35614         * doc/posix-functions/fputs.texi: Likewise.
35615         * doc/posix-functions/fwrite.texi: Likewise.
35616         * doc/posix-functions/printf.texi: Likewise.
35617         * doc/posix-functions/putc.texi: Likewise.
35618         * doc/posix-functions/putchar.texi: Likewise.
35619         * doc/posix-functions/puts.texi: Likewise.
35620         * doc/posix-functions/vfprintf.texi: Likewise.
35621         * doc/posix-functions/vprintf.texi: Likewise.
35622
35623         * modules/safe-write (Depends-on): Add write.
35624
35625         * modules/sigpipe-tests: New file.
35626         * tests/test-sigpipe.c: New file.
35627         * tests/test-sigpipe.sh: New file.
35628
35629         * modules/write: New file.
35630         * lib/unistd.in.h: Include <sys/types.h>.
35631         (write): New declaration.
35632         * lib/write.c: New file.
35633         * m4/write.m4: New file.
35634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35635         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
35636         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
35637         GNULIB_WRITE, REPLACE_WRITE.
35638         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
35639         and the SIGPIPE issue.
35640
35641         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
35642         (raise): New declaration.
35643         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
35644         (ext_signal): New function.
35645         (rpl_raise): New function.
35646         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35647         GNULIB_SIGNAL_H_SIGPIPE.
35648         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
35649         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
35650
35651         * modules/sigpipe: New file.
35652         * m4/sigpipe.m4: New file.
35653
35654 2008-09-25  Derek Price  <derek@ximbiot.com>
35655             Bruno Haible  <bruno@clisp.org>
35656
35657         * gnulib-tool (func_import): Report all license incompatibilities, not
35658         just the first one.
35659
35660 2008-09-25  Bruno Haible  <bruno@clisp.org>
35661
35662         * gnulib-tool (func_import): When computing the edits, consider not
35663         only the Makefile.ams that exist but also those that will be generated.
35664
35665 2008-09-25  Simon Josefsson  <simon@josefsson.org>
35666
35667         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
35668         fixes gnulib-tool --test warning about duplicate dependency.
35669
35670 2008-09-25  Bruno Haible  <bruno@clisp.org>
35671
35672         * gnulib-tool: Don't ask the user to perform edits in the generated
35673         Makefile.ams.
35674         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
35675         apply to the Makefile.am being generated.
35676         (func_emit_tests_Makefile_am): Execute edits that apply to the
35677         Makefile.am being generated.
35678         (func_import): Setup list of Makefile.am edits before emitting the
35679         Makefile.ams, not at the end.
35680         (func_create_testdir): Update.
35681         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35682
35683 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35684
35685         * gnulib-tool (func_import): Store the --tests-base option in the
35686         comment in gnulib-cache.m4.
35687
35688 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
35689
35690         * NEWS: Document increased portability that sys_select now provides.
35691
35692         * lib/sys_select.in.h: Install select wrapper.
35693         * lib/sys_socket.in.h: Use more descriptive name when there is no
35694         select wrapper.
35695         * lib/winsock-select.c: New.
35696         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
35697         Require gl_HEADER_SYS_SOCKET.
35698         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
35699         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
35700         * tests/test-sys_select.c: Add functional tests.
35701
35702 2008-09-24  Eric Blake  <ebb9@byu.net>
35703
35704         open, fopen: close fd leak in last patch
35705         * lib/open.c (rpl_open): Close fd before returning error.
35706         * lib/fopen.c (rpl_fopen): Close fd before returning error.
35707         * doc/posix-functions/open.texi (open): Document that Irix also
35708         has the bug.
35709         * doc/posix-functions/fopen.texi (fopen): Likewise.
35710         Reported by Paolo Bonzini.
35711
35712 2008-09-24  Bruno Haible  <bruno@clisp.org>
35713
35714         Ensure that a filename ending in a slash cannot be used to access a
35715         non-directory.
35716         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
35717         to check whether it's really a directory.
35718         * lib/fopen.c: Include fcntl.h, unistd.h.
35719         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
35720         and fdopen().
35721         * modules/fopen (Depends-on): Add unistd.
35722         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
35723         * tests/test-fopen.c (main): Likewise.
35724         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
35725         * doc/posix-functions/fopen.texi: Likewise.
35726         Reported by Eric Blake.
35727
35728 2008-09-23  Eric Blake  <ebb9@byu.net>
35729
35730         c-stack: avoid compiler optimizations when provoking overflow
35731         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
35732         recursion harder to optimize, to ensure a stack overflow occurs.
35733         * tests/test-c-stack.c (recurse): Likewise.
35734         Borrowed from libsigsegv.
35735
35736         c-stack: work around Irix sigaltstack bug
35737         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
35738         whether sigaltstack uses wrong end of stack_t (copied in part from
35739         libsigsegv).
35740         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
35741         Irix bug, without requiring an over-allocation.
35742         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
35743         bug.
35744
35745         fopen: document mingw bug on directories
35746         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
35747         not allowing a stream visiting a directory, even though reading
35748         from such a stream is not portable.
35749
35750 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35751
35752         * lib/poll.c: Rewrite.
35753         * modules/poll: Depend on alloca.
35754
35755 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35756
35757         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
35758         instead define prototypes for a full set of wrappers.  Ensure
35759         that Cygwin does not use the compatibility code, which is only
35760         for MinGW.
35761         * lib/winsock.c: New.
35762         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
35763         * modules/sys_socket: Add lib/winsock.c.
35764
35765         * modules/poll-tests: Add errno and perror.
35766         * tests/test-poll.c: Use ioctl, not ioctlsocket.
35767
35768 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
35769
35770         * tests/test-poll.c: Downgrade minimum needed Winsock version.
35771
35772 2008-09-23  Bruno Haible  <bruno@clisp.org>
35773
35774         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
35775         * doc/glibc-functions/*: Likewise.
35776
35777 2008-09-23  Simon Josefsson  <simon@josefsson.org>
35778
35779         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
35780         success.
35781
35782 2008-09-22  Eric Blake  <ebb9@byu.net>
35783             Bruno Haible  <bruno@clisp.org>
35784
35785         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
35786         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
35787         supply %A but mishandle pseudo-NaN.
35788         Reported by Simon Josefsson.
35789
35790 2008-09-21  Bruno Haible  <bruno@clisp.org>
35791
35792         * tests/test-lock.c (main): Tweak skip message.
35793         * tests/test-tls.c (main): Likewise.
35794
35795 2008-09-21  Bruno Haible  <bruno@clisp.org>
35796
35797         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
35798         whether 'struct sigaction' has sa_sigaction here...
35799         (gl_PREREQ_SIG_HANDLER_H): ... not here.
35800         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
35801
35802 2008-09-21  Bruno Haible  <bruno@clisp.org>
35803
35804         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
35805         section.
35806         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
35807         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
35808         the new section.
35809         (Support for obsolete systems lacking POSIX:2001): New section.
35810         (String handling <string.h>): Move strdup to the new section.
35811         Suggested by Simon Josefsson and Paolo Bonzini.
35812
35813 2008-09-21  Bruno Haible  <bruno@clisp.org>
35814
35815         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
35816         exponents in %e and %g results on 'long double'. Needed for mingw's
35817         improved *printf functions.
35818         * tests/test-vasprintf-posix.c (test_function): Likewise.
35819         * tests/test-snprintf-posix.h (test_function): Likewise.
35820         * tests/test-sprintf-posix.h (test_function): Likewise.
35821         Reported by Eric Blake.
35822
35823 2008-09-21  Bruno Haible  <bruno@clisp.org>
35824
35825         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
35826         * tests/test-sprintf-posix.h (test_function): Likewise.
35827
35828 2008-09-21  Bruno Haible  <bruno@clisp.org>
35829
35830         * modules/getpass (Depends-on): Add strdup-posix.
35831
35832         New module 'strdup-posix'.
35833         * modules/strdup-posix: New file.
35834         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
35835         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
35836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35837         REPLACE_STRDUP.
35838         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
35839         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
35840         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35841         strdup-posix.
35842
35843         * modules/strdup (Depends-on): Remove malloc-posix.
35844
35845 2008-09-20  Bruno Haible  <bruno@clisp.org>
35846
35847         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
35848         Wildenhues.
35849
35850 2008-09-20  Bruno Haible  <bruno@clisp.org>
35851
35852         Ensure that wint_t gets defined on IRIX 5.3.
35853         * lib/wchar.in.h (wint_t): Define if not defined by the system.
35854         * lib/wctype.in.h (wint_t): Likewise.
35855         (__wctype_wint_t): Remove type.
35856         (isw*): Use wint_t instead of __wctype_wint_t.
35857         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
35858         * modules/wchar (Files): Add m4/wint_t.m4.
35859         (Makefile.am): Substitute HAVE_WINT_T.
35860         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
35861         * tests/test-wctype.c: Check that wint_t is defined.
35862         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
35863         * doc/posix-headers/wctype.texi: Likewise.
35864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35865
35866 2008-09-18  Bruno Haible  <bruno@clisp.org>
35867
35868         * gnulib-tool (func_exit): Update comment.
35869
35870 2008-09-18  Simon Josefsson  <simon@josefsson.org>
35871
35872         * modules/getaddrinfo (Depends-on): Remove strdup, this module
35873         assumes strdup exists and does not depend on strdup to return
35874         ENOMEM on out of memory conditions.
35875
35876 2008-09-18  Bruno Haible  <bruno@clisp.org>
35877
35878         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
35879         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
35880         digits for the exponent.
35881
35882 2008-09-18  Jim Meyering  <meyering@redhat.com>
35883             Bruno Haible  <bruno@clisp.org>
35884
35885         * lib/vasnprintf.c (decimal_point_char): Define also if
35886         NEED_PRINTF_INFINITE_LONG_DOUBLE.
35887
35888 2008-09-16  Bruno Haible  <bruno@clisp.org>
35889         and Eric Blake  <ebb9@byu.net>
35890
35891         vasnprintf: support Irix 5.3
35892         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
35893         that mishandle long double infinity.
35894         Reported by Tom G. Christensen.
35895
35896 2008-09-16  Bruno Haible  <bruno@clisp.org>
35897
35898         * doc/glibc-functions/scandir.texi: Mention the function is missing on
35899         Solaris 9.
35900         * doc/glibc-functions/alphasort.texi: Likewise.
35901         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
35902
35903 2008-09-16  Jim Meyering  <meyering@redhat.com>
35904
35905         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
35906         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
35907         a umask modification leak out of a subshell.  Otherwise, the
35908         opensolaris /bin/sh would be accepted and thus cause unwarranted
35909         failures in the coreutils test suite.
35910
35911 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
35912
35913         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
35914         to succeed.
35915
35916 2008-09-16  Jim Meyering  <meyering@redhat.com>
35917
35918         avoid spurious test failure when library is built without ACL support
35919         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
35920         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
35921         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
35922         * tests/test-copy-acl.sh: Likewise.
35923
35924 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35925
35926         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
35927         based on character occurrence counts.
35928
35929 2008-09-15  Eric Blake  <ebb9@byu.net>
35930
35931         tests: avoid some compiler warnings
35932         * tests/test-memchr.c (main): Pass NULL indirectly.
35933         * tests/test-closein.c (main): Avoid unused variable.
35934
35935 2008-09-15  Bruno Haible  <bruno@clisp.org>
35936
35937         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
35938         are missing on OpenBSD 4.0 individually.
35939         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35940
35941 2008-09-15  Bruno Haible  <bruno@clisp.org>
35942
35943         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
35944         * doc/posix-functions/strerror.texi: Mention also Cygwin.
35945         * doc/posix-functions/perror.texi: Likewise.
35946         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
35947         is missing.
35948         Reported by Eric Blake.
35949
35950         * lib/errno.in.h: Use replacement values >= 2000.
35951         Reported by Eric Blake.
35952
35953 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35954
35955         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
35956         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
35957         limit.
35958         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
35959         compareseq was aborted.
35960
35961 2008-09-14  Bruno Haible  <bruno@clisp.org>
35962
35963         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
35964         yvec_edit_count.
35965         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
35966         (fstrcmp_bounded): Simplify result computation accordingly.
35967
35968 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35969
35970         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
35971         (fstrcmp): Define in terms of fstrcmp_bounded.
35972         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
35973         lower_bound argument.
35974         Return quickly if the result is certainly < lower_bound.
35975         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
35976
35977 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35978
35979         * lib/diffseq.h (EARLY_ABORT): New macro.
35980         (compareseq): Change return type to bool. Return true when EARLY_ABORT
35981         evaluates to true.
35982
35983 2008-09-14  Bruno Haible  <bruno@clisp.org>
35984
35985         * modules/perror-tests: New file.
35986         * tests/test-perror.sh: New file.
35987         * tests/test-perror.c: New file.
35988
35989         New module 'perror'.
35990         * lib/stdio.in.h (perror): New declaration.
35991         * lib/perror.c: New file.
35992         * m4/perror.m4: New file.
35993         * modules/perror: New file.
35994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
35995         * doc/posix-functions/perror.texi: Mention the perror module.
35996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
35997         REPLACE_PERROR.
35998         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
35999         REPLACE_PERROR.
36000
36001 2008-09-14  Bruno Haible  <bruno@clisp.org>
36002
36003         * modules/stdio (Makefile.am): Reorder to match the order in
36004         lib/stdio.in.h.
36005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36006
36007 2008-09-13  Bruno Haible  <bruno@clisp.org>
36008
36009         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36010
36011 2008-09-13  Bruno Haible  <bruno@clisp.org>
36012
36013         Extend strerror to cover the added errno values.
36014         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36015         (rpl_strerror): Provide error messages for the added errno values and
36016         for the WSA* values.
36017         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36018         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36019         strerror.
36020         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36021         * modules/strerror (Depends-on): Add errno.
36022         * doc/posix-functions/strerror.texi: Document the change.
36023         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36024         and EOVERFLOW.
36025
36026 2008-09-13  Bruno Haible  <bruno@clisp.org>
36027
36028         * modules/EOVERFLOW: Remove file.
36029         * m4/eoverflow.m4: Remove file.
36030         * modules/EOVERFLOW-tests: Remove file.
36031         * tests/test-EOVERFLOW.c: Remove file.
36032         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36033         * modules/ftell (Depends-on): Likewise.
36034         * modules/getdelim (Depends-on): Likewise.
36035         * modules/getugroups (Depends-on): Likewise.
36036         * modules/poll (Depends-on): Likewise.
36037         * modules/snprintf (Depends-on): Likewise.
36038         * modules/sprintf-posix (Depends-on): Likewise.
36039         * modules/vasnprintf (Depends-on): Likewise.
36040         * modules/vasprintf (Depends-on): Likewise.
36041         * modules/vfprintf-posix (Depends-on): Likewise.
36042         * modules/vsnprintf (Depends-on): Likewise.
36043         * modules/vsprintf-posix (Depends-on): Likewise.
36044         * modules/xvasprintf (Depends-on): Likewise.
36045         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36046         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36047         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36048         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36049         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36050         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36051         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36052         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36053         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36054         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36055         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36056         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36057         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36058         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36059         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36060         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36061         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36062         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36063         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36064         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36065         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36066         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36067         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36068         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36069         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36071         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36072         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36073         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36074         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36075         * MODULES.html.sh: Remove EOVERFLOW.
36076         * NEWS: Mention the change.
36077
36078 2008-09-13  Bruno Haible  <bruno@clisp.org>
36079
36080         * modules/errno-tests: New file.
36081         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36082
36083         * lib/errno.in.h: New file.
36084         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36085         * modules/errno: New file.
36086         * doc/posix-headers/errno.texi: Update documentation.
36087         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36088
36089 2008-09-13  Bruno Haible  <bruno@clisp.org>
36090
36091         * tests/test-poll.c: Use #if for native Windows, rather than testing
36092         __MSVCRT__.
36093
36094 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36095             Bruno Haible  <bruno@clisp.org>
36096
36097         * lib/glob.c: Don't include <pwd.h> on native Windows.
36098         (WINDOWS32): New macro.
36099         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36100
36101 2008-09-13  Bruno Haible  <bruno@clisp.org>
36102
36103         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36104         (ETIMEDOUT): Remove macro.
36105         (glthread_cond_timedwait_multithreaded): New declaration.
36106         (glthread_cond_timedwait): Use it.
36107         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36108         (glthread_cond_timedwait_multithreaded): New function.
36109
36110 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36111
36112         * modules/poll-tests: Do not check for io.h.
36113         * tests/test-poll.c: Check for __MSVCRT__ instead.
36114
36115 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36116
36117         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36118         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36119         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36120
36121 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36122
36123         * modules/poll-tests: New.
36124         * tests/test-poll.c: New.
36125
36126 2008-09-12  Eric Blake  <ebb9@byu.net>
36127
36128         frexp: test for NetBSD failure on -0.0
36129         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36130         not all, bugs from NetBSD 3.0 have been fixed.
36131         * doc/posix-functions/frexp.texi (frexp): Document bug.
36132         Reported by Thomas Klausner.
36133
36134         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36135         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36136         literal -0.0.
36137         Reported by Jonathan C. Patschke <jp@centtech.com>.
36138
36139 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36140
36141         * lib/glthread/cond.h: Use dummy implementation also if
36142         USE_WIN32_THREADS.
36143
36144 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36145
36146         * modules/fnmatch-posix (License): Change to LGPLv2+.
36147         * modules/fnmatch-gnu (License): Likewise.
36148
36149 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36150
36151         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36152
36153 2008-09-11  Jim Meyering  <meyering@redhat.com>
36154
36155         * users.txt: Add gtk-vnc.
36156
36157 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36158
36159         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36160         rotate amounts.
36161
36162         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36163         required for 16-bit and 8-bit rotates.
36164         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36165         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36166         UINT8_MAX instead of hard-coded constants.
36167         Suggested by Paul Eggert.
36168
36169 2008-09-07  Bruno Haible  <bruno@clisp.org>
36170
36171         * tests/test-striconveh.c (main): Check behaviour when converting from
36172         UTF-7.
36173
36174         Make striconveh work better with stateful encodings.
36175         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36176         that iconv does not increment the inptr when returning -1/EINVAL.
36177
36178 2008-09-07  Bruno Haible  <bruno@clisp.org>
36179
36180         * build-aux/config.rpath: Update according to libtool-2.2.6.
36181         * build-aux/config.libpath: Likewise.
36182
36183 2008-09-06  Bruno Haible  <bruno@clisp.org>
36184
36185         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36186         * lib/freadptr.c (freadptr): Likewise.
36187         * lib/freadseek.c (freadptrinc): Likewise.
36188         Reported by Simon Josefsson.
36189
36190 2008-09-06  Bruno Haible  <bruno@clisp.org>
36191
36192         * modules/freadptr (License): Change to LGPLv2+.
36193         * modules/freadseek (License): Likewise.
36194         Suggested by Eric Blake.
36195
36196         * modules/memchr2 (License): Change to LGPLv2+.
36197         Approved by Eric Blake.
36198
36199 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36200             Bruno Haible  <bruno@clisp.org>
36201
36202         Make gnulib-tool work with native 'sed' on AIX.
36203         * gnulib-tool (sed_noop): New variable.
36204         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36205         func_add_or_update, func_create_testdir): Use it to initialize sed
36206         script variables.
36207         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36208
36209 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
36210             Bruno Haible  <bruno@clisp.org>
36211
36212         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
36213         also works after #include directives.
36214
36215 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
36216
36217         getdate.y: reject an out-of-range timezone value
36218         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
36219         the range [-24...+24].  When specified with only one or two digits,
36220         * tests/test-getdate.c: Tests for the fix.
36221         * doc/getdate.texi: Document this change.
36222
36223 2008-09-03  Bruno Haible  <bruno@clisp.org>
36224
36225         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
36226
36227 2008-09-02  Simon Josefsson  <simon@josefsson.org>
36228
36229         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
36230         <bruce.korb@gmail.com> with ideas from Ben Pfaff
36231         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
36232         Blake <ebb9@byu.net>.
36233
36234         * tests/test-bitrotate.c: Add more test vectors.
36235
36236 2008-09-02  Eric Blake  <ebb9@byu.net>
36237
36238         vasnprintf-posix: handle large precision via %.*d
36239         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
36240         when handling it ourselves.
36241         * tests/test-vasnprintf-posix.c (test_function): Add test.
36242         * tests/test-snprintf-posix.h (test_function): Likewise.
36243         * tests/test-sprintf-posix.h (test_function): Likewise.
36244         * tests/test-vasprintf-posix.c (test_function): Likewise.
36245         Reported by Alain Guibert.
36246
36247 2008-09-01  Eric Blake  <ebb9@byu.net>
36248
36249         c-stack: make configure-time check more robust
36250         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
36251         successful sigaction call.
36252         Reported by Tom G. Christensen.
36253
36254 2008-09-01  Bruno Haible  <bruno@clisp.org>
36255
36256         New module 'findprog-lgpl'.
36257         * modules/findprog-lgpl: New file.
36258         * lib/findprog-lgpl.c: New file.
36259         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
36260         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
36261         to decide whether to use strdup or xstrdup, concatenated_filename or
36262         xconcatenated_filename.
36263
36264 2008-09-01  Bruno Haible  <bruno@clisp.org>
36265
36266         Split module 'concat-filename' into 'concat-filename' (LGPL) and
36267         'xconcat-filename' (GPL).
36268         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
36269         (License): Change to LGPLv2+.
36270         * modules/xconcat-filename: New file.
36271         * lib/concat-filename.h (concatenated_filename): Change specification.
36272         (xconcatenated_filename): New declaration.
36273         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
36274         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
36275         memory situations.
36276         * lib/xconcat-filename.c: New file.
36277         * NEWS: Mention the change.
36278         * lib/findprog.c: Include concat-filename.h, not filename.h.
36279         (find_in_path): Use xconcatenated_filename instead of
36280         concatenated_filename.
36281         * lib/javacomp.c: Include concat-filename.h, not filename.h.
36282         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36283         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36284         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36285         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
36286         instead of concatenated_filename.
36287         * lib/javaexec.c: Include concat-filename.h, not filename.h.
36288         (execute_java_class): Use xconcatenated_filename instead of
36289         concatenated_filename.
36290         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
36291         * modules/javacomp (Depends-on): Likewise.
36292         * modules/javaexec (Depends-on): Likewise.
36293
36294 2008-09-01  Bruno Haible  <bruno@clisp.org>
36295
36296         Split module 'filename' into 'filename' and 'concat-filename'.
36297         * modules/filename: Keep only lib/filename.h.
36298         (License): Change to LGPLv2+.
36299         * modules/concat-filename: New file, extracted from modules/filename.
36300         * lib/filename.h (concatenated_filename): Remove declaration.
36301         * lib/concat-filename.h: New file, extracted from lib/filename.h.
36302         * lib/concat-filename.c: Include concat-filename.h.
36303         * NEWS: Mention the change.
36304
36305 2008-09-01  Simon Josefsson  <simon@josefsson.org>
36306
36307         * lib/bitrotate.h (rotl8, rotr8): Add.
36308
36309         * modules/bitrotate (configure.ac): Need
36310         AC_REQUIRE([AC_C_INLINE]).
36311         (Description): Mention stdint.h.  Reported by Bruno Haible
36312         <bruno@clisp.org>.
36313
36314         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
36315         Paolo Bonzini <bonzini@gnu.org>.
36316
36317 2008-08-31  Bruno Haible  <bruno@clisp.org>
36318
36319         Assume Solaris specific bi-arch conventions on Solaris systems.
36320         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
36321         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
36322         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
36323         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
36324         like acl_libdirstem.
36325         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
36326         acl_libdirstem.
36327         * NEWS: Mention the change.
36328         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
36329
36330 2008-08-31  Jim Meyering  <meyering@redhat.com>
36331
36332         * lib/strftime.h: Add comments describing the two added arguments.
36333
36334         remove duplicate #include directives
36335         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
36336         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
36337
36338 2008-08-31  Bruno Haible  <bruno@clisp.org>
36339
36340         New module 'sigpipe-die'.
36341         * modules/sigpipe-die: New file.
36342         * lib/sigpipe-die.h: New file.
36343         * lib/sigpipe-die.c: New file.
36344         * MODULES.html.sh (Signal handling): Add sigpipe-die.
36345
36346 2008-08-31  Bruno Haible  <bruno@clisp.org>
36347
36348         Don't override previously installed signal handlers.
36349         * lib/fatal-signal.c (saved_sigactions): New variable.
36350         (uninstall_handlers): Reset the signal to the saved handler, not
36351         to SIG_DFL (except when ignored).
36352         (install_handlers): Save the previous handlers.
36353
36354 2008-08-30  Bruno Haible  <bruno@clisp.org>
36355
36356         * gnulib-tool (func_reset_sigpipe): New function.
36357         (func_get_automake_snippet, func_modules_transitive_closure,
36358         func_import): Invoke it before a join command that reads from stdin,
36359         to avoid "echo: write error: Broken pipe" error messages on stderr.
36360         Reported by Sam Steingold <sds@gnu.org>.
36361
36362 2008-08-30  Bruno Haible  <bruno@clisp.org>
36363
36364         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
36365         Code copied from m4/open.m4.
36366         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
36367         access and the filename ends in a slash. Code copied from lib/open.c.
36368         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
36369         * tests/test-fopen.c (main): Check against bug with trailing slash.
36370
36371 2008-08-29  Bruno Haible  <bruno@clisp.org>
36372
36373         Avoid some "gcc -pedantic" warnings.
36374         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
36375         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
36376         * lib/dirent.in.h: Likewise.
36377         * lib/fcntl.in.h: Likewise.
36378         * lib/float.in.h: Likewise.
36379         * lib/iconv.in.h: Likewise.
36380         * lib/inttypes.in.h: Likewise.
36381         * lib/locale.in.h: Likewise.
36382         * lib/math.in.h: Likewise.
36383         * lib/netinet_in.in.h: Likewise.
36384         * lib/search.in.h: Likewise.
36385         * lib/signal.in.h: Likewise.
36386         * lib/stdarg.in.h: Likewise.
36387         * lib/stdint.in.h: Likewise.
36388         * lib/stdio.in.h: Likewise.
36389         * lib/stdlib.in.h: Likewise.
36390         * lib/string.in.h: Likewise.
36391         * lib/strings.in.h: Likewise.
36392         * lib/sys_select.in.h: Likewise.
36393         * lib/sys_socket.in.h: Likewise.
36394         * lib/sys_stat.in.h: Likewise.
36395         * lib/sys_time.in.h: Likewise.
36396         * lib/sysexits.in.h: Likewise.
36397         * lib/time.in.h: Likewise.
36398         * lib/unistd.in.h: Likewise.
36399         * lib/wchar.in.h: Likewise.
36400         * lib/wctype.in.h: Likewise.
36401         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
36402         * modules/fchdir (Makefile.am): Likewise.
36403         * modules/fcntl (Makefile.am): Likewise.
36404         * modules/float (Makefile.am): Likewise.
36405         * modules/iconv_open (Makefile.am): Likewise.
36406         * modules/inttypes (Makefile.am): Likewise.
36407         * modules/locale (Makefile.am): Likewise.
36408         * modules/math (Makefile.am): Likewise.
36409         * modules/netinet_in (Makefile.am): Likewise.
36410         * modules/search (Makefile.am): Likewise.
36411         * modules/signal (Makefile.am): Likewise.
36412         * modules/stdarg (Makefile.am): Likewise.
36413         * modules/stdint (Makefile.am): Likewise.
36414         * modules/stdio (Makefile.am): Likewise.
36415         * modules/stdlib (Makefile.am): Likewise.
36416         * modules/string (Makefile.am): Likewise.
36417         * modules/strings (Makefile.am): Likewise.
36418         * modules/sys_select (Makefile.am): Likewise.
36419         * modules/sys_socket (Makefile.am): Likewise.
36420         * modules/sys_stat (Makefile.am): Likewise.
36421         * modules/sys_time (Makefile.am): Likewise.
36422         * modules/sysexits (Makefile.am): Likewise.
36423         * modules/time (Makefile.am): Likewise.
36424         * modules/unistd (Makefile.am): Likewise.
36425         * modules/wchar (Makefile.am): Likewise.
36426         * modules/wctype (Makefile.am): Likewise.
36427         Reported by Reuben Thomas <rrt@sc3d.org>.
36428
36429 2008-08-29  Bruno Haible  <bruno@clisp.org>
36430
36431         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
36432         any more.
36433
36434 2008-08-29  Simon Josefsson  <simon@josefsson.org>
36435
36436         * MODULES.html.sh (Misc): Add bitrotate.
36437
36438         * modules/bitrotate: New file.
36439
36440         * lib/bitrotate.h: New file.
36441
36442         * modules/bitrotate-tests: New file.
36443
36444         * tests/test-bitrotate.c: New file.
36445
36446         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
36447         on the bitrotate module.
36448
36449         * lib/arctwo.c: Use new bitrotate module.
36450
36451 2008-08-29  Jim Meyering  <meyering@redhat.com>
36452
36453         bootstrap: merge changes from coreutils
36454         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
36455         of copied files.  Remove a kludge, now that this is fixed.
36456         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
36457         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
36458         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
36459
36460 2008-08-29  Bruno Haible  <bruno@clisp.org>
36461
36462         * MODULES.html.sh: Remove --cvs-urls option.
36463
36464 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
36465
36466         maint.mk: adjust to file name change
36467         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
36468
36469 2008-08-28  Jim Meyering  <meyering@redhat.com>
36470
36471         * modules/getndelim2 (License): Relicense to LGPLv2+.
36472         Approved by Richard Stallman for the version of 1995, and by
36473         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
36474
36475 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
36476
36477         * lib/getdelim.c (flockfile, funlockfile): Make all of them
36478         dummy if one is not available.  Do not touch them if
36479         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
36480         (getc_maybe_unlocked): New.
36481         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
36482
36483 2008-08-26  Eric Blake  <ebb9@byu.net>
36484
36485         doc/INSTALL: resync from autoconf
36486         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
36487         (INSTALL_PRELUDE): Delete; this is done more efficiently by
36488         moving...
36489         * install.texi [!autoconf]: ...here.  Resync from autoconf.
36490         * INSTALL: Regenerate.
36491         * INSTALL.ISO: New file.
36492         * INSTALL.UTF-8: Likewise.
36493
36494 2008-08-26  Jim Meyering  <meyering@redhat.com>
36495
36496         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
36497         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
36498         these definitions conditional, so that they may be overridden, too.
36499
36500 2008-08-26  Bruno Haible  <bruno@clisp.org>
36501
36502         Generate INSTALL file variants with prettier quotes.
36503         * doc/Makefile (INSTALL_PRELUDE): New macro.
36504         (INSTALL): Use it.
36505         (INSTALL.ISO, INSTALL.UTF-8): New rules.
36506
36507 2008-08-26  Bruno Haible  <bruno@clisp.org>
36508
36509         Run makeinfo in an English locale.
36510         * doc/Makefile (MAKEINFO): New variable.
36511
36512 2008-08-26  Bruno Haible  <bruno@clisp.org>
36513
36514         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
36515         Suggested by Eric Blake.
36516
36517 2008-08-25  Bruno Haible  <bruno@clisp.org>
36518
36519         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
36520
36521 2008-08-25  Eric Blake  <ebb9@byu.net>
36522
36523         c-stack: test that stack overflow can be caught
36524         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
36525         that platform allows handling stack overflow; at least OS/2 EMX
36526         has sigaltstack, but crashes before transferring control to
36527         handler on stack overflow.
36528         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
36529         check for HAVE_STACK_OVERFLOW_HANDLING.
36530         Reported by Elbert Pol.
36531
36532 2008-08-25  Bruno Haible  <bruno@clisp.org>
36533
36534         * doc/posix-functions/strftime.texi: Fix description of strftime
36535         module.
36536
36537 2008-08-24  Bruno Haible  <bruno@clisp.org>
36538
36539         * tests/uniwidth/test-uc_width2.c: New file.
36540         * tests/uniwidth/test-uc_width2.sh: New file.
36541         * modules/uniwidth/width-tests (Files): Add the new files.
36542         (TESTS): Add uniwidth/test-uc_width2.sh.
36543         (TESTS_ENVIRONMENT): New variable.
36544         (check_PROGRAMS): Add test-uc_width2.
36545         (test_uc_width2_SOURCES): New variable.
36546
36547         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
36548         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
36549         not 0x00AB.
36550         Reported by Alexander V. Lukyanov <lav@netis.ru>.
36551
36552 2008-08-22  Eric Blake  <ebb9@byu.net>
36553
36554         test-lock, test-tls: mention why a test is skipped
36555         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
36556         skipped.
36557         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
36558
36559         count-one-bits: relax license
36560         * modules/count-one-bits (License): Relicense to LGPLv2+.
36561         Suggested by Ludovic Courtès, approved by Ben Pfaff.
36562
36563 2008-08-22  Andreas Schwab  <schwab@suse.de>
36564
36565         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36566         Remove spurious space in assignment.
36567
36568 2008-08-21  Simon Josefsson  <simon@josefsson.org>
36569
36570         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
36571         Paul Eggert <eggert@CS.UCLA.EDU>.
36572
36573 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
36574
36575         * modules/gettext: Add m4/threadlib.m4.
36576
36577 2008-08-19  Eric Blake  <ebb9@byu.net>
36578
36579         test-c-stack: fix compilation failure on FreeBSD 5.0
36580         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
36581         headers before <sys/resource.h>.
36582         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
36583         the bug.
36584         Reported by Nelson H. F. Beebe.
36585
36586         strverscmp: migrate from "strverscmp.h" to <string.h>
36587         * modules/string (Makefile.am): Add new hooks.
36588         * modules/strverscmp (Files): Remove strverscmp.h.
36589         (Depends-on): Add string.
36590         (configure.ac): Add indicator.
36591         (Include): Mention new header.
36592         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
36593         defaults.
36594         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
36595         results.
36596         * lib/strverscmp.h: Delete.
36597         * lib/string.in.h (strverscmp): Provide declaration, when needed.
36598         * tests/test-strverscmp.c (includes): Adjust client.
36599         * lib/check-version.c (includes): Likewise.
36600         * NEWS: Document the change.
36601
36602         strverscmp: add unit test
36603         * modules/strverscmp-tests: New file.
36604         * tests/test-strverscmp.c: Likewise.
36605
36606 2008-08-19  Simon Josefsson  <simon@josefsson.org>
36607
36608         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
36609         regarding Windows crypto stuff, from Mono.
36610
36611 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
36612
36613         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
36614         if present, for intel RND.  Return error on failures.
36615
36616 2008-08-18  Ben Pfaff  <blp@gnu.org>
36617
36618         gitlog-to-changelog: give better diagnostic for failed pipe-open
36619         * build-aux/gitlog-to-changelog: Improve error message: suggest
36620         that the version of Git may be too old.
36621
36622 2008-08-18  Simon Josefsson  <simon@josefsson.org>
36623
36624         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
36625         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
36626
36627 2008-08-18  Bruno Haible  <bruno@clisp.org>
36628
36629         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
36630         pthread_in_use().
36631
36632 2008-08-18  Bruno Haible  <bruno@clisp.org>
36633
36634         * lib/glthread/threadlib.c: Include <pthread.h>.
36635
36636 2008-08-18  Bruno Haible  <bruno@clisp.org>
36637
36638         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
36639         glthread_recursive_lock_* macros.
36640         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
36641         Fix syntax error.
36642
36643 2008-08-18  Bruno Haible  <bruno@clisp.org>
36644
36645         * lib/glthread/thread.c: Avoid forcing a context switch right after
36646         thread creation.
36647
36648 2008-08-17  Bruno Haible  <bruno@clisp.org>
36649
36650         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
36651         * lib/glthread/thread.h: Provide Win32 specific implementation.
36652         * modules/thread (Files): Add lib/glthread/thread.c.
36653         (Depends-on): Add lock.
36654         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
36655
36656 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36657
36658         New module 'yield'.
36659         * modules/yield: New file.
36660         * lib/glthread/yield.h: New file.
36661         * m4/yield.m4: New file.
36662         * MODULES.html.sh (Multithreading): Add yield.
36663
36664 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36665
36666         New module 'thread'.
36667         * modules/thread: New file.
36668         * lib/glthread/thread.h: New file.
36669         * m4/thread.m4: New file.
36670         * MODULES.html.sh (Multithreading): Add thread.
36671
36672 2008-08-17  Bruno Haible  <bruno@clisp.org>
36673
36674         * lib/glthread/lock.h: Include <stdlib.h> always.
36675         * lib/glthread/tls.h: Likewise.
36676         * lib/glthread/cond.h: Likewise.
36677
36678 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36679
36680         New module 'cond'.
36681         * modules/cond: New file.
36682         * lib/glthread/cond.h: New file.
36683         * lib/glthread/cond.c: New file.
36684         * m4/cond.m4: New file.
36685         * MODULES.html.sh (Multithreading): Add cond.
36686
36687 2008-08-16  Eric Blake  <ebb9@byu.net>
36688
36689         c-stack: fix regression on Irix 5.3 from 2008-06-21
36690         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
36691         sa_sigaction...
36692         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
36693         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
36694         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
36695         * modules/signal (Makefile.am): Use the value.
36696         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
36697         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
36698         * doc/posix-headers/signal.texi (signal.h): Document this
36699         portability issue.
36700         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
36701         Reported by Tom G. Christensen.
36702
36703 2008-08-17  Bruno Haible  <bruno@clisp.org>
36704
36705         New module 'threadlib'.
36706         * modules/threadlib: New file.
36707         * lib/glthread/threadlib.c: New file, extracted from
36708         lib/glthread/lock.c.
36709         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
36710         functions.
36711         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
36712         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
36713         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
36714         macros.
36715         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
36716         (gl_DISABLE_THREADS): Remove macro.
36717         * modules/lock (Files): Remove build-aux/config.rpath.
36718         (Depends-on): Remove havelib. Add threadlib.
36719         (configure.ac-early): Remove section.
36720         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
36721         * modules/tls (Depends-on): Remove lock. Add threadlib.
36722         (Link): New section, copied from threadlib.
36723         * MODULES.html.sh (Multithreading): Add threadlib.
36724
36725 2008-08-14  Bruno Haible  <bruno@clisp.org>
36726
36727         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
36728         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
36729         glthread_rwlock_unlock, glthread_rwlock_destroy,
36730         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
36731         glthread_recursive_lock_destroy): Define as macros always.
36732         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
36733         glthread_lock_lock.
36734         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
36735         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
36736         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
36737         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
36738         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
36739         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
36740         (glthread_recursive_lock_lock_func): Renamed from
36741         glthread_recursive_lock_lock.
36742         (glthread_recursive_lock_unlock_func): Renamed from
36743         glthread_recursive_lock_unlock.
36744         (glthread_recursive_lock_destroy_func): Renamed from
36745         glthread_recursive_lock_destroy.
36746
36747 2008-08-14  Bruno Haible  <bruno@clisp.org>
36748
36749         * lib/glthread/lock.h: Renamed from lib/lock.h.
36750         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
36751         * lib/glthread/tls.h: Renamed from lib/tls.h.
36752         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
36753         * lib/fstrcmp.c: Update includes.
36754         * lib/strsignal.c: Update includes.
36755         * modules/lock (Files, Makefile.am): Update.
36756         (Include): Change to "glthread/lock.h".
36757         * modules/tls (Files, Makefile.am): Update.
36758         (Include): Change to "glthread/tls.h".
36759         * tests/test-lock.c: Update includes.
36760         * tests/test-tls.c: Update includes.
36761         * NEWS: Mention the renamed header files.
36762
36763 2008-08-11  Jim Meyering  <meyering@redhat.com>
36764
36765         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
36766
36767 2008-08-11  Eric Blake  <ebb9@byu.net>
36768
36769         test-c-stack: avoid C99-ism
36770         * tests/test-c-stack.c (main): Fix whitespace, move declaration
36771         before statement.
36772         Reported by Alain Guibert.
36773
36774 2008-08-10  Jim Meyering  <meyering@redhat.com>
36775
36776         ensure that return value of uinttostr et al are not ignored
36777         * lib/inttostr.h (__GNUC_PREREQ): Define.
36778         (__attribute_warn_unused_result__): Define.
36779         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
36780
36781 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
36782
36783         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
36784         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
36785
36786 2008-08-07  Jim Meyering  <meyering@redhat.com>
36787
36788         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
36789
36790         * modules/mkstemp (License): Relicense under LGPLv2+.
36791         * modules/tempname (License): Likewise.
36792
36793 2008-08-06  Bruno Haible  <bruno@clisp.org>
36794
36795         * lib/poll.c (poll): Further micro-optimization.
36796
36797 2008-08-06  Jim Meyering  <meyering@redhat.com>
36798
36799         inet_pton.c: use locale-independent tolower
36800         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
36801         (inet_pton6): Use c_tolower rather than tolower.
36802         * modules/inet_pton (Depends-on): Add c-ctype.
36803
36804 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
36805
36806         * lib/poll.c (poll): Avoid division when timeout is 0, cache
36807         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
36808
36809 2008-08-06  Jim Meyering  <meyering@redhat.com>
36810
36811         * modules/inet_pton (License): Relicense under LGPLv2+.
36812
36813 2008-08-03  Bruno Haible  <bruno@clisp.org>
36814
36815         Additional non-aborting API for lock and tls.
36816         * lib/lock.h: Include <errno.h>.
36817         (glthread_lock_init): New macro/function.
36818         (gl_lock_init): Define as wrapper around glthread_lock_init.
36819         (glthread_lock_lock): New macro/function.
36820         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
36821         (glthread_lock_unlock): New macro/function.
36822         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
36823         (glthread_lock_destroy): New macro/function.
36824         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
36825         (glthread_rwlock_init): New macro/function.
36826         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
36827         (glthread_rwlock_rdlock): New macro/function.
36828         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
36829         (glthread_rwlock_wrlock): New macro/function.
36830         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
36831         (glthread_rwlock_unlock): New macro/function.
36832         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
36833         (glthread_rwlock_destroy): New macro/function.
36834         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
36835         (glthread_recursive_lock_init): New macro/function.
36836         (gl_recursive_lock_init): Define as wrapper around
36837         glthread_recursive_lock_init.
36838         (glthread_recursive_lock_lock): New macro/function.
36839         (gl_recursive_lock_lock): Define as wrapper around
36840         glthread_recursive_lock_lock.
36841         (glthread_recursive_lock_unlock): New macro/function.
36842         (gl_recursive_lock_unlock): Define as wrapper around
36843         glthread_recursive_lock_unlock.
36844         (glthread_recursive_lock_destroy): New macro/function.
36845         (gl_recursive_lock_destroy): Define as wrapper around
36846         glthread_recursive_lock_destroy.
36847         (glthread_once): New macro/function.
36848         (gl_once): Define as wrapper around glthread_once.
36849         Update function declarations.
36850         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
36851         glthread_rwlock_init. Return error code.
36852         (glthread_rwlock_rdlock_multithreaded): Renamed from
36853         glthread_rwlock_rdlock. Return error code.
36854         (glthread_rwlock_wrlock_multithreaded): Renamed from
36855         glthread_rwlock_wrlock. Return error code.
36856         (glthread_rwlock_unlock_multithreaded): Renamed from
36857         glthread_rwlock_unlock. Return error code.
36858         (glthread_rwlock_destroy_multithreaded): Renamed from
36859         glthread_rwlock_destroy. Return error code.
36860         (glthread_recursive_lock_init_multithreaded): Renamed from
36861         glthread_recursive_lock_init. Return error code.
36862         (glthread_recursive_lock_lock_multithreaded): Renamed from
36863         glthread_recursive_lock_lock. Return error code.
36864         (glthread_recursive_lock_unlock_multithreaded): Renamed from
36865         glthread_recursive_lock_unlock. Return error code.
36866         (glthread_recursive_lock_destroy_multithreaded): Renamed from
36867         glthread_recursive_lock_destroy. Return error code.
36868         (glthread_once_call): Make static.
36869         (glthread_once_multithreaded): Renamed from glthread_once.
36870         * lib/tls.h: Include <errno.h>.
36871         (glthread_tls_key_init): New macro/function.
36872         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
36873         (glthread_tls_set): New macro/function.
36874         (gl_tls_set): Define as wrapper around glthread_tls_set.
36875         (glthread_tls_key_destroy): New macro/function.
36876         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
36877         Update function declarations.
36878         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
36879         glthread_tls_get.
36880         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36881
36882 2008-08-04  Eric Blake  <ebb9@byu.net>
36883
36884         gnumakefile: use space, not TAB, outside of targets
36885         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
36886
36887 2008-08-02  Jim Meyering  <meyering@redhat.com>
36888
36889         getdate.y: avoid locale-dependent date parsing failure
36890         In Turkish locales, getdate would fail to recognize keywords
36891         containing a lowercase "i".  The solution is not to rely on
36892         locale-sensitive case-conversion.
36893         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
36894         (lookup_word): Use c_toupper in place of toupper.
36895         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
36896         Reported by Vefa Bicakci <bicave@superonline.com> in
36897         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
36898         * modules/getdate (Depends-on): Add c-ctype.
36899
36900 2008-08-02  Bruno Haible  <bruno@clisp.org>
36901
36902         * gnulib-tool (func_import): When updating or creating a .gitignore
36903         file, prepend each added line with a slash, and ignore leading slashes
36904         from the existing lines.
36905         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36906
36907 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36908
36909         Portability fix for GNU make 3.79.1.
36910         * top/GNUmakefile: Avoid 'else COND', which older GNU make
36911         versions do not understand.
36912
36913 2008-08-01  Bruno Haible  <bruno@clisp.org>
36914
36915         Work around bug of HP-UX 10.20 cc with -0.0 literal.
36916         * tests/test-isnanf.h (zero): New variable.
36917         (main): Avoid literal -0.0f.
36918         * tests/test-isnand.h (zero): New variable.
36919         (main): Avoid literal -0.0.
36920         * tests/test-isnanl.h (zero): New variable.
36921         (main): Avoid literal -0.0L.
36922         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
36923         (test_float, test_double, test_long_double): Avoid literals -0.0f,
36924         -0.0, -0.0L.
36925         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
36926         (test_signbitd): Avoid literal -0.0.
36927         (test_signbitl): Avoid literal -0.0L.
36928         * tests/test-ceilf1.c (zero): New variable.
36929         (main): Avoid literal -0.0f.
36930         * tests/test-ceill.c (zero): New variable.
36931         (main): Avoid literal -0.0L.
36932         * tests/test-floorf1.c (zero): New variable.
36933         (main): Avoid literal -0.0f.
36934         * tests/test-floorl.c (zero): New variable.
36935         (main): Avoid literal -0.0L.
36936         * tests/test-roundf1.c (zero): New variable.
36937         (main): Avoid literal -0.0f.
36938         * tests/test-round1.c (zero): New variable.
36939         (main): Avoid literal -0.0.
36940         * tests/test-roundl.c (zero): New variable.
36941         (main): Avoid literal -0.0L.
36942         * tests/test-truncf1.c (zero): New variable.
36943         (main): Avoid literal -0.0f.
36944         * tests/test-trunc1.c (zero): New variable.
36945         (main): Avoid literal -0.0.
36946         * tests/test-truncl.c (zero): New variable.
36947         (main): Avoid literal -0.0L.
36948         * tests/test-frexp.c (zero): New variable.
36949         (main): Avoid literal -0.0.
36950         * tests/test-frexpl.c (zero): New variable.
36951         (main): Avoid literal -0.0L.
36952         * tests/test-ldexpl.c (zero): New variable.
36953         (main): Avoid literal -0.0L.
36954         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36955         (zerod, zerol): New variables.
36956         (test_function): Avoid literals -0.0, -0.0L.
36957         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
36958         (zerod, zerol): New variables.
36959         (test_function): Avoid literals -0.0, -0.0L.
36960         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36961         (zerod, zerol): New variables.
36962         (test_function): Avoid literals -0.0, -0.0L.
36963         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
36964         (zerod, zerol): New variables.
36965         (test_function): Avoid literals -0.0, -0.0L.
36966         * tests/test-strtod.c (zero): New variable.
36967         (main): Avoid literal -0.0.
36968         Reported by Jonathan C. Patschke <jp@centtech.com>.
36969
36970 2008-07-31  Jim Meyering  <meyering@redhat.com>
36971
36972         sha256.h: correct definition of SHA224_DIGEST_SIZE
36973         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
36974         Reported by Paulie Pena IV <paulie4@gmail.com>.
36975         Define as 224 / 8, rather than as a literal.
36976         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
36977         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
36978         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
36979
36980 2008-07-31  Bruno Haible  <bruno@clisp.org>
36981
36982         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
36983         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
36984         Reported by Jonathan Patschke <jp@centtech.com>.
36985
36986 2008-07-31  Bruno Haible  <bruno@clisp.org>
36987
36988         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
36989         Reported by Paolo Bonzini <bonzini@gnu.org>.
36990
36991 2008-07-30  Eric Blake  <ebb9@byu.net>
36992
36993         test-strtod: allow compilation without -lm
36994         * tests/test-strtod.c (main): Avoid link dependence on fabs.
36995         Reported by Dennis Clarke <blastwave@gmail.com>.
36996
36997 2008-07-28  Jim Meyering  <meyering@redhat.com>
36998
36999         bootstrap: work also when there are no .po files in po/
37000         * build-aux/bootstrap (update_po_files): Complete the change
37001         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37002
37003 2008-07-27  Jim Meyering  <meyering@redhat.com>
37004
37005         * users.txt: Add zile.
37006
37007 2008-07-26  Ben Pfaff  <blp@gnu.org>
37008
37009         Add missing dependencies on new m4/exponent[fdl].m4 files.
37010         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37011         * modules/isnand-nolibm: Add m4/exponentd.m4.
37012         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37013         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37014         m4/isnan[fdl].m4, because the macros actually used moved.
37015         Reported by Jim Meyering.
37016
37017 2008-07-14  Ben Pfaff  <blp@gnu.org>
37018
37019         Add isinf module.
37020         * lib/isinf.c: New file.
37021         * lib/math.in.h: Define isinf macro if we have decided to replace
37022         it.
37023         * m4/isinf.m4: New file.
37024         * m4/math_h.m4: Initialize and substitute variables for isinf
37025         module.
37026         * modules/isinf: New file.
37027         * modules/isinf-tests: New file.
37028         * modules/math: Add substitutions for new module.
37029         * tests/test-isinf.c: New file.
37030         * doc/posix-functions/isinf.texi: Mention new module.
37031         * MODULES.html.sh: Mention new module.
37032
37033 2008-07-14  Ben Pfaff  <blp@gnu.org>
37034
37035         Factor out some macros for use by additional modules.
37036         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37037         exponentf.m4.
37038         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37039         exponentd.m4.
37040         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37041         file exponentl.m4.
37042         * m4/exponentf.m4: New file.
37043         * m4/exponentd.m4: New file.
37044         * m4/exponentl.m4: New file.
37045         * modules/isnanf: Use new file m4/exponentf.m4.
37046         * modules/isnand: Use new file m4/exponentd.m4.
37047         * modules/isnanl: Use new file m4/exponentl.m4.
37048
37049 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37050
37051         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37052         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37053         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37054         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37055
37056         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37057         readlink on platforms without PATH_MAX.
37058
37059 2008-07-21  Eric Blake  <ebb9@byu.net>
37060
37061         Warn, not fail, on stale version.
37062         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37063
37064         Don't allow installation with stale devel version number.
37065         * top/GNUmakefile (_is-install-target): New macro.
37066         (_curr-ver): Forbid installation with stale version number.
37067
37068 2008-07-20  Bruno Haible  <bruno@clisp.org>
37069
37070         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37071         TESTS_ENVIRONMENT.
37072         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37073
37074 2008-07-20  Bruno Haible  <bruno@clisp.org>
37075
37076         * lib/c-stack.h (c_stack_action): Add documentation.
37077         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37078
37079 2008-07-20  Bruno Haible  <bruno@clisp.org>
37080
37081         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37082         * modules/readlink (License): Likewise.
37083
37084 2008-07-17  Eric Blake  <ebb9@byu.net>
37085
37086         * modules/c-stack (Link): Fix typo.
37087
37088         Make c-stack use libsigsegv, when available.
37089         * modules/c-stack (Depends-on): Add libsigsegv.
37090         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37091         needed.
37092         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37093         (segv_handler, overflow_handler, c_stack_action)
37094         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37095         implementation when libsigsegv is available, but only when using
37096         the library is necessary.
37097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37098         comment, explaining why XSI check fails on Linux.
37099         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37100         * tests/test-c-stack2.sh: Tweak skip message.
37101         * NEWS: Document new link-time requirements.
37102
37103 2008-07-16  Eric Blake  <ebb9@byu.net>
37104
37105         c-stack: Expose false positives when not using libsigsegv.
37106         * modules/c-stack-tests (Files): Expand test.
37107         * tests/test-c-stack.c (main): Add means to conditionally trigger
37108         non-overflow SIGSEGV.
37109         * tests/test-c-stack2.sh: New file.
37110
37111 2008-07-14  Bruno Haible  <bruno@clisp.org>
37112
37113         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37114         Reported by Eric Blake.
37115
37116 2008-07-14  Sam Steingold  <sds@gnu.org>
37117             Bruno Haible  <bruno@clisp.org>
37118
37119         New module libsigsegv.
37120         * modules/libsigsegv: New file.
37121         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37122         modifications.
37123         * MODULES.html.sh (Signal handling): New section.
37124
37125 2008-07-14  Bruno Haible  <bruno@clisp.org>
37126
37127         * modules/unictype/ctype-* (Description): Add the word "function".
37128         Improves the resulting doc in MODULES.html.
37129
37130 2008-07-12  Ben Pfaff  <blp@gnu.org>
37131
37132         Add longlong module.
37133         * modules/longlong: New file.
37134
37135 2008-07-12  Bruno Haible  <bruno@clisp.org>
37136
37137         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37138         to empty.
37139
37140 2008-07-10  Ben Pfaff  <blp@gnu.org>
37141
37142         Add isnan module.
37143         * doc/posix-functions/isnan.texi: Mention new module.
37144         * lib/math.in.h: Define isnan macro if we have decided to replace
37145         it.
37146         * m4/isnan.m4: New file.
37147         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37148         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37149         also.
37150         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37151         redundancy.
37152         * m4/math_h.m4: Initialize and substitute variables for isnan
37153         module.
37154         * modules/isnan: New file.
37155         * modules/isnan-tests: New file.
37156         * modules/math: Add substitutions for new module.
37157         * tests/test-isnan.c: New file.
37158         * MODULES.html.sh: Mention new module.
37159
37160 2008-07-10  Ben Pfaff  <blp@gnu.org>
37161
37162         Add isnanf module.
37163         * lib/isnanf.m4: New file.
37164         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37165         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37166         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37167         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37168         * modules/isnanf: New file.
37169         * modules/isnanf-tests: New file.
37170         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37171         files.
37172         * tests/test-isnanf-nolibm.c: factored most of its contents into
37173         new file tests/test-isnanf.h.
37174         * tests/test-isnanf.h: New file.
37175         * tests/test-isnanf.c: New file.
37176         * MODULES.html.sh: Mention new module.
37177         * doc/glibc-functions/isnanf.texi: Mention new module.
37178
37179 2008-07-10  Ben Pfaff  <blp@gnu.org>
37180
37181         Add isnand module.
37182         * lib/isnand.h: New file.
37183         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37184         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37185         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37186         functionality also.
37187         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37188         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37189         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37190         * modules/isnand: New file.
37191         * modules/isnand-tests: New file.
37192         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37193         files.
37194         * tests/test-isnand-nolibm.c: factored most of its contents into
37195         new file tests/test-isnand.h.
37196         * tests/test-isnand.h: New file.
37197         * tests/test-isnand.c: New file.
37198         * MODULES.html.sh: Mention new module.
37199
37200 2008-07-10  Ben Pfaff  <blp@gnu.org>
37201
37202         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37203         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37204         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37205         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
37206         * modules/isnanf-nolibm: Update references to renamed files.
37207         * modules/isnand-nolibm: Likewise.
37208         * modules/isnanf-nolibm-tests: Likewise.
37209         * modules/isnand-nolibm-tests: Likewise.
37210         * lib/frexp.c: Likewise.
37211         * lib/isfinite.c: Likewise.
37212         * lib/signbitd.c: Likewise.
37213         * lib/signbitf.c: Likewise.
37214         * lib/vasnprintf.c: Likewise.
37215         * tests/test-ceilf1.c: Likewise.
37216         * tests/test-ceilf2.c: Likewise.
37217         * tests/test-floorf1.c: Likewise.
37218         * tests/test-floorf2.c: Likewise.
37219         * tests/test-frexp.c: Likewise.
37220         * tests/test-round1.c: Likewise.
37221         * tests/test-round2.c: Likewise.
37222         * tests/test-roundf1.c: Likewise.
37223         * tests/test-strtod.c: Likewise.
37224         * tests/test-trunc1.c: Likewise.
37225         * tests/test-trunc2.c: Likewise.
37226         * tests/test-truncf1.c: Likewise.
37227         * tests/test-truncf2.c: Likewise.
37228         * NEWS: Mention the renamed header files.
37229
37230 2008-07-11  Jim Meyering  <meyering@redhat.com>
37231
37232         vc-list-files: make the last-resort awk code more portable
37233         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
37234         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
37235         does not support it.
37236
37237 2008-07-10  Eric Blake  <ebb9@byu.net>
37238
37239         Work with tar's bootstrap.
37240         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
37241         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
37242         an m4 comment.
37243
37244 2008-07-09  Jim Meyering  <meyering@redhat.com>
37245
37246         posix-shell.m4: fix typo that made this test malfunction
37247         * m4/posix-shell.m4: Remove capitalization in variable name.
37248
37249 2008-07-08  Bruno Haible  <bruno@clisp.org>
37250
37251         * m4/onceonly.m4: Update comments.
37252         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37253
37254 2008-07-04  Jim Meyering  <meyering@redhat.com>
37255
37256         * users.txt: Add vc-dwim.
37257         (bison, coreutils): Use the gitweb URL.
37258
37259 2008-07-03  Jim Meyering  <meyering@redhat.com>
37260
37261         * users.txt: Add libffcall.  From Sam Steingold.
37262
37263 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
37264
37265         getdate.y: do not ignore TZ with relative day, month or year offset
37266         * lib/getdate.y (get_date): Move the tz-handling block to follow the
37267         relative-date-handling, since otherwise, the latter would clobber the
37268         sole output (an updated Start value) of the tz-handling block.
37269         * tests/test-getdate.c: Tests for the fix
37270
37271 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37272
37273         Recognize 'foo_LIBRARIES += libgnu.a'.
37274         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
37275         makefile snippet has already specified an installation location,
37276         also using '+='.
37277
37278 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
37279
37280         getdate.y: factor out common actions
37281         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
37282         Use them in place of open-coded actions.
37283
37284 2008-07-01  Simon Josefsson  <simon@josefsson.org>
37285
37286         Add self-test for getdate module.
37287         * modules/getdate-tests: New file.
37288         * tests/test-getdate.c: New file.
37289
37290 2008-06-29  Bruno Haible  <bruno@clisp.org>
37291
37292         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
37293         .gitignore.
37294         Reported by Sylvain Beucler <beuc@beuc.net>.
37295
37296 2008-06-29  Bruno Haible  <bruno@clisp.org>
37297
37298         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
37299         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
37300
37301 2008-06-29  Bruno Haible  <bruno@clisp.org>
37302
37303         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
37304         EXTRA_DIST.
37305         Reported by Sylvain Beucler <beuc@beuc.net>.
37306
37307 2008-06-26  Jim Meyering  <meyering@redhat.com>
37308
37309         make several modules depend on the "open" module
37310         This provides slightly increased consistency when opening-for-write
37311         the name of a non-directory spelled with a trailing slash.
37312         * modules/chdir-safer: Likewise.
37313         * modules/chown: Likewise.
37314         * modules/clean-temp: Likewise.
37315         * modules/copy-file: Likewise.
37316         * modules/fchdir: Likewise.
37317         * modules/fcntl-safer: Likewise.
37318         * modules/pipe: Likewise.
37319         * modules/utime: Likewise.
37320         Prompted by Eric Blake and Bruno Haible.
37321
37322 2008-06-24  Andreas Schwab  <schwab@suse.de>
37323
37324         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
37325         literals can be used as initializers for global variables.
37326
37327 2008-06-23  Eric Blake  <ebb9@byu.net>
37328
37329         Make gnulib-cache.m4 easier to diff.
37330         * gnulib-tool (func_import): Allow newlines when reading cached
37331         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
37332
37333 2008-06-23  Bruno Haible  <bruno@clisp.org>
37334
37335         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
37336         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
37337         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
37338         m4/signalblocking.m4.
37339         (gl_PREREQ_SIGACTION): Don't invoke it.
37340         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
37341         gl_PREREQ_SIG_HANDLER_H.
37342         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37343         Don't check for sigaction here.
37344
37345 2008-06-23  Bruno Haible  <bruno@clisp.org>
37346
37347         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
37348         (install_handlers): Don't set the SA_RESETHAND flag.
37349
37350 2008-06-23  Bruno Haible  <bruno@clisp.org>
37351
37352         * m4/sigaction.m4: Comment fixes.
37353         * lib/signal.in.h: Likewise.
37354
37355 2008-06-23  Eric Blake  <ebb9@byu.net>
37356
37357         Fix typo.
37358         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
37359
37360         Avoid SA_ namespace.
37361         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
37362         Reported by Ralf Wildenhues.
37363
37364         Avoid test failure due to SA_RESTORER.
37365         * tests/test-sigaction.c (SA_MASK): New macro.
37366         (main): Avoid failing due to extension flags being set.
37367         Reported by Jim Meyering.
37368
37369         Revert use of sig-handler.h in sigprocmask.c.
37370         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
37371         it requires the existence of struct sigaction.
37372         * lib/sigprocmask.c (handler_t): Restore typedef.
37373         (rpl_signal, old_handlers): Use local type.
37374
37375 2008-06-22  Bruno Haible  <bruno@clisp.org>
37376
37377         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
37378         conditionally.
37379         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37380
37381 2008-06-22  Bruno Haible  <bruno@clisp.org>
37382
37383         * doc/posix-functions/siginterrupt.texi: Move note.
37384
37385         * lib/signal.in.h (SA_RESTART): New macro.
37386         * lib/sigaction.c: Update comment.
37387
37388         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
37389
37390         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
37391         (gl_PREREQ_SIGPROCMASK): Invoke it.
37392         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
37393
37394         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
37395
37396         * lib/sigprocmask.c: Update a comment.
37397
37398 2008-06-21  Eric Blake  <ebb9@byu.net>
37399
37400         Use sigaction module rather than signal().
37401         * modules/c-stack (Depends-on): Add sigaction.
37402         * modules/fatal-signal (Depends-on): Likewise.
37403         * modules/nanosleep (Depends-on): Likewise.
37404         * modules/sigprocmask (Files): Add sig-handler.h.
37405         * modules/sigaction (Files): Likewise.
37406         * lib/sig-handler.h (get_handler): New file, suggested by Paul
37407         Eggert.
37408         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
37409         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
37410         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
37411         (init_fatal_signals): Likewise.
37412         * lib/nanosleep.c (rpl_nanosleep): Likewise.
37413         (siginterrupt): Delete fallback.
37414         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
37415         instead.
37416         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
37417         siginterrupt.
37418
37419         New module sigaction, for mingw.
37420         * modules/sigaction: New module...
37421         * modules/sigaction-tests: ...and its test.
37422         * m4/sigaction.m4: New file.
37423         * lib/sigaction.c: Likewise.
37424         * tests/test-sigaction.c: Likewise.
37425         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
37426         * modules/signal (Makefile.am): Likewise.
37427         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
37428         needed.
37429         * doc/posix-headers/signal.texi (signal.h): Mention provided
37430         types.
37431         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
37432         that sigaction is preferable.
37433         * doc/posix-functions/sigaction.texi (sigaction): Mention new
37434         module.
37435         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37436         sigaction.
37437
37438         Improve robustness of sigprocmask by overriding signal.
37439         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
37440         is in use.
37441         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
37442         (SIGKILL, SIGSTOP): Provide fallbacks.
37443         (rpl_signal): Implement.
37444         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
37445         signal can be called inside handlers.
37446
37447         Fix nanosleep module on mingw.
37448         * modules/nanosleep (Depends-on): Add sys_select.
37449         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
37450
37451         Fix licensing of sigprocmask.
37452         * modules/raise (License): Relicense as LGPL.
37453
37454 2008-06-21  Bruno Haible  <bruno@clisp.org>
37455
37456         * lib/propername.c (proper_name_utf8): Don't use the transliterated
37457         result if it contains question marks.
37458         Reported by Michael Geng <linux@michaelgeng.de>.
37459
37460 2008-06-19  Bruno Haible  <bruno@clisp.org>
37461
37462         Fix CVS-ism.
37463         * doc/gnulib.texi: Include updated-stamp.texi.
37464         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
37465         (updated-stamp.texi): New rule.
37466         (gnulib.info): Depend on it.
37467         * doc/.gitignore: Add updated-stamp.texi.
37468         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
37469
37470 2008-06-19  Bruno Haible  <bruno@clisp.org>
37471
37472         * doc/Makefile (gnulib.info): Update and simplify dependencies.
37473         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
37474
37475 2008-06-19  Eric Blake  <ebb9@byu.net>
37476
37477         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
37478         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
37479         Reported by Stepan Kasal.
37480
37481 2008-06-18  Bruno Haible  <bruno@clisp.org>
37482
37483         * lib/fatal-signal.c (init_fatal_signals): Add comment.
37484         Reported by Eric Blake.
37485
37486 2008-06-18  Eric Blake  <ebb9@byu.net>
37487
37488         Work around cygwin 1.5.25 strsignal bug.
37489         * tests/test-strsignal.c: Allow for const char *.
37490         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
37491
37492 2008-06-18  Simon Josefsson  <simon@josefsson.org>
37493
37494         * users.txt: Update URL to article and add author/date
37495         information.
37496
37497 2008-06-17  Bruno Haible  <bruno@clisp.org>
37498
37499         New macro gl_DISABLE_THREADS.
37500         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
37501         if the user did not pass --enable-threads or --disable-threads option.
37502         (gl_DISABLE_THREADS): New macro.
37503         Reported by Eric Blake <ebb9@byu.net>.
37504
37505 2008-06-17  Bruno Haible  <bruno@clisp.org>
37506
37507         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
37508         when the macro ignores it.
37509         Based on a patch by Eric Blake <ebb9@byu.net>.
37510
37511 2008-06-17  Bruno Haible  <bruno@clisp.org>
37512
37513         * modules/tls (License): Change to LGPLv2+.
37514         Reported by Eric Blake.
37515
37516 2008-06-17  Eric Blake  <ebb9@byu.net>
37517
37518         Simplify c-stack prerequisites.
37519         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
37520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
37521         no longer requires <ucontext.h> to exist.  Optimize setrlimit
37522         check.
37523         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
37524         <sys/resource.h>.
37525
37526         Move c-stack test into testsuite.
37527         * modules/c-stack-tests: New file.
37528         * lib/c-stack.c [DEBUG]: Move test program...
37529         * tests/test-c-stack.c: ...into this new file.  Skip rather than
37530         fail test if sigaltstack is lacking.
37531         * tests/test-c-stack.sh: New driver file.
37532
37533 2008-06-16  Eric Blake  <ebb9@byu.net>
37534
37535         Use raise module consistently.
37536         * modules/fatal-signal (Depends-on): Add raise.
37537         * modules/sigprocmask (Depends-on): Likewise.
37538         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
37539         * lib/sigprocmask.c (sigprocmask): Likewise.
37540         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37541         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
37542
37543         Fix compliance bug in sigpending.
37544         * lib/sigprocmask.c (sigpending): Return pending array via
37545         parameter, not return value.
37546
37547 2008-06-14  Eric Blake  <ebb9@byu.net>
37548
37549         Improve obstack-printf test code.
37550         * tests/test-obstack-printf.c (test_function): Fix comment, and
37551         simplify usage of obstack_* in macros.  Add a test for coverage.
37552         Reported by Bruno Haible.
37553
37554 2008-06-14  Bruno Haible  <bruno@clisp.org>
37555
37556         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
37557         array size as a constant, not as a const variable.
37558         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
37559         AC_USE_SYSTEM_EXTENSIONS.
37560         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37561         Test whether the obstack_printf function actually exists.
37562         * modules/obstack-printf (Depends-on): Add extensions.
37563         (Include): Remove obstack.h.
37564         * modules/obstack-printf-posix (Depends-on): Add extensions.
37565         (Include): Remove obstack.h.
37566
37567 2008-06-13  Eric Blake  <ebb9@byu.net>
37568
37569         Add obstack-printf and obstack-printf-posix modules.
37570         * modules/obstack-printf: New file.
37571         * modules/obstack-printf-posix: Likewise.
37572         * MODULES.html.sh (Misc): Mention them.
37573         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37574         Likewise.
37575         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37576         Likewise.
37577         * modules/stdio (Makefile.am): Accomodate new modules.
37578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37579         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
37580         Declare.
37581         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
37582         functions.
37583         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
37584         (gl_REPLACE_OBSTACK_PRINTF): New macros
37585         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
37586         * tests/test-obstack-printf.c: New file.
37587         * modules/obstack-printf-tests: Likewise.
37588         * modules/obstack-printf-posix-tests: Likewise.
37589
37590 2008-06-11  Bruno Haible  <bruno@clisp.org>
37591
37592         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
37593         * lib/open.c: Include errno.h.
37594         (open): Fail when attempting to write to a file that has a trailing
37595         slash.
37596         * tests/test-open.c (main): Test against trailing slash bug.
37597         * doc/posix-functions/open.texi: Mention the trailing slash bug.
37598
37599 2008-06-10  Bruno Haible  <bruno@clisp.org>
37600
37601         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
37602         for $? to work inside the trap command, with various /bin/sh-s.
37603         * tests/test-vc-list-files-cvs.sh: Likewise.
37604
37605 2008-06-10  Bruno Haible  <bruno@clisp.org>
37606
37607         * lib/acl-internal.h: Don't include gettext.h here.
37608         * lib/set-mode-acl.c: Include gettext.h here.
37609         * lib/copy-acl.c: Likewise.
37610
37611 2008-06-10  Bruno Haible  <bruno@clisp.org>
37612
37613         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
37614         * lib/wait-process.c (wait_subprocess): Likewise.
37615         * lib/execute.h (execute): Add termsigp argument.
37616         * lib/execute.c (execute): Likewise.
37617         * lib/csharpcomp.c (compile_csharp_using_pnet,
37618         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
37619         * lib/csharpexec.c (execute_csharp_using_pnet,
37620         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
37621         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
37622         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
37623         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
37624         is_jikes_present): Update.
37625         * lib/javaexec.c (execute_java_class): Update.
37626         * lib/javaversion.c (execute_and_read_line): Update.
37627         * NEWS: Document the changes.
37628         Reported by Eric Blake.
37629
37630 2008-06-10  Eric Blake  <ebb9@byu.net>
37631
37632         Add missing include.
37633         * tests/test-strstr.c (includes): Add <signal.h>.
37634         * tests/test-strcasestr.c (includes): Likewise.
37635         * tests/test-memmem.c (includes): Likewise.
37636
37637 2008-06-10  Bruno Haible  <bruno@clisp.org>
37638
37639         * lib/wait-process.c (wait_subprocess): Add an assertion.
37640
37641 2008-06-10  Bruno Haible  <bruno@clisp.org>
37642
37643         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
37644
37645 2008-06-10  Bruno Haible  <bruno@clisp.org>
37646
37647         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
37648         using alarm().
37649         * tests/test-strcasestr.c (main): Likewise.
37650         * tests/test-strstr.c (main): Likewise.
37651
37652 2008-06-09  Bruno Haible  <bruno@clisp.org>
37653
37654         Work around the Solaris 10 ACE ACLs ABI change.
37655         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
37656         declare if ACL_NO_TRIVIAL is present.
37657         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
37658         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
37659         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
37660         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
37661         define if ACL_NO_TRIVIAL is present.
37662         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
37663         and use the current ABI.
37664         (file_has_acl): Use same #if condition as elsewhere.
37665         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
37666         in use, and use the current ABI.
37667         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
37668         Reported by Jim Meyering.
37669
37670 2008-06-09  Eric Blake  <ebb9@byu.net>
37671
37672         Work around environments that (stupidly) ignore SIGALRM.
37673         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
37674         before using alarm().
37675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37676         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37677         Reported by Ian Beckwith <ianb@erislabs.net>.
37678
37679         Produce autobuild blurb earlier in log.
37680         * modules/autobuild (configure.ac-early): Move AB_INIT here.
37681
37682 2008-06-09  Jim Meyering  <meyering@redhat.com>
37683         and OndÅ™ej Vašík  <ovasik@redhat.com>
37684
37685         utimens.c: correct kernel bug work-around
37686         OndÅ™ej Vašík found that the invalid return value of 280 indicates
37687         failure, not success, and the kernel bug we're trying to work
37688         around affects not just the utimensat call, but also the fallback
37689         futimens call.
37690         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
37691         not success.
37692         [HAVE_FUTIMENS]: Use the same work-around, here.
37693
37694 2008-06-09  Jim Meyering  <meyering@redhat.com>
37695
37696         add more guards around definition of ACE_-related code
37697         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
37698         ALLOW and ACE_OWNER are also defined.
37699
37700 2008-06-08  Bruno Haible  <bruno@clisp.org>
37701
37702         * lib/acl-internal.h: Add me as co-author.
37703         * lib/file-has-acl.c: Likewise.
37704         * lib/set-mode-acl.c: Likewise.
37705         * lib/copy-acl.c: Likewise.
37706
37707 2008-06-08  Bruno Haible  <bruno@clisp.org>
37708
37709         Add support for AIX ACLs.
37710         * lib/acl-internal.h (acl_nontrivial): New declaration.
37711         * lib/file-has-acl.c (acl_nontrivial): New function.
37712         (file_has_acl): Add implementation using AIX 4 ACL API.
37713         * lib/set-mode-acl.c (qset_acl): Likewise.
37714         * lib/copy-acl.c (qcopy_acl): Likewise.
37715
37716 2008-06-08  Bruno Haible  <bruno@clisp.org>
37717
37718         Add support for HP-UX ACLs.
37719         * lib/acl-internal.h (acl_nontrivial): New declaration.
37720         * lib/file-has-acl.c (acl_nontrivial): New function.
37721         (file_has_acl): Add implementation using HP-UX 11 ACL API.
37722         * lib/set-mode-acl.c (qset_acl): Likewise.
37723         * lib/copy-acl.c (qcopy_acl): Likewise.
37724
37725 2008-06-08  Bruno Haible  <bruno@clisp.org>
37726
37727         Add support for Cygwin ACLs.
37728         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
37729         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
37730         the chmod_or_fchmod call.
37731         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
37732
37733 2008-06-08  Bruno Haible  <bruno@clisp.org>
37734
37735         Fix bug with setuid modes in Solaris 10+ code.
37736         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
37737         succeeded, when the mode contains some special bits.
37738
37739 2008-06-08  Bruno Haible  <bruno@clisp.org>
37740
37741         Add support for Solaris 7..10 ACLs.
37742         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
37743         declarations.
37744         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
37745         functions.
37746         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
37747         * lib/set-mode-acl.c (qset_acl): Likewise.
37748         * lib/copy-acl.c (qcopy_acl): Likewise.
37749
37750 2008-06-08  Bruno Haible  <bruno@clisp.org>
37751
37752         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
37753         declaration.
37754         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
37755         (acl_access_nontrivial): Remove MacOS X case.
37756         (file_has_acl): Use acl_extended_nontrivial.
37757         * lib/copy-acl.c (qcopy_acl): Likewise.
37758
37759 2008-06-08  Bruno Haible  <bruno@clisp.org>
37760
37761         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
37762
37763 2008-06-08  Jim Meyering  <meyering@redhat.com>
37764
37765         * modules/acl (Maintainer): Add Bruno Haible.
37766
37767 2008-06-07  Bruno Haible  <bruno@clisp.org>
37768
37769         Improve support for Tru64 ACLs.
37770         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
37771         ACL on OSF/1.
37772
37773 2008-06-07  Bruno Haible  <bruno@clisp.org>
37774
37775         Add support for MacOS X ACLs.
37776         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
37777         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
37778         * lib/set-mode-acl.c (qset_acl): Likewise.
37779         * lib/copy-acl.c (qcopy_acl): Likewise.
37780
37781 2008-06-07  Bruno Haible  <bruno@clisp.org>
37782
37783         Fix memory leak introduced on 2008-05-22.
37784         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
37785         use.
37786
37787 2008-06-07  Bruno Haible  <bruno@clisp.org>
37788
37789         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
37790         to construct an empty ACL.
37791
37792 2008-06-07  Bruno Haible  <bruno@clisp.org>
37793
37794         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
37795         precisely.
37796         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
37797
37798 2008-06-07  Bruno Haible  <bruno@clisp.org>
37799
37800         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
37801         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
37802
37803 2008-06-07  Bruno Haible  <bruno@clisp.org>
37804
37805         * doc/posix-functions/_setjmp.texi: Explain the use of this function
37806         regardless of POSIX.
37807         * doc/posix-functions/_longjmp.texi: Likewise.
37808         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
37809         SystemV platform in this case.
37810
37811 2008-06-06  Eric Blake  <ebb9@byu.net>
37812
37813         Document abort() bugs.
37814         * doc/posix-functions/abort.texi (abort): Mention anomalies.
37815
37816         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
37817         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
37818         sigsetjmp.
37819         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
37820         siglongjmp, but only as a macro.
37821         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
37822         is obsolete.
37823         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
37824
37825         Tweak documentation to cover cygwin argz bugs.
37826         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
37827         argz bug fix; no code change needed since no cygwin releases
37828         occurred between the last fix and the bug being tested.
37829         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
37830         module and recently fixed cygwin bugs.
37831         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
37832         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
37833         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
37834         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
37835         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
37836         Likewise.
37837         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
37838         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37839         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
37840         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
37841         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
37842         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
37843         Likewise.
37844
37845         Avoid gcc warning on cygwin.
37846         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
37847         !ACL_NO_TRIVIAL]: Avoid unused variable.
37848
37849 2008-06-05  Eric Blake  <ebb9@byu.net>
37850
37851         Be tolerant of UNKNOWN version in gnulib-tool test dir.
37852         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
37853         git-version-gen fails to come up with a version.
37854         Reported by Simon Josefsson.
37855
37856 2008-06-05  Jim Meyering  <meyering@redhat.com>
37857             Paul Eggert  <eggert@cs.ucla.edu>
37858
37859         utimens.c: work around a probable Linux kernel bug
37860         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
37861         appears to be a kernel bug that causes utimensat to return 280
37862         instead of 0, indicating success.
37863
37864 2008-06-04  Bruno Haible  <bruno@clisp.org>
37865
37866         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
37867         2008-06-01 commit.
37868
37869 2008-06-04  Bruno Haible  <bruno@clisp.org>
37870
37871         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
37872         * lib/file-has-acl.c (acl_access_nontrivial): New function.
37873         (file_has_acl): Use it. Save errno afterwards.
37874         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
37875
37876 2008-06-03  Bruno Haible  <bruno@clisp.org>
37877
37878         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
37879         draft code. Simplify #ifs.
37880         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
37881         Put Solaris code after POSIX-draft code. Fix comments regarding
37882         Solaris 10, HP-UX. Mention Cygwin.
37883         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
37884
37885 2008-06-03  Eric Blake  <ebb9@byu.net>
37886
37887         Provide fallback for older kernels.
37888         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
37889         Provide runtime fallback if kernel lacks support.
37890         Reported by Mike Frysinger.
37891
37892 2008-06-02  Bruno Haible  <bruno@clisp.org>
37893
37894         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
37895         it exists.
37896
37897 2008-06-02  Bruno Haible  <bruno@clisp.org>
37898
37899         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
37900         * lib/copy-acl.c (qcopy_acl): Update comment.
37901
37902 2008-06-02  Bruno Haible  <bruno@clisp.org>
37903
37904         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
37905         like ACL APIs.
37906
37907 2008-06-02  Bruno Haible  <bruno@clisp.org>
37908
37909         * tests/test-file-has-acl.sh: Use different code for Cygwin.
37910         * tests/test-set-mode-acl.sh: Likewise.
37911         * tests/test-copy-acl.sh: Likewise.
37912         * tests/test-copy-file.sh: Likewise.
37913
37914 2008-06-02  Bruno Haible  <bruno@clisp.org>
37915
37916         * tests/test-file-has-acl.sh: Remove unused code.
37917
37918 2008-06-01  Bruno Haible  <bruno@clisp.org>
37919
37920         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
37921         (copy_acl): Just a wrapper around qcopy_acl that emits the error
37922         messages.
37923         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
37924
37925 2008-06-01  Bruno Haible  <bruno@clisp.org>
37926
37927         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
37928         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
37929         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
37930         APIs.
37931         * modules/acl-tests (configure.ac): Remove tests now contained in
37932         m4/acl.m4.
37933
37934 2008-06-02  Jim Meyering  <meyering@redhat.com>
37935
37936         announce-gen: use a better key-server host name
37937         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
37938         it may be more consistently reliable.  Suggested by Werner Koch
37939         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
37940
37941 2008-06-01  Bruno Haible  <bruno@clisp.org>
37942
37943         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
37944         Reported by Voroskoi Andras <voroskoi@gmail.com>.
37945
37946 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
37947
37948         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
37949
37950 2008-06-01  Bruno Haible  <bruno@clisp.org>
37951
37952         New ACL tests.
37953         * tests/test-file-has-acl.sh: New file.
37954         * tests/test-file-has-acl.c: New file.
37955         * tests/test-set-mode-acl.sh: New file.
37956         * tests/test-set-mode-acl.c: New file.
37957         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
37958         * tests/test-copy-acl.c: New file.
37959         * modules/acl-tests: New file, based on modules/copy-file-tests.
37960         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
37961         (Depends-on): Add acl-tests.
37962         (configure.ac): Remove checks.
37963         (Makefile.am): Don't create test-sameacls program here any more.
37964
37965 2008-06-01  Bruno Haible  <bruno@clisp.org>
37966
37967         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
37968         * tests/test-sameacls.c: Include progname.h.
37969         (main): Invoke set_program_name. Portability fixes for MacOS X,
37970         Solaris, HP-UX.
37971
37972 2008-06-01  Bruno Haible  <bruno@clisp.org>
37973
37974         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
37975         function.
37976         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
37977
37978 2008-06-01  Bruno Haible  <bruno@clisp.org>
37979
37980         * modules/rpmatch (Depends-on): Add strdup.
37981
37982 2008-06-01  Bruno Haible  <bruno@clisp.org>
37983
37984         * lib/pipe.c: Include unistd-safer.h.
37985         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
37986         * modules/pipe (Depends-on): Add unistd-safer.
37987
37988 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37989
37990         * modules/autobuild (configure.ac): Call AB_INIT.
37991
37992 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37993
37994         * tests/test-getaddrinfo.c: Don't print debug messages by default.
37995         Suggested by Bruno Haible <bruno@clisp.org>.
37996
37997 2008-05-30  Simon Josefsson  <simon@josefsson.org>
37998
37999         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38000         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38001         <bruno@clisp.org>.
38002
38003 2008-05-29  Eric Blake  <ebb9@byu.net>
38004
38005         Prefer new POSIX 200x interfaces over futimesat.
38006         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38007         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38008         when available.
38009         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38010
38011 2008-05-28  Bruno Haible  <bruno@clisp.org>
38012
38013         * modules/stpcpy (License): Change to LGPLv2+.
38014         Requested by David Lutterkort <dlutter@redhat.com>.
38015
38016 2008-05-27  Bruno Haible  <bruno@clisp.org>
38017
38018         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38019         current mingw.
38020         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38021
38022 2008-05-27  Bruno Haible  <bruno@clisp.org>
38023
38024         * modules/iconv_open (Link): New section, from module 'iconv'.
38025         * modules/striconv (Link): Likewise.
38026         * modules/striconveh (Link): Likewise.
38027         * modules/xstriconv (Link): Likewise.
38028         * modules/unicodeio (Link): Likewise.
38029         * modules/propername (Link): Likewise.
38030         Reported by Jim Meyering.
38031
38032 2008-05-26  Jim Meyering  <meyering@redhat.com>
38033
38034         sha256: do not artificially restrict buffer length to be < 2^32
38035         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38036         uint32_t to size_t.
38037         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38038         to match.
38039
38040         avoid unaligned access errors, e.g., on sparc
38041         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38042         direct access through a possibly-unaligned uint64* pointer.
38043         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38044         direct access through a possibly-unaligned uint32* pointer.
38045         Prompted by this patch from Tom "spot" Callaway:
38046         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38047
38048         sha512.c: fix typo in comment
38049         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38050
38051 2008-05-25  Bruno Haible  <bruno@clisp.org>
38052
38053         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38054         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38055         (Makefile.am): Update lib_SOURCES.
38056
38057 2008-05-25  Bruno Haible  <bruno@clisp.org>
38058
38059         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38060
38061 2008-05-25  Jim Meyering  <meyering@redhat.com>
38062
38063         useless-if-before-free: freed expr may have white-space differences
38064         * build-aux/useless-if-before-free: Recognize cases in which the
38065         freed expression differs from the tested one in embedded white
38066         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38067         $1 was used, so we can't make any regexp shy.  Improved tests now
38068         detect this.
38069
38070         useless-if-before-free: accept white space in the expression.
38071         * build-aux/useless-if-before-free: For now, any white space
38072         in the expression must be identical in the free argument.
38073
38074         useless-if-before-free: efficiency tweak
38075         * build-aux/useless-if-before-free: Make the expression-matching
38076         regexp "shy".
38077         Make the *outer* regexp shy, not the expr-matching one.
38078
38079         update code-in-comment to accept cast of free arg
38080         * build-aux/useless-if-before-free: Update regexp.
38081
38082 2008-05-25  Bruno Haible  <bruno@clisp.org>
38083
38084         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38085         * modules/copy-file-tests (Files, Makefile.am): Update.
38086         * tests/test-copy-file.c (func_test_copy): Update.
38087
38088 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38089
38090         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38091
38092 2008-05-23  Bruno Haible  <bruno@clisp.org>
38093
38094         Improve support for ACLs on OSF/1.
38095         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38096         Remove fallback for unknown flavors of ACLs.
38097
38098 2008-05-22  Bruno Haible  <bruno@clisp.org>
38099
38100         Add support for ACLs on OSF/1.
38101         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38102         replacements.
38103         (acl_free_text): New macro fallback.
38104         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38105         acl_free.
38106         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38107         acl_free_text function. Require AC_C_INLINE.
38108
38109 2008-05-22  Bruno Haible  <bruno@clisp.org>
38110
38111         Make copy_acl work on MacOS X 10.5.
38112         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38113         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38114         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38115         If MODE_INSIDE_ACL, don't assume that every system has the same text
38116         representation for ACLs as FreeBSD.
38117         * lib/copy-acl.c (copy_acl): Add support for platforms with
38118         !MODE_INSIDE_ACL.
38119         * lib/file-has-acl.c (file_has_acl): Likewise.
38120         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38121         FreeBSD, MacOS X, or IRIX, respectively.
38122
38123 2008-05-22  Bruno Haible  <bruno@clisp.org>
38124
38125         * lib/acl.h: Don't include <sys/acl.h>.
38126         (GETACLCNT): Move fallback to lib/acl-internal.h.
38127         * lib/acl-internal.h: Include <sys/acl.h> here.
38128         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38129
38130 2008-05-22  Bruno Haible  <bruno@clisp.org>
38131
38132         Split off copy_acl function to separate file.
38133         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38134         * lib/acl.c (copy_acl): Moved function to separate file.
38135         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38136         * modules/acl (Files): Add lib/copy-acl.c.
38137         (Makefiles.am): Augment lib_SOURCES.
38138
38139 2008-05-22  Bruno Haible  <bruno@clisp.org>
38140
38141         * modules/copy-file-tests: New file.
38142         * tests/test-copy-file.sh: New file.
38143         * tests/test-copy-file.c: New file.
38144         * tests/test-copy-file-sameacls.c: New file.
38145
38146 2008-05-22  Eric Blake  <ebb9@byu.net>
38147
38148         Avoid gcc warning.
38149         * tests/test-memcmp.c (main): Pass NULL indirectly.
38150
38151 2008-05-21  Bruno Haible  <bruno@clisp.org>
38152
38153         Add reference doc about ACLs.
38154         * doc/acl-resources.txt: New file.
38155         * doc/acl-cygwin.txt: New file.
38156
38157 2008-05-21  Bruno Haible  <bruno@clisp.org>
38158
38159         Avoid one more warning from gcc.
38160         * lib/vasnprintf.c (IF_LINT): Update comments.
38161         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38162
38163 2008-05-21  Jim Meyering  <meyering@redhat.com>
38164
38165         avoid a warning from gcc
38166         * lib/vasnprintf.c (IF_LINT): Define.
38167         (scale10_round_decimal_long_double):
38168         Use it to avoid a "may be used uninitialized" warning.
38169         (scale10_round_decimal_double): Likewise.
38170
38171 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38172
38173         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38174         declared.
38175
38176 2008-05-20  Bruno Haible  <bruno@clisp.org>
38177
38178         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38179         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38180
38181 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38182
38183         * modules/memcmp-tests: New file.
38184         * tests/test-memcmp.c: New file.
38185
38186 2008-05-19  Bruno Haible  <bruno@clisp.org>
38187
38188         * modules/propername (Notice, configure.ac): Put quoted "..." into
38189         --keyword option.
38190         * lib/propername.h: Update comments accordingly.
38191         Reported by Eric Blake.
38192
38193 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38194
38195         * modules/getpass-gnu (Depends-on): Add fseeko.
38196
38197 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38198
38199         * modules/base64-tests: New file.
38200
38201 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38202
38203         * lib/base64.c (base64_decode_ctx): If a decode context structure
38204         was passed in use it to ignore newlines.  If a context structure
38205         was _not_ passed in, continue to treat newlines as garbage (this
38206         is the historical behavior).  Formerly base64_decode.
38207         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38208         takes a decode context structure.
38209         * lib/base64.h (base64_decode): Macro for four-argument calls.
38210         (base64_decode_alloc): Likewise.
38211         * lib/base64.c (base64_decode_ctx): If a decode context structure
38212         was passed in use it to ignore newlines.  If a context structure
38213         was _not_ passed in, continue to treat newlines as garbage (this
38214         is the historical behavior).  Formerly base64_decode.
38215         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
38216         takes a decode context structure.
38217         * lib/base64.h (base64_decode): Macro for four-argument calls.
38218         (base64_decode_alloc): Likewise.
38219
38220 2008-05-19  Jim Meyering  <meyering@redhat.com>
38221
38222         avoid a warning from gcc
38223         * lib/trim.c (IF_LINT): Define.
38224         (trim2): Use it to avoid a "may be used uninitialized" warning.
38225
38226         Fix doc typo.
38227         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
38228
38229 2008-05-19  Bruno Haible  <bruno@clisp.org>
38230
38231         * doc/glibc-functions/getpass.texi: Document limits of other
38232         implementations.
38233
38234 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38235             Bruno Haible <bruno@clisp.org>
38236
38237         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
38238
38239 2008-05-18  Bruno Haible  <bruno@clisp.org>
38240
38241         * modules/propername: New file, from GNU gettext.
38242         * lib/propername.h: New file, from GNU gettext.
38243         * lib/propername.c: New file, from GNU gettext.
38244         * MODULES.html.sh (Internationalization functions): Add propername.
38245
38246 2008-05-16  Jim Meyering  <meyering@redhat.com>
38247             Bruno Haible  <bruno@clisp.org>
38248
38249         Avoid some warnings from "gcc -Wshadow".
38250         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
38251
38252 2008-05-15  Eric Blake  <ebb9@byu.net>
38253
38254         Extend previous patch to cygwin 1.7.0.
38255         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
38256         fast implementation in cygwin >= 1.7.0.
38257         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38258         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38259
38260 2008-05-15  Bruno Haible  <bruno@clisp.org>
38261
38262         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
38263         implementation in glibc >= 2.9.
38264         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
38265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38266
38267 2008-05-15  Bruno Haible  <bruno@clisp.org>
38268
38269         * MODULES.html.sh (Internationalization functions): Remove linebreak.
38270         (Unicode string functions): Add unilbrk/*.
38271         Reported by Karl Berry.
38272
38273 2008-05-15  Eric Blake  <ebb9@byu.net>
38274
38275         Fix violation of <stdbool.h> replacement in regex.
38276         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
38277         * lib/regexec.c (re_search_internal): Likewise.
38278         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
38279
38280 2008-05-15  Jim Meyering  <meyering@redhat.com>
38281
38282         avoid distracting test output when git or cvs is not found
38283         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
38284         * tests/test-vc-list-files-git.sh: Likewise.
38285
38286 2008-05-15  Eric Blake  <ebb9@byu.net>
38287
38288         Glibc finally accepted the memmem speedup code, bugzilla #5514.
38289         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
38290         glibc version.
38291         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38292         * doc/posix-functions/strstr.texi (strstr): Likewise.
38293         * lib/str-two-way.h (MAX): Sychronize with glibc.
38294
38295 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
38296
38297         * lib/regcomp.c (optimize_utf8): Add a note on why we test
38298         opr.ctx_type.
38299         (calc_first): Initialize constraint field.
38300         (duplicate_node_closure): Use it instead of special casing ANCHORS.
38301         Fix grammar.
38302         (duplicate_node): Merge constraint field for all node types.
38303         (calc_eclosure_iter): Look at constraint field for all node types.
38304         * lib/regex_internal.c (create_cd_newstate): Don't look at
38305         opr.ctx_type.
38306
38307 2008-05-14  Bruno Haible  <bruno@clisp.org>
38308
38309         Help GCC to do better code generation.
38310         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
38311         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
38312         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
38313         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
38314         Declare with attribute 'malloc' if supported.
38315
38316 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
38317
38318         use "echo STR|wc -c" rather than unportable "expr length STR"
38319         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
38320         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
38321
38322 2008-05-14  Jim Meyering  <meyering@redhat.com>
38323
38324         use dd ibs=$n count=1 ... rather than less-portable head -c$n
38325         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
38326         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
38327         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
38328         via Collin Lasse.
38329
38330 2008-05-14  Eric Blake  <ebb9@byu.net>
38331
38332         Avoid quadratic growth in gl_LIBSOURCES.
38333         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
38334         Suggested by Bruno Haible.
38335
38336         Test xmemdup0.
38337         * modules/xmemdup0-tests: New file.
38338         * tests/test-xmemdup0.c: Likewise.
38339
38340 2008-05-13  Eric Blake  <ebb9@byu.net>
38341
38342         Split xmemdup0 into its own module.
38343         * modules/xmemdup0: New file.
38344         * lib/xmemdup0.h: Likewise.
38345         * lib/xmemdup0.c: Likewise.
38346         * MODULES.html.sh (Memory management functions): Add xmemdup0.
38347         * lib/xalloc.h (xmemdup0): Remove.
38348         * lib/xmalloc.c (xmemdup0): Likewise.
38349
38350 2008-05-13  Eric Blake  <ebb9@byu.net>
38351             Bruno Haible  <bruno@clisp.org>
38352
38353         Reduce number of forks required during autoconf.
38354         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
38355         and gl_LIBSOURCES_DIR.
38356         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
38357         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
38358         m4_syscmd per file.
38359         <m4_foreach_w>: Move...
38360         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
38361
38362 2008-05-13  Eric Blake  <ebb9@byu.net>
38363
38364         * gnulib-tool: Fix various comment typos.
38365
38366 2008-05-12  Bruno Haible  <bruno@clisp.org>
38367
38368         Tailor the linebreaking algorithm.
38369         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
38370
38371 2008-05-12  Bruno Haible  <bruno@clisp.org>
38372
38373         Update to Unicode 5.0.0.
38374         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38375         LBP_JV, LBP_JT. Redistribute values.
38376         (unilbrk_table): Change size.
38377         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
38378         Unicode TR#14 rev. 22.
38379         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
38380         LBP_JV, LBP_JT. Redistribute values.
38381         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
38382         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
38383         Update.
38384         * lib/unilbrk/lbrkprop1.h: Regenerated.
38385         * lib/unilbrk/lbrkprop2.h: Regenerated.
38386         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
38387         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
38388         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
38389         Likewise.
38390         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
38391         Likewise.
38392         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
38393         result.
38394         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
38395         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
38396         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
38397         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
38398         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
38399         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
38400
38401 2008-05-11  Bruno Haible  <bruno@clisp.org>
38402
38403         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
38404
38405 2008-05-11  Bruno Haible  <bruno@clisp.org>
38406
38407         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
38408         * modules/unilbrk/gen-lbrk: New file.
38409
38410 2008-05-11  Bruno Haible  <bruno@clisp.org>
38411
38412         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
38413         * m4/sha512.m4 (gl_SHA512): Likewise.
38414
38415 2008-05-11  Jim Meyering  <meyering@redhat.com>
38416
38417         New modules: crypto/sha256, crypto/sha512 (from coreutils)
38418         * modules/crypto/sha256: New file.
38419         * modules/crypto/sha512: Likewise.
38420         * lib/sha256.c: Likewise.
38421         * lib/sha256.h: Likewise.
38422         * lib/sha512.c: Likewise.
38423         * lib/sha512.h: Likewise.
38424         * lib/u64.h: Likewise.
38425         * m4/sha256.m4: Likewise.
38426         * m4/sha512.m4: Likewise.
38427         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
38428
38429 2008-05-10  Bruno Haible  <bruno@clisp.org>
38430
38431         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
38432         (Input/Output <stdio.h>): Add xprintf.
38433         (Signal handling <signal.h>): Add strsignal.
38434         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
38435         (Core language properties): Add func.
38436         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
38437         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
38438         strings.
38439         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
38440         (Input/output): New section.
38441         (File system functions): Add openat-die, stat-macros.
38442         (Networking functions): Add sockets.
38443         (Unicode string functions): Add unictype/*.
38444         (Support for building libraries and executables): Add gperf.
38445         (Support for building documentation): Add agpl-3.0.
38446         (Misc): Add nocrash.
38447
38448 2008-05-10  Bruno Haible  <bruno@clisp.org>
38449
38450         * modules/unictype/gen-ctype: New file.
38451
38452 2008-05-10  Jim Meyering  <meyering@redhat.com>
38453
38454         Make chdir-safer.c more efficient on a system with no symlinks.
38455         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
38456         also if ELOOP is zero.  Suggested by Bruno Haible.
38457
38458         Make chdir-safer.c slightly safer.
38459         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
38460         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
38461
38462         Avoid compile failure on systems without ELOOP (like mingw).
38463         * lib/chdir-safer.c (ELOOP): Define if not already defined.
38464         Reported by Bruno Haible.
38465
38466 2008-05-10  Bruno Haible  <bruno@clisp.org>
38467
38468         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
38469         (is_utf8_encoding): Use a case-insensitive comparison.
38470         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
38471         streq.
38472
38473 2008-05-10  Bruno Haible  <bruno@clisp.org>
38474
38475         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
38476         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
38477         * lib/unilbrk/ulc-common.h (iconv_string_length,
38478         iconv_string_keeping_offsets): Remove declarations.
38479         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
38480         Don't include <iconv.h>, streq.h, xsize.h.
38481         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
38482         conversion.
38483         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
38484         <iconv.h>, streq.h, xsize.h.
38485         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
38486         conversion.
38487         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
38488         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
38489         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
38490         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
38491
38492 2008-05-10  Bruno Haible  <bruno@clisp.org>
38493
38494         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
38495         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
38496
38497         * modules/unilbrk/u32-width-linebreaks-tests: New file.
38498         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
38499
38500         * modules/unilbrk/u16-width-linebreaks-tests: New file.
38501         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
38502
38503         * modules/unilbrk/u8-width-linebreaks-tests: New file.
38504         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
38505
38506         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
38507         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
38508
38509         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
38510         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
38511
38512         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
38513         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
38514
38515         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
38516         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
38517
38518 2008-05-10  Bruno Haible  <bruno@clisp.org>
38519
38520         Split up 'linebreak' module.
38521         * lib/unilbrk.h: New file, based on lib/linebreak.h.
38522         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
38523         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
38524         modifications.
38525         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
38526         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
38527         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
38528         lib/linebreak.c.
38529         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
38530         lib/linebreak.c.
38531         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
38532         lib/linebreak.c.
38533         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
38534         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
38535         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
38536         lib/linebreak.c.
38537         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
38538         lib/linebreak.c.
38539         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
38540         lib/linebreak.c.
38541         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
38542         lib/linebreak.c.
38543         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
38544         lib/linebreak.c.
38545         * modules/unilbrk/base: New file.
38546         * modules/unilbrk/tables: New file.
38547         * modules/unilbrk/u8-possible-linebreaks: New file.
38548         * modules/unilbrk/u16-possible-linebreaks: New file.
38549         * modules/unilbrk/u32-possible-linebreaks: New file.
38550         * modules/unilbrk/ulc-common: New file.
38551         * modules/unilbrk/ulc-possible-linebreaks: New file.
38552         * modules/unilbrk/u8-width-linebreaks: New file.
38553         * modules/unilbrk/u16-width-linebreaks: New file.
38554         * modules/unilbrk/u32-width-linebreaks: New file.
38555         * modules/unilbrk/ulc-width-linebreaks: New file.
38556         * lib/linebreak.h: Remove file.
38557         * lib/linebreak.c: Remove file.
38558         * m4/linebreak.m4: Remove file.
38559         * modules/linebreak: Remove file.
38560         * NEWS: Mention the changes.
38561
38562 2008-05-09  Eric Blake  <ebb9@byu.net>
38563
38564         Add xmemdup0.
38565         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
38566         implementation.
38567         * lib/xmalloc.c (xmemdup0): New C implementation.
38568
38569 2008-05-08  Bruno Haible  <bruno@clisp.org>
38570
38571         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
38572
38573 2008-05-07  Eric Blake  <ebb9@byu.net>
38574
38575         Support cross-compilation of <wctype.h>.
38576         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
38577         AC_CACHE_CHECK.
38578
38579 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
38580
38581         * build-aux/vc-list-files: Add support for bzr.
38582
38583 2008-05-03  Jim Meyering  <meyering@redhat.com>
38584
38585         avoid failed assertion with tight malloc
38586         * tests/test-getndelim2.c: Correct an off-by-one assertion.
38587
38588 2008-05-03  Simon Josefsson  <simon@josefsson.org>
38589
38590         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
38591         are needed from arpa/inet.h.
38592         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
38593         Reported by Bruno Haible.
38594
38595 2008-05-02  Jim Meyering  <meyering@redhat.com>
38596
38597         avoid compilation error on FreeBSD 6
38598         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
38599
38600 2008-05-01  Jim Meyering  <meyering@redhat.com>
38601
38602         useless-if-before-free: correct --help's exit status description
38603         * build-aux/useless-if-before-free (usage): Like grep, exit 0
38604         for one or more matches, etc.  Reported by Bruno Haible.
38605
38606         vc-list-files: make the stand-alone gnulib test work
38607         * modules/vc-list-files-tests (configure.ac):
38608         Define and AC_SUBST abs_aux_dir.
38609         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
38610         $(abs_top_srcdir) to each script and having each of them
38611         duplicate the work of setting PATH, set PATH here, using
38612         the new variable, abs_aux_dir instead.
38613         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
38614         * tests/test-vc-list-files-git.sh: Likewise.
38615         Reported by Bruno Haible.
38616
38617 2008-05-01  Bruno Haible  <bruno@clisp.org>
38618
38619         * lib/getndelim2.c (getndelim2): Fix newsize computation during
38620         reallocation. Rename 'done' to 'found_delimiter'.
38621
38622 2008-05-01  Jim Meyering  <meyering@redhat.com>
38623
38624         vc-list-files: accommodate /bin/sh like the one from Solaris 10
38625         * build-aux/vc-list-files: Use `...`, not $(...).
38626
38627 2008-04-30  Jim Meyering  <meyering@redhat.com>
38628
38629         add tests for vc-list-files
38630         * modules/vc-list-files-tests: New module.
38631         * tests/test-vc-list-files-cvs.sh: New file.
38632         * tests/test-vc-list-files-git.sh: New file.
38633
38634         avoid a warning from gcc
38635         * lib/getndelim2.c (IF_LINT): Define.
38636         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
38637
38638         vc-list-files: work properly with build-aux/cvsu, too
38639         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
38640         to all cvs-based clauses.
38641
38642         vc-list-files: work properly in the CVS+awk case, too
38643         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
38644
38645         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
38646         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
38647         take more than one file argument, so .  Add quotes, just in case $dir
38648         ever contains a shell meta-character.  Prompted by Soren Hansen in
38649         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
38650
38651 2008-04-29  Eric Blake  <ebb9@byu.net>
38652
38653         Optimize getndelim2 to use block operations when possible.
38654         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
38655         freadseek, and memchr2.
38656         * lib/getndelim2.c (getndelim2): Use them for block reads.
38657
38658 2008-04-29  Bruno Haible  <bruno@clisp.org>
38659
38660         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
38661         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38662         * modules/inet_ntop (Depends-on): Add extensions.
38663         * modules/inet_pton (Depends-on): Likewise.
38664         Reported by Simon Josefsson.
38665
38666 2008-04-29  Jim Meyering  <meyering@redhat.com>
38667
38668         When the is more than one match in a block, match all of them.
38669         * build-aux/useless-if-before-free: Iterate through each block
38670         until there are no more matches.
38671
38672         Fix broken useless-if-before-free script.
38673         * build-aux/useless-if-before-free: Fix typo: missing "?" after
38674         the expression to match cast of argument to free-like function.
38675
38676 2008-04-29  Eric Blake  <ebb9@byu.net>
38677
38678         Use new header.
38679         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
38680
38681 2008-04-29  Jim Meyering  <meyering@redhat.com>
38682
38683         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
38684         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
38685         by gnulib to exist and to declare e.g., inet_ntop.
38686         Don't include "inet_ntop.h", now removed.
38687
38688         * m4/arpa_inet_h.m4: Remove trailing blanks.
38689
38690 2008-04-29  Eric Blake  <ebb9@byu.net>
38691
38692         Silence valgrind on safe reads beyond potential array bounds.
38693         * lib/rawmemchr.valgrind: New file.
38694         * lib/strchrnul.valgrind: Likewise.
38695         * modules/rawmemchr (Files): Distribute new file.
38696         * modules/strchrnul (Files): Likewise.
38697         Suggested by Bruno Haible.
38698
38699 2008-04-29  Bruno Haible  <bruno@clisp.org>
38700
38701         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
38702         (inet_ntop, inet_pton): Change portability warning's wording.
38703         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
38704         Invoke gl_CHECK_NEXT_HEADERS.
38705         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
38706         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
38707         set ARPA_INET_H.
38708         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38709         * modules/arpa_inet (Description): No longer only for systems that
38710         lack it.
38711         (Depends-on): Add include_next.
38712         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
38713         HAVE_ARPA_INET_H.
38714
38715 2008-04-29  Jim Meyering  <meyering@redhat.com>
38716
38717         * modules/mkdir (License): Re-license as LGPLv2+.
38718
38719 2008-04-29  Bruno Haible  <bruno@clisp.org>
38720
38721         * modules/rawmemchr (Maintainer): Set to Eric.
38722         * modules/strchrnul (Maintainer): Likewise.
38723
38724 2008-04-29  Simon Josefsson  <simon@josefsson.org>
38725
38726         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
38727         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
38728
38729         * modules/arpa_inet (arpa/inet.h): Use them.
38730
38731 2008-04-28  Eric Blake  <ebb9@byu.net>
38732
38733         Test getndelim2.
38734         * modules/getndelim2-tests: New file.
38735         * tests/test-getndelim2.c: Likewise.
38736         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
38737         stream.
38738         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
38739
38740         * MODULES.html.sh: Document new module.
38741
38742 2008-04-20  Bruno Haible  <bruno@clisp.org>
38743
38744         * lib/c-stack.c (die): Use raise.
38745         * modules/c-stack (Depends-on): Add raise.
38746
38747 2008-04-28  Bruno Haible  <bruno@clisp.org>
38748
38749         Expect rpmatch to be declared.
38750         * lib/yesno.c (rpmatch): Remove declaration.
38751
38752         Declare rpmatch.
38753         * lib/stdlib.in.h (rpmatch): New declaration.
38754         * lib/rpmatch.c: Include <stdlib.h> first.
38755         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
38756         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
38757         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
38758         HAVE_RPMATCH.
38759         * modules/rpmatch (Depends-on): Add stdlib, extensions.
38760         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38761         (Include): Set to <stdlib.h>.
38762         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
38763         HAVE_RPMATCH.
38764         * NEWS: Document the change.
38765
38766 2008-04-28  Bruno Haible  <bruno@clisp.org>
38767
38768         Change rpmatch to use nl_langinfo when appropriate.
38769         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
38770         (N_): New macro.
38771         (localized_pattern): New function/macro.
38772         (try): Remove match, nomatch arguments. Copy the pattern into safe
38773         memory before caching it.
38774         (rpmatch): Use localized_pattern. Add translator comments.
38775         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
38776         Suggested by Eric Blake.
38777         * modules/rpmatch (Depends-on): Add stdbool.
38778
38779 2008-04-28  Eric Blake  <ebb9@byu.net>
38780
38781         Add rawmemchr module, matching glibc.
38782         * modules/string (Makefile.am): New indicator.
38783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
38784         * lib/string.in.h (rawmemchr): Declare when appropriate.
38785         * modules/rawmemchr: New file.
38786         * m4/rawmemchr.m4: Likewise.
38787         * lib/rawmemchr.c: Likewise.
38788         * modules/rawmemchr-tests: Likewise.
38789         * tests/test-rawmemchr.c: Likewise.
38790         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
38791         module.
38792         * modules/strchrnul (Depends-on): Add rawmemchr.
38793         * lib/strchrnul.c (strchrnul): Optimize a corner case.
38794
38795         Whitespace cleanup.
38796         * tests/test-strchrnul.c: Reindent.
38797         * lib/strchrnul.c: Likewise.
38798
38799         Optimize and test strchrnul.
38800         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
38801         * modules/strchrnul-tests: New file.
38802         * tests/test-strchrnul.c: Likewise.
38803
38804         Remove intprops dependency.
38805         * modules/memchr (Depends-on): Remove intprops.
38806         * modules/memrchr (Depends-on): Likewise.
38807         * modules/memchr2 (Depends-on): Likewise.
38808         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
38809         * lib/memrchr.c (__memrchr): Likewise.
38810         * lib/memrchr2.c (memchr2): Likewise.
38811         Reported by Simon Josefsson.
38812
38813 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38814
38815         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
38816         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38817
38818 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38819
38820         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
38821
38822         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
38823
38824         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
38825
38826         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
38827         declarations.
38828         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
38829
38830         * m4/inet_pton.m4: Don't check for header files.
38831
38832         * m4/inet_ntop.m4: Don't check for header files.
38833
38834 2008-04-28  Simon Josefsson  <simon@josefsson.org>
38835
38836         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
38837         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
38838         trigger for cygwin).
38839         Reported by Bruno Haible  <bruno@clisp.org>.
38840
38841 2008-04-28  Bruno Haible  <bruno@clisp.org>
38842
38843         * doc/posix-functions/strdup.texi: Mention mingw problem.
38844
38845 2008-04-27  Bruno Haible  <bruno@clisp.org>
38846
38847         * modules/stat-time-tests (Depends-on): Add sleep.
38848         * tests/test-stat-time.c (force_unlink): New function.
38849         (cleanup): Use it.
38850         (test_mtime): Remove the ctime related tests.
38851         (test_ctime): New function, containing the ctime related tests.
38852         (main): Call test_ctime, except on native Windows platforms.
38853
38854 2008-04-27  Bruno Haible  <bruno@clisp.org>
38855
38856         * lib/rpmatch.c (rpmatch): Add some comments.
38857         Reported by James Youngman <jay@gnu.org>.
38858
38859 2008-04-27  Bruno Haible  <bruno@clisp.org>
38860
38861         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
38862         quiet NaNs.
38863
38864 2008-04-27  Bruno Haible  <bruno@clisp.org>
38865
38866         Make test-yesno.sh work on mingw.
38867         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
38868         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
38869         (main): Set stdin to binary mode.
38870         * modules/yesno-tests (Depends-on): Add binary-io.
38871
38872 2008-04-27  Bruno Haible  <bruno@clisp.org>
38873
38874         Fix 'isfinite' on x86, x86_64, ia64 platforms.
38875         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
38876         argument that lie outside the IEEE 854 domain.
38877         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
38878         (gl_ISFINITE): Use it.
38879         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
38880
38881 2008-04-27  Bruno Haible  <bruno@clisp.org>
38882
38883         Allow local renaming in config.h.
38884         * lib/memrchr.c (memrchr): Don't undefine outside libc.
38885
38886 2008-04-27  Bruno Haible  <bruno@clisp.org>
38887
38888         * lib/memchr.c (__memchr): Change type of 'i'.
38889         * lib/memchr2.c (memchr2): Likewise.
38890
38891 2008-04-26  Eric Blake  <ebb9@byu.net>
38892         and Bruno Haible  <bruno@clisp.org>
38893
38894         Optimize and test memrchr.
38895         * modules/memrchr (Depends-on): Add intprops.
38896         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
38897         * modules/memrchr-tests: New file.
38898         * tests/test-memrchr.c: New file.
38899
38900 2008-04-26  Bruno Haible  <bruno@clisp.org>
38901
38902         Add tentative support for DragonFly BSD.
38903         * lib/stdio-impl.h: Add macros for DragonFly BSD.
38904         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
38905         fp.
38906         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38907         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
38908         * lib/fpurge.c (fpurge): Likewise.
38909         * lib/freadable.c (freaadable): Likewise.
38910         * lib/freadahead.c (freadahead): Likewise.
38911         * lib/freading.c (freading): Likewise.
38912         * lib/freadptr.c (freadptr): Likewise.
38913         * lib/freadseek.c (freadptrinc): Likewise.
38914         * lib/fseeko.c (fseeko): Likewise.
38915         * lib/fseterr.c (fseterr): Likewise.
38916         * lib/fwritable.c (fwritable): Likewise.
38917         * lib/fwriting.c (fwriting): Likewise.
38918
38919 2008-04-26  Bruno Haible  <bruno@clisp.org>
38920
38921         * lib/stdio-impl.h: New file.
38922         * lib/fbufmode.c: Include stdio-impl.h.
38923         (fbufmode): Use fp_, remove redundant #defines.
38924         * lib/fflush.c: Include stdio-impl.h.
38925         (clear_ungetc_buffer): Remove redundant #defines.
38926         * lib/fpurge.c: Include stdio-impl.h.
38927         (fpurge): Remove redundant #defines.
38928         * lib/freadable.c: Include stdio-impl.h.
38929         (freadable): Remove redundant #defines.
38930         * lib/freadahead.c: Include stdio-impl.h.
38931         (freadahead): Remove redundant #defines.
38932         * lib/freading.c: Include stdio-impl.h.
38933         (freading): Remove redundant #defines.
38934         * lib/freadptr.c: Include stdio-impl.h.
38935         (freadptr): Remove redundant #defines.
38936         * lib/freadseek.c: Include stdio-impl.h.
38937         (freadptrinc): Remove redundant #defines.
38938         * lib/fseeko.c: Include stdio-impl.h.
38939         (rpl_fseeko): Remove redundant #defines.
38940         * lib/fseterr.c: Include stdio-impl.h.
38941         (fseterr): Remove redundant #defines.
38942         * lib/fwritable.c: Include stdio-impl.h.
38943         (fwritable: Remove redundant #defines.
38944         * lib/fwriting.c: Include stdio-impl.h.
38945         (fwriting): Remove redundant #defines.
38946         * modules/fbufmode (Files): Add lib/stdio-impl.h.
38947         * modules/fflush (Files): Likewise.
38948         * modules/fpurge (Files): Likewise.
38949         * modules/freadable (Files): Likewise.
38950         * modules/freadahead (Files): Likewise.
38951         * modules/freading (Files): Likewise.
38952         * modules/freadptr (Files): Likewise.
38953         * modules/freadseek (Files): Likewise.
38954         * modules/fseeko (Files): Likewise.
38955         * modules/fseterr (Files): Likewise.
38956         * modules/fwritable (Files): Likewise.
38957         * modules/fwriting (Files): Likewise.
38958
38959 2008-04-26  Bruno Haible  <bruno@clisp.org>
38960
38961         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
38962         restore_seek_optimization, update_fpos_cache): New functions, extracted
38963         from rpl_fflush.
38964         (rpl_fflush): Use them.
38965         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
38966         (gl_REPLACE_FFLUSH): Use it.
38967
38968 2008-04-26  Bruno Haible  <bruno@clisp.org>
38969
38970         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
38971         on Solaris.
38972         * tests/test-xstrtoimax.sh: Likewise.
38973         * tests/test-xstrtoumax.sh: Likewise.
38974         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38975
38976 2008-04-26  Bruno Haible  <bruno@clisp.org>
38977
38978         * modules/memchr-tests: New file.
38979         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
38980
38981 2008-04-26  Eric Blake  <ebb9@byu.net>
38982             Bruno Haible  <bruno@clisp.org>
38983
38984         * lib/memchr.c: Include intprops.h.
38985         (__memchr): Optimize parallel detection of matching bytes. Rename local
38986         variables. Add explanatory comments.
38987
38988 2008-04-26  Bruno Haible  <bruno@clisp.org>
38989
38990         Fix module 'memchr', broken since 2000-10-28.
38991         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
38992
38993 2008-04-26  Bruno Haible  <bruno@clisp.org>
38994
38995         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
38996         comments.
38997
38998 2008-04-25  Eric Blake  <ebb9@byu.net>
38999
39000         Use native fstatat on cygwin 1.7.0.
39001         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39002         first.
39003
39004 2008-04-23  Eric Blake  <ebb9@byu.net>
39005
39006         Improve memchr2 performance.
39007         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39008         NUL bytes.
39009         * modules/memchr2 (Depends-on): Use intprops.h.
39010
39011 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39012
39013         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39014         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39015         <blp@cs.stanford.edu>.
39016
39017 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39018
39019         * lib/arpa_inet.in.h: New file.
39020
39021         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39022         (Makefile.am): Sed in substitute header file.
39023
39024         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39025         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39026
39027         * modules/inet_ntop (configure.ac): Use
39028         gl_ARPA_INET_MODULE_INDICATOR.
39029
39030         * modules/inet_pton (configure.ac): Use
39031         gl_ARPA_INET_MODULE_INDICATOR.
39032
39033 2008-04-22  Jim Meyering  <meyering@redhat.com>
39034
39035         * modules/verify (License): Re-license as LGPLv2+.
39036
39037 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39038
39039         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39040         parameter to void* as per POSIX standard (MinGW uses char*).
39041
39042 2008-04-21  Bruno Haible  <bruno@clisp.org>
39043
39044         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39045         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39046         Define to replacements if REPLACE_ISWCNTRL is 1.
39047         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39048         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39049         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39050         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39051         what it fixes.
39052         * doc/posix-functions/iswalpha.texi: Likewise.
39053         * doc/posix-functions/iswblank.texi: Likewise.
39054         * doc/posix-functions/iswcntrl.texi: Likewise.
39055         * doc/posix-functions/iswdigit.texi: Likewise.
39056         * doc/posix-functions/iswgraph.texi: Likewise.
39057         * doc/posix-functions/iswlower.texi: Likewise.
39058         * doc/posix-functions/iswprint.texi: Likewise.
39059         * doc/posix-functions/iswpunct.texi: Likewise.
39060         * doc/posix-functions/iswspace.texi: Likewise.
39061         * doc/posix-functions/iswupper.texi: Likewise.
39062         * doc/posix-functions/iswxdigit.texi: Likewise.
39063         Reported by Alain Guibert.
39064
39065 2008-04-21  Bruno Haible  <bruno@clisp.org>
39066
39067         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39068         Patch by Alain Guibert.
39069
39070 2008-04-21  Bruno Haible  <bruno@clisp.org>
39071
39072         Fix test failures on mingw.
39073         * tests/test-xstrtol.c (print_no_progname): New function.
39074         (main): Install it in error_print_progname hook.
39075         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39076         * tests/test-xstrtoimax.sh: Likewise.
39077         * tests/test-xstrtoumax.sh: Likewise.
39078
39079 2008-04-21  Bruno Haible  <bruno@clisp.org>
39080
39081         Fix test failure on mingw.
39082         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39083
39084 2008-04-21  Bruno Haible  <bruno@clisp.org>
39085
39086         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39087         Actually assign a value.
39088
39089 2008-04-20  Bruno Haible  <bruno@clisp.org>
39090
39091         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39092         take 2.
39093         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39094         'canonicalize-lgpl' module is also used.
39095         * lib/canonicalize-lgpl.c: Undo last change.
39096         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39097
39098 2008-04-20  Bruno Haible  <bruno@clisp.org>
39099
39100         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39101         config.h. Provide _mkdir based fallback for mingw.
39102         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39103         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39104         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39105         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39106         rather than defining mkdir in config.h.
39107         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39108         (gl_SYS_STAT_H_DEFAULTS): New macro.
39109         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39110         HAVE_IO_H any more.
39111         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39112         HAVE_DECL_MKDIR and HAVE_IO_H.
39113
39114 2008-04-20  Bruno Haible  <bruno@clisp.org>
39115
39116         * lib/isapipe.c: Port to native Windows platforms.
39117
39118 2008-04-20  Bruno Haible  <bruno@clisp.org>
39119
39120         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39121
39122 2008-04-21  Eric Blake  <ebb9@byu.net>
39123
39124         Work around preprocessors that don't handle UINTMAX_MAX.
39125         * lib/memchr2.c (memchr2): Avoid embedded #if.
39126         Reported by Alain Guibert, fix suggested by Bruno Haible.
39127
39128 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39129
39130         * doc/posix-functions/strftime.texi (strftime): Explain better
39131         Windows incompatibility.  Suggested by Micah Cowan
39132         <micah@cowan.name>.
39133
39134 2008-04-20  Bruno Haible  <bruno@clisp.org>
39135
39136         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39137         unistr/u8-mblen.
39138
39139 2008-04-20  Bruno Haible  <bruno@clisp.org>
39140
39141         Fix test failure on platforms with non-GNU iconv.
39142         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39143         (U_TO_U8): Use it, rather than u16_to_u8.
39144         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39145         units at the end of the input string.
39146         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39147
39148 2008-04-20  Bruno Haible  <bruno@clisp.org>
39149
39150         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39151         when the resulting length is 0.
39152         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39153
39154 2008-04-20  Bruno Haible  <bruno@clisp.org>
39155
39156         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39157         works.
39158         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39159
39160 2008-04-20  Bruno Haible  <bruno@clisp.org>
39161
39162         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39163         * modules/tsearch-tests (configure.ac): Test for initstate function.
39164
39165 2008-04-20  Bruno Haible  <bruno@clisp.org>
39166
39167         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39168         for nlink_t if missing.
39169         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39170
39171 2008-04-19  Bruno Haible  <bruno@clisp.org>
39172
39173         Work around snprintf bug on Linux libc5.
39174         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39176         gl_SNPRINTF_SIZE1.
39177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39178         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39179         that test failed.
39180         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39181         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39182         * modules/snprintf (Files): Add m4/printf.m4.
39183         * modules/vsnprintf (Files): Likewise.
39184         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39185         * doc/posix-functions/vsnprintf.texi: Likewise.
39186
39187 2008-04-19  Bruno Haible  <bruno@clisp.org>
39188
39189         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39190         from 0.0058 to less than 10^-7.
39191
39192 2008-04-19  Bruno Haible  <bruno@clisp.org>
39193
39194         Fix rounding when a precision is given.
39195         * lib/vasnprintf.c (is_borderline): New function.
39196         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39197         9...9x.
39198         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39199         %e, %g.
39200         * tests/test-vasprintf-posix.c (test_function): Likewise.
39201         * tests/test-snprintf-posix.h (test_function): Likewise.
39202         * tests/test-sprintf-posix.h (test_function): Likewise.
39203         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39204         * tests/test-printf-posix.h (test_function): Likewise.
39205         * tests/test-printf-posix.output: Update.
39206         Reported by John Darrington <john@darrington.wattle.id.au> via
39207         Ben Pfaff <blp@cs.stanford.edu>.
39208
39209 2008-04-18  Simon Josefsson  <simon@josefsson.org>
39210
39211         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
39212         Suggested by Bruno Haible <bruno@clisp.org>.
39213
39214 2008-04-17  Bruno Haible  <bruno@clisp.org>
39215
39216         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
39217         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
39218         implementation.
39219         Patch by Bruce Merry <bmerry@gmail.com>.
39220
39221 2008-04-17  Simon Josefsson  <simon@josefsson.org>
39222
39223         * doc/posix-functions/strftime.texi (strftime): Mention that %e
39224         doesn't work under Windows.
39225
39226 2008-04-16  Bruno Haible  <bruno@clisp.org>
39227
39228         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
39229         New macros.
39230         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
39231         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
39232         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
39233         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
39234         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
39235         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
39236         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
39237         macros.
39238         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
39239         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
39240         Northern Sotho, Uighur.
39241
39242 2008-04-16  Bruno Haible  <bruno@clisp.org>
39243
39244         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
39245         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
39246         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
39247         Reported by Daniel Bergström <daniel@octocode.com>.
39248
39249 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
39250             Bruno Haible  <bruno@clisp.org>
39251
39252         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
39253         function.
39254         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
39255         New functions, mostly extracted from gl_locale_name_default.
39256         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
39257
39258 2008-04-16  Eric Blake  <ebb9@byu.net>
39259
39260         Adjust strtod detection to catch glibc 2.7 bug.
39261         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
39262         Reported by John Gatewood Ham.
39263
39264 2008-04-16  Bruno Haible  <bruno@clisp.org>
39265
39266         Add tentative support for Linux libc5.
39267         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
39268         * lib/fpurge.c (fpurge): Likewise.
39269         * lib/freadable.c (freadable): Likewise.
39270         * lib/freadahead.c (freadahead): Likewise.
39271         * lib/freading.c (freading): Likewise.
39272         * lib/freadptr.c (freadptr): Likewise.
39273         * lib/freadseek.c (freadptrinc): Likewise.
39274         * lib/fseeko.c (rpl_fseeko): Likewise.
39275         * lib/fseterr.c (fseterr): Likewise.
39276         * lib/fwritable.c (fwritable): Likewise.
39277         * lib/fwriting.c (fwriting): Likewise.
39278         Reported by Alain Guibert <alguibert+bts@free.fr>.
39279
39280 2008-04-15  Bruno Haible  <bruno@clisp.org>
39281
39282         * modules/mathl (configure.ac): Define module indicator.
39283
39284 2008-04-15  Bruno Haible  <bruno@clisp.org>
39285
39286         * lib/logl.c (logl): Remove unused variables.
39287
39288 2008-04-15  Bruno Haible  <bruno@clisp.org>
39289
39290         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
39291         fails.
39292
39293 2008-04-15  Bruno Haible  <bruno@clisp.org>
39294
39295         * lib/trim.c (trim2): Fix argument of isspace() macro.
39296
39297 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
39298
39299         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
39300         to 0.
39301         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
39302
39303 2008-04-14  Bruno Haible  <bruno@clisp.org>
39304
39305         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
39306         AC_LANG_PROGRAM argument.
39307         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
39308         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
39309         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39310         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39311         * m4/math_h.m4 (gl_MATH_H): Likewise.
39312         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
39313         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39314         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39315         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
39316         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
39317         * m4/regex.m4 (gl_REGEX): Likewise.
39318         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
39319         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
39320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39321         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
39322         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39323         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39324         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39326
39327 2008-04-14  Jim Meyering  <meyering@redhat.com>
39328
39329         test-strtod: fix typos: s/abs/fabs/
39330         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
39331
39332 2008-04-13  Bruno Haible  <bruno@clisp.org>
39333
39334         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
39335         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
39336         module is also used and while not building the reloc-wrapper.
39337
39338 2008-04-13  Bruno Haible  <bruno@clisp.org>
39339
39340         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
39341
39342 2008-04-13  Bruno Haible  <bruno@clisp.org>
39343
39344         Fix AIX compilation failure introduced on 2008-04-02.
39345         * tests/test-frexp.c (exp): Undefine before redefining.
39346         * tests/test-frexpl.c (exp): Likewise.
39347
39348 2008-04-13  Bruno Haible  <bruno@clisp.org>
39349
39350         Work around a HP-UX stdio bug.
39351         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
39352         * tests/test-ftello.c (main): Likewise.
39353         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
39354         * doc/posix-functions/ftello.texi: Likewise.
39355
39356 2008-04-13  Bruno Haible  <bruno@clisp.org>
39357
39358         Make test-signbit pass on HP-UX/hppa.
39359         * tests/test-signbit.c (minus_zerol): New variable.
39360         (test_signbitl): Use it.
39361
39362 2008-04-13  Bruno Haible  <bruno@clisp.org>
39363
39364         Make truncl work on OSF/1 4.0.
39365         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
39366         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39367         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
39368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
39369         HAVE_DECL_TRUNCL.
39370         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
39371         HAVE_DECL_TRUNCL.
39372         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
39373
39374 2008-04-13  Bruno Haible  <bruno@clisp.org>
39375
39376         * lib/unictype.h: Remove trailing comma from enumeration definitions.
39377
39378 2008-04-13  Bruno Haible  <bruno@clisp.org>
39379
39380         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
39381         expression, so as to avoid HP-UX 11 cc compiler bug.
39382
39383 2008-04-13  Bruno Haible  <bruno@clisp.org>
39384
39385         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
39386
39387 2008-04-13  Bruno Haible  <bruno@clisp.org>
39388
39389         * lib/git-merge-changelog.c: Remove empty declaration outside of
39390         functions.
39391
39392 2008-04-13  Bruno Haible  <bruno@clisp.org>
39393
39394         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
39395
39396 2008-04-13  Bruno Haible  <bruno@clisp.org>
39397
39398         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
39399         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
39400         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
39401         also if it exists but lacks definitions of the SHUT_* macros.
39402         * modules/sys_socket (Description): Update.
39403         Reported by Elbert Pol <e.pol@chello.nl>.
39404
39405 2008-04-13  Bruno Haible  <bruno@clisp.org>
39406
39407         * lib/localcharset.c (OS2): Don't redefine if already defined.
39408         Reported by Elbert Pol <e.pol@chello.nl>.
39409
39410 2008-04-13  Bruno Haible  <bruno@clisp.org>
39411
39412         * lib/binary-io.h [__EMX__]: Include <io.h>.
39413         Reported by Elbert Pol <e.pol@chello.nl>.
39414
39415 2008-04-12  Bruno Haible  <bruno@clisp.org>
39416
39417         * lib/fpucw.h: Enable the definitions also for x86_64.
39418         Needed for NetBSD/x86_64.
39419         Reported by Thomas Klausner <tk@giga.or.at>.
39420
39421 2008-04-12  Bruno Haible  <bruno@clisp.org>
39422
39423         * tests/test-strtod.c: Include isnand.h.
39424         (main): Use isnand instead of isnan.
39425         Reported by Jim Meyering.
39426
39427 2008-04-12  Bruno Haible  <bruno@clisp.org>
39428
39429         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
39430         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39431
39432 2008-04-12  Jim Meyering  <meyering@redhat.com>
39433
39434         * m4/math_h.m4 (gl_MATH_H): Fix typos.
39435
39436 2008-04-12  Bruno Haible  <bruno@clisp.org>
39437
39438         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
39439         Reported by Elbert Pol <e.pol@chello.nl>.
39440
39441 2008-04-12  Eric Blake  <ebb9@byu.net>
39442
39443         Work around Solaris 10 math.h bug.
39444         * m4/math_h.m4 (gl_MATH_H): Check for bug.
39445         (gl_MATH_H_DEFAULTS): Set up default.
39446         * modules/math (Makefile.am): Replace new indicators.
39447         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
39448         * tests/test-math.c (main): Test this.
39449         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
39450         * doc/posix-headers/math.texi (math.h): Mention bug.
39451         Reported by Nelson H. F. Beebe and Jim Meyering.
39452
39453 2008-04-11  Bruno Haible  <bruno@clisp.org>
39454
39455         Adapt to future versions of Apple GCC.
39456         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
39457         Reported by Peter O'Gorman <peter@pogma.com>.
39458
39459 2008-04-11  Bruno Haible  <bruno@clisp.org>
39460
39461         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
39462
39463 2008-04-11  Bruno Haible  <bruno@clisp.org>
39464
39465         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
39466
39467         * modules/getaddrinfo-tests (Makefile.am): Define
39468         test_getaddrinfo_LDADD.
39469
39470 2008-04-11  Bruno Haible  <bruno@clisp.org>
39471
39472         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
39473         (init): Fix syntax error.
39474         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
39475         is declared.
39476
39477 2008-04-11  Bruno Haible  <bruno@clisp.org>
39478
39479         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
39480         * modules/glob (Depends-on): Add stdbool.
39481
39482 2008-04-11  Bruno Haible  <bruno@clisp.org>
39483
39484         * lib/trim.c: Include <string.h>.
39485
39486 2008-04-11  Eric Blake  <ebb9@byu.net>
39487
39488         Avoid compile failure on OS/2.
39489         * lib/regex_internal.h (internal_function): Disable optimization
39490         on OS/2 (__EMX__), where it caused compiler error.
39491         Reported by Elbert Pol.
39492
39493 2008-04-11  Bruno Haible  <bruno@clisp.org>
39494
39495         Flush the standard error stream before aborting. Needed on mingw.
39496         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
39497         * tests/test-array_list.c (ASSERT): Likewise.
39498         * tests/test-array_oset.c (ASSERT): Likewise.
39499         * tests/test-avltree_list.c (ASSERT): Likewise.
39500         * tests/test-avltree_oset.c (ASSERT): Likewise.
39501         * tests/test-avltreehash_list.c (ASSERT): Likewise.
39502         * tests/test-binary-io.c (ASSERT): Likewise.
39503         * tests/test-byteswap.c (ASSERT): Likewise.
39504         * tests/test-c-ctype.c (ASSERT): Likewise.
39505         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
39506         * tests/test-c-strcasestr.c (ASSERT): Likewise.
39507         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
39508         * tests/test-c-strstr.c (ASSERT): Likewise.
39509         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
39510         * tests/test-canonicalize.c (ASSERT): Likewise.
39511         * tests/test-carray_list.c (ASSERT): Likewise.
39512         * tests/test-ceilf1.c (ASSERT): Likewise.
39513         * tests/test-ceilf2.c (ASSERT): Likewise.
39514         * tests/test-ceill.c (ASSERT): Likewise.
39515         * tests/test-count-one-bits.c (ASSERT): Likewise.
39516         * tests/test-fbufmode.c (ASSERT): Likewise.
39517         * tests/test-fflush2.c (ASSERT): Likewise.
39518         * tests/test-floorf1.c (ASSERT): Likewise.
39519         * tests/test-floorf2.c (ASSERT): Likewise.
39520         * tests/test-floorl.c (ASSERT): Likewise.
39521         * tests/test-fopen.c (ASSERT): Likewise.
39522         * tests/test-fpending.c (ASSERT): Likewise.
39523         * tests/test-fprintf-posix.c (ASSERT): Likewise.
39524         * tests/test-fpurge.c (ASSERT): Likewise.
39525         * tests/test-freadable.c (ASSERT): Likewise.
39526         * tests/test-freadahead.c (ASSERT): Likewise.
39527         * tests/test-freading.c (ASSERT): Likewise.
39528         * tests/test-freadptr.c (ASSERT): Likewise.
39529         * tests/test-freadptr2.c (ASSERT): Likewise.
39530         * tests/test-freadseek.c (ASSERT): Likewise.
39531         * tests/test-freopen.c (ASSERT): Likewise.
39532         * tests/test-frexp.c (ASSERT): Likewise.
39533         * tests/test-frexpl.c (ASSERT): Likewise.
39534         * tests/test-fseek.c (ASSERT): Likewise.
39535         * tests/test-fseeko.c (ASSERT): Likewise.
39536         * tests/test-fstrcmp.c (ASSERT): Likewise.
39537         * tests/test-ftell.c (ASSERT): Likewise.
39538         * tests/test-ftello.c (ASSERT): Likewise.
39539         * tests/test-func.c (ASSERT): Likewise.
39540         * tests/test-fwritable.c (ASSERT): Likewise.
39541         * tests/test-fwriting.c (ASSERT): Likewise.
39542         * tests/test-getdelim.c (ASSERT): Likewise.
39543         * tests/test-getline.c (ASSERT): Likewise.
39544         * tests/test-i-ring.c (ASSERT): Likewise.
39545         * tests/test-iconv-utf.c (ASSERT): Likewise.
39546         * tests/test-iconv.c (ASSERT): Likewise.
39547         * tests/test-isfinite.c (ASSERT): Likewise.
39548         * tests/test-isnand.c (ASSERT): Likewise.
39549         * tests/test-isnanf.c (ASSERT): Likewise.
39550         * tests/test-isnanl.h (ASSERT): Likewise.
39551         * tests/test-ldexpl.c (ASSERT): Likewise.
39552         * tests/test-linked_list.c (ASSERT): Likewise.
39553         * tests/test-linkedhash_list.c (ASSERT): Likewise.
39554         * tests/test-localename.c (ASSERT): Likewise.
39555         * tests/test-lseek.c (ASSERT): Likewise.
39556         * tests/test-mbscasecmp.c (ASSERT): Likewise.
39557         * tests/test-mbscasestr1.c (ASSERT): Likewise.
39558         * tests/test-mbscasestr2.c (ASSERT): Likewise.
39559         * tests/test-mbscasestr3.c (ASSERT): Likewise.
39560         * tests/test-mbscasestr4.c (ASSERT): Likewise.
39561         * tests/test-mbschr.c (ASSERT): Likewise.
39562         * tests/test-mbscspn.c (ASSERT): Likewise.
39563         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
39564         * tests/test-mbspbrk.c (ASSERT): Likewise.
39565         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
39566         * tests/test-mbsrchr.c (ASSERT): Likewise.
39567         * tests/test-mbsspn.c (ASSERT): Likewise.
39568         * tests/test-mbsstr1.c (ASSERT): Likewise.
39569         * tests/test-mbsstr2.c (ASSERT): Likewise.
39570         * tests/test-mbsstr3.c (ASSERT): Likewise.
39571         * tests/test-memchr2.c (ASSERT): Likewise.
39572         * tests/test-memmem.c (ASSERT): Likewise.
39573         * tests/test-open.c (ASSERT): Likewise.
39574         * tests/test-printf-frexp.c (ASSERT): Likewise.
39575         * tests/test-printf-frexpl.c (ASSERT): Likewise.
39576         * tests/test-printf-posix.c (ASSERT): Likewise.
39577         * tests/test-quotearg.c (ASSERT): Likewise.
39578         * tests/test-rbtree_list.c (ASSERT): Likewise.
39579         * tests/test-rbtree_oset.c (ASSERT): Likewise.
39580         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
39581         * tests/test-round1.c (ASSERT): Likewise.
39582         * tests/test-roundf1.c (ASSERT): Likewise.
39583         * tests/test-roundl.c (ASSERT): Likewise.
39584         * tests/test-signbit.c (ASSERT): Likewise.
39585         * tests/test-sleep.c (ASSERT): Likewise.
39586         * tests/test-snprintf-posix.c (ASSERT): Likewise.
39587         * tests/test-snprintf.c (ASSERT): Likewise.
39588         * tests/test-sprintf-posix.c (ASSERT): Likewise.
39589         * tests/test-stat-time.c (ASSERT): Likewise.
39590         * tests/test-strcasestr.c (ASSERT): Likewise.
39591         * tests/test-strerror.c (ASSERT): Likewise.
39592         * tests/test-striconv.c (ASSERT): Likewise.
39593         * tests/test-striconveh.c (ASSERT): Likewise.
39594         * tests/test-striconveha.c (ASSERT): Likewise.
39595         * tests/test-strsignal.c (ASSERT): Likewise.
39596         * tests/test-strstr.c (ASSERT): Likewise.
39597         * tests/test-strtod.c (ASSERT): Likewise.
39598         * tests/test-trunc1.c (ASSERT): Likewise.
39599         * tests/test-trunc2.c (ASSERT): Likewise.
39600         * tests/test-truncf1.c (ASSERT): Likewise.
39601         * tests/test-truncf2.c (ASSERT): Likewise.
39602         * tests/test-truncl.c (ASSERT): Likewise.
39603         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
39604         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
39605         * tests/test-vasnprintf.c (ASSERT): Likewise.
39606         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
39607         * tests/test-vasprintf.c (ASSERT): Likewise.
39608         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
39609         * tests/test-vprintf-posix.c (ASSERT): Likewise.
39610         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
39611         * tests/test-vsnprintf.c (ASSERT): Likewise.
39612         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
39613         * tests/test-wcwidth.c (ASSERT): Likewise.
39614         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
39615         * tests/test-xprintf-posix.c (ASSERT): Likewise.
39616         * tests/test-xvasprintf.c (ASSERT): Likewise.
39617         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
39618         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
39619         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
39620         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
39621         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
39622         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
39623         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
39624         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
39625         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
39626         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
39627         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
39628         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
39629         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
39630         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
39631         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
39632         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
39633         * tests/unictype/test-block_list.c (ASSERT): Likewise.
39634         * tests/unictype/test-block_of.c (ASSERT): Likewise.
39635         * tests/unictype/test-block_test.c (ASSERT): Likewise.
39636         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
39637         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
39638         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
39639         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
39640         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
39641         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
39642         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
39643         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
39644         * tests/unictype/test-combining.c (ASSERT): Likewise.
39645         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
39646         * tests/unictype/test-digit.c (ASSERT): Likewise.
39647         * tests/unictype/test-mirror.c (ASSERT): Likewise.
39648         * tests/unictype/test-numeric.c (ASSERT): Likewise.
39649         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
39650         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
39651         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
39652         * tests/unictype/test-scripts.c (ASSERT): Likewise.
39653         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
39654         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
39655         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
39656         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
39657         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
39658         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
39659         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
39660         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
39661         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
39662         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
39663         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
39664         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
39665         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
39666         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
39667         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
39668         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
39669         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
39670         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
39671         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
39672         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
39673         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
39674         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
39675         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
39676         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
39677         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
39678         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
39679         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
39680         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
39681         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
39682         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
39683         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
39684         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
39685         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
39686         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
39687         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
39688         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
39689         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
39690         Reported by Eric Blake.
39691
39692 2008-04-11  Bruno Haible  <bruno@clisp.org>
39693
39694         * lib/wchar.in.h: Tweak comment.
39695
39696 2008-04-11  Bruno Haible  <bruno@clisp.org>
39697
39698         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
39699         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
39700         gl_COMMON.
39701         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
39702
39703 2008-04-11  Bruno Haible  <bruno@clisp.org>
39704
39705         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
39706
39707 2008-04-11  Simon Josefsson  <simon@josefsson.org>
39708
39709         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
39710         of attempting to use non-existing /dev/*random.  Based on patch
39711         from Adam Strzelecki <ono@java.pl> in
39712         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
39713
39714 2008-04-08  Bruno Haible  <bruno@clisp.org>
39715
39716         Add tentative support for emx+gcc.
39717         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
39718         * lib/fpurge.c (fpurge): Likewise.
39719         * lib/freadable.c (freadable): Likewise.
39720         * lib/freadahead.c (freadahead): Likewise.
39721         * lib/freading.c (freading): Likewise.
39722         * lib/freadptr.c (freadptr): Likewise.
39723         * lib/freadseek.c (freadptrinc): Likewise.
39724         * lib/fseeko.c (rpl_fseeko): Likewise.
39725         * lib/fseterr.c (fseterr): Likewise.
39726         * lib/fwritable.c (fwritable): Likewise.
39727         * lib/fwriting.c (fwriting): Likewise.
39728         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
39729
39730 2008-04-09  Eric Blake  <ebb9@byu.net>
39731
39732         Avoid some autoconf warnings.
39733         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
39734         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
39735         * m4/afs.m4 (gl_AFS): Likewise.
39736         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
39737         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
39738         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39739         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
39740         (gl_INTEGER_TYPE_SUFFIX): Likewise.
39741         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
39742         (AC_CHECK_DECLS_ONCE): Likewise.
39743         Rename file...
39744         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
39745         gnulib-tool requires autoconf 2.59 or better.
39746         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
39747
39748 2008-04-08  Eric Blake  <ebb9@byu.net>
39749
39750         Use 'git describe --match' if present (added in git 1.5.5).
39751         * build-aux/git-version-gen: Limit result to tags that match 'v*'
39752         if possible.
39753
39754 2008-04-08  Bruno Haible  <bruno@clisp.org>
39755
39756         Add tentative support for OpenServer.
39757         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
39758         _ptr, _cnt.
39759         * lib/fpurge.c (fpurge): Likewise.
39760         * lib/freadable.c (freadable): Likewise.
39761         * lib/freadahead.c (freadahead): Likewise.
39762         * lib/freading.c (freading): Likewise.
39763         * lib/freadptr.c (freadptr): Likewise.
39764         * lib/freadseek.c (freadptrinc): Likewise.
39765         * lib/fseeko.c (rpl_fseeko): Likewise.
39766         * lib/fseterr.c (fseterr): Likewise.
39767         * lib/fwritable.c (fwritable): Likewise.
39768         * lib/fwriting.c (fwriting): Likewise.
39769         Reported by Roger Cornelius <rac@tenzing.org> and
39770         Brian K. White <brian@aljex.com>.
39771
39772 2008-04-06  Jim Meyering  <meyering@redhat.com>
39773
39774         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
39775
39776 2008-04-06  Bruno Haible  <bruno@clisp.org>
39777
39778         Avoid possible error with non-ASCII bytes in UTF-8 locales.
39779         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
39780         * tests/test-printf-posix.sh: Likewise.
39781         * tests/test-vfprintf-posix.sh: Likewise.
39782         * tests/test-vprintf-posix.sh: Likewise.
39783         * tests/test-xprintf-posix.sh: Likewise.
39784
39785 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39786
39787         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
39788         hide error from 'ls', needed on OS/2.
39789         Report by Elbert Pol <elbert.pol@gmail.com>.
39790
39791 2008-04-04  Eric Blake  <ebb9@byu.net>
39792
39793         Make test-fseeko.c failures meaningful.
39794         * tests/test-fseeko.c: Print line number on failure.
39795         * tests/test-fseek.c: Likewise.
39796         Reported by Nelson H. F. Beebe.
39797
39798         Improve strtod bug detection check.
39799         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
39800         required for Solaris 10.
39801         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
39802
39803 2008-04-04  Bruno Haible  <bruno@clisp.org>
39804
39805         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
39806         by m4/setenv.m4.
39807
39808 2008-04-03  Eric Blake  <ebb9@byu.net>
39809
39810         Ensure sane .version contents.
39811         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
39812         version string.
39813         * build-aux/git-version-gen: Improve documentation.
39814
39815         Make GNU make output nicer.
39816         * top/GNUmakefile [!_have-Makefile]: Add dependency on
39817         MAKECMDGOALS to enforce message for all command line targets.  Set
39818         srcdir for use in maint.mk.
39819
39820         Another maintainer tweak.
39821         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
39822         a target that regenerates version.
39823
39824 2008-04-03  Jim Meyering  <meyering@redhat.com>
39825
39826         vc-list-files: don't cause coreutils "make po-check" failure
39827         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
39828
39829 2008-04-03  Eric Blake  <ebb9@byu.net>
39830
39831         Allow VPATH usage of vc-list-files.
39832         * build-aux/vc-list-files (scriptversion): Add timestamp.
39833         (options): Add --help, --version, -C.
39834         (CVS): Support installed cvsu.
39835
39836 2008-04-02  Bruno Haible  <bruno@clisp.org>
39837
39838         Avoid some "statement with no effect" warnings from gcc.
39839         * tests/test-wctype.c (main): Explicitly ignore unused values.
39840         Reported by Jim Meyering.
39841
39842 2008-04-02  Jim Meyering  <meyering@redhat.com>
39843
39844         Avoid some warnings from "gcc -Wshadow".
39845         * tests/test-frexp.c (exp): Define to a different identifier.
39846         * tests/test-frexpl.c (exp): Likewise.
39847
39848 2008-04-03  Jim Meyering  <meyering@redhat.com>
39849
39850         bootstrap: remove dangling *.[ch] symlinks from lib
39851         * build-aux/bootstrap [dangling symlink removal]: Move find's
39852         -depth option to precede all others, to avoid a warning.
39853         Remove *.[ch] files too, and from "$source_base" (usually lib/).
39854
39855 2008-04-02  Bruno Haible  <bruno@clisp.org>
39856
39857         Avoid some warnings from "gcc -Wshadow".
39858         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
39859         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
39860         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
39861         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
39862         Reported by Jim Meyering.
39863
39864 2008-04-01  Bruno Haible  <bruno@clisp.org>
39865
39866         Fix test to work on IRIX 6.5 with cc.
39867         * tests/test-math.c (numeric_equal): New function.
39868         (main): Use it.
39869
39870 2008-04-01  Bruno Haible  <bruno@clisp.org>
39871
39872         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
39873
39874 2008-04-01  Bruno Haible  <bruno@clisp.org>
39875
39876         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
39877         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39878         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
39879         (Depends-on): Remove math.
39880
39881         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
39882         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39883         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
39884         (Depends-on): Remove math.
39885
39886         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
39887         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39888         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
39889         (Depends-on): Remove math.
39890         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
39891         (Depends-on): Remove math.
39892
39893         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
39894         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
39895         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
39896         (Depends-on): Remove math.
39897         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
39898         (Depends-on): Remove math.
39899
39900         * tests/test-round1.c: Include nan.h.
39901         (main): Use NaNd instead of NAN.
39902         * modules/round-tests (Files): Add tests/nan.h.
39903
39904         * tests/test-trunc1.c: Include nan.h.
39905         (main): Use NaNd instead of NAN.
39906         * modules/trunc-tests (Files): Add tests/nan.h.
39907
39908         * tests/test-roundf1.c: Include nan.h.
39909         (main): Use NaNf instead of NAN.
39910         * modules/roundf-tests (Files): Add tests/nan.h.
39911
39912         * tests/test-truncf1.c: Include nan.h.
39913         (main): Use NaNf instead of NAN.
39914         * modules/truncf-tests (Files): Add tests/nan.h.
39915
39916         * tests/test-ceilf1.c: Include nan.h.
39917         (main): Use NaNf instead of NAN.
39918         * modules/ceilf-tests (Files): Add tests/nan.h.
39919
39920         * tests/test-floorf1.c: Include nan.h.
39921         (main): Use NaNf instead of NAN.
39922         * modules/floorf-tests (Files): Add tests/nan.h.
39923
39924         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
39925         (main): Use NaNf instead of NAN.
39926         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
39927
39928         * tests/test-isnand.c: Include nan.h instead of <math.h>.
39929         (main): Use NaNd instead of NAN.
39930         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
39931
39932         * tests/test-frexp.c: Include nan.h.
39933         (main): Use NaNd instead of NAN.
39934         * modules/frexp-tests (Files): Add tests/nan.h.
39935
39936         * lib/isnan.c: Don't include <math.h>.
39937         (FUNC): Don't use NAN macro.
39938         * modules/isnand-nolibm (Depends-on): Remove math.
39939         * modules/isnanf-nolibm (Depends-on): Remove math.
39940         * modules/isnanl (Depends-on): Remove math.
39941         * modules/isnanl-nolibm (Depends-on): Remove math.
39942
39943         * tests/nan.h: New file.
39944
39945 2008-04-01  Eric Blake  <ebb9@byu.net>
39946
39947         Fix typos.
39948         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
39949         values to be the right type.
39950
39951         For now, cater to gnulib strtod inaccuracies.
39952         * tests/test-strtod.c (main): Allow 1-ulp error on expected
39953         fractional results.  While not as nice from a QoI perspective, it
39954         is a quicker patch than correctly implementing decimal to binary
39955         rounding.
39956
39957 2008-03-31  Eric Blake  <ebb9@byu.net>
39958
39959         Guarantee a definition of NAN.
39960         * lib/math.in.h (NAN): Define if missing.
39961         * tests/test-math.c (main): Test it.
39962         * doc/posix-headers/math.texi (math.h): Document this.
39963         * lib/isnan.c (rpl_isnand): Use it.
39964         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
39965         * tests/test-floorf1.c (NaN): Likewise.
39966         * tests/test-frexp.c (NaN): Likewise.
39967         * tests/test-isnand.c (NaN): Likewise.
39968         * tests/test-isnanf.c (NaN): Likewise.
39969         * tests/test-round1.c (NaN): Likewise.
39970         * tests/test-roundf1.c (NaN): Likewise.
39971         * tests/test-snprintf-posix.h (NaN): Likewise.
39972         * tests/test-sprintf-posix.h (NaN): Likewise.
39973         * tests/test-trunc1.c (NaN): Likewise.
39974         * tests/test-truncf1.c (NaN): Likewise.
39975         * tests/test-vasnprintf-posix.c (NaN): Likewise.
39976         * tests/test-vasprintf-posix.c (NaN): Likewise.
39977         * modules/isnand-nolibm (Depends-on): Add math.
39978         * modules/isnanf-nolibm (Depends-on): Likewise.
39979         * modules/isnanl (Depends-on): Likewise.
39980         * modules/isnanl-nolibm (Depends-on): Likewise.
39981         * modules/snprintf-posix-tests (Depends-on): Likewise.
39982         * modules/sprintf-posix-tests (Depends-on): Likewise.
39983         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
39984         * modules/vsprintf-posix-tests (Depends-on): Likewise.
39985         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
39986         * modules/vasprintf-posix-tests (Depends-on): Likewise.
39987
39988 2008-03-31  Bruno Haible  <bruno@clisp.org>
39989
39990         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
39991         * doc/posix-functions/strtod.texi: Likewise.
39992
39993 2008-03-31  Bruno Haible  <bruno@clisp.org>
39994
39995         * tests/test-strtod.c (main): Don't use C99 syntax.
39996
39997 2008-03-31  Bruno Haible  <bruno@clisp.org>
39998
39999         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40000         Reported by Eric Blake.
40001
40002 2008-03-31  Jim Meyering  <meyering@redhat.com>
40003
40004         Don't compare actual signbit return values.
40005         * tests/test-strtod.c (main): Rather, compare only their
40006         zero/non-zero nature.
40007
40008 2008-03-31  Eric Blake  <ebb9@byu.net>
40009
40010         More strtod documentation.
40011         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40012         failures as distinct bugs.
40013
40014 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40015
40016         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40017         Problem reported by Erik Benada in
40018         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40019
40020 2008-03-30  Bruno Haible  <bruno@clisp.org>
40021
40022         * tests/test-strtod.c: Add comments about which assertion fails on which
40023         platform.
40024         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40025
40026 2008-03-30  Eric Blake  <ebb9@byu.net>
40027
40028         Test signbit behavior on zeros.
40029         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40030         (test_signbitd, test_signbitl): Likewise.
40031
40032         More strtod touchups.
40033         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40034         sign of negative underflow, for now.  Use .5, not .1.
40035         * doc/posix-functions/strtod.texi (strtod): Mention these
40036         limitations.
40037         Reported by Jim Meyering.
40038
40039 2008-03-30  Bruno Haible  <bruno@clisp.org>
40040
40041         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40042         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40043
40044 2008-03-30  Bruno Haible  <bruno@clisp.org>
40045
40046         Avoid failure when attempting to return empty iconv results on some
40047         platforms.
40048         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40049         allocation, don't report ENOMEM when the resulting string is empty.
40050
40051 2008-03-30  Bruno Haible  <bruno@clisp.org>
40052
40053         Fix buffer overrun.
40054         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40055         Don't consider the width for tmp_length. Check count against tmp_length
40056         before doing the padding. Ensure enough allocation during padding.
40057
40058 2008-03-30  Eric Blake  <ebb9@byu.net>
40059
40060         strtod touchups.
40061         * lib/strtod.c (strtod): Avoid compiler warnings.
40062         Reported by Jim Meyering.
40063
40064 2008-03-30  Bruno Haible  <bruno@clisp.org>
40065
40066         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40067         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40068         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40069         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40070         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40071         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40072         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40073         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40074
40075         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40076         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40077         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40078         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40079         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40080         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40081         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40082         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40083
40084         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40085         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40086         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40087         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40088         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40089         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40090         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40091         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40092
40093         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40094         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40095
40096         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40097         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40098
40099         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40100         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40101
40102         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40104         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40105
40106         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40108         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40109
40110         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40111         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40112         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40113
40114         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40115         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40116         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40117
40118         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40119         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40120         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40121         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40122         (Depends-on): Add EOVERFLOW.
40123         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40124         (Depends-on): Add EOVERFLOW.
40125         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40126         (Depends-on): Add EOVERFLOW.
40127         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40128         (Depends-on): Add EOVERFLOW.
40129         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40130         (Depends-on): Add EOVERFLOW.
40131         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40132         (Depends-on): Add EOVERFLOW.
40133         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40134         (Depends-on): Add EOVERFLOW.
40135         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40136         (Depends-on): Add EOVERFLOW.
40137
40138         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40139         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40140         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40141
40142         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40144         * modules/snprintf (Depends-on): Add EOVERFLOW.
40145
40146         * lib/poll.c (EOVERFLOW): Remove fallback.
40147         * modules/poll (Depends-on): Add EOVERFLOW.
40148
40149         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40150         * modules/getugroups (Depends-on): Add EOVERFLOW.
40151
40152         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40153         * modules/getdelim (Depends-on): Add EOVERFLOW.
40154
40155         * lib/ftell.c (EOVERFLOW): Remove fallback.
40156         * modules/ftell (Depends-on): Add EOVERFLOW.
40157
40158         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40159         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40160         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40161
40162         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40163
40164         * modules/EOVERFLOW-tests: New file.
40165         * tests/test-EOVERFLOW.c: New file.
40166
40167         * modules/EOVERFLOW: New file.
40168         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40169
40170 2008-03-30  Bruno Haible  <bruno@clisp.org>
40171
40172         Fix bug introduced on 2007-06-10.
40173         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40174         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40175
40176 2008-03-30  Bruno Haible  <bruno@clisp.org>
40177
40178         Improve freadseek's efficiency after ungetc.
40179         * lib/freadseek.c: Include freadahead.h.
40180         (freadptrinc): New function, extracted from freadseek.
40181         (freadseek): Use it in a loop. Use freadahead to determine the number
40182         of loop iterations.
40183         * modules/freadseek (Depends-on): Add freadahead.
40184         (configure.ac): Require AC_C_INLINE.
40185
40186 2008-03-30  Bruno Haible  <bruno@clisp.org>
40187
40188         * lib/freadseek.c (freadseek): Don't ignore the return value of
40189         freadptr.
40190
40191 2008-03-29  Eric Blake  <ebb9@byu.net>
40192
40193         Add hex float support.
40194         * modules/strtod (Depends-on): Add c-ctype.
40195         (Link): Mention POW_LIB.
40196         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40197         whitespace between 'e' and exponent.
40198         * tests/test-strtod.c (main): Enable hex float tests.
40199         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40200         now provides.
40201
40202         Document various strtod bugs, with some fixes.
40203         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40204         "-0x", "inf", "nan", and hex constants.
40205         * doc/posix-functions/atof.texi (atof): Likewise.
40206         * modules/stdlib (Makefile.am): Support strtod.
40207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40208         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
40209         detect additional strtod bugs.
40210         * lib/stdlib.in.h (rpl_strtod): Add declarations.
40211         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
40212         bool where appropriate.  Parse 'inf' and 'nan'.
40213         * tests/test-strtod.c: New file.
40214         * modules/strtod (Depends-on): Add stdbool, stdlib.
40215         (configure.ac): Turn on module indicator.
40216         * modules/strtod-tests: New module.
40217
40218 2008-03-29  Eric Blake  <ebb9@byu.net>
40219
40220         Fix ftell on mingw.
40221         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
40222         * modules/ftell-tests (Depends-on): Add binary-io.
40223         * modules/ftello-tests (Depends-on): Likewise.
40224         * tests/test-ftell.c (main): Enhance test to cover behavior after
40225         ungetc.  Enforce binary mode.
40226         * tests/test-ftello.c (main): Likewise.
40227
40228         Pass test-freadseek on cygwin.
40229         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
40230         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
40231         ungetc buffer.
40232
40233         * tests/test-fflush2.c (main): Fix typo.
40234
40235 2008-03-29  Bruno Haible  <bruno@clisp.org>
40236
40237         * tests/test-fflush2.c (main): Temporarily disable the contents of
40238         this test.
40239         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
40240         Reported by Eric Blake.
40241
40242 2008-03-28  Simon Josefsson  <simon@josefsson.org>
40243
40244         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
40245         (GC_SHA224_DIGEST_SIZE): Add.
40246
40247         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
40248         (gc_hash_digest_length): Likewise.
40249         (gc_hash_buffer): Likewise.
40250
40251 2008-03-25  Bruno Haible  <bruno@clisp.org>
40252
40253         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
40254         detail which gettext release to use.
40255         Reported by Simon Josefsson.
40256
40257 2008-03-26  Jim Meyering  <meyering@redhat.com>
40258
40259         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
40260         * modules/gnumakefile (clean-GNUmakefile): Also, use
40261         test ... && ... || : syntax rather than if-then ... fi.
40262
40263         gnumakefile: Don't double-quote-expand $(VPATH) value.
40264         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
40265
40266 2008-03-24  Eric Blake  <ebb9@byu.net>
40267
40268         Alter GNUmakefile to install into top directory.
40269         * modules/maintainer-makefile: Split, and add dependency...
40270         * modules/gnumakefile: to this new module.
40271         * build-aux/GNUmakefile: Move...
40272         * top/GNUmakefile: ...here.
40273         * build-aux/maint.mk: Move...
40274         * top/maint.mk: ...here.
40275         * MODULES.html.sh (Support for maintaining...): Document new
40276         module.
40277
40278 2008-03-23  Bruno Haible  <bruno@clisp.org>
40279
40280         * gnulib-tool: New options --vc-files, --no-vc-files.
40281         (func_usage): Document them.
40282         (vc_files): New variable.
40283         (func_import): Consider vc_files.
40284         (func_create_testdir): Set vc_files to empty.
40285         Suggested by Jim Meyering and Karl Berry.
40286
40287 2008-03-23  Bruno Haible  <bruno@clisp.org>
40288
40289         Fix regex compilation error on HP-UX 11.
40290         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
40291         * modules/regex (Files): Add m4/mbstate_t.m4.
40292         Reported by Ton Voon <ton.voon@altinity.com>.
40293
40294 2008-03-23  Bruno Haible  <bruno@clisp.org>
40295
40296         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
40297
40298 2008-03-23  Eric Blake  <ebb9@byu.net>
40299             Bruno Haible  <bruno@clisp.org>
40300
40301         Install files from top/ in the destination directory.
40302         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
40303         augmentation also for the files from top/.
40304         (func_import, func_create_testdir): Rewrite file names:
40305         top/filename -> filename.
40306
40307 2008-03-23  Bruno Haible  <bruno@clisp.org>
40308
40309         Tweak "gnulib --version" output.
40310         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
40311
40312 2008-03-23  Bruno Haible  <bruno@clisp.org>
40313
40314         Tweak "gnulib --version" output.
40315         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
40316         rather than contents of ChangeLog, when possible.
40317
40318 2008-03-21  Eric Blake  <ebb9@byu.net>
40319
40320         More --version tweaks.
40321         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
40322         date of last ChangeLog entry.
40323
40324 2008-03-21  Jim Meyering  <meyering@redhat.com>
40325
40326         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
40327
40328 2008-03-20  Eric Blake  <ebb9@byu.net>
40329
40330         VPATH fix.
40331         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
40332
40333 2008-03-20  Simon Josefsson  <simon@josefsson.org>
40334
40335         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
40336         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
40337
40338 2008-03-20  Eric Blake  <ebb9@byu.net>
40339
40340         Sync GNUmakefile with coreutils.
40341         * build-aux/GNUmakefile (have-Makefile): Rename...
40342         (_have-Makefile): ...to this, for namespace consideration.
40343         (GNUmakefile.cfg): Include, if present.
40344         (_autoreconf): Define a default.
40345         (_is-dist-target): New rule for rebuilds to pick up intra-release
40346         version.
40347         (maint-cfg.mk): Rename...
40348         (cfg.mk): ...to this.
40349
40350 2008-03-18  Jim Meyering  <meyering@redhat.com>
40351
40352         New script and module: mktempd
40353         * MODULES.html.sh (maint+release support): Add mktempd.
40354         * build-aux/mktempd: New file.
40355         * modules/mktempd: New file.
40356
40357 2008-03-15  Jim Meyering  <meyering@redhat.com>
40358
40359         Undo last change.
40360         * lib/sha1.c, lib/md5.c: 63 != ~63.
40361         Reported by Andreas Schwab.
40362
40363         sha1.c, md5.c: Hoist a redundant expression.
40364         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
40365         "ctx->buflen" only once, before calling *_process_block.
40366         * lib/md5.c (md5_process_bytes): Likewise.
40367
40368 2008-03-14  Eric Blake  <ebb9@byu.net>
40369
40370         Bump copyright year in files generated by gnulib-tool.
40371         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
40372         gnulib-tool, rather than hard-coding it.
40373
40374         Fix 'gnulib-tool --version' output to work with git.
40375         * gnulib-tool (func_gnulib_dir): New function, extracted from...
40376         (startup): ...here.
40377         (func_version): Use it to invoke git-version-gen, rather than
40378         relying on CVS keyword expansion.  Modernize wording.
40379         (cvsdatestamp, last_checkin_date, version): Kill unused
40380         variables.
40381
40382 2008-03-12  Jim Meyering  <meyering@redhat.com>
40383
40384         Recognize optional cast of the argument to free.
40385         * build-aux/useless-if-before-free: Update regexps.
40386
40387         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
40388
40389 2008-03-11  Bruno Haible  <bruno@clisp.org>
40390
40391         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
40392         by a single package.
40393         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
40394         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
40395         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
40396         Reported by Sam Steingold <sds@gnu.org>.
40397
40398 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40399
40400         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
40401         repositories.
40402
40403 2008-03-11  Bruno Haible  <bruno@clisp.org>
40404
40405         Avoid conflicts between local macro definitions.
40406         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
40407         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
40408
40409 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
40410             Bruno Haible  <bruno@clisp.org>
40411
40412         Make va_copy work with some version of xlc on AIX 5.1.
40413         * lib/stdarg.in.h: New file.
40414         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
40415         On AIX, use a <stdarg.h> file substitute.
40416         * modules/stdarg (Files): Add lib/stdarg.in.h.
40417         (Depends-on): Add include_next.
40418         (Makefile.am): Build a stdarg.h substitute if requested.
40419         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
40420
40421 2008-03-10  Bruno Haible  <bruno@clisp.org>
40422
40423         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
40424         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40425         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40426
40427 2008-03-10  Bruno Haible  <bruno@clisp.org>
40428
40429         * modules/stdlib (Depends-on): Add include_next, remove
40430         absolute-header.
40431
40432 2008-03-09  Bruno Haible  <bruno@clisp.org>
40433
40434         * lib/freadahead.h (freadahead): Document more precisely.
40435         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
40436         the sum of both buffer sizes.
40437         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
40438         * NEWS: Document the change.
40439
40440 2008-03-09  Bruno Haible  <bruno@clisp.org>
40441
40442         Extend freadptr to return also the buffer size.
40443         * lib/freadptr.h (freadptr): Add sizep argument.
40444         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
40445         (freadptr): Add sizep argument. Determine buffer size like freadahead
40446         does.
40447         * tests/test-freadptr.c: Don't include freadahead.h.
40448         (main): Adapt for new calling convention of freadptr.
40449         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
40450         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
40451         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
40452         tests/test-freadptr2.sh.
40453         (Depends): Remove freadahead.
40454         (TESTS): Add test-freadptr2.sh.
40455         (check_PROGRAMS): Add test-freadptr2.
40456
40457 2008-03-09  Bruno Haible  <bruno@clisp.org>
40458
40459         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
40460         Report and solution by Simon Josefsson.
40461
40462 2008-03-06  Bruno Haible  <bruno@clisp.org>
40463
40464         Make fflush after ungetc work on BSD platforms.
40465         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
40466         * tests/test-fflush2.c: New file.
40467         * tests/test-fflush2.sh: New file.
40468         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
40469         tests/test-fflush2.c.
40470         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
40471         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
40472
40473 2008-03-06  Eric Blake  <ebb9@byu.net>
40474
40475         Likewise for ftello.
40476         * modules/ftello (Dependencies): Add extensions.
40477         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
40478
40479 2008-03-06  Bruno Haible  <bruno@clisp.org>
40480
40481         * modules/fseeko (Dependencies): Add extensions.
40482         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
40483         Needed on glibc systems.
40484
40485 2008-03-06  Bruno Haible  <bruno@clisp.org>
40486
40487         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
40488         email address.
40489         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40490
40491 2008-03-06  Bruno Haible  <bruno@clisp.org>
40492
40493         * users.txt: Add libgnupdf.
40494
40495 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40496
40497         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
40498         (Header File Substitutes, Function Substitutes,
40499         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
40500         (Build robot for gnulib): Fix typo.
40501
40502 2008-03-06  Bruno Haible  <bruno@clisp.org>
40503
40504         * doc/gnulib-tool.texi (VCS Issues): Small updates.
40505         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
40506
40507 2008-03-06  Bruno Haible  <bruno@clisp.org>
40508
40509         * doc/func.texi: New file, extracted from doc/gnulib.texi.
40510         * doc/gnulib.texi: Include it.
40511
40512 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40513
40514         * modules/func (License): Change license to unlimited; there was
40515         no LGPL parts in the module anyway.
40516
40517 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40518
40519         * modules/__func__: Renamed to modules/func.
40520         * modules/__func__-tests: Renamed to modules/func-tests.
40521         * tests/test-__func__.c: Renamed to tests/test-func.c.
40522         * m4/__func__.m4: Renamed to m4/func.m4.
40523         * doc/gnulib.texi (__func__): Section renamed to func.
40524         Suggested by Eric Blake <ebb9@byu.net>.
40525
40526 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40527
40528         * doc/gnulib.texi (__func__): Use C99 terminology when talking
40529         about __func__.  Make example self-contained.  Suggested by Eric
40530         Blake <ebb9@byu.net>.
40531
40532         * tests/test-__func__.c (main): Avoid extraneous () around __func.
40533         Suggested by Eric Blake <ebb9@byu.net>.
40534
40535 2008-03-06  Simon Josefsson  <simon@josefsson.org>
40536
40537         * modules/__func__: New file.
40538         * modules/__func__-tests: New file.
40539         * tests/test-__func__.c: New file.
40540         * m4/__func__.m4: New file.
40541         * doc/gnulib.texi (__func__): Document __func__ module.
40542
40543 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40544
40545         * modules/byteswap (License): Re-license as LGPLv2+.
40546
40547 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40548
40549         * doc/Makefile: Add pdf target.
40550
40551 2008-03-05  Simon Josefsson  <simon@josefsson.org>
40552
40553         * modules/inline (License): Use 'unlimited', since there are only
40554         *.m4 files in this module.
40555
40556 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40557             Bruno Haible  <bruno@clisp.org>
40558
40559         Add support for HP C 7.1 on OpenVMS 8.3.
40560         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
40561
40562 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
40563
40564         Update VMS specifics.
40565         * lib/getopt.c [VMS]: Remove include of unixlib.h.
40566
40567 2008-03-02  Jim Meyering  <meyering@redhat.com>
40568
40569         Remove the last dependency on the "free" module.
40570         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
40571         Reported by Bob Proulx.
40572
40573         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
40574
40575         Remove useless "if" tests before free.  Deprecate "free" module.
40576         * doc/posix-functions/free.texi: Mention that this
40577         module is no longer useful.
40578         * modules/free (Notice): Say this module is obsolete.
40579         * modules/readutmp (Depends-on): Remove free.
40580         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
40581         * lib/putenv.c (putenv): Likewise.
40582         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
40583         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
40584         * tests/test-c-strcasestr.c (main): Likewise.
40585         * tests/test-c-strstr.c (main): Likewise.
40586         * tests/test-mbscasestr1.c (main): Likewise.
40587         * tests/test-mbscasestr2.c (main): Likewise.
40588         * tests/test-mbsstr1.c (main): Likewise.
40589         * tests/test-mbsstr2.c (main): Likewise.
40590         * tests/test-memmem.c (main): Likewise.
40591         * tests/test-strcasestr.c (main): Likewise.
40592         * tests/test-striconv.c (main): Likewise.
40593         * tests/test-striconveh.c (main): Likewise.
40594         * tests/test-striconveha.c (main): Likewise.
40595         * tests/test-strstr.c (main): Likewise.
40596
40597         * build-aux/git-version-gen: Adjust a comment and the Usage string.
40598
40599         bootstrap: sync from coreutils again
40600         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
40601
40602 2008-03-01  Jim Meyering  <meyering@redhat.com>
40603
40604         bootstrap: sync from coreutils
40605         * build-aux/bootstrap (update_po_files): Copy a .po file into place
40606         also when the target doesn't exist.
40607
40608 2008-03-01  Eric Blake  <ebb9@byu.net>
40609
40610         Fix bugs in last patch.
40611         * lib/memchr2.c (memchr2): Fix typo.
40612         * tests/test-memchr2.c: Test previous bug, and don't use GNU
40613         extension.
40614         Reported by Bruce Korb.
40615
40616         New module 'memchr2'.
40617         * modules/memchr2: New file.
40618         * modules/memchr2-tests: Likewise.
40619         * lib/memchr2.h: Likewise.
40620         * lib/memchr2.c: Likewise, based on memchr.c.
40621         * tests/test-memchr2.c: New test.
40622         * MODULES.html.sh (String handling): Add memchr2.
40623
40624 2008-02-29  Bruno Haible  <bruno@clisp.org>
40625
40626         * modules/freadseek-tests: New file.
40627         * tests/test-freadseek.sh: New file.
40628         * tests/test-freadseek.c: New file.
40629
40630         New module 'freadseek'.
40631         * modules/freadseek: New file.
40632         * lib/freadseek.h: New file.
40633         * lib/freadseek.c: New file.
40634         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
40635
40636 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40637
40638         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
40639         wydawca.
40640
40641         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
40642         program_invocation_name and program_invocation_short_name are
40643         present.
40644
40645 2008-02-28  Bruno Haible  <bruno@clisp.org>
40646
40647         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
40648         * tests/test-freadptr.sh: Also test non-seekable stdin.
40649
40650 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
40651
40652         * build-aux/bootstrap (source_base, m4_base)
40653         (doc_base, tests_base): New variables.
40654         (gnulib_tool_options): Do not hardcode base directories, use
40655         the above variables instead.
40656
40657 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
40658
40659         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
40660
40661 2008-02-28  Bruno Haible  <bruno@clisp.org>
40662
40663         * modules/freadptr-tests: New file.
40664         * tests/test-freadptr.sh: New file.
40665         * tests/test-freadptr.c: New file.
40666
40667         New module 'freadptr'.
40668         * modules/freadptr: New file.
40669         * lib/freadptr.h: New file.
40670         * lib/freadptr.c: New file.
40671         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
40672
40673 2008-02-26  Karl Berry  <karl@freefriends.org>
40674
40675         Sync from Libtool:
40676         * libltdl/argz.c (argz_add, argz_count): New functions.
40677         * libltdl/argz.in.h: Declare them.
40678         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
40679
40680 2008-02-22  Bruno Haible  <bruno@clisp.org>
40681
40682         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
40683         is a pointer type.  Needed for HP-UX 10.
40684         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
40685         * doc/posix-functions/gmtime_r.texi: Likewise.
40686         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
40687
40688 2008-02-24  Bruno Haible  <bruno@clisp.org>
40689
40690         * modules/environ-tests: New file.
40691         * tests/test-environ.c: New file.
40692
40693         New module 'environ'.
40694         * modules/environ: New file.
40695         * lib/unistd.in.h (environ): New declaration.
40696         * m4/environ.m4: New file.
40697         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
40698         after use.
40699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
40700         HAVE_DECL_ENVIRON.
40701         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
40702         HAVE_DECL_ENVIRON.
40703         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
40704         wrong claim that 'environ' is missing on some systems.
40705         * modules/execute (Depends-on): Add environ.
40706         * lib/execute.c (environ): Remove fallback declaration.
40707         * modules/pipe (Depends-on): Add environ.
40708         * lib/pipe.c (environ): Remove fallback declaration.
40709         * modules/setenv (Depends-on): Add environ.
40710         * lib/setenv.c (environ): Remove fallback declaration.
40711         * modules/unsetenv (Depends-on): Add environ.
40712         * lib/unsetenv.c (environ): Remove fallback declaration.
40713         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
40714         m4/environ.m4.
40715         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
40716         (gl_PREREQ_UNSETENV): Likewise.
40717
40718 2008-02-24  Bruno Haible  <bruno@clisp.org>
40719
40720         * doc/posix-functions/environ.texi: Document the MacOS X problem.
40721
40722 2008-02-20  Bob Proulx  <bob@proulx.com>
40723
40724         Enable use of older two part flavor 'git describe'.
40725         * build-aux/git-version-gen: If using the older two part flavor of
40726         git version then recreate the third part now present in the
40727         newer three part flavor of git describe.
40728
40729 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
40730
40731         * lib/fts.c (fts_build): Typo correction to comment.
40732
40733 2008-02-17  Bruno Haible  <bruno@clisp.org>
40734
40735         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
40736         generating no-op conflicts.
40737
40738 2008-02-17  Bruno Haible  <bruno@clisp.org>
40739
40740         Speed up by 10%.
40741         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
40742         result_entries, rather than an index-based loop.
40743
40744 2008-02-17  Bruno Haible  <bruno@clisp.org>
40745
40746         Speed up by 25%.
40747         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
40748         'hashcode_cached'.
40749         (entry_create): New function.
40750         (entry_hashcode): Use the cached hashcode if possible.
40751         (read_changelog_file, try_split_merged_entry): Use entry_create.
40752
40753 2008-02-17  Bruno Haible  <bruno@clisp.org>
40754
40755         Speed up from O(n^2) to O(n) for long ChangeLog files.
40756         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
40757         (read_changelog_file): Change implementation of entries_reversed list
40758         to rbtreehash.
40759         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
40760
40761 2008-02-17  Bruno Haible  <bruno@clisp.org>
40762
40763         New option --split-merged-entry.
40764         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
40765         (find_paragraph_end, try_split_merged_entry): New functions.
40766         (long_options): Add option --split-merged-entry.
40767         (usage): Document option --split-merged-entry.
40768         (main): Implement option --split-merged-entry.
40769         Reported by Eric Blake.
40770
40771 2008-02-17  Bruno Haible  <bruno@clisp.org>
40772
40773         * lib/git-merge-changelog.c: Include c-strstr.h.
40774         (main): Support the "git pull --rebase" situation.
40775         * modules/git-merge-changelog (Depends-on): Add c-strstr.
40776         Reported by Eric Blake.
40777
40778 2008-02-16  Eric Blake  <ebb9@byu.net>
40779
40780         Avoid doubling \ in common case of "c-maybe" quoting style.
40781         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
40782         eliding outer quotes.
40783         * lib/quotearg.h: Document this.
40784         * tests/test-quotearg.c (result_strings, inputs, results_g)
40785         (flag_results, locale_results): Test it by adding a new string to
40786         each test group.
40787         (compare_strings): Test new string.
40788
40789 2008-02-13  Eric Blake  <ebb9@byu.net>
40790
40791         Avoid trigraph quoting in default output.
40792         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
40793         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
40794         unless explicitly requested.
40795         * tests/test-quotearg.c (flag_results, main): Add additional tests.
40796
40797 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
40798
40799         Don't rely on signed integer overflowing to negative value.
40800         * lib/getugroups.c (getugroups): Include <limits.h>.
40801         Instead, compare against INT_MAX, and increment only if the test passes.
40802
40803 2008-02-13  Jim Meyering  <meyering@redhat.com>
40804         and Eric Blake  <ebb9@byu.net>
40805
40806         Avoid shadowing warning and compile errors on Linux.
40807         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
40808         forwarding macros on Linux.
40809         (dcgettext): Define a stub, for Linux.
40810         (results_g, main): Avoid warnings.
40811
40812 2008-02-12  Eric Blake  <ebb9@byu.net>
40813
40814         Silence warning in last patch.
40815         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
40816
40817         Quotearg part 4: add tests, fix c-maybe colon quoting.
40818         * lib/quotearg.h: Improve documentation.
40819         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
40820         escapes when adding outer quotes.  When quoting trigraphs, use
40821         valid C notation.  When quoting NUL, omit extra characters if next
40822         character is not digit.  Alter prototype.
40823         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
40824         callers.
40825         * modules/quotearg-tests: New module.
40826         * tests/test-quotearg.c: New test.
40827
40828 2008-02-07  Eric Blake  <ebb9@byu.net>
40829
40830         Quotearg part 3: add flag to control outer quote elision.
40831         * lib/quotearg.h (c_maybe_quoting_style): New style.
40832         (enum quoting_flags): Better documentation of flags.
40833         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
40834         c-maybe style.
40835         (quotearg_buffer_restyled): Handle new flag to elide outer
40836         quotes.
40837
40838         Quotearg part 2: add flag that can control NUL elision.
40839         * lib/quotearg.h (set_quoting_flags): New prototype.
40840         * lib/quotearg.c (struct quoting_options): Add flag field.
40841         (set_quoting_flags): New function.
40842         (quotearg_buffer_restyled): Add flags parameter.
40843         (quotearg_alloc_mem): Set the flag if length cannot be returned.
40844         (quotearg_n_options): Set the flag, since length cannot be
40845         returned.
40846         (quoting_options_from_style): Default flags correctly.
40847
40848         Quotearg part 1: more wrappers, restore quotearg_char state.
40849         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
40850         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
40851         (quotearg_colon_mem): New wrappers.
40852         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
40853         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
40854         functions.
40855         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
40856         (quotearg_colon_mem): New functions.
40857
40858 2008-02-11  Bruno Haible  <bruno@clisp.org>
40859
40860         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
40861         library in the current directory: it does not work with parallel make.
40862         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40863
40864 2008-02-11  Bruno Haible  <bruno@clisp.org>
40865
40866         * .gitattributes: New file.
40867
40868 2008-02-11  Jim Meyering  <meyering@redhat.com>
40869
40870         useless-if-before-free: Fix reversed exit values.
40871         * build-aux/useless-if-before-free: Use correct values
40872         for EXIT_MATCH and EXIT_NO_MATCH.
40873
40874         * build-aux/useless-if-before-free: Close stdout carefully.
40875
40876 2008-02-10  Bruno Haible  <bruno@clisp.org>
40877
40878         New module 'git-merge-changelog'.
40879         * modules/git-merge-changelog: New file.
40880         * lib/git-merge-changelog.c: New file.
40881
40882 2008-02-10  Jim Meyering  <meyering@redhat.com>
40883
40884         useless-if-before-free: New option: --list (-l).
40885
40886         useless-if-before-free: Don't exit immediately upon open failure.
40887         * build-aux/useless-if-before-free: Exit 2 for errors.
40888         Upon failure to open a file, don't exit immediately.
40889         Rather, just warn and continue with any remaining files.
40890
40891 2008-02-10  Bruno Haible  <bruno@clisp.org>
40892
40893         New abstract list operation 'node_set_value'.
40894         * lib/gl_list.h (gl_list_node_set_value): New function.
40895         (struct gl_list_implementation): New field node_set_value.
40896         * lib/gl_list.c (gl_list_node_set_value): New function.
40897         * lib/gl_array_list.c (gl_array_node_set_value): New function.
40898         (gl_array_list_implementation): Update.
40899         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
40900         (gl_carray_list_implementation): Update.
40901         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
40902         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40903         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40904         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
40905         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40906         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40907         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40908         Update.
40909         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
40910         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
40911         (gl_sublist_list_implementation): Update.
40912
40913 2008-02-10  Bruno Haible  <bruno@clisp.org>
40914
40915         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
40916         Needed when ELEMENT is #defined to 'some_type *'.
40917
40918 2008-02-10  Jim Meyering  <meyering@redhat.com>
40919
40920         New script and module: useless-if-before-free
40921         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
40922         * build-aux/useless-if-before-free: New file.
40923         * modules/useless-if-before-free: New file.
40924
40925         * build-aux/gitlog-to-changelog: Use committer date, not author date.
40926
40927         xstrtol_error: Fix typo.
40928         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
40929         s/exit_failure/exit_status/.
40930
40931 2008-02-09  Jim Meyering  <meyering@redhat.com>
40932
40933         New script and module: gitlog-to-changelog
40934         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
40935         * modules/gitlog-to-changelog: New file.
40936         * build-aux/gitlog-to-changelog: New file.
40937
40938 2008-02-08  Jim Meyering  <meyering@redhat.com>
40939
40940         Avoid two "parameter unused" warnings.
40941         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
40942         Mark "st" as used.
40943
40944         Use "git COMMAND", not "git-COMMAND".
40945         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
40946         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
40947         * build-aux/git-version-gen: Use "git status", not "git-status".
40948
40949 2008-02-07  Bruno Haible  <bruno@clisp.org>
40950
40951         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
40952         Avoids a crash on Windows Vista.
40953         Reported by Adam Strzelecki <ono@java.pl> via
40954         Simon Josefsson <simon@josefsson.org>.
40955
40956 2008-02-06  Bruno Haible  <bruno@clisp.org>
40957
40958         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
40959         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
40960         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
40961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
40962         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40963         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40964         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
40965         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
40966         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40967         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40968         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40969         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40970         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40972         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40973         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
40974         left-adjust flag.
40975         * tests/test-snprintf-posix.h (test_function): Likewise.
40976         * tests/test-sprintf-posix.h (test_function): Likewise.
40977         * tests/test-vasprintf-posix.c (test_function): Likewise.
40978         * doc/posix-functions/fprintf.texi: Update.
40979         * doc/posix-functions/printf.texi: Update.
40980         * doc/posix-functions/snprintf.texi: Update.
40981         * doc/posix-functions/sprintf.texi: Update.
40982         * doc/posix-functions/vfprintf.texi: Update.
40983         * doc/posix-functions/vprintf.texi: Update.
40984         * doc/posix-functions/vsnprintf.texi: Update.
40985         * doc/posix-functions/vsprintf.texi: Update.
40986         Reported by Peter Fales <psfales@alcatel-lucent.com>.
40987
40988 2008-02-06  Bruno Haible  <bruno@clisp.org>
40989
40990         Fix bug introduced on 2008-01-26.
40991         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
40992
40993 2008-02-06  Bruno Haible  <bruno@clisp.org>
40994
40995         Fix bug introduced on 2007-06-10.
40996         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
40997         !NEED_PRINTF_FLAG_ZERO.
40998
40999 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41000
41001         getloadavg: use libperfstat on AIX5
41002         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41003
41004 2008-02-03  Bruno Haible  <bruno@clisp.org>
41005
41006         * lib/diffseq.h: Add comments about required #includes.
41007         Reported by Michael Biggs <gnulib@doubleplum.net>.
41008
41009 2008-02-01  Bruno Haible  <bruno@clisp.org>
41010
41011         * users.txt: Add gnuit.
41012
41013 2008-01-31  Bruno Haible  <bruno@clisp.org>
41014
41015         * lib/md4.c (set_uint32): Mark as inline.
41016         * lib/md5.c (set_uint32): Likewise.
41017         * lib/sha1.c (set_uint32): Likewise.
41018         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41019         * m4/md5.m4 (gl_MD5): Likewise.
41020         * m4/sha1.m4 (gl_SHA1): Likewise.
41021
41022 2008-01-31  Jim Meyering  <meyering@redhat.com>
41023
41024         Use "sizeof VAR", rather than a literal "4".
41025         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41026         * lib/md4.c (md4_read_ctx): Likewise.
41027         * lib/sha1.c (sha1_read_ctx): Likewise.
41028
41029 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41030
41031         * tests/test-sha1.c: New file, based on test-md5.c.
41032
41033         * modules/crypto/sha1-tests: New file.
41034
41035 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41036
41037         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41038
41039 2008-01-31  Jim Meyering  <meyering@redhat.com>
41040
41041         Prefer "sizeof v" over the equivalent "4".
41042         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41043         * lib/md5.c (set_uint32): Likewise.
41044         * lib/sha1.c (set_uint32): Likewise.
41045
41046 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41047
41048         * lib/sha1.c (set_uint32): Mark function as static.
41049
41050 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41051
41052         md2: clarify comments to say that alignment is not required.
41053         * lib/md2.h: Remove warning about alignment in comment.
41054         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41055         never been required.
41056
41057 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41058
41059         md4: adapt alignment constraint fix from sha1.
41060         * lib/md4.c (set_uint32): New function, from sha1.c
41061         (md4_read_ctx): Use it.
41062         (md4_finish_ctx): Doc fix.
41063         * lib/md4.h: Doc fix.
41064
41065 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41066
41067         md5: adapt alignment constraint fix from sha1.
41068         * lib/md5.c (set_uint32): New function, from sha1.c
41069         (md5_read_ctx): Use it.
41070         (md5_finish_ctx): Doc fix.
41071         * lib/md5.h: Doc fix.
41072
41073 2008-01-30  Peter Palfrader  <weasel@debian.org>
41074
41075         sha1: remove the result buffer alignment constraint
41076         * lib/sha1.c (set_uint32): New function.
41077         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41078         constraint.
41079         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41080         * lib/sha1.h: Likewise.
41081
41082 2008-01-30  Andreas Schwab  <schwab@suse.de>
41083             Bruno Haible  <bruno@clisp.org>
41084
41085         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41086         correct definition of LDBL_MIN_EXP.
41087
41088 2008-01-30  Karl Berry  <karl@gnu.org>
41089
41090         * config/srclist-update: try to preserve x bit on updates.
41091         * config/srclistvars.sh: update for karl.
41092
41093 2008-01-29  Jim Meyering  <meyering@redhat.com>
41094
41095         vasnprintf.c: Avoid warning about unused label
41096         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41097         "overflow" label definition and associated code with the
41098         same cpp condition that guards the sole use of that label.
41099
41100 2008-01-26  Bruno Haible  <bruno@clisp.org>
41101
41102         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41103         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41104         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41105         * lib/isnanl-nolibm.h (isnanl): Likewise.
41106         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41107
41108 2008-01-26  Bruno Haible  <bruno@clisp.org>
41109
41110         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41111         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41112
41113 2008-01-26  Bruno Haible  <bruno@clisp.org>
41114
41115         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41116         GCC >= 4.0 built-in.
41117         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41118
41119 2008-01-26  Bruno Haible  <bruno@clisp.org>
41120
41121         Rename isnan, applicable to 'double' only, to isnand.
41122         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41123         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41124         (configure.ac): Update.
41125         (Include): Replace "isnan.h" with "isnand.h".
41126         * m4/isnand.m4: Renamed from m4/isnan.m4.
41127         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41128         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41129         instead of isnan.c.
41130         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41131         instead of HAVE_ISNAN_IN_LIBC.
41132         (isnand): Renamed from isnan.
41133         * lib/isnand.c: New file.
41134         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41135         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41136         (Makefile.am): Update.
41137         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41138         Include isnand.h instead of isnan.h.
41139         (main): Test isnand instead of isnan.
41140         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41141         isnan-nolibm.
41142         * modules/frexp (Depends-on): Likewise.
41143         * modules/frexp-tests (Depends-on): Likewise.
41144         * modules/frexp-nolibm (Depends-on): Likewise.
41145         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41146         * modules/isfinite (Depends-on): Likewise.
41147         * modules/round-tests (Depends-on): Likewise.
41148         * modules/signbit (Depends-on): Likewise.
41149         * modules/signbit-tests (Depends-on): Likewise.
41150         * modules/snprintf-posix (Depends-on): Likewise.
41151         * modules/sprintf-posix (Depends-on): Likewise.
41152         * modules/trunc-tests (Depends-on): Likewise.
41153         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41154         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41155         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41156         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41157         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41158         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41159         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41160         * modules/vasnprintf-posix (Depends-on): Likewise.
41161         * modules/vasprintf-posix (Depends-on): Likewise.
41162         * modules/vfprintf-posix (Depends-on): Likewise.
41163         * modules/vsnprintf-posix (Depends-on): Likewise.
41164         * modules/vsprintf-posix (Depends-on): Likewise.
41165         * lib/frexp.c: Include isnand.h instead of isnan.h.
41166         (ISNAN): Set to isnand instead of isnan.
41167         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41168         (gl_isfinited): Use isnand instead of isnan.
41169         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41170         (gl_signbitd): Use isnand instead of isnan.
41171         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41172         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41173         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41174         (main): Use isnand instead of isnan.
41175         * tests/test-round1.c: Include isnand.h.
41176         (main): Use isnand instead of isnan.
41177         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41178         (ISNAN): Set to isnand instead of isnan.
41179         * tests/test-trunc1.c: Include isnand.h.
41180         (main): Use isnand instead of isnan.
41181         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41182         (equal): Use isnand instead of isnan.
41183         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41184         isnand-nolibm.
41185         * NEWS: Mention the change.
41186
41187 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41188             Bruno Haible  <bruno@clisp.org>
41189
41190         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41191         the GCC builtins for signbits are present and set
41192         REPLACE_SIGNBIT_USING_GCC if so.
41193         * lib/math.in.h (signbit): Define using GCC builtins if
41194         REPLACE_SIGNBIT_USING_GCC is set.
41195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41196         REPLACE_SIGNBIT_USING_GCC.
41197         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41198
41199 2008-01-25  Jim Meyering  <meyering@redhat.com>
41200
41201         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41202         * lib/poll.c: Include <config.h>, not "config.h".
41203         * tests/test-getaddrinfo.c: Likewise.
41204
41205 2008-01-25  Simon Josefsson  <simon@josefsson.org>
41206
41207         * modules/sockets-tests: New file.
41208
41209 2008-01-24  Simon Josefsson  <simon@josefsson.org>
41210
41211         * modules/sockets: New module, can be used to call WSA_Startup and
41212         WSA_Cleanup when needed.
41213
41214         * lib/sockets.h, lib/sockets.c: New files.
41215
41216         * m4/sockets.m4: New file.
41217
41218         * tests/test-sockets.c: New file.
41219
41220 2008-01-19  Bruno Haible  <bruno@clisp.org>
41221
41222         * doc/posix-headers: Renamed from doc/headers.
41223         * doc/posix-functions: Renamed from doc/functions.
41224         * doc/gnulib.texi: Update.
41225
41226 2008-01-19  Bruno Haible  <bruno@clisp.org>
41227
41228         * doc/glibc-functions/strcasestr.texi: Include contents of
41229         doc/functions/strcasestr.texi, fixing the list of platforms.
41230         * doc/functions/strcasestr.texi: Remove file.
41231
41232 2008-01-19  Bruno Haible  <bruno@clisp.org>
41233
41234         * doc/glibc-functions/memmem.texi: Include contents of
41235         doc/functions/memmem.texi.
41236         * doc/functions/memmem.texi: Remove file.
41237
41238 2008-01-18  Bruno Haible  <bruno@clisp.org>
41239
41240         * doc/glibc-functions/*.texi: New files.
41241         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
41242         to use the new files.
41243
41244 2008-01-17  Bruno Haible  <bruno@clisp.org>
41245
41246         * tests/test-gethostname.c (main): Fix printf statement.
41247
41248 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41249
41250         * modules/gethostname-tests: New file.
41251
41252         * tests/test-gethostname.c: New file.
41253
41254 2008-01-17  Simon Josefsson  <simon@josefsson.org>
41255
41256         * lib/gethostname.c: Include string.h unconditionally, strncpy is
41257         used by the UNAME case.  Reported by Bruno Haible
41258         <bruno@clisp.org>.
41259
41260 2008-01-17  Eric Blake  <ebb9@byu.net>
41261
41262         Convert c-strcasestr to be more efficient.
41263         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
41264         (Depends-on): Add c-strcase, remove malloca, strnlen.
41265         * tests/test-c-strcasestr.c (main): Enhance test.
41266         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
41267
41268 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
41269
41270         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
41271         Use it in creating po/Makevars.
41272
41273 2008-01-15  Simon Josefsson  <simon@josefsson.org>
41274
41275         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
41276         Applications that requires it should initialize libgcrypt
41277         manually.
41278
41279 2008-01-16  Simon Josefsson  <simon@josefsson.org>
41280
41281         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
41282
41283 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
41284
41285         Fix problem with getdate on mingw32 reported by Simon Josefsson
41286         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
41287         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
41288         tzname", when deciding whether to declare tzname.
41289         * lib/strftime.c (tzname): Likewise.
41290
41291 2008-01-15  Bruno Haible  <bruno@clisp.org>
41292
41293         Work around a MacOS X 10.5 bug in frexpl().
41294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
41295         * doc/functions/frexpl.texi: Document the bug.
41296         Reported by Elias Pipping <pipping@gentoo.org>.
41297
41298 2008-01-14  Eric Blake  <ebb9@byu.net>
41299
41300         Touch up previous patch.
41301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
41302         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
41303
41304         Convert strcasestr module to use Two-Way algorithm.
41305         * modules/strcasestr-simple: New module, based on the old
41306         strcasestr, but with Two-Way rather than KMP.
41307         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
41308         * lib/string.in.h (rpl_strcasestr): Declare.
41309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
41310         performance.
41311         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
41312         * modules/string (Makefile.am): Support strcasestr.
41313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
41314         * modules/strcasestr-tests (Depends-on): Check for alarm.
41315         * tests/test-strcasestr.c: Augment test.
41316         * lib/str-two-way.h: Clean up stray macro.
41317         * NEWS: Document new module.
41318         * MODULES.html.sh (string handling): Likewise.
41319         * doc/functions/strcasestr.texi: New file.
41320         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
41321         here, since it is not a POSIX function.
41322
41323 2008-01-14  Colin Watson  <cjwatson@debian.org>
41324             Bruno Haible  <bruno@clisp.org>
41325
41326         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
41327         works fine; if not, set REPLACE_STRSIGNAL.
41328         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
41329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41330         REPLACE_STRSIGNAL.
41331         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
41332         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
41333         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
41334
41335 2008-01-14  Bruno Haible  <bruno@clisp.org>
41336
41337         * modules/strsignal (Include): Change to <string.h>.
41338
41339 2008-01-14  Colin Watson  <cjwatson@debian.org>
41340
41341         * modules/argp (Notice): Add a notice recommending to change
41342         XGETTEXT_OPTIONS.
41343         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
41344
41345 2008-01-13  Colin Watson  <cjwatson@debian.org>
41346
41347         * modules/strsignal-tests: New file.
41348         * tests/test-strsignal.c: New file.
41349
41350         * lib/strsignal.c: New file, from glibc with modifications.
41351         * lib/siglist.h: New file, from glibc with modifications.
41352         * lib/string.in.h (strsignal): New declaration.
41353         * m4/strsignal.m4: New file.
41354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41355         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
41356         * modules/strsignal: New file.
41357         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
41358         HAVE_DECL_STRSIGNAL.
41359
41360 2008-01-13  Bruno Haible  <bruno@clisp.org>
41361
41362         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
41363         locale encoding is not ASCII. Needed for OpenBSD 4.0.
41364         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41365         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41366
41367 2008-01-13  Bruno Haible  <bruno@clisp.org>
41368
41369         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
41370         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
41371         * lib/argp.h (__attribute__): Likewise.
41372         * lib/c-stack.c (__attribute__): Likewise.
41373         * lib/error.h (__attribute__): Likewise.
41374         * lib/fts.c (__attribute__): Likewise.
41375         * lib/openat.h (__attribute__): Likewise.
41376         * lib/stdio.in.h (__attribute__): Likewise.
41377         * lib/string.in.h (__attribute__): Likewise.
41378         * lib/utimens.c (__attribute__): Likewise.
41379         * lib/vasnprintf.h (__attribute__): Likewise.
41380         * lib/xalloc.h (__attribute__): Likewise.
41381         * lib/xprintf.h (__attribute__): Likewise.
41382         * lib/xstrtol.h (__attribute__): Likewise.
41383         * lib/xvasprintf.h (__attribute__): Likewise.
41384
41385 2008-01-12  Bruno Haible  <bruno@clisp.org>
41386
41387         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
41388         * doc/glibc-headers/a.out.texi: New file.
41389         * doc/glibc-headers/aliases.texi: New file.
41390         * doc/glibc-headers/alloca.texi: New file.
41391         * doc/glibc-headers/ar.texi: New file.
41392         * doc/glibc-headers/argp.texi: New file.
41393         * doc/glibc-headers/argz.texi: New file.
41394         * doc/glibc-headers/byteswap.texi: New file.
41395         * doc/glibc-headers/crypt.texi: New file.
41396         * doc/glibc-headers/endian.texi: New file.
41397         * doc/glibc-headers/envz.texi: New file.
41398         * doc/glibc-headers/err.texi: New file.
41399         * doc/glibc-headers/error.texi: New file.
41400         * doc/glibc-headers/execinfo.texi: New file.
41401         * doc/glibc-headers/fpu_control.texi: New file.
41402         * doc/glibc-headers/fstab.texi: New file.
41403         * doc/glibc-headers/fts.texi: New file.
41404         * doc/glibc-headers/getopt.texi: New file.
41405         * doc/glibc-headers/ieee754.texi: New file.
41406         * doc/glibc-headers/ifaddrs.texi: New file.
41407         * doc/glibc-headers/libintl.texi: New file.
41408         * doc/glibc-headers/mcheck.texi: New file.
41409         * doc/glibc-headers/mntent.texi: New file.
41410         * doc/glibc-headers/obstack.texi: New file.
41411         * doc/glibc-headers/paths.texi: New file.
41412         * doc/glibc-headers/printf.texi: New file.
41413         * doc/glibc-headers/pty.texi: New file.
41414         * doc/glibc-headers/resolv.texi: New file.
41415         * doc/glibc-headers/shadow.texi: New file.
41416         * doc/glibc-headers/sysexits.texi: New file.
41417         * doc/glibc-headers/ttyent.texi: New file.
41418
41419 2008-01-12  Jim Meyering  <meyering@redhat.com>
41420
41421         announce-gen: emit Gnulib's git-based version string.
41422         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
41423         New option --gnulib-version=V, where V is expected to be
41424         the output of running git describe in the gnulib directory.
41425         (get_tool_versions): Request feedback on xdelta.  I suspect it's
41426         not useful, and plan to stop publishing an xdelta file with each
41427         coreutils release.
41428
41429         * build-aux/announce-gen: Also check for lzma-compressed files.
41430
41431 2008-01-11  Bruno Haible  <bruno@clisp.org>
41432
41433         * tests/test-memmem.c (main): Increase maximum allowed time.
41434         * tests/test-strstr.c (main): Likewise.
41435
41436 2008-01-11  Bruno Haible  <bruno@clisp.org>
41437
41438         * doc/functions/memmem.texi: Add more precisions about platforms.
41439         * doc/functions/strstr.texi: Likewise.
41440
41441 2008-01-10  Eric Blake  <ebb9@byu.net>
41442
41443         * m4/strstr.m4: Delete cruft from copy-n-paste.
41444         Reported by Bruno Haible.
41445
41446 2008-01-10  Bruno Haible  <bruno@clisp.org>
41447
41448         Make c-strstr rely on strstr.
41449         * lib/c-strstr.c: Don't include str-kmp.h.
41450         (c_strstr): Define in terms of strstr.
41451         * modules/c-strstr (Files): Remove lib/str-kmp.h.
41452         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
41453
41454 2008-01-10  Bruno Haible  <bruno@clisp.org>
41455
41456         * doc/gnulib.texi (String Functions in C Locale): New section.
41457         * doc/c-ctype.texi: New file.
41458         * doc/c-strcase.texi: New file.
41459         * doc/c-strcaseeq.texi: New file.
41460         * doc/c-strcasestr.texi: New file.
41461         * doc/c-strstr.texi: New file.
41462         * doc/c-strtod.texi: New file.
41463         * doc/c-strtold.texi: New file.
41464
41465 2008-01-10  Eric Blake  <ebb9@byu.net>
41466
41467         * lib/relocatable.h: Fix a comment.
41468
41469 2008-01-10  Eric Blake  <ebb9@byu.net>
41470
41471         Share two-way algorithm.
41472         * lib/str-two-way.h: New file, merged from...
41473         * lib/memmem.c: ...here...
41474         * lib/strstr.c: ...and here.
41475         * modules/memmem (Files): Use it.
41476         * modules/strstr (Files): Likewise.
41477
41478         Avoid quadratic strstr implementations.
41479         * lib/strstr.c: New file.
41480         * m4/strstr.m4: Likewise.
41481         * modules/strstr: Likewise.
41482         * modules/strstr-tests: Likewise.
41483         * tests/test-strstr.c: Likewise.
41484         * lib/string.in.h (rpl_strstr): Declare.
41485         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
41486         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
41487         * modules/string (Makefile.am): Likewise.
41488         * MODULES.html.sh (string handling): Mention new module.
41489         * doc/functions/strstr.texi (strstr): Document the bug.
41490
41491 2008-01-10  Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/relocatable.h (relocate): State whether result is freshly
41494         allocated or not.
41495         * lib/relocatable.c (relocate): Return a freshly allocated string
41496         instead of a pointer to a privately held string.
41497         Reported by Sylvain Beucler <beuc@gnu.org>.
41498
41499 2008-01-10  Colin Watson  <cjwatson@debian.org>
41500
41501         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
41502         s/S_ISNLK/S_ISLNK/.
41503
41504 2008-01-09  Bruno Haible  <bruno@clisp.org>
41505
41506         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
41507         and other files.
41508         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
41509         if it's only a guess.
41510         * modules/memmem: Simplify by depending on memmem-simple.
41511
41512 2008-01-09  Bruno Haible  <bruno@clisp.org>
41513
41514         Work around OpenBSD 4.0 tdelete() bug.
41515         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
41516         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
41517         macros and don't redefine the enum values.
41518         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
41519         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
41520         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
41521
41522 2008-01-09  Bruno Haible  <bruno@clisp.org>
41523
41524         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
41525         (main): Don't perform the tests if setlocale did not install a UTF-8
41526         locale. Needed on OpenBSD 4.0.
41527         * modules/wcwidth-tests (Depends-on): Add localcharset.
41528
41529 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
41530
41531         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
41532         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
41533         * NEWS: announce this.
41534         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
41535
41536 2008-01-09  Simon Josefsson  <simon@josefsson.org>
41537         and Eric Blake  <ebb9@byu.net>
41538
41539         Add memmem-simple module.
41540         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
41541         (gl_FUNC_MEMMEM): Separate performance from presence checks.
41542         * modules/memmem-simple: New file.
41543         * modules/memmem (Description): Tweak.
41544         * MODULES.html.sh (string handling): Mention new module.
41545         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
41546         addressed by memmem-simple.
41547         * NEWS: Document the difference.
41548
41549 2008-01-09  Eric Blake  <ebb9@byu.net>
41550
41551         Give gcc some memmem optimization hints.
41552         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
41553         (strcasestr): Declare as pure.
41554         * modules/memmem (Maintainer): Claim my implementation.
41555
41556 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41557
41558         Support AIX 6.1 and higher.
41559         * build-aux/config.libpath: Likewise.
41560         * build-aux/config.rpath: Likewise.
41561
41562 2008-01-08  Jim Meyering  <meyering@redhat.com>
41563             Bruno Haible  <bruno@clisp.org>
41564
41565         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
41566         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
41567         Reported by Peter Fales in
41568         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
41569
41570 2008-01-08  Bruno Haible  <bruno@clisp.org>
41571
41572         * modules/unictype/category-of (Depends-on): Add
41573         unictype/category-none.
41574         * modules/unictype/category-and-tests (Depends-on): Add
41575         unictype/category-{L,N,Lu,Nd}.
41576         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
41577         * modules/unictype/category-or-tests (Depends-on): Add
41578         unictype/category-{L,N}.
41579         * modules/unictype/category-name-tests (Depends-on): Add
41580         unictype/category-{Z,Nl}.
41581         Reported by Simon Josefsson.
41582
41583 2008-01-08  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
41586         convention better.
41587         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
41588         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
41589         Reported by Peter Miller <millerp@canb.auug.org.au>.
41590
41591 2008-01-08  Eric Blake  <ebb9@byu.net>
41592
41593         Rewrite memmem to guarantee linear complexity without malloc.
41594         * lib/memmem.c (memmem): Use Two-Way rather than
41595         Knuth-Morris-Pratt, to allow O(1) space usage.
41596         (critical_factorization, two_way_short_needle)
41597         (two_way_long_needle): New functions.
41598         (knuth_morris_pratt): Delete.
41599         * modules/memmem (Depends-on): No longer need malloca or stdbool.
41600         Add stdint.
41601         * tests/test-memmem.c (main): Add tests for periodic needle and
41602         sublinear performance.
41603         * doc/functions/memmem.texi (memmem): Document other deficiencies
41604         in cygwin and older glibc.
41605
41606 2008-01-08  Bruno Haible  <bruno@clisp.org>
41607
41608         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
41609         augmentation.
41610
41611 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
41612
41613         Add a configure time option: --disable-acl.
41614         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
41615         AC_ARG_ENABLE(acl).
41616
41617 2008-01-06  Simon Josefsson  <simon@josefsson.org>
41618
41619         * tests/test-localename.c: Don't include obsolete "setenv.h".
41620
41621         * modules/localename-tests (Depends-on): Need unsetenv.
41622
41623 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41624
41625         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
41626
41627 2008-01-06  Colin Watson  <cjwatson@debian.org>
41628
41629         * users.txt: Add man-db.
41630
41631 2008-01-07  Bruno Haible  <bruno@clisp.org>
41632
41633         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
41634         previous section name.
41635
41636 2008-01-07  Bruno Haible  <bruno@clisp.org>
41637
41638         * lib/progname.c (set_program_name): Don't strip off a leading
41639         "lt-" prefix outside a .libs directory.
41640         Suggested by Paul Eggert.
41641
41642 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
41643             Bruno Haible  <bruno@clisp.org>
41644
41645         Improve memory cleanup in 'relocatable' module.
41646         * lib/relocatable.h (compute_curr_prefix): Change return type to
41647         'char *'.
41648         * lib/relocatable.c (compute_curr_prefix): Change return type to
41649         'char *'. Free curr_installdir after use.
41650         (relocate): Free curr_prefix_better after use.
41651         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
41652
41653 2008-01-01  Bruno Haible  <bruno@clisp.org>
41654
41655         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
41656         failure on older glibc systems.
41657         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41658
41659 2008-01-05  Eric Blake  <ebb9@byu.net>
41660
41661         Avoid quadratic system memmem.
41662         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
41663         Reported by Ralf Wildenhues.
41664
41665         Fix memmem test for mingw.
41666         * modules/memmem-tests (configure.ac): Check for alarm.
41667         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
41668         it.
41669         * doc/functions/memmem.texi: New file.
41670         * doc/gnulib.texi (Function Substitutes): Add memmem.
41671         Reported by Bruno Haible.
41672
41673 2008-01-04  Bruno Haible  <bruno@clisp.org>
41674
41675         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
41676         Require gl_HEADER_STRINGS_H_DEFAULTS, not
41677         gl_HEADER_STRING_H_DEFAULTS.
41678
41679 2008-01-04  Eric Blake  <ebb9@byu.net>
41680
41681         Shorten duration of memmem test.
41682         * tests/test-memmem.c (main): Use alarm to declare failure if test
41683         is taking too long.
41684         Reported by Ralf Wildenhues.
41685
41686 2007-12-21  Simon Josefsson  <simon@josefsson.org>
41687
41688         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
41689         string, needed by strerror.
41690
41691 2008-01-03  Colin Watson  <cjwatson@debian.org>
41692             Bruno Haible  <bruno@clisp.org>
41693
41694         * doc/gnulib-tool.texi (Localization): New section.
41695
41696 2008-01-02  Bruno Haible  <bruno@clisp.org>
41697
41698         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
41699         variables to 'unsigned char *' type.
41700         Reported by Paul Eggert.
41701
41702 2008-01-02  Jim Meyering  <jim@meyering.net>
41703
41704         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
41705
41706 2007-12-31  Jim Meyering  <jim@meyering.net>
41707
41708         Avoid use of private FTS type name.
41709         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
41710
41711 2007-12-30  Karl Berry  <karl@gnu.org>
41712
41713         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
41714         work around defect in Texinfo and/or the standalone Info browser.
41715
41716 2007-12-30  Bruno Haible  <bruno@clisp.org>
41717
41718         Unify 5 copies of the KMP code.
41719         * lib/str-kmp.h: New file.
41720         * lib/c-strcasestr.c: Include str-kmp.h.
41721         (knuth_morris_pratt): Remove function.
41722         (c_strcasestr): Update.
41723         * lib/c-strstr.c: Include str-kmp.h.
41724         (knuth_morris_pratt): Remove function.
41725         (c_strcasestr): Update.
41726         * lib/mbscasestr.c: Include str-kmp.h.
41727         (knuth_morris_pratt_unibyte): Remove function.
41728         * lib/mbsstr.c: Include str-kmp.h.
41729         (knuth_morris_pratt_unibyte): Remove function.
41730         * lib/strcasestr.c: Include str-kmp.h.
41731         (knuth_morris_pratt): Remove function.
41732         (strcasestr): Update.
41733         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
41734         * modules/c-strstr (Files): Likewise.
41735         * modules/mbscasestr (Files): Likewise.
41736         * modules/mbsstr (Files): Likewise.
41737         * modules/strcasestr (Files): Likewise.
41738         Suggested by Paul Eggert.
41739
41740 2007-12-30  Bruno Haible  <bruno@clisp.org>
41741
41742         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
41743         defined.
41744
41745 2007-12-30  Bruno Haible  <bruno@clisp.org>
41746
41747         * lib/xmalloca.h: Include xalloc.h.
41748         (xnmalloca): New macro.
41749
41750 2007-12-30  Bruno Haible  <bruno@clisp.org>
41751
41752         * lib/malloca.h (nmalloca): New macro.
41753         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
41754         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
41755         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
41756         knuth_morris_pratt_multibyte): Likewise.
41757         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
41758         knuth_morris_pratt_multibyte): Likewise.
41759         * lib/memmem.c (knuth_morris_pratt): Likewise.
41760         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
41761
41762 2007-12-25  Bruno Haible  <bruno@clisp.org>
41763
41764         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
41765         * lib/glob.c: Don't include openat.h.
41766         (link_exists2_p): Add back the code that deals with the
41767         !GLOB_ALTDIRFUNC case.
41768         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
41769         let it do the filename concatenation.
41770         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
41771         * modules/glob (Depends-on): Remove openat.
41772
41773 2007-12-31  Bruno Haible  <bruno@clisp.org>
41774
41775         * modules/dirfd (License): Change to LGPLv2+.
41776         Approved by Jim Meyering.
41777
41778 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41779
41780         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
41781         when multiplying M by sizeof (size_t).
41782
41783 2007-12-10  Martin Lambers  <marlam@marlam.de>
41784
41785         Override getpagesize on mingw.
41786         * lib/getpagesize.c: New file.
41787         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
41788         * modules/getpagesize (Files): Add lib/getpagesize.c.
41789         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
41790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41791         REPLACE_GETPAGESIZE.
41792         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
41793
41794 2007-12-25  Bruno Haible  <bruno@clisp.org>
41795
41796         * modules/localcharset (Notice): New field.
41797         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
41798         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41799
41800 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41801             Bruno Haible  <bruno@clisp.org>
41802
41803         Avoid using the syntax symbol() in formatted documentation.
41804         * MODULES.html.sh (func_module): When replacing symbol() with a
41805         hyperlink, remove the parentheses. Show an error if some remain.
41806         Recognize and render the '...' syntax.
41807         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
41808         Rework. Add paragraph about GCC's inlining.
41809         * doc/alloca.texi: Likewise.
41810         * doc/error.texi: Remove parentheses from symbol reference.
41811         * doc/gnulib-intro.texi: Likewise.
41812         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
41813         * modules/fnmatch (Description): Reword to say "the ... function".
41814         * modules/full-read (Description): Likewise.
41815         * modules/full-write (Description): Likewise.
41816         * modules/safe-read (Description): Likewise.
41817         * modules/safe-write (Description): Likewise.
41818         * modules/strchrnul (Description): Likewise.
41819         * modules/trim (Description): Likewise.
41820         * modules/error (Description): Remove parentheses from symbol
41821         references.
41822         * modules/verror (Description): Likewise.
41823         Reported by Karl Berry.
41824
41825 2007-12-25  Bruno Haible  <bruno@clisp.org>
41826
41827         Fixup after 2007-10-16 commit.
41828         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
41829
41830 2007-12-24  Bruno Haible  <bruno@clisp.org>
41831
41832         Make --enable-relocatable work with DESTDIR.
41833         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
41834         to compute installdir from destprog.
41835         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
41836         also set the RELOC_DESTDIR variable.
41837         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41838
41839 2007-12-24  Bruno Haible  <bruno@clisp.org>
41840
41841         Fix link error due to xalloc_die().
41842         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
41843         of xreadlink.
41844         * lib/relocwrapper.c: Update comments.
41845         * build-aux/install-reloc: Remove xreadlink.c from file list.
41846         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
41847         xreadlink.c.
41848         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41849
41850 2007-12-24  Bruno Haible  <bruno@clisp.org>
41851
41852         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
41853         * lib/setenv.h: Remove file.
41854         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
41855         lib/setenv.h.
41856         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
41857         (Depends-on): Add stdlib.
41858         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
41859         gl_FUNC_UNSETENV.
41860         (Include): Replace setenv.h with <stdlib.h>.
41861         * modules/unsetenv: New file.
41862         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
41863         * lib/unsetenv.c: Include <stdlib.h> first.
41864         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
41865         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
41866         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
41867         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
41868         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
41869         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
41871         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
41872         * doc/functions/unsetenv.texi: Update.
41873         * modules/xsetenv (Depends-on): Add unsetenv.
41874         * modules/getdate (Depends-on): Likewise.
41875         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
41876         * lib/xsetenv.c: Don't include setenv.h.
41877         * lib/getdate.y: Likewise.
41878         * lib/relocwrapper.c: Likewise.
41879         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
41880         (Depends-on): Add stdlib.
41881         * NEWS: Mention the changes.
41882         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
41883
41884 2007-12-23  Bruno Haible  <bruno@clisp.org>
41885
41886         * lib/memmem.c (memmem): Use lowercase variable names. Tab
41887         indentation.
41888
41889 2007-12-23  Bruno Haible  <bruno@clisp.org>
41890
41891         * lib/c-strcasestr.c: Add more comments.
41892         * lib/c-strstr.c: Likewise.
41893         * lib/mbscasestr.c: Likewise.
41894         * lib/mbsstr.c: Likewise.
41895         * lib/strcasestr.c: Likewise.
41896         * lib/memmem.c: Likewise.
41897
41898 2007-12-23  Bruno Haible  <bruno@clisp.org>
41899
41900         * tests/test-memmem.c: Include <string.h> first.
41901
41902 2007-12-22  Bruno Haible  <bruno@clisp.org>
41903
41904         * gnulib-tool (func_create_testdir): Change $auxdir while generating
41905         the contents of $testsbase.
41906         Reported by Ralf Wildenhues.
41907
41908 2007-12-22  Bruno Haible  <bruno@clisp.org>
41909
41910         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
41911         two variables local_ldadd_before, local_ldadd_last.
41912
41913 2007-12-20  Eric Blake  <ebb9@byu.net>
41914
41915         Work around circular library issue when cross-compiling.
41916         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
41917         that progname.o does not need to pull in rpl_memcmp.
41918
41919 2007-12-19  Eric Blake  <ebb9@byu.net>
41920
41921         Fix memmem to avoid O(n^2) worst-case complexity.
41922         * lib/memmem.c (knuth_morris_pratt): New function.
41923         (memmem): Use it if first few naive iterations fail.
41924         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
41925         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
41926         * modules/memchr (License): Likewise.
41927         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
41928         malloca.
41929         * tests/test-memmem.c: Rewrite, borrowing ideas from
41930         test-mbsstr1.c; the old version wouldn't even compile!
41931         * modules/memmem-tests: New file.
41932         * lib/string.in.h (rpl_memmem): Add declaration.
41933         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
41934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
41935         REPLACE_MEMMEM.
41936
41937 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41938
41939         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
41940         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
41941         before any system include files, and undef after them all.  This
41942         should fix a problem on VMS reported by John E. Malmberg in
41943         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
41944
41945 2007-12-17  Eric Blake  <ebb9@byu.net>
41946
41947         Revert addition of verify, for BSD/OS.
41948         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
41949         can't handle large files, for the sake of obsolete platforms.
41950         * modules/fseeko (Depends-on): Remove verify.
41951         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
41952         * doc/functions/ftello.texi (ftello): Likewise.
41953         * doc/functions/fgetpos.texi (fgetpos): Likewise.
41954         Reported by Larry Jones.
41955
41956 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
41957
41958         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
41959         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
41960
41961 2007-12-17  Jim Meyering  <meyering@redhat.com>
41962
41963         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
41964         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
41965         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
41966         * modules/getcwd (Depends-on): Add openat.
41967         Reported by Petr Salinger.
41968
41969 2007-12-17  Bruno Haible  <bruno@clisp.org>
41970
41971         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
41972         avoid a segmentation fault of the configure test on x86_64 systems.
41973
41974 2007-12-15  Jim Meyering  <meyering@redhat.com>
41975
41976         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
41977
41978 2007-12-13  Eric Blake  <ebb9@byu.net>
41979
41980         Another fseek test.
41981         * tests/test-fseek.c (main): Also test ungetc handling.
41982         * tests/test-fseeko.c (main): Likewise.
41983         * modules/fseeko (Depends-on): Add verify.
41984         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
41985         large.
41986         Reported by Larry Jones.
41987
41988         Fix fseeko on mingw.
41989         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
41990         seek.
41991
41992         Beef up fseek tests.
41993         * tests/test-fseek.c (main): Also test eof handling.
41994         * tests/test-fseeko.c (main): Likewise.
41995         Reported by Larry Jones.
41996
41997 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
41998
41999         Fix fseeko on BSD-based platforms.
42000         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42001         successful seek.
42002
42003 2007-12-12  Eric Blake  <ebb9@byu.net>
42004
42005         Allow circular dependency of separate libtests.a
42006         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42007         when use_libtests.
42008
42009 2007-12-11  Eric Blake  <ebb9@byu.net>
42010
42011         Fix bug with -0.0L in previous patch.
42012         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42013         * tests/test-isnan.c (main): Also test on zeroes.
42014         * tests/test-isnanf.c (main): Likewise.
42015         * tests/test-isnanl.h (main): Likewise.
42016
42017         Detect pseudo-denormals on x86 even when cross-compiling.
42018         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42019         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42020         invalid bit patterns that happen to satisfy ==.
42021
42022         Avoid link failures with separate libtests.a.
42023         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42024         last, to satisfy circular dependencies.
42025
42026 2007-12-11  Eric Blake  <ebb9@byu.net>
42027         and Bruno Haible  <bruno@clisp.org>
42028
42029         Fix OpenBSD 4.0 <float.h> handling of long double.
42030         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42031         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42032         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42033
42034 2007-12-11  Jim Meyering  <meyering@redhat.com>
42035
42036         * users.txt: Add libvirt.
42037
42038         Support versions of autoconf prior to 2.59c.
42039         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42040         if it is not already defined.
42041
42042 2007-12-09  Bruno Haible  <bruno@clisp.org>
42043
42044         Let 'gnulib-tool --import' collect sources needed for the tests in
42045         tests/ rather than in lib/.
42046         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42047         argument. If true, add rules to generate libtests.a, and put libtests.a
42048         into $(LDADD). Consider source files in subdirectories and set
42049         uses_subdirs.
42050         (func_emit_initmacro_start, func_emit_initmacro_end,
42051         func_emit_initmacro_done): Pass all arguments explicitly.
42052         (func_import): Determine two module lists main_modules,
42053         testsrelated_modules. Determine use_libtests. Determine two variables
42054         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42055         instead of just sed_transform_lib_file. Determine two variables
42056         main_files and testsrelated_files. Compute 'files' as the union of
42057         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42058         func_add_or_update. In the generated gnulib-comp.m4, collect the
42059         object files for tests/ in different variables than those for lib/.
42060         Substitute LIBTESTS_LIBDEPS.
42061         (func_create_testdir): Combine the uses_subdirs results from
42062         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42063
42064 2007-12-09  Bruno Haible  <bruno@clisp.org>
42065
42066         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42067         the build-aux directory.
42068
42069 2007-12-09  Bruno Haible  <bruno@clisp.org>
42070
42071         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42072         introduced on 2006-09-09.
42073
42074 2007-12-07  Jim Meyering  <meyering@redhat.com>
42075
42076         Let these macros work also with autoconf-2.59.
42077         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42078         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42080
42081 2007-12-06  Jim Meyering  <meyering@redhat.com>
42082
42083         Avoid a configure-time syntax error in gl_FUNC_ACL.
42084         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42085         function in each branch, before testing the cache variable.
42086
42087 2007-12-04  Eric Blake  <ebb9@byu.net>
42088
42089         Make scripts executable.
42090         * build-aux/config.guess: Add execute permissions.
42091         * build-aux/config.sub: Likewise.
42092         * build-aux/gendocs.sh: Likewise.
42093
42094         Fix frexp on mingw.
42095         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42096         cross-compiling.
42097         * doc/functions/frexp.texi (frexp): Document the bug.
42098
42099         Make cygwin fseeko check more reliable.
42100         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42101         version numbers, rather than unrelated feature check.
42102         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42103         * doc/functions/ftello.texi (ftello): Likewise.
42104         Reported by Bruno Haible.
42105
42106         * m4/strerror.m4: Bump version number.
42107
42108 2007-12-03  Bruno Haible  <bruno@clisp.org>
42109
42110         * doc/functions/mprotect.texi: Mention the mingw problem.
42111
42112 2007-12-03  Eric Blake  <ebb9@byu.net>
42113
42114         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42115         REPLACE_STRERROR is initialized before this macro.
42116
42117 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42118
42119         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42120         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42121         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42122         put -lsec in even for programs other than 'ls'.  This fixes a problem
42123         for gettext reported by Bruno Haible in
42124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42125         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42126         Add support for Solaris 10.  This isn't efficient, but should get the
42127         job done for now.
42128
42129 2007-12-03  James Youngman  <jay@gnu.org>
42130
42131         * doc/regexprops-generic.texi: change "an close-group" to "a
42132         close-group" and "illegal" to "not allowed".
42133
42134 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42135
42136         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42137         pr_byname.h. Needed for the rare case when the maintainer has done
42138         "make maintainer-clean" in the source directory and then attempts a
42139         build outside the source directory.
42140         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42141         scripts_byname.h.
42142
42143 2007-12-02  Martin Lambers <marlam@marlam.de>
42144             Bruno Haible  <bruno@clisp.org>
42145
42146         * lib/getpagesize.h: Remove file.
42147         * lib/unistd.in.h: Include declaration of getpagesize here.
42148         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42149         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42150         HAVE_SYS_PARAM_H.
42151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42152         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42153         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42154         (Depends-on): Add unistd.
42155         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42156         (Include): Use <unistd.h> instead of getpagesize.h.
42157         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42158         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42159         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42160         gl_GETPAGESIZE invocation, already handled by module dependency.
42161         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42162
42163 2007-12-02  Bruno Haible  <bruno@clisp.org>
42164
42165         * modules/strings-tests: New file.
42166         * tests/test-strings.c: New file.
42167
42168         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42169         * lib/strings.in.h: New file.
42170         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42171         * m4/strings_h.m4: New file.
42172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42173         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42174         * modules/strings: New file.
42175         * modules/string (Makefile.am): Update.
42176         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42177         Reported by Karl Berry.
42178
42179 2007-12-01  Eric Blake  <ebb9@byu.net>
42180
42181         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42182         accomodate fix in cygwin 1.5.25.
42183
42184 2007-12-01  Jim Meyering  <meyering@redhat.com>
42185
42186         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42187         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42188         that would inhibit utf8-optimization of a regexp containing line-
42189         or buffer-anchors, e.g., `^', `$'.
42190
42191 2007-11-30  Bruno Haible  <bruno@clisp.org>
42192
42193         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42194         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42195         glthread_recursive_lock_init.
42196         * lib/lock.c (glthread_recursive_lock_init)
42197         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42198         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42199
42200 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42201
42202         New function qset_acl, like set_acl but with syscall semantics.
42203         * lib/acl.h (qset_acl): New decl.
42204         * lib/acl.c (qset_acl): New function.
42205         (set_acl): Use new function.  Use more-consistent diagnostics.
42206
42207 2007-11-28  Jim Meyering  <meyering@redhat.com>
42208
42209         * modules/physmem (License): Change from GPL to LGPLv2+.
42210
42211 2007-11-26  Bruno Haible  <bruno@clisp.org>
42212
42213         * lib/vasnprintf.c (decode_long_double): Don't abort if the
42214         'long double' type has excess precision.
42215         Reported by Jim Meyering in
42216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
42217
42218 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42219
42220         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
42221         Sync from <http://gnu.org/licenses>.
42222         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
42223         with license text from same location.
42224         * doc/maintain.texi, doc/standards.texi:  Sync from
42225         <http://savannah.gnu.org/projects/gnustandards>.
42226
42227 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
42228         and Jim Meyering  <meyering@redhat.com>
42229
42230         Adjust getdate' grammar to accept a slightly more regular language.
42231         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
42232         Before, the former was rejected.
42233         * lib/getdate.y (digits_to_date_time): New function, factored
42234         out of ...
42235         (number): ...here.  Just call digits_to_date_time.
42236         (hybrid): New non-terminal to handle an <unsigned number,
42237         signed relative offset> sequence consistently.
42238
42239 2007-11-18  Jim Meyering  <meyering@redhat.com>
42240
42241         Pull my changes from coreutils:
42242         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
42243         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
42244         use of $gnulib_tool_option_extras, so that it's separated from the
42245         preceding argument.
42246
42247         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
42248         * build-aux/bootstrap (cp_mark_as_generated): Create any required
42249         parent destination directories before copying a file into place.
42250
42251 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42252
42253         bootstrap: work also with 4-argument variant of AC_INIT
42254         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
42255
42256 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42257
42258         Port test-getaddrinfo to Solaris.
42259         Problem reported by Bruno Haible in
42260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
42261         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
42262         explanation of setting 'hints'.
42263         Don't reject an implementation merely because it returns EAI_SERVICE.
42264         (EAI_SERVICE): Define to 0 if not defined.
42265
42266 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42267
42268         The license of gnu-make and posix-shell is now "GPLed build tool".
42269         * modules/gnu-make (License): Likewise.
42270         * modules/posix-shell (License): Likewise.
42271
42272         New module posix-shell, for determining a POSIX shell
42273         or perhaps something that is close enough to a POSIX shell.
42274         * m4/posix-shell.m4: New file.
42275         * modules/posix-shell: New file.
42276
42277         * MODULES.html.sh: Mention new module.
42278
42279         New module gnu-make, for determining whether we're using GNU Make.
42280         * m4/gnu-make.m4: New file.
42281         * modules/gnu-make: New file.
42282         * MODULES.html.sh: Mention new module.
42283
42284 2007-11-14  Jim Meyering  <meyering@redhat.com>
42285
42286         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
42287         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
42288         use this macro to create a function _definition_.
42289         Remove useless "#undef ARGMATCH_DIE".
42290
42291 2007-11-14  Bruno Haible  <bruno@clisp.org>
42292
42293         * lib/config.charset: Update for OpenBSD 4.1.
42294         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
42295
42296 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
42297
42298         Document 64-bit #if problems in stdint.texi.
42299         * doc/headers/stdint.texi (stdint.h): Mention problems with
42300         64-bit-#if, and how to work around them.
42301
42302         Don't insist on 'long long int' support in the preprocessor.  It
42303         breaks too many things.  For example, PRIdMAX still uses a 'long
42304         long int' format with the latest Sun compiler, even though
42305         HAVE_LONG_LONG_INT isn't defined due to that compiler's
42306         preprocessor problem.  This causes the latest coreutils to dump
42307         core on Solaris 10 sparc with the Sun C compiler.
42308         Instead, fix the 2007-10-16 problem in a different way, by evaluating
42309         the troublesome expressions at configure-time, not at #if-time.
42310         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
42311         preprocessor.
42312         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
42313         compile-time C checks, done at 'configure'-time.
42314         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
42315         * modules/inttypes (Makefile): Substitute the new symbols that
42316         gl_INTTYPES_H now generates.
42317         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
42318
42319 2007-11-12  Bruno Haible  <bruno@clisp.org>
42320
42321         Tests for Unicode character classification functions.
42322
42323         * modules/unictype/bidicategory-byname-tests: New file.
42324         * modules/unictype/bidicategory-name-tests: New file.
42325         * modules/unictype/bidicategory-of-tests: New file.
42326         * modules/unictype/bidicategory-test-tests: New file.
42327         * modules/unictype/block-list-tests: New file.
42328         * modules/unictype/block-of-tests: New file.
42329         * modules/unictype/block-test-tests: New file.
42330         * modules/unictype/category-C-tests: New file.
42331         * modules/unictype/category-Cc-tests: New file.
42332         * modules/unictype/category-Cf-tests: New file.
42333         * modules/unictype/category-Cn-tests: New file.
42334         * modules/unictype/category-Co-tests: New file.
42335         * modules/unictype/category-Cs-tests: New file.
42336         * modules/unictype/category-L-tests: New file.
42337         * modules/unictype/category-Ll-tests: New file.
42338         * modules/unictype/category-Lm-tests: New file.
42339         * modules/unictype/category-Lo-tests: New file.
42340         * modules/unictype/category-Lt-tests: New file.
42341         * modules/unictype/category-Lu-tests: New file.
42342         * modules/unictype/category-M-tests: New file.
42343         * modules/unictype/category-Mc-tests: New file.
42344         * modules/unictype/category-Me-tests: New file.
42345         * modules/unictype/category-Mn-tests: New file.
42346         * modules/unictype/category-N-tests: New file.
42347         * modules/unictype/category-Nd-tests: New file.
42348         * modules/unictype/category-Nl-tests: New file.
42349         * modules/unictype/category-No-tests: New file.
42350         * modules/unictype/category-P-tests: New file.
42351         * modules/unictype/category-Pc-tests: New file.
42352         * modules/unictype/category-Pd-tests: New file.
42353         * modules/unictype/category-Pe-tests: New file.
42354         * modules/unictype/category-Pf-tests: New file.
42355         * modules/unictype/category-Pi-tests: New file.
42356         * modules/unictype/category-Po-tests: New file.
42357         * modules/unictype/category-Ps-tests: New file.
42358         * modules/unictype/category-S-tests: New file.
42359         * modules/unictype/category-Sc-tests: New file.
42360         * modules/unictype/category-Sk-tests: New file.
42361         * modules/unictype/category-Sm-tests: New file.
42362         * modules/unictype/category-So-tests: New file.
42363         * modules/unictype/category-Z-tests: New file.
42364         * modules/unictype/category-Zl-tests: New file.
42365         * modules/unictype/category-Zp-tests: New file.
42366         * modules/unictype/category-Zs-tests: New file.
42367         * modules/unictype/category-and-not-tests: New file.
42368         * modules/unictype/category-and-tests: New file.
42369         * modules/unictype/category-byname-tests: New file.
42370         * modules/unictype/category-name-tests: New file.
42371         * modules/unictype/category-none-tests: New file.
42372         * modules/unictype/category-of-tests: New file.
42373         * modules/unictype/category-or-tests: New file.
42374         * modules/unictype/category-test-withtable-tests: New file.
42375         * modules/unictype/combining-class-tests: New file.
42376         * modules/unictype/ctype-alnum-tests: New file.
42377         * modules/unictype/ctype-alpha-tests: New file.
42378         * modules/unictype/ctype-blank-tests: New file.
42379         * modules/unictype/ctype-cntrl-tests: New file.
42380         * modules/unictype/ctype-digit-tests: New file.
42381         * modules/unictype/ctype-graph-tests: New file.
42382         * modules/unictype/ctype-lower-tests: New file.
42383         * modules/unictype/ctype-print-tests: New file.
42384         * modules/unictype/ctype-punct-tests: New file.
42385         * modules/unictype/ctype-space-tests: New file.
42386         * modules/unictype/ctype-upper-tests: New file.
42387         * modules/unictype/ctype-xdigit-tests: New file.
42388         * modules/unictype/decimal-digit-tests: New file.
42389         * modules/unictype/digit-tests: New file.
42390         * modules/unictype/mirror-tests: New file.
42391         * modules/unictype/numeric-tests: New file.
42392         * modules/unictype/property-alphabetic-tests: New file.
42393         * modules/unictype/property-ascii-hex-digit-tests: New file.
42394         * modules/unictype/property-bidi-arabic-digit-tests: New file.
42395         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
42396         * modules/unictype/property-bidi-block-separator-tests: New file.
42397         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
42398         * modules/unictype/property-bidi-common-separator-tests: New file.
42399         * modules/unictype/property-bidi-control-tests: New file.
42400         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
42401         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
42402         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
42403         * modules/unictype/property-bidi-european-digit-tests: New file.
42404         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
42405         * modules/unictype/property-bidi-left-to-right-tests: New file.
42406         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
42407         * modules/unictype/property-bidi-other-neutral-tests: New file.
42408         * modules/unictype/property-bidi-pdf-tests: New file.
42409         * modules/unictype/property-bidi-segment-separator-tests: New file.
42410         * modules/unictype/property-bidi-whitespace-tests: New file.
42411         * modules/unictype/property-byname-tests: New file.
42412         * modules/unictype/property-combining-tests: New file.
42413         * modules/unictype/property-composite-tests: New file.
42414         * modules/unictype/property-currency-symbol-tests: New file.
42415         * modules/unictype/property-dash-tests: New file.
42416         * modules/unictype/property-decimal-digit-tests: New file.
42417         * modules/unictype/property-default-ignorable-code-point-tests: New file.
42418         * modules/unictype/property-deprecated-tests: New file.
42419         * modules/unictype/property-diacritic-tests: New file.
42420         * modules/unictype/property-extender-tests: New file.
42421         * modules/unictype/property-format-control-tests: New file.
42422         * modules/unictype/property-grapheme-base-tests: New file.
42423         * modules/unictype/property-grapheme-extend-tests: New file.
42424         * modules/unictype/property-grapheme-link-tests: New file.
42425         * modules/unictype/property-hex-digit-tests: New file.
42426         * modules/unictype/property-hyphen-tests: New file.
42427         * modules/unictype/property-id-continue-tests: New file.
42428         * modules/unictype/property-id-start-tests: New file.
42429         * modules/unictype/property-ideographic-tests: New file.
42430         * modules/unictype/property-ids-binary-operator-tests: New file.
42431         * modules/unictype/property-ids-trinary-operator-tests: New file.
42432         * modules/unictype/property-ignorable-control-tests: New file.
42433         * modules/unictype/property-iso-control-tests: New file.
42434         * modules/unictype/property-join-control-tests: New file.
42435         * modules/unictype/property-left-of-pair-tests: New file.
42436         * modules/unictype/property-line-separator-tests: New file.
42437         * modules/unictype/property-logical-order-exception-tests: New file.
42438         * modules/unictype/property-lowercase-tests: New file.
42439         * modules/unictype/property-math-tests: New file.
42440         * modules/unictype/property-non-break-tests: New file.
42441         * modules/unictype/property-not-a-character-tests: New file.
42442         * modules/unictype/property-numeric-tests: New file.
42443         * modules/unictype/property-other-alphabetic-tests: New file.
42444         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
42445         * modules/unictype/property-other-grapheme-extend-tests: New file.
42446         * modules/unictype/property-other-id-continue-tests: New file.
42447         * modules/unictype/property-other-id-start-tests: New file.
42448         * modules/unictype/property-other-lowercase-tests: New file.
42449         * modules/unictype/property-other-math-tests: New file.
42450         * modules/unictype/property-other-uppercase-tests: New file.
42451         * modules/unictype/property-paired-punctuation-tests: New file.
42452         * modules/unictype/property-paragraph-separator-tests: New file.
42453         * modules/unictype/property-pattern-syntax-tests: New file.
42454         * modules/unictype/property-pattern-white-space-tests: New file.
42455         * modules/unictype/property-private-use-tests: New file.
42456         * modules/unictype/property-punctuation-tests: New file.
42457         * modules/unictype/property-quotation-mark-tests: New file.
42458         * modules/unictype/property-radical-tests: New file.
42459         * modules/unictype/property-sentence-terminal-tests: New file.
42460         * modules/unictype/property-soft-dotted-tests: New file.
42461         * modules/unictype/property-space-tests: New file.
42462         * modules/unictype/property-terminal-punctuation-tests: New file.
42463         * modules/unictype/property-test-tests: New file.
42464         * modules/unictype/property-titlecase-tests: New file.
42465         * modules/unictype/property-unassigned-code-value-tests: New file.
42466         * modules/unictype/property-unified-ideograph-tests: New file.
42467         * modules/unictype/property-uppercase-tests: New file.
42468         * modules/unictype/property-variation-selector-tests: New file.
42469         * modules/unictype/property-white-space-tests: New file.
42470         * modules/unictype/property-xid-continue-tests: New file.
42471         * modules/unictype/property-xid-start-tests: New file.
42472         * modules/unictype/property-zero-width-tests: New file.
42473         * modules/unictype/scripts-tests: New file.
42474         * modules/unictype/syntax-c-ident-tests: New file.
42475         * modules/unictype/syntax-c-whitespace-tests: New file.
42476         * modules/unictype/syntax-java-ident-tests: New file.
42477         * modules/unictype/syntax-java-whitespace-tests: New file.
42478         * tests/unictype/test-bidi_byname.c: New file.
42479         * tests/unictype/test-bidi_name.c: New file.
42480         * tests/unictype/test-bidi_of.c: New file.
42481         * tests/unictype/test-bidi_test.c: New file.
42482         * tests/unictype/test-block_list.c: New file.
42483         * tests/unictype/test-block_of.c: New file.
42484         * tests/unictype/test-block_test.c: New file.
42485         * tests/unictype/test-categ_and.c: New file.
42486         * tests/unictype/test-categ_and_not.c: New file.
42487         * tests/unictype/test-categ_byname.c: New file.
42488         * tests/unictype/test-categ_name.c: New file.
42489         * tests/unictype/test-categ_none.c: New file.
42490         * tests/unictype/test-categ_of.c: New file.
42491         * tests/unictype/test-categ_or.c: New file.
42492         * tests/unictype/test-categ_test_withtable.c: New file.
42493         * tests/unictype/test-combining.c: New file.
42494         * tests/unictype/test-decdigit.c: New file.
42495         * tests/unictype/test-digit.c: New file.
42496         * tests/unictype/test-mirror.c: New file.
42497         * tests/unictype/test-numeric.c: New file.
42498         * tests/unictype/test-pr_byname.c: New file.
42499         * tests/unictype/test-pr_test.c: New file.
42500         * tests/unictype/test-predicate-part1.h: New file.
42501         * tests/unictype/test-predicate-part2.h: New file.
42502         * tests/unictype/test-scripts.c: New file.
42503         * tests/unictype/test-sy_c_ident.c: New file.
42504         * tests/unictype/test-sy_java_ident.c: New file.
42505
42506         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
42507         for Unicode 5.0.0.
42508         * tests/unictype/test-categ_Cc.c: Likewise.
42509         * tests/unictype/test-categ_Cf.c: Likewise.
42510         * tests/unictype/test-categ_Cn.c: Likewise.
42511         * tests/unictype/test-categ_Co.c: Likewise.
42512         * tests/unictype/test-categ_Cs.c: Likewise.
42513         * tests/unictype/test-categ_L.c: Likewise.
42514         * tests/unictype/test-categ_Ll.c: Likewise.
42515         * tests/unictype/test-categ_Lm.c: Likewise.
42516         * tests/unictype/test-categ_Lo.c: Likewise.
42517         * tests/unictype/test-categ_Lt.c: Likewise.
42518         * tests/unictype/test-categ_Lu.c: Likewise.
42519         * tests/unictype/test-categ_M.c: Likewise.
42520         * tests/unictype/test-categ_Mc.c: Likewise.
42521         * tests/unictype/test-categ_Me.c: Likewise.
42522         * tests/unictype/test-categ_Mn.c: Likewise.
42523         * tests/unictype/test-categ_N.c: Likewise.
42524         * tests/unictype/test-categ_Nd.c: Likewise.
42525         * tests/unictype/test-categ_Nl.c: Likewise.
42526         * tests/unictype/test-categ_No.c: Likewise.
42527         * tests/unictype/test-categ_P.c: Likewise.
42528         * tests/unictype/test-categ_Pc.c: Likewise.
42529         * tests/unictype/test-categ_Pd.c: Likewise.
42530         * tests/unictype/test-categ_Pe.c: Likewise.
42531         * tests/unictype/test-categ_Pf.c: Likewise.
42532         * tests/unictype/test-categ_Pi.c: Likewise.
42533         * tests/unictype/test-categ_Po.c: Likewise.
42534         * tests/unictype/test-categ_Ps.c: Likewise.
42535         * tests/unictype/test-categ_S.c: Likewise.
42536         * tests/unictype/test-categ_Sc.c: Likewise.
42537         * tests/unictype/test-categ_Sk.c: Likewise.
42538         * tests/unictype/test-categ_Sm.c: Likewise.
42539         * tests/unictype/test-categ_So.c: Likewise.
42540         * tests/unictype/test-categ_Z.c: Likewise.
42541         * tests/unictype/test-categ_Zl.c: Likewise.
42542         * tests/unictype/test-categ_Zp.c: Likewise.
42543         * tests/unictype/test-categ_Zs.c: Likewise.
42544         * tests/unictype/test-ctype_alnum.c: Likewise.
42545         * tests/unictype/test-ctype_alpha.c: Likewise.
42546         * tests/unictype/test-ctype_blank.c: Likewise.
42547         * tests/unictype/test-ctype_cntrl.c: Likewise.
42548         * tests/unictype/test-ctype_digit.c: Likewise.
42549         * tests/unictype/test-ctype_graph.c: Likewise.
42550         * tests/unictype/test-ctype_lower.c: Likewise.
42551         * tests/unictype/test-ctype_print.c: Likewise.
42552         * tests/unictype/test-ctype_punct.c: Likewise.
42553         * tests/unictype/test-ctype_space.c: Likewise.
42554         * tests/unictype/test-ctype_upper.c: Likewise.
42555         * tests/unictype/test-ctype_xdigit.c: Likewise.
42556         * tests/unictype/test-decdigit.h: Likewise.
42557         * tests/unictype/test-digit.h: Likewise.
42558         * tests/unictype/test-numeric.h: Likewise.
42559         * tests/unictype/test-pr_alphabetic.c: Likewise.
42560         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
42561         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42562         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42563         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
42564         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42565         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
42566         * tests/unictype/test-pr_bidi_control.c: Likewise.
42567         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
42568         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
42569         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42570         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
42571         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42572         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42573         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42574         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42575         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
42576         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
42577         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
42578         * tests/unictype/test-pr_combining.c: Likewise.
42579         * tests/unictype/test-pr_composite.c: Likewise.
42580         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42581         * tests/unictype/test-pr_dash.c: Likewise.
42582         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42583         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
42584         * tests/unictype/test-pr_deprecated.c: Likewise.
42585         * tests/unictype/test-pr_diacritic.c: Likewise.
42586         * tests/unictype/test-pr_extender.c: Likewise.
42587         * tests/unictype/test-pr_format_control.c: Likewise.
42588         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42589         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42590         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42591         * tests/unictype/test-pr_hex_digit.c: Likewise.
42592         * tests/unictype/test-pr_hyphen.c: Likewise.
42593         * tests/unictype/test-pr_id_continue.c: Likewise.
42594         * tests/unictype/test-pr_id_start.c: Likewise.
42595         * tests/unictype/test-pr_ideographic.c: Likewise.
42596         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
42597         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
42598         * tests/unictype/test-pr_ignorable_control.c: Likewise.
42599         * tests/unictype/test-pr_iso_control.c: Likewise.
42600         * tests/unictype/test-pr_join_control.c: Likewise.
42601         * tests/unictype/test-pr_left_of_pair.c: Likewise.
42602         * tests/unictype/test-pr_line_separator.c: Likewise.
42603         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
42604         * tests/unictype/test-pr_lowercase.c: Likewise.
42605         * tests/unictype/test-pr_math.c: Likewise.
42606         * tests/unictype/test-pr_non_break.c: Likewise.
42607         * tests/unictype/test-pr_not_a_character.c: Likewise.
42608         * tests/unictype/test-pr_numeric.c: Likewise.
42609         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42610         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
42611         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
42612         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42613         * tests/unictype/test-pr_other_id_start.c: Likewise.
42614         * tests/unictype/test-pr_other_lowercase.c: Likewise.
42615         * tests/unictype/test-pr_other_math.c: Likewise.
42616         * tests/unictype/test-pr_other_uppercase.c: Likewise.
42617         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
42618         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
42619         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
42620         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
42621         * tests/unictype/test-pr_private_use.c: Likewise.
42622         * tests/unictype/test-pr_punctuation.c: Likewise.
42623         * tests/unictype/test-pr_quotation_mark.c: Likewise.
42624         * tests/unictype/test-pr_radical.c: Likewise.
42625         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42626         * tests/unictype/test-pr_soft_dotted.c: Likewise.
42627         * tests/unictype/test-pr_space.c: Likewise.
42628         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42629         * tests/unictype/test-pr_titlecase.c: Likewise.
42630         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42631         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42632         * tests/unictype/test-pr_uppercase.c: Likewise.
42633         * tests/unictype/test-pr_variation_selector.c: Likewise.
42634         * tests/unictype/test-pr_white_space.c: Likewise.
42635         * tests/unictype/test-pr_xid_continue.c: Likewise.
42636         * tests/unictype/test-pr_xid_start.c: Likewise.
42637         * tests/unictype/test-pr_zero_width.c: Likewise.
42638         * tests/unictype/test-sy_c_whitespace.c: Likewise.
42639         * tests/unictype/test-sy_java_whitespace.c: Likewise.
42640
42641 2007-11-12  Bruno Haible  <bruno@clisp.org>
42642
42643         Unicode character classification functions.
42644         * lib/unictype.h: New file.
42645         * modules/unictype/base: New file.
42646         * modules/unictype/category-L: New file.
42647         * modules/unictype/category-Lu: New file.
42648         * modules/unictype/category-Ll: New file.
42649         * modules/unictype/category-Lt: New file.
42650         * modules/unictype/category-Lm: New file.
42651         * modules/unictype/category-Lo: New file.
42652         * modules/unictype/category-M: New file.
42653         * modules/unictype/category-Mn: New file.
42654         * modules/unictype/category-Mc: New file.
42655         * modules/unictype/category-Me: New file.
42656         * modules/unictype/category-N: New file.
42657         * modules/unictype/category-Nd: New file.
42658         * modules/unictype/category-Nl: New file.
42659         * modules/unictype/category-No: New file.
42660         * modules/unictype/category-P: New file.
42661         * modules/unictype/category-Pc: New file.
42662         * modules/unictype/category-Pd: New file.
42663         * modules/unictype/category-Ps: New file.
42664         * modules/unictype/category-Pe: New file.
42665         * modules/unictype/category-Pi: New file.
42666         * modules/unictype/category-Pf: New file.
42667         * modules/unictype/category-Po: New file.
42668         * modules/unictype/category-S: New file.
42669         * modules/unictype/category-Sm: New file.
42670         * modules/unictype/category-Sc: New file.
42671         * modules/unictype/category-Sk: New file.
42672         * modules/unictype/category-So: New file.
42673         * modules/unictype/category-Z: New file.
42674         * modules/unictype/category-Zs: New file.
42675         * modules/unictype/category-Zl: New file.
42676         * modules/unictype/category-Zp: New file.
42677         * modules/unictype/category-C: New file.
42678         * modules/unictype/category-Cc: New file.
42679         * modules/unictype/category-Cf: New file.
42680         * modules/unictype/category-Cs: New file.
42681         * modules/unictype/category-Co: New file.
42682         * modules/unictype/category-Cn: New file.
42683         * modules/unictype/category-or: New file.
42684         * modules/unictype/category-of: New file.
42685         * modules/unictype/category-test: New file.
42686         * modules/unictype/category-test-withtable: New file.
42687         * modules/unictype/category-byname: New file.
42688         * modules/unictype/category-none: New file.
42689         * modules/unictype/category-and: New file.
42690         * modules/unictype/category-and-not: New file.
42691         * modules/unictype/category-name: New file.
42692         * modules/unictype/combining-class: New file.
42693         * modules/unictype/category-all: New file.
42694         * modules/unictype/bidicategory-all: New file.
42695         * modules/unictype/bidicategory-byname: New file.
42696         * modules/unictype/bidicategory-name: New file.
42697         * modules/unictype/bidicategory-of: New file.
42698         * modules/unictype/bidicategory-test: New file.
42699         * modules/unictype/decimal-digit: New file.
42700         * modules/unictype/digit: New file.
42701         * modules/unictype/numeric: New file.
42702         * modules/unictype/mirror: New file.
42703         * modules/unictype/property-white-space: New file.
42704         * modules/unictype/property-alphabetic: New file.
42705         * modules/unictype/property-other-alphabetic: New file.
42706         * modules/unictype/property-not-a-character: New file.
42707         * modules/unictype/property-default-ignorable-code-point: New file.
42708         * modules/unictype/property-other-default-ignorable-code-point: New
42709         file.
42710         * modules/unictype/property-deprecated: New file.
42711         * modules/unictype/property-logical-order-exception: New file.
42712         * modules/unictype/property-variation-selector: New file.
42713         * modules/unictype/property-private-use: New file.
42714         * modules/unictype/property-unassigned-code-value: New file.
42715         * modules/unictype/property-uppercase: New file.
42716         * modules/unictype/property-other-uppercase: New file.
42717         * modules/unictype/property-lowercase: New file.
42718         * modules/unictype/property-other-lowercase: New file.
42719         * modules/unictype/property-titlecase: New file.
42720         * modules/unictype/property-soft-dotted: New file.
42721         * modules/unictype/property-id-start: New file.
42722         * modules/unictype/property-other-id-start: New file.
42723         * modules/unictype/property-id-continue: New file.
42724         * modules/unictype/property-other-id-continue: New file.
42725         * modules/unictype/property-xid-start: New file.
42726         * modules/unictype/property-xid-continue: New file.
42727         * modules/unictype/property-pattern-white-space: New file.
42728         * modules/unictype/property-pattern-syntax: New file.
42729         * modules/unictype/property-join-control: New file.
42730         * modules/unictype/property-grapheme-base: New file.
42731         * modules/unictype/property-grapheme-extend: New file.
42732         * modules/unictype/property-other-grapheme-extend: New file.
42733         * modules/unictype/property-grapheme-link: New file.
42734         * modules/unictype/property-bidi-control: New file.
42735         * modules/unictype/property-bidi-left-to-right: New file.
42736         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
42737         * modules/unictype/property-bidi-arabic-right-to-left: New file.
42738         * modules/unictype/property-bidi-european-digit: New file.
42739         * modules/unictype/property-bidi-eur-num-separator: New file.
42740         * modules/unictype/property-bidi-eur-num-terminator: New file.
42741         * modules/unictype/property-bidi-arabic-digit: New file.
42742         * modules/unictype/property-bidi-common-separator: New file.
42743         * modules/unictype/property-bidi-block-separator: New file.
42744         * modules/unictype/property-bidi-segment-separator: New file.
42745         * modules/unictype/property-bidi-whitespace: New file.
42746         * modules/unictype/property-bidi-non-spacing-mark: New file.
42747         * modules/unictype/property-bidi-boundary-neutral: New file.
42748         * modules/unictype/property-bidi-pdf: New file.
42749         * modules/unictype/property-bidi-embedding-or-override: New file.
42750         * modules/unictype/property-bidi-other-neutral: New file.
42751         * modules/unictype/property-hex-digit: New file.
42752         * modules/unictype/property-ascii-hex-digit: New file.
42753         * modules/unictype/property-ideographic: New file.
42754         * modules/unictype/property-unified-ideograph: New file.
42755         * modules/unictype/property-radical: New file.
42756         * modules/unictype/property-ids-binary-operator: New file.
42757         * modules/unictype/property-ids-trinary-operator: New file.
42758         * modules/unictype/property-zero-width: New file.
42759         * modules/unictype/property-space: New file.
42760         * modules/unictype/property-non-break: New file.
42761         * modules/unictype/property-iso-control: New file.
42762         * modules/unictype/property-format-control: New file.
42763         * modules/unictype/property-dash: New file.
42764         * modules/unictype/property-hyphen: New file.
42765         * modules/unictype/property-punctuation: New file.
42766         * modules/unictype/property-line-separator: New file.
42767         * modules/unictype/property-paragraph-separator: New file.
42768         * modules/unictype/property-quotation-mark: New file.
42769         * modules/unictype/property-sentence-terminal: New file.
42770         * modules/unictype/property-terminal-punctuation: New file.
42771         * modules/unictype/property-currency-symbol: New file.
42772         * modules/unictype/property-math: New file.
42773         * modules/unictype/property-other-math: New file.
42774         * modules/unictype/property-paired-punctuation: New file.
42775         * modules/unictype/property-left-of-pair: New file.
42776         * modules/unictype/property-combining: New file.
42777         * modules/unictype/property-composite: New file.
42778         * modules/unictype/property-decimal-digit: New file.
42779         * modules/unictype/property-numeric: New file.
42780         * modules/unictype/property-diacritic: New file.
42781         * modules/unictype/property-extender: New file.
42782         * modules/unictype/property-ignorable-control: New file.
42783         * modules/unictype/property-test: New file.
42784         * modules/unictype/property-byname: New file.
42785         * modules/unictype/property-all: New file.
42786         * modules/unictype/scripts: New file.
42787         * modules/unictype/scripts-all: New file.
42788         * modules/unictype/block-of: New file.
42789         * modules/unictype/block-test: New file.
42790         * modules/unictype/block-list: New file.
42791         * modules/unictype/block-all: New file.
42792         * modules/unictype/syntax-c-whitespace: New file.
42793         * modules/unictype/syntax-java-whitespace: New file.
42794         * modules/unictype/syntax-c-ident: New file.
42795         * modules/unictype/syntax-java-ident: New file.
42796         * modules/unictype/ctype-alnum: New file.
42797         * modules/unictype/ctype-alpha: New file.
42798         * modules/unictype/ctype-cntrl: New file.
42799         * modules/unictype/ctype-digit: New file.
42800         * modules/unictype/ctype-graph: New file.
42801         * modules/unictype/ctype-lower: New file.
42802         * modules/unictype/ctype-print: New file.
42803         * modules/unictype/ctype-punct: New file.
42804         * modules/unictype/ctype-space: New file.
42805         * modules/unictype/ctype-upper: New file.
42806         * modules/unictype/ctype-xdigit: New file.
42807         * modules/unictype/ctype-blank: New file.
42808         * lib/unictype/bidi_byname.c: New file.
42809         * lib/unictype/bidi_name.c: New file.
42810         * lib/unictype/bidi_of.c: New file.
42811         * lib/unictype/bidi_test.c: New file.
42812         * lib/unictype/bitmap.h: New file.
42813         * lib/unictype/block_test.c: New file.
42814         * lib/unictype/blocks.c: New file.
42815         * lib/unictype/categ_C.c: New file.
42816         * lib/unictype/categ_Cc.c: New file.
42817         * lib/unictype/categ_Cf.c: New file.
42818         * lib/unictype/categ_Cn.c: New file.
42819         * lib/unictype/categ_Co.c: New file.
42820         * lib/unictype/categ_Cs.c: New file.
42821         * lib/unictype/categ_L.c: New file.
42822         * lib/unictype/categ_Ll.c: New file.
42823         * lib/unictype/categ_Lm.c: New file.
42824         * lib/unictype/categ_Lo.c: New file.
42825         * lib/unictype/categ_Lt.c: New file.
42826         * lib/unictype/categ_Lu.c: New file.
42827         * lib/unictype/categ_M.c: New file.
42828         * lib/unictype/categ_Mc.c: New file.
42829         * lib/unictype/categ_Me.c: New file.
42830         * lib/unictype/categ_Mn.c: New file.
42831         * lib/unictype/categ_N.c: New file.
42832         * lib/unictype/categ_Nd.c: New file.
42833         * lib/unictype/categ_Nl.c: New file.
42834         * lib/unictype/categ_No.c: New file.
42835         * lib/unictype/categ_P.c: New file.
42836         * lib/unictype/categ_Pc.c: New file.
42837         * lib/unictype/categ_Pd.c: New file.
42838         * lib/unictype/categ_Pe.c: New file.
42839         * lib/unictype/categ_Pf.c: New file.
42840         * lib/unictype/categ_Pi.c: New file.
42841         * lib/unictype/categ_Po.c: New file.
42842         * lib/unictype/categ_Ps.c: New file.
42843         * lib/unictype/categ_S.c: New file.
42844         * lib/unictype/categ_Sc.c: New file.
42845         * lib/unictype/categ_Sk.c: New file.
42846         * lib/unictype/categ_Sm.c: New file.
42847         * lib/unictype/categ_So.c: New file.
42848         * lib/unictype/categ_Z.c: New file.
42849         * lib/unictype/categ_Zl.c: New file.
42850         * lib/unictype/categ_Zp.c: New file.
42851         * lib/unictype/categ_Zs.c: New file.
42852         * lib/unictype/categ_and.c: New file.
42853         * lib/unictype/categ_and_not.c: New file.
42854         * lib/unictype/categ_byname.c: New file.
42855         * lib/unictype/categ_name.c: New file.
42856         * lib/unictype/categ_none.c: New file.
42857         * lib/unictype/categ_of.c: New file.
42858         * lib/unictype/categ_or.c: New file.
42859         * lib/unictype/categ_test.c: New file.
42860         * lib/unictype/combining.c: New file.
42861         * lib/unictype/ctype_alnum.c: New file.
42862         * lib/unictype/ctype_alpha.c: New file.
42863         * lib/unictype/ctype_blank.c: New file.
42864         * lib/unictype/ctype_cntrl.c: New file.
42865         * lib/unictype/ctype_digit.c: New file.
42866         * lib/unictype/ctype_graph.c: New file.
42867         * lib/unictype/ctype_lower.c: New file.
42868         * lib/unictype/ctype_print.c: New file.
42869         * lib/unictype/ctype_punct.c: New file.
42870         * lib/unictype/ctype_space.c: New file.
42871         * lib/unictype/ctype_upper.c: New file.
42872         * lib/unictype/ctype_xdigit.c: New file.
42873         * lib/unictype/decdigit.c: New file.
42874         * lib/unictype/digit.c: New file.
42875         * lib/unictype/identsyntaxmap.h: New file.
42876         * lib/unictype/mirror.c: New file.
42877         * lib/unictype/numeric.c: New file.
42878         * lib/unictype/pr_alphabetic.c: New file.
42879         * lib/unictype/pr_ascii_hex_digit.c: New file.
42880         * lib/unictype/pr_bidi_arabic_digit.c: New file.
42881         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
42882         * lib/unictype/pr_bidi_block_separator.c: New file.
42883         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
42884         * lib/unictype/pr_bidi_common_separator.c: New file.
42885         * lib/unictype/pr_bidi_control.c: New file.
42886         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
42887         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
42888         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
42889         * lib/unictype/pr_bidi_european_digit.c: New file.
42890         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
42891         * lib/unictype/pr_bidi_left_to_right.c: New file.
42892         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
42893         * lib/unictype/pr_bidi_other_neutral.c: New file.
42894         * lib/unictype/pr_bidi_pdf.c: New file.
42895         * lib/unictype/pr_bidi_segment_separator.c: New file.
42896         * lib/unictype/pr_bidi_whitespace.c: New file.
42897         * lib/unictype/pr_byname.c: New file.
42898         * lib/unictype/pr_byname.gperf: New file.
42899         * lib/unictype/pr_combining.c: New file.
42900         * lib/unictype/pr_composite.c: New file.
42901         * lib/unictype/pr_currency_symbol.c: New file.
42902         * lib/unictype/pr_dash.c: New file.
42903         * lib/unictype/pr_decimal_digit.c: New file.
42904         * lib/unictype/pr_default_ignorable_code_point.c: New file.
42905         * lib/unictype/pr_deprecated.c: New file.
42906         * lib/unictype/pr_diacritic.c: New file.
42907         * lib/unictype/pr_extender.c: New file.
42908         * lib/unictype/pr_format_control.c: New file.
42909         * lib/unictype/pr_grapheme_base.c: New file.
42910         * lib/unictype/pr_grapheme_extend.c: New file.
42911         * lib/unictype/pr_grapheme_link.c: New file.
42912         * lib/unictype/pr_hex_digit.c: New file.
42913         * lib/unictype/pr_hyphen.c: New file.
42914         * lib/unictype/pr_id_continue.c: New file.
42915         * lib/unictype/pr_id_start.c: New file.
42916         * lib/unictype/pr_ideographic.c: New file.
42917         * lib/unictype/pr_ids_binary_operator.c: New file.
42918         * lib/unictype/pr_ids_trinary_operator.c: New file.
42919         * lib/unictype/pr_ignorable_control.c: New file.
42920         * lib/unictype/pr_iso_control.c: New file.
42921         * lib/unictype/pr_join_control.c: New file.
42922         * lib/unictype/pr_left_of_pair.c: New file.
42923         * lib/unictype/pr_line_separator.c: New file.
42924         * lib/unictype/pr_logical_order_exception.c: New file.
42925         * lib/unictype/pr_lowercase.c: New file.
42926         * lib/unictype/pr_math.c: New file.
42927         * lib/unictype/pr_non_break.c: New file.
42928         * lib/unictype/pr_not_a_character.c: New file.
42929         * lib/unictype/pr_numeric.c: New file.
42930         * lib/unictype/pr_other_alphabetic.c: New file.
42931         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
42932         * lib/unictype/pr_other_grapheme_extend.c: New file.
42933         * lib/unictype/pr_other_id_continue.c: New file.
42934         * lib/unictype/pr_other_id_start.c: New file.
42935         * lib/unictype/pr_other_lowercase.c: New file.
42936         * lib/unictype/pr_other_math.c: New file.
42937         * lib/unictype/pr_other_uppercase.c: New file.
42938         * lib/unictype/pr_paired_punctuation.c: New file.
42939         * lib/unictype/pr_paragraph_separator.c: New file.
42940         * lib/unictype/pr_pattern_syntax.c: New file.
42941         * lib/unictype/pr_pattern_white_space.c: New file.
42942         * lib/unictype/pr_private_use.c: New file.
42943         * lib/unictype/pr_punctuation.c: New file.
42944         * lib/unictype/pr_quotation_mark.c: New file.
42945         * lib/unictype/pr_radical.c: New file.
42946         * lib/unictype/pr_sentence_terminal.c: New file.
42947         * lib/unictype/pr_soft_dotted.c: New file.
42948         * lib/unictype/pr_space.c: New file.
42949         * lib/unictype/pr_terminal_punctuation.c: New file.
42950         * lib/unictype/pr_test.c: New file.
42951         * lib/unictype/pr_titlecase.c: New file.
42952         * lib/unictype/pr_unassigned_code_value.c: New file.
42953         * lib/unictype/pr_unified_ideograph.c: New file.
42954         * lib/unictype/pr_uppercase.c: New file.
42955         * lib/unictype/pr_variation_selector.c: New file.
42956         * lib/unictype/pr_white_space.c: New file.
42957         * lib/unictype/pr_xid_continue.c: New file.
42958         * lib/unictype/pr_xid_start.c: New file.
42959         * lib/unictype/pr_zero_width.c: New file.
42960         * lib/unictype/scripts.c: New file.
42961         * lib/unictype/sy_c_ident.c: New file.
42962         * lib/unictype/sy_c_whitespace.c: New file.
42963         * lib/unictype/sy_java_ident.c: New file.
42964         * lib/unictype/sy_java_whitespace.c: New file.
42965
42966         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
42967         Unicode 5.0.0.
42968         * lib/unictype/blocks.h: Likewise.
42969         * lib/unictype/categ_C.h: Likewise.
42970         * lib/unictype/categ_Cc.h: Likewise.
42971         * lib/unictype/categ_Cf.h: Likewise.
42972         * lib/unictype/categ_Cn.h: Likewise.
42973         * lib/unictype/categ_Co.h: Likewise.
42974         * lib/unictype/categ_Cs.h: Likewise.
42975         * lib/unictype/categ_L.h: Likewise.
42976         * lib/unictype/categ_Ll.h: Likewise.
42977         * lib/unictype/categ_Lm.h: Likewise.
42978         * lib/unictype/categ_Lo.h: Likewise.
42979         * lib/unictype/categ_Lt.h: Likewise.
42980         * lib/unictype/categ_Lu.h: Likewise.
42981         * lib/unictype/categ_M.h: Likewise.
42982         * lib/unictype/categ_Mc.h: Likewise.
42983         * lib/unictype/categ_Me.h: Likewise.
42984         * lib/unictype/categ_Mn.h: Likewise.
42985         * lib/unictype/categ_N.h: Likewise.
42986         * lib/unictype/categ_Nd.h: Likewise.
42987         * lib/unictype/categ_Nl.h: Likewise.
42988         * lib/unictype/categ_No.h: Likewise.
42989         * lib/unictype/categ_P.h: Likewise.
42990         * lib/unictype/categ_Pc.h: Likewise.
42991         * lib/unictype/categ_Pd.h: Likewise.
42992         * lib/unictype/categ_Pe.h: Likewise.
42993         * lib/unictype/categ_Pf.h: Likewise.
42994         * lib/unictype/categ_Pi.h: Likewise.
42995         * lib/unictype/categ_Po.h: Likewise.
42996         * lib/unictype/categ_Ps.h: Likewise.
42997         * lib/unictype/categ_S.h: Likewise.
42998         * lib/unictype/categ_Sc.h: Likewise.
42999         * lib/unictype/categ_Sk.h: Likewise.
43000         * lib/unictype/categ_Sm.h: Likewise.
43001         * lib/unictype/categ_So.h: Likewise.
43002         * lib/unictype/categ_Z.h: Likewise.
43003         * lib/unictype/categ_Zl.h: Likewise.
43004         * lib/unictype/categ_Zp.h: Likewise.
43005         * lib/unictype/categ_Zs.h: Likewise.
43006         * lib/unictype/categ_of.h: Likewise.
43007         * lib/unictype/combining.h: Likewise.
43008         * lib/unictype/ctype_alnum.h: Likewise.
43009         * lib/unictype/ctype_alpha.h: Likewise.
43010         * lib/unictype/ctype_blank.h: Likewise.
43011         * lib/unictype/ctype_cntrl.h: Likewise.
43012         * lib/unictype/ctype_digit.h: Likewise.
43013         * lib/unictype/ctype_graph.h: Likewise.
43014         * lib/unictype/ctype_lower.h: Likewise.
43015         * lib/unictype/ctype_print.h: Likewise.
43016         * lib/unictype/ctype_punct.h: Likewise.
43017         * lib/unictype/ctype_space.h: Likewise.
43018         * lib/unictype/ctype_upper.h: Likewise.
43019         * lib/unictype/ctype_xdigit.h: Likewise.
43020         * lib/unictype/decdigit.h: Likewise.
43021         * lib/unictype/digit.h: Likewise.
43022         * lib/unictype/mirror.h: Likewise.
43023         * lib/unictype/numeric.h: Likewise.
43024         * lib/unictype/pr_alphabetic.h: Likewise.
43025         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43026         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43027         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43028         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43029         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43030         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43031         * lib/unictype/pr_bidi_control.h: Likewise.
43032         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43033         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43034         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43035         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43036         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43037         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43038         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43039         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43040         * lib/unictype/pr_bidi_pdf.h: Likewise.
43041         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43042         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43043         * lib/unictype/pr_combining.h: Likewise.
43044         * lib/unictype/pr_composite.h: Likewise.
43045         * lib/unictype/pr_currency_symbol.h: Likewise.
43046         * lib/unictype/pr_dash.h: Likewise.
43047         * lib/unictype/pr_decimal_digit.h: Likewise.
43048         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43049         * lib/unictype/pr_deprecated.h: Likewise.
43050         * lib/unictype/pr_diacritic.h: Likewise.
43051         * lib/unictype/pr_extender.h: Likewise.
43052         * lib/unictype/pr_format_control.h: Likewise.
43053         * lib/unictype/pr_grapheme_base.h: Likewise.
43054         * lib/unictype/pr_grapheme_extend.h: Likewise.
43055         * lib/unictype/pr_grapheme_link.h: Likewise.
43056         * lib/unictype/pr_hex_digit.h: Likewise.
43057         * lib/unictype/pr_hyphen.h: Likewise.
43058         * lib/unictype/pr_id_continue.h: Likewise.
43059         * lib/unictype/pr_id_start.h: Likewise.
43060         * lib/unictype/pr_ideographic.h: Likewise.
43061         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43062         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43063         * lib/unictype/pr_ignorable_control.h: Likewise.
43064         * lib/unictype/pr_iso_control.h: Likewise.
43065         * lib/unictype/pr_join_control.h: Likewise.
43066         * lib/unictype/pr_left_of_pair.h: Likewise.
43067         * lib/unictype/pr_line_separator.h: Likewise.
43068         * lib/unictype/pr_logical_order_exception.h: Likewise.
43069         * lib/unictype/pr_lowercase.h: Likewise.
43070         * lib/unictype/pr_math.h: Likewise.
43071         * lib/unictype/pr_non_break.h: Likewise.
43072         * lib/unictype/pr_not_a_character.h: Likewise.
43073         * lib/unictype/pr_numeric.h: Likewise.
43074         * lib/unictype/pr_other_alphabetic.h: Likewise.
43075         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43076         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43077         * lib/unictype/pr_other_id_continue.h: Likewise.
43078         * lib/unictype/pr_other_id_start.h: Likewise.
43079         * lib/unictype/pr_other_lowercase.h: Likewise.
43080         * lib/unictype/pr_other_math.h: Likewise.
43081         * lib/unictype/pr_other_uppercase.h: Likewise.
43082         * lib/unictype/pr_paired_punctuation.h: Likewise.
43083         * lib/unictype/pr_paragraph_separator.h: Likewise.
43084         * lib/unictype/pr_pattern_syntax.h: Likewise.
43085         * lib/unictype/pr_pattern_white_space.h: Likewise.
43086         * lib/unictype/pr_private_use.h: Likewise.
43087         * lib/unictype/pr_punctuation.h: Likewise.
43088         * lib/unictype/pr_quotation_mark.h: Likewise.
43089         * lib/unictype/pr_radical.h: Likewise.
43090         * lib/unictype/pr_sentence_terminal.h: Likewise.
43091         * lib/unictype/pr_soft_dotted.h: Likewise.
43092         * lib/unictype/pr_space.h: Likewise.
43093         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43094         * lib/unictype/pr_titlecase.h: Likewise.
43095         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43096         * lib/unictype/pr_unified_ideograph.h: Likewise.
43097         * lib/unictype/pr_uppercase.h: Likewise.
43098         * lib/unictype/pr_variation_selector.h: Likewise.
43099         * lib/unictype/pr_white_space.h: Likewise.
43100         * lib/unictype/pr_xid_continue.h: Likewise.
43101         * lib/unictype/pr_xid_start.h: Likewise.
43102         * lib/unictype/pr_zero_width.h: Likewise.
43103         * lib/unictype/scripts.h: Likewise.
43104         * lib/unictype/scripts_byname.gperf: Likewise.
43105         * lib/unictype/sy_c_ident.h: Likewise.
43106         * lib/unictype/sy_c_whitespace.h: Likewise.
43107         * lib/unictype/sy_java_ident.h: Likewise.
43108         * lib/unictype/sy_java_whitespace.h: Likewise.
43109
43110         * lib/unictype/Makefile: New file.
43111         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43112         glibc.
43113         * lib/unictype/3level.h: New file, copied from glibc.
43114         * lib/unictype/3levelbit.h: New file.
43115
43116 2007-11-11  Bruno Haible  <bruno@clisp.org>
43117
43118         * modules/gperf: New file.
43119         * modules/iconv_open (Depends-on): Add it.
43120         (Makefile.am): Remove the GPERF definition.
43121
43122 2007-11-11  Bruno Haible  <bruno@clisp.org>
43123
43124         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43125         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43126
43127 2007-11-11  Bruno Haible  <bruno@clisp.org>
43128
43129         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43130         (usage): Remove function.
43131
43132 2007-11-11  Bruno Haible  <bruno@clisp.org>
43133
43134         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43135         gl_FUNC_CEILF_LIBS.
43136         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43137         gl_FUNC_CEIL_LIBS.
43138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43139         gl_FUNC_CEILL_LIBS.
43140         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43141         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43142         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43143
43144 2007-11-11  Bruno Haible  <bruno@clisp.org>
43145
43146         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43147         roundf were declared but do not exist on functions.
43148         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43149         roundl were declared but do not exist on functions.
43150         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43151         HAVE_FLOORL_AND_CEILL, respectively.
43152         Needed for Sun C on Solaris 10.
43153
43154 2007-11-11  Bruno Haible  <bruno@clisp.org>
43155
43156         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43157         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43158         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43159         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43160         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43161         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43162         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43163         HAVE_DECL_ROUNDF.
43164         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43165         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43167         of HAVE_DECL_ROUND*.
43168         * modules/math (Makefile.am): Update.
43169
43170 2007-11-10  Bruno Haible  <bruno@clisp.org>
43171
43172         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43173         ptrdiff_t as m4/intl.m4.
43174
43175 2007-11-10  Jim Meyering  <meyering@redhat.com>
43176
43177         Avoid link failure for the argmatch test.
43178         * tests/test-argmatch.c (usage): Define function to avoid a link
43179         failure: argmatch_die requires a usage function.
43180
43181 2007-11-09  Bruno Haible  <bruno@clisp.org>
43182
43183         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43184         * doc/functions/vsnprintf.texi: Likewise.
43185         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43186         with a size argument < 2.
43187
43188 2007-11-09  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43191         buffer. Fixes an inefficiency introduced on 2007-11-03.
43192
43193 2007-11-09  Bruno Haible  <bruno@clisp.org>
43194
43195         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43196         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43197
43198 2007-11-08  Jim Meyering  <meyering@redhat.com>
43199
43200         Change cache variable name prefix "jm_" to "gl_" everywhere.
43201         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43202         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43203         * m4/uptime.m4: s/gl_/jm_/
43204
43205 2007-11-07  Bruno Haible  <bruno@clisp.org>
43206
43207         Update to GNU gettext 0.17.
43208         * m4/intl.m4: Update to GNU gettext 0.17.
43209         * m4/po.m4: Likewise.
43210         * modules/gettext (Files): Remove m4/ulonglong.m4.
43211         (configure.ac): Require gettext infrastructure from version 0.17.
43212
43213 2007-11-06  Bruno Haible  <bruno@clisp.org>
43214
43215         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
43216         symbolic values are not defined in a public header.
43217         * lib/freadable.c (freadable) [QNX]: Likewise.
43218         * lib/freadahead.c (freadahead) [QNX]: Likewise.
43219         * lib/freading.c (freading) [QNX]: Likewise.
43220         * lib/fseterr.c (fseterr) [QNX]: Likewise.
43221         * lib/fwritable.c (fwritable) [QNX]: Likewise.
43222         * lib/fwriting.c (fwriting) [QNX]: Likewise.
43223         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
43224         Reported by Alain Magloire.
43225
43226         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
43227
43228 2007-11-05  Bruno Haible  <bruno@clisp.org>
43229
43230         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
43231         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
43232         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
43233         Reported by Eric Blake.
43234
43235 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43236             Bruno Haible  <bruno@clisp.org>
43237
43238         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
43239         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
43240         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
43241         (malloc): Undefine also before including <stdlib.h>.
43242         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
43243         Needed on OSF/1 4.0.
43244
43245 2007-11-05  Jim Meyering  <meyering@redhat.com>
43246
43247         git-version-gen: sync from coreutils.
43248         * build-aux/git-version-gen: Add comments.
43249         Change the first '-' to '.' in the snapshot version string,
43250         e.g., 6.9-377-08144 -> 6.9.377-08144
43251         Remove first parameter.
43252         Don't declare a version "-dirty" merely because a time
43253         stamp has changed.
43254
43255 2007-11-04  Bruno Haible  <bruno@clisp.org>
43256
43257         * lib/lock.h: Protect all macro definitions containing an 'if'
43258         statement through a "do { ... } while (0)".
43259         * lib/tls.h: Likewise.
43260
43261 2007-11-04  Bruno Haible  <bruno@clisp.org>
43262
43263         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
43264
43265 2007-11-04  Bruno Haible  <bruno@clisp.org>
43266
43267         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
43268         * modules/fprintf-posix (Depends-on): Add nocrash.
43269         * modules/snprintf-posix (Depends-on): Likewise.
43270         * modules/sprintf-posix (Depends-on): Likewise.
43271         * modules/vasnprintf-posix (Depends-on): Likewise.
43272         * modules/vasprintf-posix (Depends-on): Likewise.
43273         * modules/vfprintf-posix (Depends-on): Likewise.
43274         * modules/vsnprintf-posix (Depends-on): Likewise.
43275         * modules/vsprintf-posix (Depends-on): Likewise.
43276         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43277         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43278         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43279         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43280         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43281         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43282         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43283
43284 2007-11-04  Bruno Haible  <bruno@clisp.org>
43285
43286         * modules/nocrash: New file.
43287         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
43288         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
43289
43290 2007-11-04  Bruno Haible  <bruno@clisp.org>
43291
43292         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
43293         precision handling.
43294         * tests/test-vasprintf-posix.c (test_function): Likewise.
43295         * tests/test-snprintf-posix.h (test_function): Likewise.
43296         * tests/test-sprintf-posix.h (test_function): Likewise.
43297
43298         Fix *printf behaviour for large precisions on mingw and BeOS.
43299         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
43300         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
43301         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
43302         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43303         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43304         gl_PRINTF_PRECISION and test its result. Invoke
43305         gl_PREREQ_VASNPRINTF_PRECISION.
43306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43307         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43308         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43309         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43310         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43311         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43312         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43313         * doc/functions/fprintf.texi: Update.
43314         * doc/functions/printf.texi: Update.
43315         * doc/functions/snprintf.texi: Update.
43316         * doc/functions/sprintf.texi: Update.
43317         * doc/functions/vfprintf.texi: Update.
43318         * doc/functions/vprintf.texi: Update.
43319         * doc/functions/vsnprintf.texi: Update.
43320         * doc/functions/vsprintf.texi: Update.
43321
43322 2007-11-04  Bruno Haible  <bruno@clisp.org>
43323
43324         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
43325
43326 2007-11-04  Bruno Haible  <bruno@clisp.org>
43327
43328         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
43329         Reported by Sylvain Beucler <beuc@gnu.org>.
43330
43331 2007-11-03  Bruno Haible  <bruno@clisp.org>
43332
43333         * tests/test-fprintf-posix2.sh: New file.
43334         * tests/test-fprintf-posix2.c: New file.
43335         * modules/fprintf-posix-tests (Files): Add them.
43336         (TESTS): Add test-fprintf-posix2.sh.
43337         (configure.ac): Check for getrlimit and setrlimit.
43338         (check_PROGRAMS): Add test-fprintf-posix2.
43339
43340         * tests/test-printf-posix2.sh: New file.
43341         * tests/test-printf-posix2.c: New file.
43342         * modules/printf-posix-tests (Files): Add them.
43343         (TESTS): Add test-printf-posix2.sh.
43344         (configure.ac): Check for getrlimit and setrlimit.
43345         (check_PROGRAMS): Add test-printf-posix2.
43346
43347         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
43348         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
43349         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
43350         (decode_double): New function, copied from decode_long_double.
43351         (scale10_round_decimal_decoded): New function, extracted from
43352         scale10_round_decimal_long_double.
43353         (scale10_round_decimal_long_double): Use it.
43354         (scale10_round_decimal_double): New function.
43355         (floorlog10): New function.
43356         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
43357         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
43358         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43359         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43360         gl_PRINTF_ENOMEM and test its result. Invoke
43361         gl_PREREQ_VASNPRINTF_ENOMEM.
43362         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43363         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43366         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43367         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43368         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43369         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
43370         * modules/snprintf-posix (Depends-on): Likewise.
43371         * modules/sprintf-posix (Depends-on): Likewise.
43372         * modules/vasnprintf-posix (Depends-on): Likewise.
43373         * modules/vasprintf-posix (Depends-on): Likewise.
43374         * modules/vfprintf-posix (Depends-on): Likewise.
43375         * modules/vsnprintf-posix (Depends-on): Likewise.
43376         * modules/vsprintf-posix (Depends-on): Likewise.
43377         * doc/functions/fprintf.texi: Update.
43378         * doc/functions/printf.texi: Update.
43379         * doc/functions/snprintf.texi: Update.
43380         * doc/functions/sprintf.texi: Update.
43381         * doc/functions/vfprintf.texi: Update.
43382         * doc/functions/vprintf.texi: Update.
43383         * doc/functions/vsnprintf.texi: Update.
43384         * doc/functions/vsprintf.texi: Update.
43385
43386 2007-11-03  Bruno Haible  <bruno@clisp.org>
43387
43388         * modules/frexp-nolibm-tests: New file.
43389
43390         * modules/frexp-nolibm: New file.
43391         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
43392
43393 2007-11-03  Bruno Haible  <bruno@clisp.org>
43394
43395         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
43396         value is C99 compliant.
43397         Needed for OSF/1 5.1.
43398
43399 2007-11-03  Bruno Haible  <bruno@clisp.org>
43400
43401         Fix out-of-memory handling of vasnprintf.
43402         * lib/printf-parse.c: Include <errno.h>.
43403         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
43404         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
43405         is already set.
43406
43407 2007-11-02  Eric Blake  <ebb9@byu.net>
43408
43409         Fix tests on cygwin.
43410         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
43411
43412 2007-11-01  Bruno Haible  <bruno@clisp.org>
43413
43414         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
43415         warning.
43416         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
43417         needed for POSIX compatibility.
43418
43419 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43420
43421         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
43422         for compatibility with GNU.
43423
43424 2007-11-01  Bruno Haible  <bruno@clisp.org>
43425
43426         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
43427         (putenv): Renamed from rpl_putenv. Change argument type from
43428         'const char *' to 'char *'.
43429         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
43430         of defining putenv in config.h, just set REPLACE_PUTENV.
43431         * modules/putenv (Depends-on): Add stdlib.
43432         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43433         (Include): Use <stdlib.h>.
43434         * lib/stdlib.in.h (putenv): New declaration.
43435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
43436         REPLACE_PUTENV.
43437         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
43438         REPLACE_PUTENV.
43439         Needed for MacOS X 10.5.0.
43440         Reported by Peter O'Gorman <peter@pogma.com>.
43441
43442 2007-11-01  Jim Meyering  <meyering@redhat.com>
43443
43444         Treat an empty date string exactly like "0".
43445         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
43446         if the remaining date string (to be parsed) is empty, use "0".
43447         Reported by Mischa Molhoek and discussed in this thread:
43448         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
43449
43450 2007-10-31  Bruno Haible  <bruno@clisp.org>
43451
43452         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
43453         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
43454         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
43455         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
43456         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
43457         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
43458
43459 2007-10-31  Bruno Haible  <bruno@clisp.org>
43460
43461         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
43462         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
43463         (AC_TYPE_LONG_LONG_INT): Use it.
43464         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
43465         it as well.
43466         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
43467         to m4/longlong.m4.
43468         * modules/stdint (Files): Remove m4/ulonglong.m4.
43469         * modules/strtoull (Files): Use m4/longlong.m4 instead of
43470         m4/ulonglong.m4.
43471         * modules/strtoumax (Files): Likewise.
43472
43473 2007-10-30  Bruno Haible  <bruno@clisp.org>
43474
43475         * modules/xvasprintf-posix: New file.
43476         Suggested by Eric Blake.
43477
43478 2007-10-30  Bruno Haible  <bruno@clisp.org>
43479
43480         * modules/xprintf-posix-tests: New file.
43481         * tests/test-xprintf-posix.sh: New file.
43482         * tests/test-xprintf-posix.c: New file.
43483         * tests/test-xfprintf-posix.c: New file.
43484
43485         * modules/xprintf-posix: New file.
43486
43487 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43488
43489         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
43490         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
43491         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
43492
43493 2007-10-29  Bruno Haible  <bruno@clisp.org>
43494
43495         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
43496         contain the special marker '_cv_'.
43497         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43498         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43499         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43500         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
43501         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43502         Reported by Ralf Wildenhues.
43503
43504 2007-10-29  Bruno Haible  <bruno@clisp.org>
43505
43506         * gnulib-tool (func_import): When --lgpl is not specified, set
43507         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
43508         GPLv3.
43509         Reported by Simon Josefsson.
43510
43511 2007-10-28  Bruno Haible  <bruno@clisp.org>
43512
43513         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
43514         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
43515         HAVE_DECL_ISFINITE.
43516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43517         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
43518         HAVE_DECL_ISFINITE.
43519
43520 2007-10-28  Bruno Haible  <bruno@clisp.org>
43521
43522         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
43523         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
43524
43525 2007-10-28  Bruno Haible  <bruno@clisp.org>
43526
43527         Fix link errors with Sun C 5.0 on Solaris 10.
43528         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
43529         function is declared but not present in the compiler's libm.
43530         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
43531         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
43532         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
43533         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
43534         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
43535         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
43536         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
43537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
43538         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
43539         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
43540         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
43541         HAVE_DECL_FLOORL.
43542
43543 2007-10-28  Bruno Haible  <bruno@clisp.org>
43544
43545         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
43546         gl_FUNC_FLOORL. Cache the result.
43547         (gl_FUNC_FLOORL): Use it.
43548         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
43549         gl_FUNC_CEILL. Cache the result.
43550         (gl_FUNC_CEILL): Use it.
43551
43552         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
43553         gl_FUNC_FLOOR. Cache the result.
43554         (gl_FUNC_FLOOR): Use it.
43555         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
43556         gl_FUNC_CEIL. Cache the result.
43557         (gl_FUNC_CEIL): Use it.
43558
43559         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
43560         gl_FUNC_FLOORF. Cache the result.
43561         (gl_FUNC_FLOORF): Use it.
43562         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
43563         gl_FUNC_CEILF. Cache the result.
43564         (gl_FUNC_CEILF): Use it.
43565
43566 2007-10-28  Bruno Haible  <bruno@clisp.org>
43567
43568         * gnulib-tool: Allow specifying the LGPL version number through
43569         --lgpl=2 or --lgpl=3.
43570         (func_usage): Document --lgpl with argument.
43571         Handle --lgpl=... arguments.
43572         (func_import): Recognize also gl_LGPL calls with an argument. When
43573         --lgpl=2 is used and the module's license is just LGPL, report an
43574         error. Set sed_transform_lib_file according to the lgpl variable. In
43575         the generated files, use --lgpl or gl_LGPL invocations with argument,
43576         if necessary.
43577         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
43578         an LGPv2+ license.
43579         * doc/gnulib-tool.texi (Modified imports): Update explanation of
43580         gl_LGPL macro.
43581
43582 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43583             Bruno Haible  <bruno@clisp.org>
43584
43585         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
43586         (u16_uctomb_aux): Likewise.
43587         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
43588         !HAVE_INLINE.
43589         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
43590
43591 2007-10-28  Bruno Haible  <bruno@clisp.org>
43592
43593         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
43594         Invoke AM_GETTEXT_OPTION if it exists.
43595         * modules/vasprintf: Likewise.
43596         * modules/verror: Likewise.
43597         * modules/xprintf: Likewise.
43598         * modules/xvasprintf: Likewise.
43599
43600 2007-10-27  Ben Pfaff  <blp@gnu.org>
43601
43602         * lib/math.in.h: Define isfinite macro and prototypes for
43603         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
43604         implementations.
43605         * m4/math_h.m4: New substitutions for isfinite module.
43606         * lib/isfinite.c: New file.
43607         * m4/isfinite.m4: New file.
43608         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
43609         * modules/isfinite: New file.
43610         * modules/isfinite-tests: New file.
43611         * tests/tests-isfinite.c: New file.
43612         * doc/functions/isfinite.texi: Mention isfinite module.
43613         * MODULES.html.sh: Mention new module.
43614
43615 2007-10-27  Ben Pfaff  <blp@gnu.org>
43616
43617         Ralf Wildenhues reported that Tru64 4.0D declares the round
43618         functions but does not have definitions.
43619         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
43620         cannot be found in any library, set the output variable to
43621         "missing" instead of "".
43622         * m4/round.m4: Also use our substitute if we cannot find round in
43623         any library, even if it is declared.
43624         * m4/roundf.m4: Likewise for roundf.
43625         * m4/roundl.m4: Likewise for roundl.
43626         * lib/math.in.h: Undefine roundf, round, roundl before defining
43627         their replacements, to allow for hypothetical systems where these
43628         may be defined as macros but not available in libraries.
43629
43630 2007-10-27  Bruno Haible  <bruno@clisp.org>
43631
43632         * doc/gnulib.texi: Invoke @firstparagraphindent.
43633         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
43634         changes in gnulib.
43635         (Source changes): New section.
43636
43637 2007-10-26  Bruno Haible  <bruno@clisp.org>
43638
43639         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
43640         borrowed from autoconf.
43641
43642 2007-10-26  Bruno Haible  <bruno@clisp.org>
43643
43644         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
43645         strerror returned the empty string. Needed on HP-UX 11.00.
43646
43647 2007-10-24  Micah Cowan  <micah@cowan.name>
43648
43649         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
43650         * build-aux/bootstrap: Remove support for now-unnecessary option,
43651         --cvs-user, and envvars CVS_USER, CVS_RSH.
43652
43653 2007-10-24  Jim Meyering  <meyering@redhat.com>
43654
43655         Avoid diagnostics from sha1sum when there is no cached checksum.
43656         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
43657         if the po.s1 file hasn't been created yet.
43658
43659         * build-aux/bootstrap: Sync from coreutils:
43660         2007-10-24  Jim Meyering  <meyering@redhat.com>
43661         Get gnulib from the git repository, not from an obsolete cvs one.
43662         * build-aux/bootstrap: Suggestion from Micah Cowan.
43663         2007-10-04  Jim Meyering  <jim@meyering.net>
43664         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
43665         (update_po_files): Work also when there are no .po files in po/.
43666
43667 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43668
43669         * README: Append ".git" to git and cg examples.
43670         Problem reported by Benoit Sigoure.
43671
43672 2007-10-23  Micah Cowan  <micah@cowan.name>
43673
43674         * users.txt: Add wget.
43675
43676 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43677
43678         Fix linking of some unistdio tests on FreeBSD.
43679         * modules/unistdio/u16-vsnprintf-tests
43680         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
43681         * modules/unistdio/u16-vsprintf-tests
43682         (test_u16_vsnprintf1_LDADD): Likewise.
43683         * modules/unistdio/u32-vsnprintf-tests
43684         (test_u32_vsnprintf1_LDADD): Likewise.
43685         * modules/unistdio/u32-vsprintf-tests
43686         (test_u32_vsprintf1_LDADD): Likewise.
43687         * modules/unistdio/u8-vsnprintf-tests
43688         (test_u8_vsnprintf1_LDADD): Likewise.
43689         * modules/unistdio/u8-vsprintf-tests
43690         (test_u8_vsprintf1_LDADD): Likewise.
43691         * modules/unistdio/ulc-vsnprintf-tests
43692         (test_ulc_vsnprintf1_LDADD): Likewise.
43693         * modules/unistdio/ulc-vsprintf-tests
43694         (test_ulc_vsprintf1_LDADD): Likewise.
43695
43696         Fix linking of some uniconv tests on FreeBSD.
43697         * modules/uniconv/u16-conv-from-enc-tests
43698         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
43699         * modules/uniconv/u16-conv-to-enc-tests
43700         (test_u16_conv_to_enc_LDADD): Likewise.
43701         * modules/uniconv/u16-strconv-from-enc-tests
43702         (test_u16_strconv_from_enc_LDADD): Likewise.
43703         * modules/uniconv/u16-strconv-to-enc-tests
43704         (test_u16_strconv_to_enc_LDADD): Likewise.
43705         * modules/uniconv/u32-conv-from-enc-tests
43706         (test_u32_conv_from_enc_LDADD): Likewise.
43707         * modules/uniconv/u32-conv-to-enc-tests
43708         (test_u32_conv_to_enc_LDADD): Likewise.
43709         * modules/uniconv/u32-strconv-from-enc-tests
43710         (test_u32_strconv_from_enc_LDADD): Likewise.
43711         * modules/uniconv/u32-strconv-to-enc-tests
43712         (test_u32_strconv_to_enc_LDADD): Likewise.
43713         * modules/uniconv/u8-conv-from-enc-tests
43714         (test_u8_conv_from_enc_LDADD): Likewise.
43715         * modules/uniconv/u8-conv-to-enc-tests
43716         (test_u8_conv_to_enc_LDADD): Likewise.
43717         * modules/uniconv/u8-strconv-from-enc-tests
43718         (test_u8_strconv_from_enc_LDADD): Likewise.
43719         * modules/uniconv/u8-strconv-to-enc-tests
43720         (test_u8_strconv_to_enc_LDADD): Likewise.
43721
43722 2007-10-22  Bruno Haible  <bruno@clisp.org>
43723
43724         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
43725         size.
43726
43727 2007-10-22  Eric Blake  <ebb9@byu.net>
43728
43729         Tweak x*printf documentation.
43730         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
43731         variable name and comments.
43732         Suggested by Bruno Haible.
43733
43734 2007-10-22  Bruno Haible  <bruno@clisp.org>
43735
43736         * lib/acl.c (copy_acl): Fix file name in comment.
43737
43738 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43739
43740         Fix Tru64 problem with stdbool.h.
43741         * lib/stdbool.in.h (false, true):
43742         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
43743         Don't declare as an enum in this situation; it runs afoul of Tru64.
43744         Problem reported by Steven M. Schweda in
43745         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
43746
43747 2007-10-22  Eric Blake  <ebb9@byu.net>
43748
43749         Also wrap vf?printf.
43750         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
43751         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
43752         (xvprintf, xvfprintf): New functions.
43753
43754 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43755
43756         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
43757         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
43758
43759         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
43760         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
43761
43762 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43763
43764         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
43765         by Bruno Haible.
43766
43767 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43768
43769         * lib/getloadavg.c
43770         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
43771         Undef `sys' after including sys/table.h, for Tru64 4.0D.
43772
43773         * tests/test-i-ring.c: Work for C89.
43774
43775 2007-10-22  Bruno Haible  <bruno@clisp.org>
43776
43777         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
43778         -1u, in preprocessor expression, so that we don't test for the bug
43779         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
43780         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
43781
43782 2007-10-22  Eric Blake  <ebb9@byu.net>
43783
43784         * tests/test-yesno.sh: Silence stderr during test.
43785
43786 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43787
43788         * modules/crypto/gc-camellia: New file.
43789
43790         * m4/gc-camellia.m4: New file.
43791
43792         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
43793
43794         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
43795
43796 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43797
43798         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
43799         --help to stdout.  Reported by sms@antinode.org (Steven
43800         M. Schweda).
43801
43802 2007-10-22  Simon Josefsson  <simon@josefsson.org>
43803
43804         * users.txt: Fix link to libksba.
43805
43806 2007-10-21  Ben Pfaff  <blp@gnu.org>
43807
43808         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
43809         round.c roundf implementation that depends on floorf and ceilf to
43810         be tested unconditionally.
43811
43812 2007-10-21  Ben Pfaff  <blp@gnu.org>
43813
43814         * m4/check-libm-func.m4: Removed.
43815         * m4/check-math-lib.m4: New file.
43816         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
43817         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
43818         definition and lack of AC_LIBOBJ([roundf]).
43819         * m4/roundl.m4: Ditto, and similarly for roundl.
43820         * modules/round: Reference new m4 file.
43821         * modules/roundf: Ditto.
43822         * modules/roundl: Ditto.
43823         * tests/test-round2.c (main): Use ROUND instead of round.
43824         Bug report from Bruno Haible.
43825
43826 2007-10-21  Bruno Haible  <bruno@clisp.org>
43827
43828         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
43829         context.
43830
43831 2007-10-21  Bruno Haible  <bruno@clisp.org>
43832
43833         * tests/test-wcwidth.c (main): Allow negative result for some control
43834         characters.
43835
43836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
43837         Needed on OSF/1 5.1.
43838
43839 2007-10-21  Bruno Haible  <bruno@clisp.org>
43840
43841         * tests/test-floorf1.c: Include isnanf.h.
43842         (main): Use isnanf() instead of isnan().
43843         * tests/test-ceilf1.c: Include isnanf.h.
43844         (main): Use isnanf() instead of isnan().
43845         * tests/test-truncf1.c: Include isnanf.h.
43846         (main): Use isnanf() instead of isnan().
43847         * tests/test-roundf1.c: Include isnanf.h.
43848         (main): Use isnanf() instead of isnan().
43849
43850 2007-10-21  Eric Blake  <ebb9@byu.net>
43851
43852         * users.txt: Update URL for m4.
43853
43854 2007-10-21  Bruno Haible  <bruno@clisp.org>
43855
43856         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
43857
43858 2007-10-21  Bruno Haible  <bruno@clisp.org>
43859
43860         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
43861         Git's management files if the CVS files are not present.
43862
43863 2007-10-20  Bruno Haible  <bruno@clisp.org>
43864
43865         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
43866         gcc-3.4.x.
43867
43868 2007-10-20  Ben Pfaff  <blp@gnu.org>
43869
43870         * lib/math.in.h: Declare round, roundf, roundl if we are providing
43871         implementations.
43872         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
43873         * lib/round.c: New file.
43874         * lib/roundf.c: New file.
43875         * lib/roundl.c: New file.
43876         * m4/round.m4: New file.
43877         * m4/roundf.m4: New file.
43878         * m4/roundl.m4: New file.
43879         * m4/check-libm-func-m4: New file.
43880         * modules/math: Replace round, roundf, roundl related @VARS@ in
43881         math.in.h.
43882         * modules/round: New file.
43883         * modules/round-tests: New file.
43884         * modules/roundf: New file.
43885         * modules/roundf-tests: New file.
43886         * modules/roundl: New file.
43887         * modules/roundl-tests: New file.
43888         * tests/test-round1.c: New file.
43889         * tests/test-round2.c: New file.
43890         * tests/test-roundf1.c: New file.
43891         * tests/test-roundf2.c: New file.
43892         * tests/test-roundl.c: New file.
43893         * doc/functions/round.texi: Mention round module.
43894         * doc/functions/roundf.texi: Mention roundf module.
43895         * doc/functions/roundl.texi: Mention roundl module.
43896         * MODULES.html.sh: Mention new modules.
43897         Thanks to Bruno Haible for suggestions.
43898
43899 2007-10-20  Jim Meyering  <meyering@redhat.com>
43900
43901         * lib/xprintf.c: Include <config.h> unconditionally.
43902
43903         Change xprintf's license to GPL.
43904         * modules/xprintf (License): s/LGPL/GPL/, since this module
43905         depends on modules (exit and exitfail) which are GPL.
43906         Suggestion from Bruno Haible.
43907
43908         xprintf fixes.
43909         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
43910         Use a clearer diagnostic.
43911         Patch from Bruno Haible.
43912
43913 2007-10-20  Bruno Haible  <bruno@clisp.org>
43914
43915         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
43916         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
43917         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43918
43919 2007-10-20  Bruno Haible  <bruno@clisp.org>
43920
43921         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
43922         precision in the comparison result > x - 1 or similar.
43923         * tests/test-ceilf2.c (correct_result_p): Likewise.
43924         * tests/test-truncf2.c (correct_result_p): Likewise.
43925         * tests/test-trunc2.c (correct_result_p): Likewise.
43926         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43927
43928 2007-10-20  Bruno Haible  <bruno@clisp.org>
43929
43930         * modules/ceil: New file.
43931         * m4/ceil.m4: New file.
43932         * doc/functions/ceil.texi: Mention the 'ceil' module.
43933
43934 2007-10-20  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/floor: New file.
43937         * m4/floor.m4: New file.
43938         * doc/functions/floor.texi: Mention the 'floor' module.
43939
43940 2007-10-20  Bruno Haible  <bruno@clisp.org>
43941
43942         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
43943         of %a.
43944         * modules/floorf-tests (Depends-on): Likewise.
43945         * modules/truncf-tests (Depends-on): Likewise.
43946         * modules/trunc-tests (Depends-on): Likewise.
43947         Reported by Ben Pfaff.
43948
43949 2007-10-19  Jim Meyering  <meyering@redhat.com>
43950
43951         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
43952         Don't bother testing specific errno values.  Just test ferror.
43953
43954         New module: xprintf
43955         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
43956
43957 2007-10-19  Bruno Haible  <bruno@clisp.org>
43958
43959         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
43960         syntax.
43961         * modules/javaexec (Makefile.am): Likewise.
43962         * modules/relocatable-prog (Makefile.am): Likewise.
43963         Suggested by Jim Meyering.
43964
43965 2007-10-18  Bruno Haible  <bruno@clisp.org>
43966
43967         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
43968         Reported by Jim Meyering.
43969
43970 2007-10-18  Eric Blake  <ebb9@byu.net>
43971
43972         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
43973
43974 2007-10-18  Bruno Haible  <bruno@clisp.org>
43975
43976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
43977         the format string into writable memory. Needed in Fortify conditions.
43978
43979 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
43980             Bruno Haible  <bruno@clisp.org>
43981
43982         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
43983         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
43984         * modules/trim (Depends-on): Add mbchar.
43985         (configure.ac): Add gl_FUNC_MBRTOWC.
43986         (Makefile.am): Augment lib_SOURCES.
43987
43988 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43989
43990         Modify glob.c to use fstatat and dirfd, to simplify it.
43991         Suggested by Eric Blake.
43992         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
43993         Don't include <stdbool.h>; not used.
43994         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
43995         (link_exists_p): Simplify implementation, since we can now assume
43996         dirfd and fstatat.
43997         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
43998
43999 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44000
44001         * gnulib-tool (func_get_dependencies): Fix sed script to
44002         match only tests.
44003
44004 2007-10-17  Bruno Haible  <bruno@clisp.org>
44005
44006         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44007         allow locale names without encoding suffix.
44008         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44009         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44010
44011 2007-10-16  Bruno Haible  <bruno@clisp.org>
44012
44013         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44014         * lib/getgroups.c (getgroups): Likewise.
44015         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44016
44017 2007-10-16  Bruno Haible  <bruno@clisp.org>
44018
44019         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44020         * modules/malloc-posix (License): Likewise.
44021         * modules/realloc-posix (License): Likewise.
44022         * modules/calloc-posix (License): Likewise.
44023         * modules/intprops (License): Change from GPL to LGPL, with
44024         Paul Eggert's approval.
44025
44026 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44027
44028         Merge glibc changes into lib/glob.c.
44029
44030         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44031         2007-10-15 04:59:03 UTC.  Here are the changes:
44032
44033         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44034
44035         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44036
44037         * lib/glob.c: Add some branch prediction throughout.
44038
44039         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44040
44041         [BZ #5103]
44042         * lib/glob.c (glob): Recognize patterns starting \/.
44043
44044         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44045
44046         [BZ #3996]
44047         * lib/glob.c (attribute_hidden): Define if not defined.
44048         (glob): Unescape dirname, filename or username when needed and not
44049         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44050         is NULL.  Handle unescaped [ in pattern without closing ].
44051         Don't pass GLOB_CHECK down to recursive glob for directories.
44052         (__glob_pattern_type): New function.
44053         (__glob_pattern_p): Implement using __glob_pattern_type.
44054         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44055         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44056         Remove unreachable code.
44057
44058         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44059
44060         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44061         explain why there are no leaks.
44062
44063         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44064
44065         [BZ #3253]
44066         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44067         time, rather allocate increasingly bigger arrays of pointers, if
44068         possible with alloca, if too large with malloc.
44069
44070 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44071
44072         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44073         Problem reported by H.Merijn Brand in
44074         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44075         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44076         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44077
44078 2007-10-15  Bruno Haible  <bruno@clisp.org>
44079
44080         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44081         with explicit rpl_ prefix.
44082         * lib/fopen.c (fopen): Likewise.
44083         * lib/freopen.c (freopen): Likewise.
44084         * lib/iconv.c (iconv): Likewise.
44085         * lib/iconv_close.c (iconv_close): Likewise.
44086
44087 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44088
44089         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44090
44091 2007-10-15  Bruno Haible  <bruno@clisp.org>
44092
44093         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44094         <stddef.h> instead of <stdlib.h> since we only need NULL.
44095         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44096
44097 2007-10-15  Bruno Haible  <bruno@clisp.org>
44098
44099         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44100         Replace paragraph talking about LIBOBJS.
44101         Reported by Colin Watson <cjwatson@debian.org>.
44102
44103 2007-10-15  Bruno Haible  <bruno@clisp.org>
44104
44105         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44106         <stdlib.h> before using NULL.
44107
44108 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44109
44110         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44111         Reported by Albert Chin <china@thewrittenword.com>.
44112
44113 2007-10-14  Bruno Haible  <bruno@clisp.org>
44114
44115         * modules/iconv_open-utf-tests: New file.
44116         * tests/test-iconv-utf.c: New file.
44117
44118         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44119         * modules/iconv_open-utf: New file.
44120         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44121         (iconv, iconv_close): New declarations.
44122         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44123         be defined.
44124         (iconv_open): Add special handling of conversion between UTF-8 and
44125         UTF-{16,32}{BE,LE}.
44126         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44127         * lib/iconv_close.c: New file.
44128         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44129         gl_FUNC_ICONV_OPEN.
44130         (gl_FUNC_ICONV_OPEN): Use it.
44131         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44132         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44133         and REPLACE_ICONV_UTF.
44134         * modules/iconv_open (Depends-on): Add c-strcase.
44135         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44136         ICONV_CONST.
44137         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44138
44139 2007-10-13  Albert Chin  <china@thewrittenword.com>
44140             Bruno Haible  <bruno@clisp.org>
44141
44142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44143         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44144
44145 2007-10-13  Bruno Haible  <bruno@clisp.org>
44146
44147         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44148         defined, use the ISO C99 inline semantics.
44149         * lib/argp.h (ARGP_EI): Likewise.
44150
44151 2007-10-13  Bruno Haible  <bruno@clisp.org>
44152
44153         Handle 'inline' change in gcc 4.3.0.
44154         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44155         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44156         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44157         argp_fmtstream_point): Disable 'extern' declaration if the function
44158         definition is going to be provided inline.
44159         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44160         semantics, not the ISO C99 inline semantics.
44161         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44162         'extern' declaration if the function definition is going to be provided
44163         inline.
44164         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44165         the GNU C inline semantics, not the ISO C99 inline semantics. With
44166         GCC 4.2, avoid a warning.
44167
44168 2007-10-13  Bruno Haible  <bruno@clisp.org>
44169
44170         * lib/freading.h (freading): Enable the use of __freading for
44171         glibc >= 2.7.
44172         * lib/freading.c (freading): Likewise.
44173
44174 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44175
44176         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44177         "warning: C99 inline functions are not supported; using GNU89".
44178
44179 2007-10-12  Bruno Haible  <bruno@clisp.org>
44180
44181         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44182         of 2.
44183         * tests/test-ceilf2.c: New file.
44184         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44185
44186         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44187         * modules/ceilf-tests: Update.
44188
44189 2007-10-12  Bruno Haible  <bruno@clisp.org>
44190
44191         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44192         of 2.
44193         * tests/test-floorf2.c: New file.
44194         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44195
44196         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44197         * modules/floorf-tests: Update.
44198
44199 2007-10-12  Bruno Haible  <bruno@clisp.org>
44200
44201         * tests/test-trunc2.c: New file.
44202         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44203
44204         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44205         * modules/trunc-tests: Update.
44206
44207 2007-10-12  Bruno Haible  <bruno@clisp.org>
44208
44209         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
44210         of 2.
44211         * tests/test-truncf2.c: New file.
44212         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
44213
44214         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
44215         * modules/truncf-tests: Update.
44216
44217 2007-10-11  Eric Blake  <ebb9@byu.net>
44218
44219         Don't claim strerror is broken on Interix.
44220         * doc/functions/strerror.texi (strerror): Known broken systems are
44221         now Solaris 8, and not Interix.
44222         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
44223         Interix on cross-compile.
44224         Reported by Martin Koeppe in
44225         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
44226
44227 2007-10-11  Bruno Haible  <bruno@clisp.org>
44228
44229         * modules/i-ring-tests: New file.
44230         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
44231         instead of assert.
44232
44233 2007-10-11  Bruno Haible  <bruno@clisp.org>
44234
44235         * modules/filenamecat-tests: New file.
44236         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
44237         * lib/filenamecat.c: Remove test code.
44238
44239 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
44240
44241         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
44242
44243         * lib/strerror.c: Include <string.h> always, to test interface,
44244         and to remove the need for the dummy.
44245         Include intprops.h to compute width instead of doing it ourselves
44246         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
44247         (strerror): Define it to return NULL if there's no system strerror.
44248         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
44249         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
44250         ancient pre-strerror Unix systems well any more.  Saying "unknown
44251         system error" is enough.
44252         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
44253         simpler strerror.c implementation.
44254         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
44255         Simplify the tests to reflect the simpler strerror implementation.
44256         * modules/strerror (Depends-on): Add intprops.
44257
44258 2007-10-09  Eric Blake  <ebb9@byu.net>
44259
44260         Silence test-fpending.
44261         * modules/fpending-tests (Files): Add wrapper script.
44262         * tests/test-fpending.sh: New file.
44263
44264 2007-10-09  Bruno Haible  <bruno@clisp.org>
44265
44266         * MODULES.html.sh (func_module): Don't create a hyperlink for
44267         function names like 'printf_frexp'.
44268         (Misc): Add crc, memxor.
44269         (Characteristics of floating types): New section.
44270         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
44271         isnanf-nolibm, signbit, trunc, truncf, truncl.
44272         (Enhancements for ISO C 99 functions): New subsection Input/output.
44273         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
44274         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
44275         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
44276         (Compatibility checks for POSIX:2001 functions): Add clock-time.
44277         (Enhancements for POSIX:2001 functions): Add chdir-long.
44278         (File system functions): Add areadlink, chdir-safer, read-file.
44279         Remove cycle-check.
44280         (File system as inode set): New section.
44281         (Date and time): Add gethrxtime.
44282         (Multithreading): Add openmp.
44283         (Internationalization functions): Add localename.
44284         (Unicode string functions): Add unistr/u*-mbsnlen.
44285         (Support for maintaining and releasing projects): Add git-version-gen.
44286         (Lone files): Remove directories.
44287
44288 2007-10-08  Ben Pfaff  <blp@gnu.org>
44289
44290         * lib/xmalloca.h: Fix typo in comment.
44291
44292 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
44293
44294         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
44295         when avoiding problems with integer overflow.  Use a portable test
44296         instead.
44297
44298 2007-10-08  Simon Josefsson  <simon@josefsson.org>
44299
44300         * modules/dummy (License): Change to LGPLv2+.
44301         * modules/float (License): Likewise
44302         * modules/realloc (License): Likewise
44303         * modules/stdlib (License): Likewise
44304
44305 2007-10-07  Bruno Haible  <bruno@clisp.org>
44306
44307         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
44308         * floor.c (TWO_MANT_DIG): Likewise.
44309         * ceil.c (TWO_MANT_DIG): Likewise.
44310         Reported by Ben Pfaff.
44311
44312 2007-10-07  Bruno Haible  <bruno@clisp.org>
44313
44314         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
44315         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
44316         * lib/frexp.c (FUNC): Likewise.
44317         * lib/printf-frexp.h (printf_frexp): Likewise.
44318         * lib/printf-frexpl.h (printf_frexpl): Likewise.
44319         * lib/printf-frexp.c (FUNC): Likewise.
44320         Suggested by Jim Meyering.
44321
44322 2007-10-07  Jim Meyering  <meyering@redhat.com>
44323
44324         Make xnanosleep's integer overflow test more robust.
44325         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
44326         so that gcc-4.3.0 doesn't optimize away this test for overflow.
44327
44328 2007-10-07  Bruno Haible  <bruno@clisp.org>
44329
44330         * NEWS: Mention the license change.
44331
44332         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
44333         abbreviations in the modules files.
44334
44335         Change copyright notice from GPLv2+ to GPLv3+.
44336         * README: Change copyright notice.
44337         * MODULES.html.sh: Likewise.
44338         * build-aux/bootstrap.conf: Likewise.
44339         * build-aux/config.libpath: Likewise.
44340         * build-aux/csharpcomp.sh.in: Likewise.
44341         * build-aux/csharpexec.sh.in: Likewise.
44342         * build-aux/install-reloc: Likewise.
44343         * build-aux/javacomp.sh.in: Likewise.
44344         * build-aux/javaexec.sh.in: Likewise.
44345         * build-aux/ldd.sh.in: Likewise.
44346         * build-aux/reloc-ldflags: Likewise.
44347         * build-aux/relocatable.sh.in: Likewise.
44348         * build-aux/x-to-1.in: Likewise.
44349         * check-module: Likewise.
44350         * config/srclistvars.sh: Likewise.
44351         * gnulib-tool: Likewise.
44352         * lib/acl-internal.h: Likewise.
44353         * lib/acl.c: Likewise.
44354         * lib/acl.h: Likewise.
44355         * lib/acl_entries.c: Likewise.
44356         * lib/areadlink-with-size.c: Likewise.
44357         * lib/areadlink.c: Likewise.
44358         * lib/areadlink.h: Likewise.
44359         * lib/argmatch.c: Likewise.
44360         * lib/argmatch.h: Likewise.
44361         * lib/argp-ba.c: Likewise.
44362         * lib/argp-eexst.c: Likewise.
44363         * lib/argp-fmtstream.c: Likewise.
44364         * lib/argp-fmtstream.h: Likewise.
44365         * lib/argp-fs-xinl.c: Likewise.
44366         * lib/argp-help.c: Likewise.
44367         * lib/argp-namefrob.h: Likewise.
44368         * lib/argp-parse.c: Likewise.
44369         * lib/argp-pin.c: Likewise.
44370         * lib/argp-pv.c: Likewise.
44371         * lib/argp-pvh.c: Likewise.
44372         * lib/argp-xinl.c: Likewise.
44373         * lib/argp.h: Likewise.
44374         * lib/at-func.c: Likewise.
44375         * lib/atanl.c: Likewise.
44376         * lib/backupfile.c: Likewise.
44377         * lib/backupfile.h: Likewise.
44378         * lib/basename.c: Likewise.
44379         * lib/binary-io.h: Likewise.
44380         * lib/byteswap.in.h: Likewise.
44381         * lib/c-stack.c: Likewise.
44382         * lib/c-stack.h: Likewise.
44383         * lib/c-strcasestr.c: Likewise.
44384         * lib/c-strcasestr.h: Likewise.
44385         * lib/c-strstr.c: Likewise.
44386         * lib/c-strstr.h: Likewise.
44387         * lib/c-strtod.c: Likewise.
44388         * lib/calloc.c: Likewise.
44389         * lib/canon-host.c: Likewise.
44390         * lib/canon-host.h: Likewise.
44391         * lib/canonicalize-lgpl.c: Likewise.
44392         * lib/canonicalize.c: Likewise.
44393         * lib/canonicalize.h: Likewise.
44394         * lib/ceil.c: Likewise.
44395         * lib/ceilf.c: Likewise.
44396         * lib/ceill.c: Likewise.
44397         * lib/chdir-long.c: Likewise.
44398         * lib/chdir-long.h: Likewise.
44399         * lib/chdir-safer.c: Likewise.
44400         * lib/chdir-safer.h: Likewise.
44401         * lib/chown.c: Likewise.
44402         * lib/classpath.c: Likewise.
44403         * lib/classpath.h: Likewise.
44404         * lib/clean-temp.c: Likewise.
44405         * lib/clean-temp.h: Likewise.
44406         * lib/cloexec.c: Likewise.
44407         * lib/close-stream.c: Likewise.
44408         * lib/closein.c: Likewise.
44409         * lib/closein.h: Likewise.
44410         * lib/closeout.c: Likewise.
44411         * lib/closeout.h: Likewise.
44412         * lib/concat-filename.c: Likewise.
44413         * lib/copy-file.c: Likewise.
44414         * lib/copy-file.h: Likewise.
44415         * lib/count-one-bits.h: Likewise.
44416         * lib/crc.c: Likewise.
44417         * lib/crc.h: Likewise.
44418         * lib/creat-safer.c: Likewise.
44419         * lib/csharpcomp.c: Likewise.
44420         * lib/csharpcomp.h: Likewise.
44421         * lib/csharpexec.c: Likewise.
44422         * lib/csharpexec.h: Likewise.
44423         * lib/cycle-check.c: Likewise.
44424         * lib/cycle-check.h: Likewise.
44425         * lib/diacrit.c: Likewise.
44426         * lib/diacrit.h: Likewise.
44427         * lib/diffseq.h: Likewise.
44428         * lib/dirchownmod.c: Likewise.
44429         * lib/dirent.in.h: Likewise.
44430         * lib/dirfd.c: Likewise.
44431         * lib/dirfd.h: Likewise.
44432         * lib/dirname.c: Likewise.
44433         * lib/dirname.h: Likewise.
44434         * lib/dummy.c: Likewise.
44435         * lib/dup-safer.c: Likewise.
44436         * lib/dup2.c: Likewise.
44437         * lib/eealloc.h: Likewise.
44438         * lib/error.c: Likewise.
44439         * lib/error.h: Likewise.
44440         * lib/euidaccess.c: Likewise.
44441         * lib/exclude.c: Likewise.
44442         * lib/exclude.h: Likewise.
44443         * lib/execute.c: Likewise.
44444         * lib/execute.h: Likewise.
44445         * lib/exitfail.c: Likewise.
44446         * lib/exitfail.h: Likewise.
44447         * lib/expl.c: Likewise.
44448         * lib/fatal-signal.c: Likewise.
44449         * lib/fatal-signal.h: Likewise.
44450         * lib/fbufmode.c: Likewise.
44451         * lib/fbufmode.h: Likewise.
44452         * lib/fchdir.c: Likewise.
44453         * lib/fchmodat.c: Likewise.
44454         * lib/fchownat.c: Likewise.
44455         * lib/fcntl--.h: Likewise.
44456         * lib/fcntl-safer.h: Likewise.
44457         * lib/fcntl.in.h: Likewise.
44458         * lib/fd-safer.c: Likewise.
44459         * lib/fflush.c: Likewise.
44460         * lib/file-has-acl.c: Likewise.
44461         * lib/file-set.c: Likewise.
44462         * lib/file-type.c: Likewise.
44463         * lib/file-type.h: Likewise.
44464         * lib/fileblocks.c: Likewise.
44465         * lib/filemode.c: Likewise.
44466         * lib/filemode.h: Likewise.
44467         * lib/filename.h: Likewise.
44468         * lib/filenamecat.c: Likewise.
44469         * lib/filenamecat.h: Likewise.
44470         * lib/findprog.c: Likewise.
44471         * lib/findprog.h: Likewise.
44472         * lib/float.in.h: Likewise.
44473         * lib/floor.c: Likewise.
44474         * lib/floorf.c: Likewise.
44475         * lib/floorl.c: Likewise.
44476         * lib/fopen-safer.c: Likewise.
44477         * lib/fopen.c: Likewise.
44478         * lib/fpending.c: Likewise.
44479         * lib/fpending.h: Likewise.
44480         * lib/fprintf.c: Likewise.
44481         * lib/fprintftime.h: Likewise.
44482         * lib/fpucw.h: Likewise.
44483         * lib/fpurge.c: Likewise.
44484         * lib/fpurge.h: Likewise.
44485         * lib/freadable.c: Likewise.
44486         * lib/freadable.h: Likewise.
44487         * lib/freadahead.c: Likewise.
44488         * lib/freadahead.h: Likewise.
44489         * lib/freading.c: Likewise.
44490         * lib/freading.h: Likewise.
44491         * lib/free.c: Likewise.
44492         * lib/freopen.c: Likewise.
44493         * lib/frexp.c: Likewise.
44494         * lib/frexpl.c: Likewise.
44495         * lib/fseek.c: Likewise.
44496         * lib/fseterr.c: Likewise.
44497         * lib/fseterr.h: Likewise.
44498         * lib/fstatat.c: Likewise.
44499         * lib/fstrcmp.c: Likewise.
44500         * lib/fstrcmp.h: Likewise.
44501         * lib/fsusage.c: Likewise.
44502         * lib/fsusage.h: Likewise.
44503         * lib/ftell.c: Likewise.
44504         * lib/ftello.c: Likewise.
44505         * lib/fts-cycle.c: Likewise.
44506         * lib/fts.c: Likewise.
44507         * lib/fts_.h: Likewise.
44508         * lib/full-read.c: Likewise.
44509         * lib/full-read.h: Likewise.
44510         * lib/full-write.c: Likewise.
44511         * lib/full-write.h: Likewise.
44512         * lib/fwritable.c: Likewise.
44513         * lib/fwritable.h: Likewise.
44514         * lib/fwriteerror.c: Likewise.
44515         * lib/fwriteerror.h: Likewise.
44516         * lib/fwriting.c: Likewise.
44517         * lib/fwriting.h: Likewise.
44518         * lib/gcd.c: Likewise.
44519         * lib/gcd.h: Likewise.
44520         * lib/getcwd.c: Likewise.
44521         * lib/getdate.h: Likewise.
44522         * lib/getdate.y: Likewise.
44523         * lib/getdomainname.c: Likewise.
44524         * lib/getdomainname.h: Likewise.
44525         * lib/getgroups.c: Likewise.
44526         * lib/gethostname.c: Likewise.
44527         * lib/gethrxtime.c: Likewise.
44528         * lib/gethrxtime.h: Likewise.
44529         * lib/getloadavg.c: Likewise.
44530         * lib/getndelim2.c: Likewise.
44531         * lib/getndelim2.h: Likewise.
44532         * lib/getnline.c: Likewise.
44533         * lib/getnline.h: Likewise.
44534         * lib/getopt.c: Likewise.
44535         * lib/getopt.in.h: Likewise.
44536         * lib/getopt1.c: Likewise.
44537         * lib/getopt_int.h: Likewise.
44538         * lib/getpagesize.h: Likewise.
44539         * lib/getsubopt.c: Likewise.
44540         * lib/gettime.c: Likewise.
44541         * lib/getugroups.c: Likewise.
44542         * lib/getugroups.h: Likewise.
44543         * lib/getusershell.c: Likewise.
44544         * lib/gl_anyavltree_list1.h: Likewise.
44545         * lib/gl_anyavltree_list2.h: Likewise.
44546         * lib/gl_anyhash_list1.h: Likewise.
44547         * lib/gl_anyhash_list2.h: Likewise.
44548         * lib/gl_anylinked_list1.h: Likewise.
44549         * lib/gl_anylinked_list2.h: Likewise.
44550         * lib/gl_anyrbtree_list1.h: Likewise.
44551         * lib/gl_anyrbtree_list2.h: Likewise.
44552         * lib/gl_anytree_list1.h: Likewise.
44553         * lib/gl_anytree_list2.h: Likewise.
44554         * lib/gl_anytree_oset.h: Likewise.
44555         * lib/gl_anytreehash_list1.h: Likewise.
44556         * lib/gl_anytreehash_list2.h: Likewise.
44557         * lib/gl_array_list.c: Likewise.
44558         * lib/gl_array_list.h: Likewise.
44559         * lib/gl_array_oset.c: Likewise.
44560         * lib/gl_array_oset.h: Likewise.
44561         * lib/gl_avltree_list.c: Likewise.
44562         * lib/gl_avltree_list.h: Likewise.
44563         * lib/gl_avltree_oset.c: Likewise.
44564         * lib/gl_avltree_oset.h: Likewise.
44565         * lib/gl_avltreehash_list.c: Likewise.
44566         * lib/gl_avltreehash_list.h: Likewise.
44567         * lib/gl_carray_list.c: Likewise.
44568         * lib/gl_carray_list.h: Likewise.
44569         * lib/gl_linked_list.c: Likewise.
44570         * lib/gl_linked_list.h: Likewise.
44571         * lib/gl_linkedhash_list.c: Likewise.
44572         * lib/gl_linkedhash_list.h: Likewise.
44573         * lib/gl_list.c: Likewise.
44574         * lib/gl_list.h: Likewise.
44575         * lib/gl_oset.c: Likewise.
44576         * lib/gl_oset.h: Likewise.
44577         * lib/gl_rbtree_list.c: Likewise.
44578         * lib/gl_rbtree_list.h: Likewise.
44579         * lib/gl_rbtree_oset.c: Likewise.
44580         * lib/gl_rbtree_oset.h: Likewise.
44581         * lib/gl_rbtreehash_list.c: Likewise.
44582         * lib/gl_rbtreehash_list.h: Likewise.
44583         * lib/gl_sublist.c: Likewise.
44584         * lib/gl_sublist.h: Likewise.
44585         * lib/group-member.c: Likewise.
44586         * lib/group-member.h: Likewise.
44587         * lib/hard-locale.c: Likewise.
44588         * lib/hard-locale.h: Likewise.
44589         * lib/hash-pjw.c: Likewise.
44590         * lib/hash-pjw.h: Likewise.
44591         * lib/hash-triple.c: Likewise.
44592         * lib/hash.c: Likewise.
44593         * lib/hash.h: Likewise.
44594         * lib/human.c: Likewise.
44595         * lib/human.h: Likewise.
44596         * lib/i-ring.c: Likewise.
44597         * lib/i-ring.h: Likewise.
44598         * lib/idcache.c: Likewise.
44599         * lib/imaxabs.c: Likewise.
44600         * lib/imaxdiv.c: Likewise.
44601         * lib/inet_pton.c: Likewise.
44602         * lib/inet_pton.h: Likewise.
44603         * lib/intprops.h: Likewise.
44604         * lib/inttostr.c: Likewise.
44605         * lib/inttostr.h: Likewise.
44606         * lib/inttypes.in.h: Likewise.
44607         * lib/isapipe.c: Likewise.
44608         * lib/isdir.c: Likewise.
44609         * lib/isnan.c: Likewise.
44610         * lib/isnan.h: Likewise.
44611         * lib/isnanf.c: Likewise.
44612         * lib/isnanf.h: Likewise.
44613         * lib/isnanl-nolibm.h: Likewise.
44614         * lib/isnanl.c: Likewise.
44615         * lib/isnanl.h: Likewise.
44616         * lib/javacomp.c: Likewise.
44617         * lib/javacomp.h: Likewise.
44618         * lib/javaexec.c: Likewise.
44619         * lib/javaexec.h: Likewise.
44620         * lib/javaversion.c: Likewise.
44621         * lib/javaversion.h: Likewise.
44622         * lib/javaversion.java: Likewise.
44623         * lib/lbrkprop.h: Likewise.
44624         * lib/lchmod.h: Likewise.
44625         * lib/lchown.c: Likewise.
44626         * lib/ldexpl.c: Likewise.
44627         * lib/linebreak.c: Likewise.
44628         * lib/linebreak.h: Likewise.
44629         * lib/linebuffer.c: Likewise.
44630         * lib/linebuffer.h: Likewise.
44631         * lib/locale.in.h: Likewise.
44632         * lib/logl.c: Likewise.
44633         * lib/long-options.c: Likewise.
44634         * lib/long-options.h: Likewise.
44635         * lib/lstat.c: Likewise.
44636         * lib/lstat.h: Likewise.
44637         * lib/math.in.h: Likewise.
44638         * lib/mbchar.c: Likewise.
44639         * lib/mbchar.h: Likewise.
44640         * lib/mbfile.h: Likewise.
44641         * lib/mbiter.h: Likewise.
44642         * lib/mbscasecmp.c: Likewise.
44643         * lib/mbscasestr.c: Likewise.
44644         * lib/mbschr.c: Likewise.
44645         * lib/mbscspn.c: Likewise.
44646         * lib/mbslen.c: Likewise.
44647         * lib/mbsncasecmp.c: Likewise.
44648         * lib/mbsnlen.c: Likewise.
44649         * lib/mbspbrk.c: Likewise.
44650         * lib/mbspcasecmp.c: Likewise.
44651         * lib/mbsrchr.c: Likewise.
44652         * lib/mbssep.c: Likewise.
44653         * lib/mbsspn.c: Likewise.
44654         * lib/mbsstr.c: Likewise.
44655         * lib/mbstok_r.c: Likewise.
44656         * lib/mbswidth.c: Likewise.
44657         * lib/mbswidth.h: Likewise.
44658         * lib/mbuiter.h: Likewise.
44659         * lib/memcasecmp.c: Likewise.
44660         * lib/memcasecmp.h: Likewise.
44661         * lib/memchr.c: Likewise.
44662         * lib/memcmp.c: Likewise.
44663         * lib/memcoll.c: Likewise.
44664         * lib/memcoll.h: Likewise.
44665         * lib/memcpy.c: Likewise.
44666         * lib/memrchr.c: Likewise.
44667         * lib/mkancesdirs.c: Likewise.
44668         * lib/mkdir-p.c: Likewise.
44669         * lib/mkdir-p.h: Likewise.
44670         * lib/mkdir.c: Likewise.
44671         * lib/mkdirat.c: Likewise.
44672         * lib/mkdtemp.c: Likewise.
44673         * lib/mkstemp-safer.c: Likewise.
44674         * lib/mkstemp.c: Likewise.
44675         * lib/modechange.c: Likewise.
44676         * lib/modechange.h: Likewise.
44677         * lib/mountlist.c: Likewise.
44678         * lib/mountlist.h: Likewise.
44679         * lib/mpsort.c: Likewise.
44680         * lib/nanosleep.c: Likewise.
44681         * lib/obstack.c: Likewise.
44682         * lib/obstack.h: Likewise.
44683         * lib/open-safer.c: Likewise.
44684         * lib/open.c: Likewise.
44685         * lib/openat-die.c: Likewise.
44686         * lib/openat-priv.h: Likewise.
44687         * lib/openat-proc.c: Likewise.
44688         * lib/openat.c: Likewise.
44689         * lib/openat.h: Likewise.
44690         * lib/pagealign_alloc.c: Likewise.
44691         * lib/pagealign_alloc.h: Likewise.
44692         * lib/physmem.c: Likewise.
44693         * lib/physmem.h: Likewise.
44694         * lib/pipe-safer.c: Likewise.
44695         * lib/pipe.c: Likewise.
44696         * lib/pipe.h: Likewise.
44697         * lib/posixtm.c: Likewise.
44698         * lib/posixtm.h: Likewise.
44699         * lib/posixver.c: Likewise.
44700         * lib/printf-frexp.c: Likewise.
44701         * lib/printf-frexp.h: Likewise.
44702         * lib/printf-frexpl.c: Likewise.
44703         * lib/printf-frexpl.h: Likewise.
44704         * lib/printf.c: Likewise.
44705         * lib/progname.c: Likewise.
44706         * lib/progname.h: Likewise.
44707         * lib/progreloc.c: Likewise.
44708         * lib/putenv.c: Likewise.
44709         * lib/quote.c: Likewise.
44710         * lib/quote.h: Likewise.
44711         * lib/quotearg.c: Likewise.
44712         * lib/quotearg.h: Likewise.
44713         * lib/raise.c: Likewise.
44714         * lib/readline.c: Likewise.
44715         * lib/readline.h: Likewise.
44716         * lib/readlink.c: Likewise.
44717         * lib/readtokens.c: Likewise.
44718         * lib/readtokens.h: Likewise.
44719         * lib/readtokens0.c: Likewise.
44720         * lib/readtokens0.h: Likewise.
44721         * lib/readutmp.c: Likewise.
44722         * lib/readutmp.h: Likewise.
44723         * lib/realloc.c: Likewise.
44724         * lib/relocwrapper.c: Likewise.
44725         * lib/rename-dest-slash.c: Likewise.
44726         * lib/rename.c: Likewise.
44727         * lib/rmdir.c: Likewise.
44728         * lib/rpmatch.c: Likewise.
44729         * lib/safe-read.c: Likewise.
44730         * lib/safe-read.h: Likewise.
44731         * lib/safe-write.c: Likewise.
44732         * lib/safe-write.h: Likewise.
44733         * lib/same-inode.h: Likewise.
44734         * lib/same.c: Likewise.
44735         * lib/same.h: Likewise.
44736         * lib/save-cwd.c: Likewise.
44737         * lib/save-cwd.h: Likewise.
44738         * lib/savedir.c: Likewise.
44739         * lib/savedir.h: Likewise.
44740         * lib/savewd.c: Likewise.
44741         * lib/savewd.h: Likewise.
44742         * lib/search.in.h: Likewise.
44743         * lib/setenv.c: Likewise.
44744         * lib/setenv.h: Likewise.
44745         * lib/settime.c: Likewise.
44746         * lib/sh-quote.c: Likewise.
44747         * lib/sh-quote.h: Likewise.
44748         * lib/sig2str.c: Likewise.
44749         * lib/sig2str.h: Likewise.
44750         * lib/signal.in.h: Likewise.
44751         * lib/signbitd.c: Likewise.
44752         * lib/signbitf.c: Likewise.
44753         * lib/signbitl.c: Likewise.
44754         * lib/sigprocmask.c: Likewise.
44755         * lib/sincosl.c: Likewise.
44756         * lib/sleep.c: Likewise.
44757         * lib/sprintf.c: Likewise.
44758         * lib/sqrtl.c: Likewise.
44759         * lib/stat-time.h: Likewise.
44760         * lib/stdio--.h: Likewise.
44761         * lib/stdio-safer.h: Likewise.
44762         * lib/stdlib--.h: Likewise.
44763         * lib/stdlib-safer.h: Likewise.
44764         * lib/stdlib.in.h: Likewise.
44765         * lib/stpcpy.c: Likewise.
44766         * lib/stpncpy.c: Likewise.
44767         * lib/strchrnul.c: Likewise.
44768         * lib/strcspn.c: Likewise.
44769         * lib/strerror.c: Likewise.
44770         * lib/strftime.c: Likewise.
44771         * lib/strftime.h: Likewise.
44772         * lib/striconveh.c: Likewise.
44773         * lib/striconveh.h: Likewise.
44774         * lib/striconveha.c: Likewise.
44775         * lib/striconveha.h: Likewise.
44776         * lib/stripslash.c: Likewise.
44777         * lib/strnlen1.c: Likewise.
44778         * lib/strnlen1.h: Likewise.
44779         * lib/strtod.c: Likewise.
44780         * lib/strtoimax.c: Likewise.
44781         * lib/strtok_r.c: Likewise.
44782         * lib/strtol.c: Likewise.
44783         * lib/strtoll.c: Likewise.
44784         * lib/strtoul.c: Likewise.
44785         * lib/strtoull.c: Likewise.
44786         * lib/sysexits.in.h: Likewise.
44787         * lib/tempname.c: Likewise.
44788         * lib/tempname.h: Likewise.
44789         * lib/timespec.h: Likewise.
44790         * lib/tls.c: Likewise.
44791         * lib/tls.h: Likewise.
44792         * lib/tmpdir.c: Likewise.
44793         * lib/tmpdir.h: Likewise.
44794         * lib/tmpfile-safer.c: Likewise.
44795         * lib/tmpfile.c: Likewise.
44796         * lib/trigl.c: Likewise.
44797         * lib/trigl.h: Likewise.
44798         * lib/trim.c: Likewise.
44799         * lib/trim.h: Likewise.
44800         * lib/trunc.c: Likewise.
44801         * lib/truncf.c: Likewise.
44802         * lib/truncl.c: Likewise.
44803         * lib/tsearch.c: Likewise.
44804         * lib/unicodeio.c: Likewise.
44805         * lib/unicodeio.h: Likewise.
44806         * lib/unistd--.h: Likewise.
44807         * lib/unistd-safer.h: Likewise.
44808         * lib/unistdio/ulc-fprintf.c: Likewise.
44809         * lib/unistdio/ulc-vfprintf.c: Likewise.
44810         * lib/unlinkdir.c: Likewise.
44811         * lib/unlinkdir.h: Likewise.
44812         * lib/unlocked-io.h: Likewise.
44813         * lib/unsetenv.c: Likewise.
44814         * lib/userspec.c: Likewise.
44815         * lib/utime.c: Likewise.
44816         * lib/utimecmp.c: Likewise.
44817         * lib/utimecmp.h: Likewise.
44818         * lib/utimens.c: Likewise.
44819         * lib/verify.h: Likewise.
44820         * lib/verror.c: Likewise.
44821         * lib/verror.h: Likewise.
44822         * lib/version-etc-fsf.c: Likewise.
44823         * lib/version-etc.c: Likewise.
44824         * lib/version-etc.h: Likewise.
44825         * lib/vfprintf.c: Likewise.
44826         * lib/vprintf.c: Likewise.
44827         * lib/vsprintf.c: Likewise.
44828         * lib/w32spawn.h: Likewise.
44829         * lib/wait-process.c: Likewise.
44830         * lib/wait-process.h: Likewise.
44831         * lib/wcwidth.c: Likewise.
44832         * lib/write-any-file.c: Likewise.
44833         * lib/xalloc-die.c: Likewise.
44834         * lib/xalloc.h: Likewise.
44835         * lib/xasprintf.c: Likewise.
44836         * lib/xgetcwd.c: Likewise.
44837         * lib/xgetcwd.h: Likewise.
44838         * lib/xgetdomainname.c: Likewise.
44839         * lib/xgetdomainname.h: Likewise.
44840         * lib/xgethostname.c: Likewise.
44841         * lib/xmalloc.c: Likewise.
44842         * lib/xmalloca.c: Likewise.
44843         * lib/xmalloca.h: Likewise.
44844         * lib/xmemcoll.c: Likewise.
44845         * lib/xnanosleep.c: Likewise.
44846         * lib/xreadlink.c: Likewise.
44847         * lib/xreadlink.h: Likewise.
44848         * lib/xsetenv.c: Likewise.
44849         * lib/xsetenv.h: Likewise.
44850         * lib/xstriconv.c: Likewise.
44851         * lib/xstriconv.h: Likewise.
44852         * lib/xstrndup.c: Likewise.
44853         * lib/xstrndup.h: Likewise.
44854         * lib/xstrtod.c: Likewise.
44855         * lib/xstrtod.h: Likewise.
44856         * lib/xstrtol-error.c: Likewise.
44857         * lib/xstrtol.c: Likewise.
44858         * lib/xstrtol.h: Likewise.
44859         * lib/xtime.h: Likewise.
44860         * lib/xvasprintf.c: Likewise.
44861         * lib/xvasprintf.h: Likewise.
44862         * lib/yesno.c: Likewise.
44863         * lib/yesno.h: Likewise.
44864         * posix-modules: Likewise.
44865         * tests/test-alloca-opt.c: Likewise.
44866         * tests/test-arcfour.c: Likewise.
44867         * tests/test-arctwo.c: Likewise.
44868         * tests/test-argmatch.c: Likewise.
44869         * tests/test-argp-2.sh: Likewise.
44870         * tests/test-argp.c: Likewise.
44871         * tests/test-arpa_inet.c: Likewise.
44872         * tests/test-array_list.c: Likewise.
44873         * tests/test-array_oset.c: Likewise.
44874         * tests/test-atexit.c: Likewise.
44875         * tests/test-avltree_list.c: Likewise.
44876         * tests/test-avltree_oset.c: Likewise.
44877         * tests/test-avltreehash_list.c: Likewise.
44878         * tests/test-base64.c: Likewise.
44879         * tests/test-binary-io.c: Likewise.
44880         * tests/test-byteswap.c: Likewise.
44881         * tests/test-c-ctype.c: Likewise.
44882         * tests/test-c-strcasecmp.c: Likewise.
44883         * tests/test-c-strcasestr.c: Likewise.
44884         * tests/test-c-strncasecmp.c: Likewise.
44885         * tests/test-c-strstr.c: Likewise.
44886         * tests/test-canonicalize-lgpl.c: Likewise.
44887         * tests/test-canonicalize.c: Likewise.
44888         * tests/test-carray_list.c: Likewise.
44889         * tests/test-ceilf.c: Likewise.
44890         * tests/test-ceill.c: Likewise.
44891         * tests/test-count-one-bits.c: Likewise.
44892         * tests/test-crc.c: Likewise.
44893         * tests/test-dirname.c: Likewise.
44894         * tests/test-fbufmode.c: Likewise.
44895         * tests/test-fcntl.c: Likewise.
44896         * tests/test-fflush.c: Likewise.
44897         * tests/test-floorf.c: Likewise.
44898         * tests/test-floorl.c: Likewise.
44899         * tests/test-fopen.c: Likewise.
44900         * tests/test-fprintf-posix.c: Likewise.
44901         * tests/test-fprintf-posix.h: Likewise.
44902         * tests/test-fpurge.c: Likewise.
44903         * tests/test-freadable.c: Likewise.
44904         * tests/test-freadahead.c: Likewise.
44905         * tests/test-freading.c: Likewise.
44906         * tests/test-freopen.c: Likewise.
44907         * tests/test-frexp.c: Likewise.
44908         * tests/test-frexpl.c: Likewise.
44909         * tests/test-fseek.c: Likewise.
44910         * tests/test-fseeko.c: Likewise.
44911         * tests/test-fseterr.c: Likewise.
44912         * tests/test-fstrcmp.c: Likewise.
44913         * tests/test-ftell.c: Likewise.
44914         * tests/test-ftello.c: Likewise.
44915         * tests/test-fwritable.c: Likewise.
44916         * tests/test-fwriting.c: Likewise.
44917         * tests/test-getaddrinfo.c: Likewise.
44918         * tests/test-getpass.c: Likewise.
44919         * tests/test-gettimeofday.c: Likewise.
44920         * tests/test-hmac-md5.c: Likewise.
44921         * tests/test-hmac-sha1.c: Likewise.
44922         * tests/test-iconv.c: Likewise.
44923         * tests/test-iconvme.c: Likewise.
44924         * tests/test-inttypes.c: Likewise.
44925         * tests/test-isnan.c: Likewise.
44926         * tests/test-isnanf.c: Likewise.
44927         * tests/test-isnanl-nolibm.c: Likewise.
44928         * tests/test-isnanl.c: Likewise.
44929         * tests/test-isnanl.h: Likewise.
44930         * tests/test-ldexpl.c: Likewise.
44931         * tests/test-linked_list.c: Likewise.
44932         * tests/test-linkedhash_list.c: Likewise.
44933         * tests/test-locale.c: Likewise.
44934         * tests/test-localename.c: Likewise.
44935         * tests/test-lock.c: Likewise.
44936         * tests/test-lseek.c: Likewise.
44937         * tests/test-malloca.c: Likewise.
44938         * tests/test-math.c: Likewise.
44939         * tests/test-mbscasecmp.c: Likewise.
44940         * tests/test-mbscasestr1.c: Likewise.
44941         * tests/test-mbscasestr2.c: Likewise.
44942         * tests/test-mbscasestr3.c: Likewise.
44943         * tests/test-mbscasestr4.c: Likewise.
44944         * tests/test-mbschr.c: Likewise.
44945         * tests/test-mbscspn.c: Likewise.
44946         * tests/test-mbsncasecmp.c: Likewise.
44947         * tests/test-mbspbrk.c: Likewise.
44948         * tests/test-mbspcasecmp.c: Likewise.
44949         * tests/test-mbsrchr.c: Likewise.
44950         * tests/test-mbsspn.c: Likewise.
44951         * tests/test-mbsstr1.c: Likewise.
44952         * tests/test-mbsstr2.c: Likewise.
44953         * tests/test-mbsstr3.c: Likewise.
44954         * tests/test-md5.c: Likewise.
44955         * tests/test-memmem.c: Likewise.
44956         * tests/test-netinet_in.c: Likewise.
44957         * tests/test-open.c: Likewise.
44958         * tests/test-printf-frexp.c: Likewise.
44959         * tests/test-printf-frexpl.c: Likewise.
44960         * tests/test-printf-posix.c: Likewise.
44961         * tests/test-printf-posix.h: Likewise.
44962         * tests/test-rbtree_list.c: Likewise.
44963         * tests/test-rbtree_oset.c: Likewise.
44964         * tests/test-rbtreehash_list.c: Likewise.
44965         * tests/test-read-file.c: Likewise.
44966         * tests/test-rijndael.c: Likewise.
44967         * tests/test-search.c: Likewise.
44968         * tests/test-signbit.c: Likewise.
44969         * tests/test-sleep.c: Likewise.
44970         * tests/test-snprintf-posix.c: Likewise.
44971         * tests/test-snprintf-posix.h: Likewise.
44972         * tests/test-snprintf.c: Likewise.
44973         * tests/test-sprintf-posix.c: Likewise.
44974         * tests/test-sprintf-posix.h: Likewise.
44975         * tests/test-stat-time.c: Likewise.
44976         * tests/test-stdbool.c: Likewise.
44977         * tests/test-stdint.c: Likewise.
44978         * tests/test-stdio.c: Likewise.
44979         * tests/test-stdlib.c: Likewise.
44980         * tests/test-stpncpy.c: Likewise.
44981         * tests/test-strcasestr.c: Likewise.
44982         * tests/test-striconv.c: Likewise.
44983         * tests/test-striconveh.c: Likewise.
44984         * tests/test-striconveha.c: Likewise.
44985         * tests/test-string.c: Likewise.
44986         * tests/test-sys_select.c: Likewise.
44987         * tests/test-sys_socket.c: Likewise.
44988         * tests/test-sys_stat.c: Likewise.
44989         * tests/test-sys_time.c: Likewise.
44990         * tests/test-sysexits.c: Likewise.
44991         * tests/test-time.c: Likewise.
44992         * tests/test-tls.c: Likewise.
44993         * tests/test-trunc.c: Likewise.
44994         * tests/test-truncf.c: Likewise.
44995         * tests/test-truncl.c: Likewise.
44996         * tests/test-unistd.c: Likewise.
44997         * tests/test-vasnprintf-posix.c: Likewise.
44998         * tests/test-vasnprintf-posix2.c: Likewise.
44999         * tests/test-vasnprintf.c: Likewise.
45000         * tests/test-vasprintf-posix.c: Likewise.
45001         * tests/test-vasprintf.c: Likewise.
45002         * tests/test-verify.c: Likewise.
45003         * tests/test-vfprintf-posix.c: Likewise.
45004         * tests/test-vprintf-posix.c: Likewise.
45005         * tests/test-vsnprintf-posix.c: Likewise.
45006         * tests/test-vsnprintf.c: Likewise.
45007         * tests/test-vsprintf-posix.c: Likewise.
45008         * tests/test-wchar.c: Likewise.
45009         * tests/test-wctype.c: Likewise.
45010         * tests/test-wcwidth.c: Likewise.
45011         * tests/test-xstrtol.c: Likewise.
45012         * tests/test-xvasprintf.c: Likewise.
45013         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45014         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45015         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45016         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45017         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45018         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45019         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45020         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45021         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45022         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45023         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45024         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45025         * tests/uniname/test-uninames.c: Likewise.
45026         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45027         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45028         * tests/unistdio/test-u16-printf1.h: Likewise.
45029         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45030         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45031         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45032         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45033         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45034         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45035         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45036         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45037         * tests/unistdio/test-u32-printf1.h: Likewise.
45038         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45039         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45040         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45041         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45042         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45043         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45044         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45045         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45046         * tests/unistdio/test-u8-printf1.h: Likewise.
45047         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45048         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45049         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45050         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45051         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45052         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45053         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45054         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45055         * tests/unistdio/test-ulc-printf1.h: Likewise.
45056         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45057         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45058         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45059         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45060         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45061         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45062         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45063         * tests/uniwidth/test-u16-width.c: Likewise.
45064         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45065         * tests/uniwidth/test-u32-width.c: Likewise.
45066         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45067         * tests/uniwidth/test-u8-width.c: Likewise.
45068         * tests/uniwidth/test-uc_width.c: Likewise.
45069         * config/srclist-update: Likewise.
45070         (fixlicense): Update to GPLv3+.
45071
45072         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45073         * tests/test-tsearch.c: Change copyright notice.
45074
45075         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45076         * lib/c-strcaseeq.h: Change copyright notice.
45077         * lib/streq.h: Likewise.
45078         * lib/uniconv.h: Likewise.
45079         * lib/uniconv/u-conv-from-enc.h: Likewise.
45080         * lib/uniconv/u-conv-to-enc.h: Likewise.
45081         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45082         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45083         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45084         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45085         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45086         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45087         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45088         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45089         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45090         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45091         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45092         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45093         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45094         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45095         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45096         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45097         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45098         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45099         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45100         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45101         * lib/uniname.h: Likewise.
45102         * lib/uniname/uniname.c: Likewise.
45103         * lib/unistdio.h: Likewise.
45104         * lib/unistdio/u-asnprintf.h: Likewise.
45105         * lib/unistdio/u-asprintf.h: Likewise.
45106         * lib/unistdio/u-printf-args.c: Likewise.
45107         * lib/unistdio/u-printf-args.h: Likewise.
45108         * lib/unistdio/u-printf-parse.h: Likewise.
45109         * lib/unistdio/u-snprintf.h: Likewise.
45110         * lib/unistdio/u-sprintf.h: Likewise.
45111         * lib/unistdio/u-vasprintf.h: Likewise.
45112         * lib/unistdio/u-vsnprintf.h: Likewise.
45113         * lib/unistdio/u-vsprintf.h: Likewise.
45114         * lib/unistdio/u16-asnprintf.c: Likewise.
45115         * lib/unistdio/u16-asprintf.c: Likewise.
45116         * lib/unistdio/u16-printf-parse.c: Likewise.
45117         * lib/unistdio/u16-snprintf.c: Likewise.
45118         * lib/unistdio/u16-sprintf.c: Likewise.
45119         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45120         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45121         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45122         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45123         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45124         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45125         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45126         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45127         * lib/unistdio/u16-vasnprintf.c: Likewise.
45128         * lib/unistdio/u16-vasprintf.c: Likewise.
45129         * lib/unistdio/u16-vsnprintf.c: Likewise.
45130         * lib/unistdio/u16-vsprintf.c: Likewise.
45131         * lib/unistdio/u32-asnprintf.c: Likewise.
45132         * lib/unistdio/u32-asprintf.c: Likewise.
45133         * lib/unistdio/u32-printf-parse.c: Likewise.
45134         * lib/unistdio/u32-snprintf.c: Likewise.
45135         * lib/unistdio/u32-sprintf.c: Likewise.
45136         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45137         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45138         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45139         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45140         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45141         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45142         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45143         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45144         * lib/unistdio/u32-vasnprintf.c: Likewise.
45145         * lib/unistdio/u32-vasprintf.c: Likewise.
45146         * lib/unistdio/u32-vsnprintf.c: Likewise.
45147         * lib/unistdio/u32-vsprintf.c: Likewise.
45148         * lib/unistdio/u8-asnprintf.c: Likewise.
45149         * lib/unistdio/u8-asprintf.c: Likewise.
45150         * lib/unistdio/u8-printf-parse.c: Likewise.
45151         * lib/unistdio/u8-snprintf.c: Likewise.
45152         * lib/unistdio/u8-sprintf.c: Likewise.
45153         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45154         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45155         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45156         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45157         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45158         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45159         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45160         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45161         * lib/unistdio/u8-vasnprintf.c: Likewise.
45162         * lib/unistdio/u8-vasprintf.c: Likewise.
45163         * lib/unistdio/u8-vsnprintf.c: Likewise.
45164         * lib/unistdio/u8-vsprintf.c: Likewise.
45165         * lib/unistdio/ulc-asnprintf.c: Likewise.
45166         * lib/unistdio/ulc-asprintf.c: Likewise.
45167         * lib/unistdio/ulc-printf-parse.c: Likewise.
45168         * lib/unistdio/ulc-snprintf.c: Likewise.
45169         * lib/unistdio/ulc-sprintf.c: Likewise.
45170         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45171         * lib/unistdio/ulc-vasprintf.c: Likewise.
45172         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45173         * lib/unistdio/ulc-vsprintf.c: Likewise.
45174         * lib/unistr.h: Likewise.
45175         * lib/unistr/u-cpy-alloc.h: Likewise.
45176         * lib/unistr/u-cpy.h: Likewise.
45177         * lib/unistr/u-endswith.h: Likewise.
45178         * lib/unistr/u-move.h: Likewise.
45179         * lib/unistr/u-set.h: Likewise.
45180         * lib/unistr/u-startswith.h: Likewise.
45181         * lib/unistr/u-stpcpy.h: Likewise.
45182         * lib/unistr/u-stpncpy.h: Likewise.
45183         * lib/unistr/u-strcat.h: Likewise.
45184         * lib/unistr/u-strcpy.h: Likewise.
45185         * lib/unistr/u-strcspn.h: Likewise.
45186         * lib/unistr/u-strdup.h: Likewise.
45187         * lib/unistr/u-strlen.h: Likewise.
45188         * lib/unistr/u-strncat.h: Likewise.
45189         * lib/unistr/u-strncpy.h: Likewise.
45190         * lib/unistr/u-strnlen.h: Likewise.
45191         * lib/unistr/u-strpbrk.h: Likewise.
45192         * lib/unistr/u-strspn.h: Likewise.
45193         * lib/unistr/u-strstr.h: Likewise.
45194         * lib/unistr/u-strtok.h: Likewise.
45195         * lib/unistr/u16-check.c: Likewise.
45196         * lib/unistr/u16-chr.c: Likewise.
45197         * lib/unistr/u16-cmp.c: Likewise.
45198         * lib/unistr/u16-cpy-alloc.c: Likewise.
45199         * lib/unistr/u16-cpy.c: Likewise.
45200         * lib/unistr/u16-endswith.c: Likewise.
45201         * lib/unistr/u16-mblen.c: Likewise.
45202         * lib/unistr/u16-mbsnlen.c: Likewise.
45203         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45204         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45205         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45206         * lib/unistr/u16-mbtouc.c: Likewise.
45207         * lib/unistr/u16-mbtoucr.c: Likewise.
45208         * lib/unistr/u16-move.c: Likewise.
45209         * lib/unistr/u16-next.c: Likewise.
45210         * lib/unistr/u16-prev.c: Likewise.
45211         * lib/unistr/u16-set.c: Likewise.
45212         * lib/unistr/u16-startswith.c: Likewise.
45213         * lib/unistr/u16-stpcpy.c: Likewise.
45214         * lib/unistr/u16-stpncpy.c: Likewise.
45215         * lib/unistr/u16-strcat.c: Likewise.
45216         * lib/unistr/u16-strchr.c: Likewise.
45217         * lib/unistr/u16-strcmp.c: Likewise.
45218         * lib/unistr/u16-strcpy.c: Likewise.
45219         * lib/unistr/u16-strcspn.c: Likewise.
45220         * lib/unistr/u16-strdup.c: Likewise.
45221         * lib/unistr/u16-strlen.c: Likewise.
45222         * lib/unistr/u16-strmblen.c: Likewise.
45223         * lib/unistr/u16-strmbtouc.c: Likewise.
45224         * lib/unistr/u16-strncat.c: Likewise.
45225         * lib/unistr/u16-strncmp.c: Likewise.
45226         * lib/unistr/u16-strncpy.c: Likewise.
45227         * lib/unistr/u16-strnlen.c: Likewise.
45228         * lib/unistr/u16-strpbrk.c: Likewise.
45229         * lib/unistr/u16-strrchr.c: Likewise.
45230         * lib/unistr/u16-strspn.c: Likewise.
45231         * lib/unistr/u16-strstr.c: Likewise.
45232         * lib/unistr/u16-strtok.c: Likewise.
45233         * lib/unistr/u16-to-u32.c: Likewise.
45234         * lib/unistr/u16-to-u8.c: Likewise.
45235         * lib/unistr/u16-uctomb-aux.c: Likewise.
45236         * lib/unistr/u16-uctomb.c: Likewise.
45237         * lib/unistr/u32-check.c: Likewise.
45238         * lib/unistr/u32-chr.c: Likewise.
45239         * lib/unistr/u32-cmp.c: Likewise.
45240         * lib/unistr/u32-cpy-alloc.c: Likewise.
45241         * lib/unistr/u32-cpy.c: Likewise.
45242         * lib/unistr/u32-endswith.c: Likewise.
45243         * lib/unistr/u32-mblen.c: Likewise.
45244         * lib/unistr/u32-mbsnlen.c: Likewise.
45245         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45246         * lib/unistr/u32-mbtouc.c: Likewise.
45247         * lib/unistr/u32-mbtoucr.c: Likewise.
45248         * lib/unistr/u32-move.c: Likewise.
45249         * lib/unistr/u32-next.c: Likewise.
45250         * lib/unistr/u32-prev.c: Likewise.
45251         * lib/unistr/u32-set.c: Likewise.
45252         * lib/unistr/u32-startswith.c: Likewise.
45253         * lib/unistr/u32-stpcpy.c: Likewise.
45254         * lib/unistr/u32-stpncpy.c: Likewise.
45255         * lib/unistr/u32-strcat.c: Likewise.
45256         * lib/unistr/u32-strchr.c: Likewise.
45257         * lib/unistr/u32-strcmp.c: Likewise.
45258         * lib/unistr/u32-strcpy.c: Likewise.
45259         * lib/unistr/u32-strcspn.c: Likewise.
45260         * lib/unistr/u32-strdup.c: Likewise.
45261         * lib/unistr/u32-strlen.c: Likewise.
45262         * lib/unistr/u32-strmblen.c: Likewise.
45263         * lib/unistr/u32-strmbtouc.c: Likewise.
45264         * lib/unistr/u32-strncat.c: Likewise.
45265         * lib/unistr/u32-strncmp.c: Likewise.
45266         * lib/unistr/u32-strncpy.c: Likewise.
45267         * lib/unistr/u32-strnlen.c: Likewise.
45268         * lib/unistr/u32-strpbrk.c: Likewise.
45269         * lib/unistr/u32-strrchr.c: Likewise.
45270         * lib/unistr/u32-strspn.c: Likewise.
45271         * lib/unistr/u32-strstr.c: Likewise.
45272         * lib/unistr/u32-strtok.c: Likewise.
45273         * lib/unistr/u32-to-u16.c: Likewise.
45274         * lib/unistr/u32-to-u8.c: Likewise.
45275         * lib/unistr/u32-uctomb.c: Likewise.
45276         * lib/unistr/u8-check.c: Likewise.
45277         * lib/unistr/u8-chr.c: Likewise.
45278         * lib/unistr/u8-cmp.c: Likewise.
45279         * lib/unistr/u8-cpy-alloc.c: Likewise.
45280         * lib/unistr/u8-cpy.c: Likewise.
45281         * lib/unistr/u8-endswith.c: Likewise.
45282         * lib/unistr/u8-mblen.c: Likewise.
45283         * lib/unistr/u8-mbsnlen.c: Likewise.
45284         * lib/unistr/u8-mbtouc-aux.c: Likewise.
45285         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45286         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45287         * lib/unistr/u8-mbtouc.c: Likewise.
45288         * lib/unistr/u8-mbtoucr.c: Likewise.
45289         * lib/unistr/u8-move.c: Likewise.
45290         * lib/unistr/u8-next.c: Likewise.
45291         * lib/unistr/u8-prev.c: Likewise.
45292         * lib/unistr/u8-set.c: Likewise.
45293         * lib/unistr/u8-startswith.c: Likewise.
45294         * lib/unistr/u8-stpcpy.c: Likewise.
45295         * lib/unistr/u8-stpncpy.c: Likewise.
45296         * lib/unistr/u8-strcat.c: Likewise.
45297         * lib/unistr/u8-strchr.c: Likewise.
45298         * lib/unistr/u8-strcmp.c: Likewise.
45299         * lib/unistr/u8-strcpy.c: Likewise.
45300         * lib/unistr/u8-strcspn.c: Likewise.
45301         * lib/unistr/u8-strdup.c: Likewise.
45302         * lib/unistr/u8-strlen.c: Likewise.
45303         * lib/unistr/u8-strmblen.c: Likewise.
45304         * lib/unistr/u8-strmbtouc.c: Likewise.
45305         * lib/unistr/u8-strncat.c: Likewise.
45306         * lib/unistr/u8-strncmp.c: Likewise.
45307         * lib/unistr/u8-strncpy.c: Likewise.
45308         * lib/unistr/u8-strnlen.c: Likewise.
45309         * lib/unistr/u8-strpbrk.c: Likewise.
45310         * lib/unistr/u8-strrchr.c: Likewise.
45311         * lib/unistr/u8-strspn.c: Likewise.
45312         * lib/unistr/u8-strstr.c: Likewise.
45313         * lib/unistr/u8-strtok.c: Likewise.
45314         * lib/unistr/u8-to-u16.c: Likewise.
45315         * lib/unistr/u8-to-u32.c: Likewise.
45316         * lib/unistr/u8-uctomb-aux.c: Likewise.
45317         * lib/unistr/u8-uctomb.c: Likewise.
45318         * lib/unitypes.h: Likewise.
45319         * lib/uniwidth.h: Likewise.
45320         * lib/uniwidth/cjk.h: Likewise.
45321         * lib/uniwidth/u16-strwidth.c: Likewise.
45322         * lib/uniwidth/u16-width.c: Likewise.
45323         * lib/uniwidth/u32-strwidth.c: Likewise.
45324         * lib/uniwidth/u32-width.c: Likewise.
45325         * lib/uniwidth/u8-strwidth.c: Likewise.
45326         * lib/uniwidth/u8-width.c: Likewise.
45327         * lib/uniwidth/width.c: Likewise.
45328
45329 2007-10-07  Bruno Haible  <bruno@clisp.org>
45330
45331         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
45332         The file is still under LGPL (see modules/inttypes).
45333
45334 2007-10-06  Bruno Haible  <bruno@clisp.org>
45335
45336         * modules/trunc (Dependencies): Add 'extensions'.
45337         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
45338         Reported by Ben Pfaff <blp@gnu.org>.
45339
45340 2007-10-06  Bruno Haible  <bruno@clisp.org>
45341
45342         * modules/freopen-tests: New file.
45343         * tests/test-freopen.c: New file.
45344
45345         * modules/fopen-tests: New file.
45346         * tests/test-fopen.c: New file.
45347
45348         * modules/fopen: New file.
45349         * lib/fopen.c: New file.
45350         * m4/fopen.m4: New file.
45351         * modules/freopen: New file.
45352         * lib/freopen.c: New file.
45353         * m4/freopen.m4: New file.
45354         * lib/stdio.in.h (fopen, freopen): New declarations.
45355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
45356         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45357         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
45358         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
45359         * doc/functions/fopen.texi: Mention the 'fopen' module.
45360         * doc/functions/freopen.texi: Mention the 'freopen' module.
45361
45362 2007-10-06  Bruno Haible  <bruno@clisp.org>
45363
45364         * modules/open-tests: New file.
45365         * tests/test-open.c: New file.
45366
45367         * modules/open: New file.
45368         * lib/open.c: New file.
45369         * m4/open.m4: New file.
45370         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
45371         lib/open.c does.
45372         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
45373         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
45374         macros.
45375         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
45376         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
45377         REPLACE_OPEN.
45378         * doc/functions/open.texi: Mention the 'open' module.
45379
45380 2007-10-04  Bruno Haible  <bruno@clisp.org>
45381
45382         * modules/ceill-tests: New file.
45383         * tests/test-ceill.c: New file.
45384
45385         * modules/ceill: New file.
45386         * lib/ceill.c: Replace entire file.
45387         * m4/ceill.m4: New file.
45388         * lib/math.in.h (ceill): Replace declaration.
45389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
45390         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
45391         * doc/functions/ceill.texi: Mention the 'ceill' module.
45392         * modules/mathl (Files): Remove lib/ceill.c.
45393         (Depends-on): Add ceill.
45394
45395 2007-10-04  Bruno Haible  <bruno@clisp.org>
45396
45397         * modules/ceilf-tests: New file.
45398         * tests/test-ceilf.c: New file.
45399
45400         * modules/ceilf: New file.
45401         * lib/ceil.c: New file.
45402         * lib/ceilf.c: New file.
45403         * m4/ceilf.m4: New file.
45404         * lib/math.in.h (ceilf): New declaration.
45405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
45406         HAVE_DECL_CEILF.
45407         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
45408         HAVE_DECL_CEILF.
45409         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
45410
45411 2007-10-04  Bruno Haible  <bruno@clisp.org>
45412
45413         * modules/floorl-tests: New file.
45414         * tests/test-floorl.c: New file.
45415
45416         * modules/floorl: New file.
45417         * lib/floorl.c: Replace entire file.
45418         * m4/floorl.m4: New file.
45419         * lib/math.in.h (floorl): Replace declaration.
45420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
45421         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
45422         * doc/functions/floorl.texi: Mention the 'floorl' module.
45423         * modules/mathl (Files): Remove lib/floorl.c.
45424         (Depends-on): Add floorl.
45425
45426 2007-10-04  Bruno Haible  <bruno@clisp.org>
45427
45428         * modules/floorf-tests: New file.
45429         * tests/test-floorf.c: New file.
45430
45431         * modules/floorf: New file.
45432         * lib/floor.c: New file.
45433         * lib/floorf.c: New file.
45434         * m4/floorf.m4: New file.
45435         * lib/math.in.h (floorf): New declaration.
45436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
45437         HAVE_DECL_FLOORF.
45438         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
45439         HAVE_DECL_FLOORF.
45440         * doc/functions/floorf.texi: Mention the 'floorf' module.
45441
45442 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
45443             Bruno Haible  <bruno@clisp.org>
45444
45445         Advertise for the Git server instead of the CVS server.
45446         * doc/gnulib-intro.texi (Steady Development): Mention the Git
45447         repository instead of the CVS one.
45448         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
45449         about all VCS systems generically.
45450         * doc/gnulib.texi (Introduction): Capitalize `Git'.
45451
45452 2007-10-04  Bruno Haible  <bruno@clisp.org>
45453
45454         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
45455         means.
45456         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
45457
45458 2007-10-04  Bruno Haible  <bruno@clisp.org>
45459
45460         * modules/truncl-tests: New file.
45461         * tests/test-truncl.c: New file.
45462
45463         * modules/truncl: New file.
45464         * lib/truncl.c: New file.
45465         * m4/truncl.m4: New file.
45466         * lib/math.in.h (truncl): New declaration.
45467         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
45468         HAVE_DECL_TRUNCL.
45469         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
45470         HAVE_DECL_TRUNCL.
45471         * doc/functions/truncl.texi: Mention the 'truncl' module.
45472
45473 2007-10-04  Bruno Haible  <bruno@clisp.org>
45474
45475         * modules/truncf-tests: New file.
45476         * tests/test-truncf.c: New file.
45477
45478         * modules/truncf: New file.
45479         * lib/trunc.c: Make paramerizable through USE_* macros.
45480         * lib/truncf.c: New file.
45481         * m4/truncf.m4: New file.
45482         * lib/math.in.h (truncf): New declaration.
45483         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
45484         HAVE_DECL_TRUNCF.
45485         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
45486         HAVE_DECL_TRUNCF.
45487         * doc/functions/truncf.texi: Mention the 'truncf' module.
45488
45489 2007-10-03  Bruno Haible  <bruno@clisp.org>
45490
45491         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
45492         augmentation also for tests modules.
45493         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
45494         * modules/atexit-tests (Makefile.am): Likewise.
45495         * modules/binary-io-tests (Makefile.am): Likewise.
45496         * modules/c-strcase-tests (Makefile.am): Likewise.
45497         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
45498         * modules/canonicalize-tests (Makefile.am): Likewise.
45499         * modules/closein-tests (Makefile.am): Likewise.
45500         * modules/fprintf-posix-tests (Makefile.am): Likewise.
45501         * modules/freadahead-tests (Makefile.am): Likewise.
45502         * modules/fseek-tests (Makefile.am): Likewise.
45503         * modules/fseeko-tests (Makefile.am): Likewise.
45504         * modules/ftell-tests (Makefile.am): Likewise.
45505         * modules/ftello-tests (Makefile.am): Likewise.
45506         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
45507         * modules/isnanl-tests (Makefile.am): Likewise.
45508         * modules/lseek-tests (Makefile.am): Likewise.
45509         * modules/mbscasecmp-tests (Makefile.am): Likewise.
45510         * modules/mbscasestr-tests (Makefile.am): Likewise.
45511         * modules/mbschr-tests (Makefile.am): Likewise.
45512         * modules/mbscspn-tests (Makefile.am): Likewise.
45513         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
45514         * modules/mbspbrk-tests (Makefile.am): Likewise.
45515         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
45516         * modules/mbsrchr-tests (Makefile.am): Likewise.
45517         * modules/mbsspn-tests (Makefile.am): Likewise.
45518         * modules/mbsstr-tests (Makefile.am): Likewise.
45519         * modules/printf-posix-tests (Makefile.am): Likewise.
45520         * modules/snprintf-posix-tests (Makefile.am): Likewise.
45521         * modules/sprintf-posix-tests (Makefile.am): Likewise.
45522         * modules/tsearch-tests (Makefile.am): Likewise.
45523         * modules/uniname/uniname-tests (Makefile.am): Likewise.
45524         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
45525         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
45526         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
45527         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
45528         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
45529         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
45530         * modules/vprintf-posix-tests (Makefile.am): Likewise.
45531         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
45532         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
45533         * modules/xstrtoimax-tests (Makefile.am): Likewise.
45534         * modules/xstrtol-tests (Makefile.am): Likewise.
45535         * modules/xstrtoumax-tests (Makefile.am): Likewise.
45536         * modules/yesno-tests (Makefile.am): Likewise.
45537
45538 2007-10-03  Bruno Haible  <bruno@clisp.org>
45539
45540         * modules/trunc-tests: New file.
45541         * tests/test-trunc.c: New file.
45542
45543         * modules/trunc: New file.
45544         * lib/trunc.c: New file.
45545         * m4/trunc.m4: New file.
45546         * lib/math.in.h (trunc): New declaration.
45547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
45548         HAVE_DECL_TRUNC.
45549         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
45550         HAVE_DECL_TRUNC.
45551         * doc/functions/trunc.texi: Mention the 'trunc' module.
45552
45553 2007-10-03  Bruno Haible  <bruno@clisp.org>
45554
45555         * tests/test-fpending.c: New file, mostly copied
45556         from coreutils/lib/t-fpending.c.
45557         * modules/fpending-tests: New file.
45558
45559 2007-10-03  Bruno Haible  <bruno@clisp.org>
45560
45561         Port the stdio extensions to QNX (untested).
45562         * lib/fseterr.c (fseterr): Add support for QNX.
45563         * lib/fbufmode.c (fbufmode): Likewise.
45564         * lib/freadable.c (freadable): Likewise.
45565         * lib/fwritable.c (fwritable): Likewise.
45566         * lib/freading.c (freading): Likewise.
45567         * lib/fwriting.c (fwriting): Likewise.
45568         * lib/freadahead.c (freadahed): Likewise.
45569         * lib/fpurge.c (fpurge): Likewise.
45570         * lib/fseeko.c (rpl_fseeko): Likewise.
45571
45572 2007-10-03  Bruno Haible  <bruno@clisp.org>
45573             Jim Meyering  <jim@meyering.net>
45574             Eric Blake  <ebb9@byu.net>
45575
45576         * doc/relocatable.texi: Use @command instead of @program.
45577
45578 2007-10-02  Jim Meyering  <jim@meyering.net>
45579
45580         Perform one more "_.h" -> ".in.h" substitution.
45581         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
45582         instead of unistd_.h here, too.
45583
45584 2007-10-01  Bruno Haible  <bruno@clisp.org>
45585
45586         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
45587         Needed for the alloca-opt module.
45588
45589 2007-09-30  Bruno Haible  <bruno@clisp.org>
45590
45591         * lib/alloca.in.h: Renamed from lib/alloca_.h.
45592         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
45593         alloca_.h.
45594         * lib/argz.in.h: Renamed from lib/argz_.h.
45595         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
45596         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
45597         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
45598         byteswap_.h.
45599         * lib/dirent.in.h: Renamed from lib/dirent_.h.
45600         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
45601         dirent_.h.
45602         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
45603         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
45604         fcntl_.h.
45605         * lib/float.in.h: Renamed from lib/float_.h.
45606         * modules/float (Files, Makefile.am): Use float.in.h instead of
45607         float_.h.
45608         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
45609         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
45610         fnmatch_.h.
45611         * lib/getopt.in.h: Renamed from lib/getopt_.h.
45612         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
45613         getopt_.h.
45614         * lib/glob.in.h: Renamed from lib/glob_.h.
45615         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
45616         * lib/iconv.in.h: Renamed from lib/iconv_.h.
45617         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
45618         iconv_.h.
45619         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
45620         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
45621         inttypes_.h.
45622         * lib/locale.in.h: Renamed from lib/locale_.h.
45623         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
45624         locale_.h.
45625         * lib/math.in.h: Renamed from lib/math_.h.
45626         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
45627         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
45628         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
45629         of netinet_in_.h. Add dependency.
45630         * lib/poll.in.h: Renamed from lib/poll_.h.
45631         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
45632         * lib/search.in.h: Renamed from lib/search_.h.
45633         * modules/search (Files, Makefile.am): Use search.in.h instead of
45634         search_.h.
45635         * lib/signal.in.h: Renamed from lib/signal_.h.
45636         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
45637         _signal.h.
45638         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
45639         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
45640         stdbool_.h.
45641         * lib/stdint.in.h: Renamed from lib/stdint_.h.
45642         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
45643         stdint_.h.
45644         * lib/stdio.in.h: Renamed from lib/stdio_.h.
45645         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
45646         stdio_.h.
45647         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
45648         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
45649         stdlib_.h.
45650         * lib/string.in.h: Renamed from lib/string_.h.
45651         * modules/string (Files, Makefile.am): Use string.in.h instead of
45652         string_.h.
45653         * doc/gnulib-tool.texi (Initial import): Update.
45654         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
45655         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
45656         of sys_select_.h. Add dependency.
45657         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
45658         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
45659         of sys_socket_.h.
45660         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
45661         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
45662         sys_stat_.h.
45663         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
45664         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
45665         sys_time_.h.
45666         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
45667         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
45668         sysexits_.h.
45669         * lib/time.in.h: Renamed from lib/time_.h.
45670         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
45671         * lib/unistd.in.h: Renamed from lib/unistd_.h.
45672         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
45673         unistd_.h.
45674         * lib/wchar.in.h: Renamed from lib/wchar_.h.
45675         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
45676         wchar_.h.
45677         * lib/wctype.in.h: Renamed from lib/wctype_.h.
45678         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
45679         wctype_.h.
45680         * build-aux/bootstrap (slurp): Update.
45681         * lib/.cppi-disable: Update.
45682
45683 2007-09-30  Bruno Haible  <bruno@clisp.org>
45684
45685         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
45686         Needed on BeOS.
45687
45688 2007-09-30  Bruno Haible  <bruno@clisp.org>
45689
45690         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
45691
45692 2007-09-29  Bruno Haible  <bruno@clisp.org>
45693
45694         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
45695
45696 2007-09-29  Bruno Haible  <bruno@clisp.org>
45697
45698         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
45699         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
45700         * build-aux/install-reloc: Compile also areadlink.c.
45701         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
45702
45703 2007-09-29  Bruno Haible  <bruno@clisp.org>
45704
45705         * gnulib-tool (func_emit_initmacro_done): Indentation.
45706
45707 2007-09-29  Bruno Haible  <bruno@clisp.org>
45708
45709         * README: Add CVS checkout update instructions.
45710         Info from Bob Proulx <bob@proulx.com>.
45711
45712 2007-09-28  Eric Blake  <ebb9@byu.net>
45713
45714         Provide move-if-change.
45715         * build-aux/move-if-change: New file, based on best practice
45716         rather than any canonical upstream location.
45717
45718 2007-09-28  Jim Meyering  <jim@meyering.net>
45719
45720         Fix canonicalize loop-detection corner case.
45721         Do not attempt to stat the symlink values stored via seen_triple.
45722         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
45723         on linux-2.6.18, (but not 2.6.22).
45724         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
45725         triple_compare.  The former compares dev,ino,filename, while the latter
45726         would actually stat dirname(filename) when dev and ino were equal.
45727         * lib/hash-triple.c: Install <string.h>.
45728         (STREQ): Define.
45729         (triple_compare_ino_str): New function.
45730         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
45731
45732 2007-09-28  Eric Blake  <ebb9@byu.net>
45733
45734         Enforce that AC_REPLACE_FUNCS files exist.
45735         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45736         override check for typos.
45737
45738         Fix test-closein on Solaris 10.
45739         * tests/test-closein.c (main): Don't assume stdin can be inherited
45740         closed on all systems.
45741         * tests/test-closein.sh: Likewise.
45742         Reported by Piotr Tarnowski.
45743
45744 2007-09-28  Jim Meyering  <jim@meyering.net>
45745
45746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
45747
45748 2007-09-27  Jim Meyering  <jim@meyering.net>
45749
45750         canonicalize: Avoid a false-positive cycle failure.
45751         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
45752         Sort.  Remove cycle-check.
45753         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
45754         not cycle-check.h.
45755         (seen_triple): New function.
45756         (canonicalize_filename_mode): Use it instead of cycle-check.
45757         * tests/test-canonicalize.c: Add a test for this bug.
45758         * tests/test-canonicalize.sh: Set up and run the test.
45759
45760         New module, file-set, from coreutils.
45761         * modules/file-set: Define it.
45762         * lib/file-set.c, lib/file-set.h: Implement.
45763
45764         New module, hash-triple, from coreutils.
45765         * modules/hash-triple: Define it.
45766         * lib/hash-triple.c, lib/hash-triple.h: Implement.
45767
45768 2007-09-25  Eric Blake  <ebb9@byu.net>
45769
45770         Fix strerror on Interix.
45771         * lib/string_.h (strerror): Declare replacement.
45772         * doc/functions/strerror.texi (strerror): Document the Interix
45773         shortcoming.
45774         * modules/string (Makefile.am): Support new hooks.
45775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
45776         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
45777         gl_FUNC_STRERROR_SEPARATE.
45778         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
45779         * lib/strerror.c (rpl_strerror): Provide replacement.
45780         * modules/strerror (Depends-on): Add string.
45781         (configure.ac): Detect use of module.
45782         * tests/test-strerror.c: New file.
45783         * modules/strerror-tests: New test module.
45784         * modules/argp (Depends-on): Add strerror.
45785         * modules/error (Depends-on): Likewise.
45786         Reported by Martin Koeppe.
45787
45788 2007-09-24  Bruno Haible  <bruno@clisp.org>
45789
45790         * README: Update git instructions.
45791
45792 2007-09-24  Eric Blake  <ebb9@byu.net>
45793
45794         Revert fpending breakage from 2007-09-08.
45795         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
45796         __fpending.c.
45797
45798 2007-09-24  Jim Meyering  <jim@meyering.net>
45799
45800         filenamecat.c: Add a test.
45801         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
45802         showing how the function works when DIR is the empty string.
45803
45804 2007-09-21  Simon Josefsson  <simon@josefsson.org>
45805
45806         * tests/test-canonicalize.sh: Turn on executable bit.
45807
45808 2007-09-19  Eric Blake  <ebb9@byu.net>
45809
45810         * README: Update CVS instructions.
45811
45812 2007-09-18  Bruno Haible  <bruno@clisp.org>
45813
45814         * modules/areadlink: New file.
45815         * lib/areadlink.h (areadlink): New declaration.
45816         * lib/areadlink.c: New file, based on lib/xreadlink.c.
45817
45818 2007-09-17  Jim Meyering  <jim@meyering.net>
45819
45820         * lib/savewd.c (ESTALE) [!defined]: Define.
45821         Reported to be required on Interix by Martin Koeppe.
45822
45823 2007-09-17  Bruno Haible  <bruno@clisp.org>
45824
45825         * gnulib-tool (func_version): Use $version.
45826
45827 2007-09-16  Bruno Haible  <bruno@clisp.org>
45828
45829         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
45830         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
45831         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
45832         Reported by Greg Schafer <gschafer@zip.com.au>.
45833
45834 2007-09-15  Bruno Haible  <bruno@clisp.org>
45835
45836         * gnulib-tool (sed): Try a little harder to make bash understand the
45837         alias.
45838         Reported by Bruce Korb <bruce.korb@gmail.com>.
45839
45840 2007-09-13  Eric Blake  <ebb9@byu.net>
45841
45842         * ChangeLog: Remove conflict markers.
45843
45844 2007-09-13  Simon Josefsson  <simon@josefsson.org>
45845
45846         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
45847         Reported by Bruno Haible <bruno@clisp.org>.
45848
45849 2007-09-12  Bruno Haible  <bruno@clisp.org>
45850
45851         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
45852         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
45853         is not defined.
45854
45855 2007-09-12  Eric Blake  <ebb9@byu.net>
45856
45857         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
45858         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
45859         Autoconf definition.
45860         * modules/euidaccess (Depends-on): Add extensions, for
45861         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
45862         * modules/fnmatch (Depends-on): Likewise.
45863         * modules/getaddrinfo (Depends-on): Likewise.
45864         * modules/getdelim (Depends-on): Likewise.
45865         * modules/getline (Depends-on): Likewise.
45866         * modules/getsubopt (Depends-on): Likewise.
45867         * modules/gettext (Depends-on): Likewise.
45868         * modules/group-member (Depends-on): Likewise.
45869         * modules/mbchar (Depends-on): Likewise.
45870         * modules/memmem (Depends-on): Likewise.
45871         * modules/mempcpy (Depends-on): Likewise.
45872         * modules/memrchr (Depends-on): Likewise.
45873         * modules/pagealign_alloc (Depends-on): Likewise.
45874         * modules/readutmp (Depends-on): Likewise.
45875         * modules/stpcpy (Depends-on): Likewise.
45876         * modules/stpncpy (Depends-on): Likewise.
45877         * modules/strchrnul (Depends-on): Likewise.
45878         * modules/strndup (Depends-on): Likewise.
45879         * modules/strsep (Depends-on): Likewise.
45880         * modules/strverscmp (Depends-on): Likewise.
45881         * modules/vasprintf (Depends-on): Likewise.
45882         * modules/wcwidth (Depends-on): Likewise.
45883         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
45884         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
45885         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
45886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
45887         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45888         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45889         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
45890         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45891         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
45892         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
45893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45894         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45895         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45896         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45897         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
45898         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45899         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45900         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45902         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45903         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45904         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45905         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45906         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
45907         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
45908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45909         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
45910         so that lock.m4 can be used in gettext without extensions module.
45911
45912 2007-09-11  Bruno Haible  <bruno@clisp.org>
45913
45914         * m4/isc-posix.m4: Remove file.
45915         Suggested by Eric Blake.
45916
45917 2007-09-11  Eric Blake  <ebb9@byu.net>
45918
45919         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
45920
45921 2007-09-10  Bruno Haible  <bruno@clisp.org>
45922
45923         * posix-modules: Fix typo in error message.
45924         Reported by Matt <mkraai@beckman.com>.
45925
45926 2007-09-09  Bruno Haible  <bruno@clisp.org>
45927
45928         * doc/functions/getdelim.texi: Update list of platforms lacking the
45929         function.
45930         * doc/functions/getline.texi: Likewise.
45931
45932 2007-09-09  Jim Meyering  <jim@meyering.net>
45933
45934         * lib/hash.c (hash_initialize): Detect calloc failure.
45935         Reported by Bruno Haible.
45936
45937 2007-09-09  Bruno Haible  <bruno@clisp.org>
45938
45939         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
45940         malloc or realloc fails.
45941
45942 2007-09-09  Bruno Haible  <bruno@clisp.org>
45943
45944         * modules/getcwd (Depends-on): Add malloc-posix.
45945         * modules/glob (Depends-on): Likewise.
45946         * modules/putenv (Depends-on): Likewise.
45947         * modules/strdup (Depends-on): Likewise.
45948         * modules/getdelim (Depends-on): Add realloc-posix.
45949         * modules/read-file (Depends-on): Likewise.
45950
45951 2007-09-09  Bruno Haible  <bruno@clisp.org>
45952
45953         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
45954         (gl_FUNC_MALLOC_POSIX): Require it.
45955         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
45956         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
45957         * modules/realloc (Files): Add m4/malloc.m4.
45958         * modules/calloc (Files): Likewise.
45959
45960 2007-09-09  Bruno Haible  <bruno@clisp.org>
45961
45962         * modules/malloc-posix: New file.
45963         * modules/malloc (Depends-on): Add malloc-posix.
45964         * lib/malloc.c: Include errno.h.
45965         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
45966         and a POSIX-compatible malloc into a single function. Set ENOMEM
45967         when returning NULL.
45968         * m4/malloc.m4: New file.
45969         * doc/functions/malloc.texi: Mention the malloc-posix module.
45970         * lib/stdlib_.h (malloc): New declaration.
45971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45972         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
45973         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
45974         and HAVE_MALLOC_POSIX.
45975
45976 2007-09-09  Bruno Haible  <bruno@clisp.org>
45977
45978         * modules/realloc-posix: New file.
45979         * modules/realloc (Depends-on): Add realloc-posix.
45980         * lib/realloc.c: Include errno.h.
45981         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
45982         and a POSIX-compatible realloc into a single function. Set ENOMEM
45983         when returning NULL.
45984         * m4/realloc.m4: New file.
45985         * doc/functions/realloc.texi: Mention the realloc-posix module.
45986         * lib/stdlib_.h (realloc): New declaration.
45987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
45988         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
45989         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
45990         and HAVE_REALLOC_POSIX.
45991
45992 2007-09-09  Bruno Haible  <bruno@clisp.org>
45993
45994         * modules/calloc-posix: New file.
45995         * modules/calloc (Depends-on): Add calloc-posix.
45996         * lib/calloc.c: Include errno.h.
45997         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
45998         and a POSIX-compatible calloc into a single function. Set ENOMEM
45999         when returning NULL.
46000         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46001         * doc/functions/calloc.texi: Mention the calloc-posix module.
46002         * lib/stdlib_.h (calloc): New declaration.
46003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46004         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46005         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46006         and HAVE_CALLOC_POSIX.
46007
46008 2007-09-09  Bruno Haible  <bruno@clisp.org>
46009
46010         Allow for modules to show an arbitrary notice.
46011         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46012         * gnulib-tool: New option --extract-notice.
46013         (func_usage): Document it.
46014         (sed_extract_prog): Update.
46015         (func_get_notice): New function.
46016         (func_modules_notice): New function.
46017         (func_import, func_create_testdir): Invoke it.
46018         Suggested by Jim Meyering.
46019
46020 2007-09-09  Bruno Haible  <bruno@clisp.org>
46021
46022         * gnulib-tool: New options --verbose, --quiet.
46023         (func_usage): Document them.
46024         (verbose): New variable.
46025         (func_execute_command): New function.
46026         (func_import): Don't show the module list and the file list if
46027         $verbose < 0.
46028         (func_create_testdir): Likewise. Use func_execute_command.
46029         (func_create_megatestdir): Use func_execute_command.
46030
46031 2007-09-08  Bruno Haible  <bruno@clisp.org>
46032
46033         * gnulib-tool (func_import): Prefer rsync over wget when available,
46034         for fetching the PO files.
46035
46036 2007-09-08  Bruno Haible  <bruno@clisp.org>
46037
46038         * posix-modules: New file. Portions copied from gnulib-tool.
46039         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46040
46041 2007-09-08  Jim Meyering  <jim@meyering.net>
46042
46043         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46044         * lib/fpending.h: Rename from __fpending.h.
46045         * lib/fpending.c: Rename from __fpending.c.
46046         Include "fpending.h", not "__fpending.h".
46047         * lib/__fpending.h, lib/__fpending.c: Remove files.
46048         * modules/fpending (Files): Reflect new file names.
46049         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46050
46051 2007-09-08  Bruno Haible  <bruno@clisp.org>
46052
46053         * m4/inttypes-h.m4: Remove stub file.
46054
46055 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46056
46057         * doc/headers/stdint.texi: Discuss #include_next issue.
46058
46059 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46060
46061         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46062
46063 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46064
46065         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46066         in variable name.
46067
46068 2007-09-03  Jim Meyering  <jim@meyering.net>
46069
46070         New module: git-version-gen.
46071         * modules/git-version-gen: New file.
46072
46073         Import changes from coreutils for bootstrap script.
46074
46075         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46076
46077         bootstrap: uses rsync to download the .po files
46078         * build-aux/bootstrap (po_download_command_format): New global.
46079         (download_po_files): Use rsync.
46080         (update_po_files): Don't remove .po files after download,
46081         so future rsync runs can take advantage of the copies.
46082
46083         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46084
46085         Solve the unnecessary-.po-file-regeneration problem once and for all.
46086         * build-aux/bootstrap (download_po_files): New function, renamed from
46087         get_translations.  Now, downloads, but doesn't update LINGUAS.
46088         (update_po_files): New function.
46089
46090         bootstrap: Ignore more.
46091         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46092         uniwidth to e.g., lib/.gitignore.
46093         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46094
46095         * build-aux/bootstrap: New setting: vc_ignore.
46096         (insert_sorted_if_absent): Create $file if absent.
46097         Adapt to new, possibly empty, list: $vc_ignore.
46098
46099         bootstrap: generate more ignorable names
46100         * build-aux/bootstrap (slurp): When generating ignorable names,
46101         also map .sin to .sed, .gperf to .c, and .y to .c.
46102
46103 2007-09-03  Jim Meyering  <jim@meyering.net>
46104
46105         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46106         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46107
46108 2007-09-02  Bruno Haible  <bruno@clisp.org>
46109
46110         Fix mis-recognition of 'mcs' on QNX 6.
46111         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46112         output contains the string "Mono".
46113         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46114         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46115
46116 2007-09-01  Bruno Haible  <bruno@clisp.org>
46117
46118         Fix collision between uniwidth/* and linebreak modules.
46119         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46120         u32_width): Remove declarations.
46121         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46122         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46123         streq3, streq2, streq1, streq0): Remove functions.
46124         (STREQ): Remove macro.
46125         (is_cjk_encoding): Remove function.
46126         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46127         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46128         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46129         * NEWS: Document the change.
46130
46131 2007-09-01  Bruno Haible  <bruno@clisp.org>
46132
46133         * lib/streq.h: Add double-inclusion guard.
46134
46135 2007-09-01  Karl Berry  <karl@gnu.org>
46136
46137         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46138
46139 2007-08-28  Jim Meyering  <jim@meyering.net>
46140
46141         Rename mreadlink_with_size to areadlink_with_size.
46142         * NEWS: Document the change.
46143         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46144         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46145         * lib/mreadlink.h: Rename this to...
46146         * lib/areadlink.h: ...this.
46147         * modules/mreadlink-with-size: Rename this to...
46148         * modules/areadlink-with-size: ...this.
46149         * lib/canonicalize.c: Reflect the renaming.
46150         * modules/canonicalize: Likewise.
46151
46152 2007-08-26  Bruno Haible  <bruno@clisp.org>
46153
46154         * gnulib-tool (func_import): When deciding which files to remove,
46155         consider also dangling symbolic links.
46156         Reported by Eric Blake.
46157
46158 2007-08-26  Bruno Haible  <bruno@clisp.org>
46159
46160         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46161
46162 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46163
46164         * lib/readline.c: Don't include getline.h, the prototype is now
46165         found in stdio.h.
46166
46167 2007-08-23  Jim Meyering  <jim@meyering.net>
46168
46169         Getdelim touchup.
46170         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46171         around the funlockfile call, since funlockfile never sets errno.
46172         Don't set errno upon failed realloc.
46173
46174 2007-08-22  Eric Blake  <ebb9@byu.net>
46175
46176         Getline touchups.
46177         * lib/getdelim.c (getdelim): Revert regression that required *n to
46178         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46180         getdelim, rather than whether implementation is missing.
46181         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46182         * lib/stdio_.h (getline): Also declare if replacement is
46183         required.
46184         * doc/functions/getdelim.texi: New file.
46185         * doc/functions/getline.texi: Likewise.
46186         * doc/gnulib.texi (Function Substitutes): Add new files.
46187         Reported by Bruno Haible.
46188
46189 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46190
46191         * users.txt: Add Guile.
46192
46193 2007-08-22  Eric Blake  <ebb9@byu.net>
46194
46195         * tests/test-getdelim.c (main): Use remove, not unlink.
46196         * tests/test-getline.c (main): Likewise.
46197
46198         Move getline and getdelim into stdio.h, per POSIX 200x.
46199         * modules/getline (Files): Remove getline.h.
46200         (Depends-on): Add stdio.
46201         (configure.ac): Add module indicator.
46202         * modules/getdelim (Files): Remove getdelim.h.
46203         (Depends-on): Add stdio.
46204         (configure.ac): Add module indicator.
46205         * modules/stdio (Makefile.am): Work with new indicators.
46206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46207         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
46208         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46209         * lib/getdelim.h: Delete.
46210         * lib/getline.h: Delete.
46211         * lib/stdio_.h (getdelim, getline): Declare.
46212         * modules/getdelim-tests: New module.
46213         * modules/getline-tests: Likewise.
46214         * tests/test-getdelim.c: New file.
46215         * tests/test-getline.c: Likewise.
46216         * NEWS: Document the change.
46217         * lib/getline.c: Update choice of header.
46218         * lib/csharpcomp.c: Likewise.
46219         * lib/getpass.c: Likewise.
46220         * lib/javacomp.c: Likewise.
46221         * lib/javaversion.c: Likewise.
46222         * lib/yesno.c: Likewise.
46223         * lib/getdelim.c: Likewise.
46224         (getdelim): Set errno on failure, and avoid memory leak.
46225
46226 2007-08-19  Bruno Haible  <bruno@clisp.org>
46227
46228         * modules/closein (Depends-on): Add freadahead.
46229         * lib/closein.c: Include freadahead.h.
46230         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
46231         is zero.
46232
46233 2007-08-19  Bruno Haible  <bruno@clisp.org>
46234
46235         * modules/freadahead-tests: New file.
46236         * tests/test-freadahead.sh: New file.
46237         * tests/test-freadahead.c: New file.
46238
46239         * modules/freadahead: New file.
46240         * lib/freadahead.h: New file.
46241         * lib/freadahead.c: New file.
46242         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
46243         fbufmode, fpurge, freadable, fwritable.
46244
46245 2007-08-19  Eric Blake  <ebb9@byu.net>
46246
46247         Test yesno in combination with closein.
46248         * lib/yesno.c (yesno): Document use of stdin.
46249         * modules/yesno-tests (Files): New module.
46250         * tests/test-yesno.c (main): New file.
46251         * tests/test-yesno.sh: Likewise.
46252
46253 2007-08-19  Bruno Haible  <bruno@clisp.org>
46254
46255         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
46256         * lib/fseeko.c (rpl_fseeko): Likewise.
46257         * lib/fseterr.c (fseterr): Likewise.
46258
46259 2007-08-19  Bruno Haible  <bruno@clisp.org>
46260
46261         * tests/test-lseek.c (main): Disable a test for BeOS.
46262         * doc/functions/lseek.texi: Document the BeOS bug.
46263
46264 2007-08-19  Bruno Haible  <bruno@clisp.org>
46265             Eric Blake  <ebb9@byu.net>
46266
46267         * lib/lseek.c: Include <sys/stat.h>.
46268         (rpl_lseek): Add workaround code also for Unix platforms.
46269         Needed for BeOS.
46270         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
46271         * doc/functions/lseek.texi: Document BeOS definiency.
46272
46273 2007-08-18  Bruno Haible  <bruno@clisp.org>
46274
46275         * modules/fstrcmp-tests: New file.
46276         * tests/test-fstrcmp.c: New file.
46277
46278 2007-08-18  Bruno Haible  <bruno@clisp.org>
46279
46280         * modules/fstrcmp: New file, from GNU gettext with modifications.
46281         * lib/fstrcmp.h: New file, from GNU gettext.
46282         * lib/fstrcmp.c: New file, from GNU gettext.
46283         * MODULES.html.sh (String handling): Add fstrcmp.
46284
46285 2007-08-18  Bruno Haible  <bruno@clisp.org>
46286
46287         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
46288         'bool'.
46289         (diag, compareseq): Remove const from the ctxt argument.
46290         (USE_HEURISTIC): Undefine at the end.
46291
46292 2007-08-18  Jim Meyering  <jim@meyering.net>
46293
46294         New file: lib/idcache.h
46295         * NEWS: Mention the addition.
46296         * modules/idcache (Files): Add lib/idcache.h
46297         * lib/idcache.c: Include "idcache.h".
46298         Don't include <sys/types.h>.
46299         Add a FIXME comment.
46300         Move file-scoped "static" declarations to the top.
46301         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
46302
46303 2007-08-17  Bruno Haible  <bruno@clisp.org>
46304         and Paul Eggert  <eggert@cs.ucla.edu>
46305
46306         * MODULES.html.sh: Add diffseq.
46307         * modules/diffseq: New file.
46308         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
46309         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
46310
46311 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
46312
46313         Import changes from coreutils for bootstrap script.
46314
46315         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
46316
46317         * build-aux/bootstrap (slurp): Work even in environments where
46318         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
46319         current code does not slurp files whose names start with ".", and
46320         this looks like it might be a troublesome area.
46321
46322         2007-07-11  Jim Meyering  <jim@meyering.net>
46323
46324         If there's a GPL vN copyright comment, require that N == 3.
46325
46326         2007-07-08  Jim Meyering  <jim@meyering.net>
46327
46328         Run the coreutils-specific code only if tests/Makefile.am.in exists.
46329         * build-aux/bootstrap (mam_template): Move definition out of loop.
46330
46331         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
46332
46333         * build-aux/bootstrap (symlink_to_dir): Rename function from
46334         symlink_to_gnulib.  Add a directory parameter.  Update all
46335         callers.
46336         (cp_mark_as_generated): Also check for -- and link to -- files in
46337         gl/.
46338
46339         2007-07-08  Jim Meyering  <jim@meyering.net>
46340
46341         Adapt to deeper hierarchy in gnulib.
46342         * build-aux/bootstrap (symlink_to_dir): If the destination
46343         directory doesn't exist, create it. This is required at least for
46344         "lib/uniwidth/cjk.h".
46345
46346         2007-05-15  Jim Meyering  <jim@meyering.net>
46347
46348         * build-aux/bootstrap: Now that generated Makefile.am files
46349         are no longer under version control, they must be created at
46350         bootstrap time.
46351
46352 2007-08-14  Ben Pfaff  <blp@gnu.org>
46353
46354         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
46355
46356 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
46357
46358         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
46359         given the changes below.
46360         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
46361         even on hosts that have padding bits beyond the supported 64.
46362
46363 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46364
46365         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
46366         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
46367         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
46368         depends on it.
46369         (xstrtol_error): Remove.
46370         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
46371         but with a different signature.
46372         (ATTRIBUTE_NORETURN, __attribute__): New macros.
46373         * lib/xstrtol-error.c: Include exitfail.h.
46374         (xstrtol_fatal): New function, with a different signature from the
46375         old xstrtol_error, so that the caller need not worry about passing
46376         in an exit status, or about storage management of the option argument.
46377         (xstrtol_error): Now a static function.  Redo signature to
46378         implement xstrtol_fatal.  Output the correct number of hyphens in
46379         front of the option so that the caller need not worry about
46380         storage management.
46381         (N_): New macro.
46382         (_): Remove; not used now.
46383         * modules/xstrtol: Depend on getopt.
46384         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
46385         of old STRTOL_FATAL_ERROR macro.
46386         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
46387         of test program.
46388         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
46389         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
46390
46391 2007-08-08  Eric Blake  <ebb9@byu.net>
46392
46393         * lib/xstrtol-error.c: Add missing include.
46394
46395         Move xstrtol messages into gnulib domain, when --pobase is used.
46396         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
46397         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
46398         * modules/xstrtol (Files): Distribute new file.
46399         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
46400         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
46401         * tests/test-xstrtol.c: ...into new file.
46402         * tests/test-xstrtoul.c: Also test xstrtoul.
46403         * tests/test-xstrtoimax.c: Also test xstrtoimax.
46404         * tests/test-xstrtoumax.c: Also test xstrtoumax.
46405         * tests/test-xstrtol.sh: Drive the tests.
46406         * tests/test-xstrtoimax.sh: Likewise.
46407         * tests/test-xstrtoumax.sh: Likewise.
46408         * modules/xstrtol-tests: New module.
46409         * modules/xstrtoimax-tests: Likewise.
46410         * modules/xstrtoumax-tests: Likewise.
46411
46412 2007-08-08  Jim Meyering  <jim@meyering.net>
46413
46414         New function: mfile_name_concat.
46415         * lib/filenamecat.c (mfile_name_concat): New function, just like
46416         file_name_concat, but return NULL upon failure rather than exiting
46417         with a diagnostic.
46418         * lib/filenamecat.h: Declare it.
46419
46420 2007-08-07  Bruno Haible  <bruno@clisp.org>
46421
46422         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
46423         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
46424         warning from gcc.
46425         Reported by Eric Blake.
46426
46427 2007-08-07  Simon Josefsson  <simon@josefsson.org>
46428
46429         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
46430         * modules/crypto/arcfour (License): Likewise.
46431         * modules/crypto/des-tests (License): Likewise.
46432         * modules/crypto/gc-arctwo-tests (License): Likewise.
46433         * modules/crypto/gc-des-tests (License): Likewise.
46434         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
46435         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
46436         * modules/crypto/gc-md2-tests (License): Likewise.
46437         * modules/crypto/gc-md4-tests (License): Likewise.
46438         * modules/crypto/gc-md5-tests (License): Likewise.
46439         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
46440         * modules/crypto/gc-rijndael-tests (License): Likewise.
46441         * modules/crypto/gc-sha1-tests (License): Likewise.
46442         * modules/crypto/gc-tests (License): Likewise.
46443         * modules/crypto/hmac-md5 (License): Likewise.
46444         * modules/crypto/hmac-sha1 (License): Likewise.
46445         * modules/crypto/md2-tests (License): Likewise.
46446         * modules/crypto/md4-tests (License): Likewise.
46447         * modules/crypto/md5 (License): Likewise.
46448         * modules/crypto/rijndael (License): Likewise.
46449         * modules/crypto/sha1 (License): Likewise.
46450         * modules/memxor (License): Likewise.
46451
46452 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46453         and Bruno Haible  <bruno@clisp.org>
46454
46455         * NEWS: Describe interface changes to human, xstrtol.
46456         * lib/human.h: Include <xstrtol.h>.
46457         (human_options): Return enum strtol_error, not int.  Remove
46458         bool arg; take int * instead.
46459         * lib/human.c: Don't include "gettext.h".
46460         (_): Remove; no longer used.
46461         Don't include <xstrtol.h>, since human.h does it.
46462         (human_options): Adjust to abovementioned interface changes.
46463         Do not report error to stderr; that's now the caller's
46464         responsibility.
46465         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
46466         interface change.
46467         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
46468         Str, Argument_type_string.  All uses changed.  Put " argument"
46469         in diagnostics to make them clearer.  Change wording of suffix
46470         message for clarity.
46471         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
46472         Argument_type_string.
46473         (STRTOL_FATAL_WARN): Remove; no longer used.
46474         * modules/human (Depends-on): Remove gettext-h.
46475
46476 2007-08-06  Simon Josefsson  <simon@josefsson.org>
46477
46478         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
46479
46480 2007-07-31  Bruno Haible  <bruno@clisp.org>
46481
46482         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
46483         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
46484         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
46485
46486 2007-07-31  Bruno Haible  <bruno@clisp.org>
46487
46488         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
46489         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
46490
46491 2007-07-30  Bruno Haible  <bruno@clisp.org>
46492
46493         * modules/base64 (License): Use the synonymous term "LGPLv2+".
46494         * modules/c-ctype (License): Likewise.
46495         * modules/c-strcase (License): Likewise.
46496         * modules/check-version (License): Likewise.
46497         * modules/iconv (License): Likewise.
46498         * modules/iconv_open (License): Likewise.
46499         * modules/read-file (License): Likewise.
46500         * modules/striconv (License): Likewise.
46501         * modules/strverscmp (License): Likewise.
46502         * modules/vasprintf (License): Likewise.
46503         * modules/crypto/des (License): Likewise.
46504         * modules/crypto/gc (License): Likewise.
46505         * modules/crypto/gc-arcfour (License): Likewise.
46506         * modules/crypto/gc-arctwo (License): Likewise.
46507         * modules/crypto/gc-des (License): Likewise.
46508         * modules/crypto/gc-hmac-md5 (License): Likewise.
46509         * modules/crypto/gc-hmac-sha1 (License): Likewise.
46510         * modules/crypto/gc-md2 (License): Likewise.
46511         * modules/crypto/gc-md4 (License): Likewise.
46512         * modules/crypto/gc-md5 (License): Likewise.
46513         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
46514         * modules/crypto/gc-random (License): Likewise.
46515         * modules/crypto/gc-rijndael (License): Likewise.
46516         * modules/crypto/gc-sha1 (License): Likewise.
46517         * modules/crypto/md2 (License): Likewise.
46518         * modules/crypto/md4 (License): Likewise.
46519
46520 2007-07-30  Jim Meyering  <jim@meyering.net>
46521
46522         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
46523         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
46524         it has valid stat data.  This bug would cause du not to count the
46525         sizes of inaccessible directories.
46526         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
46527         in <http://bugzilla.redhat.com/250077>.
46528
46529 2007-07-25  Peter O'Gorman  <peter@pogma.com>
46530             Bruno Haible  <bruno@clisp.org>
46531
46532         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
46533         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
46534         #include_next, gives a diagnostic about it, but reports no error in
46535         the exit code.
46536         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46537
46538 2007-07-24  Ben Pfaff  <blp@gnu.org>
46539
46540         Improve name: "count-one-bits" is better than "popcount".
46541         * MODULES.html.sh: Update name.
46542         * lib/popcount.h: Renamed lib/count-one-bits.h.
46543         (popcount): Renamed count_one_bits.
46544         (popcountl): Renamed count_one_bits_l.
46545         (popcountll): Renamed count_one_bits_ll.
46546         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
46547         * modules/popcount: Renamed module/count-one-bits.
46548         * modules/popcount-tests: Renamed module/count-one-bits-tests.
46549         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
46550
46551 2007-07-23  Ben Pfaff  <blp@gnu.org>
46552
46553         * lib/popcount.h (popcount32): Reduce size of constants, to allow
46554         better code generation, and add U to large constants to avoid
46555         warnings, in non-GCC case.
46556         Suggested by Bruno Haible.
46557
46558 2007-07-23  Ben Pfaff  <blp@gnu.org>
46559
46560         * lib/popcount.h: Use verify_true instead of if...abort.
46561         * modules/popcount: Depend on verify module.
46562         Suggested by Jim Meyering.
46563
46564 2007-07-23  Bruno Haible  <bruno@clisp.org>
46565
46566         * gnulib-tool (func_import): Create a .cvsignore file also when the
46567         directory is not yet in CVS but the toplevel directory is. When
46568         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
46569         Reported by Karl Berry.
46570
46571 2007-07-22  Ben Pfaff  <blp@gnu.org>
46572
46573         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
46574         case.
46575         Suggested by Eric Blake.
46576
46577 2007-07-22  Ben Pfaff  <blp@gnu.org>
46578
46579         New module: popcount.
46580         * MODULES.html.sh: Add popcount.
46581         * modules/popcount: New file.
46582         * modules/popcount-tests: New file.
46583         * tests/test-popcount.c: New file.
46584         * lib/popcount.h: New file.
46585         * m4/popcount.m4: New file.
46586
46587 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46588
46589         * build-aux/announce-gen: Update to GPLv3.
46590
46591         * build-aux/config.guess: Update from config.
46592
46593 2007-07-21  Bruno Haible  <bruno@clisp.org>
46594
46595         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
46596         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
46597
46598 2007-07-20  Jim Meyering  <jim@meyering.net>
46599
46600         * check-module: Diagnose a self-dependency.
46601
46602 2007-07-19  Bruno Haible  <bruno@clisp.org>
46603
46604         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
46605         empty.
46606         Reported by Eric Blake.
46607
46608 2007-07-18  Bruno Haible  <bruno@clisp.org>
46609
46610         * gnulib-tool: New options --po-base, --po-domain.
46611         (func_usage): Document them.
46612         (pobase, po_domain): New variables.
46613         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
46614         DEFAULT_TEXT_DOMAIN.
46615         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
46616         (func_import): Consider pobase and po_domain. Create a po/ directory.
46617         (func_create_testdir): Set pobase and po_domain to empty.
46618         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
46619         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
46620
46621 2007-07-18  Bruno Haible  <bruno@clisp.org>
46622
46623         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46624         EXTRA_DIST augmentation for files in build-aux/.
46625
46626 2007-07-16  Bruno Haible  <bruno@clisp.org>
46627
46628         * modules/lseek (License): Use the synonymous term "LGPLv2+".
46629         * modules/getdelim (License): Likewise.
46630
46631 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46632
46633         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
46634         * modules/d-type (License): Likewise.
46635         * modules/extensions (License): Likewise.
46636         * modules/fnmatch (License): Likewise.
46637         * modules/fseeko (License): Likewise.
46638         * modules/getaddrinfo (License): Likewise.
46639         * modules/getline (License): Likewise.
46640         * modules/getlogin_r (License): Likewise.
46641         * modules/getpass (License): Likewise.
46642         * modules/gettimeofday (License): Likewise.
46643         * modules/glob (License): Likewise.
46644         * modules/inet_ntop (License): Likewise.
46645         * modules/malloc (License): Likewise.
46646         * modules/malloca (License): Likewise.
46647         * modules/memmem (License): Likewise.
46648         * modules/mempcpy (License): Likewise.
46649         * modules/memset (License): Likewise.
46650         * modules/minmax (License): Likewise.
46651         * modules/mktime (License): Likewise.
46652         * modules/netinet_in (License): Likewise.
46653         * modules/pathmax (License): Likewise.
46654         * modules/poll (License): Likewise.
46655         * modules/regex (License): Likewise.
46656         * modules/snprintf (License): Likewise.
46657         * modules/stdbool (License): Likewise.
46658         * modules/stdint (License): Likewise.
46659         * modules/stdio (License): Likewise.
46660         * modules/strcase (License): Likewise.
46661         * modules/strcasestr (License): Likewise.
46662         * modules/strdup (License): Likewise.
46663         * modules/string (License): Likewise.
46664         * modules/strndup (License): Likewise.
46665         * modules/strnlen (License): Likewise.
46666         * modules/strpbrk (License): Likewise.
46667         * modules/strptime (License): Likewise.
46668         * modules/strsep (License): Likewise.
46669         * modules/sys_select (License): Likewise.
46670         * modules/sys_socket (License): Likewise.
46671         * modules/sys_stat (License): Likewise.
46672         * modules/sys_time (License): Likewise.
46673         * modules/time (License): Likewise.
46674         * modules/time_r (License): Likewise.
46675         * modules/timegm (License): Likewise.
46676         * modules/unistd (License): Likewise.
46677         * modules/vsnprintf (License): Likewise.
46678         * modules/wctype (License): Likewise.
46679
46680 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46681
46682         * modules/argz (License): LGPLv2+.
46683
46684 2007-07-15  Karl Berry  <karl@gnu.org>
46685
46686         * doc/gnulib.texi: revise node structure per new fdl.texi.
46687
46688 2007-07-14  Bruno Haible  <bruno@clisp.org>
46689
46690         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
46691         the output file.
46692         * lib/uniname/uninames.h: Regenerated.
46693
46694 2007-07-14  Karl Berry  <karl@gnu.org>
46695
46696         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
46697         omitting sectioning and index commands.
46698
46699 2007-07-13  Bruno Haible  <bruno@clisp.org>
46700
46701         New gnulib-tool option --more-symlinks.
46702         * gnulib-tool (func_usage): Document --more-symlinks.
46703         (do_copyrights): New variable.
46704         Recognize option --more-symlinks.
46705         (func_import): Don't add a copyright notice transform to
46706         sed_transform_lib_file if do_copyrights is empty.
46707
46708 2007-07-13  Bruno Haible  <bruno@clisp.org>
46709
46710         * lib/vasnprintf.c (decimal_point_char): Define also if
46711         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
46712         && !NEED_PRINTF_DIRECTIVE_A.
46713         Reported by Clemens Koller <clemens.koller@anagramm.de> via
46714         Gary V. Vaughan <gary@gnu.org>.
46715
46716 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
46717
46718         * lib/inttypes_.h: Undo previous change, since it was fixed
46719         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
46720
46721 2007-07-13  Bruno Haible  <bruno@clisp.org>
46722
46723         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
46724         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
46725
46726 2007-07-13  Jim Meyering  <jim@meyering.net>
46727
46728         df: Don't fail for Tru64's "file-on-file mount".
46729         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
46730         so we fall through and use statfs instead.  Details here:
46731         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
46732         Reported by Albert Chin.
46733
46734 2007-07-13  Bruno Haible  <bruno@clisp.org>
46735
46736         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
46737         * modules/configmake (License): Likewise.
46738         * modules/gettext (License): Likewise.
46739         * modules/gettext-h (License): Likewise.
46740         * modules/include_next (License): Likewise.
46741         * modules/link-warning (License): Likewise.
46742         * modules/localcharset (License): Likewise.
46743         * modules/localename (License): Likewise.
46744         * modules/lock (License): Likewise.
46745         * modules/relocatable-lib-lgpl (License): Likewise.
46746         * modules/size_max (License): Likewise.
46747         * modules/vasnprintf (License): Likewise.
46748         * modules/wchar (License): Likewise.
46749         * modules/xsize (License): Likewise.
46750
46751 2007-07-13  Bruno Haible  <bruno@clisp.org>
46752
46753         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
46754         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
46755
46756 2007-07-12  Bruno Haible  <bruno@clisp.org>
46757
46758         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
46759         in the modules files.
46760
46761 2007-07-11  Karl Berry  <karl@gnu.org>
46762
46763         * MODULES.html.sh (func_module): use
46764          sed -e '\|^'"${includefile}"'$|d'
46765          instead of /.../d, to avoid errors on $includefile's containing /.
46766
46767 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
46768
46769         * gnulib-tool (func_import): Avoid duplication of --avoid
46770         statements
46771         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
46772         names to `_' in variable names.
46773
46774 2007-07-10  Eric Blake  <ebb9@byu.net>
46775
46776         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
46777         * NEWS: Document this change.
46778
46779 2007-07-08  Bruno Haible  <bruno@clisp.org>
46780
46781         Update to Unicode 5.0.
46782         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
46783         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
46784         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
46785         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
46786         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
46787         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
46788         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
46789         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
46790         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
46791         U+10A3F, U+1D242..U+1D244.
46792         (nonspacing_table_ind): Update.
46793         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
46794         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
46795
46796 2007-07-08  Bruno Haible  <bruno@clisp.org>
46797
46798         Update to Unicode 5.0.
46799         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
46800         code transform. Extend the name index field of unicode_name_to_code and
46801         unicode_code_to_name from 16 to 24 bits.
46802         * lib/uniname/uniname.c (unicode_character_name,
46803         unicode_name_character): Add the range 0x12xxx to the code transform.
46804         * lib/uniname/uninames.h: Regenerated.
46805         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
46806
46807 2007-07-07  Bruno Haible  <bruno@clisp.org>
46808
46809         * modules/wcwidth-tests: New file.
46810         * tests/test-wcwidth.c: New file.
46811
46812         Work around MacOS X wcwidth() bug.
46813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
46814         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
46815         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
46816         original wcwidth in non-UTF-8 locales.
46817         * modules/wcwidth (Depends-on): Add localcharset, streq,
46818         uniwidth/width.
46819         * doc/functions/wcwidth.texi: Update.
46820
46821 2007-07-07  Bruno Haible  <bruno@clisp.org>
46822
46823         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
46824         (wcwidth): New declaration.
46825         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
46826         macros.
46827         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
46828         here. Prepare for creating <wchar.h> unconditionally.
46829         * modules/wchar (Depends-on): Add link-warning.
46830         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
46831         REPLACE_WCWIDTH, and GL_LINK_WARNING.
46832         * lib/wcwidth.h: Remove file.
46833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
46834         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
46835         * modules/wcwidth (Files): Remove lib/wcwidth.h.
46836         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
46837         (Include): Replace wcwidth.h with <wchar.h>.
46838         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
46839         * lib/mbchar.h: Don't include wcwidth.h.
46840         * lib/mbswidth.c: Likewise.
46841         * NEWS: Mention the change.
46842
46843 2007-07-07  Bruno Haible  <bruno@clisp.org>
46844
46845         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
46846         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
46847         definition with an external declaration.
46848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
46849         defined as a function. Remove AC_C_INLINE requirement.
46850         * modules/wcwidth (Files): Add lib/wcwidth.c.
46851         (Makefile.am): Remove redundant statement.
46852
46853 2007-07-07  Bruno Haible  <bruno@clisp.org>
46854
46855         * MODULES.html.sh (Unicode string functions): Add the new modules.
46856
46857         * tests/uniwidth/test-u32-strwidth.c: New file.
46858         * modules/uniwidth/u32-strwidth-tests: New file.
46859
46860         * lib/uniwidth/u32-strwidth.c: New file.
46861         * modules/uniwidth/u32-strwidth: New file.
46862
46863         * tests/uniwidth/test-u16-strwidth.c: New file.
46864         * modules/uniwidth/u16-strwidth-tests: New file.
46865
46866         * lib/uniwidth/u16-strwidth.c: New file.
46867         * modules/uniwidth/u16-strwidth: New file.
46868
46869         * tests/uniwidth/test-u8-strwidth.c: New file.
46870         * modules/uniwidth/u8-strwidth-tests: New file.
46871
46872         * lib/uniwidth/u8-strwidth.c: New file.
46873         * modules/uniwidth/u8-strwidth: New file.
46874
46875         * tests/uniwidth/test-u32-width.c: New file.
46876         * modules/uniwidth/u32-width-tests: New file.
46877
46878         * lib/uniwidth/u32-width.c: New file.
46879         * modules/uniwidth/u32-width: New file.
46880
46881         * tests/uniwidth/test-u16-width.c: New file.
46882         * modules/uniwidth/u16-width-tests: New file.
46883
46884         * lib/uniwidth/u16-width.c: New file.
46885         * modules/uniwidth/u16-width: New file.
46886
46887         * tests/uniwidth/test-u8-width.c: New file.
46888         * modules/uniwidth/u8-width-tests: New file.
46889
46890         * lib/uniwidth/u8-width.c: New file.
46891         * modules/uniwidth/u8-width: New file.
46892
46893         * tests/uniwidth/test-uc_width.c: New file.
46894         * modules/uniwidth/width-tests: New file.
46895
46896         * lib/uniwidth/width.c: New file, from GNU libiconv.
46897         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
46898         * modules/uniwidth/width: New file.
46899
46900         * lib/uniwidth.h: New file, from GNU libiconv.
46901         * modules/uniwidth/base: New file.
46902
46903 2007-07-07  Bruno Haible  <bruno@clisp.org>
46904
46905         * lib/uniname.h: New file, from GNU gettext.
46906         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
46907         * lib/uniname/uninames.h: New file, from GNU gettext.
46908         * lib/uniname/uniname.c: New file, from GNU gettext.
46909         * tests/uniname/test-uninames.sh: New file.
46910         * tests/uniname/test-uninames.c: New file, from GNU gettext.
46911         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
46912         * modules/uniname/base: New file.
46913         * modules/uniname/uniname: New file.
46914         * modules/uniname/uniname-tests: New file.
46915         * MODULES.html.sh (Unicode string functions): Add the new modules.
46916
46917 2007-07-06  Bruno Haible  <bruno@clisp.org>
46918
46919         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
46920
46921 2007-07-06  Bruno Haible  <bruno@clisp.org>
46922
46923         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
46924         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
46925         includes <cygwin/sys_time.h> which includes <sys/select.h> which
46926         include <sys/time.h>.
46927         Reported by Eric Blake.
46928
46929 2007-07-06  Eric Blake  <ebb9@byu.net>
46930
46931         Fix testing canonicalize on cygwin.
46932         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
46933         Revert patch from 2007-06-19.
46934         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
46935         canonicalize module is also in use.
46936         * tests/test-canonicalize.c: New file.
46937         * tests/test-canonicalize.sh: Likewise.
46938         * modules/canonicalize-tests: Likewise.
46939
46940 2007-07-06  Jim Meyering  <jim@meyering.net>
46941
46942         * lib/getugroups.c (getugroups): Detect getgrent failure.
46943         Adjust comment to reflect reality: this function may return -1.
46944
46945 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
46946
46947         * build-aux/bootstrap (TP_URL,get_translations): Update to use
46948         the new TP address.
46949         (usage): Fix typo
46950         (gnulib_mk): New variable.
46951
46952 2007-07-05  Jim Meyering  <jim@meyering.net>
46953
46954         Don't let endgrent clobber errno, no matter how improbable.
46955         * lib/getugroups.c (getugroups): Save and restore errno around
46956         endgrent call.
46957
46958         Close the group DB even when failing with 2^31 or more members.
46959         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
46960
46961 2007-07-04  Jim Meyering  <jim@meyering.net>
46962
46963         * lib/getugroups.h: New file.
46964         * lib/getugroups.c: Include "getugroups.h".
46965         Remove uses of "register" keyword.
46966         Move local variable, "cp", down into scope where used.
46967         Give "username" parameter the "const" attribute.
46968         * modules/getugroups (Files): Add lib/getugroups.h
46969
46970 2007-07-04  Karl Berry  <karl@gnu.org>
46971
46972         * MODULES.html.sh (func_all_modules): Complete rename of
46973         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
46974
46975 2007-07-02  Bruno Haible  <bruno@clisp.org>
46976
46977         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
46978         mode, when inttypes.h comes from gnulib.
46979         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46980
46981 2007-07-02  Simon Josefsson  <simon@josefsson.org>
46982
46983         * NEWS: Mention lgpl module name change.
46984
46985         * modules/lgpl-2.1: Renamed from lgpl.
46986
46987         * NEWS: Mention gpl module name change.
46988
46989         * modules/gpl-3.0: New file, based on gpl-2.0.
46990
46991         * modules/gpl-2.0: Renamed from gpl.
46992
46993         * modules/gpl: Fix filename, doc/gpl.texi is now found at
46994         doc/gpl-2.0.texi.
46995
46996 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46997
46998         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
46999         #define __STDC_LIMIT_MACROS temporarily while including
47000         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47001         Problem reported by Joel E. Denny in
47002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47003
47004 2007-07-01  Bruno Haible  <bruno@clisp.org>
47005
47006         * lib/unistdio.h: New file.
47007         * lib/unistdio/u-asnprintf.h: New file.
47008         * lib/unistdio/u-asprintf.h: New file.
47009         * lib/unistdio/u-printf-args.c: New file.
47010         * lib/unistdio/u-printf-args.h: New file.
47011         * lib/unistdio/u-printf-parse.h: New file.
47012         * lib/unistdio/u-snprintf.h: New file.
47013         * lib/unistdio/u-sprintf.h: New file.
47014         * lib/unistdio/u-vasprintf.h: New file.
47015         * lib/unistdio/u-vsnprintf.h: New file.
47016         * lib/unistdio/u-vsprintf.h: New file.
47017         * lib/unistdio/ulc-asnprintf.c: New file.
47018         * lib/unistdio/ulc-asprintf.c: New file.
47019         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47020         * lib/unistdio/ulc-printf-parse.c: New file.
47021         * lib/unistdio/ulc-snprintf.c: New file.
47022         * lib/unistdio/ulc-sprintf.c: New file.
47023         * lib/unistdio/ulc-vasnprintf.c: New file.
47024         * lib/unistdio/ulc-vasprintf.c: New file.
47025         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47026         * lib/unistdio/ulc-vsnprintf.c: New file.
47027         * lib/unistdio/ulc-vsprintf.c: New file.
47028         * lib/unistdio/u8-asnprintf.c: New file.
47029         * lib/unistdio/u8-asprintf.c: New file.
47030         * lib/unistdio/u8-printf-parse.c: New file.
47031         * lib/unistdio/u8-snprintf.c: New file.
47032         * lib/unistdio/u8-sprintf.c: New file.
47033         * lib/unistdio/u8-vasnprintf.c: New file.
47034         * lib/unistdio/u8-vasprintf.c: New file.
47035         * lib/unistdio/u8-vsnprintf.c: New file.
47036         * lib/unistdio/u8-vsprintf.c: New file.
47037         * lib/unistdio/u8-u8-asnprintf.c: New file.
47038         * lib/unistdio/u8-u8-asprintf.c: New file.
47039         * lib/unistdio/u8-u8-snprintf.c: New file.
47040         * lib/unistdio/u8-u8-sprintf.c: New file.
47041         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47042         * lib/unistdio/u8-u8-vasprintf.c: New file.
47043         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47044         * lib/unistdio/u8-u8-vsprintf.c: New file.
47045         * lib/unistdio/u16-asnprintf.c: New file.
47046         * lib/unistdio/u16-asprintf.c: New file.
47047         * lib/unistdio/u16-printf-parse.c: New file.
47048         * lib/unistdio/u16-snprintf.c: New file.
47049         * lib/unistdio/u16-sprintf.c: New file.
47050         * lib/unistdio/u16-vasnprintf.c: New file.
47051         * lib/unistdio/u16-vasprintf.c: New file.
47052         * lib/unistdio/u16-vsnprintf.c: New file.
47053         * lib/unistdio/u16-vsprintf.c: New file.
47054         * lib/unistdio/u16-u16-asnprintf.c: New file.
47055         * lib/unistdio/u16-u16-asprintf.c: New file.
47056         * lib/unistdio/u16-u16-snprintf.c: New file.
47057         * lib/unistdio/u16-u16-sprintf.c: New file.
47058         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47059         * lib/unistdio/u16-u16-vasprintf.c: New file.
47060         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47061         * lib/unistdio/u16-u16-vsprintf.c: New file.
47062         * lib/unistdio/u32-asnprintf.c: New file.
47063         * lib/unistdio/u32-asprintf.c: New file.
47064         * lib/unistdio/u32-printf-parse.c: New file.
47065         * lib/unistdio/u32-snprintf.c: New file.
47066         * lib/unistdio/u32-sprintf.c: New file.
47067         * lib/unistdio/u32-vasnprintf.c: New file.
47068         * lib/unistdio/u32-vasprintf.c: New file.
47069         * lib/unistdio/u32-vsnprintf.c: New file.
47070         * lib/unistdio/u32-vsprintf.c: New file.
47071         * lib/unistdio/u32-u32-asnprintf.c: New file.
47072         * lib/unistdio/u32-u32-asprintf.c: New file.
47073         * lib/unistdio/u32-u32-snprintf.c: New file.
47074         * lib/unistdio/u32-u32-sprintf.c: New file.
47075         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47076         * lib/unistdio/u32-u32-vasprintf.c: New file.
47077         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47078         * lib/unistdio/u32-u32-vsprintf.c: New file.
47079         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47080         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47081         * tests/unistdio/test-ulc-printf1.h: New file.
47082         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47083         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47084         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47085         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47086         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47087         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47088         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47089         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47090         * tests/unistdio/test-u8-asnprintf1.c: New file.
47091         * tests/unistdio/test-u8-asnprintf1.h: New file.
47092         * tests/unistdio/test-u8-printf1.h: New file.
47093         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47094         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47095         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47096         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47097         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47098         * tests/unistdio/test-u8-vasprintf1.c: New file.
47099         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47100         * tests/unistdio/test-u8-vsprintf1.c: New file.
47101         * tests/unistdio/test-u16-asnprintf1.c: New file.
47102         * tests/unistdio/test-u16-asnprintf1.h: New file.
47103         * tests/unistdio/test-u16-printf1.h: New file.
47104         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47105         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47106         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47107         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47108         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47109         * tests/unistdio/test-u16-vasprintf1.c: New file.
47110         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47111         * tests/unistdio/test-u16-vsprintf1.c: New file.
47112         * tests/unistdio/test-u32-asnprintf1.c: New file.
47113         * tests/unistdio/test-u32-asnprintf1.h: New file.
47114         * tests/unistdio/test-u32-printf1.h: New file.
47115         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47116         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47117         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47118         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47119         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47120         * tests/unistdio/test-u32-vasprintf1.c: New file.
47121         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47122         * tests/unistdio/test-u32-vsprintf1.c: New file.
47123         * modules/unistdio/base: New file.
47124         * modules/unistdio/u-printf-args: New file.
47125         * modules/unistdio/ulc-asnprintf: New file.
47126         * modules/unistdio/ulc-asprintf: New file.
47127         * modules/unistdio/ulc-fprintf: New file.
47128         * modules/unistdio/ulc-printf-parse: New file.
47129         * modules/unistdio/ulc-snprintf: New file.
47130         * modules/unistdio/ulc-sprintf: New file.
47131         * modules/unistdio/ulc-vasnprintf: New file.
47132         * modules/unistdio/ulc-vasprintf: New file.
47133         * modules/unistdio/ulc-vfprintf: New file.
47134         * modules/unistdio/ulc-vsnprintf: New file.
47135         * modules/unistdio/ulc-vsprintf: New file.
47136         * modules/unistdio/u8-asnprintf: New file.
47137         * modules/unistdio/u8-asprintf: New file.
47138         * modules/unistdio/u8-printf-parse: New file.
47139         * modules/unistdio/u8-snprintf: New file.
47140         * modules/unistdio/u8-sprintf: New file.
47141         * modules/unistdio/u8-vasnprintf: New file.
47142         * modules/unistdio/u8-vasprintf: New file.
47143         * modules/unistdio/u8-vsnprintf: New file.
47144         * modules/unistdio/u8-vsprintf: New file.
47145         * modules/unistdio/u8-u8-asnprintf: New file.
47146         * modules/unistdio/u8-u8-asprintf: New file.
47147         * modules/unistdio/u8-u8-snprintf: New file.
47148         * modules/unistdio/u8-u8-sprintf: New file.
47149         * modules/unistdio/u8-u8-vasnprintf: New file.
47150         * modules/unistdio/u8-u8-vasprintf: New file.
47151         * modules/unistdio/u8-u8-vsnprintf: New file.
47152         * modules/unistdio/u8-u8-vsprintf: New file.
47153         * modules/unistdio/u16-asnprintf: New file.
47154         * modules/unistdio/u16-asprintf: New file.
47155         * modules/unistdio/u16-printf-parse: New file.
47156         * modules/unistdio/u16-snprintf: New file.
47157         * modules/unistdio/u16-sprintf: New file.
47158         * modules/unistdio/u16-vasnprintf: New file.
47159         * modules/unistdio/u16-vasprintf: New file.
47160         * modules/unistdio/u16-vsnprintf: New file.
47161         * modules/unistdio/u16-vsprintf: New file.
47162         * modules/unistdio/u16-u16-asnprintf: New file.
47163         * modules/unistdio/u16-u16-asprintf: New file.
47164         * modules/unistdio/u16-u16-snprintf: New file.
47165         * modules/unistdio/u16-u16-sprintf: New file.
47166         * modules/unistdio/u16-u16-vasnprintf: New file.
47167         * modules/unistdio/u16-u16-vasprintf: New file.
47168         * modules/unistdio/u16-u16-vsnprintf: New file.
47169         * modules/unistdio/u16-u16-vsprintf: New file.
47170         * modules/unistdio/u32-asnprintf: New file.
47171         * modules/unistdio/u32-asprintf: New file.
47172         * modules/unistdio/u32-printf-parse: New file.
47173         * modules/unistdio/u32-snprintf: New file.
47174         * modules/unistdio/u32-sprintf: New file.
47175         * modules/unistdio/u32-vasnprintf: New file.
47176         * modules/unistdio/u32-vasprintf: New file.
47177         * modules/unistdio/u32-vsnprintf: New file.
47178         * modules/unistdio/u32-vsprintf: New file.
47179         * modules/unistdio/u32-u32-asnprintf: New file.
47180         * modules/unistdio/u32-u32-asprintf: New file.
47181         * modules/unistdio/u32-u32-snprintf: New file.
47182         * modules/unistdio/u32-u32-sprintf: New file.
47183         * modules/unistdio/u32-u32-vasnprintf: New file.
47184         * modules/unistdio/u32-u32-vasprintf: New file.
47185         * modules/unistdio/u32-u32-vsnprintf: New file.
47186         * modules/unistdio/u32-u32-vsprintf: New file.
47187         * modules/unistdio/ulc-asnprintf-tests: New file.
47188         * modules/unistdio/ulc-vasnprintf-tests: New file.
47189         * modules/unistdio/ulc-vasprintf-tests: New file.
47190         * modules/unistdio/ulc-vsnprintf-tests: New file.
47191         * modules/unistdio/ulc-vsprintf-tests: New file.
47192         * modules/unistdio/u8-asnprintf-tests: New file.
47193         * modules/unistdio/u8-vasnprintf-tests: New file.
47194         * modules/unistdio/u8-vasprintf-tests: New file.
47195         * modules/unistdio/u8-vsnprintf-tests: New file.
47196         * modules/unistdio/u8-vsprintf-tests: New file.
47197         * modules/unistdio/u16-asnprintf-tests: New file.
47198         * modules/unistdio/u16-vasnprintf-tests: New file.
47199         * modules/unistdio/u16-vasprintf-tests: New file.
47200         * modules/unistdio/u16-vsnprintf-tests: New file.
47201         * modules/unistdio/u16-vsprintf-tests: New file.
47202         * modules/unistdio/u32-asnprintf-tests: New file.
47203         * modules/unistdio/u32-vasnprintf-tests: New file.
47204         * modules/unistdio/u32-vasprintf-tests: New file.
47205         * modules/unistdio/u32-vsnprintf-tests: New file.
47206         * modules/unistdio/u32-vsprintf-tests: New file.
47207         * MODULES.html.sh (Unicode string functions): Add the new modules.
47208
47209 2007-07-01  Bruno Haible  <bruno@clisp.org>
47210
47211         * lib/sprintf.c (sprintf): Limit the available length estimation,
47212         to avoid address wraparound.
47213         * lib/vsprintf.c (vsprintf): Likewise.
47214         * modules/sprintf-posix (Dependencies): Add stdint.
47215         * modules/vsprintf-posix (Dependencies): Likewise.
47216
47217 2007-07-01  Bruno Haible  <bruno@clisp.org>
47218
47219         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
47220         Windows PATH as well. Conservative double-quoting. Comments.
47221
47222 2007-07-01  Bruno Haible  <bruno@clisp.org>
47223             Eric Blake  <ebb9@byu.net>
47224             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47225
47226         * gnulib-tool (self_abspathname): Fix algorithm to cope with
47227         empty components in $PATH, denoting '.'.
47228
47229 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47230
47231         * gnulib-tool: Fix indentation.
47232         (func_create_megatestdir): Likewise.
47233         Report by Bruno Haible.
47234
47235 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47236
47237         Sync from Automake.
47238         * build-aux/gnupload: Fix shell portability issues with for loops.
47239         Report by Karl Berry.
47240
47241 2007-06-29  Simon Josefsson  <simon@josefsson.org>
47242
47243         * build-aux/maint.mk (POURL): Use translationproject.org.
47244
47245 2007-06-27  Simon Josefsson  <simon@josefsson.org>
47246             Bruno Haible  <bruno@clisp.org>
47247
47248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
47249         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
47250         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
47251         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
47252         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
47253
47254 2007-06-27  Bruno Haible  <bruno@clisp.org>
47255
47256         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
47257         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
47258
47259 2007-06-26  Karl Berry  <karl@gnu.org>
47260
47261         * MODULES.html.sh: remove xreadlink-with-size.
47262
47263 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47264
47265         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
47266         method that I hope also handles the double-include problem noted
47267         by Bruno Haible in
47268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
47269
47270 2007-06-23  Bruno Haible  <bruno@clisp.org>
47271
47272         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47273         Don't let the 'mostlyclean' target fail if the last subdirectory could
47274         not be removed.
47275         Reported by Karl Berry.
47276
47277 2007-06-23  Bruno Haible  <bruno@clisp.org>
47278
47279         * gnulib-tool (echo): Add a speedier workaround for ksh.
47280         * tests/test-echo.sh: Likewise.
47281
47282 2007-06-23  Bruno Haible  <bruno@clisp.org>
47283
47284         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
47285         * tests/test-echo.sh: Likewise.
47286
47287 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47288
47289         * gnulib-tool (IFS): Initialize early, so we don't set it to
47290         empty later.
47291         (self_abspathname): Rewrite algorithm to set it, reindent.
47292         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
47293         (func_create_megatestdir): Merge some sed scripts.
47294
47295 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47296
47297         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
47298         exposed by Sun Studio 11 cc on Solaris 8.
47299
47300 2007-06-22  Bruno Haible  <bruno@clisp.org>
47301
47302         * gnulib-tool (echo): Ensure the echo primitive does not interpret
47303         backslashes.
47304         * tests/test-echo.sh: New file.
47305
47306 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47307
47308         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
47309         simplify `sed_replace_build_aux' scripts, they are portable but
47310         echoing them with `echo' is not.
47311         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
47312
47313 2007-06-21  Karl Berry  <karl@gnu.org>
47314
47315         * config/srclist.txt: guess we can't handle the licenses via
47316         srclist at the moment.
47317
47318 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47319
47320         * MODULES.html.sh: Add include_next.
47321         * modules/include_next: New file.
47322
47323 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47324
47325         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
47326         INCLUDE_NEXT.
47327         (gl_CHECK_NEXT_HEADERS): New macro.
47328         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
47329         the obsolescent gl_ABSOLUTE_HEADER.
47330         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
47331         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
47332         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
47333         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47334         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47335         * m4/math_h.m4 (gl_MATH_H): Likewise.
47336         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47337         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
47338         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
47339         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47340         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
47341         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
47342         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
47343         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47344         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47345         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47346         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
47347         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
47348         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
47349         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47350         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47351         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47352         * m4/inttypes.m4 (gl_INTTYPES_H): Define
47353         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
47354         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
47355         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
47356         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
47357         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
47358         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
47359         * lib/float_.h: Likewise.
47360         * lib/inttypes_.h: Likewise.
47361         * lib/math_.h: Likewise.
47362         * lib/search_.h: Likewise.
47363         * lib/signal_.h: Likewise.
47364         * lib/stdint_.h: Likewise.
47365         * lib/stdio_.h: Likewise.
47366         * lib/stdlib_.h: Likewise.
47367         * lib/string_.h: Likewise.
47368         * lib/sys_stat_.h: Likewise.
47369         * lib/sys_time_.h: Likewise.
47370         * lib/time_.h: Likewise.
47371         * lib/unistd_.h: Likewise.
47372         * lib/wchar_.h: Likewise.
47373         * lib/wctype_.h: Likewise.
47374         * lib/dirent_.h: Likewise.
47375         * lib/iconv_.h: Likewise.
47376         * lib/locale_.h: Likewise.
47377         * lib/netinet_in_.h: Likewise.
47378         * lib/sys_select_.h: Likewise.
47379         * lib/sys_socket_.h: Likewise.
47380         * lib/sysexits_.h: Likewise.
47381         * modules/fcntl (Depends-on): Depend on include_next, not
47382         absolute_header.
47383         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
47384         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
47385         * modules/fchdir: Likewise.
47386         * modules/float: Likewise.
47387         * modules/iconv_open: Likewise.
47388         * modules/inttypes: Likewise.
47389         * modules/locale: Likewise.
47390         * modules/math: Likewise.
47391         * modules/netinet_in: Likewise.
47392         * modules/search: Likewise.
47393         * modules/signal: Likewise.
47394         * modules/stdint: Likewise.
47395         * modules/stdio: Likewise.
47396         * modules/stdlib: Likewise.
47397         * modules/string: Likewise.
47398         * modules/sys_select: Likewise.
47399         * modules/sys_socket: Likewise.
47400         * modules/sys_stat: Likewise.
47401         * modules/sys_time: Likewise.
47402         * modules/sysexits: Likewise.
47403         * modules/time: Likewise.
47404         * modules/unistd: Likewise.
47405         * modules/wchar: Likewise.
47406         * modules/wctype: Likewise.
47407         * modules/sys_stat: Change maintainer to "all".
47408         * modules/unistd: Likewise.
47409
47410 2007-06-20  Karl Berry  <karl@gnu.org>
47411
47412         * config/srclist.txt: track www changes in license files.
47413
47414 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
47415
47416         * build-aux/bootstrap: Remove stray dot.
47417         Make sure build_aux settings are honored when linking
47418         gnulib_extra_files.
47419
47420 2007-06-19  Eric Blake  <ebb9@byu.net>
47421
47422         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47423         Allow compilation on cygwin.
47424
47425 2007-06-19  Jim Meyering  <jim@meyering.net>
47426
47427         xreadlink-with-size: Remove module.  No longer used.
47428         Ex-callers now use xreadlink or mreadlink-with-size.
47429         * modules/xreadlink-with-size: Remove module.
47430         * lib/xreadlink-with-size.c: Remove file.
47431         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
47432         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
47433         just before the function definition *is* accurate.
47434
47435         Eliminate one way canonicalize_filename_mode could exit.
47436         * lib/canonicalize.c (canonicalize_filename_mode):
47437         Use mreadlink_with_size, not xreadlink_with_size.
47438
47439 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
47440
47441         Detect porting problems to FreeBSD/arm, which has time_t wider than
47442         long int.  Original problem reported for GNU diff by Xin Li in
47443         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
47444         * modules/getdate (Depends-on): Add intprops, verify.
47445         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
47446         is an integer type no wider than long int.
47447
47448 2007-06-18  Jim Meyering  <jim@meyering.net>
47449
47450         New module: mreadlink-with-size.
47451         * MODULES.html.sh: Add mreadlink-with-size.
47452         * modules/mreadlink-with-size: New module
47453         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
47454         not xreadlink-with-size.
47455         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
47456
47457 2007-06-16  Bruno Haible  <bruno@clisp.org>
47458
47459         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
47460         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
47461         Reported by Gary V. Vaughan <gary@gnu.org>.
47462
47463 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
47464
47465         Revamp lchown so that it lives in unistd.h where it belongs.
47466         * lib/lchown.h: Remove.
47467         * lib/dirchownmod.c: Don't include lib/lchown.h.
47468         * lib/fchownat.c: Likewise.
47469         * lib/openat.c: Likewise.
47470         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
47471         does not follow symlinks.
47472         (EOPNOTSUPP): Define if not defined.
47473         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
47474         is defined to 0.
47475         (lchown): New decl.
47476         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
47477         Do not check for lchown decl.
47478         Set REPLACE_LCHOWN.
47479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
47480         REPLACE_LCHOWN.
47481         * modules/chown: Make it clear it follows symlinks.
47482         * modules/lchown: Make it clear it doesn't follow symlinks.
47483         (Files): Remove lib/lchown.h
47484         (Depends-on): Add unistd.
47485         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
47486         (Include): Include <unistd.h>, not "lchown.h".
47487         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
47488         REPLACE_LCHOWN.
47489
47490 2007-06-15  Jim Meyering  <jim@meyering.net>
47491
47492         Change license (GPL to LGPL) of fsusage and dependents.
47493         * modules/fsusage (License): Change to LGPL.
47494         * modules/full-read (License): Likewise.
47495         * modules/full-write (License): Likewise.
47496         * modules/safe-read (License): Likewise.
47497         * modules/safe-write (License): Likewise.
47498
47499 2007-06-14  Ben Pfaff  <blp@gnu.org>
47500
47501         Missing part of allocsa -> malloca transition.
47502         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
47503         gl_MALLOCA.
47504
47505 2007-06-12  Bruno Haible  <bruno@clisp.org>
47506
47507         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
47508         to ia64, x86_64, i386.
47509         Reported by Eric Blake.
47510
47511 2007-06-12  Bruno Haible  <bruno@clisp.org>
47512
47513         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
47514         cross-compiling to x86_64.
47515
47516 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
47517
47518         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
47519         glitch reported by Ralf Wildenhues in
47520         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
47521
47522         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
47523         Vin Shelton.
47524
47525 2007-06-11  Bruno Haible  <bruno@clisp.org>
47526
47527         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
47528         replacement string.
47529         Reported by Eric Blake.
47530
47531 2007-06-10  Bruno Haible  <bruno@clisp.org>
47532
47533         Prepare vasnprintf code for use with Unicode strings.
47534         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
47535         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
47536         TYPE_U32_STRING.
47537         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
47538         a_u32_string variants.
47539         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47540         * lib/printf-args.c: Don't include config.h and the specification
47541         header if PRINTF_FETCHARGS is already defined.
47542         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
47543         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
47544         TYPE_U16_STRING, TYPE_U32_STRING.
47545         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
47546         u16_directive, u16_directives, u32_directive, u32_directives): New
47547         types.
47548         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
47549         New declarations.
47550         * lib/printf-parse.c: Don't include config.h and the specification
47551         header if PRINTF_PARSE is already defined. Eliminate the set of
47552         parameters for WIDE_CHAR_VERSION; the user of this file must provide
47553         them now. Include c-ctype.h.
47554         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
47555         directive and CHAR_T_ONLY_ASCII.
47556         * lib/vasnprintf.c: Don't include config.h and the specification header
47557         if VASNPRINTF is already defined.
47558         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
47559         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
47560         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
47561         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
47562         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
47563         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
47564         code accordingly.
47565         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
47566         pad_ourselves also in this case, with the 'c' and 's' directives, and
47567         with a different notion of "width".
47568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
47569
47570 2007-06-10  Bruno Haible  <bruno@clisp.org>
47571
47572         * modules/unistr/u32-mbsnlen: New file.
47573         * lib/unistr/u32-mbsnlen.c: New file.
47574
47575         * modules/unistr/u16-mbsnlen: New file.
47576         * lib/unistr/u16-mbsnlen.c: New file.
47577
47578         * modules/unistr/u8-mbsnlen: New file.
47579         * lib/unistr/u8-mbsnlen.c: New file.
47580
47581         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
47582         declarations.
47583
47584 2007-06-10  Bruno Haible  <bruno@clisp.org>
47585
47586         * lib/string_.h (mbsnlen): New declaration.
47587         * lib/mbsnlen.c: New file.
47588         * m4/mbsnlen.m4: New file.
47589         * modules/mbsnlen: New file.
47590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
47591         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
47592         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
47593
47594 2007-06-10  Bruno Haible  <bruno@clisp.org>
47595
47596         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
47597
47598 2007-06-10  Bruno Haible  <bruno@clisp.org>
47599
47600         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
47601         * lib/mbuiter.h: Likewise.
47602
47603 2007-06-10  Bruno Haible  <bruno@clisp.org>
47604
47605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
47606         declaration.
47607
47608 2007-06-10  Karl Berry  <karl@gnu.org>
47609
47610         * config/srclist.txt: remove gettext entries, Bruno prefers
47611         to update individually.
47612
47613 2007-06-10  Bruno Haible  <bruno@clisp.org>
47614
47615         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
47616         'maxlen'. Ensure only length + width bytes are allocated, not
47617         length + 1 + width.
47618
47619 2007-06-09  Bruno Haible  <bruno@clisp.org>
47620
47621         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
47622         (CHAR_T): Remove macro.
47623         (VASNPRINTF): Update.
47624
47625 2007-06-09  Bruno Haible  <bruno@clisp.org>
47626
47627         * MODULES.html.sh (Unicode string functions): Add the new modules.
47628
47629         * modules/uniconv/u32-conv-to-enc: New file.
47630         * lib/uniconv/u32-conv-to-enc.c: New file.
47631         * modules/uniconv/u32-conv-to-enc-tests: New file.
47632         * tests/uniconv/test-u32-conv-to-enc.c: New file.
47633
47634         * modules/uniconv/u16-conv-to-enc: New file.
47635         * lib/uniconv/u16-conv-to-enc.c: New file.
47636         * lib/uniconv/u-conv-to-enc.h: New file.
47637         * modules/uniconv/u16-conv-to-enc-tests: New file.
47638         * tests/uniconv/test-u16-conv-to-enc.c: New file.
47639
47640         * modules/uniconv/u8-conv-to-enc: New file.
47641         * lib/uniconv/u8-conv-to-enc.c: New file.
47642         * modules/uniconv/u8-conv-to-enc-tests: New file.
47643         * tests/uniconv/test-u8-conv-to-enc.c: New file.
47644
47645         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47646         u32_conv_to_encoding): New declarations.
47647
47648 2007-06-09  Bruno Haible  <bruno@clisp.org>
47649
47650         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
47651
47652 2007-06-09  Bruno Haible  <bruno@clisp.org>
47653
47654         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
47655         * modules/malloca: Renamed from modules/allocsa, updated.
47656         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
47657         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
47658         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
47659         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
47660         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
47661         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
47662         * modules/xmalloca: Renamed from modules/xallocsa, updated.
47663         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
47664         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
47665         * modules/c-strcasestr (Depends-on): Update.
47666         * lib/c-strcasestr.c: Update.
47667         * modules/c-strstr (Depends-on): Update.
47668         * lib/c-strstr.c: Update.
47669         * modules/canonicalize-lgpl (Depends-on): Update.
47670         * lib/canonicalize-lgpl.c: Update.
47671         * modules/clean-temp (Depends-on): Update.
47672         * lib/clean-temp.c: Update.
47673         * modules/csharpcomp (Depends-on): Update.
47674         * lib/csharpcomp.c: Update.
47675         * modules/csharpexec (Depends-on): Update.
47676         * lib/csharpexec.c: Update.
47677         * modules/javacomp (Depends-on): Update.
47678         * lib/javacomp.c: Update.
47679         * modules/javaexec (Depends-on): Update.
47680         * lib/javaexec.c: Update.
47681         * modules/mbscasestr (Depends-on): Update.
47682         * lib/mbscasestr.c: Update.
47683         * modules/mbsstr (Depends-on): Update.
47684         * lib/mbsstr.c: Update.
47685         * modules/setenv (Depends-on): Update.
47686         * lib/setenv.c: Update.
47687         * modules/strcasestr (Depends-on): Update.
47688         * lib/strcasestr.c: Update.
47689         * modules/striconveha (Depends-on): Update.
47690         * lib/striconveha.c: Update.
47691         * modules/relocatable-prog-wrapper (Files): Update.
47692         * lib/relocwrapper.c: Update.
47693         * build-aux/install-reloc: Update.
47694         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
47695
47696 2007-06-08  Bruno Haible  <bruno@clisp.org>
47697
47698         Port to uClibc.
47699         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
47700         * lib/fpurge.c (fpurge): Likewise.
47701         * lib/freading.c (freading): Likewise.
47702         * lib/fseeko.c (rpl_fseeko): Likewise.
47703         * lib/fseterr.c (fseterr): Likewise.
47704         * lib/fwriting.c (fwriting): Likewise.
47705         * tests/test-fflush.c (main): Avoid a failure on uClibc.
47706
47707 2007-06-08  Bruno Haible  <bruno@clisp.org>
47708
47709         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
47710         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
47711         * modules/gettext (Files): Add m4/intlmacosx.m4.
47712
47713 2007-06-07  Bruno Haible  <bruno@clisp.org>
47714
47715         * modules/localename-tests: New file.
47716         * tests/test-localename.c: New file.
47717
47718         New module 'localename'.
47719         * lib/localename.h: New file.
47720         * lib/localename.c: New file, from GNU gettext.
47721         * m4/localename.m4: New file.
47722         * modules/localename: New file.
47723
47724 2007-06-07  Bruno Haible  <bruno@clisp.org>
47725
47726         Work around the lack of <wchar.h> on some builds of uClibc.
47727         * doc/headers/wchar.texi: Update.
47728         * lib/wchar_.h: Include <wchar.h> only if it exists.
47729         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
47730         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
47731         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
47732         doesn't exist.
47733         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
47734         * modules/mbfile (Depends-on): Add wchar.
47735         * modules/mbiter (Depends-on): Likewise.
47736         * modules/mbuiter (Depends-on): Likewise.
47737         Reported by Simon Josefsson.
47738
47739 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
47740
47741         Work around problem reported by Steven M. Schweda in
47742         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
47743         Tru64 5.1B with the Compaq compiler environment installed declares
47744         an 'isblank' function but does not define it in the C library.
47745         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
47746         * lib/regex_internal.h (isblank): Likewise.
47747         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
47748         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47749
47750 2007-06-05  Bruno Haible  <bruno@clisp.org>
47751
47752         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
47753         ia64.
47754         * modules/printf-safe: New file.
47755         * modules/fprintf-posix (Depends-on): Add printf-safe.
47756         * modules/printf-posix (Depends-on): Likewise.
47757         * modules/snprintf-posix (Depends-on): Likewise.
47758         * modules/sprintf-posix (Depends-on): Likewise.
47759         * modules/vasnprintf-posix (Depends-on): Likewise.
47760         * modules/vasprintf-posix (Depends-on): Likewise.
47761         * modules/vfprintf-posix (Depends-on): Likewise.
47762         * modules/vprintf-posix (Depends-on): Likewise.
47763         * modules/vsnprintf-posix (Depends-on): Likewise.
47764         * modules/vsprintf-posix (Depends-on): Likewise.
47765         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47766         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
47767         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
47768         "no" on i386, x86_64, ia64.
47769         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
47770         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47771         on i386, x86_64, ia64.
47772         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
47773         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47774         on i386, x86_64, ia64.
47775         * tests/test-vasnprintf-posix.c: Include float.h.
47776         (LDBL80_WORDS): New macro.
47777         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47778         on i386, x86_64, ia64.
47779         * tests/test-vasprintf-posix.c: Include float.h.
47780         (LDBL80_WORDS): New macro.
47781         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
47782         on i386, x86_64, ia64.
47783         * tests/test-snprintf-posix.c: Include float.h.
47784         * tests/test-sprintf-posix.c: Likewise.
47785         * tests/test-vsnprintf-posix.c: Likewise.
47786         * tests/test-vsprintf-posix.c: Likewise.
47787
47788 2007-06-05  Bruno Haible  <bruno@clisp.org>
47789
47790         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
47791         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
47792         non-IEEE numbers on i386, x86_64, ia64.
47793         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
47794         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
47795         * tests/test-isnanl.h: Include float.h.
47796         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
47797
47798 2007-06-05  Bruno Haible  <bruno@clisp.org>
47799
47800         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
47801         also the %a / %A. Handle the %a / %A code before this extra handling.
47802
47803 2007-06-05  Bruno Haible  <bruno@clisp.org>
47804
47805         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
47806         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
47807
47808 2007-06-05  Bruno Haible  <bruno@clisp.org>
47809
47810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
47811         typo in variable name.
47812
47813 2007-06-05  Eric Blake  <ebb9@byu.net>
47814
47815         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
47816         Reported by Simon Josefsson.
47817
47818 2007-06-04  Bruno Haible  <bruno@clisp.org>
47819
47820         Avoid test failures on some PowerPC platforms.
47821         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
47822         Define differently for PowerPC.
47823         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
47824         Reported by Gary V. Vaughan <gary@gnu.org>.
47825
47826 2007-06-02  Bruno Haible  <bruno@clisp.org>
47827
47828         Fix test-stdint failure on FreeBSD/ia64.
47829         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
47830         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
47831         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
47832         * doc/headers/stdint.texi: Update.
47833
47834 2007-06-01  Bruno Haible  <bruno@clisp.org>
47835
47836         * tests/test-binary-io.c (main): Pass a third argument to open().
47837         Reported by Gary V. Vaughan <gary@gnu.org>.
47838
47839 2007-06-01  Bruno Haible  <bruno@clisp.org>
47840
47841         * doc/functions/frexpl.texi: Update for mingw.
47842
47843 2007-06-01  Bruno Haible  <bruno@clisp.org>
47844
47845         * tests/test-lseek.c (main): Disable test of errno for invalid third
47846         argument.
47847         * doc/functions/lseek.texi: Update.
47848         Reported by Gary V. Vaughan <gary@gnu.org>.
47849
47850 2007-05-28  Bruno Haible  <bruno@clisp.org>
47851
47852         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
47853
47854 2007-05-31  Eric Blake  <ebb9@byu.net>
47855
47856         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
47857         cross compiling.
47858
47859 2007-05-30  Eric Blake  <ebb9@byu.net>
47860         and Bruno Haible  <bruno@clisp.org>
47861
47862         Work around mingw test failures exposed by m4-1.4.9b.
47863         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
47864         * tests/test-unistd.c: Disable uid_t and git_t tests for the
47865         moment.
47866
47867 2007-05-30  Bruno Haible  <bruno@clisp.org>
47868
47869         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
47870         assuming that they are closed. Needed on HP-UX 11.
47871
47872 2007-05-29  Bruno Haible  <bruno@clisp.org>
47873
47874         Fix a problem with #include_next.
47875         * lib/dirent_.h: Split the double-inclusion guard.
47876         * lib/fcntl_.h: Likewise.
47877         * lib/float_.h: Likewise.
47878         * lib/iconv_.h: Likewise.
47879         * lib/inttypes_.h: Likewise.
47880         * lib/locale_.h: Likewise.
47881         * lib/math_.h: Likewise.
47882         * lib/netinet_in_.h: Likewise.
47883         * lib/search_.h: Likewise.
47884         * lib/signal_.h: Likewise.
47885         * lib/stdint_.h: Likewise.
47886         * lib/stdio_.h: Likewise.
47887         * lib/stdlib_.h: Likewise.
47888         * lib/string_.h: Likewise.
47889         * lib/sys_select_.h: Likewise.
47890         * lib/sys_socket_.h: Likewise.
47891         * lib/sys_stat_.h: Likewise.
47892         * lib/sys_time_.h: Likewise.
47893         * lib/sysexits_.h: Likewise.
47894         * lib/time_.h: Likewise.
47895         * lib/unistd_.h: Likewise.
47896         * lib/wchar_.h: Likewise.
47897         * lib/wctype_.h: Likewise.
47898
47899 2007-05-29  Bruno Haible  <bruno@clisp.org>
47900
47901         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
47902         for the moment.
47903
47904 2007-05-29  Bruno Haible  <bruno@clisp.org>
47905
47906         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
47907         invocation.
47908         Reported by Eric Blake.
47909
47910 2007-05-29  Bruno Haible  <bruno@clisp.org>
47911
47912         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
47913         compiling case.
47914
47915 2007-05-29  Eric Blake  <ebb9@byu.net>
47916             Bruno Haible  <bruno@clisp.org>
47917
47918         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
47919         cross compiles.
47920
47921 2007-05-28  Eric Blake  <ebb9@byu.net>
47922
47923         * modules/closein-tests (test_closein_LDADD): Support test on
47924         cygwin with libtool.
47925
47926 2007-05-28  Bruno Haible  <bruno@clisp.org>
47927
47928         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
47929         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47930         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47931         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47932         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47933         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47934         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47935         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47936         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47937
47938 2007-05-28  Eric Blake  <ebb9@byu.net>
47939
47940         Unconditionally include <config.h> in unit tests.
47941         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
47942         * tests/test-allocsa.c, tests/test-arcfour.c,
47943         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
47944         tests/test-array_list.c, tests/test-array_oset.c,
47945         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
47946         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
47947         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
47948         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
47949         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
47950         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
47951         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
47952         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
47953         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
47954         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
47955         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
47956         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
47957         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
47958         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
47959         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
47960         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
47961         test-md5.c, test-memmem.c, test-printf-posix.c,
47962         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
47963         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
47964         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
47965         test-strcasestr.c, test-striconv.c, test-striconveh.c,
47966         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
47967         test-vasnprintf-posix2.c, test-vasnprintf.c,
47968         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
47969         test-vfprintf-posix.c, test-vprintf-posix.c,
47970         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
47971         test-xvasprintf.c: Likewise.
47972
47973 2007-05-28  Bruno Haible  <bruno@clisp.org>
47974
47975         * gnulib-tool (func_import): Remember the --with-tests command-line
47976         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
47977         Reported by Eric Blake.
47978
47979 2007-05-28  Bruno Haible  <bruno@clisp.org>
47980
47981         * modules/ftell-tests: New file.
47982         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
47983         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
47984
47985         * lib/ftell.c: New file.
47986         * modules/ftell: New file.
47987         * m4/ftell.m4: New file.
47988         * doc/functions/ftell.texi: Update.
47989         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
47990         REPLACE_FTELL.
47991         * lib/stdio_.h (rpl_ftell): New declaration.
47992         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
47993         REPLACE_FTELL.
47994
47995 2007-05-28  Eric Blake  <ebb9@byu.net>
47996
47997         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
47998
47999 2007-05-28  Bruno Haible  <bruno@clisp.org>
48000
48001         * modules/fseek-tests: New file.
48002         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48003         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48004
48005         * lib/fseek.c: New file.
48006         * modules/fseek: New file.
48007         * m4/fseek.m4: New file.
48008         * doc/functions/fseek.texi: Update.
48009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48010         REPLACE_FSEEK.
48011         * lib/stdio_.h (rpl_fseek): New declaration.
48012         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48013         REPLACE_FSEEK.
48014
48015 2007-05-28  Bruno Haible  <bruno@clisp.org>
48016
48017         * lib/stdio_.h (fflush): More comments.
48018
48019 2007-05-28  Bruno Haible  <bruno@clisp.org>
48020
48021         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48022         runtime test.
48023
48024 2007-05-28  Eric Blake  <ebb9@byu.net>
48025
48026         Improve lseek module.
48027         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48028         * lib/unistd_.h (lseek): Scale back link warning message.
48029         * tests/test-lseek.c: Beef up test.
48030         * tests/test-lseek.sh: Exercise more facets of lseek.
48031         Reported by Bruno Haible.
48032
48033 2007-05-28  Bruno Haible  <bruno@clisp.org>
48034
48035         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48036         to define.
48037
48038 2007-05-27  Bruno Haible  <bruno@clisp.org>
48039
48040         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48041
48042 2007-05-27  Bruno Haible  <bruno@clisp.org>
48043
48044         * modules/openmp: New file.
48045         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48046         Noah Misch.
48047
48048 2007-05-26  Bruno Haible  <bruno@clisp.org>
48049
48050         * modules/chdir-long (Depends-on): Add fchdir.
48051         * modules/chdir-safer (Depends-on): Likewise.
48052         * modules/fts (Depends-on): Likewise.
48053         * modules/fts-lgpl (Depends-on): Likewise.
48054         * modules/openat (Depends-on): Likewise.
48055         * modules/savewd (Depends-on): Likewise.
48056
48057 2007-05-24  Eric Blake  <ebb9@byu.net>
48058
48059         Fix lseek on mingw.
48060         * modules/lseek: New module.
48061         * m4/lseek.m4: New file.
48062         * lib/lseek.c: New file.
48063         * modules/lseek-tests: New file.
48064         * tests/test-lseek.c: New file.
48065         * tests/test-lseek.sh: New file.
48066         * MODULES.html.sh: Document lseek module.
48067         * modules/fflush (Depends-on): Add lseek, fseeko.
48068         * modules/fseeko (Depends-on): Likewise.
48069         * modules/ftello (Depends-on): Likewise.
48070         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48071         broken.
48072         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48073         broken.
48074         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48075         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48076         * lib/ftello.c (rpl_ftello): Likewise.
48077         * tests/test-fseeko.c (main): Test this.
48078         * tests/test-fseeko.sh: Likewise.
48079         * tests/test-ftello.c (main): Likewise.
48080         * tests/test-ftello.sh: Likewise.
48081         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48082         implies replacing fseek.
48083         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48084         HAVE_FTELLO.
48085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48086         * modules/unistd (Makefile.am): Likewise.
48087         * lib/unistd_.h (lseek): Declare a replacement.
48088         * doc/functions/lseek.texi (lseek): Document this fix.
48089         * doc/functions/fseek.texi (fseek): Likewise.
48090         * doc/functions/ftell.texi (ftell): Likewise.
48091
48092 2007-05-24  Bruno Haible  <bruno@clisp.org>
48093
48094         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48095         in the printed representation of a NaN.
48096         * tests/test-vasprintf-posix.c (test_function): Likewise.
48097         * tests/test-snprintf-posix.h (test_function): Likewise.
48098         * tests/test-sprintf-posix.h (test_function): Likewise.
48099         Reported by Eric Blake.
48100
48101 2007-05-23  Eric Blake  <ebb9@byu.net>
48102
48103         Fix fseeko/ftello on cygwin 1.5.24.
48104         * doc/functions/fseeko.texi (fseeko): Document the fix.
48105         * doc/functions/ftello.texi (ftello): Document the fix.
48106         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48107         * doc/functions/stdout.text (stdout): New file.
48108         * doc/functions/stderr.text (stderr): New file.
48109         * doc/gnulib.texi (Function Substitutes): Use new files.
48110         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48111         prior to 1.7.0.
48112         * tests/test-ftello.c (main): Likewise for ftello.
48113         * tests/test-fseeko.sh: New file.
48114         * tests/test-ftello.sh: New file.
48115         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48116         with seekable stdin.
48117         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48118         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48119         (gl_REPLACE_FSEEKO): New macro.
48120         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48121         * modules/fseeko (Files): Distribute fseeko.c.
48122         * modules/ftello (Files): Distribute ftello.c.
48123         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48124         mode.
48125         * lib/ftello.c (rpl_ftello): New file.
48126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48127         fseeko, ftello.
48128         (gl_STDIN_LARGE_OFFSET): New macro.
48129         * modules/stdio (Makefile.am): Perform the replacement.
48130         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48131
48132 2007-05-23  Bruno Haible  <bruno@clisp.org>
48133
48134         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48135         GNULIB_POSIXCHECK is defined.
48136
48137 2007-05-21  Bruno Haible  <bruno@clisp.org>
48138
48139         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48140         Check also the output for NaN arguments. When cross-compiling, guess
48141         no on IRIX.
48142         * lib/vasnprintf.c: Update comments.
48143         * tests/test-vasnprintf-posix.c (strisnan): New function.
48144         (test_function): Use it.
48145         * tests/test-vasprintf-posix.c (strisnan): New function.
48146         (test_function): Use it.
48147         * tests/test-snprintf-posix.h (strisnan): New function.
48148         (test_function): Use it.
48149         * tests/test-sprintf-posix.h (strisnan): New function.
48150         (test_function): Use it.
48151         Reported by Eric Blake.
48152
48153 2007-05-20  Bruno Haible  <bruno@clisp.org>
48154
48155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48156         numbers that fails on BeOS.
48157         * doc/functions/frexpl.texi: Update.
48158
48159 2007-05-20  Jim Meyering  <jim@meyering.net>
48160
48161         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48162         forced upon us by glibc-2.6.
48163
48164 2007-05-20  Bruno Haible  <bruno@clisp.org>
48165
48166         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48167         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48168         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48169         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48170         NEED_PRINTF_INFINITE.
48171         (is_infinitel): New function.
48172         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48174         gl_PREREQ_VASNPRINTF_INFINITE.
48175         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48176         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48177         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48178         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48179         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48180         gl_PREREQ_VASNPRINTF_INFINITE.
48181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48185         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48186         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48187         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48188         * doc/functions/fprintf.texi: Update.
48189         * doc/functions/printf.texi: Update.
48190         * doc/functions/snprintf.texi: Update.
48191         * doc/functions/sprintf.texi: Update.
48192         * doc/functions/vfprintf.texi: Update.
48193         * doc/functions/vprintf.texi: Update.
48194         * doc/functions/vsnprintf.texi: Update.
48195         * doc/functions/vsprintf.texi: Update.
48196
48197 2007-05-20  Bruno Haible  <bruno@clisp.org>
48198
48199         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48200         was not found in libc.
48201         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48202
48203 2007-05-20  Bruno Haible  <bruno@clisp.org>
48204
48205         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48206         printed as "-nan" instead of "nan".
48207         * tests/test-vasprintf-posix.c (test_function): Likewise.
48208         * tests/test-snprintf-posix.h (test_function): Likewise.
48209         * tests/test-sprintf-posix.h (test_function): Likewise.
48210         Needed for HP-UX 11.
48211
48212 2007-05-20  Jim Meyering  <jim@meyering.net>
48213
48214         Fix buggy test for the fchownat-deref bug.
48215         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
48216         symlink required for the run-test.  Without it, this test would
48217         always declare that fchownat doesn't work, and client code would
48218         unnecessarily use the replacement function with fixed libc.
48219         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
48220         Reported by Greg Schafer.
48221
48222 2007-05-19  Bruno Haible  <bruno@clisp.org>
48223
48224         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
48225         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
48226         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
48227         Needed for IRIX 6.5 and Solaris 2.5.1.
48228
48229 2007-05-19  Bruno Haible  <bruno@clisp.org>
48230
48231         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
48232         (test_function): Skip tests involving -0.0 on platforms where
48233         -0.0 = 0.0.
48234         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
48235         (test_function): Skip tests involving -0.0 on platforms where
48236         -0.0 = 0.0.
48237         * tests/test-snprintf-posix.h (have_minus_zero): New function.
48238         (test_function): Skip tests involving -0.0 on platforms where
48239         -0.0 = 0.0.
48240         * tests/test-sprintf-posix.h (have_minus_zero): New function.
48241         (test_function): Skip tests involving -0.0 on platforms where
48242         -0.0 = 0.0.
48243         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
48244         tests.
48245         * tests/test-printf-posix.h (test_function): Likewise.
48246         * tests/test-printf-posix.output: Remove all -0.0 related results.
48247         Needed for IRIX 6.5.
48248
48249 2007-05-19  Bruno Haible  <bruno@clisp.org>
48250
48251         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
48252         printed as "nan0x7fffffff" instead of "nan".
48253         * tests/test-vasprintf-posix.c (test_function): Likewise.
48254         * tests/test-snprintf-posix.h (test_function): Likewise.
48255         * tests/test-sprintf-posix.h (test_function): Likewise.
48256         * tests/test-fprintf-posix.h (NaN): Remove macro.
48257         (test_function): Remove all NaN related tests.
48258         * tests/test-printf-posix.h (NaN): Remove macro.
48259         (test_function): Remove all NaN related tests.
48260         * tests/test-printf-posix.output: Remove all NaN related results.
48261         Needed for IRIX 6.5.
48262
48263 2007-05-19  Bruno Haible  <bruno@clisp.org>
48264
48265         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
48266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
48267
48268 2007-05-19  Bruno Haible  <bruno@clisp.org>
48269
48270         * lib/float_.h: New file.
48271         * m4/float_h.m4: New file.
48272         * modules/float: New file.
48273         * modules/isnanl (Dependencies): Add float.
48274         * modules/isnanl-nolibm (Dependencies): Likewise.
48275         * modules/mathl (Dependencies): Likewise.
48276         * modules/printf-frexpl (Dependencies): Likewise.
48277         * modules/signbit (Dependencies): Likewise.
48278         * modules/vasnprintf (Dependencies): Likewise.
48279         * doc/headers/float.texi: Update.
48280
48281 2007-05-19  Jim Meyering  <jim@meyering.net>
48282
48283         * lib/utimens.c (gl_futimens): Rename from futimens,
48284         now that glibc-2.6 declares futimens.
48285         * lib/utimens.h: Likewise.
48286
48287 2007-05-19  Bruno Haible  <bruno@clisp.org>
48288
48289         Avoid test failures on mingw.
48290         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
48291         * tests/test-printf-posix.sh: Likewise.
48292         * tests/test-vfprintf-posix.sh: Likewise.
48293         * tests/test-vprintf-posix.sh: Likewise.
48294
48295 2007-05-19  Bruno Haible  <bruno@clisp.org>
48296
48297         Fix *printf result for NaN, Inf, -0.0 on mingw.
48298         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
48299         * lib/vasnprintf.c: Include math.h and isnan.h.
48300         (is_infinite_or_zero): New function.
48301         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
48302         values in the %f, %F, %e, %E, %g, %G directives.
48303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
48304         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48305         gl_PRINTF_INFINITE and test its result. Invoke
48306         gl_PREREQ_VASNPRINTF_INFINITE.
48307         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48314         * doc/functions/fprintf.texi: Update.
48315         * doc/functions/printf.texi: Update.
48316         * doc/functions/snprintf.texi: Update.
48317         * doc/functions/sprintf.texi: Update.
48318         * doc/functions/vfprintf.texi: Update.
48319         * doc/functions/vprintf.texi: Update.
48320         * doc/functions/vsnprintf.texi: Update.
48321         * doc/functions/vsprintf.texi: Update.
48322
48323 2007-05-19  Bruno Haible  <bruno@clisp.org>
48324
48325         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
48326         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
48327         Instead of multiplying with 10^k, set extra_zeroes to k.
48328         (scale10_round_long_double): Remove function.
48329
48330 2007-05-18  Bruno Haible  <bruno@clisp.org>
48331
48332         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
48333         introduced on 2007-05-06.
48334
48335 2007-05-18  Bruno Haible  <bruno@clisp.org>
48336
48337         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
48338         %g directives.
48339         * tests/test-vasprintf-posix.c (test_function): Likewise.
48340         * tests/test-snprintf-posix.h (test_function): Likewise.
48341         * tests/test-sprintf-posix.h (test_function): Likewise.
48342
48343 2007-05-18  Bruno Haible  <bruno@clisp.org>
48344
48345         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
48346         (strmatch): New function.
48347         (test_function): Test the %f directive on numbers of various exponents.
48348         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
48349         (strmatch): New function.
48350         (test_function): Test the %f directive on numbers of various exponents.
48351         * tests/test-snprintf-posix.h (strmatch): New function.
48352         (test_function): Test the %f directive on numbers of various exponents.
48353         * tests/test-sprintf-posix.h (strmatch): New function.
48354         (test_function): Test the %f directive on numbers of various exponents.
48355         * tests/test-snprintf-posix.c (SIZEOF): New macro.
48356         * tests/test-sprintf-posix.c (SIZEOF): New macro.
48357         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
48358         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
48359
48360 2007-05-18  Bruno Haible  <bruno@clisp.org>
48361
48362         Add support for 'long double' number output.
48363         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
48364         * lib/vasnprintf.c: Include math.h and float+.h.
48365         (mp_limb_t): New type.
48366         (GMP_LIMB_BITS): New macro.
48367         (mp_twolimb_t): New type.
48368         (GMP_TWOLIMB_BITS): New macro.
48369         (mpn_t): New type.
48370         (multiply, divide, convert_to_decimal, decode_long_double,
48371         scale10_round_long_double, scale10_round_decimal_long_double,
48372         floorlog10l): New functions.
48373         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
48374         for the %f, %F, %e, %E, %g, %G directives.
48375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
48376         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48377         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
48378         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
48379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48380         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48381         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48382         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48383         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48384         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48385         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48386         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
48387         * modules/snprintf-posix (Depends-on): Likewise.
48388         * modules/sprintf-posix (Depends-on): Likewise.
48389         * modules/vasnprintf-posix (Depends-on): Likewise.
48390         * modules/vasprintf-posix (Depends-on): Likewise.
48391         * modules/vfprintf-posix (Depends-on): Likewise.
48392         * modules/vsnprintf-posix (Depends-on): Likewise.
48393         * modules/vsprintf-posix (Depends-on): Likewise.
48394         * modules/vasnprintf (Files): Add lib/float+.h.
48395         * doc/functions/fprintf.texi: Update.
48396         * doc/functions/printf.texi: Update.
48397         * doc/functions/snprintf.texi: Update.
48398         * doc/functions/sprintf.texi: Update.
48399         * doc/functions/vfprintf.texi: Update.
48400         * doc/functions/vprintf.texi: Update.
48401         * doc/functions/vsnprintf.texi: Update.
48402         * doc/functions/vsprintf.texi: Update.
48403
48404 2007-05-18  Bruno Haible  <bruno@clisp.org>
48405
48406         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
48407
48408 2007-05-18  Bruno Haible  <bruno@clisp.org>
48409
48410         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
48411         for printing 64-bit integers. Needed for mingw.
48412
48413 2007-05-18  Bruno Haible  <bruno@clisp.org>
48414
48415         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
48416         gl_FUNC_FREXPL_WORKS.
48417         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
48418
48419 2007-05-18  Bruno Haible  <bruno@clisp.org>
48420
48421         * modules/frexpl-nolibm-tests: New file.
48422
48423         * modules/frexpl-nolibm: New file.
48424         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
48425
48426 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
48427
48428         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
48429         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48430         GCC 4.2, which otherwise issues a lot of warnings.
48431         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
48432         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
48433         Likewise.
48434         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
48435         * modules/iconv_open (iconv.h): Likewise.
48436         * modules/locale (locale.h): Likewise.
48437         * modules/netinet_in (netinet/in.h): Likewise.
48438         * modules/sys_select (sys_select.h): Likewise.
48439         * modules/sys_socket (sys/socket.h): Likewise.
48440         * modules/sys_stat (sys/stat.h): Likewise.
48441         * modules/sysexits (sysexits.h): Likewise.
48442         * modules/unistd (unistd.h): Likewise.
48443
48444 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48445
48446         * modules/closein-tests (Makefile.am): Distribute
48447         `test-closein.sh'.
48448
48449 2007-05-17  Bruno Haible  <bruno@clisp.org>
48450
48451         * tests/test-printf-posix.output: Renamed from
48452         tests/test-fprintf-posix.out.
48453         * modules/fprintf-posix-tests: Update.
48454         * modules/printf-posix-tests: Update.
48455         * modules/vfprintf-posix-tests: Update.
48456         * modules/vprintf-posix-tests: Update.
48457         * tests/test-fprintf-posix.sh: Update.
48458         * tests/test-printf-posix.sh: Update.
48459         * tests/test-vfprintf-posix.sh: Update.
48460         * tests/test-vprintf-posix.sh: Update.
48461         Reported by Ralf Wildenhues.
48462
48463 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
48464
48465         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
48466         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
48467         GCC 4.2, which otherwise issues a lot of warnings.
48468         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
48469         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
48470         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
48471         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
48472         it should no longer be needed.
48473         * lib/string_.h: Likewise.
48474         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
48475         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
48476         * modules/inttypes (inttypes.h): Likewise.
48477         * modules/math (math.h): Likewise.
48478         * modules/search (search.h): Likewise.
48479         * modules/signal (signal.h): Likewise.
48480         * modules/stdint (stdint.h): Likewise.
48481         * modules/stdio (stdio.h): Likewise.
48482         * modules/stdlib (stdlib.h): Likewise.
48483         * modules/string (string.h): Likewise.
48484         * modules/sys_time (sys/time.h): Likewise.
48485         * modules/time (time.h): Likewise.
48486         * modules/wchar (wchar.h): Likewise.
48487         * modules/wctype (wtype.h): Likewise.
48488
48489 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48490
48491         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
48492
48493 2007-05-13  Bruno Haible  <bruno@clisp.org>
48494
48495         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
48496         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48497         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
48498         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48499         (gl_PREREQ_STRTOK_R): Don't require it here.
48500
48501 2007-05-13  Bruno Haible  <bruno@clisp.org>
48502
48503         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
48504         when used in C++ mode.
48505
48506 2007-05-12  Bruno Haible  <bruno@clisp.org>
48507
48508         * lib/linebuffer.h: Tweak doc.
48509         * lib/linebuffer.c: Likewise.
48510
48511 2007-05-12  James Youngman  <jay@gnu.org>
48512
48513         * lib/linebuffer.c (readlinebuffer_delim): New function,
48514         like readlinebuffer, but use a caller-specified delimiter.
48515         (readlinebuffer): Just call readlinebuffer_delim with '\n'
48516         as the delimiter.
48517         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
48518
48519 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48520
48521         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
48522         * modules/openat (Files): Remove openat-die.c.
48523         (Depends-on): Add openat-die.
48524         * modules/openat-die: New module.
48525
48526 2007-05-06  Bruno Haible  <bruno@clisp.org>
48527
48528         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
48529         Update with info about Cygwin.
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         Reported by Eric Blake.
48539
48540 2007-05-06  Bruno Haible  <bruno@clisp.org>
48541
48542         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
48543         padding ourselves for the floating-point directives.
48544         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
48545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
48546         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48547         gl_PRINTF_FLAG_ZERO and test its result. Invoke
48548         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
48549         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48550         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48551         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48552         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48553         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48554         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48555         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48556         * tests/test-snprintf-posix.h (test_function): Also check the width
48557         and some flags in the %f directive.
48558         * tests/test-sprintf-posix.h (test_function): Likewise.
48559         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48560         * tests/test-vasprintf-posix.c (test_function): Likewise.
48561         * doc/functions/fprintf.texi: Update.
48562         * doc/functions/printf.texi: Update.
48563         * doc/functions/snprintf.texi: Update.
48564         * doc/functions/sprintf.texi: Update.
48565         * doc/functions/vfprintf.texi: Update.
48566         * doc/functions/vprintf.texi: Update.
48567         * doc/functions/vsnprintf.texi: Update.
48568         * doc/functions/vsprintf.texi: Update.
48569
48570 2007-05-06  Bruno Haible  <bruno@clisp.org>
48571
48572         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
48573         pass the ' flag character to sprintf or snprintf.
48574         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
48575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
48576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48577         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
48578         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
48579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48580         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
48581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48583         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48584         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48585         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48586         * tests/test-snprintf-posix.h (test_function): Also check the grouping
48587         flag.
48588         * tests/test-sprintf-posix.h (test_function): Likewise.
48589         * tests/test-vasnprintf-posix.c (test_function): Likewise.
48590         * tests/test-vasprintf-posix.c (test_function): Likewise.
48591         * doc/functions/fprintf.texi: Update.
48592         * doc/functions/printf.texi: Update.
48593         * doc/functions/snprintf.texi: Update.
48594         * doc/functions/sprintf.texi: Update.
48595         * doc/functions/vfprintf.texi: Update.
48596         * doc/functions/vprintf.texi: Update.
48597         * doc/functions/vsnprintf.texi: Update.
48598         * doc/functions/vsprintf.texi: Update.
48599
48600 2007-05-01  Bruno Haible  <bruno@clisp.org>
48601
48602         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
48603
48604 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
48605
48606         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
48607         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
48608
48609 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
48610
48611         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
48612         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
48613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
48614
48615 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
48616
48617         * lib/argp-help.c (struct hol_entry): New member `ord'.
48618         (HOL_ENTRY_PTRCMP): Use ord for comparison
48619         (hol_sort): Initialize ord.
48620
48621 2007-05-01  Bruno Haible  <bruno@clisp.org>
48622
48623         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
48624         Reported by Eric Blake.
48625         * doc/gnulib.texi (Function Substitutes): Update.
48626
48627 2007-05-01  Bruno Haible  <bruno@clisp.org>
48628
48629         * doc/functions.texi: Remove file, now redundant through
48630         doc/functions/*.texi.
48631
48632 2007-05-01  Bruno Haible  <bruno@clisp.org>
48633
48634         * modules/argp (Depends-on): Add sleep.
48635
48636 2007-05-01  Bruno Haible  <bruno@clisp.org>
48637
48638         * modules/sleep-tests: New file.
48639         * tests/test-sleep.c: New file.
48640
48641         * modules/sleep: New file.
48642         * lib/sleep.c: New file.
48643         * m4/sleep.m4: New file.
48644         * lib/unistd_.h (sleep): New declaration.
48645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
48646         HAVE_SLEEP.
48647         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
48648         * doc/functions/sleep.texi: Document the sleep module.
48649
48650 2007-05-01  Bruno Haible  <bruno@clisp.org>
48651
48652         * lib/sigprocmask.h: Remove file.
48653         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
48654         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
48655         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
48656         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
48657         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48658         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
48659         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
48660         HAVE_SIGSET_T as a shell variable.
48661         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
48662         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
48663         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
48664         (Depends-on): Add signal. Remove verify.
48665         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
48666         (Include): Mention <signal.h> instead of sigprocmask.h.
48667         * NEWS: Mention the change.
48668         * lib/fatal-signal.c: Don't include sigprocmask.h.
48669
48670 2007-05-01  Bruno Haible  <bruno@clisp.org>
48671
48672         * modules/signal: New file.
48673         * lib/signal_.h: New file.
48674         * m4/signal_h.m4: New file.
48675
48676 2007-05-01  Bruno Haible  <bruno@clisp.org>
48677
48678         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
48679         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
48680         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
48681         HAVE_WCTYPE_CTMP_BUG into wctype.h.
48682
48683 2007-05-01  Bruno Haible  <bruno@clisp.org>
48684
48685         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
48686         configure time.
48687         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
48688         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
48689         * modules/sys_stat (Makefile.am): Substitute their values into
48690         sys/stat.h.
48691
48692 2007-05-01  Bruno Haible  <bruno@clisp.org>
48693
48694         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
48695         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
48696         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
48697
48698 2007-05-01  Bruno Haible  <bruno@clisp.org>
48699
48700         * doc/header/assert.texi: Undo last change: don't mention the gnulib
48701         'assert' module here.
48702
48703 2007-05-01  Bruno Haible  <bruno@clisp.org>
48704
48705         * doc/functions/*.texi: New files.
48706         * doc/functions/google-ranking.txt: New file.
48707         * doc/gnulib.texi (Function Substitutes): New chapter.
48708         (ctime, inet_ntoa): Remove sections.
48709         * doc/ctime.texi: Remove file.
48710         * doc/inet_ntoa.texi: Remove file.
48711         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
48712         dependencies.
48713         (%.info): New rule, specifying a --reference-limit.
48714
48715 2007-05-01  Bruno Haible  <bruno@clisp.org>
48716
48717         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
48718
48719 2007-05-01  Bruno Haible  <bruno@clisp.org>
48720
48721         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
48722         the portability of 'mkdir' to mingw systems.
48723
48724 2007-05-01  Bruno Haible  <bruno@clisp.org>
48725
48726         * doc/headers/google-ranking.txt: New file.
48727
48728 2007-04-30  Eric Blake  <ebb9@byu.net>
48729
48730         Prefer fseeko to fseek.
48731         * modules/getpass (Depends-on): Add fseeko.
48732         * lib/getpass.c (getpass): Use fseeko, not fseek.
48733
48734 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
48735
48736         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
48737         assumes the sorting is stable, while most qsort implementations
48738         are not.  Use argument addresses to ensure they never compare as
48739         equal.
48740
48741         * tests/test-argp-2.sh (usage-indent test): Fix output
48742         (func_compare): Restore diff options
48743         * tests/test-argp.c: Restore #include "progname.h"
48744
48745 2007-04-29  Bruno Haible  <bruno@clisp.org>
48746
48747         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
48748         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48749         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
48750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48751         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
48752         (configure.ac): Define CHECK_SNPRINTF_POSIX.
48753         (TESTS, check_PROGRAMS): Add test-snprintf.
48754         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
48755         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
48756         (TESTS, check_PROGRAMS): Add test-vsnprintf.
48757         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
48758         assertions that fail on HP-UX, OSF/1, or IRIX.
48759         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
48760
48761 2007-04-29  Bruno Haible  <bruno@clisp.org>
48762
48763         * MODULES.html.sh (posix_functions): Remove 'contents'.
48764
48765 2007-04-29  Karl Berry  <karl@gnu.org>
48766
48767         * config/srclist.txt (gendocs_template_min): new entry.
48768
48769 2007-04-29  Bruno Haible  <bruno@clisp.org>
48770
48771         Work around fpurge bug on BSD systems.
48772         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
48773         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
48774         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
48775         fpurge to rpl_fpurge if the system already has this function.
48776         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
48777         the case where the system already has this function. Correct invariants
48778         on BSD systems.
48779         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
48780         BSD systems.
48781
48782 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48783
48784         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
48785         proposed by Sven Verdoolaege.
48786
48787         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
48788         options.
48789         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
48790         (usage and help tests): Update
48791
48792 2007-04-29  Bruno Haible  <bruno@clisp.org>
48793
48794         * tests/test-fflush.c (main): Use a file of size 17, not 10.
48795         Print more information in case of failure. Disable a test on BeOS.
48796
48797 2007-04-29  Bruno Haible  <bruno@clisp.org>
48798
48799         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
48800         This helps debugging on systems on which no gdb is available.
48801
48802 2007-04-29  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/freading.h: Improve comments.
48805         * lib/fwriting.h: Likewise.
48806         * tests/test-freading.c (main): Don't check freading immediately after
48807         repositioning. Needed for glibc.
48808
48809 2007-04-29  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/freading.c (freading): Trivial simplification.
48812
48813 2007-04-28  Bruno Haible  <bruno@clisp.org>
48814
48815         * tests/test-fwriting.c (main): Also test the interaction between
48816         fflush and fwriting.
48817         * modules/fwriting-tests (Depends-on): Add fflush.
48818
48819         * tests/test-freading.c (main): Also test the interaction between
48820         fflush and freading.
48821         * modules/freading-tests (Depends-on): Add fflush.
48822
48823 2007-04-28  Bruno Haible  <bruno@clisp.org>
48824
48825         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
48826         fseeko and ftello.
48827         Suggested by Eric Blake.
48828
48829 2007-04-28  Jim Meyering  <jim@meyering.net>
48830
48831         Avoid false-negative in gl_STDINT_H's C99 conformance test.
48832         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
48833         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
48834
48835 2007-04-27  Eric Blake  <ebb9@byu.net>
48836
48837         * doc/headers/assert.texi (assert.h): Document assert module use.
48838
48839 2007-04-27  Bruno Haible  <bruno@clisp.org>
48840
48841         * doc/headers/*.texi: New files.
48842         * doc/gnulib.texi (Header File Substitutes): New chapter.
48843         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
48844         dependencies.
48845         (standards.info ,standards.html, standards.dvi): Update dependencies.
48846         (mostlyclean, clean): New targets.
48847
48848 2007-04-27  Bruno Haible  <bruno@clisp.org>
48849
48850         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
48851         * modules/sysexits (Files, Makefile.am): Update.
48852
48853         * lib/sys_socket_.h: Renamed from lib/socket_.h.
48854         * modules/sys_socket (Files, Makefile.am): Update.
48855
48856         * lib/sys_stat_.h: Renamed from lib/stat_.h.
48857         * modules/sys_stat (Files, Makefile.am): Update.
48858
48859 2007-04-27  Eric Blake  <ebb9@byu.net>
48860
48861         * lib/freading.h: Improve comments.
48862         * lib/fwriting.h: Likewise.
48863         * lib/fflush.c: Likewise.
48864
48865         Fix closein for mingw.
48866         * modules/closein-tests: Add tests for closein.
48867         * tests/test-closein.c: New file.
48868         * tests/test-closein.sh: Likewise.
48869         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
48870         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
48871
48872 2007-04-27  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
48875         version is < 6.
48876         * lib/math_.h [__DECC]: Likewise.
48877         * lib/stdio_.h [__DECC]: Likewise.
48878         * lib/stdlib_.h [__DECC]: Likewise.
48879         * lib/string_.h [__DECC]: Likewise.
48880         * lib/time_.h [__DECC]: Likewise.
48881         * lib/wchar_.h [__DECC]: Likewise.
48882         * lib/wctype_.h [__DECC]: Likewise.
48883
48884 2007-04-27  Bruno Haible  <bruno@clisp.org>
48885
48886         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
48887
48888 2007-04-27  Bruno Haible  <bruno@clisp.org>
48889
48890         * lib/fflush.c: Add comments.
48891         * modules/fpurge-tests (Depends-on): Add fflush.
48892         * modules/freadable-tests (Depends-on): Likewise.
48893         * modules/fwritable-tests (Depends-on): Likewise.
48894
48895 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
48896
48897         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
48898         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
48899         Report by Bruno Haible <bruno@clisp.org>.
48900
48901 2007-04-26  Eric Blake  <ebb9@byu.net>
48902
48903         Fix fflush on mingw.
48904         * modules/fflush (Depends-on): Add freading.
48905         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
48906         but unread data.
48907
48908 2007-04-26  Eric Blake  <ebb9@byu.net>
48909         and Bruno Haible  <bruno@clisp.org>
48910
48911         Implement freading and fwriting.
48912         * lib/freading.c: New file.
48913         * lib/freading.h: Likewise.
48914         * m4/freading.m4: Likewise.
48915         * modules/freading: Likewise.
48916         * modules/freading-tests: Likewise.
48917         * tests/test-freading.c: Likewise.
48918         * lib/fwriting.c: New file.
48919         * lib/fwriting.h: Likewise.
48920         * m4/fwriting.m4: Likewise.
48921         * modules/fwriting: Likewise.
48922         * modules/fwriting-tests: Likewise.
48923         * tests/test-fwriting.c: Likewise.
48924         * MODULES.html.sh (File stream based Input/Output): Mention them.
48925
48926 2007-04-26  Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
48929         'long' when we assume it.
48930         Suggested by Eric Blake.
48931
48932 2007-04-26  Bruno Haible  <bruno@clisp.org>
48933
48934         Ensure fseeko, ftello are declared on glibc systems.
48935         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
48936         * modules/fseeko (configure.ac-early): Likewise.
48937         * modules/ftello (configure.ac-early): Likewise.
48938         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
48939         AC_FUNC_FSEEKO for this.
48940         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
48941         (gl_CHECK_FSEEKO): Remove macro.
48942
48943 2007-04-26  Bruno Haible  <bruno@clisp.org>
48944
48945         * tests/test-fflush.c (main): Also check the ftell result after
48946         fflush and fseek/fseeko.
48947         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
48948         file descriptor position cache in the stream.
48949         * lib/fseeko.c (rpl_fseeko): Likewise.
48950
48951 2007-04-26  Bruno Haible  <bruno@clisp.org>
48952
48953         * modules/fflush-tests (Depends-on): Add fseeko.
48954
48955 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
48956             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48957
48958         * lib/argz_.h: ensure error_t definition is obtained in same
48959         mechanism system argz.h would have.
48960         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
48961         argz facilities are known bad.  Err on the side of caution if
48962         cross-compiling.
48963
48964 2007-04-25  Eric Blake  <ebb9@byu.net>
48965
48966         * lib/fpurge.c (includes): Use stdlib.h for free.
48967         * tests/test-fflush.c (main): Also test fflush-fseeko.
48968
48969 2007-04-25  Bruno Haible  <bruno@clisp.org>
48970
48971         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
48972         * lib/fseeko.c: New file.
48973         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
48974         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
48975         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
48976         gl_FUNC_FSEEKO.
48977         (gl_FUNC_FSEEKO): Invoke it.
48978         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
48979         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
48980         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
48981
48982 2007-04-25  Bruno Haible  <bruno@clisp.org>
48983
48984         * modules/fflush (Depends-on): Add ftello.
48985
48986 2007-04-25  Bruno Haible  <bruno@clisp.org>
48987
48988         * modules/ftello-tests: New file.
48989         * tests/test-ftello.c: New file.
48990
48991         * modules/ftello: New file.
48992         * m4/ftello.m4: New file.
48993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
48994         HAVE_FTELLO.
48995         * lib/stdio_.h (ftello): New declaration.
48996         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
48997         HAVE_FTELLO.
48998
48999 2007-04-25  Bruno Haible  <bruno@clisp.org>
49000
49001         * modules/fseeko-tests: New file.
49002         * tests/test-fseeko.c: New file.
49003
49004         * modules/fseeko: New file.
49005         * m4/fseeko.m4: New file.
49006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49007         HAVE_FSEEKO.
49008         * lib/stdio_.h (fseeko): New declaration.
49009         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49010         HAVE_FSEEKO.
49011
49012 2007-04-25  Bruno Haible  <bruno@clisp.org>
49013
49014         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49015
49016 2007-04-25  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49019         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49020         * tests/test-unistd.c: Likewise.
49021         * tests/test-fcntl.c: Likewise.
49022
49023 2007-04-23  Eric Blake  <ebb9@byu.net>
49024
49025         * lib/fflush.c: Fix missing include.
49026         Reported by Bruno Haible.
49027
49028 2007-04-23  Bruno Haible  <bruno@clisp.org>
49029
49030         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49031         Reported by Eric Blake.
49032
49033 2007-04-23  Bruno Haible  <bruno@clisp.org>
49034
49035         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49036
49037 2007-04-23  Bruno Haible  <bruno@clisp.org>
49038
49039         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49040
49041 2007-04-23  Bruno Haible  <bruno@clisp.org>
49042
49043         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49044         Needed on HP-UX 11.
49045
49046 2007-04-16  Eric Blake  <ebb9@byu.net>
49047
49048         Make fflush rely on fpurge.
49049         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49050         open coding all variants.
49051         * modules/fflush (Depends-on): Add fpurge and unistd.
49052         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49053         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49054
49055         Fix --with-tests compilation on cygwin.
49056         * modules/argmatch-tests (Makefile.am): List gnulib library first
49057         in LDADD.
49058         * modules/argp-tests (Makefile.am): Likewise.
49059         * modules/array-list-tests (Makefile.am): Likewise.
49060         * modules/array-oset-tests (Makefile.am): Likewise.
49061         * modules/avltree-list-tests (Makefile.am): Likewise.
49062         * modules/avltree-oset-tests (Makefile.am): Likewise.
49063         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49064         * modules/carray-list-tests (Makefile.am): Likewise.
49065         * modules/dirname-tests (Makefile.am): Likewise.
49066         * modules/frexp-tests (Makefile.am): Likewise.
49067         * modules/isnanl-tests (Makefile.am): Likewise.
49068         * modules/linked-list-tests (Makefile.am): Likewise.
49069         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49070         * modules/lock-tests (Makefile.am): Likewise.
49071         * modules/rbtree-list-tests (Makefile.am): Likewise.
49072         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49073         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49074         * modules/tls-tests (Makefile.am): Likewise.
49075         * modules/tsearch-tests (Makefile.am): Likewise.
49076         * modules/xvasprintf-tests (Makefile.am): Likewise.
49077
49078         Fix fpurge for cygwin.
49079         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49080         value.
49081         * modules/fpurge-tests (Depends-on): Clean up trash.
49082
49083 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49084
49085         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49086
49087         * m4/autobuild.m4: Re-indent.
49088
49089 2007-04-13  Bruno Haible  <bruno@clisp.org>
49090
49091         * modules/fpurge-tests: New file.
49092         * tests/test-fpurge.c: New file.
49093
49094         * modules/fpurge: New file.
49095         * lib/fpurge.h: New file.
49096         * lib/fpurge.c: New file.
49097         * m4/fpurge.m4: New file.
49098
49099 2007-04-13  Bruno Haible  <bruno@clisp.org>
49100
49101         * modules/fbufmode-tests: New file.
49102         * tests/test-fbufmode.c: New file.
49103
49104         * modules/fbufmode: New file.
49105         * lib/fbufmode.h: New file.
49106         * lib/fbufmode.c: New file.
49107         * m4/fbufmode.m4: New file.
49108
49109 2007-04-13  Bruno Haible  <bruno@clisp.org>
49110
49111         * modules/fwritable-tests: New file.
49112         * tests/test-fwritable.c: New file.
49113
49114         * modules/fwritable: New file.
49115         * lib/fwritable.h: New file.
49116         * lib/fwritable.c: New file.
49117         * m4/fwritable.m4: New file.
49118
49119 2007-04-13  Bruno Haible  <bruno@clisp.org>
49120
49121         * modules/freadable-tests: New file.
49122         * tests/test-freadable.c: New file.
49123
49124         * modules/freadable: New file.
49125         * lib/freadable.h: New file.
49126         * lib/freadable.c: New file.
49127         * m4/freadable.m4: New file.
49128
49129 2007-04-13  Bruno Haible  <bruno@clisp.org>
49130
49131         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49132         MOSTLYCLEANFILES.
49133
49134 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49135
49136         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49137         gzip bootstrap.conf to avoid dragging in i18n machinery.
49138         (gnulib_tool_option): Use it.
49139
49140 2007-04-13  Bruno Haible  <bruno@clisp.org>
49141
49142         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49143         %F directives.
49144         * tests/test-vasprintf-posix.c (test_function): Likewise.
49145         * tests/test-snprintf-posix.h (test_function): Likewise.
49146         * tests/test-sprintf-posix.h (test_function): Likewise.
49147         * tests/test-fprintf-posix.h (test_function): Likewise.
49148         * tests/test-printf-posix.h (test_function): Likewise.
49149         * tests/test-fprintf-posix.out: Likewise.
49150
49151 2007-04-13  Bruno Haible  <bruno@clisp.org>
49152
49153         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49154         * modules/tls-tests (configure.ac): Likewise.
49155         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49156
49157 2007-04-13  Bruno Haible  <bruno@clisp.org>
49158
49159         * lib/tls.c (glthread_tls_get): Fix return type.
49160         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49161
49162 2007-04-12  Eric Blake  <ebb9@byu.net>
49163
49164         * modules/gettime (Depends-on): Remove gettime.
49165         Reported by Dmitry V. Levin.
49166
49167 2007-04-12  Bruno Haible  <bruno@clisp.org>
49168
49169         * modules/fflush (Include): Mention <stdio.h>.
49170         * modules/strtoimax (Include): Mention <inttypes.h>.
49171         * modules/strtoumax (Include): Likewise.
49172
49173 2007-04-12  Eric Blake  <ebb9@byu.net>
49174
49175         * .cvsignore: New file.
49176         * .gitignore: Likewise.
49177
49178 2007-04-12  Bruno Haible  <bruno@clisp.org>
49179
49180         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49181         not before, since $(LDADD) often contains libgnu.a.
49182         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49183         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49184         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49185         Needed on Cygwin.
49186
49187 2007-04-12  Eric Blake  <ebb9@byu.net>
49188
49189         Work around glibc's failure to flush stdin on fclose.
49190         * lib/closein.c (close_stdin): Flush stdin before closing.
49191
49192         Work around glibc's failure to reset seekable stdin on exit.
49193         * modules/closein: New module.
49194         * lib/closein.c: New file.
49195         * lib/closein.h: Likewise.
49196         * m4/closein.m4: Likewise.
49197         * MODULES.html.sh (File stream based Input/Output): Document it.
49198
49199 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49200
49201         * gnulib-tool: Rename generated 'autobuild' script to
49202         'do-autobuild' in --create-megatestdir output.
49203
49204         * doc/gnulib.texi (Build robot for gnulib): Fix.
49205
49206 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49207
49208         * modules/sysexits (Depends-on): Add absolute-header.
49209
49210 2007-04-12  Eric Blake  <ebb9@byu.net>
49211
49212         No need to preserve errno on success.
49213         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
49214         Reported by Bruno Haible.
49215
49216 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49217
49218         * MODULES.html.sh (Support for maintaining and releasing
49219         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
49220
49221 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49222
49223         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
49224
49225 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49226
49227         * modules/autobuild: New module.
49228
49229         * m4/autobuild.m4: New file.
49230
49231 2007-04-11  Bruno Haible  <bruno@clisp.org>
49232
49233         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
49234         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
49235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
49236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
49237         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49238         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49239         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49240         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49241         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49242         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49243         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
49244         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49245         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
49247         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49248         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
49250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49252         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
49253         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49254         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
49256         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49257         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49258         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
49259         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
49260         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
49261         Reported by Eric Blake.
49262
49263 2007-04-11  Bruno Haible  <bruno@clisp.org>
49264
49265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
49266
49267 2007-04-10  Bruno Haible  <bruno@clisp.org>
49268
49269         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
49270         for NaN and Infinity. Needed on FreeBSD 6.1.
49271         * tests/test-vasnprintf-posix.c (test_function): Undo last change
49272         regarding results for "%010a" of Infinity and NaN.
49273         * tests/test-vasprintf-posix.c (test_function): Likewise.
49274         * tests/test-snprintf-posix.h (test_function): Likewise.
49275         * tests/test-sprintf-posix.h (test_function): Likewise.
49276         * tests/test-fprintf-posix.h (test_function): Likewise.
49277         * tests/test-printf-posix.h (test_function): Likewise.
49278         * tests/test-fprintf-posix.out: Likewise.
49279
49280 2007-04-10  Bruno Haible  <bruno@clisp.org>
49281
49282         * modules/locale-tests: New file.
49283         * tests/test-locale.c: New file.
49284
49285         * modules/locale: New file.
49286         * lib/locale_.h: New file.
49287         * m4/locale_h.m4: New file.
49288
49289 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
49290             Bruno Haible  <bruno@clisp.org>
49291
49292         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
49293         be determined, test for availability of the copysignf, copysign,
49294         copysignl functions.
49295         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
49296         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
49297         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
49298
49299 2007-04-09  Eric Blake  <ebb9@byu.net>
49300
49301         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
49302         * modules/stdio (Makefile.am): Support fflush.
49303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49304         * modules/fflush: New file.
49305         * lib/fflush.c: Likewise.
49306         * m4/fflush.m4: Likewise.
49307         * modules/fflush-tests: New test.
49308         * tests/test-fflush.c: Likewise.
49309         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
49310
49311 2007-04-06  Bruno Haible  <bruno@clisp.org>
49312
49313         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
49314         (VASNPRINTF): Use signbit for faster determination whether to print a
49315         minus sign.
49316         * modules/vasnprintf (Files): Remove lib/float+.h.
49317         * modules/fprintf-posix (Depends-on): Add signbit.
49318         * modules/snprintf-posix (Depends-on): Likewise.
49319         * modules/sprintf-posix (Depends-on): Likewise.
49320         * modules/vasnprintf-posix (Depends-on): Likewise.
49321         * modules/vasprintf-posix (Depends-on): Likewise.
49322         * modules/vfprintf-posix (Depends-on): Likewise.
49323         * modules/vsnprintf-posix (Depends-on): Likewise.
49324         * modules/vsprintf-posix (Depends-on): Likewise.
49325
49326 2007-04-06  Bruno Haible  <bruno@clisp.org>
49327
49328         * tests/test-frexp.c (main): Test also the sign bit of zero results.
49329         * tests/test-frexpl.c (main): Likewise.
49330         * tests/test-ldexpl.c (main): Likewise.
49331         * modules/frexp-tests (Depends-on): Add signbit.
49332         * modules/frexpl-tests (Depdends-on): Likewise.
49333         * modules/ldexpl-tests (Depdends-on): Likewise.
49334
49335 2007-04-06  Bruno Haible  <bruno@clisp.org>
49336
49337         * modules/signbit-tests: New file.
49338         * tests/test-signbit.c: New file.
49339
49340         * modules/signbit: New file.
49341         * lib/signbitf.c: New file.
49342         * lib/signbitd.c: New file.
49343         * lib/signbitl.c: New file.
49344         * m4/signbit.m4: New file.
49345         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
49346         (signbit): New macro.
49347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
49348         REPLACE_SIGNBIT.
49349         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
49350         REPLACE_FREXPL into math.h.
49351
49352 2007-04-06  Bruno Haible  <bruno@clisp.org>
49353
49354         * modules/isnanf-nolibm-tests: New file.
49355         * tests/test-isnanf.c: New file.
49356
49357         * modules/isnanf-nolibm: New file.
49358         * lib/isnanf.h: New file.
49359         * lib/isnanf.c: New file.
49360         * lib/isnan.c: Consider the USE_FLOAT macro.
49361         * m4/isnanf.m4: New file.
49362
49363 2007-04-06  Bruno Haible  <bruno@clisp.org>
49364
49365         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
49366         (Link): New section.
49367
49368         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
49369
49370 2007-04-06  Bruno Haible  <bruno@clisp.org>
49371
49372         Assume the 'long double' type.
49373         * m4/longdouble.m4: Remove file.
49374         * config/srclist.txt: Don't mention longdouble.m4.
49375         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
49376         * lib/float+.h: Likewise.
49377         * lib/frexp.c: Likewise.
49378         * lib/printf-args.h: Likewise.
49379         * lib/printf-args.c: Likewise.
49380         * lib/printf-frexp.c: Likewise.
49381         * lib/printf-parse.c: Likewise.
49382         * lib/vasnprintf.c: Likewise.
49383         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
49384         * m4/intl.m4: Likewise.
49385         * m4/isnanl.m4: Likewise.
49386         * m4/printf.m4: Likewise.
49387         * m4/printf-frexpl.m4: Likewise.
49388         * m4/vasnprintf.m4: Likewise.
49389         * modules/allocsa (Files): Remove m4/longdouble.m4.
49390         * modules/gettext (Files): Likewise.
49391         * modules/relocatable-prog-wrapper (Files): Likewise.
49392         * modules/vasnprintf (Files): Likewise.
49393         * modules/isnanl (Files): Likewise.
49394         (Include): Simplify.
49395         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
49396         (Include): Simplify.
49397         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
49398         (Include): Simplify.
49399         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
49400         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49401         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
49402         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49403         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49404         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49405         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
49406         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49407         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
49408         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49409         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
49410         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
49411         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
49412         * tests/test-isnanl.c: Likewise.
49413         * tests/test-snprintf-posix.h: Likewise.
49414         * tests/test-sprintf-posix.h: Likewise.
49415         * tests/test-vasnprintf-posix.c: Likewise.
49416         * tests/test-vasnprintf-posix2.c: Likewise.
49417         * tests/test-vasprintf-posix.c: Likewise.
49418
49419 2007-04-06  Bruno Haible  <bruno@clisp.org>
49420
49421         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
49422         * lib/math_.h [__DECC]: Include the overridden include file through
49423         #include_next, outside the double-inclusion guard.
49424         * lib/stdio_.h [__DECC]: Likewise.
49425         * lib/stdlib_.h [__DECC]: Likewise.
49426         * lib/string_.h [__DECC]: Likewise.
49427         * lib/time_.h [__DECC]: Likewise.
49428         * lib/wchar_.h [__DECC]: Likewise.
49429         * lib/wctype_.h [__DECC]: Likewise.
49430         * lib/inttypes_.h [__DECC]: Likewise.
49431         Reported by Albert Chin <china@thewrittenword.com> in
49432         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
49433
49434 2007-04-04  Eric Blake  <ebb9@byu.net>
49435
49436         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
49437         1.5.x.
49438
49439 2007-04-04  Bruno Haible  <bruno@clisp.org>
49440
49441         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
49442         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
49443
49444 2007-04-04  Bruno Haible  <bruno@clisp.org>
49445
49446         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
49447         results for "%010a" of Infinity and NaN.
49448         * tests/test-vasprintf-posix.c (test_function): Likewise.
49449         * tests/test-snprintf-posix.h (test_function): Likewise.
49450         * tests/test-sprintf-posix.h (test_function): Likewise.
49451         * tests/test-fprintf-posix.h (test_function): Remove these tests.
49452         * tests/test-printf-posix.h (test_function): Likewise.
49453         * tests/test-fprintf-posix.out: Update.
49454         Needed for FreeBSD 6.1.
49455
49456 2007-04-04  Bruno Haible  <bruno@clisp.org>
49457
49458         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
49459         directly used by the gnulib modules nor by gnulib-tool.
49460
49461 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49462
49463         * DEPENDENCIES: Give overall description of version dependency
49464         desirability.  Use more-typical names for apps.
49465         Add shell, coreutils, diffutils, grep, tar, gzip.
49466
49467 2007-04-04  Simon Josefsson  <simon@josefsson.org>
49468
49469         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
49470
49471 2007-04-04  Karl Berry  <karl@gnu.org>
49472
49473         * MODULES.html.sh (func_module): missing '.
49474
49475 2007-04-03  Bruno Haible  <bruno@clisp.org>
49476
49477         * modules/argmatch-tests (Makefile.am): New variable
49478         test_argmatch_LDADD.
49479         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
49480         * modules/array-list-tests (Makefile.am): New variable
49481         test_array_list_LDADD.
49482         * modules/array-oset-tests (Makefile.am): New variable
49483         test_array_oset_LDADD.
49484         * modules/avltree-list-tests (Makefile.am): New variable
49485         test_avltree_list_LDADD.
49486         * modules/avltree-oset-tests (Makefile.am): New variable
49487         test_avltree_oset_LDADD.
49488         * modules/avltreehash-list-tests (Makefile.am): New variable
49489         test_avltreehash_list_LDADD.
49490         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
49491         test_canonicalize_lgpl_LDADD.
49492         * modules/carray-list-tests (Makefile.am): New variable
49493         test_carray_list_LDADD.
49494         * modules/dirname-tests (Makefile.am): New variable
49495         test_dirname_LDADD.
49496         * modules/linked-list-tests (Makefile.am): New variable
49497         test_linked_list_LDADD.
49498         * modules/linkedhash-list-tests (Makefile.am): New variable
49499         test_linkedhash_list_LDADD.
49500         * modules/rbtree-list-tests (Makefile.am): New variable
49501         test_rbtree_list_LDADD.
49502         * modules/rbtree-oset-tests (Makefile.am): New variable
49503         test_rbtree_oset_LDADD.
49504         * modules/rbtreehash-list-tests (Makefile.am): New variable
49505         test_rbtreehash_list_LDADD.
49506         * modules/xvasprintf-tests (Makefile.am): New variable
49507         test_xvasprintf_LDADD.
49508         Reported by Eric Blake.
49509
49510 2007-04-03  Eric Blake  <ebb9@byu.net>
49511
49512         * DEPENDENCIES: Weaken m4 requirements.
49513
49514 2007-04-03  Bruno Haible  <bruno@clisp.org>
49515
49516         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
49517         * modules/isnanl-tests (configure.ac): Likewise.
49518
49519 2007-04-03  Ben Pfaff  <blp@gnu.org>
49520
49521         * modules/iconv_open: Add $(srcdir)/ to source directory
49522         references in Makefile fragments that call gperf, to fix VPATH
49523         builds.
49524
49525 2007-04-03  Bruno Haible  <bruno@clisp.org>
49526
49527         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
49528         * lib/ldexpl.c: Undo last change.
49529
49530 2007-04-03  Bruno Haible  <bruno@clisp.org>
49531
49532         * modules/printf-frexpl (Depends-on): Undo last change.
49533         (Files): Add m4/ldexpl.m4.
49534
49535 2007-04-03  Bruno Haible  <bruno@clisp.org>
49536
49537         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
49538         * modules/isnanl (Link): New section.
49539
49540         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
49541         * modules/frexp (Link): New section.
49542
49543         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
49544         * modules/frexpl (Link): New section.
49545
49546         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
49547         * modules/ldexpl (Link): New section.
49548
49549 2007-04-03  Bruno Haible  <bruno@clisp.org>
49550
49551         * modules/TEMPLATE-EXTENDED: New file.
49552         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
49553
49554 2007-04-03  Bruno Haible  <bruno@clisp.org>
49555
49556         * DEPENDENCIES: New file.
49557         Suggested by Simon Josefsson.
49558
49559 2007-04-03  Bruno Haible  <bruno@clisp.org>
49560
49561         * doc/gnulib.texi: Escape @.
49562
49563 2007-04-03  James Youngman  <jay@gnu.org>
49564         and Paul Eggert  <eggert@cs.ucla.edu>
49565
49566         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
49567         birthtime on all systems that have birthtime, not just those which
49568         use st_birthtimensec rather than st_birthtim.  Putting zero in
49569         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
49570         that the birth time is not available for files on an NFS mount.
49571
49572 2007-04-03  Simon Josefsson  <simon@josefsson.org>
49573
49574         * modules/memxor: Move back from crypto/, suggested by Bruno.
49575         * modules/crypto/hmac-sha1: Fix memxor dependency.
49576
49577         * modules/crypto/gc: Moved from ../.
49578
49579 2007-04-02  Eric Blake  <ebb9@byu.net>
49580
49581         * lib/ldexpl.c (includes): Avoid libm.
49582
49583         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
49584
49585 2007-04-02  Bruno Haible  <bruno@clisp.org>
49586
49587         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
49588         on IRIX.
49589
49590 2007-04-02  Bruno Haible  <bruno@clisp.org>
49591
49592         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
49593         x86 or x86_64 platforms running MacOS X.
49594         Reported by Ryan Schmidt <@ryandesign.com>.
49595
49596 2007-04-02  Bruno Haible  <bruno@clisp.org>
49597
49598         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
49599         i386.
49600
49601 2007-04-01  Simon Josefsson  <simon@josefsson.org>
49602
49603         * modules/crypto/arcfour: Moved from ../.
49604         * modules/crypto/arcfour-tests: Moved from ../.
49605         * modules/crypto/arctwo: Moved from ../.
49606         * modules/crypto/arctwo-tests: Moved from ../.
49607         * modules/crypto/des: Moved from ../.
49608         * modules/crypto/des-tests: Moved from ../.
49609         * modules/crypto/gc-arcfour: Moved from ../.
49610         * modules/crypto/gc-arcfour-tests: Moved from ../.
49611         * modules/crypto/gc-arctwo: Moved from ../.
49612         * modules/crypto/gc-arctwo-tests: Moved from ../.
49613         * modules/crypto/gc-des: Moved from ../.
49614         * modules/crypto/gc-des-tests: Moved from ../.
49615         * modules/crypto/gc-hmac-md5: Moved from ../.
49616         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
49617         * modules/crypto/gc-hmac-sha1: Moved from ../.
49618         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
49619         * modules/crypto/gc-md2: Moved from ../.
49620         * modules/crypto/gc-md2-tests: Moved from ../.
49621         * modules/crypto/gc-md4: Moved from ../.
49622         * modules/crypto/gc-md4-tests: Moved from ../.
49623         * modules/crypto/gc-md5: Moved from ../.
49624         * modules/crypto/gc-md5-tests: Moved from ../.
49625         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
49626         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
49627         * modules/crypto/gc-random: Moved from ../.
49628         * modules/crypto/gc-rijndael: Moved from ../.
49629         * modules/crypto/gc-rijndael-tests: Moved from ../.
49630         * modules/crypto/gc-sha1: Moved from ../.
49631         * modules/crypto/gc-sha1-tests: Moved from ../.
49632         * modules/crypto/gc-tests: Moved from ../.
49633         * modules/crypto/hmac-md5: Moved from ../.
49634         * modules/crypto/hmac-md5-tests: Moved from ../.
49635         * modules/crypto/hmac-sha1: Moved from ../.
49636         * modules/crypto/hmac-sha1-tests: Moved from ../.
49637         * modules/crypto/md2: Moved from ../.
49638         * modules/crypto/md2-tests: Moved from ../.
49639         * modules/crypto/md4: Moved from ../.
49640         * modules/crypto/md4-tests: Moved from ../.
49641         * modules/crypto/md5: Moved from ../.
49642         * modules/crypto/md5-tests: Moved from ../.
49643         * modules/crypto/memxor: Moved from ../.
49644         * modules/crypto/rijndael: Moved from ../.
49645         * modules/crypto/rijndael-tests: Moved from ../.
49646         * modules/crypto/sha1: Moved from ../.
49647
49648 2007-03-30  James Youngman  <jay@gnu.org>
49649
49650         * tests/test-stat-time.c (prepare_test): use chmod() rather than
49651         rename() to change the ctime of a file (because ctime is unaffected
49652         by rename on jfs2 on AIX 5.1).
49653         (main): Start by doing cleanup, in case a previous run failed leaving
49654         test files behind.
49655
49656 2007-03-31  Bruno Haible  <bruno@clisp.org>
49657
49658         Support old proprietary implementations of iconv.
49659         * modules/iconv_open: New file.
49660         * lib/iconv_.h: New file.
49661         * m4/iconv_h.m4: New file.
49662         * lib/iconv_open.c: New file.
49663         * lib/iconv_open-aix.gperf: New file.
49664         * lib/iconv_open-hpux.gperf: New file.
49665         * lib/iconv_open-irix.gperf: New file.
49666         * lib/iconv_open-osf.gperf: New file.
49667         * m4/iconv_open.m4: New file.
49668         * modules/linebreak (Depends-on): Add iconv_open.
49669         * modules/striconv (Depends-on): Likewise.
49670         * modules/striconveh (Depends-on): Likewise.
49671         * modules/unicodeio (Depends-on): Likewise.
49672         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
49673         (iconv_t)(-1).
49674         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
49675         conversion if cd is (iconv_t)(-1).
49676         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
49677         is not possible.
49678
49679 2007-03-31  Bruno Haible  <bruno@clisp.org>
49680
49681         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49682         work on Solaris either. Protect also second use of "autodetect_jp".
49683
49684 2007-03-31  Bruno Haible  <bruno@clisp.org>
49685
49686         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
49687         the function is not present.
49688
49689 2007-03-31  Bruno Haible  <bruno@clisp.org>
49690
49691         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
49692         the function is not present.
49693
49694 2007-03-31  Bruno Haible  <bruno@clisp.org>
49695
49696         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
49697         a bug in HP-UX iconv_open().
49698
49699 2007-03-31  Bruno Haible  <bruno@clisp.org>
49700
49701         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
49702         (Mathematics <math.h>): New section, add fpieee.
49703         (Input/output <stdio.h>): Add fseterr.
49704         (Mathematics <math.h>): New section, add printf-frexp.
49705         (Container data structures): Add sublist.
49706         (Core language properties): Add fpucw, inline.
49707         (Functions for greatest-width integer types <inttypes.h>): Add
49708         imaxabs, imaxdiv, inttypes.
49709         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
49710         isnanl-nolibm, ldexp.
49711         (Mathematics <math.h>): New section, add printf-frexpl.
49712         (Support for systems lacking POSIX:2001): Add fprintf-posix,
49713         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
49714         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
49715         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
49716         (Unicode string functions): Add unistr/u*-mbtoucr.
49717         (Java): Add javacomp-script, javaexec-script.
49718         (C#): Add csharpcomp-script, csharpexec-script.
49719         (Support for building libraries and executables): Add havelib,
49720         relocatable-*.
49721         (Support for maintaining and releasing projects): Renamed from
49722         'Support for maintaining and release projects'. Add announce-gen.
49723
49724 2007-03-31  Bruno Haible  <bruno@clisp.org>
49725
49726         * README: Talk primarily about git.
49727         (git and CVS): Renamed from CVS.
49728         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
49729         gnulib is available through git.
49730         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
49731
49732 2007-03-30  Bruno Haible  <bruno@clisp.org>
49733
49734         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
49735         * lib/poll_.h: Likewise.
49736         * lib/stat_.h: Likewise.
49737         * lib/sys_time_.h: Likewise.
49738         * lib/sysexit_.h: Likewise.
49739         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
49740         * lib/stdbool_.h: Likewise.
49741         * lib/byteswap_.h: Add double-inclusion guard.
49742
49743 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
49744
49745         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
49746
49747 2007-03-30  Karl Berry  <karl@gnu.org>
49748
49749         * config/srclist-update: double space after USA in the license
49750         substitution, since that's how it's usually (?) written.
49751
49752 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49753
49754         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
49755         reported by Bruno Haible.
49756
49757 2007-03-29  Bruno Haible  <bruno@clisp.org>
49758
49759         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
49760         a bug in AIX iconv().
49761
49762 2007-03-29  Bruno Haible  <bruno@clisp.org>
49763
49764         * modules/ldexpl-tests: New file.
49765         * tests/test-ldexpl.c: New file.
49766
49767 2007-03-29  Bruno Haible  <bruno@clisp.org>
49768
49769         * lib/ldexpl.c: Include fpucw.h.
49770         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
49771         multiplication.
49772         * modules/ldexpl (Depends-on): Add fpucw.
49773
49774 2007-03-29  Bruno Haible  <bruno@clisp.org>
49775
49776         * modules/ldexpl: New file.
49777         * m4/ldexpl.m4: New file.
49778         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
49779         set.
49780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
49781         REPLACE_LDEXPL.
49782         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
49783         REPLACE_LDEXPL.
49784         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49785         gl_FUNC_LDEXPL_WORKS.
49786         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
49787         * modules/mathl (Files): Remove lib/ldexpl.c.
49788         (Depends-on): Add ldexpl.
49789
49790 2007-03-29  Bruno Haible  <bruno@clisp.org>
49791
49792         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
49793
49794 2007-03-29  Bruno Haible  <bruno@clisp.org>
49795
49796         * tests/test-striconveh.c (main): Don't assume that a direct conversion
49797         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
49798         and possibly also HP-UX.
49799         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
49800         work on AIX, IRIX, HP-UX, OSF/1.
49801         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
49802         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
49803         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
49804         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
49805         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
49806         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
49807
49808 2007-03-29  Bruno Haible  <bruno@clisp.org>
49809
49810         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
49811
49812 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49813
49814         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
49815         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
49816
49817 2007-03-29  Eric Blake  <ebb9@byu.net>
49818
49819         * lib/acl-internal.h: Remove redundant include.
49820         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
49821         Cygwin when a file is locked.
49822
49823 2007-03-29  Bruno Haible  <bruno@clisp.org>
49824
49825         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
49826         file.
49827         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
49828
49829 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
49830
49831         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
49832         try to remove a parent directory if the child couldn't be removed
49833         (except for the first rmdir, which could fail because the child
49834         doesn't exist).  Problem reported by Jeff Blaine in
49835         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
49836
49837 2007-03-28  Bruno Haible  <bruno@clisp.org>
49838
49839         * lib/striconveh.c (utf8conv_carefully): New function.
49840         (mem_cd_iconveh_internal): Invoke it.
49841
49842 2007-03-28  Bruno Haible  <bruno@clisp.org>
49843
49844         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
49845         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
49846         input.
49847         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
49848         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
49849         unistr/u8-uctomb.
49850
49851 2007-03-28  Bruno Haible  <bruno@clisp.org>
49852
49853         * modules/unistr/u8-mbtoucr: New file.
49854         * lib/unistr/u8-mbtoucr.c: New file.
49855         * modules/unistr/u16-mbtoucr: New file.
49856         * lib/unistr/u16-mbtoucr.c: New file.
49857         * modules/unistr/u16-mbtoucr: New file.
49858         * lib/unistr/u16-mbtoucr.c: New file.
49859         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
49860
49861 2007-03-27  Simon Josefsson  <simon@josefsson.org>
49862             Bruno Haible  <bruno@clisp.org>
49863
49864         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
49865         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
49866         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
49867
49868         * m4/stdio_h.m4: Add stubs for vasprintf too.
49869
49870         * modules/stdio: Support vasprintf in sed command.
49871
49872         * modules/vasprintf: Depend on stdio for prototypes.  Remove
49873         vasprintf.h.  Add stdio module indicator.
49874
49875         * lib/stdio_.h: Declare asprintf and vasprintf, based on
49876         vasprintf.h.
49877
49878         * lib/vasprintf.h: File removed.
49879
49880         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
49881         * lib/vasprintf.c: Ditto.
49882         * lib/xvasprintf.c: Ditto.
49883         * tests/test-vasprintf-posix.c: Ditto.
49884         * tests/test-vasprintf.c: Ditto.
49885
49886 2007-03-27  Bruno Haible  <bruno@clisp.org>
49887
49888         Make vasnprintf multithread-safe.
49889         * lib/vasnprintf.c (decimal_point_char): New function.
49890         (VASNPRINTF): Use it.
49891         Suggested by Simon Josefsson.
49892
49893 2007-03-27  Eric Blake  <ebb9@byu.net>
49894
49895         Support sub-second birthtime on cygwin.
49896         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
49897         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
49898         (get_stat_birthtime): Also work with st_birthtim.
49899
49900 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
49901
49902         * lib/stat-time.h (USE_BIRTHTIME): Remove.
49903         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
49904         (get_stat_birthtime_ns): Do not try to use "spare" fields.
49905         (get_stat_birthtime_ns): Simplify compile-time tests.
49906         (get_stat_birthtime): Change the API to look like
49907         get_stat_mtime etc., except return a negative tv_nsec on error.
49908         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
49909         Don't check for "spare" fields.
49910         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
49911         or for struct stat.st_birthtime, as these tests aren't used.
49912         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
49913
49914 2007-03-27  Bruno Haible  <bruno@clisp.org>
49915
49916         * lib/stat-time.h: Include <sys/stat.h>.
49917
49918 2007-03-27  James Youngman  <jay@gnu.org>
49919
49920         * lib/stat-time.h (get_stat_birthtime): New function for
49921           retrieving st_birthtime as provided by UFS2 (hence *BSD).
49922         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
49923           and its variants.
49924         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
49925         * modules/stat-time-test: New file.
49926         * tests/test-stat-time.c: New test, devised by Bruno Haible.
49927
49928 2007-03-26  Bruno Haible  <bruno@clisp.org>
49929
49930         Better support of signalling NaNs.
49931         * lib/atanl.c: Include isnanl.h.
49932         (atanl): Perform test for NaN at the beginning of the function and
49933         through a call to isnanl.
49934         * lib/cosl.c: Include isnanl.h.
49935         (cosl): Perform test for NaN at the beginning of the function and
49936         through a call to isnanl.
49937         * lib/ldexpl.c: Include isnanl.h.
49938         (ldexpl): Perform test for NaN through a call to isnanl.
49939         * lib/logl.c: Include isnanl.h.
49940         (logl): Perform test for NaN at the beginning of the function and
49941         through a call to isnanl.
49942         * lib/sinl.c: Include isnanl.h.
49943         (sinl): Perform test for NaN at the beginning of the function and
49944         through a call to isnanl.
49945         * lib/sqrtl.c: Include isnanl.h.
49946         (sqrtl): Perform test for NaN at the beginning of the function and
49947         through a call to isnanl.
49948         * lib/tanl.c: Include isnanl.h.
49949         (tanl): Perform test for NaN at the beginning of the function and
49950         through a call to isnanl.
49951         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
49952         * modules/mathl (Depends-on): Add isnanl.
49953
49954 2007-03-26  Eric Blake  <ebb9@byu.net>
49955
49956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
49957         regression in logic sense of previous patch.
49958
49959 2007-03-26  Bruno Haible  <bruno@clisp.org>
49960
49961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
49962         unportable shell command "if ! ...".
49963         Reported by Ralf Wildenhues.
49964
49965 2007-03-25  Bruno Haible  <bruno@clisp.org>
49966
49967         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
49968         <sysexits.h> file, and only add EX_CONFIG.
49969         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
49970         absolute file name and whether it is sufficient. Substitute also
49971         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
49972         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
49973         ABSOLUTE_SYSEXITS_H into sysexits.h.
49974
49975 2007-03-25  Bruno Haible  <bruno@clisp.org>
49976
49977         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
49978         hints is NULL.
49979
49980 2007-03-25  Bruno Haible  <bruno@clisp.org>
49981
49982         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
49983         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
49984
49985 2007-03-25  Bruno Haible  <bruno@clisp.org>
49986
49987         * lib/vasnprintf.c: Include langinfo.h.
49988         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
49989         multithread-safe.
49990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
49991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
49992         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49993         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49994         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49995         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49996         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49997         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
49998         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49999         Reported by Simon Josefsson.
50000
50001 2007-03-25  Bruno Haible  <bruno@clisp.org>
50002
50003         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50004         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50005         * modules/vasnprintf (Depends-on): Add stdint.
50006
50007 2007-03-25  Bruno Haible  <bruno@clisp.org>
50008
50009         * modules/fpieee: New file.
50010         * m4/fpieee.m4: New file.
50011         * modules/isnan-nolibm (Depends-on): Add fpieee.
50012         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50013         * modules/isnanl (Depends-on): Add fpieee.
50014
50015 2007-03-25  Bruno Haible  <bruno@clisp.org>
50016
50017         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50018
50019 2007-03-25  Bruno Haible  <bruno@clisp.org>
50020
50021         Avoid test failures on IRIX 6.5.
50022         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50023         (main): Use it.
50024         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50025         macros.
50026         (main): Use them.
50027
50028 2007-03-25  Bruno Haible  <bruno@clisp.org>
50029
50030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50031         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50032         exists but doesn't work.
50033         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50034         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50036         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50037
50038 2007-03-25  Bruno Haible  <bruno@clisp.org>
50039
50040         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50041         returns inf. Needed on IRIX 6.5.
50042
50043 2007-03-25  Bruno Haible  <bruno@clisp.org>
50044
50045         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50046         (main): Use isnanl instead of x != x idiom.
50047         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50048
50049         * tests/test-frexp.c: Include isnan.h.
50050         (main): Use isnan instead of x != x idiom.
50051         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50052
50053 2007-03-25  Bruno Haible  <bruno@clisp.org>
50054
50055         * tests/test-frexp.c (NaN): New function/macro.
50056         (main): Use it instead of 0.0 / 0.0.
50057         * tests/test-isnan.c (NaN): New function/macro.
50058         (main): Use it instead of 0.0 / 0.0.
50059         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50060         (test_function): Use it instead of 0.0 / 0.0.
50061         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50062         (test_function): Use it instead of 0.0 / 0.0.
50063         * tests/test-snprintf-posix.h (NaN): New function/macro.
50064         (test_function): Use it instead of 0.0 / 0.0.
50065         * tests/test-sprintf-posix.h (NaN): New function/macro.
50066         (test_function): Use it instead of 0.0 / 0.0.
50067         * tests/test-fprintf-posix.h (NaN): New function/macro.
50068         (test_function): Use it instead of 0.0 / 0.0.
50069         * tests/test-printf-posix.h (NaN): New function/macro.
50070         (test_function): Use it instead of 0.0 / 0.0.
50071
50072         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50073
50074 2007-03-25  Bruno Haible  <bruno@clisp.org>
50075
50076         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50077
50078 2007-03-25  Bruno Haible  <bruno@clisp.org>
50079
50080         * lib/regexec.c (merge_state_with_log): Make static.
50081
50082 2007-03-25  Bruno Haible  <bruno@clisp.org>
50083
50084         * lib/trigl.c (kernel_rem_pio2): Make static.
50085
50086 2007-03-25  Bruno Haible  <bruno@clisp.org>
50087
50088         * lib/sincosl.c (sincosl_table): Make static.
50089
50090 2007-03-25  Bruno Haible  <bruno@clisp.org>
50091
50092         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50093         if the compiler does not support C99.
50094
50095 2007-03-25  Bruno Haible  <bruno@clisp.org>
50096
50097         * modules/time (Makefile.am): Ensure all rule action lines start with a
50098         tab.
50099
50100 2007-03-24  Bruno Haible  <bruno@clisp.org>
50101
50102         * modules/tsearch-tests: New file.
50103         * tests/test-tsearch.sh: New file.
50104         * tests/test-tsearch.c: New file, mostly copied from glibc.
50105
50106         * modules/search-tests: New file.
50107         * tests/test-search.c: New file.
50108
50109         * modules/search: New file.
50110         * lib/search_.h: New file, incorporating lib/tsearch.h.
50111         * m4/search_h.m4: New file.
50112         * lib/tsearch.h: Remove file.
50113         * lib/tsearch.c: Include search.h instead of tsearch.h.
50114         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50115         HAVE_TSEARCH.
50116         * modules/tsearch (Files): Remove lib/tsearch.h.
50117         (Depends-on): Add search.
50118         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50119         (Include): Change tsearch.h into search.h.
50120
50121 2007-03-24  Bruno Haible  <bruno@clisp.org>
50122
50123         * modules/fpucw: New file.
50124         * lib/fpucw.h: New file.
50125         * lib/frexp.c: Include fpucw.h.
50126         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50127         (FUNC): Use them.
50128         * lib/printf-frexp.c: Include fpucw.h.
50129         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50130         (FUNC): Use them.
50131         * lib/vasnprintf.c: Include fpucw.h.
50132         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50133         'long double' calculations.
50134         * tests/test-frexpl.c: Include fpucw.h.
50135         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50136         * tests/test-printf-frexpl.c: Include fpucw.h.
50137         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50138         * modules/frexpl (Depends-on): Add fpucw.
50139         * modules/printf-frexpl (Depends-on): Likewise.
50140         * modules/fprintf-posix (Depends-on): Likewise.
50141         * modules/snprintf-posix (Depends-on): Likewise.
50142         * modules/sprintf-posix (Depends-on): Likewise.
50143         * modules/vasnprintf-posix (Depends-on): Likewise.
50144         * modules/vasprintf-posix (Depends-on): Likewise.
50145         * modules/vfprintf-posix (Depends-on): Likewise.
50146         * modules/vsnprintf-posix (Depends-on): Likewise.
50147         * modules/vsprintf-posix (Depends-on): Likewise.
50148         * modules/frexpl-tests (Depends-on): Likewise.
50149         * modules/printf-frexpl-tests (Depends-on): Likewise.
50150
50151 2007-03-24  Bruno Haible  <bruno@clisp.org>
50152
50153         * lib/float+.h: New file.
50154         * lib/isnan.c: Include float+.h.
50155         (SIZE): New macro.
50156         (FUNC): Compare only SIZE bytes of the value.
50157         * lib/vasnprintf.c: Include float+.h.
50158         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50159         SIZEOF_LDBL or SIZEOF_DBL bytes.
50160         * modules/isnan-nolibm (Files): Add lib/float+.h.
50161         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50162         * modules/isnanl (Files): Add lib/float+.h.
50163         * modules/vasnprintf (Files): Add lib/float+.h.
50164
50165 2007-03-24  Bruno Haible  <bruno@clisp.org>
50166
50167         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50168         include isnanl-nolibm.h.
50169
50170 2007-03-24  Bruno Haible  <bruno@clisp.org>
50171
50172         * tests/test-read-file.c (main): Don't produce spurious output for
50173         expected situations. Make the test fail if it encountered unexpected
50174         results.
50175
50176 2007-03-24  Bruno Haible  <bruno@clisp.org>
50177
50178         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50179         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50180
50181 2007-03-24  Bruno Haible  <bruno@clisp.org>
50182
50183         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50184
50185 2007-03-24  Bruno Haible  <bruno@clisp.org>
50186
50187         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50188         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50189
50190         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50191         * modules/utf8-ucs4: Turn into a symbolic link to module
50192         unistr/u8-mbtouc.
50193
50194         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50195         utf8-ucs4-unsafe.
50196         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50197         unistr/u8-mbtouc-unsafe.
50198
50199         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50200         * modules/utf16-ucs4: Turn into a symbolic link to module
50201         unistr/u16-mbtouc.
50202
50203         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50204         utf16-ucs4-unsafe.
50205         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
50206         unistr/u16-mbtouc-unsafe.
50207
50208         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
50209         * modules/ucs4-utf8: Turn into a symbolic link to module
50210         unistr/u8-ubtomb.
50211
50212         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
50213         * modules/ucs4-utf16: Turn into a symbolic link to module
50214         unistr/u16-ubtomb.
50215
50216 2007-03-24  Bruno Haible  <bruno@clisp.org>
50217
50218         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
50219         Enable the function only if HAVE_INLINE.
50220         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
50221         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50222         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
50223         Enable the function only if HAVE_INLINE.
50224         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
50225         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
50226         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
50227         Enable the function only if HAVE_INLINE.
50228         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
50229         Enable the function only if HAVE_INLINE.
50230         * modules/utf8-ucs4: Update.
50231         * modules/utf8-ucs4-unsafe: Update.
50232         * modules/utf16-ucs4: Update.
50233         * modules/utf16-ucs4-unsafe: Update.
50234         * modules/ucs4-utf8: Update.
50235         * modules/ucs4-utf16: Update.
50236
50237 2007-03-24  Bruno Haible  <bruno@clisp.org>
50238
50239         * lib/utf8-ucs4.h: Remove file.
50240         * lib/utf8-ucs4-unsafe.h: Remove file.
50241         * lib/utf16-ucs4.h: Remove file.
50242         * lib/utf16-ucs4-unsafe.h: Remove file.
50243         * lib/ucs4-utf8.h: Remove file.
50244         * lib/ucs4-utf16.h: Remove file.
50245         * lib/unistr.h: Include their previous contents.
50246         * m4/utf-ucs4.m4: Remove file.
50247         * m4/ucs4-utf.m4: Remove file.
50248         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
50249         (Depends-on): Add unistr/base.
50250         (configure.ac): Remove gl_UTF_UCS4.
50251         (Makefile.am): Update.
50252         (Include): Change to unistr.h.
50253         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
50254         (Depends-on): Add unistr/base.
50255         (configure.ac): Remove gl_UTF_UCS4.
50256         (Makefile.am): Update.
50257         (Include): Change to unistr.h.
50258         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
50259         (Depends-on): Add unistr/base.
50260         (configure.ac): Remove gl_UTF_UCS4.
50261         (Makefile.am): Update.
50262         (Include): Change to unistr.h.
50263         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
50264         (Depends-on): Add unistr/base.
50265         (configure.ac): Remove gl_UTF_UCS4.
50266         (Makefile.am): Update.
50267         (Include): Change to unistr.h.
50268         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
50269         (Depends-on): Add unistr/base.
50270         (configure.ac): Remove gl_UCS4_UTF.
50271         (Makefile.am): Update.
50272         (Include): Change to unistr.h.
50273         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
50274         (Depends-on): Add unistr/base.
50275         (configure.ac): Remove gl_UCS4_UTF.
50276         (Makefile.am): Update.
50277         (Include): Change to unistr.h.
50278         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
50279         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
50280         utf8-ucs4-unsafe.h.
50281         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
50282         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
50283         utf16-ucs4-unsafe.h.
50284         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
50285         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
50286         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
50287         * lib/unistr/u8-strchr.c: Likewise.
50288         * lib/unistr/u8-strrchr.c: Likewise.
50289         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
50290         * lib/unistr/u16-strchr.c: Likewise.
50291         * lib/unistr/u16-strrchr.c: Likewise.
50292         * lib/striconveh.c: Update.
50293         * lib/linebreak.c: Update.
50294
50295 2007-03-24  Bruno Haible  <bruno@clisp.org>
50296
50297         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
50298         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
50299
50300 2007-03-22  Bruno Haible  <bruno@clisp.org>
50301
50302         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
50303
50304 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
50305
50306         * MODULES.html.sh (File system functions): New module write-any-file.
50307         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
50308         * m4/write-any-file.m4: New files.
50309
50310 2007-03-23  Eric Blake  <ebb9@byu.net>
50311
50312         * gnulib-tool: Rearrange space-tab sequences, since some editors
50313         like to eat them.
50314
50315 2007-03-23  Eric Blake  <ebb9@byu.net>
50316
50317         * lib/version-etc.c (version_etc_va): Update license wording to
50318         be more concise.  Recommended by Richard Stallman.
50319
50320 2007-03-22  Bruno Haible  <bruno@clisp.org>
50321
50322         * lib/poll.c (MSG_PEEK): New fallback definition.
50323
50324 2007-03-22  Bruno Haible  <bruno@clisp.org>
50325
50326         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
50327         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
50328         (main): Update.
50329         Fixes a compilation error on BeOS.
50330
50331 2007-03-22  Bruno Haible  <bruno@clisp.org>
50332
50333         * modules/frexpl-tests: New file.
50334         * tests/test-frexpl.c: New file.
50335
50336         * modules/frexpl: New file.
50337         * m4/frexpl.m4: New file.
50338         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
50339         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
50340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
50341         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
50342         (Depends-on): Add frexpl. Remove isnanl-nolibm.
50343         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
50344
50345 2007-03-22  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/frexpl.c: Share code with lib/frexp.c.
50348         * modules/mathl (Files): Add lib/frexp.c.
50349         (Depends-on): Add isnanl-nolibm.
50350
50351 2007-03-22  Bruno Haible  <bruno@clisp.org>
50352
50353         * modules/printf-frexp (Files): Add m4/frexp.m4.
50354         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
50355         only if the found frexp function actually works.
50356
50357 2007-03-22  Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/frexp.c: Remove older implementation that uses divisions.
50360
50361 2007-03-21  Bruno Haible  <bruno@clisp.org>
50362
50363         * modules/frexp-tests: New file.
50364         * tests/test-frexp.c: New file.
50365
50366         * modules/frexp: New file.
50367         * lib/frexp.c: New file.
50368         * m4/frexp.m4: New file.
50369         * lib/math_.h (frexp): New declaration.
50370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
50371         REPLACE_FREXP.
50372         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
50373
50374 2007-03-21  Bruno Haible  <bruno@clisp.org>
50375
50376         * modules/isnanl-tests: New file.
50377         * tests/test-isnanl.c: New file.
50378
50379         * modules/isnanl: New file.
50380         * lib/isnanl.h: New file.
50381         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
50382         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
50383         gl_FUNC_ISNANL_WORKS.
50384         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
50385         New macros.
50386
50387 2007-03-21  Bruno Haible  <bruno@clisp.org>
50388
50389         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
50390         lib/isnanl.h.
50391         (Include): Update.
50392         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
50393         * lib/vasnprintf.c: Update.
50394         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
50395         tests/test-isnanl.h, remove tests/test-isnanl.c.
50396         (Makefile.am): Update.
50397         * tests/test-isnanl-nolibm.c: New file.
50398         * tests/test-isnanl.h: New file.
50399         * tests/test-isnanl.c: Remove file.
50400
50401 2007-03-21  Jim Meyering  <jim@meyering.net>
50402
50403         When trying to open ".", treat ESTALE like EACCES.
50404         * lib/savewd.c (savewd_save): Resort to forking not just upon
50405         failure with EACCES, but also when errno is ESTALE.
50406
50407 2007-03-20  Bruno Haible  <bruno@clisp.org>
50408
50409         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
50410         Needed on AIX 5.1. Reported by Matthew Woehlke.
50411
50412 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50413
50414         Suggestions by Bruno Haible:
50415         * lib/acl-internal.h: Include "gettext.h" rather than rolling
50416         our own.
50417         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
50418         * modules/acl (Depends-on): Add gettext.
50419
50420 2007-03-19  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/iconvme: Remove file.
50423         * lib/iconvme.h: Remove file.
50424         * lib/iconvme.c: Remove file.
50425         * m4/iconvme.m4: Remove file.
50426
50427 2007-03-19  Bruno Haible  <bruno@clisp.org>
50428
50429         * doc/relocatable-maint.texi: Break long shell script line.
50430         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50431
50432 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50433
50434         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
50435         handle file_has_acl.
50436         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
50437         * lib/acl.c: Move header inclusions and related macro defns into
50438         lib/acl-internal.h.
50439         (S_ISLNK): Remove defn, since that's now done for us.
50440         (file_has_acl): Move to lib/file-has-acl.c.
50441         Call acl_trivial if available.  This is the crucial part of the fix.
50442         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
50443         shared within the library.  Rewrite a bit, partly to make it compatible
50444         with the GNU coding style.
50445         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
50446         Remove unnecessary double-quotes.
50447         Don't test for acl_to_text; the build will catch that.
50448         Replace acl_entries if it doesn't exist and it is needed.
50449         Check for -lsec and acl_trivial (as used on Solaris 10).
50450         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
50451         lib/file-has-acl.c.
50452         (Depends-on): Add sys_stat, for S_ISLNK.
50453
50454 2007-03-19  Ben Pfaff  <blp@gnu.org>
50455
50456         * doc/gnulib.texi: Fix typos.
50457         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
50458
50459 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
50460
50461         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
50462         If size is zero here, buf must be zero.
50463
50464 2007-03-19  Simon Josefsson  <simon@josefsson.org>
50465
50466         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
50467         <bruno@clisp.org>.
50468
50469 2007-03-18  Bruno Haible  <bruno@clisp.org>
50470
50471         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
50472         Suggested by Eric Blake.
50473
50474 2007-03-18  Ben Pfaff  <blp@gnu.org>
50475
50476         * doc/relocatable.texi: Recommend using as prefix a directory
50477         that does not exist and will never be created.  Based on
50478         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
50479         and others.
50480
50481 2007-03-17  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/fchownat.c: Include lchown.h.
50484
50485 2007-03-17  Bruno Haible  <bruno@clisp.org>
50486
50487         Fix endless loop when the given allocated size was > INT_MAX.
50488         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
50489         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
50490         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
50491         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
50492         * lib/sprintf.c (sprintf): Likewise.
50493
50494 2007-03-17  Bruno Haible  <bruno@clisp.org>
50495
50496         * tests/test-argp-2.sh (func_compare): Output a context diff.
50497
50498 2007-03-17  Bruno Haible  <bruno@clisp.org>
50499
50500         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
50501         locale's decimal-point character.
50502
50503 2007-03-17  Bruno Haible  <bruno@clisp.org>
50504
50505         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
50506         before comparing it. Needed because on some platforms (e.g. x86) a
50507         'long double' occupies less bytes than sizeof (long double).
50508
50509 2007-03-17  Bruno Haible  <bruno@clisp.org>
50510
50511         * tests/test-crc.c (main): Make printf statements 64-bit clean.
50512         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
50513         * tests/test-getaddrinfo.c (simple): Likewise.
50514         * tests/test-read-file.c (main): Likewise.
50515
50516 2007-03-17  Bruno Haible  <bruno@clisp.org>
50517
50518         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
50519
50520 2007-03-17  Bruno Haible  <bruno@clisp.org>
50521
50522         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
50523         unused variable.
50524
50525 2007-03-17  Bruno Haible  <bruno@clisp.org>
50526
50527         * tests/test-c-strcasecmp.c: Include c-strcase.h.
50528         * tests/test-c-strncasecmp.c: Likewise.
50529
50530 2007-03-17  Bruno Haible  <bruno@clisp.org>
50531
50532         * modules/stdlib (Depends-on): Add unistd.
50533         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
50534         Needed for MacOS X 10.3.
50535
50536 2007-03-17  Bruno Haible  <bruno@clisp.org>
50537
50538         * lib/unistr/u-strdup.h: Include <stdlib.h>.
50539
50540 2007-03-17  Bruno Haible  <bruno@clisp.org>
50541
50542         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
50543
50544 2007-03-17  Bruno Haible  <bruno@clisp.org>
50545
50546         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
50547         to reflect files copied from gnulib (with or without modifications).
50548         Suggested by Jim Meyering.
50549
50550 2007-03-17  Eric Blake  <ebb9@byu.net>
50551
50552         * NEWS: Document stdlib change from 2007-02-18.
50553
50554 2007-03-17  Jim Meyering  <jim@meyering.net>
50555
50556         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
50557         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
50558         someone uses a name containing shell meta-characters.
50559         Reported by Alfred M. Szmidt.
50560
50561         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
50562
50563 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50564
50565         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
50566         and copy gettext configuration files only if configure.ac contains
50567         a use of AM_GNU_GETTEXT_VERSION.
50568
50569 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
50570
50571         * build-aux/bootstrap (gnulib_name): New variable.
50572         (gnulib_tool_options): Use it.
50573
50574 2007-03-13  Simon Josefsson  <simon@josefsson.org>
50575
50576         * tests/test-des.c: Use new namespace.
50577
50578 2007-03-15  Bruno Haible  <bruno@clisp.org>
50579
50580         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
50581         Reported by James Youngman <jay@gnu.org>.
50582
50583 2007-03-15  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
50586         declared prototype. Needed with cc on OSF/1 5.1.
50587
50588 2007-03-15  Bruno Haible  <bruno@clisp.org>
50589
50590         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
50591         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
50592         (struct gl_list_implementation): Add dispose_fn argument to the
50593         'create_empty', 'create' methods.
50594         (struct gl_list_impl_base): Add field 'dispose_fn'.
50595         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
50596         argument.
50597         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
50598         dispose_fn argument.
50599         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
50600         dispose_fn on the dropped values.
50601         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
50602         dispose_fn argument.
50603         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
50604         dropped values.
50605         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
50606         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50607         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
50608         (gl_tree_remove_node): Call dispose_fn on the dropped value.
50609         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
50610         argument.
50611         (gl_tree_list_free): Call dispose_fn on the dropped values.
50612         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
50613         the dropped values.
50614         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
50615         Add dispose_fn argument.
50616         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
50617         Call dispose_fn on the dropped values.
50618         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
50619         Add dispose_fn argument.
50620         (gl_sublist_create): Initialize the 'dispose_fn' field.
50621         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
50622         * tests/test-array_list.c (main): Update.
50623         * tests/test-carray_list.c (main): Update.
50624         * tests/test-avltree_list.c (main): Update.
50625         * tests/test-rbtree_list.c (main): Update.
50626         * tests/test-avltreehash_list.c (main): Update.
50627         * tests/test-rbtreehash_list.c (main): Update.
50628         * tests/test-linked_list.c (main): Update.
50629         * tests/test-linkedhash_list.c (main): Update.
50630         * tests/test-array_oset.c (main): Update.
50631
50632 2007-03-15  Bruno Haible  <bruno@clisp.org>
50633
50634         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
50635         (gl_oset_create_empty): Add dispose_fn argument.
50636         (struct gl_oset_implementation): Add dispose_fn argument to
50637         'create_empty' method.
50638         (struct gl_oset_impl_base): Add dispose_fn field.
50639         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
50640         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
50641         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
50642         values.
50643         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
50644         (gl_tree_oset_free): Call dispose_fn on the dropped values.
50645         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50646         dropped value.
50647         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
50648         dropped value.
50649         * tests/test-array_oset.c (main): Update.
50650         * tests/test-avltree_oset.c (main): Update.
50651         * tests/test-rbtree_oset.c (main): Update.
50652         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
50653
50654 2007-03-13  Bruno Haible  <bruno@clisp.org>
50655
50656         * tests/test-stdbool.c (i): Update after last patch.
50657
50658 2007-03-12  Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/quotearg.c: Include <wctype.h> early, before the definition of
50661         the iswprint macro. Needed on Solaris 2.5.1.
50662
50663 2007-03-12  Bruno Haible  <bruno@clisp.org>
50664
50665         * tests/test-printf-frexp.c (main): Declare x as volatile.
50666
50667 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50668
50669         * doc/gnulib.texi (Build robot for gnulib): New section.
50670
50671 2007-03-12  Jim Meyering  <jim@meyering.net>
50672
50673         * build-aux/bootstrap: New file.
50674         * build-aux/bootstrap.conf: New file, from coreutils.
50675
50676 2007-03-11  Bruno Haible  <bruno@clisp.org>
50677
50678         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
50679
50680 2007-03-12  Simon Josefsson  <simon@josefsson.org>
50681
50682         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
50683         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
50684         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
50685
50686 2007-03-11  Bruno Haible  <bruno@clisp.org>
50687
50688         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
50689         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
50690
50691 2007-03-11  Bruno Haible  <bruno@clisp.org>
50692
50693         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
50694         formula. Needed for SunPRO C 5.0.
50695
50696 2007-03-11  Bruno Haible  <bruno@clisp.org>
50697
50698         * modules/long-options (Depends-on): Add getopt.
50699
50700 2007-03-11  Bruno Haible  <bruno@clisp.org>
50701
50702         * modules/modechange (Depends-on): Add stdbool.
50703
50704 2007-03-11  Bruno Haible  <bruno@clisp.org>
50705
50706         * modules/i-ring (Depends-on): Add stdbool.
50707
50708 2007-03-11  Bruno Haible  <bruno@clisp.org>
50709
50710         * modules/gc-des (Depends-on): Add stdbool.
50711
50712 2007-03-11  Bruno Haible  <bruno@clisp.org>
50713
50714         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
50715
50716 2007-03-11  Bruno Haible  <bruno@clisp.org>
50717
50718         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
50719
50720 2007-03-11  Bruno Haible  <bruno@clisp.org>
50721
50722         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
50723
50724 2007-03-11  Bruno Haible  <bruno@clisp.org>
50725
50726         * lib/vasnprintf.c (sprintf): Undefine.
50727
50728 2007-03-11  Bruno Haible  <bruno@clisp.org>
50729
50730         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
50731         initializers in SunPRO C and Compaq C compilers.
50732
50733 2007-03-11  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
50736         decrementing code ANSI C compliant.
50737
50738 2007-03-11  Bruno Haible  <bruno@clisp.org>
50739
50740         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
50741         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
50742
50743 2007-03-11  Bruno Haible  <bruno@clisp.org>
50744
50745         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
50746         <stdbool.h> substitute doesn't pass.
50747
50748 2007-03-11  Bruno Haible  <bruno@clisp.org>
50749
50750         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
50751
50752 2007-03-11  Bruno Haible  <bruno@clisp.org>
50753
50754         * gnulib-tool (func_create_megatestdir): Create also an autobuild
50755         script, for submission to autobuild.josefsson.org.
50756
50757 2007-03-10  Bruno Haible  <bruno@clisp.org>
50758
50759         * modules/canonicalize-lgpl-tests: New file.
50760         * tests/test-canonicalize-lgpl.sh: New file.
50761         * tests/test-canonicalize-lgpl.c: New file.
50762
50763         * modules/c-strcase-tests: New file.
50764         * tests/test-c-strcase.sh: New file.
50765         * tests/test-c-strcasecmp.c: New file.
50766         * tests/test-c-strncasecmp.c: New file.
50767
50768         * modules/atexit-tests: New file.
50769         * tests/test-atexit.sh: New file.
50770         * tests/test-atexit.c: New file.
50771
50772 2007-03-10  Bruno Haible  <bruno@clisp.org>
50773
50774         * tests/test-binary-io.sh: Use temporary filenames that are not so
50775         likely to clash with those of other tests (in a parallel make).
50776         * tests/test-binary-io.c: Likewise.
50777
50778 2007-03-10  Bruno Haible  <bruno@clisp.org>
50779
50780         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
50781         fallback; use #error instead.
50782         Suggested by Simon Josefsson.
50783
50784 2007-03-10  Bruno Haible  <bruno@clisp.org>
50785
50786         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
50787         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
50788         first and the last.
50789
50790 2007-03-10  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
50793
50794 2007-03-10  Bruno Haible  <bruno@clisp.org>
50795
50796         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
50797         "make distcheck".
50798         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
50799         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
50800         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
50801
50802 2007-03-10  Bruno Haible  <bruno@clisp.org>
50803
50804         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
50805         variable.
50806         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
50807         variable.
50808
50809 2007-03-09  Eric Blake  <ebb9@byu.net>
50810         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
50811
50812         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
50813         types are not being provided by gnulib.
50814         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
50815         types are supported.
50816
50817 2007-03-10  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/stdio_.h (__attribute__): New macro.
50820         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
50821         vsprintf): Specify __attribute__ __format__ for GCC.
50822         Suggested by Eric Blake.
50823
50824 2007-03-09  Bruno Haible  <bruno@clisp.org>
50825
50826         * modules/printf-posix-tests: New file.
50827         * tests/test-printf-posix.sh: New file.
50828         * tests/test-printf-posix.c: New file.
50829
50830         * modules/printf-posix: New file.
50831         * lib/printf.c: New file.
50832         * m4/printf-posix-rpl.m4: New file.
50833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
50834         REPLACE_PRINTF.
50835         * lib/stdio_.h (printf): New declaration.
50836         (format, __format__, ____printf____, ____scanf____, ____strftime____,
50837         ____strfmon____): New macros.
50838         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
50839         REPLACE_PRINTF.
50840
50841 2007-03-09  Bruno Haible  <bruno@clisp.org>
50842
50843         * tests/test-vasnprintf-posix2.sh: New file.
50844         * tests/test-vasnprintf-posix2.c: New file.
50845         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
50846         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50847         (Makefile.am): Activate test-vasnprintf-posix2.sh.
50848
50849         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
50850         a locale dependent decimal point, rather than always '.'.
50851
50852 2007-03-09  Eric Blake  <ebb9@byu.net>
50853
50854         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
50855         spite of platforms like Tandem/NSK that define it to -1.
50856
50857 2007-03-08  Bruno Haible  <bruno@clisp.org>
50858
50859         * modules/vprintf-posix-tests: New file.
50860         * tests/test-vprintf-posix.sh: New file.
50861         * tests/test-vprintf-posix.c: New file.
50862         * tests/test-printf-posix.h: New file.
50863
50864         * modules/vprintf-posix: New file.
50865         * lib/vprintf.c: New file.
50866         * m4/vprintf-posix.m4: New file.
50867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
50868         REPLACE_VPRINTF.
50869         * lib/stdio_.h (vprintf): New declaration.
50870         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
50871         REPLACE_VPRINTF.
50872
50873 2007-03-08  Bruno Haible  <bruno@clisp.org>
50874
50875         * modules/fprintf-posix-tests: New file.
50876         * tests/test-fprintf-posix.sh: New file.
50877         * tests/test-fprintf-posix.c: New file.
50878
50879         * modules/fprintf-posix: New file.
50880         * lib/fprintf.c: New file.
50881         * m4/fprintf-posix.m4: New file.
50882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
50883         REPLACE_FPRINTF.
50884         * lib/stdio_.h (fprintf): New declaration.
50885         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
50886         REPLACE_FPRINTF.
50887
50888 2007-03-08  Bruno Haible  <bruno@clisp.org>
50889
50890         * modules/vfprintf-posix-tests: New file.
50891         * tests/test-vfprintf-posix.sh: New file.
50892         * tests/test-vfprintf-posix.c: New file.
50893         * tests/test-fprintf-posix.h: New file.
50894         * tests/test-fprintf-posix.out: New file.
50895
50896         * modules/vfprintf-posix: New file.
50897         * lib/vfprintf.c: New file.
50898         * m4/vfprintf-posix.m4: New file.
50899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
50900         REPLACE_VFPRINTF.
50901         * lib/stdio_.h (vfprintf): New declaration.
50902         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
50903         REPLACE_VFPRINTF.
50904
50905 2007-03-08  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
50908
50909 2007-03-08  Bruno Haible  <bruno@clisp.org>
50910
50911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
50912         instead of 'expr' invocations.
50913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50918         Suggested by Paul Eggert.
50919
50920 2007-03-08  Bruno Haible  <bruno@clisp.org>
50921
50922         * modules/fseterr-tests: New file.
50923         * tests/test-fseterr.c: New file.
50924
50925         * modules/fseterr: New file.
50926         * lib/fseterr.h: New file.
50927         * lib/fseterr.c: New file.
50928
50929 2007-03-08  Bruno Haible  <bruno@clisp.org>
50930
50931         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
50932         * lib/getopt_.h: Likewise.
50933         * lib/mbswidth.h: Likewise.
50934         * lib/setenv.h: Likewise.
50935         * lib/vasnprintf.h: Likewise.
50936         * lib/vasprintf.h: Likewise.
50937         * lib/verror.h: Likewise.
50938         * lib/xsetenv.h: Likewise.
50939         * lib/xvasprintf.h: Likewise.
50940
50941 2007-03-08  Jim Meyering  <jim@meyering.net>
50942
50943         * users.txt: Add parted.
50944
50945         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
50946
50947 2007-03-07  Bruno Haible  <bruno@clisp.org>
50948
50949         * m4/printf.m4: Make the shell script snippets copy&pastable.
50950
50951 2007-03-02  Bruno Haible  <bruno@clisp.org>
50952
50953         * lib/netinet_in_.h: New file.
50954         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
50955         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
50956         * modules/netinet_in (Files): Add lib/netinet_in_.h.
50957         (Depends-on): Add absolute-header.
50958         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
50959         into netinet/in.h.
50960
50961 2007-03-03  Bruno Haible  <bruno@clisp.org>
50962
50963         * lib/sys_select_.h: New file.
50964         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
50965         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
50966         * modules/sys_select (Files): Add lib/sys_select_.h.
50967         (Depends-on): Add absolute-header.
50968         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
50969         into sys/select.h.
50970
50971 2007-03-02  Bruno Haible  <bruno@clisp.org>
50972
50973         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
50974         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
50975         values.
50976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
50977         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
50978         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
50979         * modules/sys_socket (Depends-on): Add absolute-header.
50980         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
50981         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
50982         (Include): Remove requirement of inclusion of <sys/types.h>.
50983
50984 2007-03-02  Bruno Haible  <bruno@clisp.org>
50985
50986         * lib/byteswap_.h (bswap_32): Fix formula.
50987
50988 2007-03-06  Bruno Haible  <bruno@clisp.org>
50989
50990         * modules/sprintf-posix-tests: New file.
50991         * tests/test-sprintf-posix.c: New file.
50992
50993         * modules/sprintf-posix: New file.
50994         * lib/sprintf.c: New file.
50995         * m4/sprintf-posix.m4: New file.
50996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
50997         REPLACE_SPRINTF.
50998         * lib/stdio_.h (sprintf): New declaration.
50999         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51000         REPLACE_SPRINTF.
51001
51002 2007-03-06  Bruno Haible  <bruno@clisp.org>
51003
51004         * modules/vsprintf-posix-tests: New file.
51005         * tests/test-vsprintf-posix.c: New file.
51006         * tests/test-sprintf-posix.h: New file.
51007
51008         * modules/vsprintf-posix: New file.
51009         * lib/vsprintf.c: New file.
51010         * m4/vsprintf-posix.m4: New file.
51011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51012         REPLACE_VSPRINTF.
51013         * lib/stdio_.h (vsprintf): New declaration.
51014         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51015         REPLACE_VSPRINTF.
51016
51017 2007-03-06  Bruno Haible  <bruno@clisp.org>
51018
51019         * modules/vsnprintf (Depend-on): Remove minmax.
51020
51021 2007-03-06  Bruno Haible  <bruno@clisp.org>
51022
51023         * modules/snprintf-posix-tests: New file.
51024         * tests/test-snprintf-posix.c: New file.
51025
51026         * modules/snprintf-posix: New file.
51027         * m4/snprintf-posix.m4: New file.
51028         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51029         gl_FUNC_SNPRINTF.
51030         (gl_FUNC_SNPRINTF): Invoke it.
51031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51032         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51033         is set.
51034         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51035
51036 2007-03-06  Bruno Haible  <bruno@clisp.org>
51037
51038         * modules/vsnprintf-posix-tests: New file.
51039         * tests/test-vsnprintf-posix.c: New file.
51040         * tests/test-snprintf-posix.h: New file.
51041
51042         * modules/vsnprintf-posix: New file.
51043         * m4/vsnprintf-posix.m4: New file.
51044         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51045         gl_FUNC_VSNPRINTF.
51046         (gl_FUNC_VSNPRINTF): Invoke it.
51047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51048         * lib/stdio_.h (vsnprintf): Define as a replacement if
51049         REPLACE_VSNPRINTF is set.
51050         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51051
51052 2007-03-06  Bruno Haible  <bruno@clisp.org>
51053
51054         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51055         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51056
51057 2007-03-06  Bruno Haible  <bruno@clisp.org>
51058
51059         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51060         (asinl): Declare also if HAVE_DECL_ASINL is set.
51061         (atanl): Declare also if HAVE_DECL_ATANL is set.
51062         (ceill): Declare also if HAVE_DECL_CEILL is set.
51063         (cosl): Declare also if HAVE_DECL_COSL is set.
51064         (expl): Declare also if HAVE_DECL_EXPL is set.
51065         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51066         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51067         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51068         (logl): Declare also if HAVE_DECL_LOGL is set.
51069         (sinl): Declare also if HAVE_DECL_SINL is set.
51070         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51071         (tanl): Declare also if HAVE_DECL_TANL is set.
51072         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51074         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51075         declaration of frexpl, ldexpl.
51076         * modules/printf-frexpl (Depends-on): Add math.
51077         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51078
51079 2007-03-05  Bruno Haible  <bruno@clisp.org>
51080
51081         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51082         frexpl and ldexpl are declared.
51083         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51084
51085 2007-03-05  Bruno Haible  <bruno@clisp.org>
51086
51087         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51088         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51089
51090 2007-03-05  Bruno Haible  <bruno@clisp.org>
51091
51092         * lib/stdio_.h: Include <stddef.h>.
51093
51094 2007-03-05  Bruno Haible  <bruno@clisp.org>
51095
51096         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51097
51098 2007-03-05  Bruno Haible  <bruno@clisp.org>
51099
51100         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51101         NetBSD 4, from Ralf Wildenhues.
51102
51103 2007-03-04  Bruno Haible  <bruno@clisp.org>
51104
51105         * lib/vasprintf.h: Update #if logic for the case when the functions
51106         exist but are overridden.
51107
51108 2007-03-04  Bruno Haible  <bruno@clisp.org>
51109
51110         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51111         implementations: glibc-2.4 and MacOS X 10.3.
51112         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51113         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51114         * tests/test-vasprintf-posix.c (test_function): Likewise.
51115
51116 2007-03-04  Bruno Haible  <bruno@clisp.org>
51117
51118         * modules/vasprintf-posix-tests: New file.
51119         * tests/test-vasprintf-posix.c: New file.
51120
51121         * modules/vasprintf-posix: New file.
51122         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51123         defined.
51124         * m4/vasprintf-posix.m4: New file.
51125         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51126         gl_FUNC_VASPRINTF.
51127         (gl_FUNC_VASPRINTF): Invoke it.
51128         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51129         here.
51130         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51131
51132 2007-03-04  Bruno Haible  <bruno@clisp.org>
51133
51134         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51135         REPLACE_GETTIMEOFDAY.
51136         * modules/sys_time (Makefile.am): Likewise.
51137         * m4/sys_time_h.m4: Likewise.
51138         * m4/gettimeofday.m4: Likewise.
51139
51140 2007-03-04  Bruno Haible  <bruno@clisp.org>
51141
51142         * modules/vasnprintf-posix-tests: New file.
51143         * tests/test-vasnprintf-posix.c: New file.
51144
51145         * modules/vasnprintf-posix: New file.
51146         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51147         printf-frexpl.h.
51148         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51149         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51150         REPLACE_VASNPRINTF is defined.
51151         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51152         gl_FUNC_VASNPRINTF.
51153         (gl_FUNC_VASNPRINTF): Invoke it.
51154         * m4/vasnprintf-posix.m4: New file.
51155         * m4/printf.m4: New file.
51156
51157 2007-03-04  Bruno Haible  <bruno@clisp.org>
51158
51159         Compile progreloc.c only if --enable-relocatable is specified.
51160         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51161         if --enable-relocatable was specified.
51162         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51163         lib_SOURCES.
51164
51165 2007-03-04  Jim Meyering  <jim@meyering.net>
51166
51167         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51168         Use it consistently, rather than enumerating errno constants.
51169
51170 2007-03-04  Bruno Haible  <bruno@clisp.org>
51171
51172         * modules/xvasprintf-tests: New file.
51173         * tests/test-xvasprintf.c: New file.
51174
51175         * modules/vasprintf-tests: New file.
51176         * tests/test-vasprintf.c: New file.
51177
51178         * modules/vasnprintf-tests: New file.
51179         * tests/test-vasnprintf.c: New file.
51180
51181         * modules/vsnprintf-tests: New file.
51182         * tests/test-vsnprintf.c: New file.
51183
51184         * modules/snprintf-tests: New file.
51185         * tests/test-snprintf.c: New file.
51186
51187 2007-03-04  Bruno Haible  <bruno@clisp.org>
51188
51189         Compile relocatable.c only if --enable-relocatable is specified.
51190         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51191         gl_RELOCATABLE_LIBRARY.
51192         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51193         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51194         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51195         gl_RELOCATABLE_LIBRARY.
51196         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51197         (Makefile.am): Remove lib_SOURCES.
51198         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51199         gl_RELOCATABLE_LIBRARY.
51200         (Makefile.am): Remove lib_SOURCES.
51201         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51202         always.
51203         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51204         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51205
51206 2007-03-04  Bruno Haible  <bruno@clisp.org>
51207
51208         * modules/argmatch-tests: New file.
51209         * tests/test-argmatch.c: New file.
51210
51211         * tests/test-allocsa.c (main): Halve the number of loop runs.
51212
51213         * modules/alloca-opt-tests: New file.
51214         * tests/test-alloca-opt.c: New file.
51215
51216 2007-03-04  Jim Meyering  <jim@meyering.net>
51217
51218         Work around difference between Linux ACLs and Solaris 10 ZFS.
51219         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
51220         for EINVAL.
51221
51222 2007-03-03  Bruno Haible  <bruno@clisp.org>
51223
51224         * modules/relocatable-prog (Depends-on): Add back progreloc's
51225         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
51226
51227 2007-03-03  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
51230         * modules/relocatable-lib: New file.
51231
51232 2007-03-03  Bruno Haible  <bruno@clisp.org>
51233
51234         * modules/relocatable-prog: Renamed from modules/relocatable.
51235         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
51236
51237 2007-03-03  Bruno Haible  <bruno@clisp.org>
51238
51239         * modules/relocatable-script (Files): Add doc/relocatable.texi,
51240         m4/relocatable-lib.m4.
51241         (Depends-on): Remove 'relocatable'.
51242         (configure.ac): Add gl_RELOCATABLE_NOP.
51243
51244 2007-03-03  Bruno Haible  <bruno@clisp.org>
51245
51246         * modules/relocatable-prog-wrapper: New file.
51247         * modules/relocatable (Depends-on): Add it. Remove all other
51248         dependencies except progname.
51249         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
51250
51251         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
51252         (gl_FUNC_STRERROR): Nop.
51253         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
51254
51255         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
51256         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
51257
51258         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
51259         (gl_FUNC_READLINK): Update.
51260
51261         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
51262
51263 2007-03-03  Bruno Haible  <bruno@clisp.org>
51264
51265         * lib/xreadlink.c: Include <unistd.h> unconditionally.
51266         * modules/xreadlink (Depends-on): Add unistd.
51267         * modules/xreadlink-with-size (Depends-on): Likewise.
51268
51269 2007-03-03  Bruno Haible  <bruno@clisp.org>
51270
51271         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
51272         extracted from gt_FUNC_SETENV.
51273         (gt_FUNC_SETENV): Remove macro.
51274         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
51275         remove gt_FUNC_SETENV.
51276
51277 2007-03-03  Bruno Haible  <bruno@clisp.org>
51278
51279         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
51280         ENABLE_RELOCATABLE here.
51281         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
51282
51283 2007-03-03  Bruno Haible  <bruno@clisp.org>
51284
51285         * modules/rbtreehash-list-tests (Depends-on): Add progname.
51286         * tests/test-rbtreehash_list.c: Include progname.h.
51287         (main): Call set_program_name.
51288
51289         * modules/rbtree-oset-tests (Depends-on): Add progname.
51290         * tests/test-rbtree_oset.c: Include progname.h.
51291         (main): Call set_program_name.
51292
51293         * modules/rbtree-list-tests (Depends-on): Add progname.
51294         * tests/test-rbtree_list.c: Include progname.h.
51295         (main): Call set_program_name.
51296
51297         * modules/linked-list-tests (Depends-on): Add progname.
51298         * tests/test-linked_list.c: Include progname.h.
51299         (main): Call set_program_name.
51300
51301 2007-03-03  Bruno Haible  <bruno@clisp.org>
51302
51303         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
51304         All uses of __restrict changed to _Restrict_.
51305         * lib/glob_.h (__restrict): Remove macro.
51306
51307 2007-03-02  Bruno Haible  <bruno@clisp.org>
51308
51309         * modules/gettext (configure.ac): Require gettext infrastructure
51310         from version 0.16.1.
51311
51312 2007-03-02  Bruno Haible  <bruno@clisp.org>
51313
51314         * modules/linkedhash-list-tests (Depends-on): Add progname.
51315         * tests/test-linkedhash_list.c: Include progname.h.
51316         (main): Call set_program_name.
51317
51318         * modules/carray-list-tests (Depends-on): Add progname.
51319         * tests/test-carray_list.c: Include progname.h.
51320         (main): Call set_program_name.
51321
51322         * modules/avltreehash-list-tests (Depends-on): Add progname.
51323         * tests/test-avltreehash_list.c: Include progname.h.
51324         (main): Call set_program_name.
51325
51326         * modules/avltree-oset-tests (Depends-on): Add progname.
51327         * tests/test-avltree_oset.c: Include progname.h.
51328         (main): Call set_program_name.
51329
51330         * modules/avltree-list-tests (Depends-on): Add progname.
51331         * tests/test-avltree_list.c: Include progname.h.
51332         (main): Call set_program_name.
51333
51334         * modules/array-oset-tests (Depends-on): Add progname.
51335         * tests/test-array_oset.c: Include progname.h.
51336         (main): Call set_program_name.
51337
51338         * modules/array-list-tests (Depends-on): Add progname.
51339         * tests/test-array_list.c: Include progname.h.
51340         (main): Call set_program_name.
51341
51342         * modules/argp-tests (Depends-on): Add progname.
51343         * tests/test-argp.c: Include argp.h first. Include progname.h.
51344         (main): Call set_program_name.
51345
51346 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
51347
51348         * doc/gnulib-tool.texi (Initial import): Reword description of
51349         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
51350         limited effect even if defined after the first system include.
51351
51352 2007-03-01  Bruno Haible  <bruno@clisp.org>
51353
51354         * build-aux/config.libpath: Update to libtool-1.5.22.
51355         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51356
51357 2007-03-01  Bruno Haible  <bruno@clisp.org>
51358
51359         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
51360         foo_CFLAGS.
51361         Reported by Ralf Wildenhues.
51362
51363 2007-03-01  Bruno Haible  <bruno@clisp.org>
51364
51365         * build-aux/install-reloc: Remove object files left over by some
51366         compilers.
51367         Reported by Ralf Wildenhues.
51368
51369 2007-03-01  Bruno Haible  <bruno@clisp.org>
51370
51371         * build-aux/install-reloc: Break long lines.
51372
51373 2007-03-01  Bruno Haible  <bruno@clisp.org>
51374
51375         * doc/relocatable.texi: Document that it may not work on OpenBSD.
51376         Reported by Ralf Wildenhues.
51377
51378 2007-03-01  Bruno Haible  <bruno@clisp.org>
51379
51380         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
51381         include ordering constraints.
51382
51383 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51384
51385         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
51386         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
51387         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
51388         as another example.
51389         * lib/time_.h: Fix misspelling.
51390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
51391         Require gl_HEADER_TIME_H_DEFAULTS.
51392         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
51393         * m4/time_r.m4 (gl_TIME_R): Likewise.
51394         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
51395
51396 2007-03-01  Bruno Haible  <bruno@clisp.org>
51397
51398         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
51399         * m4/utimens.m4 (gl_UTIMENS): Likewise.
51400
51401 2007-03-01  Jim Meyering  <jim@meyering.net>
51402
51403         * modules/xreadlink (Maintainer): Add my name.
51404         * modules/xreadlink-with-size (Depends-on): Alphabetize.
51405
51406 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
51407             Bruno Haible  <bruno@clisp.org>
51408
51409         * build-aux/install-reloc: Compile also c-ctype.c.
51410         * build-aux/relocatable.sh.in: New file.
51411         * doc/relocatable.texi: New file.
51412         * doc/relocatable-maint.texi: New file.
51413         * doc/gnulib.texi: Include relocatable-maint.texi.
51414         * lib/progreloc.c: Include unistd.h unconditionally.
51415         * lib/relocwrapper.c: Include unistd.h unconditionally.
51416         Include c-ctype.h.
51417         (add_dotbin): Use c_tolower.
51418         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
51419         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
51420         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
51421         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
51422         to m4/relocatable-lib.m4.
51423         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
51424         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
51425         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
51426         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
51427         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
51428         * modules/relocatable: New file.
51429         * modules/relocatable-lib: New file.
51430         * modules/relocatable-script: New file.
51431
51432 2007-02-28  Bruno Haible  <bruno@clisp.org>
51433
51434         Import --enable-relocatable infrastructure.
51435         * build-aux/config.libpath: New file, from GNU gettext.
51436         * build-aux/install-reloc: New file, from GNU gettext.
51437         * build-aux/reloc-ldflags: New file, from GNU gettext.
51438         * lib/relocatable.h: New file, from GNU gettext.
51439         * lib/relocatable.c: New file, from GNU gettext.
51440         * lib/relocwrapper.c: New file, from GNU gettext.
51441         * m4/relocatable.m4: New file, from GNU gettext.
51442
51443 2007-02-28  Bruno Haible  <bruno@clisp.org>
51444
51445         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
51446
51447         * modules/xreadlink: New file, from GNU gettext with modifications.
51448         * lib/xreadlink.c: New file, from GNU gettext.
51449         * lib/xreadlink.h: Add comments.
51450         (xreadlink): New declaration.
51451
51452         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
51453         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
51454         lib/xreadlink-with-size.c.
51455         (configure.ac): Remove gl_XREADLINK invocation.
51456         (Makefile.am): Augment lib_SOURCES.
51457         * m4/xreadlink.m4: Remove file.
51458         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
51459         (xreadlink_with_size): Renamed from xreadink.
51460         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
51461         * modules/canonicalize (Depends-on): Replace xreadlink with
51462         xreadlink-with-size.
51463         * lib/canonicalize.c (canonicalize_filename_mode): Update.
51464
51465 2007-02-25  Jim Meyering  <jim@meyering.net>
51466
51467         * build-aux/announce-gen: When complaining about excess arguments,
51468         list them.
51469
51470 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51471
51472         * README: Document signed integer overflow situation more
51473         accurately.
51474
51475 2007-02-25  Bruno Haible  <bruno@clisp.org>
51476
51477         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
51478         'a' or 'A' conversion.
51479
51480 2007-02-25  Bruno Haible  <bruno@clisp.org>
51481
51482         * modules/filename: Renamed from modules/pathname.
51483         (Files): Replace lib/pathname.h with lib/filename.h. Replace
51484         lib/concatpath.c with lib/concat-filename.c.
51485         (Makefile.am): Update.
51486         (Include): Replace pathname.h with filename.h.
51487         * lib/filename.h: Renamed from lib/pathname.h.
51488         (concatenated_filename): Renamed from concatenated_pathname.
51489         * lib/concat-filename.c: Renamed from lib/concatpath.c.
51490         (concatenated_filename): Renamed from concatenated_pathname.
51491         * lib/findprog.c: Include filename.h instead of pathname.h.
51492         (find_in_path): Update.
51493         * lib/javacomp.c: Include filename.h instead of pathname.h.
51494         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51495         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51496         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51497         is_oldgcj_14_13_usable, is_javac_usable): Update.
51498         * lib/javaexec.c: Include filename.h instead of pathname.h.
51499         (execute_java_class): Update.
51500         * modules/findprog: Update.
51501         * modules/javacomp: Update.
51502         * modules/javaexec: Update.
51503         * MODULES.html.sh (File system functions): Add 'filename', remove
51504         'pathname'.
51505
51506 2007-02-25  Bruno Haible  <bruno@clisp.org>
51507
51508         * modules/printf-frexpl-tests: New file.
51509         * tests/test-printf-frexpl.c: New file.
51510
51511         * modules/printf-frexpl: New file.
51512         * lib/printf-frexpl.h: New file.
51513         * lib/printf-frexpl.c: New file.
51514         * m4/printf-frexpl.m4: New file.
51515
51516 2007-02-25  Bruno Haible  <bruno@clisp.org>
51517
51518         * modules/printf-frexp-tests: New file.
51519         * tests/test-printf-frexp.c: New file.
51520
51521         * modules/printf-frexp: New file.
51522         * lib/printf-frexp.h: New file.
51523         * lib/printf-frexp.c: New file.
51524         * m4/printf-frexp.m4: New file.
51525
51526 2007-02-25  Bruno Haible  <bruno@clisp.org>
51527
51528         Assume automake >= 1.10 for the tests.
51529         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
51530         * modules/arctwo-tests: Likewise.
51531         * modules/argp-tests: Likewise.
51532         * modules/avltree-list-tests: Likewise.
51533         * modules/avltree-oset-tests: Likewise.
51534         * modules/avltreehash-list-tests: Likewise.
51535         * modules/carray-list-tests: Likewise.
51536         * modules/crc-tests: Likewise.
51537         * modules/des-tests: Likewise.
51538         * modules/gc-arcfour-tests: Likewise.
51539         * modules/gc-arctwo-tests: Likewise.
51540         * modules/gc-des-tests: Likewise.
51541         * modules/gc-hmac-md5-tests: Likewise.
51542         * modules/gc-hmac-sha1-tests: Likewise.
51543         * modules/gc-md2-tests: Likewise.
51544         * modules/gc-md4-tests: Likewise.
51545         * modules/gc-md5-tests: Likewise.
51546         * modules/gc-pbkdf2-sha1-tests: Likewise.
51547         * modules/gc-rijndael-tests: Likewise.
51548         * modules/gc-sha1-tests: Likewise.
51549         * modules/gc-tests: Likewise.
51550         * modules/getaddrinfo-tests: Likewise.
51551         * modules/hmac-md5-tests: Likewise.
51552         * modules/hmac-sha1-tests: Likewise.
51553         * modules/linked-list-tests: Likewise.
51554         * modules/linkedhash-list-tests: Likewise.
51555         * modules/lock-tests: Likewise.
51556         * modules/md2-tests: Likewise.
51557         * modules/md4-tests: Likewise.
51558         * modules/md5-tests: Likewise.
51559         * modules/rbtree-list-tests: Likewise.
51560         * modules/rbtree-oset-tests: Likewise.
51561         * modules/rbtreehash-list-tests: Likewise.
51562         * modules/read-file-tests: Likewise.
51563         * modules/rijndael-tests: Likewise.
51564         * modules/stdint-tests: Likewise.
51565         * modules/tls-tests: Likewise.
51566
51567 2007-02-24  Bruno Haible  <bruno@clisp.org>
51568
51569         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
51570         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
51571         function; instead check whether isnan with a double argument links.
51572         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
51573         function; instead check whether isnan with a 'long double' argument
51574         links.
51575         Reported by Eric Blake <ebb9@byu.net>.
51576
51577 2007-02-24  Bruno Haible  <bruno@clisp.org>
51578
51579         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
51580         defined.
51581         * lib/isnanl.c: Remove all code. Just include isnan.c.
51582         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
51583
51584 2007-02-25  Jim Meyering  <jim@meyering.net>
51585
51586         Avoid conflicting types for 'unsetenv' on FreeBSD.
51587         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
51588         conflicting with FreeBSD's (5.0 and 6.1) function declaration
51589         in stdlib.h.
51590
51591 2007-02-24  Bruno Haible  <bruno@clisp.org>
51592
51593         * modules/isnanl-nolibm-tests: New file.
51594         * tests/test-isnanl.c: New file.
51595
51596         * modules/isnanl-nolibm: New file.
51597         * lib/isnanl.h: New file.
51598         * lib/isnanl.c: New file.
51599         * m4/isnanl.m4: New file.
51600
51601 2007-02-24  Bruno Haible  <bruno@clisp.org>
51602
51603         * modules/isnan-nolibm-tests: New file.
51604         * tests/test-isnan.c: New file.
51605
51606         * modules/isnan-nolibm: New file.
51607         * lib/isnan.h: New file.
51608         * lib/isnan.c: New file.
51609         * m4/isnan.m4: New file.
51610
51611 2007-02-24  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
51614         assume that an exponent fits in 20 bits.
51615
51616 2007-02-24  Jim Meyering  <jim@meyering.net>
51617
51618         * m4/regex.m4: Update the description of the configure-time option,
51619         --without-included-regex, to state accurately what the defaults are,
51620         and perhaps to give people an idea why using this option is risky.
51621
51622 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51623
51624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
51625         loops on small arguments.  This attempts to avoid the problem
51626         Bruno Haible reported for AIX 4.3.2 in
51627         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
51628
51629 2007-02-23  Bruno Haible  <bruno@clisp.org>
51630
51631         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
51632         Needed for help2man.
51633
51634 2007-02-23  Karl Berry  <karl@gnu.org>
51635
51636         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
51637         exists, foo.h should be cvs-ignored, not committed.
51638
51639 2007-02-23  Eric Blake  <ebb9@byu.net>
51640
51641         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
51642         * lib/stat-time.h (includes): Likewise.
51643         * lib/utimecmp.c (includes): Likewise.
51644         * lib/utimens.h (includes): Likewise.
51645         * lib/getdate.y (includes): Also include "timespec.h" for use
51646         internal to the module.
51647         * modules/utimens (Depends-on): Revert yesterday's patch.
51648         * modules/nanosleep (Depends-on): Add missing dependency.
51649
51650 2007-02-22  Bruno Haible  <bruno@clisp.org>
51651
51652         * lib/glob.c: Don't include getlogin_r.h.
51653
51654 2007-02-22  Jim Meyering  <jim@meyering.net>
51655
51656         * modules/utimens (Depends-on): Add timespec, required for
51657         utimens.h's inclusion of timespec.h.
51658
51659 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
51660
51661         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
51662         long unreadable paths in GNU/Linux.  Problem reported by Andreas
51663         Schwab in
51664         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
51665         I'll try to think of a better way to fix the Solaris problem.
51666
51667         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
51668         like glibc; on Solaris 10, it fails with errno == EINVAL.
51669         POSIX says the behavior is unspecified if the first argument is NULL,
51670         so play it safe and never pass NULL to the system getcwd.
51671
51672 2007-02-21  Jim Meyering  <jim@meyering.net>
51673
51674         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
51675         of gettimeofday.  It would conflict with the one now always
51676         provided via sys_time_.h.  Reported by Matthew Woehlke, as
51677         an IRIX 6.5 build failure.
51678
51679 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51680
51681         Minor fixups to port to Solaris 10 with Sun C 5.8.
51682         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
51683         * modules/getcwd (Depends-on): Add dirfd.
51684         * lib/putenv.c (putenv): #undef it.
51685         (rpl_putenv): New decl.
51686         (malloc, free): Include <stdlib.h> rather than prototyping separately.
51687
51688 2007-02-20  Bruno Haible  <bruno@clisp.org>
51689
51690         * modules/stdio-tests: New file.
51691         * tests/test-stdio.c: New file.
51692
51693         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
51694         (Depends-on): Add stdio.
51695         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51696         (Include): Use <stdio.h> instead of vsnprintf.h.
51697         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51698         HAVE_DECL_VSNPRINTF.
51699         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
51700
51701         * modules/snprintf (Files): Remove lib/snprintf.h.
51702         (Depends-on): Add stdio.
51703         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51704         (Include): Use <stdio.h> instead of snprintf.h.
51705         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
51706         HAVE_DECL_SNPRINTF.
51707         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
51708         * lib/getaddrinfo.c: Likewise.
51709
51710         * modules/stdio: New file.
51711         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
51712         * lib/snprintf.h: Remove file.
51713         * lib/vsnprintf.h: Remove file.
51714         * lib/.cppi-disable: Remove snprintf.h.
51715         * m4/stdio_h.m4: New file.
51716         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
51717
51718 2007-02-20  Jim Meyering  <jim@meyering.net>
51719
51720         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
51721         used by e.g., mingw.  From Bruno Haible.
51722
51723 2007-02-19  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
51726         warnings.
51727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51728
51729 2007-02-19  Bruno Haible  <bruno@clisp.org>
51730
51731         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
51732         from mingw users.
51733
51734 2007-02-19  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
51737         warnings.
51738         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
51739
51740 2007-02-19  Jim Meyering  <jim@meyering.net>
51741
51742         Don't use FD after a successful "fdopendir (fd)".
51743         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
51744         Reset it by calling dirfd on the just-obtained DIR*.
51745
51746         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
51747         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
51748
51749 2007-02-18  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/readlink.c: Include <unistd.h>.
51752         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
51753         HAVE_READLINK.
51754         * modules/readlink (Depends-on): Add unistd.
51755         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51756         (Include): Add <unistd.h>.
51757
51758         * lib/getlogin_r.h: Remove file.
51759         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
51760         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
51761         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
51762         HAVE_DECL_GETLOGIN_R.
51763         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
51764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51765         (Include): Use <unistd.h> instead of getlogin_r.h.
51766
51767         * lib/getcwd.h: Remove file.
51768         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
51769         * lib/xgetcwd.c: Likewise.
51770         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
51771         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
51772         * modules/getcwd (Files): Remove lib/getcwd.h.
51773         (Depends-on): Add unistd.
51774         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51775         (Include): Use <unistd.h> instad of getcwd.h.
51776
51777         * lib/ftruncate.c: Include <unistd.h> first.
51778         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
51779         Set HAVE_FTRUNCATE.
51780         * modules/ftruncate (Depends-on): Add unistd.
51781         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51782
51783         * lib/fchdir.c: Include <unistd.h> first.
51784         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
51785         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
51786         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
51787         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51788         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
51789
51790         * lib/dup2.c: Include <unistd.h> first.
51791         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
51792         HAVE_DUP2.
51793         * modules/dup2 (Depends-on): Add unistd.
51794         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51795
51796         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
51797         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
51798         REPLACE_CHOWN. Don't define chown as a macro here.
51799         * modules/chown (Depends-on): Add unistd.
51800         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51801
51802         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
51803         Add definition for GL_LINK_WARNING.
51804         (chown, dup2): New declarations.
51805         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
51806         link warning.
51807         (ftruncate): New declaration.
51808         (getcwd): New declaration, taken from old getcwd.h.
51809         (getlogin_r): New declaration, taken from old getlogin_r.h.
51810         (readlink): New declaration.
51811         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
51812         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
51813         (gl_PREREQ_UNISTD): Remove macro.
51814         (gl_UNISTD_MODULE_INDICATOR): New macro.
51815         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
51816         many new variables. Don't set UNISTD_H.
51817         * modules/unistd (Description): Change.
51818         (Depends-on): Add link-warning.
51819         (configure.ac): Update.
51820         (Makefile.am): Create unistd.h always. Substitute many new variables
51821         into it.
51822
51823 2007-02-18  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
51826         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
51827         HAVE_GETSUBOPT.
51828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
51829         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
51830         * lib/getsubopt.h: Remove file.
51831         * modules/getsubopt (Files): Remove lib/getsubopt.h.
51832         (Depends-on): Add stdlib.
51833         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51834         (Includes): Use <stdlib.h> instead of getsubopt.h.
51835         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
51836         Set HAVE_GETSUBOPT.
51837         * lib/getsubopt.c: Don't include getsubopt.h.
51838
51839 2007-02-18  Bruno Haible  <bruno@clisp.org>
51840
51841         * modules/fchdir (Depends-on): Add dup2.
51842
51843 2007-02-18  Bruno Haible  <bruno@clisp.org>
51844
51845         * lib/stdlib_.h: Handle glibc's special invocation convention
51846         specially.
51847
51848 2007-02-18  Bruno Haible  <bruno@clisp.org>
51849
51850         * modules/stdlib-tests: New file.
51851         * tests/test-stdlib.c: New file.
51852
51853         * modules/mkstemp (Files): Remove lib/mkstemp.h.
51854         (Depends-on): Add stdlib.
51855         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51856         (Includes): Use <stdlib.h> instead of mkstemp.h.
51857         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51858         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
51859         * lib/mkstemp.c: Don't include mkstemp.h.
51860         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
51861         * lib/stdlib--.h: Don't include mkstemp.h.
51862
51863         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
51864         (Depends-on): Add stdlib.
51865         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51866         (Includes): Use <stdlib.h> instead of mkdtemp.h.
51867         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
51868         HAVE_MKDTEMP.
51869         * lib/mkdtemp.c: Don't include mkdtemp.h.
51870         * lib/clean-temp.c: Don't include mkdtemp.h.
51871
51872         * modules/exit (Files): Remove lib/exit.h.
51873         (Depends-on): Add stdlib.
51874         (Makefile.am): Remove lib_SOURCES.
51875         (Include): Use <stdlib.h> instead of exit.h.
51876         * lib/argmatch.c: Don't include exit.h.
51877         * lib/execute.c: Likewise.
51878         * lib/pagealign_alloc.c: Likewise.
51879         * lib/pipe.c: Likewise.
51880         * lib/wait-process.c: Likewise.
51881         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
51882         * lib/exitfail.c: Likewise.
51883         * lib/savewd.c: Likewise.
51884         * lib/xsetenv.c: Likewise.
51885
51886         * modules/stdlib: New file.
51887         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
51888         and extra comments about mkstemp().
51889         * lib/exit.h: Remove file.
51890         * lib/mkdtemp.h: Remove file.
51891         * lib/mkstemp.h: Remove file.
51892         * m4/stdlib_h.m4: New file.
51893         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
51894
51895 2007-02-18  Bruno Haible  <bruno@clisp.org>
51896
51897         * modules/math-tests: New file.
51898         * tests/test-math.c: New file.
51899
51900         * modules/math: New file.
51901         * modules/mathl (Files): Remove lib/mathl.h.
51902         (Depends-on): Add math.
51903         (Makefile.am): Don't mention mathl.h.
51904         (Include): Use <math.h> instead of mathl.h.
51905         * lib/math_.h: New file.
51906         * lib/mathl.h: Remove file.
51907         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
51908         mathl.h.
51909         * lib/asinl.c: Likewise.
51910         * lib/atanl.c: Likewise.
51911         * lib/ceill.c: Likewise.
51912         * lib/cosl.c: Likewise.
51913         * lib/expl.c: Likewise.
51914         * lib/floorl.c: Likewise.
51915         * lib/frexpl.c: Likewise.
51916         * lib/ldexpl.c: Likewise.
51917         * lib/logl.c: Likewise.
51918         * lib/sincosl.c: Likewise.
51919         * lib/sinl.c: Likewise.
51920         * lib/sqrtl.c: Likewise.
51921         * lib/tanl.c: Likewise.
51922         * lib/trigl.c: Likewise.
51923         * m4/math_h.m4: New file.
51924         * MODULES.html.sh (Mathematics): Add math.
51925
51926 2007-02-17  Bruno Haible  <bruno@clisp.org>
51927
51928         * modules/wctype-tests: New file.
51929         * tests/test-wctype.c: New file.
51930
51931         * modules/wchar-tests: New file.
51932         * tests/test-wchar.c: New file.
51933
51934         * modules/unistd-tests: New file.
51935         * tests/test-unistd.c: New file.
51936
51937         * modules/time-tests: New file.
51938         * tests/test-time.c: New file.
51939
51940         * modules/sysexits-tests: New file.
51941         * tests/test-sysexits.c: New file.
51942
51943         * modules/sys_time-tests: New file.
51944         * tests/test-sys_time.c: New file.
51945
51946         * modules/sys_stat-tests: New file.
51947         * tests/test-sys_stat.c: New file.
51948
51949         * modules/sys_socket-tests: New file.
51950         * tests/test-sys_socket.c: New file.
51951
51952         * modules/sys_select-tests: New file.
51953         * tests/test-sys_select.c: New file.
51954
51955         * modules/string-tests: New file.
51956         * tests/test-string.c: New file.
51957
51958         * modules/stdbool-tests: New file.
51959         * tests/test-stdbool.c: New file.
51960
51961         * modules/netinet_in-tests: New file.
51962         * tests/test-netinet_in.c: New file.
51963
51964         * modules/inttypes-tests: New file.
51965         * tests/test-inttypes.c: New file.
51966
51967         * modules/fcntl-tests: New file.
51968         * tests/test-fcntl.c: New file.
51969
51970         * modules/byteswap-tests: New file.
51971         * tests/test-byteswap.c: New file.
51972
51973         * modules/arpa_inet-tests: New file.
51974         * tests/test-arpa_inet.c: New file.
51975
51976 2007-02-17  Bruno Haible  <bruno@clisp.org>
51977
51978         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
51979         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
51980         if the corresponding module is not enabled. Emit link warnings if
51981         the function is used nevertheless.
51982         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
51983         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
51984         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
51985         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
51986         * modules/inttypes (Depends-on): Add link-warning.
51987         (Makefile.am): Copy the contents of build-aux/link-warning.h into
51988         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
51989         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
51990         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
51991         * modules/imaxdiv (configure.ac): Likewise.
51992         * modules/strtoimax (configure.ac): Likewise.
51993         * modules/strtoumax (configure.ac): Likewise.
51994
51995 2007-02-17  Bruno Haible  <bruno@clisp.org>
51996
51997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
51998         gl_STRING_MODULE_INDICATOR_DEFAULTS.
51999         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52000         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52001
52002 2007-02-17  Bruno Haible  <bruno@clisp.org>
52003
52004         * modules/link-warning: New file.
52005         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52006         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52007         * modules/string (Depends-on): Add link-warning.
52008         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52009         string.h.
52010         * MODULES.html.sh (Support for building libraries and executables): Add
52011         link-warning.
52012
52013 2007-02-17  Bruno Haible  <bruno@clisp.org>
52014
52015         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52016         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52017         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52018         long lines.
52019
52020 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52021             Bruno Haible  <bruno@clisp.org>
52022
52023         * modules/tmpfile: New file.
52024         * lib/tmpfile.c: New file.
52025         * m4/tmpfile.m4: New file.
52026         * MODULES.html.sh (func_all_modules): New section "Input/output".
52027
52028 2007-02-15  Bruno Haible  <bruno@clisp.org>
52029
52030         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52031         (supports_delete_on_close): New function.
52032         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52033
52034 2007-02-14  Bruno Haible  <bruno@clisp.org>
52035
52036         * modules/mbspcasecmp-tests: New file.
52037         * tests/test-mbspcasecmp.sh: New file.
52038         * tests/test-mbspcasecmp.c: New file.
52039
52040         New module mbspcasecmp.
52041         * modules/mbspcasecmp: New file.
52042         * lib/mbspcasecmp.c: New file.
52043         * lib/string_.h (strncasecmp): Change warning message.
52044         (mbspcasecmp): New declaration.
52045         * m4/mbspcasecmp.m4: New file.
52046         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52047         GNULIB_MBSPCASECMP.
52048         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52049         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52050
52051 2007-02-14  Bruno Haible  <bruno@clisp.org>
52052
52053         * modules/mbsncasecmp-tests: New file.
52054         * tests/test-mbsncasecmp.sh: New file.
52055         * tests/test-mbsncasecmp.c: New file.
52056
52057         New module mbsncasecmp.
52058         * modules/mbsncasecmp: New file.
52059         * lib/mbsncasecmp.c: New file.
52060         * lib/string_.h (mbsncasecmp): New declaration.
52061         * m4/mbsncasecmp.m4: New file.
52062         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52063         GNULIB_MBSNCASECMP.
52064         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52065         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52066
52067 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52068
52069         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52070         Verify that it doesn't overlap with our flags.
52071         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52072         do not have the desired effect in multibyte locales; instead, use
52073         mbscasecmp.
52074         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52075         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52076         we don't require GNU fnmatch ourselves (if our users require it, they
52077         should do so explicitly).
52078
52079         Fix regex code so it doesn't rely on strcasecmp.
52080         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52081         Otherwise, include gnulib's langinfo.h.
52082         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52083         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52084         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52085         * modules/regex (FILES): Remove m4/codeset.m4.
52086         (Depends-on): Add localcharset.  Remove strcase.
52087
52088 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52089
52090         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52091         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52092
52093 2007-02-13  Bruno Haible  <bruno@clisp.org>
52094
52095         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52096         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52097
52098 2007-02-12  Bruno Haible  <bruno@clisp.org>
52099
52100         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52101         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52102         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52103         time warning rather than a link error.
52104
52105 2007-02-12  Bruno Haible  <bruno@clisp.org>
52106
52107         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52108         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52109         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52110
52111 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52112
52113         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52114         args, not 2.
52115
52116 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52117
52118         New module 'time', so that apps can include <time.h> as per
52119         POSIX and GNU instead of separate include files like time_r.h
52120         and timegm.h.  This implementation tries out a simpler approach
52121         for replacing decls in standard include files (as compared to
52122         the string module), somewhat as an experiment.
52123
52124         * config/srclist.txt: Comment out mktime.c for now.
52125         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52126         since it doesn't apply any more.  Use generic wording instead.
52127         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52128         'time'.
52129         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52130         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52131         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52132         Don't include <sys/types.h>; no longer needed since we assume C89.
52133         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52134         * lib/strftime.c: Likewise.
52135         * lib/time_r.c: Likewise.
52136         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52137         * lib/nanosleep.c: Include <time.h> first, to check interface.
52138         * lib/strptime.c: Likewise.
52139         * lib/time_r.c: Likewise.
52140         * lib/timegm.c: Likewise.
52141         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52142         needed.
52143         * lib/timegm.c: Don't include timegm.h; no longer needed.
52144         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52145         time.h now handles any problems in that area.
52146         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52147         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52148         that time.h defines struct timespec.
52149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52150         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52151         handles that.
52152         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52153         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52154         needed.  Set REPLACE_LOCALTIME.
52155         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52156         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52157         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52158         nanosleep; time_h.m4 now does that.  Don't require
52159         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52160         module handles this now.
52161         * modules/getdate (Depends-on): Remove timespec.  Add time.
52162         * modules/nanosleep (Depends-on): Likewise.
52163         * modules/stat-time (Depends-on): Likewise.
52164         * modules/nanosleep (Include): Include time.h, not timespec.h.
52165         * modules/strptime (Files): Remove lib/strptime.h.
52166         (Depends-on): Add extensions, time.
52167         (Include): Include time.h, not strptime.h.
52168         * modules/time_r (Files): Remove lib/time_r.h.
52169         (Depends-on): Add time.
52170         (Include): Include time.h, not time_r.h.
52171         * modules/timegm: Likewise.
52172         * modules/timespec (Description): Now does timespec-related decls
52173         of our own, instead of struct timespec itself.
52174         (Depends-on): Add time; remove extensions.
52175         (Maintainer): Add self.
52176         * modules/utimecmp (Depends-on): Add time; remove timespec.
52177         * modules/utimens (Depends-on): Likewise.
52178         * modules/xnanosleep (Depends-on): Likewise.
52179
52180 2007-02-11  Bruno Haible  <bruno@clisp.org>
52181
52182         * lib/c-strstr.c: Include allocsa.h.
52183         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52184         * lib/c-strcasestr.c: Include allocsa.h.
52185         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52186         * lib/strcasestr.c: Include allocsa.h.
52187         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52188         * lib/mbsstr.c: Include allocsa.h.
52189         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52190         allocsa/freesa instead of malloc/free.
52191         * lib/mbscasestr.c: Include allocsa.h.
52192         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52193         allocsa/freesa instead of malloc/free.
52194         * modules/c-strstr (Depends-on): Add allocsa.
52195         * modules/c-strcasestr (Depends-on): Likewise.
52196         * modules/strcasestr (Depends-on): Likewise.
52197         * modules/mbsstr (Depends-on): Likewise.
52198         * modules/mbscasestr (Depends-on): Likewise.
52199
52200 2007-02-11  Bruno Haible  <bruno@clisp.org>
52201
52202         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52203
52204         * modules/mbsspn-tests: New file.
52205         * tests/test-mbsspn.sh: New file.
52206         * tests/test-mbsspn.c: New file.
52207
52208 2007-02-11  Bruno Haible  <bruno@clisp.org>
52209
52210         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
52211
52212         * modules/mbspbrk-tests: New file.
52213         * tests/test-mbspbrk.sh: New file.
52214         * tests/test-mbspbrk.c: New file.
52215
52216 2007-02-11  Bruno Haible  <bruno@clisp.org>
52217
52218         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
52219         unneeded cast.
52220
52221         * modules/mbscspn-tests: New file.
52222         * tests/test-mbscspn.sh: New file.
52223         * tests/test-mbscspn.c: New file.
52224
52225 2007-02-11  Bruno Haible  <bruno@clisp.org>
52226
52227         * modules/mbscasecmp-tests: New file.
52228         * tests/test-mbscasecmp.sh: New file.
52229         * tests/test-mbscasecmp.c: New file.
52230
52231 2007-02-11  Bruno Haible  <bruno@clisp.org>
52232
52233         Ensure O(n) worst-case complexity of mbscasestr.
52234         * lib/mbscasestr.c: Include stdbool.h.
52235         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52236         functions.
52237         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
52238         the bookkeeping indicates that it's worth it.
52239         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
52240
52241         * modules/mbscasestr-tests: New file.
52242         * tests/test-mbscasestr1.c: New file.
52243         * tests/test-mbscasestr2.sh: New file.
52244         * tests/test-mbscasestr2.c: New file.
52245         * tests/test-mbscasestr3.sh: New file.
52246         * tests/test-mbscasestr3.c: New file.
52247         * tests/test-mbscasestr4.sh: New file.
52248         * tests/test-mbscasestr4.c: New file.
52249         * m4/locale-tr.m4: New file.
52250
52251 2007-02-11  Bruno Haible  <bruno@clisp.org>
52252
52253         Ensure O(n) worst-case complexity of mbsstr.
52254         * lib/mbsstr.c: Include stdbool.h.
52255         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
52256         functions.
52257         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
52258         bookkeeping indicates that it's worth it.
52259         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
52260
52261         * modules/mbsstr-tests: New file.
52262         * tests/test-mbsstr1.c: New file.
52263         * tests/test-mbsstr2.sh: New file.
52264         * tests/test-mbsstr2.c: New file.
52265         * tests/test-mbsstr3.sh: New file.
52266         * tests/test-mbsstr3.c: New file.
52267         * m4/locale-fr.m4: New file.
52268
52269 2007-02-11  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/mbsrchr.c (mbsrchr): Fix bug.
52272
52273         * modules/mbsrchr-tests: New file.
52274         * tests/test-mbsrchr.sh: New file.
52275         * tests/test-mbsrchr.c: New file.
52276
52277 2007-02-11  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/mbschr.c (mbschr): Fix bug.
52280
52281         * modules/mbschr-tests: New file.
52282         * tests/test-mbschr.sh: New file.
52283         * tests/test-mbschr.c: New file.
52284         * m4/locale-zh.m4: New file.
52285
52286 2007-02-11  Bruno Haible  <bruno@clisp.org>
52287
52288         Support for copying multibyte string iterators.
52289         * lib/mbiter.h: Include <string.h>.
52290         (mbiter_multi_copy): New function.
52291         (mbi_copy): New macro.
52292         * lib/mbuiter.h: Include <string.h>.
52293         (mbuiter_multi_copy): New function.
52294         (mbui_copy): New macro.
52295
52296 2007-02-11  Bruno Haible  <bruno@clisp.org>
52297
52298         New module mbslen.
52299         * modules/mbslen: New file.
52300         * lib/mbslen.c: New file.
52301         * lib/string_.h (mbslen): New declaration.
52302         * m4/mbslen.m4: New file.
52303         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52304         GNULIB_MBSLEN.
52305         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
52306         * MODULES.html.sh (Internationalization functions): Add mbslen.
52307
52308 2007-02-11  Bruno Haible  <bruno@clisp.org>
52309
52310         Ensure O(n) worst-case complexity of strcasestr substitute.
52311         * lib/strcasestr.c: Include stdbool.h.
52312         (knuth_morris_pratt): New function.
52313         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52314         bookkeeping indicates that it's worth it.
52315         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
52316
52317         * modules/strcasestr-tests: New file.
52318         * tests/test-strcasestr.c: New file.
52319
52320 2007-02-11  Bruno Haible  <bruno@clisp.org>
52321
52322         Ensure O(n) worst-case complexity of c_strcasestr.
52323         * lib/c-strcasestr.c: Include stdbool.h, string.h.
52324         (knuth_morris_pratt): New function.
52325         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
52326         the bookkeeping indicates that it's worth it.
52327         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
52328
52329         * modules/c-strcasestr-tests: New file.
52330         * tests/test-c-strcasestr.c: New file.
52331
52332 2007-02-11  Bruno Haible  <bruno@clisp.org>
52333
52334         Ensure O(n) worst-case complexity of c_strstr.
52335         * lib/c-strstr.c: Include stdbool.h, string.h.
52336         (knuth_morris_pratt): New function.
52337         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
52338         bookkeeping indicates that it's worth it.
52339         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
52340
52341         * lib/c-strstr.c: Complete rewrite for maintainability.
52342
52343         * modules/c-strstr-tests: New file.
52344         * tests/test-c-strstr.c: New file.
52345
52346 2007-02-11  Bruno Haible  <bruno@clisp.org>
52347
52348         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
52349         5.2.1 and earlier, whereby \055 was treated just like the range
52350         delimiter '-'.
52351         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52352
52353 2007-02-08  Bruno Haible  <bruno@clisp.org>
52354
52355         * modules/regex (Depends-on): Add stdbool.
52356         Reported by Dalibor Topic <robilad@kaffe.org>.
52357
52358 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
52359
52360         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
52361         Prefer returning from main to exiting from it.
52362         Remove unnecessary parens after sizeof.
52363
52364 2007-02-05  Bruno Haible  <bruno@clisp.org>
52365
52366         New module mbssep.
52367         * modules/mbssep: New file.
52368         * lib/mbssep.c: New file.
52369         * lib/string_.h (strsep): Add a conditional link warning.
52370         (mbssep): New declaration.
52371         * m4/mbssep.m4: New file.
52372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52373         GNULIB_MBSSEP.
52374         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
52375         * MODULES.html.sh (Internationalization functions): Add mbssep.
52376
52377 2007-02-05  Bruno Haible  <bruno@clisp.org>
52378
52379         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
52380         Optimize search in case of 1 delimiter.
52381
52382 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52383
52384         * lib/acl.h: Include sys/types.h before sys/acl.h.
52385
52386 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
52387
52388         Merge upstream fix for glibc bugzilla #3957:
52389
52390         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
52391
52392         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
52393         bit for RE_HAT_LISTS_NOT_NEWLINE.
52394         (build_charclass_op): Remove bogus comment.
52395
52396 2007-02-05  Simon Josefsson  <simon@josefsson.org>
52397
52398         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
52399
52400 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52401
52402         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
52403         * lib/memmem.c [!defined _LIBC]: Include config.h.
52404
52405 2007-02-04  Bruno Haible  <bruno@clisp.org>
52406
52407         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
52408         warning message.
52409
52410 2007-02-04  Bruno Haible  <bruno@clisp.org>
52411
52412         New module mbstok_r.
52413         * modules/mbstok_r: New file.
52414         * lib/mbstok_r.c: New file.
52415         * lib/string_.h (strtok_r): Change argument names to match the
52416         comments. Add a conditional link warning.
52417         (mbstok_r): New declaration.
52418         * m4/mbstok_r.m4: New file.
52419         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52420         GNULIB_MBSTOK_R.
52421         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
52422         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
52423
52424 2007-02-04  Bruno Haible  <bruno@clisp.org>
52425
52426         New module mbsspn.
52427         * modules/mbsspn: New file.
52428         * lib/mbsspn.c: New file.
52429         * lib/string_.h (strspn): Add a conditional link warning.
52430         (mbsspn): New declaration.
52431         * m4/mbsspn.m4: New file.
52432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52433         GNULIB_MBSSPN.
52434         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
52435         * MODULES.html.sh (Internationalization functions): Add mbsspn.
52436
52437 2007-02-04  Bruno Haible  <bruno@clisp.org>
52438
52439         New module mbspbrk.
52440         * modules/mbspbrk: New file.
52441         * lib/mbspbrk.c: New file.
52442         * lib/string_.h (strpbrk): Add a conditional link warning.
52443         (mbspbrk): New declaration.
52444         * m4/mbspbrk.m4: New file.
52445         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52446         GNULIB_MBSPBRK.
52447         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
52448         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
52449
52450 2007-02-04  Bruno Haible  <bruno@clisp.org>
52451
52452         New module mbscspn.
52453         * modules/mbscspn: New file.
52454         * lib/mbscspn.c: New file.
52455         * lib/string_.h (strcspn): Add a conditional link warning.
52456         (mbscspn): New declaration.
52457         * m4/mbscspn.m4: New file.
52458         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52459         GNULIB_MBSCSPN.
52460         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
52461         * MODULES.html.sh (Internationalization functions): Add mbscspn.
52462
52463 2007-02-04  Bruno Haible  <bruno@clisp.org>
52464
52465         New module mbscasestr, reduced goal of strcasestr.
52466         * modules/mbscasestr: New file.
52467         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
52468         (mbscasestr): Renamed from strcasestr.
52469         * lib/strcasestr.c: Don't include mbuiter.h.
52470         (strcasestr): Remove support for multibyte locales.
52471         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
52472         Change the conditional link warning.
52473         (mbscasestr): New declaration.
52474         * m4/mbscasestr.m4: New file.
52475         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
52476         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
52477         REPLACE_STRCASESTR.
52478         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
52479         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52480         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52481         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
52482         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
52483         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
52484         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
52485         (Depends-on): Remove mbuiter.
52486         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
52487
52488 2007-02-04  Bruno Haible  <bruno@clisp.org>
52489
52490         Simplify handling of strncasecmp.
52491         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
52492         the conditional link warning.
52493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52494         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
52495         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
52496         * modules/strcase (configure.ac): Don't invoke
52497         gl_STRING_MODULE_INDICATOR.
52498         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
52499
52500 2007-02-04  Bruno Haible  <bruno@clisp.org>
52501
52502         New module mbscasecmp, reduced goal of strcasecmp.
52503         * modules/mbscasecmp: New file.
52504         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
52505         (mbscasecmp): Renamed from strcasecmp.
52506         * lib/strcasecmp.c: Don't include mbuiter.h.
52507         (strcasecmp): Remove support for multibyte locales.
52508         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
52509         Change the conditional link warning.
52510         (mbscasecmp): New declaration.
52511         * m4/mbscasecmp.m4: New file.
52512         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
52513         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
52514         REPLACE_STRCASECMP.
52515         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
52516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52517         GNULIB_MBSCASECMP.
52518         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
52519         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
52520         * modules/strcase (Files): Remove m4/mbrtowc.m4.
52521         (Depends-on): Remove mbuiter.
52522         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
52523
52524 2007-02-04  Bruno Haible  <bruno@clisp.org>
52525
52526         New module mbsstr. Remove module strstr.
52527         * modules/mbsstr: New file.
52528         * modules/strstr: Remove file.
52529         * lib/mbsstr.c: Renamed from lib/strstr.c.
52530         (mbsstr): Renamed from strstr.
52531         * lib/string_.h (strstr): Remove declaration. Change the conditional
52532         link warning.
52533         (mbsstr): New declaration.
52534         * m4/mbsstr.m4: New file.
52535         * m4/strstr.m4: Remove file.
52536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
52537         REPLACE_STRSTR.
52538         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
52539         Don't initialize GNULIB_STRSTR.
52540         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
52541         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52542         * MODULES.html.sh (Internationalization functions): Add mbsstr.
52543         (Support for systems lacking ANSI C 89): Remove strstr.
52544
52545 2007-02-04  Bruno Haible  <bruno@clisp.org>
52546
52547         New module mbsrchr.
52548         * modules/mbsrchr: New file.
52549         * lib/mbsrchr.c: New file.
52550         * lib/string_.h (strrchr): Add a conditional link warning.
52551         (mbsrchr): New declaration.
52552         * m4/mbsrchr.m4: New file.
52553         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52554         GNULIB_MBSRCHR.
52555         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
52556         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
52557
52558 2007-02-04  Bruno Haible  <bruno@clisp.org>
52559
52560         New module mbschr.
52561         * modules/mbschr: New file.
52562         * lib/mbschr.c: New file.
52563         * lib/string_.h (strchr): Add a conditional link warning.
52564         (mbschr): New declaration.
52565         * m4/mbschr.m4: New file.
52566         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52567         GNULIB_MBSCHR.
52568         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
52569         * MODULES.html.sh (Internationalization functions): Add mbschr.
52570
52571 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
52572
52573         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
52574
52575         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
52576
52577 2007-02-04  Bruno Haible  <bruno@clisp.org>
52578
52579         New module description section 'configure.ac-early'.
52580         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
52581         (func_get_autoconf_early_snippet): New function.
52582         (func_import, func_create_testdir): Use it. Remove special cases for
52583         modules 'extensions' and 'lock'.
52584         * modules/extensions (configure.ac-early): Require
52585         gl_USE_SYSTEM_EXTENSIONS.
52586         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
52587
52588 2007-02-04  Bruno Haible  <bruno@clisp.org>
52589
52590         Make use of gcj-4.3's -fsource and -ftarget option.
52591         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
52592         and if so try the options -fsource and -ftarget.
52593         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
52594         source_version, ftarget_option, target_version arguments.
52595         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
52596         (is_envjavac_oldgcj_14_14_usable): Renamed from
52597         is_envjavac_gcj_14_14_usable.
52598         (is_envjavac_oldgcj_14_13_usable): Renamed from
52599         is_envjavac_gcj_14_13_usable.
52600         (is_gcj_present): Update.
52601         (is_gcj_43, is_gcj43_usable): New functions.
52602         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
52603         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
52604         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
52605         try the options -fsource and -ftarget.
52606
52607 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
52608
52609         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
52610         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
52611         larger value.
52612
52613 2007-02-03  Jim Meyering  <jim@meyering.net>
52614
52615         Give tools a better chance to allocate space for very large buffers.
52616         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
52617
52618         Make pwd and readlink work also when run with an unreadable parent dir
52619         on systems with openat support.
52620         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
52621         provided getcwd function, even when we have openat support.
52622         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
52623
52624 2007-02-02  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52627         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
52628         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
52629         portability problems if one of these functions is only used on specific
52630         platforms.
52631         Reported by Paul Eggert.
52632
52633 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
52634
52635         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
52636         is causing more trouble than it's curing.
52637         * lib/regex_internal.h (__mempcpy): Remove.
52638         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
52639         (and make the code a tad smaller to boot).
52640         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
52641
52642 2007-02-02  Jim Meyering  <jim@meyering.net>
52643
52644         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
52645         section, not in the Makefile.am: one.
52646
52647 2007-02-02  Eric Blake  <ebb9@byu.net>
52648
52649         * lib/strchrnul.c: Always include config.h first.
52650
52651         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
52652         gnulib strstr is not necessary here.
52653
52654 2007-02-02  Simon Josefsson  <simon@josefsson.org>
52655
52656         * m4/socklen.m4: Fix typo.
52657
52658 2007-02-02  Eric Blake  <ebb9@byu.net>
52659
52660         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
52661         * modules/netinet_in (Makefile.am): Likewise.
52662
52663 2007-02-01  Bruno Haible  <bruno@clisp.org>
52664
52665         * lib/string_.h (GL_LINK_WARNING): New macro.
52666         (strcasecmp, strstr, strcasestr): If provided by the system,
52667         conditionally define as a macro that leads to a warning instead of to
52668         an error.
52669         (strncasecmp): Conditionally define as a macro that leads to a warning.
52670
52671 2007-02-01  Karl Berry  <karl@gnu.org>
52672
52673         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
52674
52675 2007-02-01  Bruno Haible  <bruno@clisp.org>
52676
52677         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
52678         renamings.
52679
52680 2007-02-01  Eric Blake  <ebb9@byu.net>
52681
52682         * modules/regex (Depends-on): Revert dependence on mempcpy.
52683         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
52684         module's definition of mempcpy.
52685         Reported by Paul Eggert.
52686
52687 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
52688
52689         * lib/string_.h: If the gnulib module XYZ is not present, undefine
52690         the symbol XYZ before redefining it.  This fixes a problem with
52691         programs that don't use XYZ, when compiled on systems that define
52692         XYZ to something else.
52693
52694 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
52695
52696         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
52697         occurs when "mkdir -m foo" creates a setgid directory that is (1)
52698         writeable to group or other and (2) is intended to have a special
52699         mode bit that is set or cleared.  In such a case, the directory
52700         should be neither group- nor other-writeable until the special
52701         mode bits are right.
52702
52703 2007-01-31  Eric Blake  <ebb9@byu.net>
52704
52705         * modules/mountlist (Depends-on): Add strstr.
52706
52707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
52708         bug.
52709         * modules/string (Makefile.am): Remove redundant replacement.
52710         * modules/regex (Depends-on): Add mempcpy.
52711
52712 2007-01-31  Bruno Haible  <bruno@clisp.org>
52713
52714         New module description field 'Link'.
52715         * gnulib-tool (func_usage): Document --extract-link-directive.
52716         (sed_extract_prog): Recognize 'Link' directive.
52717         (func_get_link_directive): New function.
52718         (func_import): Show summary of link directives.
52719         Handle --extract-link-directive option.
52720         * modules/acl (Link): New section.
52721         * modules/clock-time (Link): New section.
52722         * modules/euidaccess (Link): New section.
52723         * modules/gettext (Link): New section.
52724         * modules/iconv (Link): New section.
52725         * modules/lock (Link): New section.
52726         * modules/nanosleep (Link): New section.
52727         * modules/readline (Link): New section.
52728
52729 2007-01-27  Bruno Haible  <bruno@clisp.org>
52730
52731         Enforce the use of gnulib modules for unportable <string.h> functions.
52732         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
52733         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
52734         (gl_HEADER_STRING_H_BODY): Require it.
52735         * lib/string_.h: If the gnulib module XYZ is not present, redefine
52736         the symbol XYZ to one that gives a link error.
52737         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
52738         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
52739         * modules/mempcpy (configure.ac): Likewise.
52740         * modules/memrchr (configure.ac): Likewise.
52741         * modules/stpcpy (configure.ac): Likewise.
52742         * modules/stpncpy (configure.ac): Likewise.
52743         * modules/strcase (configure.ac): Likewise.
52744         * modules/strcasestr (configure.ac): Likewise.
52745         * modules/strchrnul (configure.ac): Likewise.
52746         * modules/strdup (configure.ac): Likewise.
52747         * modules/strndup (configure.ac): Likewise.
52748         * modules/strnlen (configure.ac): Likewise.
52749         * modules/strpbrk (configure.ac): Likewise.
52750         * modules/strsep (configure.ac): Likewise.
52751         * modules/strstr (configure.ac): Likewise.
52752         * modules/strtok_r (configure.ac): Likewise.
52753
52754 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
52755
52756         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
52757
52758 2007-01-30  Jim Meyering  <jim@meyering.net>
52759
52760         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
52761
52762 2007-01-29  Bruno Haible  <bruno@clisp.org>
52763
52764         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
52765         * lib/execute.c: Likewise.
52766         * lib/pipe.c: Likewise.
52767         * lib/printf-args.h: Likewise.
52768         * lib/printf-args.c: Likewise.
52769         * lib/printf-parse.c: Likewise.
52770         * lib/vasnprintf.c: Likewise.
52771
52772 2007-01-29  Eric Blake  <ebb9@byu.net>
52773
52774         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
52775         declaration.
52776
52777 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
52778
52779         * lib/strptime.h (strptime): Use 'restrict' for args where
52780         POSIX requires this.
52781         * lib/strptime.c (strptime): Likewise.
52782         Change license notice from LGPL to GPL, since gnulib-tool will
52783         change this as needed.
52784         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
52785         defined.
52786         Include "strptime.h" first, to check interface.
52787         Do not #undef _LIBC and _NL_CURRENT.
52788         Do not include <stdlib.h>; no longer needed.
52789         Include "time_r.h" and declare ptime_locale_status
52790         only if _LIBC is not defined.
52791         (__P): Remove unused macro.
52792         (match_string): Bring back glibc version, but use it only if _LIBC
52793         is defined.
52794         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
52795         Remove unnecessary assertion and abort() call.
52796         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
52797         * m4/strptime.m4: Fix serial number comment.
52798         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
52799         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
52800         (Depends-on): Add time_r.
52801
52802 2007-01-29  Bruno Haible  <bruno@clisp.org>
52803
52804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52805         strptime.
52806         * modules/strptime (Depends-on): Add stdbool.
52807         * lib/strptime.h: Include <time.h> always. Add comments.
52808
52809 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52810
52811         * modules/strptime: New file.
52812         * lib/strptime.h: New file.
52813         * lib/strptime.c: New file.
52814         * m4/strptime.m4: New file.
52815
52816 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
52817
52818         * MODULES.html.sh: New module mpsort.
52819         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
52820
52821         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
52822         a circularity problem with HP-UX ia64 reported by Bob Proulx in
52823         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
52824         All uses changed.
52825         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
52826         All uses changed.
52827         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
52828         to _Restrict_.
52829         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
52830         the parameter matches the prototype.
52831
52832 2007-01-28  Jim Meyering  <jim@meyering.net>
52833
52834         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
52835         sys/time.h here, reverting that part of the previous patch:
52836         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
52837
52838 2007-01-28  Bruno Haible  <bruno@clisp.org>
52839
52840         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
52841         value of $(SYS_TIME_H).
52842         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
52843         remove it conditionally, too. [added by Jim Meyering]
52844         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
52845         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
52846         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
52847         GETTIMEOFDAY_REPLACEMENT to 1.
52848
52849 2007-01-28  Bruno Haible  <bruno@clisp.org>
52850
52851         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
52852         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
52853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
52854         Set UNISTD_H instead of UNISTD_H2.
52855         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
52856
52857 2007-01-28  Bruno Haible  <bruno@clisp.org>
52858
52859         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
52860         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
52861
52862 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52863
52864         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
52865         (func_create_testdir): Ensure C locale for `grep' and `tr'
52866         character ranges.
52867         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
52868         ACLOCAL_AMFLAGS parsing state machine.
52869
52870 2007-01-27  Bruno Haible  <bruno@clisp.org>
52871
52872         * modules/unistr/base: Update.
52873
52874 2007-01-27  Bruno Haible  <bruno@clisp.org>
52875
52876         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
52877         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
52878         * modules/unistr/u32-mbtouc-unsafe: Renamed from
52879         modules/unistr/u32-mbtouc.
52880         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
52881         * lib/unistr.h: Update.
52882         * lib/linebreak.c: Update.
52883         * modules/unistr/u32-mbtouc: Renamed from
52884         modules/unistr/u32-mbtouc-safe.
52885         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
52886         * lib/unistr.h: Update.
52887         * lib/unistr/u32-to-u8.c: Update.
52888         * lib/unistr/u32-to-u16.c: Update.
52889
52890 2007-01-27  Bruno Haible  <bruno@clisp.org>
52891
52892         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
52893         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
52894         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
52895         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
52896         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
52897         * modules/unistr/u16-mbtouc-unsafe: Renamed from
52898         modules/unistr/u16-mbtouc.
52899         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
52900         * lib/unistr.h: Update.
52901         * lib/linebreak.c: Update.
52902         * modules/linebreak: Update.
52903         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
52904         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
52905         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
52906         * modules/unistr/u16-mbtouc: Renamed from
52907         modules/unistr/u16-mbtouc-safe.
52908         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
52909         * lib/unistr.h: Update.
52910         * lib/unistr/u16-to-u8.c: Update.
52911         * modules/unistr/u16-to-u8: Update.
52912         * lib/unistr/u16-to-u32.c: Update.
52913         * modules/unistr/u16-to-u32: Update.
52914
52915 2007-01-27  Bruno Haible  <bruno@clisp.org>
52916
52917         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
52918         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
52919         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
52920         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
52921         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
52922         * modules/unistr/u8-mbtouc-unsafe: Renamed from
52923         modules/unistr/u8-mbtouc.
52924         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
52925         * lib/unistr.h: Update.
52926         * lib/striconveh.c: Update.
52927         * modules/striconveh: Update.
52928         * lib/linebreak.c: Update.
52929         * modules/linebreak: Update.
52930         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
52931         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
52932         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
52933         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
52934         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
52935         * lib/unistr.h: Update.
52936         * lib/striconveh.c: Update.
52937         * modules/striconveh: Update.
52938         * lib/unistr/u8-to-u16.c: Update.
52939         * modules/unistr/u8-to-u16: Update.
52940         * lib/unistr/u8-to-u32.c: Update.
52941         * modules/unistr/u8-to-u32: Update.
52942
52943 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52944
52945         Sync from Libtool.
52946         * lib/argz.c: Do not include strings.h nor memory.h, include
52947         string.h unconditionally.  Patch by Simon Josefsson.
52948
52949 2007-01-27  Bruno Haible  <bruno@clisp.org>
52950
52951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
52952         from gl_HEADER_STRING_H_BODY.
52953         (gl_HEADER_STRING_H_BODY): Require it.
52954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
52955         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52956         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52957         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52958         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52959         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
52960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52961         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52962         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
52963         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52964         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52965         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
52966         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52967         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52968         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52969
52970 2007-01-27  Bruno Haible  <bruno@clisp.org>
52971
52972         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
52973         check_PROGRAMS into noinst_PROGRAMS.
52974         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
52975         check_PROGRAMS in this case.
52976         (func_import): Set for_test to false.
52977         (func_create_testdir): Set for_test to true.
52978
52979 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
52980             Bruno Haible  <bruno@clisp.org>
52981
52982         * modules/strcasestr (Files): Remove lib/strcasestr.h.
52983         (Depends-on): Add string.
52984         (Includes): Use <string.h> instead of strcasestr.h.
52985         * modules/string (Makefile.am): Also substitute the value of
52986         REPLACE_STRCASESTR.
52987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
52988         assume strcasestr is declared in <string.h> not <strings.h>. Also
52989         set REPLACE_STRCASESTR.
52990         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
52991         REPLACE_STRCASESTR.
52992         * lib/strcasestr.h: Remove file.
52993         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
52994         * lib/string_.h (strcasestr): New declaration.
52995
52996 2007-01-27  Bruno Haible  <bruno@clisp.org>
52997
52998         * lib/string_.h: Use 'extern'.
52999
53000 2007-01-27  Jim Meyering  <jim@meyering.net>
53001
53002         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53003         of set-but-not-used local, "q".
53004
53005         * lib/mempcpy.c: Include <config.h> before <string.h>.
53006         This fixes a compilation error on HP-UX, due to the system's
53007         "restrict"-using mempcpy prototype.
53008
53009 2007-01-26  Bruno Haible  <bruno@clisp.org>
53010
53011         Small optimization.
53012         * lib/javacomp.c: Include c-strstr.h.
53013          (is_envjavac_gcj): Use c_strstr instead of strstr.
53014         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53015
53016 2007-01-26  Bruno Haible  <bruno@clisp.org>
53017
53018         * MODULES.html.sh (Unicode string functions): Add the new modules.
53019
53020         * modules/uniconv/u32-strconv-to-locale: New file.
53021         * lib/uniconv/u32-strconv-to-locale.c: New file.
53022
53023         * modules/uniconv/u16-strconv-to-locale: New file.
53024         * lib/uniconv/u16-strconv-to-locale.c: New file.
53025
53026         * modules/uniconv/u8-strconv-to-locale: New file.
53027         * lib/uniconv/u8-strconv-to-locale.c: New file.
53028
53029         * modules/uniconv/u32-strconv-from-locale: New file.
53030         * lib/uniconv/u32-strconv-from-locale.c: New file.
53031
53032         * modules/uniconv/u16-strconv-from-locale: New file.
53033         * lib/uniconv/u16-strconv-from-locale.c: New file.
53034
53035         * modules/uniconv/u8-strconv-from-locale: New file.
53036         * lib/uniconv/u8-strconv-from-locale.c: New file.
53037
53038         * modules/uniconv/u32-strconv-to-enc: New file.
53039         * lib/uniconv/u32-strconv-to-enc.c: New file.
53040         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53041         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53042
53043         * modules/uniconv/u16-strconv-to-enc: New file.
53044         * lib/uniconv/u16-strconv-to-enc.c: New file.
53045         * lib/uniconv/u-strconv-to-enc.h: New file.
53046         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53047         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53048
53049         * modules/uniconv/u8-strconv-to-enc: New file.
53050         * lib/uniconv/u8-strconv-to-enc.c: New file.
53051         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53052         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53053
53054         * modules/uniconv/u32-strconv-from-enc: New file.
53055         * lib/uniconv/u32-strconv-from-enc.c: New file.
53056         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53057         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53058
53059         * modules/uniconv/u16-strconv-from-enc: New file.
53060         * lib/uniconv/u16-strconv-from-enc.c: New file.
53061         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53062         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53063
53064         * modules/uniconv/u8-strconv-from-enc: New file.
53065         * lib/uniconv/u8-strconv-from-enc.c: New file.
53066         * lib/uniconv/u-strconv-from-enc.h: New file.
53067         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53068         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53069
53070         * modules/uniconv/u32-conv-from-enc: New file.
53071         * lib/uniconv/u32-conv-from-enc.c: New file.
53072         * modules/uniconv/u32-conv-from-enc-tests: New file.
53073         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53074
53075         * modules/uniconv/u16-conv-from-enc: New file.
53076         * lib/uniconv/u16-conv-from-enc.c: New file.
53077         * lib/uniconv/u-conv-from-enc.h: New file.
53078         * modules/uniconv/u16-conv-from-enc-tests: New file.
53079         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53080
53081         * modules/uniconv/u8-conv-from-enc: New file.
53082         * lib/uniconv/u8-conv-from-enc.c: New file.
53083         * modules/uniconv/u8-conv-from-enc-tests: New file.
53084         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53085
53086         * modules/uniconv/base: New file.
53087         * lib/uniconv.h: New file.
53088
53089 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53090
53091         * doc/gnulib-tool.texi (Initial import): Update to match current
53092         behavior with strdup module.
53093         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53094         * lib/memmem.h: Remove; all uses removed.  This is now done
53095         by <string.h>.
53096         * lib/mempcpy.h: Likewise.
53097         * lib/memrchr.h: Likewise.
53098         * lib/stpcpy.h: Likewise.
53099         * lib/stpncpy.h: Likewise.
53100         * lib/strcase.h: Likewise.
53101         * lib/strchrnul.h: Likewise.
53102         * lib/strdup.h: Likewise.
53103         * lib/strndup.h: Likewise.
53104         * lib/strnlen.h: Likewise.
53105         * lib/strpbrk.h: Likewise.
53106         * lib/strsep.h: Likewise.
53107         * lib/strstr.h: Likewise.
53108         * lib/strtok_r.h: Likewise.
53109         * lib/string_.h: New file.
53110         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53111         Rely on <string.h> instead.
53112         * lib/canon-host.c: Likewise.
53113         * lib/chdir-long.c: Likewise.
53114         * lib/concatpath.c: Likewise.
53115         * lib/exclude.c: Likewise.
53116         * lib/fchdir.c: Likewise.
53117         * lib/getaddrinfo.c: Likewise.
53118         * lib/getcwd.c: Likewise.
53119         * lib/getsubopt.c: Likewise.
53120         * lib/glob.c: Likewise.
53121         * lib/hard-locale.c: Likewise.
53122         * lib/iconvme.c: Likewise.
53123         * lib/javacomp.c: Likewise.
53124         * lib/mempcpy.c: Likewise.
53125         * lib/memrchr.c: Likewise.
53126         * lib/regex_internal.h: Likewise.
53127         * lib/stpncpy.c: Likewise.
53128         * lib/strcasecmp.c: Likewise.
53129         * lib/strchrnul.c: Likewise.
53130         * lib/strdup.c: Likewise.
53131         * lib/striconv.c: Likewise.
53132         * lib/striconveh.c: Likewise.
53133         * lib/striconveha.c: Likewise.
53134         * lib/strncasecmp.c: Likewise.
53135         * lib/strndup.c: Likewise.
53136         * lib/strnlen.c: Likewise.
53137         * lib/strsep.c: Likewise.
53138         * lib/strstr.c: Likewise.
53139         * lib/strtok_r.c: Likewise.
53140         * lib/userspec.c: Likewise.
53141         * lib/w32spawn.h: Likewise.
53142         * lib/xstrndup.c: Likewise.
53143         * lib/mountlist.c (strstr): Remove decl.
53144         * m4/string_h.m4: New file.
53145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53146         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53147         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53148         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53149         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53150         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53151         Set REPLACE_STRCASECMP if necessary.
53152         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53153         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53154         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53155         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53156         HAVE_DECL_STRDUP if necessary.
53157         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53158         since gl_FUNC_STRNDUP does that now.
53159         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53160         Check for decl here...
53161         (gl_PREREQ_STRNLEN): ... not here.
53162         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53163         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53164         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53165         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53166         necessary.
53167         * modules/string: New file.
53168         * modules/memmem (Files): Remove special-purpose include file.
53169         (Depends-on): Add string.
53170         (Include): Include <string.h>, not the removed file.
53171         * modules/mempcpy: Likewise.
53172         * modules/memrchr: Likewise.
53173         * modules/stpcpy: Likewise.
53174         * modules/stpncpy: Likewise.
53175         * modules/strcase: Likewise.
53176         * modules/strchrnul: Likewise.
53177         * modules/strdup: Likewise.
53178         * modules/strndup: Likewise.
53179         * modules/strnlen: Likewise.
53180         * modules/strpbrk: Likewise.
53181         * modules/strsep: Likewise.
53182         * modules/strstr: Likewise.
53183         * modules/strtok_r: Likewise.
53184         * tests/test-dirname.c: Don't include "strdup.h", since
53185         <string.h> now suffices.
53186         * tests/test-memmem.c: Don't include "memmem.h", since
53187         <string.h> now suffices.
53188
53189 2007-01-25  Bruno Haible  <bruno@clisp.org>
53190
53191         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53192         *resultp is 0.
53193
53194         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53195         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53196         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53197         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53198
53199         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53200         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53201         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53202         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53203         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53204         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53205
53206 2007-01-24  Bruno Haible  <bruno@clisp.org>
53207
53208         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
53209         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
53210         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
53211         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
53212         gl_FUNC_FTS_CORE.
53213         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
53214         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
53215         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53216         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
53217         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
53218         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
53219         gl_FUNC_FCHOWNAT.
53220         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
53221         gl_FUNC_STRFTIME.
53222         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
53223         Reported by Ralf Wildenhues.
53224
53225 2007-01-24  Bruno Haible  <bruno@clisp.org>
53226
53227         Drop AC_REQUIRE calls that are redundant with the module dependencies.
53228         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
53229         gl_GETADDRINFO.
53230         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
53231         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
53232         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
53233
53234 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
53235
53236         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
53237         Don't use 'exit'; just return from 'main'.
53238         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
53239
53240         * lib/fnmatch_.h: Readjust white space and comments to match
53241         glibc, to avoid spurious diffs.
53242
53243 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53244
53245         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
53246         2004-12-01 change by Jakub Jelinek, since this code won't compile
53247         if !LIBC.  Problem reported by Bob Proulx.
53248
53249 2007-01-23  Bruno Haible  <bruno@clisp.org>
53250
53251         * lib/striconveh.c: Include c-strcaseeq.h.
53252         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
53253         * modules/striconveh (Depends-on): Add c-strcaseeq.
53254
53255 2007-01-23  Bruno Haible  <bruno@clisp.org>
53256
53257         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
53258
53259         * modules/c-strcaseeq: New file.
53260         * lib/c-strcaseeq.h: New file.
53261
53262         * modules/streq: New file.
53263         * lib/streq.h: New file.
53264
53265 2007-01-23  Bruno Haible  <bruno@clisp.org>
53266
53267         * modules/striconveha-tests: New file.
53268         * tests/test-striconveha.c: New file.
53269
53270         * lib/striconveha.h: Include <stdbool.h>.
53271         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
53272         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
53273         (mem_iconveha_notranslit): Renamed from mem_iconveha.
53274         (mem_iconveha): New function.
53275         (str_iconveha_notranslit): Renamed from str_iconveha.
53276         (str_iconveha): New function.
53277         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
53278         c-strcase.
53279
53280 2007-01-23  Bruno Haible  <bruno@clisp.org>
53281
53282         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
53283         encodings without forgiving before trying any encoding with handler.
53284         (str_iconveha): Try all encodings without forgiving before trying any
53285         encoding with handler.
53286
53287 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53288
53289         Import the following changes from libc.
53290
53291         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53292
53293         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
53294
53295         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
53296
53297         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
53298         normal_bracket label.
53299
53300         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
53301
53302         [BZ #361]
53303         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
53304         to normal_bracket after fetching the next character.
53305
53306 2007-01-22  Bruno Haible  <bruno@clisp.org>
53307
53308         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
53309         argument.
53310         * lib/striconveh.c (iconv_carefully_1): New function.
53311         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
53312         argument.
53313         (str_cd_iconveh): Update.
53314         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
53315         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
53316         * tests/test-striconveh.c (MAGIC): New macro.
53317         (new_offsets): New function.
53318         (main): Test call with and without offsets.
53319
53320 2007-01-22  Bruno Haible  <bruno@clisp.org>
53321
53322         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
53323         * modules/sys_select (Makefile.am): Likewise.
53324         * modules/sys_socket (Makefile.am): Likewise.
53325         * modules/sys_time (Makefile.am): Likewise.
53326
53327 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53328
53329         * modules/gettimeofday (License): Change from GPL to LGPL, since
53330         gettimeofday is a library function.
53331
53332 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53333
53334         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
53335
53336 2007-01-21  Bruno Haible  <bruno@clisp.org>
53337
53338         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
53339
53340 2007-01-21  Bruno Haible  <bruno@clisp.org>
53341
53342         * modules/striconveha: New file.
53343         * lib/striconveha.h: New file.
53344         * lib/striconveha.c: New file.
53345         * MODULES.html.sh (Internationalization functions): Add striconveha.
53346         * lib/striconv.c (str_iconv): Optimize the case of an empty input
53347         string.
53348         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
53349
53350 2007-01-21  Bruno Haible  <bruno@clisp.org>
53351
53352         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
53353         * lib/striconveh.c (str_iconveh): Likewise.
53354
53355 2007-01-21  Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/striconveh.h (mem_iconveh): New declaration.
53358         * lib/striconveh.c (mem_iconveh): New function.
53359         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
53360
53361 2007-01-21  Bruno Haible  <bruno@clisp.org>
53362
53363         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
53364
53365         * lib/striconveh.h (mem_cd_iconveh): Change specification.
53366         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
53367         original result buffer.
53368         (str_cd_iconveh): Update.
53369         * tests/test-striconveh.c (main): Update.
53370
53371         * lib/striconv.h (mem_cd_iconv): Change specification.
53372         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
53373         result buffer.
53374         (str_cd_iconv): Update.
53375         * tests/test-striconv.c (main): Update.
53376
53377 2007-01-21  Bruno Haible  <bruno@clisp.org>
53378
53379         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
53380
53381 2007-01-20  Jim Meyering  <jim@meyering.net>
53382
53383         * lib/userspec.c (parse_with_separator): If a user or group string
53384         starts with "+", skip the corresponding name-to-ID look-up, since
53385         such a look-up must fail: user and group names may not include "+".
53386
53387 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53388
53389         * lib/poll.c: Include sys/time.h and time.h unconditionally,
53390         since we now assume the sys_time module.
53391         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
53392         check for sys/time.h; no longer needed.
53393         * modules/poll (Depends-on): Depend on sys_time.
53394
53395 2007-01-18  Bruno Haible  <bruno@clisp.org>
53396
53397         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
53398         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53399
53400         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
53401         gettimeofday.
53402
53403         * tests/test-gettimeofday.c: Include <time.h>.
53404         (dummy): Remove variable.
53405
53406         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
53407         gl_HEADER_SYS_TIME_H.
53408         (gl_HEADER_SYS_TIME_H): New macro.
53409
53410         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
53411         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53412         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
53413         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
53414         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53415         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
53416         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
53417         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53418         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
53419         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
53420         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53421
53422         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
53423         last change; it caused a compilation error when cross-compiling to
53424         Cygwin.
53425
53426 2007-01-18  Jim Meyering  <jim@meyering.net>
53427
53428         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
53429         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
53430         than the race-prone "test -d sys || mkdir sys".
53431         (configure.ac): Use AC_PROG_MKDIR_P.
53432         * modules/sys_select: Likewise.
53433         * modules/sys_socket: Likewise.
53434         * modules/sys_time: Likewise.
53435
53436 2007-01-18  Eric Blake  <ebb9@byu.net>
53437
53438         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
53439         replace gettimeofday.
53440         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
53441         name, to avoid infinite recursion.
53442
53443 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
53444
53445         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
53446         module sys_time.
53447         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
53448         assume timespec.h defines struct timeval.
53449         * lib/settime.c: Likewise.
53450         * lib/utimens.c: Likewise.
53451         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
53452         since we now assume the gettimeofday module.
53453         * lib/tempname.c (__gen_tempname): Likewise.
53454         * lib/gettimeofday.h: Remove.
53455         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
53456         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
53457         Include <time.h>, for 'time()'.
53458         (localtime_buffer_addr): Also use this workaround if
53459         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
53460         to simplify the uses.  All uses changed.
53461         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
53462         that #undef is inside {}, and 'const' follows type name consistently.
53463         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
53464         (gettimeofday): Do not use the maximum possible value for
53465         tv->tv_usec, since that might break usages other than ls.c.
53466         Instead, we'll leave ls.c alone.  This undoes today's patch
53467         by Bruno.  Add a compile-time warning for 1s-clock resolution;
53468         we've never observed the problem but might as well keep the
53469         canary.
53470         * lib/nanosleep.c: Include timespec.h first, for interface check.
53471         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
53472         now assume the sys_time module.
53473         * lib/tempname.c: Likewise.
53474         * lib/timespec.h: Likewise.
53475         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
53476         needed.
53477         * lib/strftime.c: Likewise.
53478         * lib/timespec.h: Likewise.
53479         * lib/posixtm.c: Include posixtm.h first, for interface check.
53480         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
53481         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
53482         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
53483         * lib/sys_time_.h: New file.
53484         * lib/timespec.h (struct timespec): Use long int, not long.
53485         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53486         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
53487         Remove obsolescent call to AC_HEADER_TIME.
53488         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53489         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53490         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
53491         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
53492         Likewise.
53493         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
53494         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
53495         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
53496         into the sys_time module.  Check for gettimeofday just once.
53497         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
53498         for gettimeofday signature to just check the signature.  Merely
53499         compile it, since linking doesn't test signature.  Improve test for
53500         whether gettimeofday.o is actually needed.
53501         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
53502         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
53503         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
53504         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53505         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
53506         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
53507         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
53508         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
53509         than worrying about sys/time.h.
53510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53511         Don't bother worrying about TIME_WITH_SYS_TIME.
53512         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
53513         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
53514         * m4/sys_time_h.m4: New file.
53515         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
53516         Don't include sys/time.h.  Return from main rather than exiting.
53517         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
53518         all uses changed.
53519         * modules/gethrxtime (Depends-on): Add sys_time.
53520         * modules/gettime (Depends-on): Likewise.
53521         * modules/gettimeofday (Depends-on): Likewise.
53522         * modules/nanosleep (Depends-on): Likewise.
53523         * modules/settime (Depends-on): Likewise.
53524         * modules/tempname (Depends-on): Likewise.
53525         * modules/utimens (Depends-on): Likewise.
53526         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
53527         (Include:) Change back to <sys/time.h>.
53528         (Maintainer:) Add self.
53529         * modules/sys_time: New file.
53530         * modules/tempname (Depends-on): Add gettimeofday.
53531         * tests/test-gettimeofday.c: Include <sys/time.h>
53532         rather than gettimeofday.h.
53533
53534 2007-01-17  Bruno Haible  <bruno@clisp.org>
53535
53536         * gnulib-tool (func_get_license): Revert last patch. Instead, let
53537         the license default to GPL.
53538         (func_create_testdir): Don't complain if a module is LGPL and its
53539         tests module depends on GPLed modules.
53540
53541 2007-01-17  Bruno Haible  <bruno@clisp.org>
53542
53543         * lib/gettimeofday.c (gettimeofday): Add code for the case
53544         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
53545         maximum possible value for tv->tv_usec, rather than the minimum one.
53546
53547 2005-10-08  Martin Lambers  <marlam@marlam.de>
53548 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53549 2007-01-16  Bruno Haible  <bruno@clisp.org>
53550
53551         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
53552         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
53553         gl_FUNC_GETTIMEOFDAY.
53554         (Include): Add gettimeofday.h.
53555         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
53556         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
53557         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
53558         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
53559         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
53560         * lib/gettimeofday.h: New file.
53561         * lib/gettimeofday.c: Include <sys/timeb.h>.
53562         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
53563         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
53564         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
53565         fall back on time().
53566
53567         * tests/test-gettimeofday.c: New file.
53568         * modules/gettimeofday-tests: New file.
53569
53570 2007-01-16  Eric Blake  <ebb9@byu.net>
53571
53572         * modules/fnmatch (Depends-on): Depend on wchar.
53573         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
53574         * m4/fnmatch.m4: Likewise.
53575         * modules/mbchar (Makefile.am): Assume <wchar.h>.
53576         * m4/mbchar.m4: Likewise.
53577         * modules/mbswidth (Depends-on): Depend on wchar.
53578         * lib/mbswidth.c: Assume <wchar.h>.
53579         * m4/mbswidth.m4: Likewise.
53580         * modules/quotearg (Depends-on): Depend on wchar.
53581         * lib/quotearg.c: Assume <wchar.h>.
53582         * m4/quotearg.m4: Likewise.
53583         * modules/regex (Depends-on): Depend on wchar.
53584         * lib/regex_internal.h: Assume <wchar.h>.
53585         * m4/regex.m4: Likewise.
53586         * modules/stdint (Depends-on): Depend on wchar.
53587         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
53588         * m4/stdint.m4: Likewise.
53589         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
53590         * modules/strftime (Depends-on): Depend on wchar.
53591         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
53592         * modules/strtol (Depends-on): Depend on wchar.
53593         * lib/strtol.c: Assume <wchar.h>.
53594         * modules/wcwidth (Depends-on): Depend on wchar.
53595         * lib/wcwidth.h: Assume <wchar.h>.
53596         * m4/wcwidth.m4: Likewise.
53597
53598 2007-01-16  Bruno Haible  <bruno@clisp.org>
53599
53600         * modules/csharpexec-script: New, created from...
53601         * modules/csharpexec: ... this.
53602
53603 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53604
53605         * modules/javaexec-script: New, created from...
53606         * modules/javaexec: ... this.
53607
53608 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53609
53610         * modules/poll (Dependencies): Add sys_select.
53611
53612 2007-01-15  Jim Meyering  <jim@meyering.net>
53613
53614         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
53615         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
53616         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
53617         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
53618
53619 2007-01-15  Bruno Haible  <bruno@clisp.org>
53620
53621         * modules/striconveh: New file.
53622         * lib/striconveh.h: New file.
53623         * lib/striconveh.c: New file.
53624         * MODULES.html.sh (Internationalization functions): Add striconveh.
53625
53626         * modules/striconveh-tests: New file.
53627         * tests/test-striconveh.c: New file.
53628
53629 2007-01-15  Bruno Haible  <bruno@clisp.org>
53630
53631         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
53632         not from GNU libiconv or GNU libc.
53633
53634 2007-01-15  Bruno Haible  <bruno@clisp.org>
53635
53636         * doc/gnulib-intro.texi (Copyright): Explain the different license
53637         terms for module descriptions, autoconf macros, tests, documentation.
53638
53639 2007-01-14  Bruno Haible  <bruno@clisp.org>
53640
53641         * modules/striconv-tests: New file.
53642         * tests/test-striconv.c: New file.
53643
53644 2007-01-14  Bruno Haible  <bruno@clisp.org>
53645
53646         * modules/iconv-tests: New file.
53647         * tests/test-iconv.c: New file.
53648
53649 2007-01-14  Bruno Haible  <bruno@clisp.org>
53650
53651         * gnulib-tool (func_get_license): For test modules, use the license of
53652         the main module.
53653
53654 2007-01-14  Bruno Haible  <bruno@clisp.org>
53655
53656         * modules/iconv (Include): Clarify that <iconv.h> can only be included
53657         if iconv is found to exist.
53658
53659 2007-01-14  Bruno Haible  <bruno@clisp.org>
53660
53661         * modules/c-ctype-tests: New file.
53662         * tests/test-c-ctype.c: New file.
53663
53664 2007-01-14  Bruno Haible  <bruno@clisp.org>
53665
53666         * modules/binary-io-tests: New file.
53667         * tests/test-binary-io.sh: New file.
53668         * tests/test-binary-io.c: New file.
53669
53670 2007-01-14  Bruno Haible  <bruno@clisp.org>
53671
53672         * modules/array-oset-tests: New file.
53673         * tests/test-array_oset.c: New file.
53674
53675 2007-01-14  Bruno Haible  <bruno@clisp.org>
53676
53677         * modules/array-list-tests: New file.
53678         * tests/test-array_list.c: New file.
53679
53680 2007-01-14  Bruno Haible  <bruno@clisp.org>
53681
53682         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
53683         and make.
53684         Reported by Simon Josefsson in
53685         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
53686
53687 2007-01-14  Bruno Haible  <bruno@clisp.org>
53688
53689         * modules/allocsa-tests: New file.
53690         * tests/test-allocsa.c: New file.
53691
53692 2007-01-14  Bruno Haible  <bruno@clisp.org>
53693
53694         * modules/fchdir (Depends-on): Add absolute-header.
53695         * modules/unistd (Depends-on): Likewise.
53696
53697 2006-12-30  Bruno Haible  <bruno@clisp.org>
53698
53699         * modules/fchdir: New file.
53700         * modules/unistd (Files): Add lib/unistd_.h.
53701         (Makefile.am): Generate unistd.h from unistd_.h.
53702         * lib/fchdir.c: New file.
53703         * lib/dirent_.h: New file.
53704         * lib/unistd_.h: New file.
53705         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
53706         * m4/fchdir.m4: New file.
53707         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
53708         (gl_HEADER_UNISTD): Invoke it.
53709         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
53710         function.
53711         * lib/backupfile.c (opendir, closedir): Undefine.
53712         * lib/chown.c (open, close): Undefine.
53713         * lib/clean-temp.c (open, close): Undefine.
53714         * lib/copy-file.c (open, close): Undefine.
53715         * lib/execute.c (open, close): Undefine.
53716         * lib/fsusage.c (open, close): Undefine.
53717         * lib/gc-gnulib.c (open, close): Undefine.
53718         * lib/getcwd.c (opendir, closedir): Undefine.
53719         * lib/glob.c (opendir, closedir): Undefine.
53720         * lib/javacomp.c (open, close): Undefine.
53721         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
53722         * lib/openat-proc.c (open, close): Undefine.
53723         * lib/pagealign_alloc.c (open, close): Undefine.
53724         * lib/pipe.c (open, close): Undefine.
53725         * lib/progreloc.c (open, close): Undefine.
53726         * lib/savedir.c (opendir, closedir): Undefine.
53727         * lib/utime.c (open, close): Undefine.
53728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
53729
53730 2007-01-10  Bruno Haible  <bruno@clisp.org>
53731
53732         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
53733
53734 2007-01-12  Eric Blake  <ebb9@byu.net>
53735
53736         Provide a robust <wchar.h>.  Further simplifications are now
53737         possible in other modules, but not included here.
53738         * modules/wchar: New module.
53739         * m4/wchar.m4: New file.
53740         * lib/wchar_.h: Likewise.
53741         * modules/mbchar (Depends-on): Depend on wchar, as the first use
53742         of the new module.
53743         * MODULES.html.sh (Extended multibyte and wide character utilities):
53744         New section.
53745
53746 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
53747
53748         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
53749         to a reasonable default for memory allocation.
53750         (xreadlink): Don't allocate a huge buffer, to work around a buggy
53751         file system that reports garbage st_size values for symlinks.
53752         Problem reported by Liyang Hu.
53753
53754 2007-01-11  Simon Josefsson  <simon@josefsson.org>
53755
53756         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
53757         Emacs .#* auto-save files).
53758
53759 2007-01-11  Bruno Haible  <bruno@clisp.org>
53760
53761         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
53762         directory.
53763
53764 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53765
53766         Use @...@ consistently in lib/wctype_.h.
53767         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
53768         on it being set to 1 or 0.
53769         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
53770         go back to AC_SUBSTing it.
53771         * modules/wctype (Makefile.am): Undo previous change.
53772
53773 2007-01-10  Eric Blake  <ebb9@byu.net>
53774
53775         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
53776         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
53777         * modules/wctype (Makefile.am): Likewise.
53778         Reported by Chris McGuire.
53779
53780 2007-01-10  Jim Meyering  <jim@meyering.net>
53781
53782         fts.c: a small readability/maintainability improvement
53783         * lib/fts.c (fts_read): Make this code slightly more readable and
53784         maintainable by hoisting the "sp->fts_cur = p" assignments to
53785         immediately follow the statements that set P.  Derived from
53786         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
53787
53788 2007-01-10  Eric Blake  <ebb9@byu.net>
53789
53790         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
53791         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
53792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53793         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53794         Reported by Chris McGuire.
53795
53796 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53797
53798         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
53799         in sed script.
53800
53801 2007-01-09  Bruno Haible  <bruno@clisp.org>
53802
53803         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
53804         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
53805         variables.
53806         (func_module): Use them.
53807
53808 2007-01-09  Bruno Haible  <bruno@clisp.org>
53809
53810         * modules/unistr/base: New file.
53811         * lib/unistr.h: New file.
53812
53813         * modules/unistr/u8-to-u16: New file.
53814         * lib/unistr/u8-to-u16.c: New file.
53815
53816         * modules/unistr/u8-to-u32: New file.
53817         * lib/unistr/u8-to-u32.c: New file.
53818
53819         * modules/unistr/u16-to-u8: New file.
53820         * lib/unistr/u16-to-u8.c: New file.
53821
53822         * modules/unistr/u16-to-u32: New file.
53823         * lib/unistr/u16-to-u32.c: New file.
53824
53825         * modules/unistr/u32-to-u8: New file.
53826         * lib/unistr/u32-to-u8.c: New file.
53827
53828         * modules/unistr/u32-to-u16: New file.
53829         * lib/unistr/u32-to-u16.c: New file.
53830
53831         * modules/unistr/u8-check: New file.
53832         * modules/unistr/u16-check: New file.
53833         * modules/unistr/u32-check: New file.
53834         * lib/unistr/u8-check.c: New file.
53835         * lib/unistr/u16-check.c: New file.
53836         * lib/unistr/u32-check.c: New file.
53837
53838         * modules/unistr/u8-chr: New file.
53839         * modules/unistr/u16-chr: New file.
53840         * modules/unistr/u32-chr: New file.
53841         * lib/unistr/u8-chr.c: New file.
53842         * lib/unistr/u16-chr.c: New file.
53843         * lib/unistr/u32-chr.c: New file.
53844
53845         * modules/unistr/u8-cmp: New file.
53846         * modules/unistr/u16-cmp: New file.
53847         * modules/unistr/u32-cmp: New file.
53848         * lib/unistr/u8-cmp.c: New file.
53849         * lib/unistr/u16-cmp.c: New file.
53850         * lib/unistr/u32-cmp.c: New file.
53851
53852         * modules/unistr/u8-cpy: New file.
53853         * modules/unistr/u16-cpy: New file.
53854         * modules/unistr/u32-cpy: New file.
53855         * lib/unistr/u8-cpy.c: New file.
53856         * lib/unistr/u16-cpy.c: New file.
53857         * lib/unistr/u32-cpy.c: New file.
53858         * lib/unistr/u-cpy.h: New file.
53859
53860         * modules/unistr/u8-cpy-alloc: New file.
53861         * modules/unistr/u16-cpy-alloc: New file.
53862         * modules/unistr/u32-cpy-alloc: New file.
53863         * lib/unistr/u8-cpy-alloc.c: New file.
53864         * lib/unistr/u16-cpy-alloc.c: New file.
53865         * lib/unistr/u32-cpy-alloc.c: New file.
53866         * lib/unistr/u-cpy-alloc.h: New file.
53867
53868         * modules/unistr/u8-endswith: New file.
53869         * modules/unistr/u16-endswith: New file.
53870         * modules/unistr/u32-endswith: New file.
53871         * lib/unistr/u8-endswith.c: New file.
53872         * lib/unistr/u16-endswith.c: New file.
53873         * lib/unistr/u32-endswith.c: New file.
53874         * lib/unistr/u-endswith.h: New file.
53875
53876         * modules/unistr/u8-mblen: New file.
53877         * modules/unistr/u16-mblen: New file.
53878         * modules/unistr/u32-mblen: New file.
53879         * lib/unistr/u8-mblen.c: New file.
53880         * lib/unistr/u16-mblen.c: New file.
53881         * lib/unistr/u32-mblen.c: New file.
53882
53883         * modules/unistr/u8-mbtouc: New file.
53884         * modules/unistr/u16-mbtouc: New file.
53885         * modules/unistr/u32-mbtouc: New file.
53886         * lib/unistr/u8-mbtouc.c: New file.
53887         * lib/unistr/u16-mbtouc.c: New file.
53888         * lib/unistr/u32-mbtouc.c: New file.
53889
53890         * modules/unistr/u8-mbtouc-safe: New file.
53891         * modules/unistr/u16-mbtouc-safe: New file.
53892         * modules/unistr/u32-mbtouc-safe: New file.
53893         * lib/unistr/u8-mbtouc-safe.c: New file.
53894         * lib/unistr/u16-mbtouc-safe.c: New file.
53895         * lib/unistr/u32-mbtouc-safe.c: New file.
53896
53897         * modules/unistr/u8-move: New file.
53898         * modules/unistr/u16-move: New file.
53899         * modules/unistr/u32-move: New file.
53900         * lib/unistr/u8-move.c: New file.
53901         * lib/unistr/u16-move.c: New file.
53902         * lib/unistr/u32-move.c: New file.
53903         * lib/unistr/u-move.h: New file.
53904
53905         * modules/unistr/u8-next: New file.
53906         * modules/unistr/u16-next: New file.
53907         * modules/unistr/u32-next: New file.
53908         * lib/unistr/u8-next.c: New file.
53909         * lib/unistr/u16-next.c: New file.
53910         * lib/unistr/u32-next.c: New file.
53911
53912         * modules/unistr/u8-prev: New file.
53913         * modules/unistr/u16-prev: New file.
53914         * modules/unistr/u32-prev: New file.
53915         * lib/unistr/u8-prev.c: New file.
53916         * lib/unistr/u16-prev.c: New file.
53917         * lib/unistr/u32-prev.c: New file.
53918
53919         * modules/unistr/u8-set: New file.
53920         * modules/unistr/u16-set: New file.
53921         * modules/unistr/u32-set: New file.
53922         * lib/unistr/u8-set.c: New file.
53923         * lib/unistr/u16-set.c: New file.
53924         * lib/unistr/u32-set.c: New file.
53925         * lib/unistr/u-set.h: New file.
53926
53927         * modules/unistr/u8-startswith: New file.
53928         * modules/unistr/u16-startswith: New file.
53929         * modules/unistr/u32-startswith: New file.
53930         * lib/unistr/u8-startswith.c: New file.
53931         * lib/unistr/u16-startswith.c: New file.
53932         * lib/unistr/u32-startswith.c: New file.
53933         * lib/unistr/u-startswith.h: New file.
53934
53935         * modules/unistr/u8-stpcpy: New file.
53936         * modules/unistr/u16-stpcpy: New file.
53937         * modules/unistr/u32-stpcpy: New file.
53938         * lib/unistr/u8-stpcpy.c: New file.
53939         * lib/unistr/u16-stpcpy.c: New file.
53940         * lib/unistr/u32-stpcpy.c: New file.
53941         * lib/unistr/u-stpcpy.h: New file.
53942
53943         * modules/unistr/u8-stpncpy: New file.
53944         * modules/unistr/u16-stpncpy: New file.
53945         * modules/unistr/u32-stpncpy: New file.
53946         * lib/unistr/u8-stpncpy.c: New file.
53947         * lib/unistr/u16-stpncpy.c: New file.
53948         * lib/unistr/u32-stpncpy.c: New file.
53949         * lib/unistr/u-stpncpy.h: New file.
53950
53951         * modules/unistr/u8-strcat: New file.
53952         * modules/unistr/u16-strcat: New file.
53953         * modules/unistr/u32-strcat: New file.
53954         * lib/unistr/u8-strcat.c: New file.
53955         * lib/unistr/u16-strcat.c: New file.
53956         * lib/unistr/u32-strcat.c: New file.
53957         * lib/unistr/u-strcat.h: New file.
53958
53959         * modules/unistr/u8-strchr: New file.
53960         * modules/unistr/u16-strchr: New file.
53961         * modules/unistr/u32-strchr: New file.
53962         * lib/unistr/u8-strchr.c: New file.
53963         * lib/unistr/u16-strchr.c: New file.
53964         * lib/unistr/u32-strchr.c: New file.
53965
53966         * modules/unistr/u8-strcmp: New file.
53967         * modules/unistr/u16-strcmp: New file.
53968         * modules/unistr/u32-strcmp: New file.
53969         * lib/unistr/u8-strcmp.c: New file.
53970         * lib/unistr/u16-strcmp.c: New file.
53971         * lib/unistr/u32-strcmp.c: New file.
53972
53973         * modules/unistr/u8-strcpy: New file.
53974         * modules/unistr/u16-strcpy: New file.
53975         * modules/unistr/u32-strcpy: New file.
53976         * lib/unistr/u8-strcpy.c: New file.
53977         * lib/unistr/u16-strcpy.c: New file.
53978         * lib/unistr/u32-strcpy.c: New file.
53979         * lib/unistr/u-strcpy.h: New file.
53980
53981         * modules/unistr/u8-strcspn: New file.
53982         * modules/unistr/u16-strcspn: New file.
53983         * modules/unistr/u32-strcspn: New file.
53984         * lib/unistr/u8-strcspn.c: New file.
53985         * lib/unistr/u16-strcspn.c: New file.
53986         * lib/unistr/u32-strcspn.c: New file.
53987         * lib/unistr/u-strcspn.h: New file.
53988
53989         * modules/unistr/u8-strdup: New file.
53990         * modules/unistr/u16-strdup: New file.
53991         * modules/unistr/u32-strdup: New file.
53992         * lib/unistr/u8-strdup.c: New file.
53993         * lib/unistr/u16-strdup.c: New file.
53994         * lib/unistr/u32-strdup.c: New file.
53995         * lib/unistr/u-strdup.h: New file.
53996
53997         * modules/unistr/u8-strlen: New file.
53998         * modules/unistr/u16-strlen: New file.
53999         * modules/unistr/u32-strlen: New file.
54000         * lib/unistr/u8-strlen.c: New file.
54001         * lib/unistr/u16-strlen.c: New file.
54002         * lib/unistr/u32-strlen.c: New file.
54003         * lib/unistr/u-strlen.h: New file.
54004
54005         * modules/unistr/u8-strmblen: New file.
54006         * modules/unistr/u16-strmblen: New file.
54007         * modules/unistr/u32-strmblen: New file.
54008         * lib/unistr/u8-strmblen.c: New file.
54009         * lib/unistr/u16-strmblen.c: New file.
54010         * lib/unistr/u32-strmblen.c: New file.
54011
54012         * modules/unistr/u8-strmbtouc: New file.
54013         * modules/unistr/u16-strmbtouc: New file.
54014         * modules/unistr/u32-strmbtouc: New file.
54015         * lib/unistr/u8-strmbtouc.c: New file.
54016         * lib/unistr/u16-strmbtouc.c: New file.
54017         * lib/unistr/u32-strmbtouc.c: New file.
54018
54019         * modules/unistr/u8-strncat: New file.
54020         * modules/unistr/u16-strncat: New file.
54021         * modules/unistr/u32-strncat: New file.
54022         * lib/unistr/u8-strncat.c: New file.
54023         * lib/unistr/u16-strncat.c: New file.
54024         * lib/unistr/u32-strncat.c: New file.
54025         * lib/unistr/u-strncat.h: New file.
54026
54027         * modules/unistr/u8-strncmp: New file.
54028         * modules/unistr/u16-strncmp: New file.
54029         * modules/unistr/u32-strncmp: New file.
54030         * lib/unistr/u8-strncmp.c: New file.
54031         * lib/unistr/u16-strncmp.c: New file.
54032         * lib/unistr/u32-strncmp.c: New file.
54033
54034         * modules/unistr/u8-strncpy: New file.
54035         * modules/unistr/u16-strncpy: New file.
54036         * modules/unistr/u32-strncpy: New file.
54037         * lib/unistr/u8-strncpy.c: New file.
54038         * lib/unistr/u16-strncpy.c: New file.
54039         * lib/unistr/u32-strncpy.c: New file.
54040         * lib/unistr/u-strncpy.h: New file.
54041
54042         * modules/unistr/u8-strnlen: New file.
54043         * modules/unistr/u16-strnlen: New file.
54044         * modules/unistr/u32-strnlen: New file.
54045         * lib/unistr/u8-strnlen.c: New file.
54046         * lib/unistr/u16-strnlen.c: New file.
54047         * lib/unistr/u32-strnlen.c: New file.
54048         * lib/unistr/u-strnlen.h: New file.
54049
54050         * modules/unistr/u8-strpbrk: New file.
54051         * modules/unistr/u16-strpbrk: New file.
54052         * modules/unistr/u32-strpbrk: New file.
54053         * lib/unistr/u8-strpbrk.c: New file.
54054         * lib/unistr/u16-strpbrk.c: New file.
54055         * lib/unistr/u32-strpbrk.c: New file.
54056         * lib/unistr/u-strpbrk.h: New file.
54057
54058         * modules/unistr/u8-strrchr: New file.
54059         * modules/unistr/u16-strrchr: New file.
54060         * modules/unistr/u32-strrchr: New file.
54061         * lib/unistr/u8-strrchr.c: New file.
54062         * lib/unistr/u16-strrchr.c: New file.
54063         * lib/unistr/u32-strrchr.c: New file.
54064
54065         * modules/unistr/u8-strspn: New file.
54066         * modules/unistr/u16-strspn: New file.
54067         * modules/unistr/u32-strspn: New file.
54068         * lib/unistr/u8-strspn.c: New file.
54069         * lib/unistr/u16-strspn.c: New file.
54070         * lib/unistr/u32-strspn.c: New file.
54071         * lib/unistr/u-strspn.h: New file.
54072
54073         * modules/unistr/u8-strstr: New file.
54074         * modules/unistr/u16-strstr: New file.
54075         * modules/unistr/u32-strstr: New file.
54076         * lib/unistr/u8-strstr.c: New file.
54077         * lib/unistr/u16-strstr.c: New file.
54078         * lib/unistr/u32-strstr.c: New file.
54079         * lib/unistr/u-strstr.h: New file.
54080
54081         * modules/unistr/u8-strtok: New file.
54082         * modules/unistr/u16-strtok: New file.
54083         * modules/unistr/u32-strtok: New file.
54084         * lib/unistr/u8-strtok.c: New file.
54085         * lib/unistr/u16-strtok.c: New file.
54086         * lib/unistr/u32-strtok.c: New file.
54087         * lib/unistr/u-strtok.h: New file.
54088
54089         * modules/unistr/u8-uctomb: New file.
54090         * modules/unistr/u16-uctomb: New file.
54091         * modules/unistr/u32-uctomb: New file.
54092         * lib/unistr/u8-uctomb.c: New file.
54093         * lib/unistr/u16-uctomb.c: New file.
54094         * lib/unistr/u32-uctomb.c: New file.
54095
54096         * MODULES.html.sh (Unicode string functions): Add the new modules.
54097
54098 2007-01-08  Bruno Haible  <bruno@clisp.org>
54099
54100         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54101         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54102         subdirectories.
54103
54104 2007-01-08  Karl Berry  <karl@gnu.org>
54105
54106         * doc/error.texi: mention that main() fns must set program_name
54107         when progname is used.
54108
54109 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54110
54111         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54112         WCTYPE_H is empty, for the benefit of builds from non-distclean
54113         directories.  Problem reported by Eric Blake in
54114         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54115
54116 2007-01-08  Bruno Haible  <bruno@clisp.org>
54117
54118         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54119         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54120         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54121         PROVIDE_CANONICALIZE_FILENAME_MODE.
54122         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54123
54124 2007-01-08  Bruno Haible  <bruno@clisp.org>
54125
54126         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54127         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54128         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54129         * lib/fts.c: Likewise.
54130         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54131
54132 2006-12-25  Bruno Haible  <bruno@clisp.org>
54133
54134         * modules/utf8-ucs4-safe: New file.
54135         * lib/utf8-ucs4-safe.h: New file.
54136         * lib/unistr/utf8-ucs4-safe.c: New file.
54137
54138         * modules/utf16-ucs4-safe: New file.
54139         * lib/utf16-ucs4-safe.h: New file.
54140         * lib/unistr/utf16-ucs4-safe.c: New file.
54141
54142         * MODULES.html.sh (Unicode string functions): Add the new modules.
54143
54144 2007-01-08  Bruno Haible  <bruno@clisp.org>
54145
54146         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54147         (Depends-on): Add unitypes.
54148         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54149         (u8_mbtouc_aux): Move out to separate file.
54150         (u8_mbtouc): Use ucs4_t, uint8_t types.
54151         * lib/unistr/utf8-ucs4.c: New file.
54152
54153         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54154         (Depends-on): Add unitypes.
54155         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54156         (u16_mbtouc_aux): Move out to separate file.
54157         (u16_mbtouc): Use ucs4_t, uint16_t types.
54158         * lib/unistr/utf16-ucs4.c: New file.
54159
54160         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54161         (Depends-on): Add unitypes.
54162         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54163         (u8_uctomb_aux): Move out to separate file.
54164         (u8_uctomb): Use ucs4_t, uint8_t types.
54165         * lib/unistr/ucs4-utf8.c: New file.
54166
54167         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54168         (Depends-on): Add unitypes.
54169         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54170         (u16_uctomb_aux): Move out to separate file.
54171         (u16_uctomb): Use ucs4_t, uint16_t types.
54172         * lib/unistr/ucs4-utf16.c: New file.
54173
54174 2006-12-25  Bruno Haible  <bruno@clisp.org>
54175
54176         * modules/unitypes: New file.
54177         * lib/unitypes.h: New file.
54178         * MODULES.html.sh (func_all_modules): New section "Unicode string
54179         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54180         this section. Add unitypes.
54181
54182 2007-01-08  Bruno Haible  <bruno@clisp.org>
54183
54184         Avoid variable names that conflict with those from libtool.
54185         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54186         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54187         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54188         library_names_spec to acl_library_names_spec, hardcode_* to
54189         acl_hardcode_*.
54190         Reported by Ralf Wildenhues.
54191
54192 2007-01-08  Bruno Haible  <bruno@clisp.org>
54193
54194         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54195         definition.
54196         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54197         definition.
54198         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54199         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54200         definition.
54201         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54202         definition.
54203         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54204         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54205         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
54206         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
54207         definition.
54208         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
54209         definition.
54210         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
54211         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
54212         GC_USE_<algorithm>.
54213         * lib/gc-libgcrypt.c: Likewise.
54214         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
54215         * modules/gc-arctwo (configure.ac): Likewise.
54216         * modules/gc-des (configure.ac): Likewise.
54217         * modules/gc-hmac-md5 (configure.ac): Likewise.
54218         * modules/gc-hmac-sha1 (configure.ac): Likewise.
54219         * modules/gc-md2 (configure.ac): Likewise.
54220         * modules/gc-md4 (configure.ac): Likewise.
54221         * modules/gc-md5 (configure.ac): Likewise.
54222         * modules/gc-random (configure.ac): Likewise.
54223         * modules/gc-rijndael (configure.ac): Likewise.
54224         * modules/gc-sha1 (configure.ac): Likewise.
54225
54226 2007-01-08  Bruno Haible  <bruno@clisp.org>
54227
54228         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
54229         macro definition.
54230         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
54231         definition.
54232         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
54233         definition.
54234         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
54235         * modules/fcntl-safer (configure.ac): Likewise.
54236         * modules/fopen-safer (configure.ac): Likewise.
54237         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
54238         GNULIB_FWRITEERROR macro definition.
54239
54240 2007-01-08  Bruno Haible  <bruno@clisp.org>
54241
54242         * m4/gnulib-common.m4: New file.
54243         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
54244         (func_get_filelist): Add m4/gnulib-common.m4.
54245
54246 2007-01-08  Bruno Haible  <bruno@clisp.org>
54247
54248         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
54249         command.
54250
54251 2007-01-08  Jim Meyering  <jim@meyering.net>
54252
54253         Use a more robust test for a "can't happen" condition.
54254         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
54255         narrowed the st_size value.  Presuming the "can't happen" condition
54256         is true, that narrowing could conceivably convert an invalid st_size
54257         value into a valid one.  Instead, use a change based on Matthew
54258         Woehlke's original patch.
54259
54260         Slight readability improvement: use an assert-like macro
54261         in place of literal "abort ()" uses.
54262         * lib/fts.c (fts_assert): Define.
54263         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
54264         Use this macro instead of a bare 'abort'.
54265
54266 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
54267
54268         Don't worry about using IRIX 5.3's wctype.h broken definitions;
54269         simply work around them.
54270         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
54271         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
54272         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
54273         declaring.
54274         Don't bother to define as macros, since the standard doesn't require it.
54275         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
54276         longer worry about IRIX 5.3.
54277         (HAVE_WCTYPE_CTMP_BUG): Remove.
54278
54279 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54280
54281         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
54282         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
54283         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54284         Problems reported by Georg Schwarz for IRIX 5.3.
54285
54286         * gnulib-tool (autoconf_minversion): Take the maximum version number
54287         found, not the minimum.  Problem reported by James Youngman.
54288
54289 2007-01-03  Karl Berry  <karl@gnu.org>
54290
54291         * doc/error.texi: new file, explaining interaction with progname.
54292         * doc/gnulib.texi: include it.  Update copyright.
54293
54294 2007-01-03  Simon Josefsson  <simon@josefsson.org>
54295
54296         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
54297         AC_CANONICAL_HOST, to improve autobuild outputs.
54298
54299 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
54300             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54301
54302         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
54303         sockets, server sockets, and other file descriptors.  Count errors
54304         to compute the return value.  Reorder the code a bit to be easier
54305         to follow.  Don't set event bits that were not requested (except
54306         POLLERR and POLLHUP).
54307
54308 2007-01-01  Bruno Haible  <bruno@clisp.org>
54309
54310         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
54311
54312 2007-01-03  Jim Meyering  <jim@meyering.net>
54313
54314         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
54315
54316 2007-01-02  Bruno Haible  <bruno@clisp.org>
54317
54318         * modules/settime (Include): Require timespec.h.
54319         * modules/nanosleep (Include): Likewise.
54320
54321 2007-01-01  Bruno Haible  <bruno@clisp.org>
54322
54323         * gnulib-tool (func_emit_copyright_notice): Bump year.
54324         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
54325
54326 2007-01-01  Bruno Haible  <bruno@clisp.org>
54327
54328         Improve support for OpenBSD.
54329         * build-aux/config.rpath (libname_spec): Export.
54330         (library_names_spec): New variable. Export.
54331         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
54332         library_names_spec from the config.rpath output. Locate shared library
54333         through the name pattern in library_names_spec.
54334
54335 2007-01-01  Eric Blake  <ebb9@byu.net>
54336
54337         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
54338
54339 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
54340
54341         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
54342         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
54343         assume the C locale, and avoid an "eval" that could cause trouble.
54344         Problem with SORT reported by Bob Proulx.
54345
54346         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
54347         Define.  Trivial patch from Henning Nielsen Lund, originally
54348         sent to bug-grep@gnu.org today.
54349
54350 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54351
54352         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
54353         struct stat.  Problem reported by Henning Nielsen Lund.
54354         * lib/acl.c: Include acl.h first, to check interface.  Don't
54355         bother to include sys/types.h and sys/stat.h again.
54356
54357 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54358
54359         Import the following change from libc; problem reported by
54360         Sven Verdoolaege.
54361
54362         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
54363
54364         [BZ #1373]
54365         * lib/argp.h: Remove __NTH for __argp_usage inline function.
54366
54367 2006-12-28  Jim Meyering  <jim@meyering.net>
54368
54369         * build-aux/announce-gen: Do not assume that the package
54370         builds any of tar.gz, tar.bz2, and .xdelta files.
54371         Suggestion from Simon Josefsson.
54372
54373 2006-12-28  Simon Josefsson  <simon@josefsson.org>
54374
54375         * modules/announce-gen: New file.
54376
54377 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
54378
54379         * lib/mbchar.h: Just include <wctype.h>; the wctype module
54380         handles its gotchas now.
54381         * lib/mbswidth.c: Likewise.
54382         * lib/wcwidth.h: Likewise.
54383         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
54384         and iswcntrl; the wctype module does this stuff now.
54385         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54386         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54387         * modules/mbchar (Depends-on): Add wctype.
54388         * modules/mbswidth (Depends-on): Likewise.
54389         * modules/wcwidth (Depends-on): Likewise.
54390
54391 2006-12-27  Eric Blake  <ebb9@byu.net>
54392
54393         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
54394         module uses more than what <wctype.h> is required to provide.
54395
54396 2006-12-26  Eric Blake  <ebb9@byu.net>
54397
54398         * gnulib-tool (sed_extract_prog): Avoid space-tab.
54399
54400 2006-12-26  Eric Blake  <ebb9@byu.net>
54401
54402         * modules/absolute-header: New module.
54403         * modules/fcntl (Depends-on): Depend on it.
54404         * modules/inttypes (Depends-on): Likewise.
54405         * modules/stdint (Depends-on): Likewise.
54406         * modules/sys_stat (Depends-on): Likewise.
54407         * modules/wctype (Depends-on): Likewise.
54408         * MODULES.html.sh (Support for building libraries and
54409         executables): Document it.
54410
54411 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54412
54413         * gnulib-tool (SED): Remove, undoing previous change.
54414         The problem was that it broke coreutils on Solaris, because
54415         "sed --posix" leaked into a makefile.
54416         (sed): New alias, if 'alias' and GNU sed.
54417
54418 2006-12-24  Jim Meyering  <jim@meyering.net>
54419
54420         Work around an fchownat bug in glibc-2.4:
54421         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
54422         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
54423         in spite of the -P option.
54424         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
54425         New macros.
54426         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
54427         * modules/openat (Files): Add lib/fchownat.c.
54428         * lib/openat.c (fchownat): Don't define here.  Move to...
54429         * lib/fchownat.c: ...this new file.
54430
54431 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54432
54433         Fix bug reported by Bruno Haible in
54434         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
54435         where quotearg.c didn't compile on Mac OS X 10.2 because it
54436         lacks <wchar.h> and wint_t.
54437         * lib/wctype_.h (__wctype_wint_t): New type.
54438         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
54439         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
54440         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
54441         Arg is now of type __wctype_wint_t, not wint_t.
54442         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
54443         substitute HAVE_WINT_T.
54444         * modules/wctype (Files): Add m4/wint_t.m4.
54445         (wctype.h): Substitute HAVE_WINT_T.
54446
54447 2006-12-23  Bruno Haible  <bruno@clisp.org>
54448
54449         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
54450
54451 2006-12-23  Bruno Haible  <bruno@clisp.org>
54452
54453         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
54454         S_ISLNK.
54455         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
54456         mingw.
54457
54458 2006-12-22  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/copy-file.c: Include acl.h.
54461         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
54462         Close the file descriptors only after being done with copy_acl.
54463         * modules/copy-file (Depends-on): Add acl.
54464
54465 2006-12-22  Bruno Haible  <bruno@clisp.org>
54466
54467         * gnulib-tool (SED): New variable.
54468         Use $SED instead of sed everywhere.
54469
54470 2006-12-22  Bruno Haible  <bruno@clisp.org>
54471
54472         * modules/no-c++: New file.
54473         * m4/no-c++.m4: New file.
54474         * MODULES.html.sh (Support for building libraries and executables):
54475         Add no-c++.
54476
54477 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
54480         Include <limits.h>, and use its INT_MAX to rewrite the
54481         j loop so that it does not overflow 'int'.  Problem reported by
54482         Ralf Wildenhues in
54483         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
54484         Play it safe by shifting left by 1 rather than multiplying by 2,
54485         as GCC is less likely to optimize this away when the value
54486         is signed (when it assumes overflow leads to undefined behavior).
54487         Also, don't assume time_t uses two's complement.
54488
54489 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
54490
54491         * MODULES.html.sh: New module wctype.
54492         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
54493         * lib/fnmatch.c: Don't bother to include <wchar.h> before
54494         <wctype.h>, since the new wctype module should fix this.
54495         * lib/quotearg.c: Include <wctype.h> unconditionally, since
54496         the wctype module should arrange for it.
54497         * lib/regex_internal.h: Likewise.
54498         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
54499         since the wctype module should handle this now.
54500         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
54501         * modules/fnmatch (Depends-on): Add wctype.
54502         * modules/quotearg (Depends-on): Likewise.
54503         * modules/regex (Depends-on): Likewise.
54504
54505 2006-12-19  Bruno Haible  <bruno@clisp.org>
54506
54507         * lib/strdup.h [C++]: Wrap definitions in extern "C".
54508         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
54509
54510 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54511
54512         * modules/savewd (Depends-on): Fix dependency on fcntl.
54513
54514 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54515
54516         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
54517         conforms to C99, rather than relying on the user's environment
54518         setting of STDINT_H.
54519
54520 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54521         and Eric Blake  <ebb9@byu.net>
54522
54523         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
54524         This is more consistent with the other defines here.
54525         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
54526         Port to z/OS.  Problem reported by Paul Gilmartin.
54527         Change local vars to use gl_ prefix rather than ac_.
54528         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
54529         with other defines.
54530         * modules/double-slash-root: New module.
54531         * modules/dirname (Files): Remove m4/double-slash-root.m4.
54532         (Depends-on): Add double-slash-root.
54533         * MODULES.html.sh (File system functions): Mention new module.
54534
54535 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
54536
54537         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
54538         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
54539         This is for the benefit of gzip, which doesn't do i18n.
54540
54541 2006-12-12  Jim Meyering  <jim@meyering.net>
54542
54543         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
54544         Reported by Andreas Schwab <schwab@suse.de>.
54545
54546 2006-12-12  Bruno Haible  <bruno@clisp.org>
54547
54548         Merge these changes.
54549         2006-09-05  Bruno Haible  <bruno@clisp.org>
54550         * lib/iconvme.c (iconv_string): No need to save and restore errno when
54551         iconv_alloc succeeded.
54552         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
54553         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
54554         test for " && dest " at the end - dest is always != NULL there. Call
54555         iconv with 4xNULL arguments initially, to reset the state. Call iconv
54556         with 2xNULL arguments, also to flush the state storage. Handle the
54557         IRIX iconv behaviour. Realloc the final result, to throw away unused
54558         memory.
54559
54560 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
54561
54562         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
54563         and fchmodat unconditionally, since glibc 2.4 has them.
54564         Problem reported by Arkadiusz Miskiewicz.
54565
54566 2006-12-10  Bruno Haible  <bruno@clisp.org>
54567
54568         * gnulib-tool (func_import): Show the include files only for those
54569         modules that are copied and specified.
54570         Reported by Karl Berry.
54571
54572 2006-12-08  Jim Meyering  <jim@meyering.net>
54573
54574         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
54575         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
54576
54577         * build-aux/announce-gen: Add two new options, both optional:
54578         --bootstrap-tools=TOOL_LIST
54579               a comma-separated list of tools, e.g.,
54580               autoconf,automake,bison,gnulib
54581         --gnulib-snapshot-date=DATE
54582               if gnulib is in the bootstrap tool list,
54583               then report this as the snapshot date.
54584               If not specified, use the current date/time.
54585               If you specify a date here, be sure it's UTC.
54586
54587 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54588
54589         * tests/test-argp-2.sh: Fix test to match actual output.
54590         (func_compare): Fix sed script to be portable.
54591
54592 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
54593
54594         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
54595         workaround for this case.  It is not autoconfigured now; offhand
54596         it's hard to see how to autoconfigure it.
54597
54598 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54599
54600         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
54601         a directory that is about to be chowned.  Such a directory's
54602         initial file permissions should permit the owner only and this
54603         should not be changed until after the chown, since the group and
54604         other bits would be incorrect if they granted permission before
54605         the chown.
54606
54607         Fix porting problem for iswctype reported by Georg Schwarz in:
54608         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
54609         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
54610         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
54611         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
54612         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54613
54614 2006-12-03  Jim Meyering  <jim@meyering.net>
54615
54616         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
54617         p->fts_statp may not yet be defined.
54618         (fts_read): Instead, set it in the caller, once p->fts_statp is
54619         sure to be defined, and corresponds to a top-level directory.
54620         This bug made du -x fail.  Here's the coreutils test case:
54621         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
54622         Reported by Mike Frysinger.
54623
54624 2006-12-01  Jim Meyering  <jim@meyering.net>
54625
54626         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
54627         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
54628         Reported by Simon Josefsson.
54629
54630 2006-11-30  Jim Meyering  <jim@meyering.net>
54631
54632         * m4/warning.m4: Use the all-permissive copyright notice
54633         recommended by RMS (rather than LGPL).
54634         * m4/vararrays.m4: Likewise.
54635         * m4/flexmember.m4: Likewise.
54636
54637 2006-11-29  Bruno Haible  <bruno@clisp.org>
54638
54639         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54640         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
54641         using +=.
54642         Reported by Simon Josefsson <simon@josefsson.org>.
54643
54644 2006-11-28  James Youngman <jay@gnu.org>
54645
54646         * README: Advise users that they might find the bug-gnulib@gnu.org
54647         and autotools-announce@gnu.org mailing lists useful.
54648
54649 2006-11-28  Bruno Haible  <bruno@clisp.org>
54650
54651         * m4/ptrdiff_max.m4: Remove file.
54652
54653 2006-11-21  Bruno Haible  <bruno@clisp.org>
54654
54655         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
54656         _AC_COMPUTE_INT.
54657         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54658         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
54659         _AC_COMPUTE_INT.
54660         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54661         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
54662         _AC_COMPUTE_INT.
54663         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54664
54665 2006-11-28  Jim Meyering  <jim@meyering.net>
54666
54667         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
54668         warning from "gcc -Wshadow" about shadowing the builtin.
54669
54670 2006-11-27  Bruno Haible  <bruno@clisp.org>
54671
54672         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
54673         _AC_COMPUTE_INT.
54674         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
54675
54676 2006-11-27  Bruno Haible  <bruno@clisp.org>
54677             Paul Eggert  <eggert@cs.ucla.edu>
54678
54679         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
54680
54681 2006-11-26  Bruno Haible  <bruno@clisp.org>
54682
54683         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
54684         noinst_LTLIBRARIES.
54685
54686 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54687             Bruno Haible  <bruno@clisp.org>
54688
54689         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
54690         if compiling with "gcc -ansi".
54691
54692 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54693
54694         Fix some incompatibilities with gcc -ansi -pedantic.
54695         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
54696         if compiling pedantically with GCC, unless it's C99 or later.
54697         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
54698         it mishandles gcc -ansi -pedantic as well.
54699         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
54700         if gcc -pedantic.
54701         * lib/regexec.c (check_node_accept_bytes): Don't use auto
54702         initializers for struct if -pedantic, unless it's C99 or later.
54703
54704 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
54705
54706         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
54707         Don't close an fd more than once. Identical atimes indicate
54708         success, not failure.
54709
54710 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
54711
54712         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
54713
54714 2006-11-23  Jim Meyering  <jim@meyering.net>
54715
54716         * build-aux/announce-gen: New file.  From coreutils.
54717
54718 2006-11-22  Jim Meyering  <jim@meyering.net>
54719
54720         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
54721         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
54722         (fts_read): Use a temporary to narrow the overused st_size member
54723         before using it in a switch statement.  Reported by Matthew Woehlke.
54724
54725         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
54726         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
54727
54728 2006-11-20  Bruno Haible  <bruno@clisp.org>
54729
54730         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
54731         changequote instead of pairs of brackets.
54732         Reported by Andreas Schwab <schwab@suse.de>.
54733
54734 2006-11-21  Jim Meyering  <jim@meyering.net>
54735
54736         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
54737         so as to remain compatible with older compilers.
54738         Patch from Michael Deutschmann.
54739
54740 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54741
54742         * MODULES.html.sh (File system functions): Add openat.
54743
54744         * lib/openat.h (rpl_fstatat): New macro, if
54745         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
54746         (fstatat): Define to rpl_fstatat under the same conditions,
54747         unless COMPILING_FSTATAT.
54748         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
54749         seems to have the bug.
54750         * lib/fstatat.c: New file.
54751         * modules/openat (Files): Add it.
54752
54753 2006-11-20  Bruno Haible  <bruno@clisp.org>
54754
54755         * Makefile: New file.
54756
54757 2006-11-20  Jim Meyering  <jim@meyering.net>
54758
54759         The beginnings of syntax-related checks for gnulib.
54760         * lib/Makefile: New file.
54761         * lib/t-idcache: New script.  Ensure that the two halves of
54762         idcache.c stay in sync.
54763
54764         * lib/idcache.c: Adjust comments in user- and group- portions to
54765         be more accurate, and to be consistent with one another.
54766
54767 2006-11-20  Jim Meyering  <jim@meyering.net>
54768
54769         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
54770         continue using the flexible array member (thus, this module performs
54771         half as many malloc calls), with the addition that...
54772         (getgroup, getuser): Consistently record a non-match via an empty
54773         "name" string, and map an empty string match to a NULL return value.
54774         * modules/idcache (Depends-on): Re-add flexmember.
54775
54776         * lib/idcache.c (getuser): Remove all uses of the register keyword.
54777         (getuidbyname, getgroup, getgidbyname): Likewise.
54778
54779         Use cleaner syntax: NULL rather than 0.
54780         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
54781
54782 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54783
54784         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
54785         It mishandled the case where the group was missing.
54786         Problem reported by Greg Schafer.
54787         * modules/idcache: Likewise.
54788
54789 2006-11-18  Jim Meyering  <jim@meyering.net>
54790
54791         * check-module (%exempt_header): Add exception for some
54792         conditionally-included headers.
54793
54794         * modules/i-ring (Depends-on): Add verify.
54795         (License): Change to LGPL.
54796
54797 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54798
54799         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
54800         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
54801         and inttostr.h.  Use snprintf rather than uinttostr, so that
54802         LGPLed code doesn't depend on GPLed.
54803
54804 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54805
54806         * modules/inline (License): Change from GPL to LGPL.
54807
54808 2006-11-17  Jim Meyering  <jim@meyering.net>
54809
54810         * modules/d-type (License): Switch to LGPL.
54811
54812 2006-11-15  Bruno Haible  <bruno@clisp.org>
54813
54814         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
54815
54816 2006-11-15  Eric Blake  <ebb9@byu.net>
54817
54818         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
54819         the module dependency.
54820
54821 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54822             Bruno Haible  <bruno@clisp.org>
54823
54824         * gnulib-tool (func_create_testdir): Add license consistency check.
54825
54826 2006-11-15  Eric Blake  <ebb9@byu.net>
54827
54828         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
54829         random "(cached)" in configure output.
54830
54831 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54832
54833         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
54834         test for conforming inttypes.h is both announced and cached.
54835
54836         * MODULES.html.sh (seen_modules, seen_files): New variables.
54837         (func_module): Rewrite to use a few less gnulib-tool and sed
54838         invocations.  Avoid a couple of quadratic algorithms for ...
54839         (missed_modules, missed_files): ... these, with ...
54840         (func_append, func_tmpdir): ... these new functions, from
54841         gnulib-tool.  Analogously, install traps for cleanup.
54842
54843         * tests/test-gc.c (main): Remove unused variables.
54844         * tests/test-read-file.c: Include stdlib.h, for 'free'.
54845
54846 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
54847
54848         * modules/inttostr (License): Change to LGPL.
54849
54850 2006-11-14  Eric Blake  <ebb9@byu.net>
54851
54852         * modules/tempname (License): Change to LGPL.
54853
54854 2006-11-14  Eric Blake  <ebb9@byu.net>
54855
54856         * doc/functions.texi (Function Portability): *printf functions on
54857         Cygwin now understand all POSIX size specifiers.
54858
54859 2006-11-14  Bruno Haible  <bruno@clisp.org>
54860
54861         * modules/c-ctype (License): Change to LGPL.
54862
54863 2006-11-12  Bruno Haible  <bruno@clisp.org>
54864
54865         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54866         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
54867         for GNOME libraries, for which the include files are installed in
54868         subdirectories of $prefix/include.
54869
54870 2006-11-12  Bruno Haible  <bruno@clisp.org>
54871
54872         * m4/lib-link.m4: Require at least autoconf-2.54.
54873         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
54874         name to underscores for the --with option.
54875
54876 2006-11-13  Bruno Haible  <bruno@clisp.org>
54877
54878         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
54879         the tests directory.
54880         Reported by Ralf Wildenhues.
54881
54882 2006-11-13  Bruno Haible  <bruno@clisp.org>
54883
54884         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
54885         (func_emit_initmacro_end): Undo the override here.
54886         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
54887         Works around the famous automake error in coreutils.
54888
54889 2006-11-13  Eric Blake  <ebb9@byu.net>
54890
54891         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
54892         element, not its node.
54893
54894 2006-11-12  Bruno Haible  <bruno@clisp.org>
54895
54896         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
54897         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
54898
54899 2006-11-12  Bruno Haible  <bruno@clisp.org>
54900
54901         * gnulib-tool: New option --local-symlink.
54902         (func_usage): Document it.
54903         (lsymbolic): New variable.
54904         (func_import, func_create_testdir): If --symlink was not specified,
54905         test whether --local-symlink was specified and the file comes from
54906         the local_gnulib_dir.
54907
54908 2006-11-12  Bruno Haible  <bruno@clisp.org>
54909
54910         * gnulib-tool (func_ln): New function.
54911         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
54912
54913 2006-11-12  Bruno Haible  <bruno@clisp.org>
54914
54915         Finish support for source files in subdirectories.
54916         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
54917         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
54918         AUTOMAKE_OPTIONS.
54919         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
54920
54921 2006-11-12  Bruno Haible  <bruno@clisp.org>
54922
54923         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54924         EXTRA_lib_SOURCES augmentation.
54925         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
54926
54927 2006-11-12  Jim Meyering  <jim@meyering.net>
54928
54929         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
54930         file descriptors.  This also averts a failure on systems with
54931         native openat support when a traversed directory lacks "x" access.
54932         * lib/fts_.h: Include "i-ring.h"
54933         (struct FTS) [fts_fd_ring]: New member.
54934         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
54935         (FCHDIR): Add parentheses.
54936         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
54937         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
54938         When descending, rather than simply closing the previous
54939         fts_cwd_fd value, push that file descriptor onto the ring.
54940         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
54941         (fts_open): Initialize the new fd_ring member.
54942         (fts_close): Clear the ring.
54943         (fts_safe_changedir): When possible, use our new fd_ring to skip
54944         the diropen and fstat and dev/ino comparison that would normally
54945         accompany a virtual `chdir ("..")'.
54946
54947         * modules/fts (Depends-on): Add i-ring.
54948         * modules/i-ring: New module.
54949         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
54950         * m4/i-ring.m4: New file.
54951
54952 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54953
54954         * gnulib-tool (func_create_testdir): Fix replacement of
54955         `build-aux' in configure.ac.  Run autotools in gltests
54956         subdirectory.
54957         (func_create_testdir, func_create_megatestdir, test): There is
54958         no need for '--force' in most autotool invocations in a new
54959         tree.  Actually fail the whole test if any of the tools, or the
54960         configure or make stages fail.
54961
54962         Sync from Automake.
54963         * build-aux/gnupload: Revert last change.  Add pointer to upload
54964         instructions of the GNU Maintenance Instructions.
54965         Suggestion by Karl Berry.
54966
54967 2006-11-10  Jim Meyering  <jim@meyering.net>
54968
54969         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
54970
54971 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54972
54973         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
54974         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
54975         (bind_textdomain_codeset) [! ENABLE_NLS]:
54976         Evaluate all the arguments.  That way, callers get compatible behavior
54977         if the arguments have side effects.  Also, it avoids some GCC
54978         diagnostics in some cases; Joel E. Denny reported problems when Bison
54979         was configured with --enable-gcc-warnigs.
54980
54981 2006-11-10  Jim Meyering  <jim@meyering.net>
54982
54983         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
54984         relevant options in CFLAGS (like -O, -fno-inline) are taken into
54985         account.
54986
54987 2006-11-10  Jim Meyering  <jim@meyering.net>
54988
54989         * modules/inline: New file/module.
54990         * modules/xalloc (Files): Remove m4/inline.m4.
54991         (Depends-on): Add inline, instead.
54992         * modules/oset: Likewise.
54993         * modules/list: Likewise.
54994
54995 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54996
54997         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
54998         Problem reported by Matthew Woehlke.
54999
55000 2006-11-09  Bruno Haible  <bruno@clisp.org>
55001
55002         * lib/tempname.c (gen_tempname): Remove variant that invokes
55003         __gen_tempname.
55004         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55005         __gen_tempname.
55006
55007 2006-11-08  Bruno Haible  <bruno@clisp.org>
55008
55009         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55010         to 'yes' instead of 'cross-compiling'.
55011
55012 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55013
55014         * lib/quotearg.h (quotearg_free): New decl.
55015         * lib/quotearg.c (quotearg_free): New function.
55016         (slot0, nslots, slotvec0, slotvec):
55017         Now file-scope so that quotearg_free can get at them.
55018
55019 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55020
55021         Sync from Automake.
55022         * build-aux/gnupload: Add missing 'gnu' to example URL.
55023         Report by Karl Berry.
55024
55025 2006-11-08  Bruno Haible  <bruno@clisp.org>
55026
55027         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55028         Suggested by Paul Eggert.
55029
55030 2006-11-08  Jim Meyering  <jim@meyering.net>
55031
55032         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55033         It's already included if !_LIBC.
55034         (fts_safe_changedir): Add a comment.
55035
55036 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55037
55038         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55039         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55040         Matthew Woehlke.
55041
55042         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55043         definitions up, to avoid colliding with change below.
55044         (static_inline) [HAVE_INLINE]: New macro.
55045         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55046         Provide extern decls when !HAVE_INLINE.  Do not define unless
55047         static_inline is defined, either by us or by xmalloc.c.  Use
55048         static_inline rather than static inline.
55049         (XCALLOC): Optimize sizeof(T) = 1 case.
55050         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55051
55052 2006-11-07  Bruno Haible  <bruno@clisp.org>
55053
55054         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55055         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55056         AC_C_INLINE.
55057         * modules/xalloc (Files): Add m4/inline.m4.
55058
55059 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55060
55061         * README: Fix typo.
55062         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55063         (Miscellanous Notes): ...from this.
55064
55065 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55066
55067         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55068         Mention that offsetof should be used instead of sizeof.
55069         From Bruno Haible.
55070
55071 2006-11-07  Bruno Haible  <bruno@clisp.org>
55072
55073         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55074
55075 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55076
55077         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55078         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55079         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55080         (gl_tree_add_before, gl_tree_add_after):
55081         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55082         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55083         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55084         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55085         (gl_linked_add_after, gl_linked_add_at): Likewise.
55086         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55087         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55088         (gl_tree_add_before, gl_tree_add_after): Likewise.
55089         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55090         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55091         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55092
55093 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55094
55095         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55096
55097 2006-11-06  Bruno Haible  <bruno@clisp.org>
55098
55099         * m4/inline.m4: New file.
55100         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55101         * modules/list (Files): Add m4/inline.m4.
55102         * modules/oset (Files): Likewise.
55103
55104 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * lib/idcache.c: Include <stddef.h>, for offsetof.
55107         (struct userid.name): Change from char * to a flexible array member.
55108         All uses changed.
55109         * modules/idcache (Depends-on): Add flexmember.
55110
55111         * MODULES.html.sh (Core language properties): New module flexmember.
55112         * modules/flexmember, m4/flexmember.m4: New files.
55113
55114         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55115         inline functions that are identical with the old xnmalloc_inline,
55116         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55117         that we can avoid some unnecessary integer multiplications and
55118         divisions in the common case where the element size is known at
55119         compile time.
55120         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55121         needed.
55122         (xnboundedmalloc): Remove.
55123         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55124         arguments, for consistency with rest of this header.
55125         (xcharalloc): Rewrite using XNMALLOC.
55126         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55127         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55128         versions have been moved to lib/xalloc.h and renamed to be the
55129         non-*_inline versions.
55130         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55131         and xnrealloc functions, since those functions are now inline and
55132         now call us.
55133         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55134         renaming described above.
55135         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55136         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55137         captures the dependency in AC_C_INLINE.
55138
55139         New module canonicalize-lgpl, proposed by Charles Wilson in
55140         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55141         with a few small changes afterwards.
55142         * MODULES.html.sh (File system functions): New module
55143         canonicalize-lgpl.
55144         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55145         and canonicalize_file_name.
55146         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55147         * modules/canonicalize-lgpl: New files.
55148
55149 2006-11-05  Bruno Haible  <bruno@clisp.org>
55150
55151         * gnulib-tool (func_import, func_create_testdir): Create directories
55152         also for files in subdirectories of lib/.
55153
55154 2006-11-05  Bruno Haible  <bruno@clisp.org>
55155
55156         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55157         ANSI C compliant.
55158
55159 2006-11-03  Bruno Haible  <bruno@clisp.org>
55160
55161         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55162         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55163         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55164         (xnboundedmalloc): New inline function.
55165         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55166         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55167         xmalloc.
55168         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55169         xmalloc.
55170         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55171         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55172         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55173         xmalloc.
55174         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55175         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55176         xmalloc.
55177         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55178         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55179         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55180         xmalloc.
55181         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55182         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55183         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55184         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55185         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55186         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55187         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55188
55189 2006-11-03  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/c-ctype.h [C++]: Define functions without name mangling.
55192         * lib/fwriteerror.h [C++]: Likewise.
55193         * lib/gcd.h [C++]: Likewise.
55194         * lib/linebreak.h [C++]: Likewise.
55195
55196 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55197
55198         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55199         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55200         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55201         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55202         Check for functions and headers just once.
55203         Check for declaration of canonicalize_file_name.
55204         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55205
55206 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55207
55208         * gnulib-tool (func_import): Fix typo in actioncmd.
55209
55210 2006-11-02  Bruno Haible  <bruno@clisp.org>
55211
55212         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
55213         newline sequence in the Makefile.am snippet as a space, like "make"
55214         does.
55215         Reported by Roger Persson <perrog@gmail.com>.
55216
55217 2006-11-01  Bruno Haible  <bruno@clisp.org>
55218
55219         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
55220         already declared in <string.h>.
55221         * lib/strcase.h (strncasecmp): Don't declare it if yes.
55222
55223 2006-11-01  Bruno Haible  <bruno@clisp.org>
55224
55225         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
55226         * lib/strcase.h: Include <string.h>.
55227         (strcasecmp): Define to rpl_strcasecmp here.
55228
55229 2006-11-01  Bruno Haible  <bruno@clisp.org>
55230
55231         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
55232
55233 2006-11-01  Eric Blake  <ebb9@byu.net>
55234
55235         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
55236
55237         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
55238
55239 2006-10-29  Bruno Haible  <bruno@clisp.org>
55240
55241         Make it compile in C++ mode.
55242         * lib/full-write.c (full_rw): Add a cast.
55243
55244 2006-11-01  Bruno Haible  <bruno@clisp.org>
55245
55246         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
55247         be POSIX compliant.
55248         Reported by Roger Persson <perrog@gmail.com>.
55249
55250 2006-11-01  Eric Blake  <ebb9@byu.net>
55251
55252         * lib/getopt_.h: Fix comments.
55253
55254 2006-10-31  Eric Blake  <ebb9@byu.net>
55255
55256         * modules/tmpdir (Depends-on): Add sys_stat.
55257         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
55258         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
55259         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
55260         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
55261         tempname.
55262
55263 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
55264
55265         Avoid some C++ diagnostics reported by Bruno Haible.
55266         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
55267         xmalloc.
55268         (quotearg_alloc): Use xcharalloc rather than xmalloc.
55269         (struct slotvec): Move to top level.
55270         (quotearg_n_options): Rewrite to avoid xmalloc.
55271         * lib/xalloc.h (xcharalloc): New function.
55272         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
55273         [defined __cplusplus]: Add function template that provides result
55274         type propagation.  This part of the change is from Bruno Haible.
55275
55276 2006-10-29  Bruno Haible  <bruno@clisp.org>
55277
55278         Make it compile in C++ mode.
55279         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
55280         * lib/strnlen1.c (strnlen1): Cast memchr result.
55281         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
55282         * lib/clean-temp.c (string_equals, string_hash): Add casts.
55283         (create_temp_dir): Rename local variable 'template'.
55284         (compile_csharp_using_sscli): Add cast.
55285         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
55286         * lib/findprog.c (find_in_path): Likewise.
55287         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
55288         * lib/wait-process.c (register_slave_subprocess): Likewise.
55289
55290 2006-10-22  Bruno Haible  <bruno@clisp.org>
55291
55292         * modules/tsearch: New file.
55293         * lib/tsearch.h: New file.
55294         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
55295         * m4/tsearch.m4: New file.
55296         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
55297
55298 2006-10-29  Eric Blake  <ebb9@byu.net>
55299
55300         * lib/arcfour.c: Assume config.h.
55301         * lib/arctwo.c: Likewise.
55302         * lib/base64.c: Likewise.
55303         * lib/check-version.c: Likewise.
55304         * lib/crc.c: Likewise.
55305         * lib/des.c: Likewise.
55306         * lib/gc-gnulib.c: Likewise.
55307         * lib/gc-libgcrypt.c: Likewise.
55308         * lib/gc-pbkdf2-sha1.c: Likewise.
55309         * lib/getaddrinfo.c: Likewise.
55310         * lib/getdelim.c: Likewise.
55311         * lib/getline.c: Likewise.
55312         * lib/hmac-md5.c: Likewise.
55313         * lib/hmac-sha1.c: Likewise.
55314         * lib/iconvme.c: Likewise.
55315         * lib/md2.c: Likewise.
55316         * lib/md4.c: Likewise.
55317         * lib/memxor.c: Likewise.
55318         * lib/read-file.c: Likewise.
55319         * lib/readline.c: Likewise.
55320         * lib/rijndael-alg-fst.c: Likewise.
55321         * lib/rijndael-api-fst.c: Likewise.
55322         * lib/xgetdomainname.c: Likewise.
55323
55324 2006-10-28  Eric Blake  <ebb9@byu.net>
55325
55326         * lib/xstrndup.c: Assume config.h.
55327
55328 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55329
55330         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
55331         stat-macros.h is now for our own macros, whereas stat_h is for
55332         macros in the <sys/stat.h> name space.
55333         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
55334         (STAT_MACROS_H): Remove.
55335         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
55336         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
55337         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
55338         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
55339         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
55340         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
55341         Move these macros to ...
55342         * lib/stat_.h: here.  Don't include stat-macros.h.
55343         * lib/canonicalize.c: Don't include stat-macros.h.
55344         * lib/chown.c: Likewise.
55345         * lib/euidaccess.c: Likewise.
55346         * lib/file-type.c: Likewise.
55347         * lib/filemode.c: Likewise.
55348         * lib/glob.c: Likewise.
55349         * lib/isapipe.c: Likewise.
55350         * lib/lchown.c: Likewise.
55351         * lib/lstat.c: Likewise.
55352         * lib/mkdir-p.c: Likewise.
55353         * lib/rmdir.c: Likewise.
55354         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
55355         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
55356         unless mkdir isn't declared, to speed up 'configure'.
55357         Always create sys/stat.h, since it's unlikely any real sys/stat.h
55358         would define all the S_* symbols.
55359         * modules/canonicalize (Depends-on):
55360         Depend on sys_stat, not stat-macros.
55361         * modules/chown: Likewise.
55362         * modules/euidaccess: Likewise.
55363         * modules/filemode: Likewise.
55364         * modules/file-type: Likewise.
55365         * modules/glob: Likewise.
55366         * modules/isapipe: Likewise.
55367         * modules/lchown: Likewise.
55368         * modules/lstat: Likewise.
55369         * modules/mkancesdirs: Likewise.
55370         * modules/rmdir: Likewise.
55371         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
55372         * modules/modechange: Likewise.
55373         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
55374         (configure.ac): Remove gl_STAT_MACROS.
55375         * modules/sys_stat (Depends-on): Remove stat-macros.
55376
55377 2006-10-27  Bruno Haible  <bruno@clisp.org>
55378
55379         * m4/signed.m4: Remove file.
55380         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
55381         invocation.
55382         * modules/vasnprintf (Files): Remove m4/signed.m4.
55383
55384 2006-10-27  Bruno Haible  <bruno@clisp.org>
55385
55386         Update to GNU gettext 0.16.
55387         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
55388         m4/inttypes-h.m4, m4/signed.m4.
55389         * m4/gettext.m4: Update to GNU gettext 0.16.
55390         * m4/intl.m4: New file, from GNU gettext.
55391         * m4/intldir.m4: New file, from GNU gettext.
55392         * config/srclist.txt: Update
55393
55394 2006-10-27  Eric Blake  <ebb9@byu.net>
55395
55396         * MODULES.html.sh: Document tempname.
55397         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
55398         dependencies.
55399         (Files): Move lib/tempname.c...
55400         * modules/tempname: ...to this new module.
55401         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
55402         (gl_PREREQ_TEMPNAME): Move...
55403         * m4/tempname.m4: ...to this new file.
55404         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
55405         * modules/sys_stat (Depends-on): Add stat-macros.
55406         * lib/stat_.h (includes): Pick up stat macros.
55407         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
55408         if stat macros are broken.
55409         * lib/tempname.c (includes): No need to include "stat-macros.h".
55410         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
55411         (direxists, __path_search) [!_LIBC]: Don't compile these in
55412         gnulib; the tmpdir module covers that.
55413         * lib/tempname.h: New file.
55414
55415 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         * COPYING: Explain how gnulib-tool converts licence headers.
55418         Almost all wording by Eric Blake.
55419
55420 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
55421
55422         * lib/mbchar.h (is_basic_table): Make read-only.
55423         * lib/mbchar.c (is_basic_table): Likewise.
55424         Reported by John Darrington.
55425
55426 2006-10-25  Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/progname.h (set_program_name): Undefine before defining.
55429
55430 2006-10-25  Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
55433         false for non-gcc C++ compilers.
55434         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55435
55436 2006-10-24  Bruno Haible  <bruno@clisp.org>
55437
55438         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
55439         iconv implementations like Irix iconv.
55440
55441 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         * modules/vararrays: New file.
55444         * m4/vararrays.m4: New file, taken from diffutils.
55445         * MODULES.html.sh: New module vararrays.
55446
55447 2006-10-24  Karl Berry  <karl@gnu.org>
55448
55449         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
55450         Don't call GNU Unix.
55451
55452 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55453
55454         * users.txt: Add Libtool.
55455
55456         Sync from Libtool:
55457
55458         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55459
55460         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
55461         to gnulib's policy of including config.h unconditionally.
55462
55463 2006-10-24  Bruno Haible  <bruno@clisp.org>
55464
55465         * modules/wcwidth (Files): Add m4/wint_t.m4.
55466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
55467         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
55468
55469 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55470
55471         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
55472         to pacify GCC with some -W flags enabled.  Problem reported by
55473         Bruno Haible.
55474
55475 2006-10-24  Jim Meyering  <jim@meyering.net>
55476
55477         * MODULES.html.sh: Remove uinttostr.  It's not a module.
55478         Reported by Karl Berry.
55479
55480 2006-10-23  Bruno Haible  <bruno@clisp.org>
55481
55482         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
55483
55484 2006-10-24  Bruno Haible  <bruno@clisp.org>
55485
55486         * lib/gl_list.h: Use C comment style, not C++ comment style.
55487
55488 2006-10-23  Eric Blake  <ebb9@byu.net>
55489
55490         * lib/getaddrinfo.c (includes): Add missing include.
55491
55492 2006-10-23  Bruno Haible  <bruno@clisp.org>
55493             Paul Eggert  <eggert@cs.ucla.edu>
55494
55495         Ability to rename obstack_free.
55496         * lib/obstack.h (__obstack_free): New macro. Declare instead of
55497         obstack_free.
55498         (obstack_free): Invoke the __obstack_free macro.
55499         * lib/obstack.c (obstack_free): Use __obstack_free macro.
55500
55501 2006-10-23  Bruno Haible  <bruno@clisp.org>
55502             Paul Eggert  <eggert@cs.ucla.edu>
55503
55504         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
55505         __argc, __argv from the declaration. (They are defined as macros on
55506         mingw.)
55507
55508 2006-10-22  Bruno Haible  <bruno@clisp.org>
55509
55510         * doc/gnulib-intro.texi: New file.
55511         * doc/gnulib.texi: Include it.
55512
55513 2006-10-21  Bruno Haible  <bruno@clisp.org>
55514
55515         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
55516         "Introduction", "Miscellanous Notes", "Particular Modules".
55517
55518 2006-10-21  Bruno Haible  <bruno@clisp.org>
55519
55520         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55521         Change mostlyclean-local rule to avoid sh syntax error from bash
55522         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
55523
55524 2006-10-23  Jim Meyering  <jim@meyering.net>
55525
55526         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
55527         in place of snprintf.
55528
55529         * modules/inttostr (Files): Add lib/uinttostr.c.
55530         * lib/uinttostr.c (inttostr): New file/function.
55531         * lib/inttostr.h (uinttostr): Declare.
55532         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
55533         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55534         Add uinttostr.
55535         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
55536
55537 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55538
55539         * lib/canonicalize.c (ELOOP): Define if not already defined.
55540         Problem reported by Bruno Haible in
55541         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
55542
55543 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
55544
55545         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
55546         Problem reported by Perry Smith and Ville Laurikari.
55547
55548         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
55549         uses.
55550
55551 2006-10-19  Bruno Haible  <bruno@clisp.org>
55552
55553         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
55554         for mingw.
55555
55556 2006-10-19  Bruno Haible  <bruno@clisp.org>
55557
55558         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
55559         Needed for mingw.
55560
55561 2006-10-19  Bruno Haible  <bruno@clisp.org>
55562
55563         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
55564
55565 2006-10-19  Bruno Haible  <bruno@clisp.org>
55566
55567         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
55568         it.
55569
55570 2006-10-19  Bruno Haible  <bruno@clisp.org>
55571
55572         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
55573         invocation.
55574
55575 2006-10-19  Bruno Haible  <bruno@clisp.org>
55576
55577         * gnulib-tool (func_create_testdir): Don't include ftruncate and
55578         mountlist by default.
55579
55580 2006-10-16  Bruno Haible  <bruno@clisp.org>
55581
55582         * lib/c-strstr.c: Include c-strstr.h.
55583
55584 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
55585
55586         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
55587         in a slash.
55588
55589 2006-10-18  Bruno Haible  <bruno@clisp.org>
55590
55591         * lib/lock.h [C++]: Wrap definitions in extern "C".
55592
55593 2006-10-18  Bruno Haible  <bruno@clisp.org>
55594
55595         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
55596         gl_LIBOBJS list.
55597
55598 2006-10-18  Bruno Haible  <bruno@clisp.org>
55599
55600         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
55601
55602 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
55603
55604         * lib/xstrtol.h: Include gettext.h.
55605         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
55606         Problem reported by Eric Blake.
55607         * modules/xstrtol (Depends-on): Add gettext-h.
55608
55609 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
55610
55611         * lib/strftime.c (advance): New macro.
55612         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
55613         incomplete type, so you can't add 0 to it.  Problem and patch
55614         reported by Eelco Dolstra for dietlibc.
55615
55616 2006-10-18  Jim Meyering  <jim@meyering.net>
55617
55618         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
55619         type for a local, and rename it: s/up/user_proc/.
55620
55621 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55622
55623         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
55624         READ_UTMP_USER_PROCESS.
55625         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
55626
55627 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55628
55629         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
55630         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
55631
55632 2006-10-17  Eric Blake  <ebb9@byu.net>
55633
55634         * lib/sigprocmask.c (sigprocmask): Fix typo.
55635
55636         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
55637
55638         * modules/clean-temp (Makefile.am): Don't add to make output...
55639         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
55640         config.h.
55641
55642 2006-10-17  Bruno Haible  <bruno@clisp.org>
55643
55644         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
55645         differently if DEFAULT_TEXT_DOMAIN is set.
55646
55647 2006-10-16  Bruno Haible  <bruno@clisp.org>
55648
55649         * lib/clean-temp.c: Include fwriteerror.h.
55650
55651 2006-10-16  Bruno Haible  <bruno@clisp.org>
55652
55653         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
55654
55655 2006-10-16  Bruno Haible  <bruno@clisp.org>
55656
55657         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
55658         * lib/sigprocmask.h: Include <sys/types.h>.
55659         (sigset_t): Use the system's definition if present.
55660
55661 2006-10-17  Eric Blake  <ebb9@byu.net>
55662
55663         * lib/xvasprintf.c (includes): Assume config.h.
55664         * lib/xasprintf.c (includes): Likewise.
55665
55666 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55667
55668         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
55669         at least as wide as intmax_t.
55670
55671 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
55672
55673         (Imported from Automake.)
55674         * build-aux/gnupload: Update to version 1.1 of directive file.
55675
55676 2006-10-16  Eric Blake  <ebb9@byu.net>
55677
55678         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
55679         match Automake 1.10a.
55680
55681 2006-10-14  Bruno Haible  <bruno@clisp.org>
55682
55683         * modules/sigprocmask: New file.
55684         * lib/sigprocmask.h: New file.
55685         * lib/sigprocmask.c: New file.
55686         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
55687         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
55688         request sigprocmask.o.
55689         (gl_PREREQ_SIGPROCMASK): New macro.
55690         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
55691         (Depends-on): Add sigprocmask.
55692         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
55693         gt_SIGNALBLOCKING. Test for 'raise' only once.
55694         * lib/fatal-signal.c: Include sigprocmask.h.
55695         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
55696         unblock_fatal_signals): Define always.
55697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55698         sigprocmask.
55699
55700 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55701
55702         Sync from Automake.
55703         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
55704         which incorrectly sets the mode of an existing destination
55705         directory.  In some cases the unpatched install-sh could do the
55706         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
55707         system.  We hope this is rare in practice, but it's clearly worth
55708         fixing.  Problem reported by Alex Unleashed in
55709         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
55710         Also, don't bother to check for -m bugs unless we're using -m;
55711         suggested by Stepan Kasal.
55712
55713 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55714
55715         Sync from Automake.
55716         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
55717         `-c' flag, so they appear at the same position as in %FASTDEP%
55718         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
55719         which ignores unknown options only after the first non-option.
55720         Bug report against M4 by Nelson H. F. Beebe.
55721
55722 2006-10-13  Jim Meyering  <jim@meyering.net>
55723
55724         Fix a bug in yesterday's change.
55725         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
55726         p->fts_statp->st_dev would be used uninitialized.
55727         Ensures that we always call fts_stat on the very first entry.
55728         Miklos Szeredi reported that find -xdev stopped working.
55729
55730 2006-10-12  Bruno Haible  <bruno@clisp.org>
55731
55732         * gnulib-tool (func_get_automake_snippet): Append an automatically
55733         computed EXTRA_DIST augmentation.
55734         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
55735         * modules/alloca-opt (Makefile.am): Likewise.
55736         * modules/allocsa (Makefile.am): Likewise.
55737         * modules/arcfour (Makefile.am): Likewise.
55738         * modules/arctwo (Makefile.am): Likewise.
55739         * modules/argmatch (Makefile.am): Likewise.
55740         * modules/argz (Makefile.am): Likewise.
55741         * modules/atexit (Makefile.am): Likewise.
55742         * modules/backupfile (Makefile.am): Likewise.
55743         * modules/byteswap (Makefile.am): Likewise.
55744         * modules/c-strtod (Makefile.am): Likewise.
55745         * modules/c-strtold (Makefile.am): Likewise.
55746         * modules/calloc (Makefile.am): Likewise.
55747         * modules/canon-host (Makefile.am): Likewise.
55748         * modules/canonicalize (Makefile.am): Likewise.
55749         * modules/chdir-long (Makefile.am): Likewise.
55750         * modules/chdir-safer (Makefile.am): Likewise.
55751         * modules/check-version (Makefile.am): Likewise.
55752         * modules/chown (Makefile.am): Likewise.
55753         * modules/cloexec (Makefile.am): Likewise.
55754         * modules/close-stream (Makefile.am): Likewise.
55755         * modules/closeout (Makefile.am): Likewise.
55756         * modules/crc (Makefile.am): Likewise.
55757         * modules/csharpexec (Makefile.am): Likewise.
55758         * modules/cycle-check (Makefile.am): Likewise.
55759         * modules/des (Makefile.am): Likewise.
55760         * modules/dev-ino (Makefile.am): Likewise.
55761         * modules/dirfd (Makefile.am): Likewise.
55762         * modules/dirname (Makefile.am): Likewise.
55763         * modules/dup2 (Makefile.am): Likewise.
55764         * modules/eealloc (Makefile.am): Likewise.
55765         * modules/error (Makefile.am): Likewise.
55766         * modules/euidaccess (Makefile.am): Likewise.
55767         * modules/exclude (Makefile.am): Likewise.
55768         * modules/exitfail (Makefile.am): Likewise.
55769         * modules/fcntl-safer (Makefile.am): Likewise.
55770         * modules/fcntl (Makefile.am): Likewise.
55771         * modules/file-type (Makefile.am): Likewise.
55772         * modules/fileblocks (Makefile.am): Likewise.
55773         * modules/filemode (Makefile.am): Likewise.
55774         * modules/filenamecat (Makefile.am): Likewise.
55775         * modules/fnmatch (Makefile.am): Likewise.
55776         * modules/fopen-safer (Makefile.am): Likewise.
55777         * modules/fpending (Makefile.am): Likewise.
55778         * modules/fprintftime (Makefile.am): Likewise.
55779         * modules/free (Makefile.am): Likewise.
55780         * modules/fsusage (Makefile.am): Likewise.
55781         * modules/ftruncate (Makefile.am): Likewise.
55782         * modules/fts (Makefile.am): Likewise.
55783         * modules/gc-arcfour (Makefile.am): Likewise.
55784         * modules/gc-des (Makefile.am): Likewise.
55785         * modules/gc-hmac-md5 (Makefile.am): Likewise.
55786         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
55787         * modules/gc-md4 (Makefile.am): Likewise.
55788         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
55789         * modules/gc-sha1 (Makefile.am): Likewise.
55790         * modules/gc (Makefile.am): Likewise.
55791         * modules/getaddrinfo (Makefile.am): Likewise.
55792         * modules/getcwd (Makefile.am): Likewise.
55793         * modules/getdelim (Makefile.am): Likewise.
55794         * modules/getdomainname (Makefile.am): Likewise.
55795         * modules/getgroups (Makefile.am): Likewise.
55796         * modules/gethostname (Makefile.am): Likewise.
55797         * modules/gethrxtime (Makefile.am): Likewise.
55798         * modules/getline (Makefile.am): Likewise.
55799         * modules/getloadavg (Makefile.am): Likewise.
55800         * modules/getlogin_r (Makefile.am): Likewise.
55801         * modules/getndelim2 (Makefile.am): Likewise.
55802         * modules/getopt (Makefile.am): Likewise.
55803         * modules/getpagesize (Makefile.am): Likewise.
55804         * modules/getpass-gnu (Makefile.am): Likewise.
55805         * modules/getpass (Makefile.am): Likewise.
55806         * modules/getsubopt (Makefile.am): Likewise.
55807         * modules/gettime (Makefile.am): Likewise.
55808         * modules/gettimeofday (Makefile.am): Likewise.
55809         * modules/getugroups (Makefile.am): Likewise.
55810         * modules/getusershell (Makefile.am): Likewise.
55811         * modules/glob (Makefile.am): Likewise.
55812         * modules/group-member (Makefile.am): Likewise.
55813         * modules/hard-locale (Makefile.am): Likewise.
55814         * modules/hash (Makefile.am): Likewise.
55815         * modules/hmac-md5 (Makefile.am): Likewise.
55816         * modules/hmac-sha1 (Makefile.am): Likewise.
55817         * modules/human (Makefile.am): Likewise.
55818         * modules/idcache (Makefile.am): Likewise.
55819         * modules/imaxabs (Makefile.am): Likewise.
55820         * modules/imaxdiv (Makefile.am): Likewise.
55821         * modules/inet_ntop (Makefile.am): Likewise.
55822         * modules/inet_pton (Makefile.am): Likewise.
55823         * modules/intprops (Makefile.am): Likewise.
55824         * modules/inttostr (Makefile.am): Likewise.
55825         * modules/inttypes (Makefile.am): Likewise.
55826         * modules/isapipe (Makefile.am): Likewise.
55827         * modules/javaversion (Makefile.am): Likewise.
55828         * modules/lchmod (Makefile.am): Likewise.
55829         * modules/lchown (Makefile.am): Likewise.
55830         * modules/localcharset (Makefile.am): Likewise.
55831         * modules/long-options (Makefile.am): Likewise.
55832         * modules/lstat (Makefile.am): Likewise.
55833         * modules/malloc (Makefile.am): Likewise.
55834         * modules/mathl (Makefile.am): Likewise.
55835         * modules/mbchar (Makefile.am): Likewise.
55836         * modules/md2 (Makefile.am): Likewise.
55837         * modules/md4 (Makefile.am): Likewise.
55838         * modules/md5 (Makefile.am): Likewise.
55839         * modules/memcasecmp (Makefile.am): Likewise.
55840         * modules/memchr (Makefile.am): Likewise.
55841         * modules/memcmp (Makefile.am): Likewise.
55842         * modules/memcoll (Makefile.am): Likewise.
55843         * modules/memcpy (Makefile.am): Likewise.
55844         * modules/memmem (Makefile.am): Likewise.
55845         * modules/memmove (Makefile.am): Likewise.
55846         * modules/mempcpy (Makefile.am): Likewise.
55847         * modules/memrchr (Makefile.am): Likewise.
55848         * modules/memset (Makefile.am): Likewise.
55849         * modules/memxor (Makefile.am): Likewise.
55850         * modules/mkancesdirs (Makefile.am): Likewise.
55851         * modules/mkdir-p (Makefile.am): Likewise.
55852         * modules/mkdir (Makefile.am): Likewise.
55853         * modules/mkdtemp (Makefile.am): Likewise.
55854         * modules/mkstemp (Makefile.am): Likewise.
55855         * modules/mktime (Makefile.am): Likewise.
55856         * modules/modechange (Makefile.am): Likewise.
55857         * modules/mountlist (Makefile.am): Likewise.
55858         * modules/nanosleep (Makefile.am): Likewise.
55859         * modules/obstack (Makefile.am): Likewise.
55860         * modules/openat (Makefile.am): Likewise.
55861         * modules/pagealign_alloc (Makefile.am): Likewise.
55862         * modules/pathmax (Makefile.am): Likewise.
55863         * modules/physmem (Makefile.am): Likewise.
55864         * modules/poll (Makefile.am): Likewise.
55865         * modules/posixtm (Makefile.am): Likewise.
55866         * modules/posixver (Makefile.am): Likewise.
55867         * modules/putenv (Makefile.am): Likewise.
55868         * modules/quote (Makefile.am): Likewise.
55869         * modules/quotearg (Makefile.am): Likewise.
55870         * modules/raise (Makefile.am): Likewise.
55871         * modules/read-file (Makefile.am): Likewise.
55872         * modules/readline (Makefile.am): Likewise.
55873         * modules/readlink (Makefile.am): Likewise.
55874         * modules/readtokens (Makefile.am): Likewise.
55875         * modules/readutmp (Makefile.am): Likewise.
55876         * modules/realloc (Makefile.am): Likewise.
55877         * modules/regex (Makefile.am): Likewise.
55878         * modules/rename-dest-slash (Makefile.am): Likewise.
55879         * modules/rename (Makefile.am): Likewise.
55880         * modules/rijndael (Makefile.am): Likewise.
55881         * modules/rmdir (Makefile.am): Likewise.
55882         * modules/rpmatch (Makefile.am): Likewise.
55883         * modules/safe-read (Makefile.am): Likewise.
55884         * modules/safe-write (Makefile.am): Likewise.
55885         * modules/same-inode (Makefile.am): Likewise.
55886         * modules/same (Makefile.am): Likewise.
55887         * modules/save-cwd (Makefile.am): Likewise.
55888         * modules/savedir (Makefile.am): Likewise.
55889         * modules/setenv (Makefile.am): Likewise.
55890         * modules/settime (Makefile.am): Likewise.
55891         * modules/sha1 (Makefile.am): Likewise.
55892         * modules/sig2str (Makefile.am): Likewise.
55893         * modules/snprintf (Makefile.am): Likewise.
55894         * modules/stat-macros (Makefile.am): Likewise.
55895         * modules/stat-time (Makefile.am): Likewise.
55896         * modules/stdbool (Makefile.am): Likewise.
55897         * modules/stdint (Makefile.am): Likewise.
55898         * modules/stdlib-safer (Makefile.am): Likewise.
55899         * modules/stpcpy (Makefile.am): Likewise.
55900         * modules/stpncpy (Makefile.am): Likewise.
55901         * modules/strcase (Makefile.am): Likewise.
55902         * modules/strcasestr (Makefile.am): Likewise.
55903         * modules/strchrnul (Makefile.am): Likewise.
55904         * modules/strcspn (Makefile.am): Likewise.
55905         * modules/strdup (Makefile.am): Likewise.
55906         * modules/strerror (Makefile.am): Likewise.
55907         * modules/strftime (Makefile.am): Likewise.
55908         * modules/strndup (Makefile.am): Likewise.
55909         * modules/strnlen (Makefile.am): Likewise.
55910         * modules/strpbrk (Makefile.am): Likewise.
55911         * modules/strsep (Makefile.am): Likewise.
55912         * modules/strstr (Makefile.am): Likewise.
55913         * modules/strtod (Makefile.am): Likewise.
55914         * modules/strtoimax (Makefile.am): Likewise.
55915         * modules/strtok_r (Makefile.am): Likewise.
55916         * modules/strtol (Makefile.am): Likewise.
55917         * modules/strtoll (Makefile.am): Likewise.
55918         * modules/strtoul (Makefile.am): Likewise.
55919         * modules/strtoull (Makefile.am): Likewise.
55920         * modules/strtoumax (Makefile.am): Likewise.
55921         * modules/strverscmp (Makefile.am): Likewise.
55922         * modules/sys_socket (Makefile.am): Likewise.
55923         * modules/sys_stat (Makefile.am): Likewise.
55924         * modules/sysexits (Makefile.am): Likewise.
55925         * modules/time_r (Makefile.am): Likewise.
55926         * modules/timegm (Makefile.am): Likewise.
55927         * modules/timespec (Makefile.am): Likewise.
55928         * modules/tmpfile-safer (Makefile.am): Likewise.
55929         * modules/trim (Makefile.am): Likewise.
55930         * modules/unistd-safer (Makefile.am): Likewise.
55931         * modules/unlinkdir (Makefile.am): Likewise.
55932         * modules/unlocked-io (Makefile.am): Likewise.
55933         * modules/userspec (Makefile.am): Likewise.
55934         * modules/utime (Makefile.am): Likewise.
55935         * modules/utimecmp (Makefile.am): Likewise.
55936         * modules/utimens (Makefile.am): Likewise.
55937         * modules/vasnprintf (Makefile.am): Likewise.
55938         * modules/vasprintf (Makefile.am): Likewise.
55939         * modules/vsnprintf (Makefile.am): Likewise.
55940         * modules/xalloc (Makefile.am): Likewise.
55941         * modules/xgetcwd (Makefile.am): Likewise.
55942         * modules/xnanosleep (Makefile.am): Likewise.
55943         * modules/xreadlink (Makefile.am): Likewise.
55944         * modules/xstrtod (Makefile.am): Likewise.
55945         * modules/xstrtol (Makefile.am): Likewise.
55946         * modules/xstrtold (Makefile.am): Likewise.
55947         * modules/yesno (Makefile.am): Likewise.
55948         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
55949
55950 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55951
55952         * modules/error (Makefile.am): Distribute files through
55953         EXTRA_DIST, not lib_SOURCES.
55954
55955 2006-10-12  Eric Blake  <ebb9@byu.net>
55956
55957         * modules/error (Makefile.am): Distribute files in /lib.
55958         * modules/obstack (Makefile.am): Likewise.
55959
55960 2006-10-12  Bruno Haible  <bruno@clisp.org>
55961
55962         * modules/acl (Makefile.am): Distribute all files in lib/ through
55963         EXTRA_DIST.
55964         * modules/arcfour (Makefile.am): Likewise.
55965         * modules/arctwo (Makefile.am): Likewise.
55966         * modules/argmatch (Makefile.am): Likewise.
55967         * modules/argz (Makefile.am): Likewise.
55968         * modules/atexit (Makefile.am): Likewise.
55969         * modules/backupfile (Makefile.am): Likewise.
55970         * modules/c-strtod (Makefile.am): Likewise.
55971         * modules/c-strtold (Makefile.am): Likewise.
55972         * modules/calloc (Makefile.am): Likewise.
55973         * modules/canon-host (Makefile.am): Likewise.
55974         * modules/canonicalize (Makefile.am): Likewise.
55975         * modules/chdir-long (Makefile.am): Likewise.
55976         * modules/chdir-safer (Makefile.am): Likewise.
55977         * modules/check-version (Makefile.am): Likewise.
55978         * modules/chown (Makefile.am): Likewise.
55979         * modules/cloexec (Makefile.am): Likewise.
55980         * modules/close-stream (Makefile.am): Likewise.
55981         * modules/closeout (Makefile.am): Likewise.
55982         * modules/crc (Makefile.am): Likewise.
55983         * modules/cycle-check (Makefile.am): Likewise.
55984         * modules/des (Makefile.am): Likewise.
55985         * modules/dirfd (Makefile.am): Likewise.
55986         * modules/dirname (Makefile.am): Likewise.
55987         * modules/dup2 (Makefile.am): Likewise.
55988         * modules/euidaccess (Makefile.am): Likewise.
55989         * modules/exclude (Makefile.am): Likewise.
55990         * modules/exitfail (Makefile.am): Likewise.
55991         * modules/fcntl-safer (Makefile.am): Likewise.
55992         * modules/file-type (Makefile.am): Likewise.
55993         * modules/fileblocks (Makefile.am): Likewise.
55994         * modules/filemode (Makefile.am): Likewise.
55995         * modules/filenamecat (Makefile.am): Likewise.
55996         * modules/fnmatch (Makefile.am): Likewise.
55997         * modules/fopen-safer (Makefile.am): Likewise.
55998         * modules/fpending (Makefile.am): Likewise.
55999         * modules/fprintftime (Makefile.am): Likewise.
56000         * modules/free (Makefile.am): Likewise.
56001         * modules/fsusage (Makefile.am): Likewise.
56002         * modules/ftruncate (Makefile.am): Likewise.
56003         * modules/fts (Makefile.am): Likewise.
56004         * modules/gc (Makefile.am): Likewise.
56005         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56006         * modules/getaddrinfo (Makefile.am): Likewise.
56007         * modules/getcwd (Makefile.am): Likewise.
56008         * modules/getdelim (Makefile.am): Likewise.
56009         * modules/getdomainname (Makefile.am): Likewise.
56010         * modules/getgroups (Makefile.am): Likewise.
56011         * modules/gethostname (Makefile.am): Likewise.
56012         * modules/gethrxtime (Makefile.am): Likewise.
56013         * modules/getline (Makefile.am): Likewise.
56014         * modules/getloadavg (Makefile.am): Likewise.
56015         * modules/getlogin_r (Makefile.am): Likewise.
56016         * modules/getopt (Makefile.am): Likewise.
56017         * modules/getpass (Makefile.am): Likewise.
56018         * modules/getpass-gnu (Makefile.am): Likewise.
56019         * modules/getsubopt (Makefile.am): Likewise.
56020         * modules/gettime (Makefile.am): Likewise.
56021         * modules/gettimeofday (Makefile.am): Likewise.
56022         * modules/getugroups (Makefile.am): Likewise.
56023         * modules/getusershell (Makefile.am): Likewise.
56024         * modules/glob (Makefile.am): Likewise.
56025         * modules/group-member (Makefile.am): Likewise.
56026         * modules/hard-locale (Makefile.am): Likewise.
56027         * modules/hash (Makefile.am): Likewise.
56028         * modules/hmac-md5 (Makefile.am): Likewise.
56029         * modules/hmac-sha1 (Makefile.am): Likewise.
56030         * modules/human (Makefile.am): Likewise.
56031         * modules/idcache (Makefile.am): Likewise.
56032         * modules/imaxabs (Makefile.am): Likewise.
56033         * modules/imaxdiv (Makefile.am): Likewise.
56034         * modules/inet_ntop (Makefile.am): Likewise.
56035         * modules/inet_pton (Makefile.am): Likewise.
56036         * modules/inttostr (Makefile.am): Likewise.
56037         * modules/isapipe (Makefile.am): Likewise.
56038         * modules/lchown (Makefile.am): Likewise.
56039         * modules/long-options (Makefile.am): Likewise.
56040         * modules/lstat (Makefile.am): Likewise.
56041         * modules/malloc (Makefile.am): Likewise.
56042         * modules/mathl (Makefile.am): Likewise.
56043         * modules/mbchar (Makefile.am): Likewise.
56044         * modules/md2 (Makefile.am): Likewise.
56045         * modules/md4 (Makefile.am): Likewise.
56046         * modules/md5 (Makefile.am): Likewise.
56047         * modules/memcasecmp (Makefile.am): Likewise.
56048         * modules/memchr (Makefile.am): Likewise.
56049         * modules/memcmp (Makefile.am): Likewise.
56050         * modules/memcoll (Makefile.am): Likewise.
56051         * modules/memcpy (Makefile.am): Likewise.
56052         * modules/memmem (Makefile.am): Likewise.
56053         * modules/memmove (Makefile.am): Likewise.
56054         * modules/mempcpy (Makefile.am): Likewise.
56055         * modules/memrchr (Makefile.am): Likewise.
56056         * modules/memset (Makefile.am): Likewise.
56057         * modules/memxor (Makefile.am): Likewise.
56058         * modules/mkancesdirs (Makefile.am): Likewise.
56059         * modules/mkdir (Makefile.am): Likewise.
56060         * modules/mkdir-p (Makefile.am): Likewise.
56061         * modules/mkdtemp (Makefile.am): Likewise.
56062         * modules/mkstemp (Makefile.am): Likewise.
56063         * modules/mktime (Makefile.am): Likewise.
56064         * modules/modechange (Makefile.am): Likewise.
56065         * modules/mountlist (Makefile.am): Likewise.
56066         * modules/nanosleep (Makefile.am): Likewise.
56067         * modules/openat (Makefile.am): Likewise.
56068         * modules/pagealign_alloc (Makefile.am): Likewise.
56069         * modules/physmem (Makefile.am): Likewise.
56070         * modules/poll (Makefile.am): Likewise.
56071         * modules/posixtm (Makefile.am): Likewise.
56072         * modules/posixver (Makefile.am): Likewise.
56073         * modules/putenv (Makefile.am): Likewise.
56074         * modules/quote (Makefile.am): Likewise.
56075         * modules/quotearg (Makefile.am): Likewise.
56076         * modules/raise (Makefile.am): Likewise.
56077         * modules/read-file (Makefile.am): Likewise.
56078         * modules/readline (Makefile.am): Likewise.
56079         * modules/readlink (Makefile.am): Likewise.
56080         * modules/readtokens (Makefile.am): Likewise.
56081         * modules/readutmp (Makefile.am): Likewise.
56082         * modules/realloc (Makefile.am): Likewise.
56083         * modules/regex (Makefile.am): Likewise.
56084         * modules/rename (Makefile.am): Likewise.
56085         * modules/rename-dest-slash (Makefile.am): Likewise.
56086         * modules/rijndael (Makefile.am): Likewise.
56087         * modules/rmdir (Makefile.am): Likewise.
56088         * modules/rpmatch (Makefile.am): Likewise.
56089         * modules/safe-read (Makefile.am): Likewise.
56090         * modules/safe-write (Makefile.am): Likewise.
56091         * modules/same (Makefile.am): Likewise.
56092         * modules/save-cwd (Makefile.am): Likewise.
56093         * modules/savedir (Makefile.am): Likewise.
56094         * modules/setenv (Makefile.am): Likewise.
56095         * modules/settime (Makefile.am): Likewise.
56096         * modules/sha1 (Makefile.am): Likewise.
56097         * modules/sig2str (Makefile.am): Likewise.
56098         * modules/snprintf (Makefile.am): Likewise.
56099         * modules/stdlib-safer (Makefile.am): Likewise.
56100         * modules/stpcpy (Makefile.am): Likewise.
56101         * modules/stpncpy (Makefile.am): Likewise.
56102         * modules/strcase (Makefile.am): Likewise.
56103         * modules/strcasestr (Makefile.am): Likewise.
56104         * modules/strchrnul (Makefile.am): Likewise.
56105         * modules/strcspn (Makefile.am): Likewise.
56106         * modules/strdup (Makefile.am): Likewise.
56107         * modules/strerror (Makefile.am): Likewise.
56108         * modules/strftime (Makefile.am): Likewise.
56109         * modules/strndup (Makefile.am): Likewise.
56110         * modules/strnlen (Makefile.am): Likewise.
56111         * modules/strpbrk (Makefile.am): Likewise.
56112         * modules/strsep (Makefile.am): Likewise.
56113         * modules/strstr (Makefile.am): Likewise.
56114         * modules/strtod (Makefile.am): Likewise.
56115         * modules/strtoimax (Makefile.am): Likewise.
56116         * modules/strtok_r (Makefile.am): Likewise.
56117         * modules/strtol (Makefile.am): Likewise.
56118         * modules/strtoll (Makefile.am): Likewise.
56119         * modules/strtoul (Makefile.am): Likewise.
56120         * modules/strtoull (Makefile.am): Likewise.
56121         * modules/strtoumax (Makefile.am): Likewise.
56122         * modules/strverscmp (Makefile.am): Likewise.
56123         * modules/time_r (Makefile.am): Likewise.
56124         * modules/timegm (Makefile.am): Likewise.
56125         * modules/tmpfile-safer (Makefile.am): Likewise.
56126         * modules/unistd-safer (Makefile.am): Likewise.
56127         * modules/unlinkdir (Makefile.am): Likewise.
56128         * modules/userspec (Makefile.am): Likewise.
56129         * modules/utime (Makefile.am): Likewise.
56130         * modules/utimecmp (Makefile.am): Likewise.
56131         * modules/utimens (Makefile.am): Likewise.
56132         * modules/vasnprintf (Makefile.am): Likewise.
56133         * modules/vasprintf (Makefile.am): Likewise.
56134         * modules/vsnprintf (Makefile.am): Likewise.
56135         * modules/xalloc (Makefile.am): Likewise.
56136         * modules/xgetcwd (Makefile.am): Likewise.
56137         * modules/xnanosleep (Makefile.am): Likewise.
56138         * modules/xreadlink (Makefile.am): Likewise.
56139         * modules/xstrtod (Makefile.am): Likewise.
56140         * modules/xstrtol (Makefile.am): Likewise.
56141         * modules/xstrtold (Makefile.am): Likewise.
56142         * modules/yesno (Makefile.am): Likewise.
56143
56144 2006-10-12  Jim Meyering  <jim@meyering.net>
56145
56146         * m4/getloadavg.m4: Revert the change below.
56147
56148         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56149         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56150         fail with a symlink, which is what coreutils' ./bootstrap now
56151         creates by default.
56152
56153 2006-10-12  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56156         mingw.
56157         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56158         MSVC and mingw explicitly.
56159
56160 2006-10-11  Simon Josefsson  <jas@extundo.com>
56161             Bruno Haible  <bruno@clisp.org>
56162
56163         Add support for multiple gnulib-tool invocations in the scope of a
56164         single configure.ac file.
56165         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56166         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56167         with the same contents as the _LIBADD variable.
56168         (func_emit_initmacro_start, func_emit_initmacro_end,
56169         func_emit_initmacro_done): New functions.
56170         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56171         gl_LIBOBJS and gl_LTLIBOBJS.
56172
56173 2006-10-11  Bruno Haible  <bruno@clisp.org>
56174
56175         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56176         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56177         autoreconf. Instead, invoke autopoint explicitly but move back the
56178         *.m4 files from gnulib.
56179
56180 2006-10-11  Bruno Haible  <bruno@clisp.org>
56181
56182         * gnulib-tool (func_usage): Make module names after --create-testdir
56183         optional.
56184         (func_create_testdir): If no module was specified, use nearly all
56185         modules.
56186
56187 2006-10-12  Jim Meyering  <jim@meyering.net>
56188
56189         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56190         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56191         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56192         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56193         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56194         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56195         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56196         (fts_set_stat_required): New function.
56197         (fts_open): Defer the calls to fts_stat, if possible or requested.
56198         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56199         into fts_stat itself.
56200         (fts_read): Perform any required (deferred) fts_stat call.
56201         (fts_build): Likewise, for the directory we're about to open and read.
56202         In the readdir loop, carefully decide whether each entry will require
56203         an eventual call to fts_stat, using dirent.d_type info if available.
56204         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56205         a command line argument into this function.  Update all callers.
56206         Map a return value of FTS_DOT to FTS_D for a command line argument.
56207         * modules/fts (Depends-on): Add d-type.  Alphabetize.
56208         Thanks to Miklos Szeredi for his tenacity and for the initial
56209         bug report about "find" failing on a FUSE-based file system.
56210
56211         * lib/fts.c (fts_open): Use consistent indentation.
56212
56213 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56214
56215         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
56216         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
56217         reported by Jim Meyering.  All uses of cache variables renamed
56218         to match Autoconf's.
56219         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
56220         the other one.
56221
56222         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
56223         Fix misspelling in diagnostic.
56224
56225 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56226
56227         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
56228         defined.  Problem reported by Matthew Woehlke.
56229
56230         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
56231         Add support for Tandem NonStop R series.
56232         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
56233         Use new macro.
56234
56235         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
56236         (has_trailing_slash): Omit size arg; all callers changed.
56237         Omit 'inline', since it doesn't help performance and we'd
56238         need to configure it.
56239         Don't count //, ///, etc. as having a trailing slash.
56240         As a side effect, this removes a C99ism reported by Matthew Woehlke.
56241         (rpl_rename_dest_slash): On failure, use rename's errno rather
56242         than (in some cases) an incorrect or junk errno.
56243         Simplify code by removing need to compute length; this does
56244         cause it to make two passes instead of one over the file name,
56245         but it's worth it.
56246
56247         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
56248         change, since Autoconf's version may no longer be appropriate now
56249         that we are using CVS Autoconf's version.  Add support for Tandem.
56250
56251 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56252             Bruno Haible  <bruno@clisp.org>
56253
56254         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
56255         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
56256         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
56257         gl_AC_TYPE_LONG_LONG.
56258
56259         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
56260         instead of HAVE_LONG_LONG.
56261         * lib/printf-args.c (printf_fetchargs): Likewise.
56262         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
56263         * lib/vasnprintf.c (VASNPRINTF): Likewise.
56264         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
56265         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
56266         gl_AC_TYPE_LONG_LONG.
56267
56268 2006-10-11  Bruno Haible  <bruno@clisp.org>
56269
56270         * m4/longlong.m4: Add comments.
56271         * m4/ulonglong.m4: Likewise.
56272
56273 2006-10-10  Bruno Haible  <bruno@clisp.org>
56274
56275         Make it possible to #define stpcpy, strdup to aliases.
56276         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
56277         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
56278
56279 2006-10-10  Bruno Haible  <bruno@clisp.org>
56280
56281         Make it possible to #define gcd to an alias.
56282         * lib/gcd.c: Include config.h.
56283
56284 2006-10-10  Bruno Haible  <bruno@clisp.org>
56285
56286         Make it possible to #define c_isascii to an alias.
56287         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
56288         defined. Undefine the macros before defining them, to avoid gcc
56289         warnings.
56290         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
56291         define NO_C_CTYPE_MACROS early.
56292
56293 2006-10-10  Bruno Haible  <bruno@clisp.org>
56294
56295         Make it possible to #define set_program_name to an alias.
56296         * lib/progname.c: Don't undefine set_program_name; instead, undefine
56297         ENABLE_RELOCATABLE early.
56298
56299 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56300
56301         Port to Tandem NSK OSS, which has 64-bit signed int but at most
56302         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
56303         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
56304         More generally, don't assume that 64-bit signed int is available
56305         if unsigned int is, and vice versa.
56306         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
56307         unsigned symbols, not on their signed counterparts.
56308         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
56309         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
56310         (UINT64_C, UINTMAX_C):
56311         Likewise.
56312         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
56313         unsigned counterparts.
56314         (Have_long_long, Unsigned): New macros.
56315         (Int): Renamed from INT.
56316         (strtoimax): Use the new macros.
56317         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
56318         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
56319         * modules/inttypes (inttypes.h): Substitute
56320         HAVE_UNSIGNED_LONG_LONG_INT.
56321         * modules/stdint (stdint.h): Likewise.
56322         (Files): Add m4/ulonglong.m4.
56323
56324 2006-10-10  Bruno Haible  <bruno@clisp.org>
56325
56326         Fix a gcc -Wshadow warning.
56327         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
56328         to 'bucket'.
56329         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
56330         gl_linked_indexof_from_to): Likewise.
56331         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
56332         Likewise.
56333         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
56334         Likewise.
56335         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
56336         Reported by Eric Blake.
56337
56338 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
56339
56340         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
56341         for NetBSD.  Problem reported by Bruno Haible.
56342
56343 2006-10-09  Jim Meyering  <jim@meyering.net>
56344
56345         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
56346         Patch from Bruno Haible.
56347
56348 2006-10-09  Jim Meyering  <jim@meyering.net>
56349
56350         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
56351         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
56352         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
56353
56354 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56355
56356         Don't include <config.h> twice; this doesn't work in some cases,
56357         e.g., when config.h has "#define intmax_t long long int" and
56358         we include <config.h>, <inttypes.h>, <config.h> in that order.
56359         Problem reported by Matthew Woehlke in:
56360         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
56361         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
56362         * lib/fts-cycle.c: Don't include config.h.
56363         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
56364         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
56365         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
56366         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
56367         inttypes.h.
56368         * lib/xstrtoumax.c: Likewise.
56369         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
56370         __strtol and the like, so that this module is more like its siblings.
56371         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
56372         Remove; no longer needed now that we assume gnulib inttypes.h.
56373
56374 2006-10-08  Bruno Haible  <bruno@clisp.org>
56375
56376         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56377         option.
56378
56379 2006-10-07  Jim Meyering  <jim@meyering.net>
56380
56381         * modules/inttypes (inttypes.h): Revert what seems to have been
56382         an inadvertent part of today's change: use "|", not "/" in the
56383         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
56384
56385 2006-10-07  Bruno Haible  <bruno@clisp.org>
56386
56387         * modules/sublist: New file.
56388
56389 2006-10-07  Bruno Haible  <bruno@clisp.org>
56390
56391         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
56392         * modules/argz (argz.h): Likewise.
56393         * modules/arpa_inet (arpa/inet.h): Likewise.
56394         * modules/byteswap (byteswap.h): Likewise.
56395         * modules/configmake (configmake.h): Likewise.
56396         * modules/fcntl (fcntl.h): Likewise.
56397         * modules/fnmatch (fnmatch.h): Likewise.
56398         * modules/getopt (getopt.h): Likewise.
56399         * modules/glob (glob.h): Likewise.
56400         * modules/inttypes (inttypes.h): Likewise.
56401         * modules/netinet_in (netinet/in.h): Likewise.
56402         * modules/poll (poll.h): Likewise.
56403         * modules/stdbool (stdbool.h): Likewise.
56404         * modules/stdint (stdint.h): Likewise.
56405         * modules/sys_select (sys/select.h): Likewise.
56406         * modules/sys_socket (sys/socket.h): Likewise.
56407         * modules/sys_stat (sys/stat.h): Likewise.
56408         * modules/sysexits (sysexits.h): Likewise.
56409         * modules/unistd (unistd.h): Likewise.
56410         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56411         Add a "DO NOT EDIT" comment to the generated file.
56412         (func_import): Likewise for gnulib-comp.m4.
56413
56414 2006-10-07  Bruno Haible  <bruno@clisp.org>
56415
56416         * lib/gl_sublist.h: New file.
56417         * lib/gl_sublist.c: New file.
56418
56419 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56420
56421         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
56422         name (relative to the original working directory) and the file
56423         name component (relative to the temporary working directory).  All
56424         callers changed.
56425         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
56426         * lib/mkdir-p.c (make_dir_parents): Likewise.
56427         * lib/mkdir-p.h (make_dir_parents): Likewise.
56428
56429 2006-10-06  Eric Blake  <ebb9@byu.net>
56430
56431         Define several macros for use by the clean-temp module.
56432         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
56433         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
56434         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
56435
56436         * lib/clean-temp.h (close_stream_temp): New declaration.
56437         * lib/clean-temp.c (includes): Pull in headers according to what
56438         other modules are in use.
56439         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
56440
56441 2006-10-06  Bruno Haible  <bruno@clisp.org>
56442
56443         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
56444         instead of fopen, fwriteerror.
56445
56446 2006-10-06  Bruno Haible  <bruno@clisp.org>
56447
56448         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
56449         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
56450         int.
56451         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
56452         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
56453         Return an error indicator.
56454         Suggested by Eric Blake.
56455
56456 2006-10-06  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
56459         Reported by Eric Blake.
56460
56461 2006-10-06  Bruno Haible  <bruno@clisp.org>
56462
56463         * modules/closeout (Description): Mention stderr too.
56464
56465 2006-10-06  Bruno Haible  <bruno@clisp.org>
56466         and Paul Eggert  <eggert@cs.ucla.edu>
56467
56468         * lib/closeout.c (close_stdout): Also close stderr.
56469         * lib/closeout.h: Update comment.
56470
56471 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56472
56473         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
56474         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
56475         * lib/dirchownmod.c: Include lchown.h.
56476         * lib/lchown.c: Don't include files that lchown.h now includes.
56477         Don't declare chown, since lchown.h now does that.
56478         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
56479         (lchown): Define to rpl_chown if lchown is declared but
56480         does not exist.  Declare using a prototype if lchown is not
56481         declared.  Add a copyright notice.
56482         * lib/mkstemp.h: Include <unistd.h>.
56483         * lib/openat.c: Include lchown.h.
56484
56485         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
56486         we now test for that separately.
56487         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
56488         rather than O_NOFOLLOW, when testing whether it's possible to
56489         avoid a race condition reliably.
56490         * lib/savewd.c (savewd_chdir): Likewise.
56491
56492         Remove macros that are no longer needed now that stdint.h is
56493         reliable.
56494         * lib/fsusage.c (UINTMAX_MAX): Remove.
56495         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
56496         * lib/utimecmp.c (SIZE_MAX): Remove.
56497
56498         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
56499
56500         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
56501         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
56502         O_NOATIME works.
56503
56504 2006-10-05  Bruno Haible  <bruno@clisp.org>
56505
56506         * lib/gl_list.h (gl_sortedlist_search_from_to,
56507         gl_sortedlist_indexof_from_to): New declarations.
56508         (gl_list_implementation): New fields sortedlist_search_from_to,
56509         sortedlist_indexof_from_to.
56510         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
56511         inline functions.
56512         * lib/gl_list.c (gl_sortedlist_search_from_to,
56513         gl_sortedlist_indexof_from_to): New functions.
56514         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
56515         function.
56516         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
56517         (gl_array_sortedlist_search_from_to): New function.
56518         (gl_array_list_implementation): Update.
56519         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
56520         function.
56521         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
56522         (gl_carray_sortedlist_search_from_to): New function.
56523         (gl_carray_list_implementation): Update.
56524         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
56525         gl_linked_sortedlist_indexof_from_to): New functions.
56526         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56527         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56528         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
56529         gl_tree_sortedlist_indexof_from_to): New functions.
56530         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56531         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56532         Update.
56533         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56534         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
56535         Update.
56536
56537 2006-10-05  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
56540         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
56541         (struct gl_list_implementation): Add fields search_from_to,
56542         indexof_from_to. Remove fields search, indexof.
56543         (gl_list_search): Use the search_from_to method.
56544         (gl_list_search_from, gl_list_search_from_to): New functions.
56545         (gl_list_indexof): Use the indexof_from_to method.
56546         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56547         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
56548         (gl_list_search_from, gl_list_search_from_to): New functions.
56549         (gl_list_indexof): Use the indexof_from_to method.
56550         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
56551         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
56552         gl_array_indexof. Add start_index, end_index arguments.
56553         (gl_array_search_from_to): Renamed from gl_array_search. Add
56554         start_index, end_index arguments.
56555         (gl_array_remove, gl_array_list_implementation): Update.
56556         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
56557         gl_carray_indexof. Add start_index, end_index arguments.
56558         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
56559         start_index, end_index arguments.
56560         (gl_carray_remove, gl_carray_list_implementation): Update.
56561         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
56562         gl_linked_search. Add start_index, end_index arguments.
56563         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
56564         start_index, end_index arguments.
56565         (gl_linked_remove): Update.
56566         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56567         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56568         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
56569         field to 'size_t'.
56570         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
56571         gl_tree_search. Add start_index, end_index arguments.
56572         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56573         start_index, end_index arguments.
56574         (gl_tree_remove): Update.
56575         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56576         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56577         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
56578         function.
56579         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
56580         gl_tree_search. Add start_index, end_index arguments.
56581         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
56582         start_index, end_index arguments.
56583         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56584         Update.
56585         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56586
56587 2006-10-05  Bruno Haible  <bruno@clisp.org>
56588
56589         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
56590
56591         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
56592         fwriteerror_temp): New declarations.
56593         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
56594         (descriptors): New variable.
56595         (cleanup): First, close the descriptors.
56596         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
56597         fclose_temp, fwriteerror_temp): New functions.
56598
56599 2006-10-04  Jim Meyering  <jim@meyering.net>
56600
56601         * lib/fts.c (fts_open): Tiny comment change.
56602
56603 2006-10-04  Bruno Haible  <bruno@clisp.org>
56604
56605         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
56606         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
56607         gl_LOCK_BODY.
56608         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
56609         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
56610         gl_LOCK_EARLY_BODY.
56611         (gl_LOCK): Require gl_LOCK_BODY.
56612
56613 2006-10-04  Bruno Haible  <bruno@clisp.org>
56614
56615         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
56616         (gl_oset_search_atleast): New declaration.
56617         (struct gl_oset_implementation): Add field 'search_atleast'.
56618         (gl_oset_search_atleast): New inline function.
56619         * lib/gl_oset.c (gl_oset_search_atleast): New function.
56620         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
56621         (gl_array_oset_implementation): Update.
56622         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
56623         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
56624         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
56625
56626 2006-10-04  Bruno Haible  <bruno@clisp.org>
56627
56628         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
56629
56630 2006-10-03  Bruno Haible  <bruno@clisp.org>
56631
56632         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
56633         from gl_avltreehash_list_implementation.
56634
56635 2006-10-03  Bruno Haible  <bruno@clisp.org>
56636
56637         * lib/gl_oset.c (gl_oset_add): Fix return type.
56638
56639 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
56640
56641         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
56642
56643 2006-10-02  Eric Blake  <ebb9@byu.net>
56644
56645         * modules/strnlen (Depends-on): Add extensions.
56646
56647 2006-10-02  Eric Blake  <ebb9@byu.net>
56648
56649         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
56650         definition in 2.60+.
56651
56652 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
56653
56654         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
56655         checks.
56656
56657 2006-10-02  Bruno Haible  <bruno@clisp.org>
56658
56659         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
56660         to the AUTOMAKE_OPTIONS.
56661         Reported by Jim Meyering.
56662
56663 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
56664
56665         Work around bug in Solaris 10 /proc file system:
56666         /proc/self/fd/NNN/.. isn't the parent directory of
56667         the directory whose file descriptor is NNN.  This needs to
56668         be worked around at run time, not compile time, since a
56669         program might be built on Solaris 8, where things work, and
56670         run on Solaris 10.
56671         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
56672         to use the following interface instead:
56673         (OPENAT_BUFFER_SIZE): New macro.
56674         (openat_proc_name): New function.
56675         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
56676         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
56677         Likewise.
56678         * lib/openat-proc.c: New file.
56679         * modules/openat (Files): Add lib/openat-proc.c.
56680         (Depends-on): Add same-inode, stdbool.
56681         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
56682
56683 2006-09-29  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
56686         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
56687         argument. Set stdout_closed before testing for ferror, not after.
56688         (fwriteerror, fwriteerror_no_ebadf): New functions.
56689
56690 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56691
56692         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
56693
56694 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
56695
56696         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
56697         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
56698
56699 2006-09-28  Jim Meyering  <jim@meyering.net>
56700
56701         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
56702         Include <unistd.h>.
56703
56704 2006-09-28  Bruno Haible  <bruno@clisp.org>
56705
56706         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
56707         * modules/linkedhash-list (Depends-on): Likewise.
56708         * modules/rbtreehash-list (Depends-on): Likewise.
56709
56710 2006-09-28  Bruno Haible  <bruno@clisp.org>
56711
56712         * lib/strndup.h: Simplify the redefinition of strndup.
56713         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
56714         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
56715
56716 2006-09-28  Bruno Haible  <bruno@clisp.org>
56717
56718         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
56719         * lib/gl_linkedhash_list.c: Likewise.
56720         * lib/gl_rbtreehash_list.c: Likewise.
56721
56722 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
56723
56724         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
56725         getaddrinfo.
56726
56727         * lib/__fpending.h: Don't include <stdio_ext.h> unless
56728         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
56729         it causes <stdio_ext.h> to cause a compile-time error.
56730         Problem reported by Nelson H. F. Beebe.
56731         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
56732         of HAVE_DECL___PENDING.
56733
56734         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
56735         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
56736         declaration.
56737
56738 2006-09-27  Jim Meyering  <jim@meyering.net>
56739
56740         This file could end up with a definition for a function
56741         named __strndup, rather than rpl_strndup on a system with
56742         incomplete weak_alias support.
56743         * lib/strndup.c (strndup): Rename from __strndup.
56744         Remove #defines that used to map __strndup to strndup.
56745         Don't use K&R prototypes.
56746         Remove LIBC-related code, since this file is not sync'd with glibc.
56747         * lib/strndup.h: Revamp, accordingly.
56748         * m4/strndup.m4: Modernize.
56749
56750 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56751
56752         * modules/savewd (Depends-on): Add 'raise'.
56753         * lib/savewd.c: Include <signal.h>, for 'raise'.
56754
56755 2006-09-26  Jim Meyering  <jim@meyering.net>
56756
56757         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
56758         when we detect Darwin 8.7.0's acl_get_file bug.
56759         Rearrange to perform the new (below) run-test while $LIBS
56760         contains any acl-related library.  Set USE_ACL at the end.
56761         (gl_ACL_GET_FILE): New function.
56762
56763 2006-09-26  Eric Blake  <ebb9@byu.net>
56764
56765         * lib/verror.c: Include <config.h> unconditionally.
56766
56767 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
56768
56769         * modules/clock-time (Maintainer): Add self.
56770         * modules/getlogin_r (Depends-on): Add extensions.
56771
56772 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56773
56774         * modules/clock-time: New module.
56775         * modules/nanosleep (Depends-on): Add clock-time.
56776         * modules/gethrxtime (Depends-on): Likewise.
56777         * modules/gettime (Depends-on): Likewise.
56778         * modules/settime (Depends-on): Likewise.
56779
56780         * modules/fts-lgpl: Depend on openat.
56781         * modules/mkancesdirs: Depend on savewd.
56782         * modules/mkdir-p: Likewise.
56783
56784 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56785
56786         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
56787
56788         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
56789         `gl_have_arbitrary_file_name_length_limit' to
56790         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
56791         actually works between configure runs.
56792
56793 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56794             Bruno Haible  <bruno@clisp.org>
56795
56796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
56797
56798 2006-09-25  Jim Meyering  <jim@meyering.net>
56799
56800         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
56801         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
56802
56803 2006-09-25  Eric Blake  <ebb9@byu.net>
56804
56805         * gnulib-tool (func_import, func_create_testdir): Fix typos in
56806         exec's in 2006-09-18 patch when shuffling fds.
56807
56808 2006-09-25  Bruno Haible  <bruno@clisp.org>
56809
56810         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
56811         Reported by Jim Meyering.
56812
56813 2006-09-24  Jim Meyering  <jim@meyering.net>
56814
56815         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
56816         compare a pointer against a literal "0".  That caused failures with
56817         at least HP-UX's hpcc.
56818
56819 2006-09-22  Simon Josefsson  <jas@extundo.com>
56820
56821         * modules/gc-sha1:
56822         * modules/gc-md4:
56823         * modules/gc-hmac-sha1:
56824         * modules/gc-hmac-md5:
56825         * modules/gc-des:
56826         * modules/gc-arcfour: Distribute more files.
56827
56828 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56829
56830         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
56831         (gl_linked_iterator_from_to): Initialize struct completely.
56832         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
56833         (gl_tree_iterator_from_to): Likewise
56834         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
56835         * lib/gl_array_list.c [lint] (gl_array_iterator)
56836         (gl_array_iterator_from_to): Likewise.
56837         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
56838         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
56839         (gl_carray_iterator_from_to): Likewise.
56840
56841         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
56842         * lib/md4.c (md4_process_block): Remove unused variable.
56843         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
56844         parentheses for clarity.
56845
56846 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56847
56848         * modules/bison-i18n (Depends-on): Add gettext.
56849
56850 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56851
56852         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
56853         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
56854         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
56855         also add missing comma that caused broken test.
56856         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
56857         stdlib.h, for `abort'.
56858         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
56859         variables.
56860         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
56861         include unistd.h if present, for `rmdir'.
56862         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
56863         variables.
56864         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
56865         in the process include standard headers for prototypes.
56866         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
56867         gets declared on GNU/Linux.
56868         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
56869         unistd.h, for `rmdir'.
56870         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
56871
56872         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
56873         always true.
56874         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
56875
56876         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
56877
56878 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56879
56880         * gnulib-tool (func_version): Create output all at once.  This
56881         may help avoid triggering unnecessary SIGPIPEs, and at any
56882         rate it doesn't hurt.
56883
56884 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56885             Bruno Haible  <bruno@clisp.org>
56886
56887         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
56888         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56889         * m4/signed.m4 (bh_C_SIGNED): Likewise.
56890
56891         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
56892         (gl_FUNC_VASPRINTF): Invoke it.
56893
56894 2006-09-22  Bruno Haible  <bruno@clisp.org>
56895
56896         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
56897         getloadavg.c as first argument.
56898
56899 2006-09-22  Bruno Haible  <bruno@clisp.org>
56900
56901         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
56902         at the beginning of the gl_INIT macro.
56903         * modules/getloadavg (configure.ac): Pass $gl_source_base to
56904         gl_GETLOADAVG.
56905
56906 2006-09-22  Bruno Haible  <bruno@clisp.org>
56907
56908         * gnulib-tool (func_create_megatestdir): Don't include the config-h
56909         module.
56910         Suggested by Ralf Wildenhues.
56911
56912 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
56913
56914         Import this patch from libc:
56915
56916         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
56917
56918         * lib/regex_internal.c (re_string_reconstruct): Handle
56919         offset < pstr->valid_raw_len && pstr->offsets_needed case.
56920         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
56921         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
56922         re_string_context_at.
56923
56924         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
56925         now requires it.
56926         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
56927         gl_REGEX now does it for us.
56928         (gl_REGEX): Add test taken from
56929         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
56930
56931         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
56932         Check that large offsets work.  Modernize Autoconf usages.
56933         Prefer "yes" to mean a good thing rather than a bad.
56934         Don't put "#define mkstemp" in config.h, as this might interfere
56935         with standard system headers that "#define mkstemp mkstemp64".
56936
56937         * modules/mkstemp (Depends-on): Add extensions, so that
56938         mkstemp is visible on some platforms.
56939         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
56940         (Include): Change to "mkstemp.h" from <stdlib.h>.
56941         (Files): Add mkstemp.h.
56942
56943         * lib/mkstemp.h: New file, since some standard headers
56944         #define mkstemp.
56945         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
56946         Include "mkstemp.h".
56947         Make the _LIBC code resemble glibc original more,
56948         e.g., use K&R style.
56949         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
56950         (mkstemp): Remove, since mkstemp.h does this for us.
56951         * lib/stdlib--.h: Include mkstemp.h.
56952
56953         Import this patch from libc:
56954
56955         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56956
56957         * lib/tempname.c (__gen_tempname): Change attempts_min
56958         into a macro.  Use preprocessor to decide how to initialize
56959         attempts [Coverity CID 67].
56960
56961 2006-09-20  Bruno Haible  <bruno@clisp.org>
56962
56963         * lib/mkdtemp.c: Import from libc.
56964         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
56965                 * sysdeps/posix/tempname.c (__gen_tempname): Change
56966                 attempts_min into a macro.  Use preprocessor to decide how to
56967                 initialize attempts [Coverity CID 67].
56968         2001-11-27  Paul Eggert  <eggert@twinsun.com>
56969                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
56970                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
56971
56972 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56973
56974         * gnulib-tool (func_exit): New function, to allow to pass the
56975         exit status portably through the trap.  Use everywhere.
56976         (--help, --version): Signal a write error.
56977         (trap): catch SIGPIPE, for write errors.
56978         Exit at the end of the trap, with the correct exit status.
56979
56980 2006-09-19  Karl Berry  <karl@gnu.org>
56981
56982         * doc/gnulib.texi: note about the license texinfo files.
56983
56984 2006-09-19  Eric Blake  <ebb9@byu.net>
56985
56986         * gnulib-tool: Avoid space-tab.
56987
56988 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56989
56990         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
56991         that prevented coreutils 6.1 from building.  Problem reported
56992         by Petter Reinholdtsen.
56993
56994 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
56995
56996         * gnulib-tool (avoidlist): Fix typo that broke options like
56997         --avoid=lock that are used by coreutils bootstrap.
56998
56999 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57000
57001         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57002         more systematically.
57003
57004 2006-09-18  Jim Meyering  <jim@meyering.net>
57005
57006         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57007
57008 2006-09-18  Bruno Haible  <bruno@clisp.org>
57009
57010         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57011
57012 2006-09-18  Bruno Haible  <bruno@clisp.org>
57013
57014         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57015         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57016         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57017         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57018         * m4/gettext.m4: Require autoconf >= 2.52.
57019         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57020         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57021         of gl_cv_header_inttypes_h.
57022
57023 2006-09-18  Bruno Haible  <bruno@clisp.org>
57024
57025         * lib/javaversion.c: Include configmake.h.
57026
57027 2006-09-18  Bruno Haible  <bruno@clisp.org>
57028
57029         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57030         avoid that the while loops be executed in a subshell.
57031
57032 2006-09-18  Bruno Haible  <bruno@clisp.org>
57033
57034         * MODULES.html.sh (func_module): Break long lines.
57035         Suggested by Bruce Korb <bkorb@gnu.org>.
57036
57037 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57038
57039         Speed up by a factor of 1.12.
57040         * gnulib-tool (nl): New variable.
57041         (func_import): Rewrite include directive extraction to only read each
57042         directive once.
57043
57044 2006-09-17  Bruno Haible  <bruno@clisp.org>
57045
57046         * modules/javaversion (Makefile.am): Remove DEFS setting.
57047         (Depends-on): Add configmake, for PKGDATADIR definition.
57048
57049 2006-09-17  Bruno Haible  <bruno@clisp.org>
57050
57051         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57052
57053 2006-09-17  Bruno Haible  <bruno@clisp.org>
57054
57055         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57056         (func_modules_transitive_closure, func_modules_add_dummy,
57057         func_modules_to_filelist, func_import, func_create_testdir,
57058         func_create_megatestdir, ...): Use it wherever possible.
57059         Suggested by Ralf Wildenhues.
57060
57061 2006-09-16  Karl Berry  <karl@gnu.org>
57062
57063         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57064         to avoid sectioning errors.
57065         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57066         [ifinfo]: blank line after @center-ed titles.
57067         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57068         Spell FSF address consistently with others.
57069         (These changes approved by rms.)
57070
57071 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57072
57073         Speed up by a factor of 1.61.
57074         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57075         already checked module names again.
57076
57077 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57078
57079         Speed up by a factor of 1.13.
57080         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57081         for new_files, and the input to func_add_or_update.
57082
57083 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57084
57085         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57086         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57087
57088 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57089
57090         * modules/mkancesdirs (Depends-on): Add fcntl.
57091         * modules/savewd: New file.
57092         * MODULES.html.sh (File system functions): Add savewd.
57093
57094         * modules/configmake (Makefile.am): Add support for the
57095         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57096
57097 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57098
57099         * m4/savewd.m4: New file.
57100
57101 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57102
57103         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57104         (dirchownmod): New arg FD.  All callers changed.
57105         Use FD rather than opening the directory ourself, as opening is
57106         now the caller's responsibility.
57107         * lib/dirchownmod.h: Likewise.
57108         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57109         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57110         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57111         (test_dir): Remove.
57112         (mkancesdirs): Return length of prefix of FILE that has already
57113         been made, or -2 if there is a child doing the work.  Redo
57114         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57115         ".", and treat ".." specially since it might stray back into
57116         already-created areas.  Use a subprocess if necessary.  New arg
57117         WD; all users changed.  MAKE_DIR function should now return 1
57118         if it creates a directory that is not readable.  Return -2 if
57119         a child process is spun off.
57120         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57121         Adjust signature to match code.
57122         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57123         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57124         all users changed.
57125         * lib/savewd.c, lib/savewd.h: New files.
57126
57127 2006-09-15  Jim Meyering  <jim@meyering.net>
57128
57129         * modules/rename-dest-slash: New module.
57130         * MODULES.html.sh (posix_compat): Add it here.
57131
57132         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57133
57134 2006-09-15  Jim Meyering  <jim@meyering.net>
57135
57136         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57137         file.
57138
57139         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57140
57141 2006-09-15  Jim Meyering  <jim@meyering.net>
57142
57143         * lib/rename-dest-slash.c (has_trailing_slash): Use
57144         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57145         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57146         test before testing whether SRC is a directory.
57147         Suggestions from Bruno Haible.
57148
57149         Avoid a warning about an unused variable.
57150         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57151         into the #ifdef block where it's used.
57152
57153         * lib/rename-dest-slash.c: New file.
57154
57155 2006-09-14  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/allocsa.c: Include <config.h> unconditionally.
57158         * lib/asnprintf.c: Likewise.
57159         * lib/asprintf.c: Likewise.
57160         * lib/c-strcasecmp.c: Likewise.
57161         * lib/c-strcasestr.c: Likewise.
57162         * lib/c-strncasecmp.c: Likewise.
57163         * lib/c-strstr.c: Likewise.
57164         * lib/classpath.c: Likewise.
57165         * lib/clean-temp.c: Likewise.
57166         * lib/concatpath.c: Likewise.
57167         * lib/copy-file.c: Likewise.
57168         * lib/csharpcomp.c: Likewise.
57169         * lib/csharpexec.c: Likewise.
57170         * lib/execute.c: Likewise.
57171         * lib/fatal-signal.c: Likewise.
57172         * lib/findprog.c: Likewise.
57173         * lib/fwriteerror.c: Likewise.
57174         * lib/gl_array_list.c: Likewise.
57175         * lib/gl_array_oset.c: Likewise.
57176         * lib/gl_avltree_list.c: Likewise.
57177         * lib/gl_avltree_oset.c: Likewise.
57178         * lib/gl_avltreehash_list.c: Likewise.
57179         * lib/gl_carray_list.c: Likewise.
57180         * lib/gl_linked_list.c: Likewise.
57181         * lib/gl_linkedhash_list.c: Likewise.
57182         * lib/gl_list.c: Likewise.
57183         * lib/gl_oset.c: Likewise.
57184         * lib/gl_rbtree_list.c: Likewise.
57185         * lib/gl_rbtree_oset.c: Likewise.
57186         * lib/gl_rbtreehash_list.c: Likewise.
57187         * lib/imaxabs.c: Likewise.
57188         * lib/imaxdiv.c: Likewise.
57189         * lib/javacomp.c: Likewise.
57190         * lib/javaexec.c: Likewise.
57191         * lib/javaversion.c: Likewise.
57192         * lib/linebreak.c: Likewise.
57193         * lib/localcharset.c: Likewise.
57194         * lib/lock.c: Likewise.
57195         * lib/mbchar.c: Likewise.
57196         * lib/mbswidth.c: Likewise.
57197         * lib/mkdtemp.c: Likewise.
57198         * lib/pipe.c: Likewise.
57199         * lib/printf-args.c: Likewise.
57200         * lib/printf-parse.c: Likewise.
57201         * lib/progname.c: Likewise.
57202         * lib/progreloc.c: Likewise.
57203         * lib/readlink.c: Likewise.
57204         * lib/sh-quote.c: Likewise.
57205         * lib/stpcpy.c: Likewise.
57206         * lib/stpncpy.c: Likewise.
57207         * lib/strcasecmp.c: Likewise.
57208         * lib/strcasestr.c: Likewise.
57209         * lib/strcspn.c: Likewise.
57210         * lib/striconv.c: Likewise.
57211         * lib/strncasecmp.c: Likewise.
57212         * lib/strnlen1.c: Likewise.
57213         * lib/strstr.c: Likewise.
57214         * lib/strtok_r.c: Likewise.
57215         * lib/tls.c: Likewise.
57216         * lib/tmpdir.c: Likewise.
57217         * lib/unicodeio.c: Likewise.
57218         * lib/unsetenv.c: Likewise.
57219         * lib/vasnprintf.c: Likewise.
57220         * lib/vasprintf.c: Likewise.
57221         * lib/wait-process.c: Likewise.
57222         * lib/xallocsa.c: Likewise.
57223         * lib/xsetenv.c: Likewise.
57224         * lib/xstriconv.c: Likewise.
57225
57226 2006-09-13  Simon Josefsson  <jas@extundo.com>
57227
57228         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
57229         that internally, suggested by Ralf Wildenhues
57230         <Ralf.Wildenhues@gmx.de>.
57231
57232 2006-09-13  Simon Josefsson  <jas@extundo.com>
57233
57234         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
57235         @LIBOBJS@.
57236         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57237
57238 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
57239
57240         * lib/_fpending.c: Include <config.h> unconditionally, since we no
57241         longer worry about uses that don't define HAVE_CONFIG_H.
57242         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
57243         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
57244         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
57245         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
57246         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
57247         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
57248         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
57249         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
57250         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
57251         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
57252         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
57253         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
57254         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
57255         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
57256         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
57257         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
57258         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
57259         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
57260         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
57261         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
57262         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
57263         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
57264         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
57265         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
57266         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
57267         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
57268         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
57269         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
57270         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
57271         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
57272         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
57273         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
57274         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
57275         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
57276         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
57277         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
57278         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
57279         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
57280         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
57281         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
57282         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
57283         Likewise.
57284
57285 2006-09-13  Eric Blake  <ebb9@byu.net>
57286
57287         * lib/getopt.c: Fix typo in last commit.
57288
57289 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57290
57291         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
57292         dgettext.
57293
57294 2006-09-12  Jim Meyering  <jim@meyering.net>
57295
57296         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
57297         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
57298         Reported by Nelson H. F. Beebe.
57299
57300 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57301
57302         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
57303         program_invocation_name and program_invocation_short_name are
57304         initialized.
57305         * lib/argp-namefrob.h: Move declarations of program_invocation_name
57306         and program_invocation_short_name to argp.h, so they are visible
57307         to user programs.
57308         * lib/argp.h: Likewise
57309
57310 2006-09-10  Bruno Haible  <bruno@clisp.org>
57311
57312         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
57313         m4/inttypes_h.m4, m4/uintmax_t.m4.
57314
57315 2006-09-10  Bruno Haible  <bruno@clisp.org>
57316
57317         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
57318         gl_AC_TYPE_UINTMAX_T.
57319
57320 2006-09-10  Bruno Haible  <bruno@clisp.org>
57321
57322         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
57323
57324 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57325
57326         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
57327         convention.  Text proposed by Bruno Haible.
57328         (struct argp_option): Document the use of N_() wrappers.
57329
57330         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
57331         '\v', and translate the two parts separately, instead of feeding
57332         the whole string to gettext.  This allows to exclude
57333         '\v' from the strings visible to the translator by writing doc
57334         strings as N_("..") "\v" N_("..").
57335
57336 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
57337
57338         * config/srclist.txt: Undo latest change; the bug was fixed.
57339
57340 2006-09-09  Bruno Haible  <bruno@clisp.org>
57341
57342         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
57343         assignments if building a library without libtool.
57344         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
57345         in func_emit_lib_Makefile_am.
57346         (func_import): When building a static library libfoo.a, arrange to
57347         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
57348         (func_create_testdir): Likewise.
57349         * modules/gc (configure.ac, Makefile.am): If building statically,
57350         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
57351         * modules/iconvme (configure.ac, Makefile.am): Likewise.
57352         * modules/striconv (configure.ac, Makefile.am): Likewise.
57353         Based on a suggestion by Ralf Wildenhues.
57354
57355 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57356
57357         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
57358         Check for unistd.h too, since Autoconf doesn't assume POSIX.
57359         Also:
57360
57361         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57362         Add year_2050_test to catch glibc bug 2821
57363         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57364
57365         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57366         Prefer #ifdef to #if.
57367
57368         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
57369         Return from 'main' instead of calling 'exit'.
57370
57371 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57372
57373         * lib/mktime.c (guess_time_tm): Fix bug where mktime
57374         returned the maximum time_t value rather than (time_t) -1.
57375         Problem originally reported by William Bardwell
57376         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
57377
57378         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57379         Moved to here ...
57380         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
57381         ... from here.
57382
57383 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57384
57385         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
57386         2821 is fixed.
57387
57388 2006-09-08  Jim Meyering  <jim@meyering.net>
57389
57390         Don't make generated files read-only.  That would bother too many
57391         people.  However, do retain the ability to work when targets are
57392         read-only: remove the destination and temporary files before writing
57393         them (when generated via sed or echo), or by using the -f option for
57394         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
57395         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57396         * modules/byteswap, modules/configmake, modules/fcntl:
57397         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57398         * modules/localcharset, modules/netinet_in, modules/poll:
57399         * modules/stdbool, modules/stdint, modules/sys_select:
57400         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57401
57402 2006-09-08  Jim Meyering  <jim@meyering.net>
57403
57404         Avoid new build failure on FreeBSD 6.0.
57405         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
57406         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
57407         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
57408
57409 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57410
57411         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
57412
57413 2006-09-07  Jim Meyering  <jim@meyering.net>
57414
57415         Fix global typo in last change: use chmod u-w, not chmod u-x.
57416         Spotted by Paul Eggert and Bruce Korb.
57417         * modules/alloca-opt, modules/argz, modules/arpa_inet:
57418         * modules/byteswap, modules/configmake, modules/fcntl:
57419         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
57420         * modules/localcharset, modules/netinet_in, modules/poll:
57421         * modules/stdbool, modules/stdint, modules/sys_select:
57422         * modules/sys_socket, modules/sys_stat, modules/sysexits:
57423
57424 2006-09-06  Jim Meyering  <jim@meyering.net>
57425
57426         Make generated files be read-only.
57427         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
57428         Ensure that each generated file is now read-only.
57429         * modules/argz: Likewise.
57430         * modules/arpa_inet: Likewise.
57431         * modules/byteswap: Likewise.
57432         * modules/configmake: Likewise.
57433         * modules/fcntl: Likewise.
57434         * modules/fnmatch: Likewise.
57435         * modules/getopt: Likewise.
57436         * modules/glob: Likewise.
57437         * modules/inttypes: Likewise.
57438         * modules/netinet_in: Likewise.
57439         * modules/poll: Likewise.
57440         * modules/stdbool: Likewise.
57441         * modules/stdint: Likewise.
57442         * modules/sys_select: Likewise.
57443         * modules/sys_socket: Likewise.
57444         * modules/sys_stat: Likewise.
57445         * modules/sysexits: Likewise.
57446         * modules/localcharset: Same as above, but continue using temporary
57447         file named "t-$@" (why different?) rather than the "$@-t" used
57448         everywhere else.
57449
57450         * modules/sysexits (Makefile.am): Replace literal occurrences
57451         of "sysexit.h" more readable, and more consistent, "$@".
57452
57453 2006-09-06  Bruno Haible  <bruno@clisp.org>
57454
57455         * modules/striconv: New file.
57456         * modules/xstriconv: New file.
57457         * MODULES.html.sh (Internationalization functions): Add striconv,
57458         xstriconv.
57459
57460 2006-09-06  Bruno Haible  <bruno@clisp.org>
57461
57462         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
57463         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
57464         not using libtool correctly.
57465
57466 2006-09-06  Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/striconv.h: New file.
57469         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
57470         iconvstring.c.
57471         * lib/xstriconv.h: New file.
57472         * lib/xstriconv.c: New file.
57473
57474 2006-09-06  Bruno Haible  <bruno@clisp.org>
57475
57476         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57477         lib_..._LDFLAGS.
57478
57479 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57480
57481         * lib/argz_.h: Sync from Libtool.
57482
57483         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
57484                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
57485
57486         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
57487
57488 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57489
57490         * modules/trim: New file.
57491
57492 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
57493
57494         * lib/trim.h: New file.
57495         * lib/trim.c: New file.
57496
57497 2006-09-05  Bruno Haible  <bruno@clisp.org>
57498
57499         * MODULES.html.sh (String handling): Add trim.
57500
57501 2006-09-04  Karl Berry  <karl@gnu.org>
57502
57503         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
57504         until next release.
57505
57506 2006-09-03  Bruno Haible  <bruno@clisp.org>
57507
57508         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
57509         correctly.
57510
57511 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57512
57513         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
57514         not gl_GETLOADAVG.  Omit unneeded semicolons.
57515         Problems reported by Ralf Wildenhues in
57516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57517         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
57518         at the end, which is the usual gnulib style.
57519
57520         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
57521         of doing all the work ourselves.
57522         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
57523         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
57524
57525 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57526
57527         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
57528         Problem reported by Ralf Wildenhues in
57529         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
57530
57531         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
57532         HAVE_STRUCT_STATFS_F_FSTYPENAME.
57533
57534 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57535
57536         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
57537         yesterday's patch by changing test -n to test -z.
57538
57539 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57540
57541         * modules/getloadavg (Files): Add m4/getloadavg.m4.
57542         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
57543         the former is now obsolescent.
57544
57545         * modules/chdir-long (Depends-on): Add fcntl.
57546
57547 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
57550         obsolescent, and programs should use gnulib instead.
57551         * m4/getloadavg.m4: New file, with contents taken from Autoconf
57552         but with prefixes changed.
57553
57554 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57555
57556         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
57557         or stdbool.h, because they might not exist while configuring.
57558
57559         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
57560         Don't include unistd.h or limits.h; not needed, since chdir-long.h
57561         does that for us.
57562         (O_DIRECTORY): Remove.
57563
57564 2006-08-31  Eric Blake  <ebb9@byu.net>
57565
57566         * gnulib-tool: Don't let emacs change spaces to TAB.
57567
57568 2006-08-31  Bruno Haible  <bruno@clisp.org>
57569
57570         * gnulib-tool: When calling func_import more than once, do it in a
57571         subshell.
57572         Reported by Eric Blake <ebb9@byu.net>.
57573
57574 2006-08-31  Bruno Haible  <bruno@clisp.org>
57575
57576         * gnulib-tool (nl): Remove variable.
57577         (sed_transform_lib_file): Use more robust test for config-h module.
57578         (func_import): Fix typo in 2006-08-25 patch.
57579
57580 2006-08-31  Bruno Haible  <bruno@clisp.org>
57581
57582         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
57583         specified, augment Makefile.am variables instead of assigning them.
57584
57585 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57586
57587         Work around a bug in both the Linux and SunOS 64-bit kernels:
57588         nanosleep mishandles sleeps for longer than 2**31 seconds.
57589         Problem reported by Frank v Waveren in
57590         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
57592         Check for nanosleep bug.
57593         (LIB_NANOSLEEP): Append clock_gettime library if needed.
57594
57595 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57596
57597         Work around a bug in both the Linux and SunOS 64-bit kernels:
57598         nanosleep mishandles sleeps for longer than 2**31 seconds.
57599         Problem reported by Frank v Waveren in
57600         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
57601         * lib/nanosleep.c (BILLION): New constant.
57602         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
57603         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
57604         implementation.
57605
57606 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57607
57608         * modules/nanosleep (Depends-on): Add gettime.
57609
57610 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
57611         and Simon Josefsson  <jas@extundo.com>
57612         and Oskar Liljeblad  <oskar@osk.mine.nu>
57613
57614         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
57615         * gnulib-tool (func_import): New license type 'unmodifiable license
57616         text'.
57617         * modules/fdl: Use it.  Longer description.
57618         * module/gpl, module/lgpl: New files.
57619
57620 2006-08-30  Jim Meyering  <jim@meyering.net>
57621
57622         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
57623         shadowing the parameter.
57624
57625 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57626
57627         Sync from Libtool:
57628
57629         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57630
57631         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
57632         sharing with gnulib.  Report by Eric Blake.
57633
57634 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57635
57636         * modules/isapipe: New file.
57637         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
57638
57639 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57640
57641         * modules/configmake (Makefile.am): Add a comment, and omit
57642         the CONFIGMAKE_ prefix from generated macro names.  Suggested
57643         by Bruno Haible.
57644
57645 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57646
57647         * m4/isapipe.m4: New file.
57648
57649 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
57650
57651         * lib/isapipe.c, lib/isapipe.h: New files.
57652
57653 2006-08-29  Jim Meyering  <jim@meyering.net>
57654
57655         * modules/configmake (Makefile.am): Make configmake.h depend on
57656         Makefile.  Otherwise, a stale configmake.h could hang around.
57657
57658 2006-08-29  Eric Blake  <ebb9@byu.net>
57659
57660         * lib/error.c (error_at_line, print_errno_message): Match libc, after
57661         resolution of upstream bug 3044.
57662
57663 2006-08-29  Bruno Haible  <bruno@clisp.org>
57664
57665         * modules/localcharset (Depends-on): Add configmake.
57666         (Makefile.am): Remove setting of LIBDIR through DEFS.
57667
57668 2006-08-29  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
57671         defined.
57672
57673 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57674
57675         * modules/fcntl: New file.
57676         * modules/chdir-safer (Depends-on): Add fcntl.
57677         * modules/fts: Likewise.
57678         * modules/mkdir-p: Likewise.
57679
57680         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
57681         This undoes the most recent change, since we're now addressing the
57682         problem in a different way.
57683
57684         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
57685         into output, since the output might be called Makefile.am even
57686         if $makefile_name is something different.
57687         (func_import): Use $makefile_am rather than
57688         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
57689         empty.
57690
57691         * modules/inttypes (Files): Add m4/inttypes-h.m4.
57692
57693 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
57696         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
57697         recent change to stdint.m4, since we're now addressing the problem in a
57698         different way.
57699
57700 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57701
57702         * m4/fcntl_h.m4: New file.
57703
57704 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
57705
57706         * lib/fcntl_.h: New file.
57707         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
57708         the fcntl module.
57709         * lib/dirchownmod.c: Likewise.
57710         * lib/fts.c: Likewise.
57711
57712         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
57713         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
57714         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
57715         just before including <inttypes.h>, to avoid circular inclusion.
57716
57717 2006-08-28  Jim Meyering  <jim@meyering.net>
57718
57719         * doc/visibility.texi: Actually read and correct the grammar of the
57720         sentence affected by yesterday's change.
57721
57722 2006-08-28  Eric Blake  <ebb9@byu.net>
57723
57724         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
57725         needs wrapper.
57726
57727 2006-08-28  Eric Blake  <ebb9@byu.net>
57728
57729         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
57730
57731 2006-08-28  Eric Blake  <ebb9@byu.net>
57732
57733         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
57734
57735 2006-08-28  Bruno Haible  <bruno@clisp.org>
57736
57737         * modules/c-strstr: New file, from GNU gettext.
57738         * MODULES.html.sh (String handling): Add c-strstr.
57739
57740 2006-08-28  Bruno Haible  <bruno@clisp.org>
57741
57742         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
57743         macros.
57744         Reported by Eric Blake.
57745
57746 2006-08-28  Bruno Haible  <bruno@clisp.org>
57747
57748         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
57749         (VASNPRINTF): Return a string of length > INT_MAX without failing.
57750         * lib/vasprintf.c: Include errno.h, limits.h.
57751         (EOVERFLOW): New fallback definition.
57752         (vasprintf): Test here whether the string length is > INT_MAX.
57753         * lib/vsnprintf.c: Include errno.h, limits.h.
57754         (EOVERFLOW): New fallback definition.
57755         (vsnprintf): Fix bug when generated string was too long for the buffer.
57756         Test here whether the string length is > INT_MAX.
57757
57758 2006-08-28  Bruno Haible  <bruno@clisp.org>
57759
57760         * lib/inttypes_.h (SCNX*): Remove definitions.
57761         Reported by Eric Blake.
57762
57763 2006-08-28  Bruno Haible  <bruno@clisp.org>
57764
57765         * lib/c-strstr.h: New file, from GNU gettext.
57766         * lib/c-strstr.c: New file, from GNU gettext.
57767
57768 2006-08-28  Bruno Haible  <bruno@clisp.org>
57769
57770         * gnulib-tool: Reorder some statements.
57771
57772 2006-08-28  Bruno Haible  <bruno@clisp.org>
57773
57774         * gnulib-tool: New option --makefile-name.
57775         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
57776         $makefile_name.
57777         (func_import): Write $makefile_name to the cache file, and read it from
57778         there unless explicitly specified. Use $makefile_name as file name
57779         instead of Makefile.am. Adjust the recommendations accordingly.
57780
57781 2006-08-28  Bruno Haible  <bruno@clisp.org>
57782
57783         * gnulib-tool (func_verify_module): Check against misapplying patch.
57784
57785 2006-08-28  Bruno Haible  <bruno@clisp.org>
57786
57787         * gnulib-tool (func_relativize, func_relconcat): New functions.
57788         Give an error if --local-dir is given with --update.
57789         Remove trailing slashes from $local_gnulib_dir.
57790         (func_import): Store the relativized $local_gnulib_dir in
57791         gnulib-cache.m4, and read it from there if not specified explicitly.
57792
57793 2006-08-28  Bruno Haible  <bruno@clisp.org>
57794
57795         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
57796         is the current directory. Respect also $local_gnulib_dir.
57797
57798 2006-08-28  Bruno Haible  <bruno@clisp.org>
57799             Simon Josefsson  <jas@extundo.com>
57800
57801         BeOS portability.
57802         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
57803
57804 2006-08-27  Jim Meyering  <jim@meyering.net>
57805
57806         * doc/visibility.texi: Remove duplicate word: "pointer".
57807
57808 2006-08-26  Bruno Haible  <bruno@clisp.org>
57809
57810         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
57811         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
57812         (Makefile.am): Create inttypes.h from inttypes_.h.
57813         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
57814
57815         * modules/imaxabs: New file.
57816
57817         * modules/imaxdiv: New file.
57818
57819 2006-08-26  Bruno Haible  <bruno@clisp.org>
57820
57821         * m4/inttypes.m4: New file.
57822         * m4/_inttypes_h.m4: Remove file.
57823         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
57824         PRI_MACROS_BROKEN.
57825         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
57826
57827         * m4/imaxabs.m4: New file.
57828
57829         * m4/imaxdiv.m4: New file.
57830
57831 2006-08-26  Bruno Haible  <bruno@clisp.org>
57832
57833         * lib/inttypes_.h: New file.
57834         * lib/inttypes.h: Remove file.
57835         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
57836
57837         * lib/imaxabs.c: New file.
57838
57839         * lib/imaxdiv.c: New file.
57840
57841 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57842
57843         New config-h module, so that "make" output needn't be cluttered
57844         by -DHAVE_CONFIG_H.
57845         * MODULES.html.sh (Support for building libraries and executables):
57846         Add config-h.
57847         * modules/config-h: New file.
57848         * gnulib-tool (nl, sed_transform_lib_file): New vars.
57849         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
57850         the config-h module is used.
57851
57852         New configmake module, so that "make" output needn't be cluttered
57853         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
57854         * MODULES.html.sh (Support for building libraries and executables):
57855         Add configmake.
57856         * modules/configmake: New file.
57857
57858 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57859
57860         * m4/config-h.m4: New file.
57861
57862 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57863
57864         * config/srclist.txt: Add elisp-comp.
57865
57866 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57867
57868         * MODULES.html.sh (Support for building libraries and executables):
57869         Add elisp-comp.
57870         * build-aux/elisp-comp: New file.
57871         * modules/elisp-comp: New file.
57872
57873 2006-08-24  Bruno Haible  <bruno@clisp.org>
57874
57875         * gnulib-tool (func_create_testdir): Use non-default values of
57876         sourcebase and m4base.
57877
57878 2006-08-24  Bruno Haible  <bruno@clisp.org>
57879
57880         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
57881         HTML structure.
57882
57883 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57884
57885         * modules/openat (Depends-on): Add lchown.
57886
57887 2006-08-23  Bruno Haible  <bruno@clisp.org>
57888
57889         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
57890         of gl_LOCK_EARLY instead of gl_LOCK.
57891
57892 2006-08-23  Bruno Haible  <bruno@clisp.org>
57893
57894         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
57895         on OSF/1 to no.
57896         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
57897
57898 2006-08-23  Bruno Haible  <bruno@clisp.org>
57899
57900         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
57901         as unusable.
57902
57903         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
57904         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
57905         (gl_LOCK): New macro.
57906
57907 2006-08-22  Simon Josefsson  <jas@extundo.com>
57908
57909         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
57910         to md5 module.
57911
57912 2006-08-22  Simon Josefsson  <jas@extundo.com>
57913
57914         * MODULES.html.sh: Add "Support for maintaining and release
57915         projects".
57916
57917         * build-aux/gnupload: New file, from coreutils.
57918
57919 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57920
57921         Avoid the need for AC_LIBSOURCES in m4 macros.
57922         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
57923         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
57924         * modules/check-version (EXTRA_DIST): Add check-version.h.
57925         * modules/crc (EXTRA_DIST): Add crc.h.
57926         * modules/des (EXTRA_DIST): Add des.h.
57927         * modules/gc (EXTRA_DIST): Add gc.h.
57928         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
57929         * modules/getline (EXTRA_DIST): Add getline.h.
57930         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
57931         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
57932         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
57933         * modules/md2 (EXTRA_DIST): Add md2.h.
57934         * modules/md4 (EXTRA_DIST): Add md4.h.
57935         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
57936         * modules/read-file (EXTRA_DIST): Add read-file.h.
57937         * modules/readline (EXTRA_DIST): Add readline.h.
57938         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
57939         rijndael-api-fst.h.
57940
57941 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57942
57943         * m4/rijndael.m4 (gl_ARCFOUR):
57944         * m4/arctwo.m4 (gl_ARCTWO):
57945         * m4/check-version.m4 (gl_CHECK_VERSION):
57946         * m4/crc.m4 (gl_CRC):
57947         * m4/des.m4 (gl_DES):
57948         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
57949         * m4/gc.m4 (gl_GC):
57950         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
57951         * m4/getline.m4 (gl_FUNC_GETLINE):
57952         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
57953         * m4/hmac-md5.m4 (gl_HMAC_MD5):
57954         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
57955         * m4/md2.m4 (gl_MD2):
57956         * m4/md4.m4 (gl_MD4):
57957         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
57958         * m4/read-file.m4 (gl_FUNC_READ_FILE):
57959         * m4/readline.m4 (gl_FUNC_READLINE):
57960         * m4/rijndael.m4 (gl_RIJNDAEL):
57961         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
57962         to get the necessary .h files and whatnot.
57963
57964 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
57965
57966         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
57967         gnulib rather than the other way around.
57968         * config/srclistvars.sh (COREUTILS): Remove.
57969
57970 2006-08-22  Jim Meyering  <jim@meyering.net>
57971
57972         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
57973
57974         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
57975
57976 2006-08-22  Eric Blake  <ebb9@byu.net>
57977
57978         * modules/regexprops-generic: New file.
57979         * MODULES.html.sh (Support for building documentation): List it.
57980
57981 2006-08-22  Eric Blake  <ebb9@byu.net>
57982
57983         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
57984         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
57985         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
57986         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
57987
57988 2006-08-22  Bruno Haible  <bruno@clisp.org>
57989
57990         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
57991         and lib_LTLIBRARIES like the other lib_* variables.
57992
57993 2006-08-22  Bruno Haible  <bruno@clisp.org>
57994
57995         * build-aux/x-to-1.in: New file, from GNU gettext.
57996
57997 2006-08-22  Bruno Haible  <bruno@clisp.org>
57998
57999         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58000         <utmpx.h> exists.
58001
58002 2006-08-22  Bruno Haible  <bruno@clisp.org>
58003
58004         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58005         <utmpx.h> exists.
58006
58007 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58008
58009         BeOS portability.
58010         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58011         exist.
58012         Problem reported by Bruno Haible.
58013
58014 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58015
58016         Avoid the need for AC_LIBSOURCES in m4 macros.
58017         * modules/acl (EXTRA_DIST): Add acl.h.
58018         * modules/argmatch (Files): Add m4/argmatch.m4.
58019         (configure.ac): Add gl_ARGMATCH.
58020         (EXTRA_DIST): Renamed from lib_SOURCES, for
58021         consistency with the other modules.  Remove argmatch.c.
58022         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58023         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58024         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58025         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58026         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58027         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58028         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58029         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58030         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58031         * modules/closeout (EXTRA_DIST): Add closeout.h.
58032         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58033         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58034         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58035         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58036         dirname.h; remove basename.c and stripslash.c.
58037         * modules/exclude (EXTRA_DIST): Add exclude.h.
58038         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58039         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58040         * modules/file-type (EXTRA_DIST): Add file-type.h.
58041         * modules/filemode (EXTRA_DIST): Add filemode.h.
58042         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58043         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58044         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58045         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58046         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58047         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58048         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58049         * modules/getdate (EXTRA_DIST): Add getdate.c.
58050         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58051         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58052         * modules/getpass (EXTRA_DIST): Add getpass.h.
58053         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58054         * modules/group-member (EXTRA_DIST): Add group-member.h.
58055         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58056         * modules/hash (EXTRA_DIST): Add hash.h.
58057         * modules/human (EXTRA_DIST): Add human.h.
58058         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58059         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58060         * modules/lchown (EXTRA_DIST): Add lchown.h.
58061         * modules/long-options (EXTRA_DIST): Add long-options.h.
58062         * modules/lstat (EXTRA_DIST): Add lstat.h.
58063         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58064         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58065         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58066         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58067         * modules/memxor (EXTRA_DIST): Add memxor.h.
58068         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58069         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58070         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58071         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58072         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58073         * modules/physmem (EXTRA_DIST): Add physmem.h.
58074         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58075         * modules/posixver (EXTRA_DIST): Add posixver.h.
58076         * modules/quote (EXTRA_DIST): Add quote.h.
58077         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58078         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58079         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58080         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58081         regex_internal.h regexec.c.
58082         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58083         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58084         * modules/same (EXTRA_DIST): Add same.h.
58085         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58086         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58087         * modules/savedir (EXTRA_DIST): Add savedir.h.
58088         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58089         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58090         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58091         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58092         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58093         * modules/strdup (EXTRA_DIST): Add strdup.h.
58094         * modules/strftime (EXTRA_DIST): Add strftime.h.
58095         * modules/strndup (EXTRA_DIST): Add strndup.h.
58096         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58097         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58098         * modules/time_r (EXTRA_DIST): Add time_r.h.
58099         * modules/timespec (EXTRA_DIST): Add timespec.h.
58100         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58101         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58102         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58103         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58104         * modules/userspec (EXTRA_DIST): Add userspec.h.
58105         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58106         * modules/utimens (EXTRA_DIST): Add utimens.h.
58107         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58108         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58109         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58110         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58111         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58112         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58113         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58114         * modules/yesno (EXTRA_DIST): Add yesno.h.
58115
58116 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58117
58118         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58119
58120         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58121         * m4/dev-ino.m4, same-inode.m4: Remove.
58122
58123         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58124         * m4/acl.m4 (AC_FUNC_ACL):
58125         * m4/backupfile.m4 (gl_BACKUPFILE):
58126         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58127         * m4/canon-host.m4 (gl_CANON_HOST):
58128         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58129         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58130         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58131         * m4/cloexec.m4 (gl_CLOEXEC):
58132         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58133         * m4/closeout.m4 (gl_CLOSEOUT):
58134         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58135         * m4/dirname.m4 (gl_DIRNAME):
58136         * m4/exclude.m4 (gl_EXCLUDE):
58137         * m4/exitfail.m4 (gl_EXITFAIL):
58138         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58139         * m4/file-type.m4 (gl_FILE_TYPE):
58140         * m4/filemode.m4 (gl_FILEMODE):
58141         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58142         * m4/fpending.m4 (gl_FUNC_FPENDING):
58143         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58144         * m4/fts.m4 (gl_FUNC_FTS):
58145         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58146         * m4/getdate.m4 (gl_GETDATE):
58147         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58148         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58149         * m4/getpass.m4 (gl_FUNC_GETPASS):
58150         * m4/gettime.m4 (gl_GETTIME):
58151         * m4/getugroups.m4 (gl_GETUGROUPS):
58152         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58153         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58154         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58155         * m4/hash.m4 (gl_HASH):
58156         * m4/idcache.m4 (gl_IDCACHE):
58157         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58158         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58159         * m4/long-options.m4 (gl_LONG_OPTIONS):
58160         * m4/lstat.m4 (gl_FUNC_LSTAT):
58161         * m4/md5.m4 (gl_MD5):
58162         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58163         * m4/memcoll.m4 (gl_MEMCOLL):
58164         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58165         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58166         * m4/memxor.m4 (gl_MEMXOR):
58167         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58168         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58169         * m4/modechange.m4 (gl_MODECHANGE):
58170         * m4/mountlist.m4 (gl_MOUNTLIST):
58171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58172         * m4/openat.m4 (gl_FUNC_OPENAT):
58173         * m4/pathmax.m4 (gl_PATHMAX):
58174         * m4/physmem.m4 (gl_PHYSMEM):
58175         * m4/posixtm.m4 (gl_POSIXTM):
58176         * m4/posixver.m4 (gl_POSIXVER):
58177         * m4/quote.m4 (gl_QUOTE):
58178         * m4/quotearg.m4 (gl_QUOTEARG):
58179         * m4/readtokens.m4 (gl_READTOKENS):
58180         * m4/readutmp.m4 (gl_READUTMP):
58181         * m4/regex.m4 (gl_REGEX):
58182         * m4/safe-read.m4 (gl_SAFE_READ):
58183         * m4/safe-write.m4 (gl_SAFE_WRITE):
58184         * m4/same.m4 (gl_SAME):
58185         * m4/save-cwd.m4 (gl_SAVE_CWD):
58186         * m4/savedir.m4 (gl_SAVEDIR):
58187         * m4/settime.m4 (gl_SETTIME):
58188         * m4/sha1.m4 (gl_SHA1):
58189         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58190         * m4/stat-macros.m4 (gl_STAT_MACROS):
58191         * m4/stat-time.m4 (gl_STAT_TIME):
58192         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58193         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58194         * m4/strdup.m4 (gl_FUNC_STRDUP):
58195         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58196         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58197         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58198         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58199         * m4/time_r.m4 (gl_TIME_R):
58200         * m4/timespec.m4 (gl_TIMESPEC):
58201         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58202         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58203         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58204         * m4/userspec.m4 (gl_USERSPEC):
58205         * m4/utimecmp.m4 (gl_UTIMECMP):
58206         * m4/utimens.m4 (gl_UTIMENS):
58207         * m4/xalloc.m4 (gl_XALLOC):
58208         * m4/xgetcwd.m4 (gl_XGETCWD):
58209         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
58210         * m4/xreadlink.m4 (gl_XREADLINK):
58211         * m4/xstrtod.m4 (gl_XSTRTOD):
58212         * m4/yesno.m4 (gl_YESNO):
58213         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58214         to get the necessary .h files and whatnot.
58215
58216 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
58217             Bruno Haible  <bruno@clisp.org>
58218
58219         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
58220         /bin/sh understanding of '!' conditional negation.
58221
58222 2006-08-21  Jim Meyering  <jim@meyering.net>
58223
58224         * modules/openat (Depends-on): Really alphabetize.
58225
58226         * modules/acl (Depends-on): Add error and quote.
58227
58228         * check-module (find_included_lib_files): Add at-func.c to the
58229         ok-to-include-more-than-once white list.
58230
58231         * modules/openat (Depends-on): Add lstat.  Alphabetize.
58232
58233 2006-08-21  Bruno Haible  <bruno@clisp.org>
58234
58235         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58236         Emit a pkgdata_DATA variable only if some snippets add contents to it.
58237         Reported by Martin Lambers <marlam@marlam.de>.
58238
58239 2006-08-21  Bruno Haible  <bruno@clisp.org>
58240
58241         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
58242         specify an installation location, don't emit a noinst_LIBRARIES or
58243         noinst_LTLIBRARIES assignment.
58244
58245 2006-08-21  Bruno Haible  <bruno@clisp.org>
58246
58247         BeOS portability.
58248         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
58249         BeOS has mbrtowc() but no <wctype.h>.
58250
58251 2006-08-21  Bruno Haible  <bruno@clisp.org>
58252
58253         BeOS portability.
58254         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
58255         exist.
58256
58257 2006-08-21  Bruno Haible  <bruno@clisp.org>
58258
58259         BeOS portability.
58260         * lib/mbchar.h: Include <wctype.h> only if it exists.
58261
58262 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58263
58264         Remove files that are no longer needed by their respective modules.
58265         * m4/obstack.m4: Remove.
58266         * m4/strerror_r.m4: Remove.
58267         * m4/uint32_t.m4: Remove.
58268         * m4/uintptr_t.m4: Remove.
58269         * m4/ullong_max.m4: Remove.
58270         * m4/xstrtoimax.m4: Remove.
58271         * m4/xstrtoumax.m4: Remove.
58272
58273         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
58274         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
58275         dependencies now capture this.
58276
58277         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
58278         Do not use AC_LIBSOURCES, since gnulib modules now do this.
58279         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
58280         * m4/human.m4 (gl_HUMAN): Likewise.
58281         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
58282         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
58283
58284         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
58285
58286         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
58287         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
58288         stdint.
58289         * m4/human.m4 (gl_HUMAN): Likewise.
58290         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
58291         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
58292         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58293         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58294         * m4/xstrtol (gl_XSTRTOL): Likewise.
58295
58296         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
58297         AC_TYPE_LONG_LONG_INT.
58298         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
58299         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
58300         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
58301         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
58302
58303         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
58304         on stdbool.
58305
58306         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
58307         (gl_PREREQ_XSTRTOUL): Remove.
58308
58309         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
58310
58311         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
58312         mode.
58313
58314 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58315
58316         Add and change modules to make it easier for coreutils to use
58317         gnulib-tool.
58318         * modules/backupfile (Files): Remove m4/d-ino.m4.
58319         (Depends-on): Add d-ino.
58320         * modules/cycle-check (Depends-on): Add stdint.
58321         (lib_SOURCES): Add cycle-check.h.
58322         * modules/d-ino: New module.
58323         * modules/d-type: New module.
58324         * modules/error (Files): Remove m4/strerror_r.m4.
58325         * modules/filemode (Files): Add m4/st_dm_mode.m4.
58326         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58327         m4/inttypes_h.m4, m4/uintmax_t.m4.
58328         (Depends-on): Add stdint.
58329         (lib_SOURCES): Add fsusage.h.
58330         * modules/getcwd (Files): Remove d-ino.m4.
58331         (Depends-on): Add d-ino.
58332         * modules/getndelim2 (Depends-on): Add stdint.
58333         * modules/glob (Files): Remove m4/d-type.m4.
58334         (Depends-on): Add d-type.
58335         * modules/host-os: New module.
58336         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
58337         m4/inttypes_h.m4, m4/uintmax_t.m4.
58338         * Depends-on: Add stdint.
58339         (lib_SOURCES): Add human.h.
58340         * modules/inttostr (Files): Remove m4/intmax_t.m4,
58341         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
58342         m4/uintmax_t.m4, m4/ulonglong.m4.
58343         (Depends-on): Add stdint.
58344         (EXTRA_DIST): Add inttostr.h.
58345         * modules/lchmod: New module.
58346         * modules/link-follow: New module.
58347         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
58348         (Depends-on): Add lchmod.
58349         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
58350         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
58351         (Depends-on): Add stdint.
58352         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
58353         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
58354         (Depends-on): Add stdint.
58355         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
58356         * modules/perl: New module.
58357         * modules/regex (Depends-on): Add stdint.
58358         * modules/rmdir-errno: New module.
58359         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58360         m4/intmax_t.m4.
58361         (Depends-on): Add stdint.
58362         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
58363         m4/uintmax_t.m4.
58364         (Depends-on): Add stdint.
58365         * modules/unlink-busy: New module.
58366         * modules/utimecmp (Depends-on): Add stdint.
58367         * modules/uptime: New module.
58368         * modules/winsz-ioctl: New module.
58369         * modules/winsz-termios: New module.
58370         * modules/xnanosleep (Depends-on): Add nanosleep.
58371         * modules/ullong_max: Remove.
58372         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
58373         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
58374         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
58375         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
58376         (Depends-on): Add inttypes.
58377         (lib_SOURCES): Add xstrtol.h.
58378         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
58379         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
58380         * MODULES.html.sh: Move 'assert' into the assert section.
58381         Move 'dummy' into the linking section.
58382         Remove ullong_max.
58383         Add section for compatibility checks for POSIX:2001 functions,
58384         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
58385         winsz-ioctl, and winsz-termios into it.
58386         Add lchmod.
58387         Add top-level Misc section and put host-os, perl, and uptime
58388         into it.
58389
58390 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58391
58392         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
58393         now assume the stdint module.  Do not include inttypes.h.
58394         * lib/fsusage.h: Likewise.
58395         * lib/getndelim2.c: Likewise.
58396         * lib/human.h: Likewise.
58397         * lib/inttostr.h: Likewise.
58398         * lib/obstack.c: Likewise.
58399         * lib/regex_internal.h: Likewise.
58400         * lib/tempname.c: Likewise.
58401         * lib/utimecmp.c: Likewise.
58402         * lib/xstrtol.h: Likewise.
58403
58404         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
58405
58406         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
58407         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
58408         * lib/xtime.h: Likewise.
58409
58410 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         * modules/openat (Files): Add lib/fchmodat.c.
58413         Fixes problem reported by Jay Youngman.
58414
58415 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58416
58417         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
58418         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
58419
58420 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
58421             Bruno Haible  <bruno@clisp.org>
58422
58423         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
58424         and is a script that invokes bison. Tighten the code. Add comments.
58425
58426 2006-08-18  Jim Meyering  <jim@meyering.net>
58427
58428         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
58429         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
58430         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
58431         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
58432
58433 2006-08-18  Bruno Haible  <bruno@clisp.org>
58434
58435         * modules/bison-i18n: New file.
58436         * MODULES.html.sh (Internationalization functions): Add it.
58437
58438 2006-08-18  Bruno Haible  <bruno@clisp.org>
58439
58440         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
58441         sys/statvfs.h. When getmntinfo was found, check its declaration and
58442         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
58443
58444 2006-08-18  Bruno Haible  <bruno@clisp.org>
58445
58446         * m4/bison-i18n.m4: New file, from bison.
58447
58448 2006-08-18  Bruno Haible  <bruno@clisp.org>
58449
58450         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
58451         (ME_DUMMY): Treat "kernfs" as a dummy.
58452         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
58453
58454 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58455
58456         Update from coreutils.
58457
58458         2006-08-15  Jim Meyering  <jim@meyering.net>
58459
58460         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
58461
58462         2006-01-17  Jim Meyering  <jim@meyering.net>
58463
58464         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
58465
58466         2006-01-11  Jim Meyering  <jim@meyering.net>
58467
58468         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
58469         Check for the lchmod function.
58470
58471 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58472
58473         Update from coreutils.
58474
58475         * lib/__fpending.h: Add copyright notice.
58476         * lib/fprintftime.h: Likewise.
58477         * lib/savedir.c: Use (C) in copyright notice.
58478         * lib/savedir.h: Likewise.
58479
58480         2006-08-15  Jim Meyering  <jim@meyering.net>
58481
58482         * lib/at-func.c: New file, with the logic of all emulated at-functions.
58483         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
58484         in support of the EXPECTED_ERRNO macro.
58485         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
58486         definitions.  Instead, define the appropriate symbols and include
58487         "at-func.c".
58488         * lib/mkdirat.c (mkdirat): Likewise.
58489         * lib/fchmodat.c (fchmodat): Likewise.
58490         (ENOSYS): Remove definition.
58491         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
58492         it.  Don't include "unistd--.h" -- it wasn't ever used.
58493
58494         2006-01-17  Jim Meyering  <jim@meyering.net>
58495
58496         Rewrite fts.c not to change the current working directory,
58497         by using openat, fstatat, fdopendir, etc..
58498
58499         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
58500         (HAVE_OPENAT_SUPPORT): Define.
58501         [_LIBC] (fchdir): Don't undef or define; no longer used.
58502         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
58503         Now, this `function' always succeeds, and consumes its file descriptor
58504         parameter -- so callers must not close such FDs.  Update callers.
58505         (diropen_fd, opendirat, cwd_advance_fd): New functions.
58506         (diropen): Add parameter, SP.  Adjust all callers.
58507         Implement using diropen_fd, rather than open.
58508         (fts_open): Initialize new member, fts_cwd_fd.
58509         Remove fts_rft-setting code.
58510         (fts_close): Close fts_cwd_fd, if necessary.
58511         (__opendir2): Define in terms of opendir or opendirat,
58512         depending on whether the FST_NOCHDIR flag is set.
58513         (fts_build): Since fts_safe_changedir consumes its FD, and since
58514         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
58515         and close the dup'd file descriptor upon failure.
58516         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
58517         (fts_safe_changedir): Tweak semantics to reflect that this function
58518         now calls cwd_advance_fd and hence consumes its FD argument.
58519         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
58520         [struct FTS] (fts_rft): Remove now-unused member.
58521         [struct FTS] (fts_cycle.state): Improve comment.
58522
58523         * lib/openat.c (openat_needs_fchdir): New function.
58524         * lib/openat.h (openat_needs_fchdir): Declare it.
58525
58526 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58527
58528         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
58529         Problem and fix reported by Pádraig Brady in
58530         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
58531
58532 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58533
58534         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
58535
58536 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58537
58538         * lib/memcoll.c (memcoll): Optimize for the common case where the
58539         arguments are bytewise equal.
58540
58541 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58542
58543         * doc/regexprops-generic.texi: Add a copyright notice.
58544
58545 2006-08-15  Bruno Haible  <bruno@clisp.org>
58546
58547         * modules/tmpdir (License): Change to LGPL.
58548
58549 2006-08-15  Bruno Haible  <bruno@clisp.org>
58550
58551         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
58552         module.
58553
58554 2006-08-14  Simon Josefsson  <jas@extundo.com>
58555
58556         * config/srclist.txt: Add gnupload.
58557
58558 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58559
58560         Change copyright notice from LGPL 2 to GPL 2, since that's the
58561         standard form used in the gnulib repository.
58562         * tests/test-lock.c: Likewise.
58563         * tests/test-stdint.c: Likewise.
58564         * tests/test-tls.c: Likewise.
58565
58566         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
58567         prelude-manager.  User shorter URLs for GNU projects, without '?'.
58568         Add copyright notice.
58569
58570         * check-module: Add copyright notice.  Output a copyright
58571         notice if "--version" is specified.
58572         * modules/COPYING: New file.
58573         * tests/test-getaddrinfo.c: Add copyright notice.
58574         * tests/test-verify.c: Likewise.
58575
58576 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58577
58578         Change copyright notice from LGPL 2 to GPL 2, since that's the
58579         standard form used in the gnulib repository.
58580         * lib/lock.c: LGPL -> GPL.
58581         * lib/lock.h: Likewise.
58582         * lib/strnlen1.c: Likewise.
58583         * lib/strnlen1.h: Likewise.
58584         * lib/tls.c: Likewise.
58585         * lib/tls.h: Likewise.
58586         * lib/tmpdir.c: Likewise.
58587
58588         * lib/TODO: Remove; this belongs only in coreutils.
58589
58590 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58591
58592         Add copyright notices to long-enough files that lack them, since
58593         otherwise the files aren't clearly free.  Use the same notice that
58594         getdate.texi already uses.
58595         * doc/alloca-opt.texi: Add copyright notice.
58596         * doc/alloca.texi: Likewise.
58597         * doc/ctime.texi: Likewise.
58598         * doc/functions.texi: Likewise.
58599         * doc/gcd.texi: Likewise.
58600         * doc/gnulib-tool.texi: Likewise.
58601         * doc/inet_ntoa.texi: Likewise.
58602         * doc/visibility.texi: Likewise.
58603
58604         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
58605         * doc/quote.texi: Add copyright notice.
58606
58607         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
58608         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
58609         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
58610         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
58611         is now obsolete, and give a pointer to the Sun list.
58612         Add copyright notice.
58613
58614 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58615
58616         * config/srclistvars.sh: Add copyright notice.
58617
58618 2006-08-14  Eric Blake  <ebb9@byu.net>
58619
58620         Import the following change from libc:
58621
58622         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
58623
58624         Upstream bug 2997.
58625         * lib/misc/error.c: Add space between program name and message if file
58626         name is missing.
58627
58628 2006-08-12  Karl Berry  <karl@gnu.org>
58629
58630         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
58631         remove, these originate in gnulib now.
58632
58633 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58634
58635         * doc/Makefile (standards.info standards.html standards.dvi):
58636         Also depend on make-stds.texi.
58637
58638 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
58641         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
58642
58643         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
58644         in wchar_t.  Problem reported by Eric Blake.
58645
58646         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
58647         LEN is smaller than SIZE.  Suggested by Bruno Haible.
58648         Also, help the compiler to keep LEN in a register.
58649
58650 2006-08-11  Eric Blake  <ebb9@byu.net>
58651
58652         * users.txt: Sort.  Add tar.
58653
58654 2006-08-11  Bruno Haible  <bruno@clisp.org>
58655
58656         * users.txt: New file.
58657
58658 2006-08-11  Bruno Haible  <bruno@clisp.org>
58659
58660         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
58661         before <wchar.h>. Needed for OSF/1 and BSD/OS.
58662
58663 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58664
58665         * modules/snprintf (Depends-on): Remove minmax.
58666         (Maintainer): Add self and Bruno.
58667
58668 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58669
58670         * lib/.cppi-disable: Add snprintf.h, socket_.h.
58671         * lib/snprintf.c: Include <errno.h> and <limits.h>.
58672         (EOVERFLOW): Define if the system does not.
58673         Do not include "minmax.h"; it wasn't used.
58674         (snprintf): Don't assume size_t promotes to an unsigned type.
58675         Fix bug when generated string was too long for the buffer: the
58676         buffer's contents are supposed to be the initial prefix of the
58677         output.  Don't assume vasnprintf returns EOVERFLOW if the size
58678         exceeds INT_MAX; do the check ourselves.
58679
58680         Import the following changes from libc:
58681
58682         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
58683
58684         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
58685         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
58686         set wc to the byte which couldn't be converted.
58687         (re_string_reconstruct): Don't clear valid_raw_len before calling
58688         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
58689         tip_context using re_string_context_at.
58690
58691         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
58692
58693         * lib/posix/regex.h: g++ still cannot handled [restrict].
58694
58695         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
58696
58697         * lib/posix/regex.h: Remove special handling for VMS.
58698
58699 2006-08-10  Jim Meyering  <jim@meyering.net>
58700
58701         * modules/same-inode: New module.
58702         * modules/dev-ino: New module.
58703         * modules/cycle-check: Depend on these modules, rather than simply
58704         including their .h files.
58705         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
58706         required via m4/cycle-check.m4.
58707         * modules/same: Depend on new same-inode module, rather than
58708         including same-inode.h.
58709         * modules/chdir-safer: New file.
58710
58711         * modules/chown (Depends-on): Add stat-macros.
58712
58713 2006-08-10  Jim Meyering  <jim@meyering.net>
58714
58715         * m4/cycle-check.m4: New file.
58716         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
58717         * m4/dev-ino.m4, m4/same-inode.m4: New files.
58718
58719 2006-08-10  Eric Blake  <ebb9@byu.net>
58720
58721         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
58722         in from original proposal.
58723
58724 2006-08-10  Eric Blake  <ebb9@byu.net>
58725         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58726
58727         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
58728         namespace.
58729
58730 2006-08-10  Bruno Haible  <bruno@clisp.org>
58731
58732         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
58733         as well.
58734
58735 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         Sync from coreutils.
58738
58739         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
58740
58741         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
58742         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
58743
58744 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58745
58746         * modules/restrict: Remove; no longer needed now that we assume
58747         Autoconf 2.59 or later.
58748         * MODULES.html.sh: Remove 'restrict'.
58749         * modules/argp (Depends-on): Remove 'restrict'.
58750         * modules/base64 (Depends-on): Likewise.
58751         * modules/gc (Depends-on): Likewise.
58752         * modules/getaddrinfo (Depends-on): Likewise.
58753         * modules/glob (Depends-on): Likewise.
58754         * modules/inet_ntop (Depends-on): Likewise.
58755         * modules/inet_pton (Depends-on): Likewise.
58756         * modules/memxor (Depends-on): Likewise.
58757         * modules/regex (Depends-on): Likewise.
58758         * modules/strtok_r (Depends-on): Likewise.
58759         * modules/time_r (Depends-on): Likewise.
58760
58761 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58762
58763         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
58764         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
58765         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58766         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
58767         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58768         * m4/memxor.m4 (gl_MEMXOR): Likewise.
58769         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
58770         gl_C_RESTRICT replaced by AC_C_RESTRICT.
58771
58772         Merge from coreutils.
58773         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
58774         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
58775         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58776         * m4/time_r.m4 (gl_TIME_R): Likewise.
58777
58778 2006-08-09  Karl Berry  <karl@gnu.org>
58779
58780         * config/srclist.txt: no more gettext-tools, per Bruno.
58781
58782 2006-08-08  Eric Blake  <ebb9@byu.net>
58783
58784         * modules/verror: New module.
58785         * MODULES.html.sh: Document it.
58786
58787 2006-08-08  Eric Blake  <ebb9@byu.net>
58788
58789         * lib/verror.h, lib/verror.c: New files.
58790
58791 2006-08-08  Eric Blake  <ebb9@byu.net>
58792
58793         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
58794         verror_at_line output complies with GNU Coding Standards even when
58795         file is NULL.
58796
58797 2006-08-07  Bruno Haible  <bruno@clisp.org>
58798
58799         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
58800         versions of AIX.
58801         Reported by Ralf Wildenhues.
58802
58803 2006-08-07  Bruno Haible  <bruno@clisp.org>
58804
58805         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
58806         in an AC_DEFUN. Needed so that the autoconf snippets can use
58807         AC_REQUIRE.
58808
58809 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58810
58811         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58812         Initialize pkgdata_DATA.
58813         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
58814         overriding it.
58815
58816 2006-08-06  Eric Blake  <ebb9@byu.net>
58817
58818         * lib/error.h: Fold in some upstream changes from glibc.
58819         * lib/error.c: Likewise.
58820
58821 2006-08-04  Bruno Haible  <bruno@clisp.org>
58822
58823         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58824         Make the mostlyclean-local rule depend on mostlyclean-generic.
58825         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
58826
58827 2006-07-31  Bruno Haible  <bruno@clisp.org>
58828
58829         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
58830         <stdlib.h>, <string.h>.
58831
58832 2006-07-30  Bruno Haible  <bruno@clisp.org>
58833
58834         * modules/readlink (License): Change to LGPL.
58835
58836 2006-07-30  Bruno Haible  <bruno@clisp.org>
58837
58838         * modules/javaversion (Makefile.am): Distribute javaversion.java and
58839         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
58840         set PKGDATADIR to point to it.
58841
58842 2006-07-30  Bruno Haible  <bruno@clisp.org>
58843
58844         * modules/csharpexec (configure.ac): Comment out macro invocation.
58845         * modules/javaexec (configure.ac): Likewise.
58846         * modules/javacomp-script (configure.ac): Likewise.
58847
58848         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
58849
58850 2006-07-30  Bruno Haible  <bruno@clisp.org>
58851
58852         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
58853         linked-list.
58854
58855 2006-07-30  Bruno Haible  <bruno@clisp.org>
58856
58857         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
58858
58859 2006-07-30  Bruno Haible  <bruno@clisp.org>
58860
58861         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58862         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
58863         get removed.
58864
58865 2006-07-29  Bruno Haible  <bruno@clisp.org>
58866
58867         Make it possible for gnulib-tool to work with locally modified or
58868         augmented gnulib repositories.
58869         * gnulib-tool (func_usage): Document --local-dir option.
58870         (local_gnulib_dir): New variable.
58871         Handle --local-dir option.
58872         (func_lookup_file): New function.
58873         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
58874         (func_get_description, func_get_filelist, func_get_description,
58875         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
58876         func_get_automake_snippet, func_get_include_directive,
58877         func_get_license, func_get_maintainer): Use func_lookup_file.
58878         (func_import, func_create_testdir): Use func_lookup_file.
58879
58880 2006-07-29  Bruno Haible  <bruno@clisp.org>
58881
58882         * modules/setenv (Depends-on): Add unistd.
58883
58884 2006-07-29  Bruno Haible  <bruno@clisp.org>
58885
58886         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
58887
58888 2006-07-29  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
58891
58892 2006-07-29  Bruno Haible  <bruno@clisp.org>
58893
58894         * gnulib-tool (import, update): If there is no Makefile.am, look at
58895         aclocal.m4, instead of bailing out.
58896
58897 2006-07-29  Bruno Haible  <bruno@clisp.org>
58898
58899         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
58900         Categorize the options by when they are useful.
58901
58902 2006-07-29  Bruno Haible  <bruno@clisp.org>
58903
58904         * gnulib-tool (func_usage): Document option --no-libtool.
58905         Handle option --no-libtool.
58906         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
58907         for changed semantics of $libtool variable.
58908         (func_import): Likewise. If libtool is not used, show this through
58909         an option --no-libtool.
58910         (func_create_testdir): Update.
58911
58912 2006-07-29  Bruno Haible  <bruno@clisp.org>
58913
58914         * gnulib-tool (func_import): Extend error message about missing
58915         --doc-base.
58916
58917 2006-07-29  Bruno Haible  <bruno@clisp.org>
58918
58919         * gnulib-tool (func_import): Don't create the $docbase directory if
58920         there is no file to store there.
58921
58922 2006-07-29  Bruno Haible  <bruno@clisp.org>
58923
58924         * gnulib-tool (autoconf_minversion): If a --dir option is given and
58925         relevant, look for configure.ac there, not in the current directory.
58926         Also use a simple search for AC_PREREQ, not "autoconf --trace".
58927
58928 2006-07-29  Bruno Haible  <bruno@clisp.org>
58929
58930         * gnulib-tool (SORT): New variable.
58931         (func_usage): Undocument --assume-autoconf option.
58932         Remove --assume-autoconf option handling.
58933         (autoconf_minversion): Determine from the contents of configure.ac.
58934         (func_import): Remove autoconf_minversion handling.
58935         Suggested by Eric Blake.
58936
58937 2006-07-29  Bruno Haible  <bruno@clisp.org>
58938
58939         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
58940
58941 2006-07-29  Bruno Haible  <bruno@clisp.org>
58942
58943         * config/srclist.txt (*setenv.[ch]): Remove rules.
58944
58945 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58946
58947         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
58948
58949 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58950
58951         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
58952         arpa/inet.h.
58953
58954 2006-07-28  Simon Josefsson  <jas@extundo.com>
58955
58956         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
58957         * modules/inet_pton (Depends-on): Likewise.
58958
58959 2006-07-28  Simon Josefsson  <jas@extundo.com>
58960
58961         * m4/netinet_in_h.m4: New file.
58962
58963 2006-07-28  Simon Josefsson  <jas@extundo.com>
58964
58965         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
58966         #include's.
58967
58968 2006-07-28  Simon Josefsson  <jas@extundo.com>
58969
58970         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
58971         #include's.
58972
58973 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
58974
58975         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
58976         setgid on directories only if they set these bits.
58977         * lib/modechange.h: Remove obsolete comment about masks.
58978
58979 2006-07-28  Eric Blake  <ebb9@byu.net>
58980
58981         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
58982         macro expansion.
58983
58984 2006-07-28  Bruno Haible  <bruno@clisp.org>
58985
58986         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
58987
58988 2006-07-28  Bruno Haible  <bruno@clisp.org>
58989
58990         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
58991
58992 2006-07-28  Bruno Haible  <bruno@clisp.org>
58993
58994         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58995         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58996         Define fallbacks.
58997         Avoids link error on FreeBSD 4.x.
58998         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58999
59000         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59001         encoding.
59002         * lib/mbswidth.c (iswcntrl): Likewise.
59003
59004 2006-07-27  Bruno Haible  <bruno@clisp.org>
59005
59006         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59007         test.
59008
59009 2006-07-27  Bruno Haible  <bruno@clisp.org>
59010
59011         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59012         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59013         defined.
59014
59015 2006-07-26  Eric Blake  <ebb9@byu.net>
59016
59017         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59018
59019 2006-07-26  Eric Blake  <ebb9@byu.net>
59020
59021         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59022         like mingw that lack mkstemp.
59023         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59024         avoid compilation warning on mingw.
59025
59026 2006-07-26  Bruno Haible  <bruno@clisp.org>
59027
59028         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59029         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59030         INT_FAST*_MIN, INTPTR_MIN.
59031
59032 2006-07-25  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/version-etc (Depends-on): Add stdarg.
59035
59036 2006-07-25  Bruno Haible  <bruno@clisp.org>
59037
59038         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59039         complex commands.
59040
59041 2006-07-25  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59044         defined in <stdarg.h> or config.h.
59045
59046 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59049         (gl_STDIO_SAFER): Remove.
59050
59051 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59052
59053         * MODULES.html.sh (File stream based Input/Output):
59054         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59055         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59056         * modules/fopen-safer, modules/tmpfile-safer: New files.
59057         * modules/stdio-safer: Remove.
59058
59059 2006-07-24  Bruno Haible  <bruno@clisp.org>
59060
59061         * modules/tmpdir: New file.
59062         * MODULES.html.sh (File system functions): Add it.
59063
59064 2006-07-24  Bruno Haible  <bruno@clisp.org>
59065
59066         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59067         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59068
59069 2006-07-24  Bruno Haible  <bruno@clisp.org>
59070
59071         * modules/clean-temp: New file.
59072
59073 2006-07-24  Bruno Haible  <bruno@clisp.org>
59074
59075         * m4/tmpdir.m4: New file, from GNU gettext.
59076
59077 2006-07-24  Bruno Haible  <bruno@clisp.org>
59078
59079         * lib/tmpdir.h: New file, from GNU gettext.
59080         * lib/tmpdir.c: New file, from GNU gettext.
59081
59082 2006-07-24  Bruno Haible  <bruno@clisp.org>
59083
59084         * lib/clean-temp.h: New file, from GNU gettext.
59085         * lib/clean-temp.c: New file, from GNU gettext.
59086
59087 2006-07-23  Eric Blake  <ebb9@byu.net>
59088
59089         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59090         (Depends-on): Add binary-io.
59091
59092 2006-07-23  Eric Blake  <ebb9@byu.net>
59093
59094         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59095
59096 2006-07-23  Eric Blake  <ebb9@byu.net>
59097
59098         * lib/tmpfile-safer.c: New file.
59099         * lib/stdio-safer.h (fopen_safer): Add prototype.
59100         * lib/stdio--.h (tmpfile): Make safer.
59101
59102 2006-07-23  Bruno Haible  <bruno@clisp.org>
59103
59104         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59105         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59106         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59107         gl_linked_remove_at): Use it.
59108
59109 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59110         and Simon Josefsson <jas@extundo.com>
59111
59112         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59113
59114         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59115
59116 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59117
59118         * modules/close-stream: New file.
59119         * modules/closeout (Description): Make it clear that it exits
59120         with a diagnostic on error.
59121         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59122         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59123
59124 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59125
59126         * m4/close-stream.m4: New file.
59127
59128 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59129
59130         * lib/close-stream.c, lib/close-stream.h: New files.
59131
59132 2006-07-22  Bruno Haible  <bruno@clisp.org>
59133
59134         Merge from GNU gettext 0.15.
59135
59136         2006-05-01  Bruno Haible  <bruno@clisp.org>
59137
59138                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59139
59140         2006-07-22  Bruno Haible  <bruno@clisp.org>
59141
59142                 * modules/javaversion: New file.
59143                 * MODULES.html.sh (Java): Add javaversion.
59144
59145         2006-03-12  Bruno Haible  <bruno@clisp.org>
59146
59147                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59148
59149         2005-12-04  Bruno Haible  <bruno@clisp.org>
59150
59151                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59152                 (untested).
59153
59154         2006-06-21  Bruno Haible  <bruno@clisp.org>
59155
59156                 Avoid warnings from recent versions of mcs.
59157                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59158                 -o, -L, -r any more. Use options documented since mcs-1.0
59159                 instead. Similarly for -g.
59160
59161         2005-12-04  Bruno Haible  <bruno@clisp.org>
59162
59163                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59164                 .resources, not .resource.
59165
59166         2005-07-09  Bruno Haible  <bruno@clisp.org>
59167
59168                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59169                 add a .dll suffix.
59170                 Reported by Mark Junker <mjscod@gmx.de>.
59171
59172         2006-07-22  Bruno Haible  <bruno@clisp.org>
59173
59174                 * modules/gettext: Upgrade to gettext-0.15.
59175                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59176                 m4/visibility.m4.
59177                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59178
59179 2006-07-22  Bruno Haible  <bruno@clisp.org>
59180
59181         Merge from GNU gettext 0.15.
59182
59183         2006-03-25  Bruno Haible  <bruno@clisp.org>
59184
59185                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59186
59187         2006-07-21  Bruno Haible  <bruno@clisp.org>
59188
59189                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59190                 "1.1".
59191
59192         2006-05-09  Bruno Haible  <bruno@clisp.org>
59193
59194                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59195                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59196                 for the conftestver execution.
59197
59198         2006-05-01  Bruno Haible  <bruno@clisp.org>
59199
59200                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59201                 optional target-version argument. Verify that the compiler
59202                 groks source of the specified source-version, or add -source
59203                 option as necessary. Verify that the compiler produces
59204                 bytecode in the specified target-version, or add -target and
59205                 -source options as necessary. Make the result of the test
59206                 available as variable CONF_JAVAC. Also log error output in
59207                 config.log.
59208
59209         2006-03-11  Bruno Haible  <bruno@clisp.org>
59210
59211                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
59212
59213         2006-05-09  Bruno Haible  <bruno@clisp.org>
59214
59215                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
59216                 CLASSPATH_SEPARATOR to a semicolon.
59217
59218         2006-03-12  Bruno Haible  <bruno@clisp.org>
59219
59220                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
59221                 available as variable CONF_JAVA, for subsequent autoconf
59222                 tests. Also log error output in config.log.
59223
59224         2006-07-19  Bruno Haible  <bruno@clisp.org>
59225
59226                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
59227                 that getline works on glibc2 systems. Needed to avoid trouble
59228                 in relocatable.c.
59229                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
59230
59231         2005-12-04  Bruno Haible  <bruno@clisp.org>
59232
59233                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
59234                 launcher (untested).
59235
59236         2005-12-04  Bruno Haible  <bruno@clisp.org>
59237
59238                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
59239
59240         2006-07-22  Bruno Haible  <bruno@clisp.org>
59241
59242                 * gettext.m4: Update from GNU gettext-0.15.
59243                 * nls.m4: Likewise.
59244                 * po.m4: Likewise.
59245                 * inttypes-pri.m4: Likewise.
59246                 * inttypes-h.m4: Renamed from inttypes.m4.
59247                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
59248
59249 2006-07-22  Bruno Haible  <bruno@clisp.org>
59250
59251         Merge from GNU gettext 0.15.
59252
59253         2005-07-05  Bruno Haible  <bruno@clisp.org>
59254
59255                 * printf-args.c (printf_fetchargs): Work around broken
59256                 definition of wint_t on mingw.
59257
59258         2005-02-12  Bruno Haible  <bruno@clisp.org>
59259
59260                 * xallocsa.h: Add extern "C" for C++.
59261
59262         2006-05-17  Bruno Haible  <bruno@clisp.org>
59263
59264                 Cygwin portability.
59265                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
59266
59267         2006-04-30  Bruno Haible  <bruno@clisp.org>
59268
59269                 * progreloc.c: Include <mach-o/dyld.h> if available.
59270                 (find_executable): Use _NSGetExecutablePath when possible.
59271
59272         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59273
59274                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
59275                 function.
59276
59277         2005-12-29  Bruno Haible  <bruno@clisp.org>
59278
59279                 * progreloc.c (set_program_name_and_installdir): Fix
59280                 compilation error.
59281
59282         2005-12-04  Bruno Haible  <bruno@clisp.org>
59283
59284                 Cygwin portability.
59285                 * progreloc.c: Include <windows.h> also on Cygwin.
59286                 (find_executable): Add support for Cygwin.
59287                 (set_program_name_and_installdir): Handle also platforms with
59288                 nonempty EXEEXT.
59289
59290         2006-07-11  Bruno Haible  <bruno@clisp.org>
59291
59292                 * javacomp.c: Fix a comment.
59293                 Reported by Jim Meyering.
59294
59295         2006-04-30  Bruno Haible  <bruno@clisp.org>
59296
59297                 * javacomp.h (compile_java_class): Add source_version,
59298                 target_version arguments.
59299                 * javacomp.c: Rewritten to choose only a compiler that
59300                 respects the specified source_version and target_version.
59301
59302         2006-06-27  Bruno Haible  <bruno@clisp.org>
59303
59304                 Assume correct S_ISDIR macro.
59305                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
59306
59307         2006-07-22  Bruno Haible  <bruno@clisp.org>
59308
59309                 * javaversion.h: New file, from GNU gettext.
59310                 * javaversion.c: New file, from GNU gettext.
59311                 * javaversion.java: New file, from GNU gettext.
59312                 * javaversion.class: New file, from GNU gettext.
59313
59314         2006-05-17  Bruno Haible  <bruno@clisp.org>
59315
59316                 Cygwin portability.
59317                 * javaexec.c (execute_java_class): Test for jview program
59318                 also on Cygwin.
59319
59320         2006-04-09  Bruno Haible  <bruno@clisp.org>
59321
59322                 * fatal-signal.c: Don't include string.h.
59323                 (at_fatal_signal): Use a copying loop instead of memcpy.
59324
59325         2005-12-04  Bruno Haible  <bruno@clisp.org>
59326
59327                 * csharpexec.c: Add support for 'clix' launcher (untested).
59328                 (execute_csharp_using_sscli): New function.
59329                 (execute_csharp_program): Call it.
59330
59331         2006-06-21  Bruno Haible  <bruno@clisp.org>
59332
59333                 Avoid warnings from recent versions of mcs.
59334                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
59335                 -o, -L, -r any more. Use options documented since mcs-1.0
59336                 instead. Similarly for -g.
59337
59338         2005-07-09  Bruno Haible  <bruno@clisp.org>
59339
59340                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
59341                 add a .dll suffix.
59342                 Reported by Mark Junker <mjscod@gmx.de>.
59343
59344         2006-06-17  Bruno Haible  <bruno@clisp.org>
59345
59346                 * config.charset: Update for NetBSD 3.0.
59347
59348         2006-05-17  Bruno Haible  <bruno@clisp.org>
59349
59350                 Cygwin portability.
59351                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
59352
59353         2006-05-16  Bruno Haible  <bruno@clisp.org>
59354
59355                 * localcharset.c [CYGWIN]: Include <windows.h>.
59356                 (get_charset_aliases): For Cygwin, return the same CPxxx
59357                 aliases list as under WIN32.
59358                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
59359                 the environment variables. Fall back to GetACP().
59360
59361         2006-04-05  Bruno Haible  <bruno@clisp.org>
59362
59363                 * config.charset: Update Juan Manuel Guerrero's address.
59364
59365         2005-02-12  Bruno Haible  <bruno@clisp.org>
59366
59367                 * allocsa.h: Add extern "C" for C++.
59368
59369         2005-02-10  Bruno Haible  <bruno@clisp.org>
59370
59371                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
59372                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
59373
59374         2006-07-22  Bruno Haible  <bruno@clisp.org>
59375
59376                 * gettext.h: Update to GNU gettext-0.15.
59377
59378 2006-07-22  Bruno Haible  <bruno@clisp.org>
59379
59380         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
59381         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
59382         lib-prefix.m4, longdouble.m4, ssize_t.m4.
59383
59384 2006-07-21  Eric Blake  <ebb9@byu.net>
59385
59386         * modules/stdlib-safer: New file.
59387         * MODULES.html.sh (File stream based Input/Output): Add
59388         stdlib-safer.
59389
59390 2006-07-21  Eric Blake  <ebb9@byu.net>
59391
59392         * lib/stdlib-safer.h: New file from coreutils, required by
59393         stdlib--.h.
59394
59395 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
59396
59397         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
59398
59399 2006-07-20  Bruno Haible  <bruno@clisp.org>
59400
59401         * gnulib-tool: Recognize new option --assume-autoconf.
59402         (autoconf_minversion): New variable.
59403         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
59404
59405 2006-07-20  Bruno Haible  <bruno@clisp.org>
59406
59407         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
59408
59409 2006-07-19  Derek R. Price  <derek@ximbiot.com>
59410
59411         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
59412         Reindent and repaginate.
59413
59414 2006-07-19  Derek Price  <derek@ximbiot.com>
59415
59416         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
59417         Correct grammar.
59418
59419 2006-07-17  Bruno Haible  <bruno@clisp.org>
59420
59421         * modules/list: New file.
59422         * modules/array-list: New file.
59423         * modules/carray-list, modules/carray-list-tests: New files.
59424         * modules/linked-list, modules/linked-list-tests: New files.
59425         * modules/avltree-list, modules/avltree-list-tests: New files.
59426         * modules/rbtree-list, modules/rbtree-list-tests: New files.
59427         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
59428         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
59429         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
59430         * modules/oset: New file.
59431         * modules/array-oset: New file.
59432         * modules/avltree-oset, modules/avltree-oset-tests: New files.
59433         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
59434         * tests/test-carray_list.c: New file.
59435         * tests/test-linked_list.c: New file.
59436         * tests/test-avltree_list.c: New file.
59437         * tests/test-rbtree_list.c: New file.
59438         * tests/test-linkedhash_list.c: New file.
59439         * tests/test-avltreehash_list.c: New file.
59440         * tests/test-rbtreehash_list.c: New file.
59441         * tests/test-avltree_oset.c: New file.
59442         * tests/test-rbtree_oset.c: New file.
59443         * MODULES.html.sh (Container data structures): New section.
59444
59445 2006-07-17  Bruno Haible  <bruno@clisp.org>
59446
59447         * m4/gl_list.m4: New file.
59448
59449 2006-07-17  Bruno Haible  <bruno@clisp.org>
59450
59451         * lib/gl_list.h: New file.
59452         * lib/gl_list.c: New file.
59453         * lib/gl_array_list.h: New file.
59454         * lib/gl_array_list.c: New file.
59455         * lib/gl_carray_list.h: New file.
59456         * lib/gl_carray_list.c: New file.
59457         * lib/gl_linked_list.h: New file.
59458         * lib/gl_linked_list.c: New file.
59459         * lib/gl_anylinked_list1.h: New file.
59460         * lib/gl_anylinked_list2.h: New file.
59461         * lib/gl_avltree_list.h: New file.
59462         * lib/gl_avltree_list.c: New file.
59463         * lib/gl_anyavltree_list1.h: New file.
59464         * lib/gl_anyavltree_list2.h: New file.
59465         * lib/gl_rbtree_list.h: New file.
59466         * lib/gl_rbtree_list.c: New file.
59467         * lib/gl_anyrbtree_list1.h: New file.
59468         * lib/gl_anyrbtree_list2.h: New file.
59469         * lib/gl_anytree_list1.h: New file.
59470         * lib/gl_anytree_list2.h: New file.
59471         * lib/gl_linkedhash_list.h: New file.
59472         * lib/gl_linkedhash_list.c: New file.
59473         * lib/gl_anyhash_list1.h: New file.
59474         * lib/gl_anyhash_list2.h: New file.
59475         * lib/gl_avltreehash_list.h: New file.
59476         * lib/gl_avltreehash_list.c: New file.
59477         * lib/gl_rbtreehash_list.h: New file.
59478         * lib/gl_rbtreehash_list.c: New file.
59479         * lib/gl_anytreehash_list1.h: New file.
59480         * lib/gl_anytreehash_list2.h: New file.
59481
59482         * lib/gl_oset.h: New file.
59483         * lib/gl_oset.c: New file.
59484         * lib/gl_array_oset.h: New file.
59485         * lib/gl_array_oset.c: New file.
59486         * lib/gl_avltree_oset.h: New file.
59487         * lib/gl_avltree_oset.c: New file.
59488         * lib/gl_rbtree_oset.h: New file.
59489         * lib/gl_rbtree_oset.c: New file.
59490         * lib/gl_anytree_oset.h: New file.
59491
59492 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59493
59494         * m4/mkancesdirs.m4: New file.
59495         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
59496         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
59497         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
59498         it.
59499
59500 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59501
59502         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
59503         * lib/mkancesdirs.h: New files.
59504         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
59505         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
59506         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
59507         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
59508         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
59509         callers changed.  Revamp internals significantly, by not
59510         attempting to create directories that are temporarily more
59511         permissive than the final results.  Do not attempt to use
59512         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
59513         This removes some race conditions, fixes some bugs, and simplifies
59514         things.  Use new dirchownmod function to do owner and mode changes.
59515         * lib/mkdir-p.h: Likewise.
59516         * lib/modechange.c (octal_to_mode): New function.
59517         (struct mode_change): New member mentioned.
59518         (make_node_op_equals): New arg mentioned.  All callers changed.
59519         (mode_compile): Keep track of which mode bits the user has explicitly
59520         mentioned.
59521         (mode_adjust): New arg DIR, so that we implement the X op correctly.
59522         New arg PMODE_BITS, to keep track of which mode bits the user
59523         mentioned; it treats S_ISUID and S_ISGID speciall.
59524         All callers changed.
59525         * lib/modechange.h: Likewise.
59526
59527 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
59528
59529         * MODULES.html.sh: Add mkancestors.
59530         * modules/mkancesdirs: New module.
59531         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
59532         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
59533         The chdir-safer and afs files are now orphans; I'll remove them
59534         unless someone speaks up.
59535         Add lib/dirchownmod.c, lib/dirchownmod.h.
59536         (Depends-on): Remove alloca, chown, save-cwd, dirname.
59537         Add lchown, mkancesdirs.
59538         (Maintainer): Add self.
59539
59540 2006-07-15  Karl Berry  <karl@gnu.org>
59541
59542         * gnulib-tool: help message wording/arrangement.
59543
59544 2006-07-14  Simon Josefsson  <jas@extundo.com>
59545
59546         * doc/gnulib.texi (Libtool and Windows): New section.
59547
59548 2006-07-12  Simon Josefsson  <jas@extundo.com>
59549
59550         * modules/gendocs (License): Fix license, approved by Karl.
59551
59552 2006-07-12  Eric Blake  <ebb9@byu.net>
59553
59554         * MODULES.html.sh: Add gendocs.
59555
59556 2006-07-11  Eric Blake  <ebb9@byu.net>
59557
59558         * modules/fdl: New module, to install doc/fdl.texi.
59559         * MODULES.html.sh: Add new section for documentation modules.
59560         * gnulib-tool: Avoid space-tab.
59561         (--doc-base): New option, to manage files from doc.
59562
59563 2006-07-11  Eric Blake  <ebb9@byu.net>
59564
59565         * m4/absolute-header.m4: Fix comments to match recent change.
59566
59567 2006-07-11  Eric Blake  <ebb9@byu.net>
59568
59569         * gnulib-tool: List --doc-base before --tests-base.
59570
59571 2006-07-11  Derek R. Price  <derek@ximbiot.com>
59572
59573         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
59574
59575 2006-07-11  Bruno Haible  <bruno@clisp.org>
59576
59577         * README: Mention where to put documentation.
59578
59579 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59580
59581         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
59582
59583 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59584
59585         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
59586         to stdint.m4.
59587
59588 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
59589
59590         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
59591         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
59592         "no/such/file/stdint.h" when there is no such file, so that
59593         the resulting C code can be parsed by dodgy compilers.
59594         Problems reported by Bob Proulx.
59595
59596 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59597
59598         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
59599         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59600         macros into the GNU _D_EXACT_NAMLEN.
59601         * lib/savedir.c:  Likewise.
59602         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
59603
59604 2006-07-10  Derek R. Price  <derek@ximbiot.com>
59605         and Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
59608         * m4/savedir.m4:
59609         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
59610         macros into the GNU _D_EXACT_NAMLEN.
59611
59612 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59613
59614         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
59615         around the absolute name, to work around a problem with the HP-UX
59616         11.23 native C compiler, reported by Bob Proulx.
59617
59618 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59619
59620         * doc/maintain.texi, make-stds.texi: Sync from
59621         <http://savannah.gnu.org/projects/gnustandards>.
59622
59623 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
59626
59627 2006-07-09  Jim Meyering  <jim@meyering.net>
59628
59629         * m4/glob.m4: Remove a doubled word in a comment.
59630
59631 2006-07-09  Jim Meyering  <jim@meyering.net>
59632
59633         * lib/argp-pv.c: Remove a doubled word in a comment.
59634         * lib/check-version.c (check_version): Likewise.
59635         * lib/javacomp.c (compile_java_class): Likewise.
59636
59637 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59638
59639         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
59640         for the benefit of people using Autoconf 2.60.  If you want to
59641         support older Autoconf versions you can copy m4/onceonly_2_57.m4
59642         (or m4/onceonly.m4, if pre-2.57) manually.
59643
59644 2006-07-08  Jim Meyering  <jim@meyering.net>
59645
59646         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
59647         comment.
59648         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
59649         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
59650         comment.
59651
59652 2006-07-08  Jim Meyering  <jim@meyering.net>
59653
59654         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
59655
59656 2006-07-07  Simon Josefsson  <jas@extundo.com>
59657
59658         * tests/test-crc.c: Change expected crc value, the test vector
59659         were probably computed using the old broken crc.c?
59660
59661 2006-07-06  Simon Josefsson  <jas@extundo.com>
59662
59663         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
59664         now the canonical place for the M4 file).
59665
59666         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
59667         from the sys_socket dependency now.
59668
59669         * modules/inet_pton (Files): Ditto.
59670
59671         * modules/inet_ntop (Files): Ditto.
59672
59673 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59674
59675         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
59676         not gl_PREREQ_GETUSERSHELL.
59677
59678 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59679
59680         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
59681         with only one argument, for Autoconf 2.60.
59682         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
59683         expand to nothing, so add a shell command to avoid syntax error.
59684         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
59685
59686 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59687
59688         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
59689
59690 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59691
59692         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
59693         no longer needed.  Check for isblank decl.
59694         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
59695         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
59696         of existence.
59697
59698 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59699
59700         * lib/getloadavg.c: Use __VMS, not VMS.
59701         * lib/getopt.c: Likewise.
59702         * lib/getpagesize.h: Likewise.
59703         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
59704         and probably does not work.
59705
59706 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59707
59708         * lib/.cppi-disable: Add wcwidth.
59709         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
59710         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
59711         (ISGRAPH): Remove.  All uses changed to isgraph.
59712         (FOLD) [!defined _LIBC]: Remove special case.
59713         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
59714         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
59715         HAVE_ISBLANK.
59716         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
59717         case.
59718
59719 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
59720
59721         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
59722         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
59723         brackets.  Other minor changes to suppress some compiler
59724         warnings.
59725
59726 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59727         and Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
59730         of invoking obsolescent AC_HEADER_DIRENT macro.
59731         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59732         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
59733         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59734         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
59735         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
59736         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59737         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
59738         * m4/readdir.m4: Remove; no longer needed.
59739
59740 2006-07-06  Derek R. Price  <derek@ximbiot.com>
59741         and Paul Eggert  <eggert@cs.ucla.edu>
59742
59743         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
59744         Don't worry about this obsolete case any more.
59745         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
59746         directories.
59747         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
59748         worry about this obsolete case any more.
59749         * lib/fts.c: Likewise.
59750         * lib/getcwd.c: Likewise.
59751         * lib/glob.h: Likewise.
59752         * lib/savedir.c: Likewise.
59753
59754 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59755
59756         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
59757         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
59758         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
59759         needed.
59760         All uses removed.
59761         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59762         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59763         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
59764         needed.
59765         * m4/getdate.m4 (gl_GETDATE): Likewise.
59766         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59767         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59768         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59769         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59770         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
59771         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59772         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
59773         needed.
59774
59775 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59776
59777         * lib/memcasecmp.c: Include <limits.h>.
59778         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
59779         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
59780         Don't assume isdigit succeeds only on '0' through '9'.
59781
59782 2006-07-05  Eric Blake  <ebb9@byu.net>
59783
59784         * modules/getaddrinfo (Depends-on): Add snprintf.
59785
59786 2006-07-05  Eric Blake  <ebb9@byu.net>
59787
59788         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
59789         to avoid 'header present but could not be compiled' on cygwin.
59790
59791 2006-07-05  Eric Blake  <ebb9@byu.net>
59792
59793         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
59794         missing from netdb.h.
59795         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
59796
59797 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59798
59799         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
59800         no longer needed.
59801         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
59802         * m4/getdate.m4 (gl_GETDATE): Likewise.
59803         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
59804         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
59805         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59806         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
59807         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59808
59809 2006-07-05  Derek R. Price  <derek@ximbiot.com>
59810
59811         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
59812         All uses of is_space replaced by isspace.
59813         * lib/exit.h: Don't talk about STDC_HEADERS.
59814         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
59815         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
59816         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
59817         replaced by isprint etc.
59818         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
59819         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59820         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
59821         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
59822         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
59823         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
59824
59825 2006-07-05  Bruno Haible  <bruno@clisp.org>
59826
59827         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
59828         the function exists, before testing against AIX.
59829         Reported by Martin Lambers <marlam@marlam.de>.
59830
59831 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59832
59833         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
59834         From Mark D. Baushke.
59835
59836 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
59837
59838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
59839         to the absolute name, not just one, to bypass Sun C 5.8's
59840         "warning: #include of /usr/include/... may be non-portable".
59841
59842 2006-07-04  Eric Blake  <ebb9@byu.net>
59843
59844         * modules/dirname-tests: New test module.
59845         * tests/test-dirname.c: New file, replacing dirname.c
59846         TEST_DIRNAME section that was recently deleted.
59847
59848 2006-07-04  Bruno Haible  <bruno@clisp.org>
59849
59850         Assume ANSI C header files and <ctype.h> functions.
59851         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
59852         (mbsnwidth): Use isprint, iscntrl instead.
59853
59854 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59855
59856         Merge from coreutils.
59857         * MODULES.html.sh: Add xstrtold.
59858         * modules/xstrtold: New file.
59859         * modules/cycle-check (Files): Add lib/same-inode.h.
59860         * modules/dirname (Files): Add m4/double-slash-root.m4.
59861         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
59862         * modules/mkdir-p (Files): Add lib/same-inode.h.
59863         * modules/same (Files): Add lib/same-inode.h.
59864
59865 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59866
59867         * m4/absolute-header.m4: Renamed from full-header-path.m4.
59868         This is to keep the terminology clean; POSIX talks about
59869         "absolute pathnames", not "full pathnames", but the GNU
59870         Coding Standards say to use "path" for something else;
59871         so use "absolute" to keep both sides happy.
59872         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
59873         Set gl_absolute_header, not gl_full_header_path.
59874         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
59875         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
59876         All uses changed.
59877
59878         Merge from coreutils.
59879
59880         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59881
59882         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
59883         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
59884         want to require the building of c-strtod.o.
59885         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
59886         needs -lm directly.
59887         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
59888
59889         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
59890
59891         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
59892         --as-needed option if available.  Problem reported by Albert Chin in
59893         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
59894         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
59895         cc merely issues a bunch of annoying warnings for --as-needed
59896         (this problem was reported by Bob Proulx).  Also, try linking with
59897         -lm to detect a bug in binutils 2.16 (this problem was reported
59898         by Ralf Wildenhues).
59899
59900         2006-06-18  Jim Meyering  <jim@meyering.net>
59901
59902         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
59903         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
59904         macro.
59905         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
59906         also check for glibc-2.4's abort-inducing bug.
59907
59908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
59909         Low-probability clean-up should be to use rmdir to get rid of
59910         the just-created directory, not unlink.
59911
59912         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
59913         configure fail, and request a bug report to inform us about it.
59914         Add a comment that, barring reports to the contrary, in 2007 we'll
59915         assume ftruncate is universally available.
59916
59917         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59918
59919         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
59920
59921         2006-03-12  Jim Meyering  <jim@meyering.net>
59922
59923         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
59924         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
59925         * m4/same.m4 (gl_SAME): Likewise.
59926         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
59927
59928         2006-03-11  Eric Blake  <ebb9@byu.net>
59929
59930         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
59931         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
59932         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
59933         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
59934
59935 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59936
59937         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
59938         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
59939         reported by Mark D. Baushke, one in
59940         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
59941
59942         Merge from coreutils.
59943
59944         * lib/.cppi-disable: Add stdint_.h.
59945         * lib/.cvsignore: Add stdint.h.
59946
59947         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
59948
59949         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
59950         both double and long double versions.
59951         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
59952         * lib/xstrtold.c: New file.
59953         * lib/xstrtod.h (xstrtold): New decl.
59954
59955         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59956
59957         * lib/filemode.c (setst): Remove.
59958         (strmode): Rewrite to avoid setst.  This makes the code shorter,
59959         (arguably) clearer, and the generated code is a bit smaller on my
59960         Debian GNU/Linux stable x86 host.
59961
59962         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
59963
59964         * lib/filemode.c: Include "filemode.h" first, to test the interface.
59965         Assume that filemode.h includes sys/types.h and sys/stat.h.
59966         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
59967         (ftypelet): Reorder to put common cases first, for efficiency.
59968         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
59969         to do 'M'.
59970         (strmode): Renamed from mode_string, and now stores 12 bytes instead
59971         of 10, for compatibility with FreeBSD.  All callers changed.
59972         (filemodestring): Now stores 12 bytes instead of 10, and sets file
59973         types that can't be deduced solely from st_mode.  First arg is now a
59974         const pointer.
59975         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
59976         (strmode): Renamed from mode_string.
59977         (filemodestring): New decl.
59978         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
59979         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
59980         needed.
59981         (S_ISPORT, S_ISWHT): New macros, if not already defined.
59982
59983         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59984
59985         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
59986         fsusage.h now does that.  Include fsusage.h first, to test interface.
59987         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
59988         at most one method (the old code could have generated decls that
59989         didn't conform to C89, not that this was ever exercised).
59990         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
59991
59992         2006-03-19  Jim Meyering  <jim@meyering.net>
59993
59994         Work even in a chroot where d_ino values for entries in "/"
59995         don't match the stat.st_ino values for the same names.
59996         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
59997         number, iterate through all entries again, using lstat instead.
59998         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
59999         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60000
60001         * lib/getcwd.c (__getcwd): Clarify a comment.
60002         Use memcpy in place of a call to strcpy.
60003
60004         2006-03-12  Jim Meyering  <jim@meyering.net>
60005
60006         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60007         matches that of the current directory (which we're about to chdir ".."
60008         out of), then save the dev-ino of the parent, instead.
60009
60010         * lib/same-inode.h (SAME_INODE): New file/macro.
60011         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60012         Include "same-inode.h", instead.
60013         * lib/same.c: Likewise.
60014         * lib/cycle-check.h: Include "same-inode.h".
60015         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60016         * lib/cycle-check.c (SAME_INODE): Remove definition.
60017         * lib/root-dev-ino.h: Include "same-inode.h".
60018
60019         2006-03-11  Eric Blake  <ebb9@byu.net>
60020
60021         * lib/same.c (same_name): s/base_name/last_component/
60022         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60023         * lib/filenamecat.c (file_name_concat): Likewise.
60024
60025         2006-03-11  Eric Blake  <ebb9@byu.net>,
60026                     Paul Eggert  <eggert@cs.ucla.edu>
60027
60028         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60029         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60030         drive prefix.
60031         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60032         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60033         (last_component): New method.
60034         * lib/dirname.c (dir_len): Determine when drive letters need a
60035         subsequent slash.  Preserve // when it is special.
60036         (dir_name): Don't append dot when drive letter is absolute.
60037         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60038         * lib/basename.c (base_name): New semantics - malloc the result.
60039         Preserve // when it is special.  Preserve relative files that look
60040         like drive letters.
60041         (base_len): Preserve // when it is special.
60042         (last_component): New method, similar to old base_name semantics.
60043         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60044         base_name.  Strip redundant slashes from ///.
60045
60046 2006-07-03  Jim Meyering  <jim@meyering.net>
60047
60048         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60049         macro is used before the first cycle_check call.
60050
60051 2006-07-03  Eric Blake  <ebb9@byu.net>
60052
60053         * modules/dirname (Depends-on): Add xstrndup.
60054
60055 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60058         test cases, so that config.log is a bit easier to follow.
60059
60060 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60061
60062         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60063         both are 64 bits, since this seems to be the tradition, and this
60064         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60065         we ever run into a host that prefers long long to long in this
60066         case, we'll need another configure-time test.  Problem reported by
60067         Jim Meyering.
60068
60069 2006-07-02  Eric Blake  <ebb9@byu.net>
60070
60071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60072
60073 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60074
60075         * modules/inttypes (Depends-on): No longer depends on stdint.
60076         * modules/stdint (Description): Say more about assumptions.
60077         Say that the fast types might differ.  Say macros are used.
60078         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60079         (Makefile.am): Revise list of substituted symbols to match
60080         new stdint.m4.
60081         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60082         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60083         * tests/test-stdint.c (verify_same_types)
60084         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60085         the code conforms to C99/C89.
60086         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60087         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60088
60089 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60092         but fix a bug, by requiring at least 64 bits.
60093         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60094         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60095         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60096         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60097
60098         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60099         changes.  Make 2.59 a prerequisite.  Check and substitute for
60100         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60101         inttypes.h.  Do not use special include files; just use the
60102         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60103         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60104         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60105         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60106         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60107         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60108         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60109         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60110         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60111         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60112         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60113         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60114         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60115         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60116         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60117         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60118         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60119         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60120         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60121         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60122         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60123         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60124         not check for things that C99 does not require, e.g., int8_t.  If
60125         a test isn't needed unless <stdint.h> isn't working, and is
60126         unlikely to be needed for any other reason, then don't do it
60127         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60128         size_t, since we assume C89 freestanding at least.  Do not check
60129         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60130         the right thing even if the types are not defined.  Instead use:
60131         (gl_STDINT_TYPE_PROPERTIES): New macro.
60132         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60133         testing whether <sys/types.h> clashes, as Autoconf does this for
60134         us now.  All uses removed.
60135         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60136         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60137         (gl_CHECK_TYPE_SAME):
60138         Remove; no longer needed.
60139         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60140         exists, since we'll return 0 anyway in that case.
60141         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60142
60143 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60144
60145         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60146         possible collision with system files.
60147         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60148         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60149         WCHAR_MIN and WCHAR_MAX in this case.
60150         (<stddef.h>): Do not include; no longer needed.
60151         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60152         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60153         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60154         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60155         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60156         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60157         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60158         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60159         !defined(__c99))]: Include in this case too, since it's harmless
60160         now.
60161         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60162         dangerous to do so.
60163         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60164         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60165         (_STDINT_MIN, _STDINT_MAX): New macros.
60166         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60167         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60168         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60169         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60170         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60171         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60172         macros, not typedefs; this simplifies things quite a bit.
60173         Use long int for all types narrower than int64_t.
60174         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60175         Define in terms of long long int or int64_t or long int,
60176         not int64_t or int32_t.  This saves some compile-time testing.
60177         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60178         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60179         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60180         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60181         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60182         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60183         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60184         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60185         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60186         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60187         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60188         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60189         undef any previous version and define our own version, for
60190         simplicity and consistency with the new macros for types.
60191         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60192         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60193         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60194         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60195         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60196         @WINT_T_SUFFIX@ to keep things simple here.
60197         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60198         Simplify by assuming typical 8/16/32/64 host, since we're
60199         already doing that elsewhere anyway.
60200         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60201         and assume long long int is 64 bits if available.  This
60202         speeds up 'configure'.
60203
60204 2006-07-01  Eric Blake  <ebb9@byu.net>
60205
60206         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
60207         Reported by Andreas Buening.
60208
60209 2006-07-01  Eric Blake  <ebb9@byu.net>
60210
60211         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
60212
60213 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60214
60215         * lib/getaddrinfo.c: fixed typo
60216
60217 2006-06-29  Jim Meyering  <jim@meyering.net>
60218
60219         * modules/strftime (Maintainer): Add my name, since with the
60220         FPRINTFTIME changes strftime.c has forked from glibc.
60221
60222 2006-06-29  Eric Blake  <ebb9@byu.net>
60223
60224         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
60225
60226 2006-06-29  Eric Blake  <ebb9@byu.net>
60227
60228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
60229
60230 2006-06-29  Eric Blake  <ebb9@byu.net>
60231
60232         * lib/stat_.h: New file.
60233
60234 2006-06-29  Eric Blake  <ebb9@byu.net>
60235
60236         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
60237         unused static function.
60238
60239 2006-06-29  Eric Blake  <ebb9@byu.net>
60240
60241         * doc/functions.texi (Function Portability): Document missing lstat
60242         on mingw.
60243
60244 2006-06-29  Eric Blake  <ebb9@byu.net>
60245
60246         * MODULES.html.sh: Add sys_stat.
60247         * modules/sys_stat: New module.
60248         * modules/mkstemp (Depends-on): Add sys_stat.
60249
60250 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60251
60252         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
60253
60254 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60255
60256         * m4/c-bs-a.m4: Removed.
60257
60258 2006-06-29  Derek R. Price  <derek@ximbiot.com>
60259
60260         * lib/strftime.c: Assume strftime() exists.
60261
60262 2006-06-29  Derek Price  <derek@ximbiot.com>
60263
60264         * modules/c-bs-a: Removed - \a is C89.
60265         * MODULES.html.sh: Remove c-bs-a.
60266
60267 2006-06-29  Bruno Haible  <bruno@clisp.org>
60268
60269         * modules/wcwidth (License): Change to LGPL.
60270
60271 2006-06-28  Simon Josefsson  <jas@extundo.com>
60272
60273         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
60274         on _WIN32.
60275
60276         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
60277         getnameinfo.
60278
60279 2006-06-28  Simon Josefsson  <jas@extundo.com>
60280
60281         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
60282
60283 2006-06-28  Simon Josefsson  <jas@extundo.com>
60284
60285         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
60286         functions there.  It will succeed on Windows XP, but on Windows
60287         2000 and (presumably) earlier, it will fail, and use the internal
60288         re-implementation.
60289         (use_win32_p): New function.
60290         (getaddrinfo): Use strtoul on servname, to support numeric ports.
60291         Support AI_NUMERICSERV to disable getservbyname.
60292         (getnameinfo): New function, only supports
60293         NI_NUMERICHOST|NI_NUMERICSERV for now.
60294
60295         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
60296         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
60297         getnameinfo.
60298
60299 2006-06-28  Eric Blake  <ebb9@byu.net>
60300
60301         * modules/wcwidth: New file.
60302         * modules/mbchar (Depends-on): Add wcwidth.
60303         * modules/mbswidth (Depends-on): Add wcwidth.
60304         * MODULES.html.sh: Add wcwidth.
60305
60306 2006-06-28  Eric Blake  <ebb9@byu.net>
60307
60308         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
60309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
60310
60311 2006-06-28  Eric Blake  <ebb9@byu.net>
60312
60313         * lib/xvasprintf.h: Fix comments.
60314
60315 2006-06-28  Eric Blake  <ebb9@byu.net>
60316
60317         * lib/mbchar.h (wcwidth): Include wcwidth.h.
60318         * lib/mbswidth.c (wcwidth): Move from here...
60319         * lib/wcwidth.h: ...to this new file.
60320
60321 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60322
60323         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
60324
60325         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
60326         it's obsolete.
60327         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
60328
60329 2006-06-28  Derek R. Price  <derek@ximbiot.com>
60330
60331         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
60332         Autoconf 2.60 says this stuff was obsolete.
60333
60334 2006-06-28  Bruno Haible  <bruno@clisp.org>
60335
60336         * modules/wcwidth (Files): Add m4/wchar_t.m4.
60337
60338 2006-06-28  Bruno Haible  <bruno@clisp.org>
60339
60340         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
60341         gt_TYPE_WCHAR_T.
60342
60343 2006-06-28  Bruno Haible  <bruno@clisp.org>
60344
60345         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
60346         declaration for wcwidth.
60347         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
60348
60349 2006-06-28  Bruno Haible  <bruno@clisp.org>
60350
60351         * lib/mkdtemp.c [MINGW]: Include <io.h>.
60352         (mkdir): Define using _mkdir.
60353
60354 2006-06-28  Bruno Haible  <bruno@clisp.org>
60355
60356         * lib/getaddrinfo.h: Fix POSIX URL.
60357         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
60358         _WIN32.
60359         (use_win32_p): Make static.
60360         (getaddrinfo): Reject service name if it is empty or does not consist
60361         solely of decimal digits, or if its value is > 65535.
60362         (getnameinfo): Remove useless casts.
60363
60364 2006-06-27  Simon Josefsson  <jas@extundo.com>
60365
60366         * modules/sys_select: New file, suggested by Bruno Haible, Paul
60367         Eggert and Martin Lambers.
60368
60369 2006-06-27  Simon Josefsson  <jas@extundo.com>
60370
60371         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
60372         Eggert and Martin Lambers.
60373
60374 2006-06-27  Bruno Haible  <bruno@clisp.org>
60375
60376         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
60377         result to 0, not to empty.
60378         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
60379
60380 2006-06-27  Bruno Haible  <bruno@clisp.org>
60381
60382         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
60383
60384 2006-06-26  Simon Josefsson  <jas@extundo.com>
60385
60386         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
60387         present.
60388
60389 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
60390
60391         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
60392         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
60393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
60394
60395 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
60396
60397         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
60398
60399 2006-06-26  Bruno Haible  <bruno@clisp.org>
60400
60401         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
60402
60403 2006-06-26  Bruno Haible  <bruno@clisp.org>
60404
60405         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
60406
60407 2006-06-26  Bruno Haible  <bruno@clisp.org>
60408
60409         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
60410         SGI C compiler in pre-C99 mode.
60411         Suggested by Mark D. Baushke and Larry Jones.
60412
60413 2006-06-26  Bruno Haible  <bruno@clisp.org>
60414
60415         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
60416         WCHAR_MAX.
60417         Reported by Mark D. Baushke and Larry Jones.
60418
60419 2006-06-26  Bruno Haible  <bruno@clisp.org>
60420
60421         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
60422         in pre-C99 mode.
60423         Suggested by Mark D. Baushke and Larry Jones.
60424
60425 2006-06-23  Simon Josefsson  <jas@extundo.com>
60426             Bruno Haible  <bruno@clisp.org>
60427
60428         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
60429         Emit mostlyclean-local rule.
60430         (func_emit_tests_Makefile_am): Likewise.
60431         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
60432
60433 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
60434
60435         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
60436
60437 2006-06-23  Bruno Haible  <bruno@clisp.org>
60438
60439         * tests/test-stdint.c: Update to match ISO C 99 Technical
60440         Corrigendum 1.
60441
60442 2006-06-23  Bruno Haible  <bruno@clisp.org>
60443
60444         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
60445
60446 2006-06-23  Bruno Haible  <bruno@clisp.org>
60447
60448         * lib/stdint_.h: Treat IRIX like OpenBSD.
60449
60450 2006-06-23  Bruno Haible  <bruno@clisp.org>
60451
60452         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
60453         ISO C 99 Technical Corrigendum 1.
60454
60455 2006-06-22  Simon Josefsson  <jas@extundo.com>
60456
60457         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
60458         MinGW.
60459
60460 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
60463         needed.  Some compiler complained about some of them.  Problem reported
60464         by Larry Jones in
60465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
60466
60467 2006-06-21  Simon Josefsson  <jas@extundo.com>
60468
60469         * tests/test-getaddrinfo.c: New file.
60470
60471         * modules/getaddrinfo-tests: New file.
60472
60473         * MODULES.html.sh: Add inet_pton.
60474
60475         * modules/inet_pton: New file.
60476
60477 2006-06-21  Simon Josefsson  <jas@extundo.com>
60478
60479         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
60480         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
60481         of using the (limited) gnulib implementation on Windows XP.
60482
60483         * m4/inet_pton.m4: New file.
60484
60485 2006-06-21  Simon Josefsson  <jas@extundo.com>
60486
60487         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
60488         variable.
60489
60490         * lib/socket_.h: Don't define WINVER.
60491
60492         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
60493         slightly modified to work in gnulib.
60494
60495 2006-06-21  Simon Josefsson  <jas@extundo.com>
60496
60497         * doc/gnulib.texi (Windows sockets): Add.
60498
60499 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60500
60501         * lib/read-file.c (fread_file): Start with buffer allocation of
60502         0 bytes rather than 1 byte; this simplifies the code.
60503         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
60504         code to free buffer and save/restore errno.
60505         (internal_read_file): Remove unused local.
60506
60507 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60508
60509         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
60510         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
60511         Problem reported by Denis Excoffier in
60512         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
60513
60514 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60515
60516         * modules/sys_socket, modules/socklen: Include sys/types since
60517         FreeBSD 4.x's sys/socket.h needs it.
60518
60519 2006-06-19  Simon Josefsson  <jas@extundo.com>
60520
60521         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
60522
60523 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
60526
60527 2006-06-19  Bruno Haible  <bruno@clisp.org>
60528
60529         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
60530         and FULL_PATH_INTTYPES_H in angle brackets.
60531         Reported by Mark D. Baushke <mdb@gnu.org>.
60532
60533 2006-06-17  Eric Blake  <ebb9@byu.net>
60534
60535         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
60536         errno.
60537
60538 2006-06-17  Bruno Haible  <bruno@clisp.org>
60539
60540         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
60541         <sys/inttypes.h>.
60542
60543 2006-06-17  Bruno Haible  <bruno@clisp.org>
60544
60545         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
60546         whether errno is declared. Assume <errno.h> declares errno.
60547
60548 2006-06-17  Bruno Haible  <bruno@clisp.org>
60549
60550         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
60551
60552 2006-06-17  Bruno Haible  <bruno@clisp.org>
60553
60554         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
60555         problem on Solaris 2.5.1.
60556
60557 2006-06-16  Eric Blake  <ebb9@byu.net>
60558
60559         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
60560         * lib/unicodeio.c [!defined errno]: Likewise.
60561         * lib/strtol.c [!defined errno]: Likewise.
60562         * lib/strtod.c [!defined errno]: Likewise.
60563
60564 2006-06-15  Eric Blake  <ebb9@byu.net>
60565
60566         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
60567
60568 2006-06-15  Eric Blake  <ebb9@byu.net>
60569
60570         * config/srclist.txt (ssize_t.m4): Lose sync.
60571
60572 2006-06-15  Bruno Haible  <bruno@clisp.org>
60573
60574         * modules/stdint (Files): Include m4/full-header-path.m4,
60575         m4/size_max.m4, m4/wchar_t.m4.
60576         (Makefile.am): Many more substitutions.
60577         * modules/stdint-tests: New file.
60578         * tests/test-stdint.c: New file.
60579
60580 2006-06-15  Bruno Haible  <bruno@clisp.org>
60581
60582         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
60583         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
60584         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
60585         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
60586         gl_CHECK_TYPE_SAME): New macros.
60587
60588 2006-06-15  Bruno Haible  <bruno@clisp.org>
60589
60590         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
60591
60592 2006-06-15  Bruno Haible  <bruno@clisp.org>
60593
60594         * lib/stdint_.h: Rewritten to be fully auto-configured.
60595         Fixes bug on HP-UX/IA64.
60596
60597 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
60598
60599         * lib/getdate.y (__attribute__): Don't define if already defined.
60600         Problem reported by Larry Jones.
60601         * lib/utimens.c (__attribute__): Likewise.
60602
60603 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
60604
60605         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
60606         reported by Andreas Schwab.
60607
60608 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60609             Bruno Haible  <bruno@clisp.org>
60610
60611         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
60612         check for the declaration of strnlen and a run test that exposes the
60613         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
60614         rpl_strndup.
60615
60616 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60617             Bruno Haible  <bruno@clisp.org>
60618
60619         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
60620
60621 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60622
60623         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
60624         compile test, for Tru64 4.0D.
60625
60626 2006-05-28  Karl Berry  <karl@gnu.org>
60627
60628         * config/srclist.txt (printf-args.c): lose sync.
60629
60630 2006-05-26  Martin Lambers  <marlam@marlam.de>
60631
60632         * lib/getpass.c: Updates the test for the native W32 API, and adds
60633         missing includes, thus fixing compilation warnings.
60634
60635 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
60636
60637         * lib/exclude.c (exclude_fnmatch): New function.
60638         (excluded_file_name): Call exclude_fnmatch.
60639         * lib/exclude.h (excluded_file_name): New prototype
60640
60641 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
60642
60643         * lib/tempname.c (small_open, large_open): New macros.
60644         (__open, __open64) [!_LIBC]: Remove.
60645         (__gen_tempname): Use small_open and large_open instead of __open
60646         and __open64.  This fixes a portability bug on HP-UX 11.11i
60647         reported by Simon Wing-Tang in
60648         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
60649
60650 2006-05-24  Bruno Haible  <bruno@clisp.org>
60651
60652         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
60653         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
60654         Reported by Thorsten Maerz <torte@netztorte.de> via
60655         Aaron Stone <aaron@serendipity.cx>.
60656
60657 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60658
60659         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
60660         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
60661         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
60662         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
60663         not really conditional on the cache.
60664         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
60665
60666 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60667
60668         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
60669         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
60670         (my_usleep): Don't mishandle maximum value.
60671
60672 2006-05-19  Jim Meyering  <jim@meyering.net>
60673
60674         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
60675
60676 2006-05-17  Bruno Haible  <bruno@clisp.org>
60677
60678         Cygwin portability.
60679         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
60680
60681 2006-05-17  Bruno Haible  <bruno@clisp.org>
60682
60683         * lib/stdint_.h: Fix recognition of Cygwin.
60684
60685 2006-05-15  Bruno Haible  <bruno@clisp.org>
60686
60687         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
60688         on libtool patch by Ralf Wildenhues.
60689
60690 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60691
60692         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
60693         test for C99 conformance; (bool) 0.5 is an integer constant
60694         expression, but (bool) -0.5 is not.  Problem reported by Fedor
60695         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
60696
60697 2006-05-11  Simon Josefsson  <jas@extundo.com>
60698
60699         * m4/xvasprintf.m4: Fix obvious typo.
60700
60701 2006-05-11  Jim Meyering  <jim@meyering.net>
60702
60703         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
60704         James Lemley.
60705
60706 2006-05-10  Simon Josefsson  <jas@extundo.com>
60707
60708         * lib/md4.c: Typo fix, update copyright years.
60709         (K1, K2): Don't use L because it turn computations into 64-bit on
60710         64-bit platforms.
60711
60712 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
60715         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
60716         unwanted sign propagation, e.g., on hosts with 64-bit int.
60717         There still are some problems with reeelly weird theoretical hosts
60718         (e.g., 33-bit int) but it's not worth worrying about now.
60719         * lib/sha1.c (rol): Likewise.
60720         (K1, K2, K3, K4): Remove unnecessary L suffix.
60721
60722 2006-05-10  Bruno Haible  <bruno@clisp.org>
60723
60724         * lib/des.c: Cast to avoid warnings.
60725
60726 2006-05-09  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
60729         (Depends-on): Depend also on xsize, stdarg.
60730         (configure.ac): Add gl_XVASPRINTF.
60731
60732 2006-05-09  Bruno Haible  <bruno@clisp.org>
60733
60734         * m4/xvasprintf.m4: New file.
60735
60736 2006-05-09  Bruno Haible  <bruno@clisp.org>
60737
60738         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
60739         (EOVERFLOW): Define fallback value.
60740         (xstrcat): New function.
60741         (xvasprintf): Recognize the special case of a string concatenation.
60742
60743 2006-05-08  Eric Blake  <ebb9@byu.net>
60744
60745         * gnulib-tool (func_version): Base copyright year on CVS date.
60746         (func_emit_copyright_notice): New function.
60747         (func_emit_lib_Makefile_am): Use it.
60748         (func_emit_tests_Makefile_am): Likewise.
60749         (func_import): Likewise.
60750
60751 2006-05-08  Bruno Haible  <bruno@clisp.org>
60752
60753         * modules/stdarg: New file.
60754         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
60755
60756 2006-05-08  Bruno Haible  <bruno@clisp.org>
60757
60758         * m4/stdarg.m4: New file, from GNU gettext.
60759
60760 2006-05-08  Bruno Haible  <bruno@clisp.org>
60761
60762         * config/srclist.txt (build-aux/config.rpath): different from latest
60763         release.
60764
60765 2006-05-08  Bruno Haible  <bruno@clisp.org>
60766
60767         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
60768
60769 2006-05-05  Jim Meyering  <jim@meyering.net>
60770
60771         * m4/warning.m4: New file, derived from bison's file by the same name.
60772
60773 2006-05-03  Bruno Haible  <bruno@clisp.org>
60774
60775         * lib/stdint_.h: Shorter URL.
60776         * lib/inttypes.h: Likewise.
60777
60778 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
60781
60782 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         * lib/verify.h: Document the internals better.  Most of this change
60785         was written by Bruno Haible.
60786
60787 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60788
60789         * doc/verify.texi: New file, partly based on a proposal by
60790         Bruno Haible.
60791
60792 2006-05-02  Bruno Haible  <bruno@clisp.org>
60793
60794         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
60795         test from here...
60796         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
60797
60798 2006-04-29  Bruno Haible  <bruno@clisp.org>
60799
60800         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
60801         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
60802
60803 2006-04-29  Bruno Haible  <bruno@clisp.org>
60804
60805         * gnulib-tool: Make --update option actually work.
60806
60807 2006-04-29  Bruno Haible  <bruno@clisp.org>
60808
60809         * doc/gcd.texi: New file.
60810         * doc/gnulib.texi: Include it.
60811
60812 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
60813
60814         * lib/getdate.y (get_date): When adding relative date, start with the
60815         initial time, not with the result of the first mktime call.
60816
60817 2006-04-25  Bruno Haible  <bruno@clisp.org>
60818
60819         * gnulib-tool (func_import): Output the include directives in three
60820         blocks, sorted separately.
60821         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60822
60823 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60824
60825         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
60826         to define main with arguments, for C++.  Reported by Eric Blake.
60827         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
60828         Prefer 'int main ()' to 'int main (void)', for C++.
60829         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
60830         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
60831         for 'main', for C99 and C++.
60832
60833 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
60834
60835         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
60836         Don't assume that exit status -1 is valid.
60837         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60838         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60839         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60840         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
60841         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
60842         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
60843         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
60844         functions can be used without declaring them, or that you can
60845         exit with status -1.
60846         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60847
60848 2006-04-24  Karl Berry  <karl@gnu.org>
60849
60850         * config/srclist.txt (longdouble.m4): sync lost.
60851
60852 2006-04-24  Eric Blake  <ebb9@byu.net>
60853
60854         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
60855
60856 2006-04-24  Bruno Haible  <bruno@clisp.org>
60857
60858         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
60859         poll() implementation in AIX.
60860         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60861
60862 2006-04-24  Bruno Haible  <bruno@clisp.org>
60863
60864         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
60865         assigned exactly once.
60866
60867 2006-04-23  Claudio Fontana  <claudio@gnu.org>
60868             Bruno Haible  <bruno@clisp.org>
60869
60870         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
60871         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
60872         for AM_CPPFLAGS.
60873
60874 2006-04-23  Bruno Haible  <bruno@clisp.org>
60875
60876         * modules/copy-file: Depend on unistd.
60877         * modules/execute: Likewise.
60878         * modules/fatal-signal: Likewise.
60879         * modules/findprog: Likewise.
60880         * modules/mkdtemp : Likewise.
60881         * modules/pipe: Likewise.
60882         * modules/wait-process: Likewise.
60883
60884 2006-04-23  Bruno Haible  <bruno@clisp.org>
60885
60886         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
60887         condition was already detected.
60888         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60889
60890 2006-04-23  Bruno Haible  <bruno@clisp.org>
60891
60892         * lib/copy-file.c: Include <unistd.h> unconditionally.
60893         * lib/execute.c: Likewise.
60894         * lib/fatal-signal.c: Likewise.
60895         * lib/findprog.c: Likewise.
60896         * lib/mkdtemp.c: Likewise.
60897         * lib/pipe.h: Likewise.
60898         * lib/pipe.c: Likewise.
60899         * lib/wait-process.h: Likewise.
60900
60901 2006-04-23  Bruno Haible  <bruno@clisp.org>
60902
60903         * gnulib-tool (func_usage): Fix --import description. Document
60904         --update.
60905         (func_import): Create temporary file in a temporary directory, if
60906         --dry-run is specified. Silence errors from 'grep' when there are no
60907         m4 files in $m4dir.
60908         (func_create_testdir): Silence errors from 'grep' when there are no
60909         m4 files in $m4dir.
60910         Reported by Karl Berry <karl@freefriends.org>.
60911
60912 2006-04-20  Bruno Haible  <bruno@clisp.org>
60913
60914         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
60915         one argument, so that the code will be portable to Autoconf 2.60.
60916         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
60917         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60918         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
60919
60920 2006-04-19  Derek Price  <derek@ximbiot.com>
60921             Eric Blake  <ebb9@byu.net>
60922
60923         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
60924         rather than "/full/path.h".  Update comment to match.  Shorten &
60925         generalize m4_translit call via AS_TR_CPP.
60926
60927 2006-04-19  Derek Price  <derek@ximbiot.com>
60928             Eric Blake  <ebb9@byu.net>
60929
60930         * lib/inttypes.h: Correct grammar in comment.
60931
60932 2006-04-18  Derek Price  <derek@ximbiot.com>
60933             Paul Eggert  <eggert@cs.ucla.edu>
60934
60935         * modules/inttypes: New file.
60936         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
60937
60938 2006-04-18  Derek Price  <derek@ximbiot.com>
60939             Paul Eggert  <eggert@cs.ucla.edu>
60940
60941         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
60942         New files.
60943
60944 2006-04-18  Derek Price  <derek@ximbiot.com>
60945             Paul Eggert  <eggert@cs.ucla.edu>
60946
60947         * lib/inttypes.h: New file.
60948         * lib/strtoimax.c: Assume <inttypes.h>.
60949
60950 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
60953         isn't mounted.  Problem reported by Kir Kolyshkin.
60954
60955 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60956
60957         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
60958         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
60959         Derek R. Price.
60960         * lib/regex.h (RE_DUP_MAX): Update comment to match current
60961         implementation.
60962
60963 2006-04-12  Eric Blake  <ebb9@byu.net>
60964
60965         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
60966         is now done automatically by the corresponding Autoconf macro.
60967
60968 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
60969
60970         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
60971         time_r.h.
60972
60973 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
60974
60975         Merge regex changes from libc, removing some of our
60976         POSIX-conformance changes that were rejected and redoing them in a
60977         less-intrusive way.
60978
60979         * lib/regcomp.c (re_compile_internal, init_dfa):
60980         Length arg is now size_t, not Idx.  All uses changed.
60981         (peek_token): Forward decl now says internal_function.
60982         (__re_error_msgid, __re_error_msgid_idx):
60983         Now static rather than extern with attribute_hidden.
60984         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
60985         For some reason libc prefers K&R style defns for external functions.
60986         (regerror) [!defined _LIBC]: Likewise.
60987         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
60988         (seek_collating_symbol_entry, lookup_collation_sequence_value):
60989         (build_range_exp, build_collating_symbol):
60990         Use K&R-style defn.
60991         (re_compile_fastmap): Use '\0' to memset, not 0.
60992         (utf8_sb_map): Make the calculations more obvious.
60993         (init_dfa, parse_bracket_exp, build_charclass_op):
60994         Call calloc and cast result, as glibc does.
60995         (init_word_char, fetch_token, peek_token, peek_token_bracket):
60996         (build_range_exp, build_collating_symbol):
60997         Now internal functions.
60998
60999         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61000
61001         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61002         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61003         Don't depend on VMS; depend on __VMS instead, for POSIX
61004         namespace cleanness.
61005         (regoff_t): Define to ssize_t, not long int.
61006
61007         Remove the REG_ macros named below.  Instead, make the old names
61008         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61009         __USE_GNU_REGEX.
61010         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61011         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61012         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61013         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61014         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61015         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61016         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61017         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61018         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61019         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61020         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61021         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61022         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61023         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61024         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61025         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61026         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61027         (REG_NREGS):
61028         Remove.  All uses replaced by the old RE_* names.
61029         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61030         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61031         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61032         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61033         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61034         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61035         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61036         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61037         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61038         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61039         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61040         Don't bother having these macros be independent of each others'
61041         values, since they no longer exist in the POSIX name space.
61042
61043         Rename the following member names back to their old names,
61044         unless !__USE_GNU_REGEX.  All uses changed back.
61045         (buffer): Renamed from re_buffer.
61046         (allocated): Renamed from re_allocated.
61047         (used): Renamed from re_used.
61048         (syntax): Renamed from re_syntax.
61049         (fastmap): Renamed from re_fastmap.
61050         (translate): Renamed from re_translate.
61051         (can_be_null): Renamed from re_can_be_null.
61052         (regs_allocated): Renamed from re_regs_allocated.
61053         (fastmap_accurate): Renamed from re_fastmap_accurate.
61054         (no_sub): Renamed from re_no_sub.
61055         (not_bol): Renamed from re_not_bol.
61056         (not_eol): Renamed from re_not_eol.
61057         (newline_anchor): Renamed from re_newline_anchor.
61058         (num_regs): Renamed from rm_num_regs.
61059         (start): Renamed from rm_start.
61060         (end): Renamed from rm_end.
61061
61062         (free_state): Move up a bit.
61063
61064         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61065         #define to be empty.
61066         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61067         when that is what is intended.
61068         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61069         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61070         (MAX): New macro.
61071         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61072         All uses changed back to re_malloc, etc.  It's now the caller's
61073         responsibility to check for overflow; all callers changed.
61074         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61075         (re_x2nrealloc): Remove.
61076         (free_state): Remove decl.
61077
61078         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61079         (re_set_registers, re_exec):
61080         Use K&R-style defn.
61081
61082         2006-01-31  Roland McGrath  <roland@redhat.com>
61083
61084         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61085         Reported by Mike Frysinger <vapier@gentoo.org>.
61086
61087         2006-01-15  Andreas Jaeger  <aj@suse.de>
61088
61089         [BZ #1950]
61090         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61091         build_wcs_upper_buffer change.
61092         (build_wcs_upper_buffer): Change return type.
61093
61094         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61095
61096         * lib/regex_internal.h: Include <stdint.h> if available.
61097
61098         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61099
61100         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61101
61102         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61103
61104         * lib/regcomp.c: Adjust for changed secondary hash function.
61105
61106         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61107
61108         * lib/regex.h: Pretty printing.
61109         Clean up namespace a bit.
61110
61111         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61112
61113         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61114         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61115
61116         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61117                     Ulrich Drepper  <drepper@redhat.com>
61118
61119         [BZ #1302]
61120         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61121         changed.
61122         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61123
61124         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61125
61126         [BZ #281]
61127         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61128         * lib/regcomp.c: Remove unnecessary uses of
61129         unsigned RE_TRANSLATE_TYPE.
61130         * lib/regex_internal.h: Likewise.
61131         * lib/regex_internal.c: Likewise.
61132         * lib/regexec.c: Likewise.
61133         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61134
61135         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61136
61137         * lib/regexec.c (find_recover_state): Remove unnecessary
61138         initialization.
61139         (transit_state_bkref): Make DFA a const pointer.
61140         (get_subexp): Likewise.
61141         (check_arrival): Likewise.
61142         (update_cur_sifted_state): Likewise.
61143         (re_search_internal): Likewise.
61144         (prune_impossible_nodes): Likewise.
61145         (acquire_init_state_context): Likewise.
61146         (proceed_next_node): Likewise.
61147         (set_regs): Likewise.
61148         (free_fail_stack_return): Likewise.
61149         (check_arrival_expand_ecl): Mark DFA parameter as const.
61150         (check_arrival_expand_ecl_sub): Likewise.
61151         (check_subexp_limits): Likewise.
61152         (sub_epsilon_src_nodes):  Likewise.
61153         (add_epsilon_src_nodes):  Likewise.
61154         (merge_state_array): Likewise.
61155         (update_regs): Likewise.
61156         (build_trtable): Likewise.
61157         (sift_states_backward): Mark MCTX parameter as const.
61158         (build_sifted_states): Likewise.
61159         (update_cur_sifted_state): Likewise.
61160         (sift_states_mkref): Likewise.
61161         (check_arrival_expand_ecl): Mark eclosure as const.
61162         (check_dst_limits_calc_pos_1): Likewise.
61163         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61164         pointer.
61165
61166         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61167
61168         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61169         (transit_state_sb): Likewise.
61170         (transit_state_mb): Likewise.
61171         (sift_states_iter_mb): Likewise.
61172         (check_arrival_add_next_nodes): Likewise.
61173         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61174         [_LIBC] (re_search_2_stub): Use mempcpy.
61175
61176         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61177         mbrtowc for very simple UTF-8 case.
61178
61179         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61180         a pointer-to-const.
61181         (re_acquire_state_context): Likewise.
61182         * lib/regex_internal.h: Adjust prototypes.
61183
61184         * lib/regex.c: Prevent using C++ compilers.
61185
61186         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61187         (re_acquire_state_context): Likewise.
61188
61189 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61190
61191         * modules/regex (Depends-on): Add ssize_t.
61192
61193 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61194
61195         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61196         translation table.
61197
61198 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61199
61200         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61201
61202 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61203             Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
61206         <sys/types.h> and <inttypes.h>.
61207
61208 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61209
61210         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
61211         `__error_t_defined', so argp.h will not typedef the former.
61212
61213 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
61214
61215         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
61216         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
61217         glibc names.  Even if glibc is changed to conform to POSIX, the
61218         traditional names will be available anyway, since regex depends on
61219         the extensions module.  Also, fix a longstanding typo in the
61220         implementation of Spencer ERE test #75 from grep 2.3.  Problems
61221         reported by Emanuele Giaquinta.  Also, change sense of cached
61222         variable, so that the message makes sense.
61223
61224 2006-03-24  Simon Josefsson  <jas@extundo.com>
61225
61226         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
61227         including some doc fixes.
61228         (base64_encode_alloc): Fix +1 bug on allocation failures.
61229
61230 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61231
61232         * lib/base64.c (base64_encode): Do not read past end of array with
61233         unsanitized input on systems with CHAR_BIT > 8.
61234
61235 2006-03-24  Eric Blake  <ebb9@byu.net>
61236
61237         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
61238
61239 2006-03-22  Karl Berry  <karl@gnu.org>
61240
61241         * config/srclist.txt (*setenv.[ch]): get from coreutils.
61242         * config/srclistvars.sh (COREUTILS): new var.
61243
61244 2006-03-17  Jim Meyering  <jim@meyering.net>
61245
61246         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
61247         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
61248
61249 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61250
61251         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
61252         no longer needs it.  Instead, check that regoff_t is as least
61253         as wide as ptrdiff_t.
61254
61255         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
61256         so that our regex.h stays compatible with the installed regex.
61257         This is helpful for installers who configure --without-included-regex.
61258         Problem reported by Emanuele Giaquinta.
61259
61260 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
61261
61262         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
61263         Typedef to long int, not to off_, as POSIX will likely change
61264         in that direction.
61265
61266 2006-03-15  Eric Blake  <ebb9@byu.net>
61267
61268         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
61269
61270 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61271
61272         * lib/argp-help.c (validate_uparams): Fix typo
61273         * lib/argp-parse.c (argp_default_options): Consistently begin help
61274         messages with a lowercase letter.
61275
61276 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
61277
61278         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
61279         overrun buffers and shouldn't be used (much as gets shouldn't be
61280         used).
61281         * lib/time_r.c (asctime_r, ctime_r): Likewise.
61282
61283 2006-03-08  Simon Josefsson  <jas@extundo.com>
61284
61285         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
61286         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61287
61288 2006-03-08  Simon Josefsson  <jas@extundo.com>
61289
61290         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
61291         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61292
61293 2006-03-08  Simon Josefsson  <jas@extundo.com>
61294
61295         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
61296         signal that configure disabled the device.
61297
61298 2006-03-08  Simon Josefsson  <jas@extundo.com>
61299
61300         * build-aux/maint.mk: Fix refresh-po, to handle no translated
61301         languages.
61302
61303 2006-03-07  Simon Josefsson  <jas@extundo.com>
61304
61305         * modules/getopt (Depends-on): Add unistd.
61306
61307         * modules/unistd: New file.
61308
61309 2006-03-07  Simon Josefsson  <jas@extundo.com>
61310
61311         * modules/gc-random: New file.
61312
61313 2006-03-07  Simon Josefsson  <jas@extundo.com>
61314
61315         * m4/unistd_h.m4: New file.
61316
61317 2006-03-07  Simon Josefsson  <jas@extundo.com>
61318
61319         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
61320         test to be side-effect free by storing the result in the cache
61321         variable gl_cv_lib_readline, and moving the assignment of
61322         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
61323         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61324
61325 2006-03-07  Simon Josefsson  <jas@extundo.com>
61326
61327         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
61328         error on missing devices (the functions will return an error).
61329
61330         * m4/gc.m4: Move random stuff to gc-random.m4
61331
61332 2006-03-07  Simon Josefsson  <jas@extundo.com>
61333
61334         * lib/unistd_.h: New file.
61335
61336 2006-03-07  Simon Josefsson  <jas@extundo.com>
61337
61338         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
61339
61340 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61341
61342         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
61343         Problem reported by Juan Manuel Guerrero.
61344
61345 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61346
61347         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
61348         the unistd module.
61349         * lib/getlogin_r.c: Likewise.
61350         * lib/getlogin_r.h: Likewise.
61351         * lib/glob.c: Likewise.
61352         * lib/pagealign_alloc.c: Likewise.
61353         * lib/unistd_.h: Remove; no longer needed.
61354
61355 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
61356
61357         * MODULES.html.sh (Support for systems lacking POSIX:2001):
61358         Add unistd.
61359         * modules/c-stack (Depends-on): Add unistd.
61360         * modules/getlogin_r: Likewise.
61361         * modules/glob: Likewise.
61362         * modules/pagealign_alloc: Likewise.
61363         * modules/unistd (Files): Remove lib/unistd_.h.
61364         (EXTRA_DIST): Remove.
61365         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
61366         need unistd_.h.
61367         (MOSTLYCLEANFILES): Remove unistd.h-t.
61368
61369 2006-03-03  Simon Josefsson  <jas@extundo.com>
61370
61371         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
61372
61373 2006-03-03  Simon Josefsson  <jas@extundo.com>
61374
61375         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
61376         libidn and bison.
61377
61378 2006-03-03  Simon Josefsson  <jas@extundo.com>
61379
61380         * build-aux/maint.mk: Add indent target.
61381
61382 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
61383
61384         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
61385         our replacement poll.h in any case, to avoid a differing
61386         declaration from a system header.  Seen on AIX.
61387
61388 2006-03-01  Simon Josefsson  <jas@extundo.com>
61389
61390         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
61391         <kasal@ucw.cz>.
61392
61393 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61394
61395         * modules/gettime (Depends-on): Add extensions module.
61396         * modules/nanosleep (Depends-on): Likewise.
61397         * modules/settime (Depends-on): Likewise.
61398
61399 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
61400
61401         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
61402         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
61403         pedantically.
61404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61405         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
61406
61407         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
61408         not "==".  Reported by Ralf Wildenhues.
61409
61410 2006-03-01  Karl Berry  <karl@gnu.org>
61411
61412         * doc/Copyright/request-*: new files, synced from gnuorg.
61413
61414 2006-03-01  Karl Berry  <karl@gnu.org>
61415
61416         * config/srclist.txt (Copyright/*): new entries.
61417
61418 2006-02-28  Simon Josefsson  <jas@extundo.com>
61419
61420         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
61421
61422 2006-02-27  Simon Josefsson  <jas@extundo.com>
61423
61424         * lib/base64.h: Indent #define's.  From Jim Meyering
61425         <jim@meyering.net>.
61426
61427 2006-02-27  Jim Meyering  <jim@meyering.net>
61428
61429         Revert the change of 2006-02-24, so these files can continue
61430         to be sync'd from gettext.
61431         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
61432         of `config.h'.
61433
61434 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
61435
61436         * modules/intprops: New file.
61437         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
61438         Add intprops.
61439         * modules/getloadavg (Files): Remove lib/intprops.h.
61440         (Depends-on): Add intprops.
61441         * modules/human: Likewise.
61442         * modules/inttostr: Likewise.
61443         * modules/openat: Likewise.
61444         * modules/sig2str: Likewise.
61445         * modules/userspec: Likewise.
61446         * modules/utimecmp: Likewise.
61447         * modules/xnanosleep: Likewise.
61448         * modules/xstrtol: Likewise.
61449
61450 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
61451
61452         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
61453         * modules/lock-tests (TESTS): Use $(EXEEXT).
61454         * modules/tls-tests: Likewise.
61455         * modules/argp-tests: Likewise.
61456         (check_PROGRAMS): New var, replacing...
61457         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
61458
61459 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61460
61461         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
61462         `config.h'.
61463
61464 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
61467
61468 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61469
61470         Sync from coreutils.
61471         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
61472         gl_CHDIR_SAFER.
61473
61474 2006-02-22  Jim Meyering  <jim@meyering.net>
61475
61476         Sync from coreutils.
61477         * m4/chdir-safer.m4: New file.
61478
61479 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61480
61481         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
61482         AT_FDCWD exceeds INT_MAX.
61483         * lib/openat.h (AT_FDCWD): Likewise.
61484
61485 2006-02-17  Eric Blake  <address@hidden>
61486
61487         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
61488
61489 2006-02-16  Simon Josefsson  <jas@extundo.com>
61490
61491         * modules/getaddrinfo (Depends-on): Add sys_socket.
61492
61493 2006-02-15  Simon Josefsson  <jas@extundo.com>
61494
61495         * build-aux/maint.mk: Add dsyntax-check rule.
61496
61497 2006-02-15  Eric Blake  <ebb9@byu.net>
61498
61499         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
61500         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
61501         'present but cannot compile' warnings on cygwin.
61502         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
61503         use ws2tcpip.h if sys/socket.h works.
61504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
61505         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
61506
61507 2006-02-14  Simon Josefsson  <jas@extundo.com>
61508
61509         * modules/maintainer-makefile (Files): Rename.
61510
61511         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
61512         and (the local) Makefile.cfg to maint-cfg.mk.
61513
61514         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
61515         to the latter.
61516
61517         * modules/maintainer-makefile: New module.
61518
61519         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
61520         severaly stripped to make it possible to build it up from scratch
61521         with reliable tests.
61522
61523         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
61524         fixes to permit overriding the default actions when configure and
61525         makefile are not available.
61526
61527 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61528
61529         Sync from coreutils.
61530         * modules/lstat (Depends-on): Don't depend on xalloc.
61531         (License): Change from GPL to LGPL, since this is now simply a
61532         replacement for a libc function.
61533
61534 2006-02-14  Jim Meyering  <jim@meyering.net>
61535
61536         Sync from coreutils.
61537
61538         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
61539         failure on deficient systems, and simplify gnulib lgpl dependencies.
61540         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
61541         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
61542
61543         * lib/xalloc-die.c: Remove unused definition of N_.
61544
61545 2006-02-14  Jim Meyering  <jim@meyering.net>
61546
61547         Sync from coreutils.
61548         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
61549         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
61550         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
61551         double-quote uses of that variable, to accommodate the rare case in
61552         which getmntent is available in none of the libraries checked.  This
61553         happens at least on FreeBSD 5.0.
61554
61555 2006-02-13  Simon Josefsson  <jas@extundo.com>
61556
61557         * gnulib-tool (Usage): Fix --import, from
61558         karl@freefriends.org (Karl Berry).
61559
61560 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
61561
61562         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
61563
61564 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
61565
61566         * lib/argp-namefrob.h: Restore changes accidentally lost during the
61567         "autoupdate" on 2005-12-12.
61568
61569 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61570
61571         * modules/closeout (Depends-on): Remove atexit.
61572
61573 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
61574
61575         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
61576         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
61577
61578 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61579
61580         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
61581         __EXTENSIONS__ if this causes compilation to fail.  Problem
61582         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
61583         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
61584
61585 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
61586
61587         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
61588         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
61589         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
61590         All uses changed.
61591
61592 2006-01-26  Simon Josefsson  <jas@extundo.com>
61593
61594         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
61595         prototype is visible on mingw32.
61596
61597         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
61598         for mingw32.
61599
61600         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
61601         mingw32).
61602
61603 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
61606         attempt to open for write; this always fails, at least on POSIX
61607         hosts.  This reinstates the 2006-01-09 change, which was
61608         inadvertently removed.
61609
61610 2006-01-26  Bruno Haible  <bruno@clisp.org>
61611
61612         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
61613         Reported by Paul Eggert.
61614
61615 2006-01-26  Bruno Haible  <bruno@clisp.org>
61616             Paul Eggert  <eggert@cs.ucla.edu>
61617
61618         * lib/stdbool_.h (_Bool)
61619         [(! (defined __cplusplus || defined __BEOS__)
61620           && !defined __GNUC__
61621           && !(defined __HP_cc || defined __xlc__
61622                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
61623                || defined __sgi))]:
61624         #define to signed char in these cases too; this simplifies
61625         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
61626         etc., separately) and makes it more conservative.
61627
61628 2006-01-25  Simon Josefsson  <jas@extundo.com>
61629
61630         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
61631         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
61632         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
61633
61634 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61635
61636         * lib/argp-namefrob.h: Bugfix. Remove stray #
61637
61638 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61639
61640         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
61641         so that we test the test.
61642         Check for yet another HP-UX cc bug involving *bool |= bool.
61643
61644 2006-01-25  Karl Berry  <karl@gnu.org>
61645
61646         * config/srclist.txt (vasnprintf.c): sync lost.
61647
61648 2006-01-25  Jim Meyering  <jim@meyering.net>
61649
61650         Sync from the stable (b5) branch of coreutils:
61651
61652         * lib/fts.c (fts_children): Don't let close() clobber errno from
61653         failed fchdir().
61654
61655         * lib/fts.c (fts_stat): When following a symlink-to-directory,
61656         don't necessarily interpret stat-fails+lstat-succeeds as indicating
61657         a dangling symlink.  That can also happen at least for ELOOP.
61658         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
61659         FYI, this bug predates the inclusion of fts.c in coreutils.
61660
61661         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
61662         in their own block, so pre-c99 compilers don't object.
61663
61664         Avoid the double-free (first in fts_read, second in fts_close) that
61665         would occur when an `active' directory is made inaccessible (e.g.,
61666         via chmod a-x) during a traversal.
61667         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
61668         before returning.  Reproduce this failure by
61669         mkdir -p a/b; cd a; chmod a-x . b
61670         Reported by Stavros Passas.
61671
61672 2006-01-25  Jim Meyering  <jim@meyering.net>
61673
61674         * lib/fileblocks.c: Remove more useless parentheses.
61675         * lib/readutmp.h: Likewise.
61676
61677 2006-01-25  Bruno Haible  <bruno@clisp.org>
61678
61679         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
61680         warnings.
61681         Reported by Paul Eggert.
61682
61683 2006-01-25  Bruno Haible  <bruno@clisp.org>
61684
61685         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
61686         rid of a trap command. For Solaris sh.
61687         Reported by Mark D. Baushke <mdb@gnu.org>.
61688
61689 2006-01-24  Simon Josefsson  <jas@extundo.com>
61690
61691         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
61692         Bruno.
61693
61694 2006-01-24  Karl Berry  <karl@gnu.org>
61695
61696         * config/srclist.txt (argp-namefrob.h): sync lost.
61697
61698 2006-01-24  Jim Meyering  <jim@meyering.net>
61699
61700         * modules/openat (Files): Add lib/intprops.h.
61701         From Mark D. Baushke.
61702
61703 2006-01-24  Jim Meyering  <jim@meyering.net>
61704
61705         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
61706         Reported by Mark D. Baushke.
61707
61708 2006-01-24  Jim Meyering  <jim@meyering.net>
61709
61710         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
61711
61712 2006-01-24  Bruno Haible  <bruno@clisp.org>
61713
61714         * modules/strnlen (Maintainer): Change from glibc to all.
61715
61716 2006-01-24  Bruno Haible  <bruno@clisp.org>
61717
61718         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
61719         Patch by Paul Eggert.
61720
61721 2006-01-24  Bruno Haible  <bruno@clisp.org>
61722
61723         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
61724         already has it.
61725         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
61726         2005-11-26.
61727
61728         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
61729         'signed char' to avoid problems with the built-in _Bool type.
61730         Reported by Paul Eggert on 2005-11-26.
61731
61732 2006-01-24  Bruno Haible  <bruno@clisp.org>
61733
61734         * gnulib-tool (func_import): Avoid constructing complicated sed
61735         expressions inside backquote.
61736         Report and solution by Mark D. Baushke <mdb@gnu.org>.
61737
61738 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
61739
61740         These changes imported from libc.
61741         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
61742         test and two separate function calls.
61743         * lib/strndup.c (__strndup): Add libc_hidden_def.
61744
61745 2006-01-23  Simon Josefsson  <jas@extundo.com>
61746
61747         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
61748         Remove the test_*_SOURCES variable: automake infers it by default.
61749         * modules/tls-tests: Likewise.
61750
61751 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61752
61753         Work around porting bugs reported by Dieter in
61754         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
61755         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
61756         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
61757         Include "getopt.h" first, to check interface.
61758         (getenv): Declare only if defined HAVE_DECL_GETENV &&
61759         !HAVE_DECL_GETENV.
61760         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
61761         (__strndup): Revert to K&R-style function dfns, the glibc style.
61762         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
61763         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
61764         Include strnlen.h first, to get prototype properly.
61765         (strnlen): Renamed from __strnlen.
61766         Remove weak alias.
61767
61768 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61769
61770         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
61771
61772 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61773
61774         * config/srclist.txt: Adjust to reflect glibc reorganization.
61775         This affects only comments.
61776
61777 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61778
61779          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
61780          Reported by Bruce Korb <bkorb@gnu.org>.
61781
61782 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61783
61784         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
61785         to pacify gcc -Wswitch-default.
61786
61787 2006-01-22  Bruno Haible  <bruno@clisp.org>
61788
61789         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
61790         temporary buffer for sprintf, take into account the precision also
61791         for 'd', 'i', 'u', 'o', 'x', 'X'.
61792
61793 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61794
61795         * modules/argp-tests: New module
61796         * tests/test-argp.c: New file
61797         * tests/test-argp-2.sh: New file
61798
61799 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
61800
61801         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
61802         (__argp_base_name): Removed
61803         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
61804         typo.
61805         (__argp_base_name): Provide macro definition or extern declaration
61806         depending on the configuration
61807
61808 2006-01-20  Simon Josefsson  <jas@extundo.com>
61809
61810         * modules/inet_ntop (Depends-on): Depend on sys_socket.
61811
61812 2006-01-20  Simon Josefsson  <jas@extundo.com>
61813
61814         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
61815
61816 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61817
61818         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
61819         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
61820         Suggested by Bruno Haible.
61821
61822 2006-01-20  Karl Berry  <karl@gnu.org>
61823
61824         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
61825         until changes propagate, I guess.
61826
61827 2006-01-19  Simon Josefsson  <jas@extundo.com>
61828
61829         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
61830
61831 2006-01-19  Simon Josefsson  <jas@extundo.com>
61832
61833         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
61834
61835 2006-01-19  Simon Josefsson  <jas@extundo.com>
61836
61837         * gnulib-tool: Set check_PROGRAMS.
61838
61839         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61840         modules/des-tests, modules/gc-arcfour-tests,
61841         modules/gc-arctwo-tests, modules/gc-des-tests,
61842         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61843         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61844         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61845         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61846         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61847         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
61848         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
61849         test_*_SOURCES.
61850
61851 2006-01-18  Simon Josefsson  <jas@extundo.com>
61852
61853         * modules/socklen (Depends-on): Depend on sys_socket.
61854
61855 2006-01-18  Simon Josefsson  <jas@extundo.com>
61856
61857         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
61858         modules/des-tests, modules/gc-arcfour-tests,
61859         modules/gc-arctwo-tests, modules/gc-des-tests,
61860         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
61861         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
61862         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
61863         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
61864         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
61865         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
61866         $(EXEEXT) to automake TESTS variable, for mingw32.
61867
61868 2006-01-17  Simon Josefsson  <jas@extundo.com>
61869
61870         * modules/socklen (Include): Need sys/socket.h.
61871
61872 2006-01-17  Bruno Haible  <bruno@clisp.org>
61873
61874         * modules/ssize_t (Include): Add <sys/types.h>.
61875
61876 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
61877
61878         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
61879         it's not portable and it doesn't work with cross-compiles.
61880         Problem reported by Bruno Haible.  Fix missing-$ typo in
61881         'test "gl_cv_ignore_unused_libraries" ...' that prevented
61882         -zignore from being used with Sun's C compiler.
61883
61884 2006-01-12  Simon Josefsson  <jas@extundo.com>
61885
61886         * lib/base64.c: Fix warning, reported by Bruno Haible
61887         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
61888
61889 2006-01-12  Bruno Haible  <bruno@clisp.org>
61890
61891         * modules/ldd: New file.
61892         * build-aux/ldd.sh.in: New file.
61893         * MODULES.html.sh (Support for building libraries and executables): Add
61894         ldd.
61895
61896 2006-01-12  Bruno Haible  <bruno@clisp.org>
61897
61898         * m4/ldd.m4: New file.
61899
61900 2006-01-12  Bruno Haible  <bruno@clisp.org>
61901
61902         * gnulib-tool (func_import, func_create_testdir): Don't go into an
61903         endless loop while replacing $auxdir with build-aux.
61904
61905 2006-01-11  Simon Josefsson  <jas@extundo.com>
61906
61907         * lib/stdint_.h (SIZE_MAX): Add missing (.
61908
61909 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
61910
61911         Sync from coreutils.
61912         * lib/md5.c: Fix commentary typos.
61913         (alignof, UNALIGNED_P): No need for a GCC-specific version.
61914         * lib/md5.h (__attribute__): Remove; unused.
61915         * lib/sha1.c: Fix commentary to match md5 better.
61916         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
61917         so that we don't need to worry about alignment.  All uses changed.
61918         This merges the 2005-10-28 md5 change into sha1.
61919
61920 2006-01-11  Jim Meyering  <jim@meyering.net>
61921
61922         Sync from coreutils.
61923         * lib/md5.c (OP): Fix spacing.
61924
61925 2006-01-11  Bruno Haible  <bruno@clisp.org>
61926
61927         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61928         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
61929         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
61930
61931 2006-01-11  Bruno Haible  <bruno@clisp.org>
61932
61933         Ensure automatic ordering between gl_LOCK and gl_ARGP.
61934         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
61935         the "early" section as well.
61936
61937 2006-01-11  Bruno Haible  <bruno@clisp.org>
61938
61939         Avoid "ar: no archive members specified" error on MacOS X.
61940         * gnulib-tool (func_modules_add_dummy): New function.
61941         (func_import, func_create_testdir): Invoke it.
61942
61943 2006-01-11  Bruno Haible  <bruno@clisp.org>
61944
61945         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
61946         with $auxdir in AC_CONFIG_FILES statements.
61947
61948 2006-01-11  Bruno Haible  <bruno@clisp.org>
61949
61950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61951         Initialize also noinst_HEADERS to empty.
61952
61953 2006-01-11  Bruno Haible  <bruno@clisp.org>
61954
61955         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
61956         variables.
61957         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
61958         autoreconf.
61959
61960 2006-01-11  Bruno Haible  <bruno@clisp.org>
61961
61962         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
61963         overridable by the user.
61964         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61965
61966 2006-01-10  Simon Josefsson  <jas@extundo.com>
61967
61968         * modules/sys_socket: New file.
61969
61970 2006-01-10  Simon Josefsson  <jas@extundo.com>
61971
61972         * m4/sys_socket_h.m4: New file.
61973
61974 2006-01-10  Simon Josefsson  <jas@extundo.com>
61975
61976         * lib/socket_.h: New file.
61977
61978 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61979
61980         * modules/readutmp (Maintainer): Add myself.
61981
61982 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61983
61984         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
61985         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
61986         People who are still concerned with buggy memcmp implementations
61987         can invoke gl_FUNC_MEMCMP themselves.
61988
61989 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61990
61991         * lib/regex_internal.h (BITSET_WORD_BITS):
61992         Work around a bug in 64-bit PGC (before version 6.1-2), where the
61993         preprocessor mishandles large unsigned values as if they were signed.
61994         Problem reported by Claudio Fontana in
61995         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
61996
61997 2006-01-10  Jim Meyering  <jim@meyering.net>
61998
61999         Avoid the double-free (first in fts_read, second in fts_close) that
62000         would occur when an `active' directory is made inaccessible (e.g.,
62001         via chmod a-x) during a traversal.
62002         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62003         before returning.  Reproduce this failure by
62004         mkdir -p a/b; cd a; chmod a-x . b
62005         Reported by Stavros Passas.
62006
62007         Sync from coreutils.
62008         * lib/sha1.c: Tweak grammar in a comment.
62009
62010 2006-01-10  Jim Meyering  <jim@meyering.net>
62011
62012         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62013         Patch by Joerg Sonnenberger.
62014
62015 2006-01-10  Bruno Haible  <bruno@clisp.org>
62016
62017         * modules/readutmp: Depend on module free.
62018         * modules/strtok_r: Depend on module restrict.
62019
62020 2006-01-10  Bruno Haible  <bruno@clisp.org>
62021
62022         * modules/gettext (configure.ac): Add an invocation of
62023         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62024
62025 2006-01-10  Bruno Haible  <bruno@clisp.org>
62026
62027         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62028         Reported by Werner Lemberg <wl@gnu.org>.
62029
62030 2006-01-10  Bruno Haible  <bruno@clisp.org>
62031
62032         * lib/localcharset.c: Update from GNU gettext.
62033
62034 2006-01-10  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/argp.h (__const): Remove macro. Use const instead.
62037         * lib/argp-fmtstream.h (__const): Likewise.
62038         * lib/glob_.h (__const): Remove macro.
62039         * lib/glob-libc.h: Use const instead of __const.
62040
62041 2006-01-10  Bruno Haible  <bruno@clisp.org>
62042
62043         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62044         variable.
62045         Needed to avoid an automake error regarding the 'gettext' module.
62046
62047 2006-01-09  Simon Josefsson  <jas@extundo.com>
62048
62049         * modules/inet_ntop (Depends-on): Add restrict.
62050
62051 2006-01-09  Simon Josefsson  <jas@extundo.com>
62052
62053         * modules/gc-rijndael-tests (License): Put under LGPL.
62054
62055         * modules/gc-des-tests (License): Likewise.
62056
62057         * modules/gc-arcfour-tests (License): Likewise.
62058
62059         * modules/gc-arctwo-tests (License): Likewise.
62060
62061         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62062
62063         * modules/gc-hmac-sha1-tests (Files): Likewise.
62064
62065         * modules/gc-hmac-md5-tests (License): Likewise.
62066
62067         * modules/gc-sha1-tests (License): Likewise.
62068
62069         * modules/gc-md5-tests (License): Likewise.
62070
62071         * modules/gc-md4-tests (License): Likewise.
62072
62073         * modules/gc-md2-tests (License): Likewise.
62074
62075         * modules/gc-tests (License): Likewise.
62076
62077         * modules/des-tests (License): Likewise.
62078
62079         * modules/md4-tests (License): Likewise.
62080
62081         * modules/md2-tests (License): Likewise.
62082
62083 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62084
62085         Sync from coreutils:
62086
62087         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62088         * modules/lib-ignore: New file.
62089         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62090         chdir-safer.m4, lchmod.m4.
62091         * modules/openat: Add mkdirat.c, openat-priv.h.
62092
62093 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62094
62095         Sync from coreutils.
62096         * m4/lib-ignore.m4: New file.
62097         * m4/lchmod.m4: New file.
62098
62099 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         Sync from coreutils.
62102         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62103         for write access: POSIX says that must fail.
62104         * lib/fts.c (diropen): Likewise.
62105         * lib/save-cwd.c (save_cwd): Likewise.
62106         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62107         well, for minor improvements on hosts that lack O_DIRECTORY.
62108         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62109         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62110         Fall back on chown if open failed with EACCES.
62111
62112         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62113         Report an error at compile-time if only a 1-second nominal clock
62114         resolution is found.
62115
62116         * lib/lchmod.h: New file.
62117         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62118         (make_dir_parents): Use lchown rather than chown, and
62119         lchmod rather than chmod.
62120
62121         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62122         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62123         "proc" reported by n0dalus.
62124
62125         * lib/mountlist.c: Include <limits.h>.
62126         (dev_from_mount_options)
62127         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62128         New function.  It no longer assumes "dev=" has the System V meaning
62129         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62130         (read_file_system_list)
62131         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62132         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62133         dev= in that case.
62134
62135         * lib/posixtm.h (PDS_PRE_2000): New macro.
62136         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62137         allow_century.  All usages changed.  Reject dates outside the range
62138         1969-1999 if PDS_PRE_2000 is used.
62139
62140 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         Sync from coreutils.
62143         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62144         (Time of day items): Mention the possibility of leap seconds.
62145         Problem reported by Dr. David Alan Gilbert.
62146
62147 2006-01-09  Jim Meyering  <jim@meyering.net>
62148
62149         Sync from coreutils.
62150
62151         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62152
62153         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62154
62155         * lib/modechange.c (mode_compile): Reject an invalid mode string
62156         that starts with an octal digit.  From Andreas Gruenbacher.
62157
62158         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62159         and dup to open_safer and dup_safer, respectively.
62160         (openat_permissive): Fix typo in comment.
62161
62162         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62163         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62164         (_): Remove; no longer needed.
62165         (openat): Renamed from rpl_openat; no need for rpl_openat
62166         since openat.h renames openat for us.
62167         Replace most of the body with a call to openat_permissive,
62168         to avoid duplicate code.
62169         Port to (probably hypothetical) environments were mode_t is
62170         wider than int.
62171         (openat_permissive): Require mode arg, so that we can check
62172         types better.  Put it just after flags.  Change cwd failure
62173         indicator from pointer-to-bool to pointer-to-errno-value.
62174         All callers changed.
62175         Invoke openat_save_fail and/or openat_restore_fail if
62176         cwd_errno is null, so that openat can call us.
62177         (openat_permissive, fdopendir, fstatat, unlinkat):
62178         Simplify errno handling to avoid some duplicate code,
62179         as it's OK to set errno on success.
62180         * lib/openat.h: Revamp code so that function macros depend on
62181         __OPENAT_PREFIX only, not also on AT_FDCWD.
62182         (openat_ro): Remove.  Caller changed to use openat_permissive.
62183         (openat_permissive): Now a macro, if not a function.
62184         (openat_restore_fail, openat_save_fail): Now always functions,
62185         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62186
62187         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62188         and openat.c.
62189         * lib/mkdirat.c: Include openat-priv.h.
62190         Remove definitions of macros defined therein.
62191         * lib/openat.c: Likewise.
62192
62193         * lib/mkdirat.c (mkdirat): New file and function.
62194         * lib/openat.h (mkdirat): Declare.
62195
62196         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62197
62198         * lib/openat.h (openat_permissive): Declare.
62199         (openat_ro): Define.
62200
62201         * lib/openat.c (EXPECTED_ERRNO): New macro.
62202         (openat_permissive): New function -- used in remove.c rewrite.
62203         (all functions): Set errno just before returning, only if there
62204         was an actual failure.
62205         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
62206
62207         Emulate openat-family functions using Linux's procfs, if possible.
62208         Idea and some code based on Ulrich Drepper's glibc changes.
62209
62210         * lib/openat.c: (BUILD_PROC_NAME): New macro.
62211         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
62212         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
62213         before falling back on save_cwd and restore_cwd.
62214         (fdopendir, fstatat, unlinkat): Likewise.
62215
62216         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
62217         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
62218
62219         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
62220         as second argument to va_arg.  Otherwise, some versions of gcc
62221         warn that `if this code is reached, the program will abort'.
62222
62223 2006-01-09  Jim Meyering  <jim@meyering.net>
62224
62225         Sync from coreutils.
62226         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
62227         Require openat-priv.h.
62228
62229 2006-01-09  Bruno Haible  <bruno@clisp.org>
62230
62231         * modules/strnlen (Include): Use strnlen.h.
62232
62233 2006-01-09  Bruno Haible  <bruno@clisp.org>
62234
62235         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
62236
62237 2006-01-09  Bruno Haible  <bruno@clisp.org>
62238
62239         * lib/sysexit_.h (EX_OK): New macro.
62240         Suggested by Martin Lambers <marlam@marlam.de>.
62241
62242 2006-01-09  Bruno Haible  <bruno@clisp.org>
62243
62244         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
62245         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
62246
62247 2006-01-09  Bruno Haible  <bruno@clisp.org>
62248
62249         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
62250         numbers.
62251
62252 2006-01-09  Bruno Haible  <bruno@clisp.org>
62253
62254         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
62255         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
62256         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
62257         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
62258
62259 2006-01-09  Bruno Haible  <bruno@clisp.org>
62260
62261         * build-aux/javacomp.sh.in: New file, moved from lib/.
62262         * modules/javacomp-script (Files): Update.
62263         (configure.ac): Add AC_CONFIG_FILES invocation.
62264         (EXTRA_DIST): Remove variable.
62265
62266         * build-aux/javaexec.sh.in: New file, moved from lib/.
62267         * modules/javaexec (Files): Update.
62268         (configure.ac): Add AC_CONFIG_FILES invocation.
62269         (EXTRA_DIST): Remove javaexec.sh.in.
62270
62271         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
62272         * modules/csharpcomp-script (Files): Update.
62273         (configure.ac): Add AC_CONFIG_FILES invocation.
62274         (EXTRA_DIST): Remove variable.
62275
62276         * build-aux/csharpexec.sh.in: New file, moved from lib/.
62277         * modules/csharpexec (Files): Update.
62278         (configure.ac): Add AC_CONFIG_FILES invocation.
62279         (EXTRA_DIST): Remove csharpexec.sh.in.
62280
62281 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62282
62283         Sync from coreutils.
62284
62285         Add POSIX ACL support
62286         * lib/acl.h (copy_acl, set_acl): Add declarations.
62287         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
62288         systems other than Linux.
62289         (chmod_or_fchmod): New function: use fchmod when possible,
62290         and chmod otherwise.
62291         (file_has_acl): Add a POSIX ACL implementation, with a
62292         Linux-specific subcase.
62293         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
62294         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
62295         acls are unsupported.
62296         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
62297         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
62298         are unsupported.
62299
62300 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
62301
62302         Sync from coreutils.
62303         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
62304
62305 2006-01-07  Bruno Haible  <bruno@clisp.org>
62306
62307         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
62308         gl_EARLY.
62309
62310 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62311
62312         * lib/strftime.c (tzname): Don't declare if it is already #defined.
62313         Problem reported for Mingw by Mark Junker.
62314
62315 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62316
62317         * README: Gnulib normally doesn't generate a tarball.
62318
62319 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
62320
62321         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
62322         long int, not int, for nanosecond counts, so that people who are
62323         used to POSIX struct timespec won't be surprised.  Reported by Jim
62324         Meyering.
62325
62326 2005-12-28  Bruno Haible  <bruno@clisp.org>
62327
62328         * build-aux/config.rpath: Update from GNU gettext.
62329
62330 2005-12-16  Jim Meyering  <jim@meyering.net>
62331
62332         * modules/fprintftime: New module.
62333         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
62334
62335 2005-12-16  Jim Meyering  <jim@meyering.net>
62336
62337         * m4/fprintftime.m4: New file.
62338
62339 2005-12-16  Jim Meyering  <jim@meyering.net>
62340
62341         * lib/fprintftime.c, lib/fprintftime.h: New files.
62342
62343 2005-12-15  Simon Josefsson  <jas@extundo.com>
62344
62345         * modules/socklen (configure.ac): Fix M4 macro name, to align with
62346         new m4/socklen.m4.
62347
62348 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62349
62350         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
62351         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
62352
62353 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62354
62355         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
62356         * lib/argp-help.c (fill_in_uparams): Check if the constructed
62357         struct uparams is valid. Fall back to the default values if it is
62358         not.
62359
62360 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62361
62362         * modules/argp (Files): Add argp-pin.c
62363         (Depends-on): dirname
62364         (lib_SOURCES): Add argp-pin.c
62365
62366 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62367
62368         * m4/argp.m4:  Check if program_invocation_name and
62369         program_invocation_short_name are declared and define appropriate
62370         macros if they are not.
62371
62372 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
62373
62374         * lib/argp-help.c (__argp_base_name): New function
62375         (__argp_short_program_name): Rewrite using __argp_base_name
62376         * lib/argp-namefrob.h: Define program_invocation_name and
62377         program_invocation_short_name if requested
62378         (__argp_base_name): Add prototype
62379         * lib/argp-parse.c (argp_def): Use gettext wrappers
62380         (argp_default_parser): Use __argp_base_name
62381         * lib/argp-pin.c: New file. Defines program_invocation_name and
62382         program_invocation_short_name on systems that lack them.
62383
62384 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62385
62386         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
62387         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62388         porting problem reported by Georg Schwarz in
62389         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62390
62391 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
62392
62393         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
62394         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
62395         porting problem reported by Georg Schwarz in
62396         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
62397
62398 2005-12-05  Bruno Haible  <bruno@clisp.org>
62399
62400         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
62401         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
62402         Reported by Mark Junker <mjscod@gmx.de>.
62403
62404 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
62405
62406         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
62407         Use implementation from Albert Chin, with some
62408         comments/corrections by Stepan Kasal and myself.
62409
62410 2005-12-02  Bruno Haible  <bruno@clisp.org>
62411
62412         * gnulib-tool (func_import): Accept GPLed build tool modules when
62413         --lgpl is given.
62414         * modules/csharpcomp-script: New file.
62415         * modules/csharpcomp: Depend on it.
62416         * modules/javacomp-script: New file.
62417         * modules/javacomp: Depend on it.
62418         Suggested by Simon Josefsson.
62419
62420 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62421
62422         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
62423         statement, to work around an HP-UX 10.20 compiler bug reported by
62424         Peter O'Gorman.
62425
62426 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62427
62428         * modules/savedir (Depends-on): Add openat.
62429
62430 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
62433         (uintmax_t) [defined uintmax_t]: Do not declare.
62434         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
62435         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
62436         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
62437         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
62438         sake of portability to weird hosts that C allows (though we don't
62439         know of any practical examples).
62440
62441         * lib/savedir.h (fdsavedir): New decl.
62442         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
62443         contains most of the former guts of savedir.
62444         (savedir): Use savedirstream.
62445         Include "openat.h".
62446
62447 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62448
62449         * modules/obstack (Files): Add m4/ulonglong.m4.
62450         Problem reported by Davide Angelocola.
62451
62452 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62453
62454         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
62455         coreutils no longer futzes with rounding modes.
62456
62457 2005-11-14  Jim Meyering  <jim@meyering.net>
62458
62459         * lib/mkstemp-safer.c: Include <config.h>, required for possible
62460         replacement of mkstemp.
62461
62462 2005-11-10  Simon Josefsson  <jas@extundo.com>
62463
62464         * lib/readline.c: Remove EOL.
62465
62466 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62467
62468         * modules/gethrxtime (Depends-on): Add gettime.
62469
62470 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62471
62472         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
62473         or gettimeofday; no longer needed.
62474
62475 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
62476
62477         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
62478         time business.
62479         (gethrxtime) [! (HAVE_NANOUPTIME
62480         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
62481         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
62482         our own approximation.
62483
62484 2005-11-08  Eric Blake  <ebb9@byu.net>
62485
62486         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62487
62488 2005-11-08  Eric Blake  <ebb9@byu.net>
62489
62490         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
62491
62492 2005-11-04  Bruno Haible  <bruno@clisp.org>
62493
62494         * gnulib-tool: Implement --update mode.
62495
62496 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         Fix porting problem reported by Theodoros V. Kalamatianos.
62499         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
62500         Don't assume that futimes failing means we must fail.
62501
62502 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62503
62504         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
62505         variables to suggest the intended function of the PATH_MAX check.
62506
62507 2005-10-30  Kean Johnston  <jkj@sco.com>
62508
62509         Trivial changes to support SCO systems.
62510         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
62511         as PATH_MAX.
62512         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
62513         where __ptr is null when no I/O is pending.
62514
62515 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62516
62517         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
62518         leave errno alone.  Problem reported by Dmitry V. Levin.
62519
62520 2005-10-28  Simon Josefsson  <jas@extundo.com>
62521
62522         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
62523         Test more.
62524
62525         * tests/test-gc-md2.c, tests/test-md2.c: New files.
62526
62527         * modules/md2, modules/md2-tests: New files.
62528
62529 2005-10-28  Simon Josefsson  <jas@extundo.com>
62530
62531         * m4/inet_ntop.m4: More tests.
62532
62533         * m4/gc-md2.m4, md2.m4: New file.
62534
62535 2005-10-28  Simon Josefsson  <jas@extundo.com>
62536
62537         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
62538         "restrict" keywords, as per POSIX.  Protect the function
62539         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
62540         Don't use K&R prototypes.  Check the sprintf return values.
62541         Re-define EAFNOSUPPORT if not present.  Indent.
62542
62543         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
62544         suggested by Bruno Haible <bruno@clisp.org>.
62545
62546         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
62547
62548         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
62549
62550         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
62551         libgcrypt).
62552
62553         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
62554
62555         * lib/md2.h, lib/md2.c: New files.
62556
62557 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
62558
62559         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
62560         errno alone.  Problem reported by Frederic Jolliton.
62561
62562 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62563
62564         * modules/verify (License): Change from GPL to LGPL.  This is a
62565         tiny module and there are apparently near-equivalents that are
62566         under the BSD license.
62567
62568 2005-10-24  Simon Josefsson  <jas@extundo.com>
62569
62570         * modules/sha1: Relicense to LGPL.
62571
62572 2005-10-24  Simon Josefsson  <jas@extundo.com>
62573
62574         * lib/md4.h: Shrink buffer size, now that we changed the type.
62575
62576 2005-10-23  Simon Josefsson  <jas@extundo.com>
62577
62578         * gnulib-tool (func_import): Fix --tests-base.
62579
62580 2005-10-22  Simon Josefsson  <jas@extundo.com>
62581
62582         * modules/arcfour (Depends-on): Need stdint.
62583
62584 2005-10-22  Simon Josefsson  <jas@extundo.com>
62585
62586         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
62587         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
62588
62589 2005-10-22  Simon Josefsson  <jas@extundo.com>
62590
62591         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
62592         suggested by Bruno Haible <bruno@clisp.org>.
62593
62594 2005-10-22  Simon Josefsson  <jas@extundo.com>
62595
62596         * lib/crc.h: Include stddef.h, for size_t.
62597
62598 2005-10-22  Simon Josefsson  <jas@extundo.com>
62599
62600         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
62601         arcfour_context struct (simplify test vector testing in GNU
62602         Shishi).
62603
62604 2005-10-21  Simon Josefsson  <jas@extundo.com>
62605
62606         * modules/des, modules/des-tests: New files.
62607
62608         * modules/gc-des, modules/gc-des-tests: New files.
62609
62610         * tests/test-des.c, tests/test-gc-des.c: New file.
62611
62612 2005-10-21  Simon Josefsson  <jas@extundo.com>
62613
62614         * modules/arctwo, modules/arctwo-tests: New files.
62615
62616         * tests/test-arctwo.c: New file.
62617
62618         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
62619
62620         * tests/test-gc-arctwo.c: New file.
62621
62622 2005-10-21  Simon Josefsson  <jas@extundo.com>
62623
62624         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
62625         Bruno Haible <bruno@clisp.org>.
62626
62627         * m4/gc-des.m4: New file.
62628
62629 2005-10-21  Simon Josefsson  <jas@extundo.com>
62630
62631         * m4/arctwo.m4: New file.
62632
62633         * m4/gc-arctwo.m4: New file.
62634
62635 2005-10-21  Simon Josefsson  <jas@extundo.com>
62636
62637         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
62638         block.
62639
62640 2005-10-21  Simon Josefsson  <jas@extundo.com>
62641
62642         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
62643         <bruno@clisp.org>.
62644
62645         * lib/hmac-sha1.c (hmac_sha1): Likewise.
62646
62647         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
62648         Bruno Haible <bruno@clisp.org>.
62649
62650         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
62651         <bruno@clisp.org>.
62652
62653 2005-10-21  Simon Josefsson  <jas@extundo.com>
62654
62655         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
62656
62657 2005-10-21  Simon Josefsson  <jas@extundo.com>
62658
62659         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
62660
62661 2005-10-21  Simon Josefsson  <jas@extundo.com>
62662
62663         * lib/des.h, lib/des.c: New files.
62664
62665         * lib/gc-gnulib.c: Support DES.c
62666
62667 2005-10-21  Simon Josefsson  <jas@extundo.com>
62668
62669         * lib/arctwo.h, lib/arctwo.c: New files.
62670
62671         * lib/gc-gnulib.c: Support ARCTWO.
62672
62673 2005-10-21  Simon Josefsson  <jas@extundo.com>
62674
62675         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
62676         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62677
62678 2005-10-21  Simon Josefsson  <jas@extundo.com>
62679
62680         * gnulib-tool (func_import, func_create_testdir): Define automake
62681         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
62682         Makefile.am snippet),
62683         suggested by Bruno Haible <bruno@clisp.org>.
62684
62685         * modules/gc (Makefile.am): Use it.
62686
62687 2005-10-21  Bruno Haible  <bruno@clisp.org>
62688
62689         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
62690         patch.
62691
62692 2005-10-19  Simon Josefsson  <jas@extundo.com>
62693
62694         * tests/test-gc-rijndael.c: New file.
62695
62696         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
62697
62698 2005-10-19  Simon Josefsson  <jas@extundo.com>
62699
62700         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
62701         interface too.
62702
62703 2005-10-19  Simon Josefsson  <jas@extundo.com>
62704
62705         * tests/test-gc-arcfour.c: New file.
62706
62707         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
62708
62709 2005-10-19  Simon Josefsson  <jas@extundo.com>
62710
62711         * modules/gc-md4, modules/gc-md4-tests: New file.
62712
62713         * tests/test-gc-md4.c: New file.
62714
62715 2005-10-19  Simon Josefsson  <jas@extundo.com>
62716
62717         * m4/gc-md4.m4: New file.
62718
62719 2005-10-19  Simon Josefsson  <jas@extundo.com>
62720
62721         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
62722         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
62723         <kasal@ucw.cz>.
62724
62725 2005-10-19  Simon Josefsson  <jas@extundo.com>
62726
62727         * m4/gc-arcfour.m4: New file.
62728
62729         * m4/gc-rijndael.m4: New file.
62730
62731 2005-10-19  Simon Josefsson  <jas@extundo.com>
62732
62733         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
62734
62735 2005-10-19  Simon Josefsson  <jas@extundo.com>
62736
62737         * lib/gc-gnulib.c: Support ARCFOUR.
62738
62739 2005-10-19  Simon Josefsson  <jas@extundo.com>
62740
62741         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
62742         support.
62743
62744         * lib/gc.h: Add ECB enum type.
62745
62746         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
62747
62748 2005-10-18  Simon Josefsson  <jas@extundo.com>
62749
62750         * tests/test-md5.c: New file.
62751
62752         * modules/md5-tests: New file.
62753
62754 2005-10-18  Simon Josefsson  <jas@extundo.com>
62755
62756         * tests/test-md4.c: New file.
62757
62758         * modules/md4, modules/md4-tests: New files.
62759
62760 2005-10-18  Simon Josefsson  <jas@extundo.com>
62761
62762         * m4/md4.m4: New file.
62763
62764 2005-10-18  Simon Josefsson  <jas@extundo.com>
62765
62766         * lib/md4.h, lib/md4.c: New files, based on md5.?.
62767
62768 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
62769
62770         * gnulib-tool (func_create_testdir): Omit the second check whether
62771         BUILT_SOURCES in nonempty.
62772
62773 2005-10-17  Simon Josefsson  <jas@extundo.com>
62774
62775         * tests/test-rijndael.c: New file.
62776
62777 2005-10-17  Simon Josefsson  <jas@extundo.com>
62778
62779         * modules/sha1: Depend on stdint instead of md5.
62780
62781         * modules/md5: Depend on stdint, remove uint32_t.
62782
62783 2005-10-17  Simon Josefsson  <jas@extundo.com>
62784
62785         * modules/gc-sha1-tests: New file.
62786
62787         * tests/test-gc-sha1.c: New file.
62788
62789 2005-10-17  Simon Josefsson  <jas@extundo.com>
62790
62791         * m4/md5.m4: Remove call to uint32_t.m4.
62792
62793 2005-10-17  Simon Josefsson  <jas@extundo.com>
62794
62795         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
62796
62797         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
62798         md5.h.
62799
62800         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
62801
62802         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
62803
62804 2005-10-17  Simon Josefsson  <jas@extundo.com>
62805
62806         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
62807
62808 2005-10-17  Simon Josefsson  <jas@extundo.com>
62809
62810         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
62811
62812 2005-10-17  Simon Josefsson  <jas@extundo.com>
62813
62814         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
62815
62816         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
62817
62818 2005-10-17  Bruno Haible  <bruno@clisp.org>
62819
62820         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
62821         that it can also be used in a test.
62822
62823 2005-10-16  Bruno Haible  <bruno@clisp.org>
62824
62825         * gnulib-tool (func_emit_tests_Makefile_am): Also define
62826         TESTS_ENVIRONMENT, so that individual tests can augment it.
62827
62828         * gnulib-tool (func_create_testdir): Use an intermediate target for
62829         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
62830         macros, like $(ALLOCA_H), which cannot be passed through the command
62831         line.
62832
62833 2005-10-15  Simon Josefsson  <jas@extundo.com>
62834
62835         * modules/rijndael-tests: New file.
62836
62837         * modules/rijndael: New file.
62838
62839 2005-10-15  Simon Josefsson  <jas@extundo.com>
62840
62841         * m4/rijndael.m4: New file.
62842
62843 2005-10-15  Simon Josefsson  <jas@extundo.com>
62844
62845         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
62846
62847         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
62848
62849 2005-10-14  Simon Josefsson  <jas@extundo.com>
62850
62851         * tests/test-arcfour.c: New file.
62852
62853         * modules/arcfour, modules/arcfour-tests: New files.
62854
62855 2005-10-14  Simon Josefsson  <jas@extundo.com>
62856
62857         * m4/arcfour.m4: New file.
62858
62859 2005-10-14  Simon Josefsson  <jas@extundo.com>
62860
62861         * lib/arcfour.h, lib/arcfour.c: New files.
62862
62863 2005-10-14  Roland McGrath  <roland@redhat.com>
62864
62865         Import from libc.  [BZ #1331]
62866         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
62867         macro argument.
62868         Reported by Matej Vela <vela@debian.org>.
62869
62870 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62871
62872         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
62873         include <wchar.h>; no longer needed.
62874
62875 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62876
62877         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
62878
62879 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
62880         and  Ulrich Drepper  <drepper@redhat.com>
62881
62882         Import from libc.
62883         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
62884         instead of inline stream orientation test and two separate
62885         function calls.  Pay no attention to USE_IN_LIBIO.
62886
62887 2005-10-13  Simon Josefsson  <jas@extundo.com>
62888
62889         * modules/gc-hmac-md5-tests: New file.
62890
62891         * tests/test-gc-hmac-sha1.c: New file.
62892
62893         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
62894
62895         * modules/gc-hmac-md5-tests: New file.
62896
62897         * tests/test-gc-md5.c: New file.
62898
62899         * modules/gc-md5-tests: New file.
62900
62901 2005-10-13  Simon Josefsson  <jas@extundo.com>
62902
62903         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
62904         Move memory allocation outside of loop.
62905
62906 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62907
62908         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
62909         intermediate directory is in a read-only file system.  Problem
62910         reported by Eric Blake.
62911
62912 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
62913
62914         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
62915
62916 2005-10-12  Simon Josefsson  <jas@extundo.com>
62917
62918         * tests/test-hmac-sha1.c: New file.
62919
62920         * modules/hmac-sha1-tests: New file.
62921
62922         * modules/hmac-sha1: New file.
62923
62924 2005-10-12  Simon Josefsson  <jas@extundo.com>
62925
62926         * modules/gc-sha1: New file.
62927
62928 2005-10-12  Simon Josefsson  <jas@extundo.com>
62929
62930         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
62931
62932         * tests/test-gc-pbkdf2-sha1.c: New file.
62933
62934 2005-10-12  Simon Josefsson  <jas@extundo.com>
62935
62936         * modules/gc-md5, modules/gc-hmac-md5: New files.
62937
62938         * modules/gc (Files): Remove md5, memxor and hmac files.
62939
62940 2005-10-12  Simon Josefsson  <jas@extundo.com>
62941
62942         * m4/gc-pbkdf2-sha1.m4: New file.
62943
62944         * m4/gc-hmac-sha1.m4: New file.
62945
62946         * m4/gc-sha1: New file.
62947
62948         * m4/hmac-sha1.m4: New file.
62949
62950 2005-10-12  Simon Josefsson  <jas@extundo.com>
62951
62952         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
62953
62954         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
62955
62956 2005-10-12  Simon Josefsson  <jas@extundo.com>
62957
62958         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
62959         suggested by Bruno Haible <bruno@clisp.org>.
62960
62961 2005-10-12  Simon Josefsson  <jas@extundo.com>
62962
62963         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
62964
62965 2005-10-12  Simon Josefsson  <jas@extundo.com>
62966
62967         * lib/gc-pbkdf2-sha1.c: New file.
62968
62969         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
62970
62971 2005-10-12  Simon Josefsson  <jas@extundo.com>
62972
62973         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
62974
62975         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
62976
62977 2005-10-12  Simon Josefsson  <jas@extundo.com>
62978
62979         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
62980         GC_USE_HMAC_MD5, respectively.
62981
62982         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
62983         (gc_md5): Fix typo.
62984
62985         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
62986
62987         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
62988
62989         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
62990
62991 2005-10-12  Bruno Haible  <bruno@clisp.org>
62992
62993         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
62994         Reported by Stepan Kasal <kasal@ucw.cz>.
62995
62996 2005-10-11  Simon Josefsson  <jas@extundo.com>
62997
62998         * tests/test-crc.c: New file.
62999
63000         * modules/crc, modules/crc-tests: New files.
63001
63002 2005-10-11  Simon Josefsson  <jas@extundo.com>
63003
63004         * m4/crc.m4: New file.
63005
63006 2005-10-11  Simon Josefsson  <jas@extundo.com>
63007
63008         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63009
63010         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63011
63012         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63013
63014 2005-10-11  Simon Josefsson  <jas@extundo.com>
63015
63016         * lib/crc.h, lib/crc.c: New files.
63017
63018         * lib/gc.h (gc_hash_buffer): Add doc.
63019
63020 2005-10-11  Bruno Haible  <bruno@clisp.org>
63021
63022         * modules/c-strcasestr: New file.
63023         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63024
63025 2005-10-11  Bruno Haible  <bruno@clisp.org>
63026
63027         * modules/c-strcase: New file.
63028         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63029
63030 2005-10-11  Bruno Haible  <bruno@clisp.org>
63031
63032         * lib/strcasecmp.c: Include limits.h.
63033         (strcasecmp): Avoid integer overflow on exotic platforms.
63034         * lib/strncasecmp.c: Include limits.h.
63035         (strncasecmp): Avoid integer overflow on exotic platforms.
63036         Reported by Paul Eggert.
63037
63038 2005-10-11  Bruno Haible  <bruno@clisp.org>
63039
63040         * lib/c-strcasestr.h: New file, from GNU gettext.
63041         * lib/c-strcasestr.c: New file, from GNU gettext.
63042
63043 2005-10-11  Bruno Haible  <bruno@clisp.org>
63044
63045         * lib/c-strcase.h: New file, from GNU gettext.
63046         * lib/c-strcasecmp.c: New file, from GNU gettext.
63047         * lib/c-strncasecmp.c: New file, from GNU gettext.
63048
63049 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63050
63051         * modules/mempcpy (License): GPL -> LGPL.
63052         * modules/strchrnul (License): Likewise.
63053         * modules/sysexits (License): Likewise.
63054
63055 2005-10-08  Simon Josefsson  <jas@extundo.com>
63056
63057         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63058
63059 2005-10-07  Simon Josefsson  <jas@extundo.com>
63060
63061         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63062
63063 2005-10-06  Simon Josefsson  <jas@extundo.com>
63064
63065         * tests/test-hmac-md5.c: New file.
63066
63067         * modules/hmac-md5-tests: New file.
63068
63069         * modules/hmac-md5: New file.
63070
63071 2005-10-06  Simon Josefsson  <jas@extundo.com>
63072
63073         * m4/hmac-md5.m4: New file.
63074
63075         * m4/memxor.m4: Require gl_C_RESTRICT.
63076
63077 2005-10-06  Simon Josefsson  <jas@extundo.com>
63078
63079         * lib/memxor.c (memxor): Avoid casts and warnings.
63080
63081 2005-10-06  Simon Josefsson  <jas@extundo.com>
63082
63083         * lib/hmac-md5.c: New file.
63084
63085         * lib/hmac.h: New file.
63086
63087 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63088
63089         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63090         promotes to int, not unsigned int, to catch the AIX 5.3
63091         compiler bug.
63092
63093 2005-10-05  Simon Josefsson  <jas@extundo.com>
63094
63095         * modules/memxor: New file.
63096
63097         * modules/iconv (Files): Move config.rpath to havelib, it is used
63098         there.
63099
63100         * modules/havelib (Files): Add config.rpath.
63101
63102 2005-10-05  Simon Josefsson  <jas@extundo.com>
63103
63104         * m4/memxor.m4: New file.
63105
63106 2005-10-05  Simon Josefsson  <jas@extundo.com>
63107
63108         * lib/memxor.c (memxor): Fix compiler error.
63109
63110         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63111         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63112
63113         * lib/memxor.h, lib/memxor.c: New files.
63114
63115         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63116         we assume all systems have it, suggested by Jim Meyering
63117         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63118         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63119         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63120         same reasons.
63121
63122 2005-10-05  Simon Josefsson  <jas@extundo.com>
63123
63124         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63125
63126 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63129         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63130         needed, since the source code now assumes these .h files.
63131
63132 2005-10-05  Derek Price  <derek@ximbiot.com>
63133
63134         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63135
63136 2005-10-05  Bruno Haible  <bruno@clisp.org>
63137
63138         * modules/stdint (License): Change to LGPL.
63139
63140 2005-10-04  Simon Josefsson  <jas@extundo.com>
63141
63142         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63143         D. Baushke" <mdb@gnu.org>.
63144
63145 2005-10-04  Bruno Haible  <bruno@clisp.org>
63146
63147         * lib/verify.h (verify_true): Provide alternative definition for C++.
63148
63149 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63150
63151         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63152         (SSIZE_MAX): New macro, if not already defined.
63153         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63154         than 2 GiB.
63155
63156 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63157
63158         Sync from coreutils.
63159         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63160         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63161         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63162         ULLONG_MAX doesn't work with 2.7.2.1.
63163
63164 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63165
63166         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63167         From Ben Pfaff.
63168
63169         * modules/exclude (Depends-on): Depend on verify.
63170         * modules/strtoimax (Depends-on): Likewise.
63171         * modules/utimecmp (Depends-on): Likewise.
63172
63173 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         * lib/exclude.c: Include verify.h.
63176         (verify): Remove.  All callers changed to use verify.h's version.
63177         * lib/strtoimax.c: Likewise.
63178         * lib/utimecmp.c: Likewis.e
63179
63180         Sync from coreutils.
63181         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63182         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63183         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63184         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63185         bother returning ENOSYS if settimeofday or stime fails; just let
63186         them return whatever errno they want to return.
63187         * lib/utimens.c: Include unistd.h, for dup2.
63188         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63189         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63190
63191 2005-10-02  Jim Meyering  <jim@meyering.net>
63192
63193         Sync from coreutils.
63194         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63195         from glibc-2.2.5 that fails for read-only files.
63196
63197 2005-10-02  Jim Meyering  <jim@meyering.net>
63198
63199         Sync from coreutils.
63200         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63201         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63202         `#if HAVE_CONFIG_H'.
63203         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63204         Remove AT_FDCWD test.
63205         Do not consume the fd unless successful.
63206         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
63207         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
63208         block, so that we don't even try to compile it if settimeofday is
63209         available.  This works around a compilation failure on OSF1 V5.1,
63210         due to stime requiring a `long int*' while tv_sec is `int'.
63211
63212 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
63213
63214         Sync from coreutils.
63215         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
63216         against `yes', rather than just testing for nonempty.
63217
63218 2005-10-01  Simon Josefsson  <jas@extundo.com>
63219
63220         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
63221         and Darwin.
63222
63223         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
63224         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
63225         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
63226         freeaddrinfo and gai_strerror are declared by the POSIX headers.
63227         Check if struct addrinfo is declared.
63228
63229 2005-10-01  Simon Josefsson  <jas@extundo.com>
63230
63231         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
63232         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
63233         AI_* and EAI_* definitions.  Protect function declarations.
63234
63235 2005-10-01  Jim Meyering  <jim@meyering.net>
63236
63237         Sync from coreutils.
63238
63239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
63240         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
63241         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
63242         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63243         in the inet and nsl libraries.  Required on Solaris 5.7.
63244
63245 2005-10-01  Jim Meyering  <jim@meyering.net>
63246
63247         Sync from coreutils.
63248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
63249         in the inet and nsl libraries.  Required on Solaris 5.7.
63250
63251 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
63252
63253         * lib/getdelim.c (getdelim): Remove unused variables.
63254
63255 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63256
63257         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
63258         so that the code works even with ancient cpp.  Portability problem
63259         with GCC 2.7.2.1 reported by Thomas M.Ott.
63260
63261 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63262
63263         * modules/regex (Depends-on): Add strcase.
63264
63265         * modules/gethostname (Licence): Change from GPL to LGPL, since
63266         gethostname.c is a trivial implementation of a standard library
63267         function.
63268         * modules/poll (License): Change from GPL to LGPL, since it's
63269         derived from LGPL code.
63270
63271 2005-09-27  Jim Meyering  <jim@meyering.net>
63272
63273         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
63274         HAVE_CONFIG_H.
63275
63276         * lib/intprops.h (signed_type_or_expr__): Define.
63277         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
63278         for unsigned types.
63279
63280 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63281
63282         * lib/verify.h (verify_expr): Remove, replacing with:
63283         (verify_true): New macro that returns true instead of void.
63284         (verify_type__): Remove.
63285         (verify): Use verify_true rather than verify_type__.
63286
63287 2005-09-26  Bruno Haible  <bruno@clisp.org>
63288
63289         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
63290         is necessary.
63291         (lib_SOURCES): Remove mbchar.c.
63292         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
63293         (Files): Add m4/mbrtowc.m4.
63294         * modules/mbiter: Likewise.
63295         * modules/mbuiter: Likewise.
63296
63297 2005-09-26  Bruno Haible  <bruno@clisp.org>
63298
63299         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
63300         compile mbchar.c if they are not both present.
63301         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
63302         * m4/mbiter.m4 (gl_MBITER): Likewise.
63303         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
63304         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
63305         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
63306
63307 2005-09-25  Jim Meyering  <jim@meyering.net>
63308
63309         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
63310         also uses socklen_t.
63311
63312 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
63313
63314         * lib/utimens.c (ENOSYS): Define if not already defined.
63315         (futimens): Support having a null PATH if the file descriptor
63316         is nonnegative.
63317
63318         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
63319         Remove.
63320         (__attribute): Define to empty unless GCC 3.1 or later.
63321         This works around a core dump on OpenBSD 3.4, which has GCC
63322         2.95.3, which dumps core when given __attribute__(()).  It also
63323         simplifies other tests, since we really don't want to bother with
63324         worrying about which ancient version of GCC supported what.
63325         Original problem reported by Yoann Vandoorselaere, with part of
63326         the fix suggested by Derek Price.
63327
63328 2005-09-24  Jim Meyering  <jim@meyering.net>
63329
63330         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
63331         so we can once again use a positive bitfield width of 1 -- now we
63332         don't have to explain why we were using a bitfield width of 2.
63333
63334 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63335
63336         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
63337         and similarly for the other external symbols.  Problem reported
63338         by James Gallager.
63339
63340         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
63341         bug reported by Jim Meyering.
63342
63343         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
63344         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
63345         not needed, since socklen is a prerequisite module.
63346
63347 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
63350         Problem reported by Eric Blake.
63351         (getaddrinfo): Initialize se so that it's not garbage.
63352         Redo internal storage allocation so that it doesn't make unportable
63353         assumptions about alignment.
63354         Fix a memory leak.
63355
63356         * lib/utimens.c (futimens): Use futimesat if available.
63357         Prefer it to futimes since it doesn't have the futimes bug.
63358
63359         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
63360         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
63361         Instead, declare a function that returns a pointer to an array,
63362         and use verify_type__ to declare the size of the array.
63363         Problem and germ of a solution reported by Bruno Haible.
63364         (verify_type__): Use 2, not 1, for bitfield size, to avoid
63365         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
63366
63367 2005-09-23  Jim Meyering  <jim@meyering.net>
63368
63369         Sync from coreutils.
63370         Correct build failure (socklen_t not defined) on at least
63371         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
63372         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
63373
63374 2005-09-23  Jim Meyering  <jim@meyering.net>
63375
63376         * modules/getaddrinfo (Depends-on): Add socklen.
63377
63378 2005-09-23  Bruno Haible  <bruno@clisp.org>
63379
63380         * tests/test-verify.c: New file.
63381
63382 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63383
63384         Sync from coreutils.
63385
63386         * modules/argmatch (Depends-on): Add verify.
63387         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
63388         unistd-safer.
63389         * modules/save-cwd (Depends-on): Likewise.
63390
63391         * modules/openat (Files): Add lib/openat-die.c.
63392         (Depends-on): Remove error, exitfail.
63393         Add dirname.
63394
63395         * modules/verify: New file.
63396         * MODULES.html.sh (Diagnostics <assert.h>): New section,
63397         with "verify" module.
63398
63399 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63400
63401         Sync from coreutils.
63402
63403         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
63404         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
63405         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
63406         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
63407         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
63408         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
63409         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
63410         Don't bother checking for string.h, stdlib.h, unistd.h.
63411         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
63412         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
63413         module's job.
63414         * m4/jm-macros.m4 (gl_MACROS): Likewise.
63415         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
63416
63417         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
63418         (gl_GETDATE): Use it.
63419
63420         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
63421
63422 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63423
63424         Sync from coreutils.
63425
63426         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
63427         stat-time.h.
63428         * lib/argmatch.h: Include verify.h
63429         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
63430         (ARGMATCH_ASSERT): Remove; unused.
63431         * lib/canonicalize.c: Assume STDC_HEADERS.
63432         * lib/exclude.c: Include "strcase.h".
63433         * lib/regex_internal.h [!defined _LIBC]: Likewise.
63434         * lib/getusershell.c: Include stdio--.h rather than stdio.h
63435         and stdio-safer.h.
63436         (getusershell): Call fopen, not fopen_safer.
63437         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
63438         Do not include unistd-safer.h.
63439         (save_cwd): Don't call fd_safer; no longer needed
63440         now that we include fcntl--.h.
63441
63442         * lib/getdate.y (relative_time): New type.
63443         (RELATIVE_TIME_0): New constant.
63444         (parser_control): Use relative_time instead of doing it ourselves.
63445         (%union): Add new relative_time rel member.
63446         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
63447         Now typeless.
63448         (relunit, relunit_snumber): Now of type rel.
63449         (zone, rel, relunit, get_date): Adjust to above changes.
63450
63451         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
63452         Do not include unistd-safer.h.
63453         (getloadavg): Don't call fd_safer; no longer needed
63454         now that we include fcntl--.h.
63455
63456         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
63457         (make_dir_parents): Treat ENOSYS like EEXIST.
63458
63459         Improve quality of diagnostics on restore_cwd failure.
63460         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
63461         (make_dir_parents): Last arg is now int * (for errno), not bool *.
63462         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
63463         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
63464         each time through the loop.  Do not diagnose restore_cwd failure;
63465         that is the caller's job (and perhaps the caller does not care).
63466
63467         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
63468         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
63469         If the file already exists but is not a directory, don't bother
63470         to try to make its parents.
63471         Close potential file descriptor leak if we can't chdir("/") (!).
63472         Don't always return true if chdir($PWD) fails; return true only
63473         if the requested action was done successfully (except for the
63474         chdir($PWD)).
63475         Don't log final directory unless we actually made it.
63476         Refactor to avoid duplicate code to fix up permissions.
63477         Don't attempt to fix up parent permissions if chdir($PWD) fails.
63478
63479         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
63480         to make it a bit faster and (I hope) clearer.
63481         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
63482         Fix bug in formats like %2N.
63483
63484         * lib/verify.h: New file.
63485
63486 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63487
63488         Sync from coreutils.
63489         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
63490
63491 2005-09-22  Jim Meyering  <jim@meyering.net>
63492
63493         Sync from coreutils.
63494
63495         * m4/lstat.m4 (gl_FUNC_LSTAT):
63496         Use AC_LIBSOURCES to require lstat.c and lstat.h.
63497         Remove obsolete comment.
63498         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
63499         * m4/xstrtod.m4: Likewise.
63500
63501         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
63502
63503 2005-09-22  Jim Meyering  <jim@meyering.net>
63504
63505         Sync from coreutils.
63506
63507         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
63508
63509         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
63510         the .tm_year member, since otherwise gcc-4.0 would now warn about
63511         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
63512
63513         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
63514         order to avoid an unsuppressible warning from gcc on 64-bit systems.
63515
63516         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
63517         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
63518         when run in a time zone for which daylight savings time is in effect
63519         for the starting date.
63520
63521         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
63522         stop us from restricting permissions of just-created absolute-named
63523         directories.
63524         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
63525         to restore initial working directory.
63526         * lib/mkdir-p.c (make_dir_parents): New parameter:
63527         different_working_dir, to tell caller if/when we change the working
63528         directory and are unable to return to the initial one.
63529         * lib/mkdir-p.h (make_dir_parents): Update prototype.
63530         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
63531         `return false'.  This fixes a bug introduced on 2004-07-30.
63532
63533         * lib/openat.c (fdopendir): Be sure to close the supplied
63534         file descriptor before returning.  This makes our replacement
63535         implementation a little closer to Solaris's, where fdopendir
63536         ties the file descriptor to the returned DIR* pointer.
63537         * lib/openat.c (unlinkat): New function.
63538         * lib/openat.h (unlinkat): Add prototype.
63539         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
63540         (openat_restore_fail): Rename from openat_restore_die.
63541         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
63542
63543         Provide an alternative to exiting immediately upon save_cwd or
63544         restore_cwd failure.  Now, an application can arrange e.g.,
63545         to perform a longjump in that case.
63546         * lib/openat.c: Include dirname.h.
63547         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
63548         (rpl_openat, fdopendir, fstatat): Call openat_save_die
63549         and openat_restore_die rather than calling error directly.
63550         Don't include "error.h" or "exitfail.h"; they're no longer needed.
63551
63552         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
63553         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
63554         define.
63555
63556         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
63557         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
63558                             int utc, int nanoseconds);
63559         Background:
63560         date should not have to allocate a megabyte of virtual memory to
63561         handle a format argument like +%1048575T.  When implemented with
63562         strftime, it must allocate such a buffer, use strftime to fill it
63563         in, print it, then free it.
63564         With fprintftime, it simply prints everything and exits.
63565         With no need for memory allocation, that's one fewer way to fail.
63566         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
63567         optional field width, not before, so we accept %9:z, not %:9z.
63568         (my_strftime): Be sure to use L_('x') for literals.
63569
63570         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
63571         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
63572         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
63573         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
63574         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
63575         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
63576         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
63577         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
63578         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
63579         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
63580         * lib/xgethostname.c, lib/xreadlink.c:
63581         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
63582
63583         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
63584         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
63585         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
63586         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
63587         and don't include <sys/file.h>).
63588
63589 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
63590
63591         Sync from coreutils.
63592
63593         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
63594         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
63595         [!LDAV_DONE]: Avoid unused variable warning.
63596
63597 2005-09-21  Bruno Haible  <bruno@clisp.org>
63598
63599         * lib/unicodeio.h (unicode_to_mb): New declaration.
63600
63601 2005-09-20  Derek Price  <derek@ximbiot.com>
63602
63603         * lib/getaddrinfo.c: Don't include <netdb.h> included from
63604         getaddrinfo.h.
63605
63606 2005-09-20  Bruno Haible  <bruno@clisp.org>
63607
63608         * gnulib-tool: Remove trailing slashes from the values specified for
63609         --source-base, --m4-base, --tests-base, --aux-dir.
63610         Suggested by Simon Josefsson <jas@extundo.com>.
63611
63612 2005-09-20  Bruno Haible  <bruno@clisp.org>
63613
63614         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
63615         func_modules_to_filelist, func_import, func_create_testdir): Make all
63616         sorting results locale-independent, so that gnulib-cache.m4 doesn't
63617         change when gnulib-tool is invoked in a different locale.
63618
63619 2005-09-19  Simon Josefsson  <jas@extundo.com>
63620
63621         * m4/socklen.m4: Fix typo.
63622
63623 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63624
63625         Use a consistent style for including <config.h>.
63626         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
63627         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
63628         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
63629         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
63630         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
63631         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
63632         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
63633         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
63634         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
63635         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
63636         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
63637         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
63638         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
63639         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
63640         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
63641         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
63642         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
63643         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
63644         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
63645         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
63646         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
63647         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
63648         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
63649         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
63650         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
63651         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
63652         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
63653         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
63654         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
63655         lib/xstrtoumax.c, lib/yesno.c:
63656         Standardize inclusion of config.h.
63657         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
63658         lib/inttostr.h:  Removed inclusion of config.h from header files.
63659         * lib/inttostr.c:  Adjusted in-tree users.
63660         * lib/timespec.h: Remove superfluous warning to include config.h.
63661         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
63662         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
63663         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
63664         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
63665         config.h with HAVE_CONFIG_H.
63666
63667 2005-09-19  Jim Meyering  <jim@meyering.net>
63668
63669         * modules/pathmax (License): Change to LGPL.
63670
63671 2005-09-19  Derek Price  <derek@ximbiot.com>
63672
63673         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
63674
63675 2005-09-19  Bruno Haible  <bruno@clisp.org>
63676
63677         * gnulib-tool (import): Provide default for --tests-base.
63678
63679 2005-09-19  Bruno Haible  <bruno@clisp.org>
63680
63681         * doc/quote.texi: New file, extracted from gnulib.texi.
63682         * doc/ctime.texi: New file, extracted from gnulib.texi.
63683         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
63684         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
63685         * doc/gnulib.texi: Include them.
63686
63687 2005-09-18  Bruno Haible  <bruno@clisp.org>
63688
63689         Portability fix.
63690         * gnulib-tool (func_readlink): New function.
63691         (func_ln_if_changed): Use it.
63692
63693 2005-09-18  Bruno Haible  <bruno@clisp.org>
63694
63695         * gnulib-tool: Support --with-tests also with --import.
63696         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
63697         (func_import): Use variables $testsbase and $inctests. Emit a
63698         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
63699         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
63700         SUBDIRS += $testsdir.
63701         (func_create_testdir): Update.
63702
63703 2005-09-18  Bruno Haible  <bruno@clisp.org>
63704
63705         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
63706         instead of $dry_run.
63707         (func_cp_if_changed, func_mv_if_changed): Remove functions.
63708         (func_ln_if_changed): Don't handle dry-run here.
63709         (func_import): In dry-run mode, detect more precisely which actions
63710         would be performed, and don't use "...ing" verbs.
63711
63712 2005-09-18  Bruno Haible  <bruno@clisp.org>
63713
63714         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
63715         (func_import): Use join on two temporary files instead of three nested
63716         loops, in order to determine which files are new or old.
63717
63718 2005-09-18  Bruno Haible  <bruno@clisp.org>
63719
63720         * gnulib-tool (func_import): Comment out code that spits out the
63721         new files with --dry-run.
63722
63723 2005-09-18  Bruno Haible  <bruno@clisp.org>
63724
63725         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
63726
63727 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63728
63729         * lib/stat-time.h: New file.
63730         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
63731         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
63732         in a different way.
63733         (timespec_cmp): New function.
63734         * lib/utimecmp.c: Include stat-time.h.
63735         (SYSCALL_RESOLUTION): Depend on whether various struct stat
63736         members exist, not on the obsolescent ST_MTIM_NSEC.
63737         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
63738
63739 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
63742
63743 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
63744
63745         * MODULES.html.sh (File system functions): Add stat-time.
63746         * modules/stat-time: New file.
63747         * modules/timespec (Files): Remove m4/st_mtim.m4; this
63748         is now done in a different way, by the stat-time module.
63749         * modules/utimecmp (Depends-on): Add stat-time.
63750
63751 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
63752
63753         * m4/st_mtim.m4: Remove.  Superseded by...
63754         * m4/stat-time.m4: New file.
63755         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
63756         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
63757
63758 2005-09-15  Derek Price  <derek@ximbiot.com>
63759
63760         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
63761
63762 2005-09-15  Derek Price  <derek@ximbiot.com>
63763
63764         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
63765         * lib/regex_internal.c: Ditto, using this...
63766         (__GNUC_PREREQ): ...new macro.
63767         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
63768         using...
63769         (__GNUC_PREREQ): ...this new macro.
63770
63771         * lib/strstr.h: Include string.h. Define strstr as a macro here.
63772
63773 2005-09-15  Derek Price  <derek@ximbiot.com>
63774             Paul Eggert  <eggert@cs.ucla.edu>
63775
63776         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
63777         changes, consolidating in...
63778         * lib/regex_internal.h: ...this file.
63779
63780 2005-09-13  Jim Meyering  <jim@meyering.net>
63781
63782         * lib/canon-host.c: Filter through gnu indent and reword comments
63783         slightly.
63784         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
63785
63786 2005-09-13  Derek Price  <derek@ximbiot.com>
63787
63788         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
63789         failure.
63790         Reported by Jim Meyering  <jim@meyering.net>.
63791
63792 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63793
63794         * lib/base64.c: Typo.
63795         (base64_encode): Put b64str in initialized data section.
63796
63797 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         Merge glibc and coreutils changes into gnulib, plus a few
63800         extra fixes.
63801         * lib/md5.c: Use #error rather than a string.
63802         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
63803         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
63804         (__attribute__): Define to empty for non recent-GCC.
63805         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
63806         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
63807         Renamed from their non-__ counterparts, with new macros replacing
63808         them if not _LIBC.  Add __THROW attribute.
63809         (rol): Remove.
63810         (struct md5_ctx): Align buffer if using GCC.
63811         * lib/sha1.h (struct sha1_ctx): Likewise.
63812         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
63813         The old name was backwards.
63814         (NOTSWAP): Remove; not used.
63815         (rol): New macro, moved here from md5.h.
63816         (sha1_process_block): Remove a FIXME that doesn't make sense.
63817
63818 2005-09-12  Derek Price  <derek@ximbiot.com>
63819
63820         Return usable errors from canon-host.
63821         * lib/canon-host.h: New file.
63822         * lib/canon-host.c (canon_host): Wrap...
63823         (canon_host_r): ...this new function, which now relies exclusively on
63824         getaddrinfo.
63825         (ch_strerror): New function.
63826         (last_cherror): New global.
63827         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
63828         interface.
63829         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
63830         void *.
63831         (freeaddrinfo): Free ai->ai_canonname when set.
63832
63833 2005-09-12  Derek Price  <derek@ximbiot.com>
63834
63835         Make canon-host require getaddrinfo.
63836         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
63837         AC_LIBSOURCE canon-host.h.  Call...
63838         (gl_PREREQ_CANON_HOST): ...this new function, which requires
63839         gl_GETADDRINFO.
63840         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
63841
63842 2005-09-12  Derek Price  <derek@ximbiot.com>
63843
63844         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
63845         LGPL.
63846         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
63847
63848 2005-09-12  Derek Price  <derek@ximbiot.com>
63849
63850         * lib/gai_strerror.c: Include config.h when available.  Include
63851         getaddrinfo.h before other headers to test interface.
63852         Reported by Larry Jones <lawrence.jones@ugs.com>.
63853
63854 2005-09-12  Derek Price  <derek@ximbiot.com>
63855             Paul Eggert  <eggert@cs.ucla.edu>
63856
63857         * modules/glob (Files): Add glob-libc.h.
63858
63859 2005-09-12  Derek Price  <derek@ximbiot.com>
63860             Paul Eggert  <eggert@cs.ucla.edu>
63861
63862         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
63863         glob_.h, glob-libc.h.
63864         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
63865
63866 2005-09-12  Derek Price  <derek@ximbiot.com>
63867             Paul Eggert  <eggert@cs.ucla.edu>
63868
63869         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
63870         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
63871         protecting things that should be done only in gnulib contexts.
63872         * lib/glob_.h: New file, containing only the glob things needed for
63873         gnulib.
63874         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
63875         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
63876         (glob, globfree, glob_pattern_p): Now defined simply in terms of
63877         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
63878         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
63879         and to respect the namespace rules better.
63880
63881 2005-09-08  Simon Josefsson  <jas@extundo.com>
63882
63883         * modules/socklen: New file.
63884
63885 2005-09-08  Simon Josefsson  <jas@extundo.com>
63886
63887         * m4/socklen.m4: New file.
63888
63889 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63890
63891         * modules/utimens (Files): Add m4/utimbuf.m4, since
63892         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
63893         Reported by Sergey Poznyakoff.
63894
63895 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63896
63897         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
63898         definitions, since that's the preferred style in glibc.
63899         Fix a minor spacing issue, and update copyright notice to match
63900         glibc's.
63901
63902 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
63903
63904         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
63905
63906 2005-09-06  Simon Josefsson  <jas@extundo.com>
63907
63908         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
63909         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
63910
63911 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
63914         warning.
63915
63916 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63917
63918         * config/srclist.txt: Add glibc bug 1302.
63919
63920 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
63921
63922         Change bitset word type from unsigned int to unsigned long int,
63923         as this has better performance on typical 64-bit hosts.
63924         Port bitset code to hosts with unusual word sizes.
63925         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
63926         (build_collating_symbol):
63927         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
63928         argument is a bitset.  This is merely a style issue, but it makes
63929         it clearer that an entire array is expected.
63930         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
63931         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
63932         Port to the case where bitset_word is not the same as unsigned int.
63933         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
63934         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
63935         Likewise.
63936         * lib/regexec.c (check_dst_limits_calc_pos_1,
63937         check_subexp_matching_top):
63938         (build_trtable, group_nodes_into_DFAstates):
63939         Likewise.
63940         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
63941         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
63942         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
63943         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
63944         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
63945         * lib/regcomp.c (optimize_subexps, lower_subexp):
63946         Work even if bitset_word has holes in its bitwise representation.
63947         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
63948         * lib/regexec.c (check_dst_limits_calc_pos_1,
63949         check_subexp_matching_top):
63950         Likewise.
63951         * lib/regex_internal.c (re_string_reconstruct):
63952         Don't assume UCHAR_MAX == 255.
63953         * lib/regex_internal.h (bitset_set_all): Likewise.
63954         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
63955         All uses changed.
63956         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
63957         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
63958         All uses changed.
63959         (BITSET_WORD_MAX): New macro.
63960         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
63961         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
63962         (bitset_empty, bitset_copy):
63963         Prefer sizeof (bitset) to multiplying it out ourselves.
63964         (bitset_not_merge): Remove; unused.
63965         (bitset_contain): Return bool, not unsigned int with one bit on.
63966         All callers changed.
63967         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
63968         alignment than re_node_set; do this by defining a new internal
63969         type struct dests_alloc and using it to allocate memory.
63970
63971 2005-09-05  Bruno Haible  <bruno@clisp.org>
63972
63973         * gnulib-tool (func_import): Fix comparison in handling of symbolic
63974         links.
63975
63976 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
63977
63978         * modules/size_max (Makefile.am): Add size_max.h
63979
63980 2005-09-04  Derek Price  <derek@ximbiot.com>
63981
63982         * gnulib-tool (func_import): Fix reversed $symbolic logic.
63983
63984 2005-09-03  Simon Josefsson  <jas@extundo.com>
63985
63986         * gnulib-tool: Fix typo.
63987
63988 2005-09-03  Simon Josefsson  <jas@extundo.com>
63989
63990         * config/srclist.txt: Add glibc bug 1293.
63991
63992 2005-09-03  Derek Price  <derek@ximbiot.com>
63993
63994         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
63995         From Larry Jones <lawrence.jones@ugs.com>.
63996
63997 2005-09-02  Simon Josefsson  <jas@extundo.com>
63998
63999         * modules/socklen: New file.
64000
64001 2005-09-02  Simon Josefsson  <jas@extundo.com>
64002
64003         * modules/havelib: New module.
64004
64005         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64006         Use havelib.
64007
64008 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64009
64010         Check for arithmetic overflow when calculating sizes, to prevent
64011         some buffer-overflow issues.  These patches are conservative, in the
64012         sense that when I couldn't determine whether an overflow was possible,
64013         I inserted a run-time check.
64014         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64015         macros.
64016         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64017         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64018         (re_xnrealloc, re_x2nrealloc): New inline functions.
64019         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64020         parse_bracket_exp):
64021         (build_equiv_class, build_charclass): Check for arithmetic overflow
64022         in size expression calculations.
64023         * lib/regex_internal.c (re_string_realloc_buffers):
64024         (build_wcs_upper_buffer, re_node_set_add_intersect):
64025         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64026         (re_dfa_add_node, register_state): Likewise.
64027         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64028         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64029         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64030         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64031
64032 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64033
64034         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64035         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64036
64037 2005-09-02  Bruno Haible  <bruno@clisp.org>
64038
64039         Support for lib vs. lib64 distinction on biarch platforms.
64040         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64041         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64042         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64043
64044 2005-09-02  Bruno Haible  <bruno@clisp.org>
64045
64046         * gnulib-tool (import): In the other first-use case, provide defaults
64047         as well.
64048
64049 2005-09-02  Bruno Haible  <bruno@clisp.org>
64050
64051         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64052         patches not yet found in the latest gettext release.
64053
64054 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64057         to avoid a collision with bits/local_lim.h in glibc.
64058         All uses changed.  Problem reported by Dmitry V. Levin in
64059         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64060
64061         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64062         bugs in int versus size_t comparisons.
64063         (re_string_context_at): Fix bug where the code assumed that
64064         Idx is signed.
64065
64066         Use bool where appropriate.
64067         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64068         All callers changed.
64069         (calc_eclosure_iter): Likewise, for ROOT arg.
64070         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64071         (build_charclass_op): Likewise, for NON_MATCH arg.
64072         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64073         (re_string_construct_common): Likewise, for ICASE arg.
64074         * lib/regexec.c (re_search_2_stub, re_search_stub):
64075         Likewise, for RET_LEN arg.
64076         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64077         (set_regs): Likewise, for FL_BACKTRACK arg.
64078         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64079         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64080         (calc_eclosure_iter, parse_bracket_exp):
64081         Use bool for internal variables that are booleans.
64082         * lib/regexec.c (re_search_internal, check_matching,
64083         proceed_next_node):
64084         (set_regs, build_sifted_states, sift_states_bkref):
64085         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64086         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64087         (find_collation_sequence_value):
64088         Likewise.
64089         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64090         (re_node_set_compare):
64091         Return bool, not int. All callers changed.
64092         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64093         (build_trtable, check_node_accept): Likewise.
64094         * lib/regex_internal.h: Include stdbool.h.
64095
64096         Fix bugs uncovered when converting to bool.
64097         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64098         failure instead of charging ahead blindly.
64099         * lib/regex_internal.c (register_state): Likewise.
64100         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64101         for freeing internal storage.
64102         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64103         bitset pieces used as boolean, to avoid undefined behavior
64104         on hosts that do int overflow checking.
64105
64106 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64107
64108         * config/srclist.txt: Add glibc bugs 1285-1287.
64109
64110 2005-09-01  Jim Meyering  <jim@meyering.net>
64111
64112         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64113         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64114         Require gl_STAT_MACROS, too.
64115
64116 2005-09-01  Bruno Haible  <bruno@clisp.org>
64117
64118         * gnulib-tool (import): In the first-use case, provide defaults.
64119
64120 2005-09-01  Bruno Haible  <bruno@clisp.org>
64121
64122         * gnulib-tool (func_import): Remove the .tmp files.
64123
64124 2005-09-01  Bruno Haible  <bruno@clisp.org>
64125
64126         * gnulib-tool (func_import): Fix handling of symbolic links.
64127
64128 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64131         old glibc regex code mishandles strings longer than 2**31 bytes.
64132         This patch fixes this when the regex code is used in gnulib
64133         (i.e., outside glibc).
64134
64135         This patch should not affect the use of the regex code inside
64136         glibc.  No doubt this problem also needs to be handled for glibc
64137         as well, but the result will be an incompatible change to the
64138         glibc ABI, and the old ABI will have to be supported too.  That
64139         can be the the subject for another patch.
64140
64141         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64142         governing whether the rest of this patch is active.  By default,
64143         the macro is disabled and the patch has no effect.
64144         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64145         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64146         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64147         (re_match_2, re_set_registers): Use the new types.
64148         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64149         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64150         New macros.
64151         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64152         (re_string_context_at, bin_tree_t, re_dfastate_t):
64153         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64154         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64155         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64156         (re_string_char_size_at, re_string_wchar_at):
64157         (re_string_elem_size_at):
64158         Use the new types and macros to port to 64-bit hosts.
64159         Use unsigned types for internal values, so that the code
64160         mostly works even for arrays larger than SSIZE_MAX.
64161         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64162         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64163         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64164         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64165         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64166         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64167         (calc_inveclosure, parse_dup_op, build_range_exp):
64168         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64169         (fetch_number, create_token_tree, mark_opt_subexp):
64170         Likewise.
64171         * lib/regex_internal.c (re_string_construct_common,
64172         create_ci_newstate):
64173         (create_cd_newstate, re_string_allocate, re_string_construct):
64174         (re_string_realloc_buffers, build_wcs_upper_buffer):
64175         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64176         (re_string_reconstruct, re_string_peek_byte_case):
64177         (re_string_fetch_byte_case, re_string_context_at):
64178         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64179         (re_node_set_init_copy, re_node_set_add_intersect):
64180         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64181         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64182         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64183         (re_acquire_state, re_acquire_state_context, register_state):
64184         Likewise.
64185         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64186         search_cur_bkref_entry):
64187         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64188         (re_search_internal, re_search_2_stub, re_search_stub)
64189         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64190         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64191         (update_cur_sifted_state, check_dst_limits):
64192         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64193         (check_subexp_limits, sift_states_bkref, merge_state_array):
64194         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64195         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64196         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64197         (expand_bkref_cache, check_node_accept_bytes):
64198         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64199         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64200         (acquire_init_state_context, check_halt_node_context):
64201         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64202         (sift_states_backward, clean_state_log_if_needed):
64203         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64204         (find_recover_state, transit_state_sb, transit_state_mb):
64205         (transit_state_bkref, build_trtable, match_ctx_clean):
64206         Likewise.
64207         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
64208         to work around an assumption that REG_MISSING is negative.
64209
64210         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
64211         (seek_collating_symbol_entry) [defined _LIBC]:
64212         (lookup_collation_sequence_value) [defined _LIBC]:
64213         (build_range_exp, build_collating_symbol) [defined _LIBC]:
64214         Use prototypes rather than old-style function definitions.
64215         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
64216         (transit_state_sb) [0]:
64217         (find_collation_sequence_value) [defined _LIBC]: Likewise.
64218
64219         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
64220         rm_eo.
64221
64222         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
64223         (optimize_subexps, lower_subexp):
64224         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
64225         since the signed shift might overflow.  Use 1u<<31 instead.
64226         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64227         Likewise.
64228         * lib/regexec.c (check_dst_limits_calc_pos_1,
64229         check_subexp_matching_top): Likewise.
64230
64231         * lib/regcomp.c (optimize_subexps, lower_subexp):
64232         Use CHAR_BIT rather than 8, for clarity.
64233         * lib/regexec.c (check_dst_limits_calc_pos_1):
64234         (check_subexp_matching_top): Likewise.
64235         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
64236         have to worry about portability issues when shifting it left.
64237         Remove no-longer-needed test for table_size > 0.
64238         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
64239         in a word, as the resulting behavior is undefined.
64240         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
64241         in one case, a <= should have been an <, and in another case the
64242         whole test was missing.
64243         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
64244         the standard name CHAR_BIT.
64245         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
64246         this is not true on one's complement and signed-magnitude hosts.
64247
64248         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
64249         next_last_offset.
64250         (struct re_dfa_t): Remove unused member states_alloc.
64251         * lib/regcomp.c (init_dfa): Don't initialize unused members.
64252
64253 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64254
64255         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
64256         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
64257         and large-file glibc and in 32-bit large-file Solaris.
64258
64259 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64260
64261         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
64262         lengths fit in regoff_t; this isn't true if regoff_t is the same
64263         width as size_t.
64264         * lib/regex.c (re_search_internal): 5th arg is LAST_START
64265         (= START + RANGE) instead of RANGE.  This avoids overflow
64266         problems when regoff_t is the same width as size_t.
64267         All callers changed.
64268         (re_search_2_stub): Check for overflow when adding the
64269         sizes of the two strings.
64270         (re_search_stub): Check for overflow when adding START
64271         to RANGE; if it occurs, substitute the extreme value.
64272
64273 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64274
64275         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
64276
64277 2005-08-31  Jim Meyering  <jim@meyering.net>
64278
64279         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
64280         a pointer-to-const.
64281         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
64282         (register_state): Likewise.
64283         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
64284         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64285         (group_nodes_into_DFAstates): Likewise.
64286
64287 2005-08-31  Jim Meyering  <jim@meyering.net>
64288
64289         * check-module: Add a FIXME comment.
64290
64291 2005-08-31  Eric Blake  <ebb9@byu.net>
64292
64293         * modules/unistd-safer (Files): Add unistd--.h.
64294         * modules/stdio-safer (Files): Add stdio--.h.
64295
64296 2005-08-31  Derek Price  <derek@ximbiot.com>
64297
64298         * lib/getdelim.c (getdelim): Return EOF on EOF.
64299         Reported by Larry Jones <lawrence.jones@ugs.com>.
64300
64301 2005-08-31  Bruno Haible  <bruno@clisp.org>
64302
64303         Avoid unnecessary diffs in the generated lib/Makefile.am.
64304         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
64305         the generated files.
64306         (func_import): Don't set cmd.
64307
64308 2005-08-31  Bruno Haible  <bruno@clisp.org>
64309
64310         * lib/strstr.c: Include <stddef.h>, for NULL.
64311         * lib/strcasestr.c: Likewise.
64312         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64313
64314 2005-08-31  Bruno Haible  <bruno@clisp.org>
64315
64316         * gnulib-tool: New option --macro-prefix.
64317         (func_import): Use macro_prefix.
64318         (import): Handle option --macro-prefix.
64319
64320 2005-08-31  Bruno Haible  <bruno@clisp.org>
64321
64322         * gnulib-tool (import): Rename most ac_* variables to cached_*.
64323         Also use new variables cached_lgpl, cached_libtool.
64324
64325 2005-08-31  Bruno Haible  <bruno@clisp.org>
64326
64327         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
64328         always instantiating them.
64329
64330 2005-08-31  Bruno Haible  <bruno@clisp.org>
64331
64332         * gnulib-tool (func_import): Read the previous cached settings
64333         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
64334         earlier added by gnulib but are now dropped. Warn when a gnulib file
64335         overwrites a non-gnulib file.
64336
64337 2005-08-31  Bruno Haible  <bruno@clisp.org>
64338
64339         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
64340         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
64341         projects that don't keep autogenerated files in CVS. Put into
64342         actioncmd only the specified modules, not the transitive closure.
64343
64344 2005-08-31  Bruno Haible  <bruno@clisp.org>
64345
64346         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
64347         Create directories that shall be filled.
64348         (import): Don't look for gl_* macros in configure.ac. Recurse across
64349         all directories containing a gnulib-cache.m4 files, if meaningful.
64350
64351 2005-08-31  Bruno Haible  <bruno@clisp.org>
64352
64353         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
64354         (import): Set seen_libtool when we see gl_LIBTOOL.
64355
64356 2005-08-31  Bruno Haible  <bruno@clisp.org>
64357
64358         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
64359         declaration macro definitions from generated gnulib.m4.
64360
64361 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
64362
64363         * lib/iconvme.h: Add prototype for iconv_alloc.
64364
64365 2005-08-29  Simon Josefsson  <jas@extundo.com>
64366
64367         * lib/iconvme.c: Fix errno.
64368
64369 2005-08-29  Bruno Haible  <bruno@clisp.org>
64370
64371         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
64372         that it works when the directory contains spaces.
64373
64374 2005-08-29  Bruno Haible  <bruno@clisp.org>
64375
64376         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
64377
64378 2005-08-29  Bruno Haible  <bruno@clisp.org>
64379
64380         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
64381         Emit more advice.
64382
64383 2005-08-29  Bruno Haible  <bruno@clisp.org>
64384         and Stepan Kasal  <kasal@ucw.cz>
64385
64386         * check-module: If more parameters are given, check each of them
64387         separately; add more exceptions, as noted by Jim Meyering.
64388         (check_module): New procedure.
64389         (%exempt_header): Now contains all exceptions.
64390
64391 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
64392
64393         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
64394
64395 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
64396
64397         * lib/iconvme.c: Split iconv_string into iconv_alloc.
64398
64399 2005-08-28  Bruno Haible  <bruno@clisp.org>
64400
64401         * m4/gnulib-tool.m4: New file.
64402
64403 2005-08-27  Jim Meyering  <jim@meyering.net>
64404
64405         * modules/unistd-safer (Files): Add pipe-safer.c.
64406         * modules/fcntl-safer (Files): Add creat-safer.c.
64407
64408 2005-08-27  Jim Meyering  <jim@meyering.net>
64409
64410         * m4/stdlib-safer.m4: New file.  From coreutils.
64411         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
64412         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
64413         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
64414         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
64415         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
64416
64417 2005-08-27  Jim Meyering  <jim@meyering.net>
64418
64419         * lib/fopen-safer.c: Merge minor changes from coreutils.
64420         * lib/dup-safer.c: Likewise.
64421         * lib/fd-safer.c: Likewise.
64422
64423         Merge from coreutils.
64424         * lib/stdio--.h: New file.
64425         * lib/stdlib--.h: New file.
64426         * lib/mkstemp-safer.c: New file.
64427
64428         GNU tar needs these.
64429         * lib/pipe-safer.c: New file.
64430         * lib/creat-safer.c: New file.
64431         * lib/fcntl--.h (creat): Define to creat_safer.
64432         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
64433         * lib/unistd--.h (pipe): Define to pipe_safer.
64434         * lib/unistd-safer.h: Declare pipe_safer.
64435
64436 2005-08-26  Simon Josefsson  <jas@extundo.com>
64437
64438         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
64439         Haible <bruno@clisp.org>.
64440
64441 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
64442
64443         * lib/regex_internal.h: Remove all references to
64444         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
64445         or better.
64446         (bitset_not, bitset_merge, bitset_not_merge):
64447         (bitset_mask, re_string_allocate, re_string_construct):
64448         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
64449         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
64450         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
64451         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
64452         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64453         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64454         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
64455         (re_acquire_state_context):
64456         Remove unnecessary forward decls.
64457         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
64458         Put __attribute at function definition,
64459         now that the function decl has been removed.
64460         * lib/regex_internal.c (re_string_peek_byte_case):
64461         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
64462         Likewise.
64463
64464 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
64465
64466         * m4/regex.m4: Add AC_PREREQ(2.50).
64467         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
64468
64469 2005-08-25  Simon Josefsson  <jas@extundo.com>
64470
64471         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
64472         __fsetlocking.
64473
64474 2005-08-25  Simon Josefsson  <jas@extundo.com>
64475
64476         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
64477         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
64478         GLIBC specific code.
64479
64480 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64481
64482         Make regex safe for g++.  This fixes one real bug (an "err"
64483         that should have been "*err").  g++ problem reported by
64484         Sam Steingold.
64485         * lib/regex_internal.h (re_calloc): New macro, consistent with
64486         re_malloc etc.  All callers of calloc changed to use re_calloc.
64487         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
64488         not int.  All callers changed.
64489         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
64490         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
64491         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
64492         (find_recover_state): Change "err" to "*err"; this fixes what
64493         appears to be a real bug.
64494         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
64495         versus int.
64496
64497 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64498
64499         * modules/regex (Depends-on): Add malloc, since the code
64500         assumes that !malloc(0) means failure.
64501
64502 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64503
64504         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
64505
64506         alloca modernization/simplification for regex.
64507         * lib/regex.c: Remove portability cruft for alloca.  This no longer
64508         needs to be at the start of the file, and can be moved into
64509         regex_internal.h and simplified.
64510         * lib/regex_internal.h: Include <alloca.h>.
64511         (__libc_use_alloca) [!defined _LIBC]: New macro.
64512         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
64513         now works outside glibc.
64514
64515 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64516
64517         * config/srclist.txt: Add glibc bugs 1241, 1245.
64518
64519 2005-08-25  Jim Meyering  <jim@meyering.net>
64520
64521         * lib/open-safer.c: Include <config.h>.
64522         Otherwise, we'd lose LARGEFILE support in any file using
64523         e.g. "fcntl--.h"
64524
64525 2005-08-25  Bruno Haible  <bruno@clisp.org>
64526
64527         * m4/minmax.m4: Require autoconf 2.52.
64528         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
64529         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
64530         alternatives of translit over the alphabet.
64531         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
64532
64533 2005-08-24  Simon Josefsson  <jas@extundo.com>
64534
64535         * tests/test-getpass.c: New file.
64536
64537 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
64540         for GNU regex features.
64541
64542 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64543
64544         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
64545         * lib/regex.h (regerror): Likewise.
64546
64547         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
64548         requires this.  (The code never needed it.)
64549
64550         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
64551         All uses of recently-renamed identifiers changed to use the new,
64552         POSIX-compliant names.  The code will build and run just fine
64553         without these changes, but it's better to eat our own dog food
64554         and use the standard-conforming names.
64555
64556         * lib/regex.h: Fix a multitude of POSIX name space violations.
64557         These changes have an effect only for programs that define
64558         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
64559         do not change anything for programs compiled in the normal way.
64560         Also, there is no effect on the ABI.
64561
64562         (_REGEX_SOURCE): New macro.
64563         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
64564         defined and _GNU_SOURCE is not; this fixes a name space violation.
64565
64566         Rename the following macros to obey POSIX requirements.
64567         The old names are still visible as macros if _REGEX_SOURCE is defined.
64568         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
64569         RE_BACKSLASH_ESCAPE_IN_LISTS.
64570         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
64571         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
64572         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
64573         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
64574         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
64575         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
64576         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
64577         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
64578         (REG_INTERVALS): renamed from RE_INTERVALS.
64579         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
64580         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
64581         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
64582         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
64583         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
64584         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
64585         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
64586         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
64587         RE_UNMATCHED_RIGHT_PAREN_ORD.
64588         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
64589         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
64590         (REG_DEBUG): renamed from RE_DEBUG.
64591         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
64592         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
64593         unusual, since we can't clash with the POSIX REG_ICASE.
64594         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
64595         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
64596         (REG_NO_SUB): renamed from RE_NO_SUB.
64597         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
64598         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
64599         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
64600         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
64601         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
64602         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
64603         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
64604         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
64605         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
64606         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
64607         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
64608         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
64609         RE_SYNTAX_POSIX_MINIMAL_BASIC.
64610         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
64611         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
64612         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
64613         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
64614         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
64615         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
64616         (REG_FIXED): Renamed from REGS_FIXED.
64617         (REG_NREGS): Renamed from RE_NREGS.
64618
64619         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
64620         of other REG_* macros, since POSIX says the user is allowed to
64621         #undef these macros selectively.
64622
64623         (reg_errcode_t): Update comment stating what other tables need
64624         to be consistent.
64625
64626         Rename the following enum values to obey POSIX requirements.
64627         The old names are still visible as macros.
64628         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
64629         is not defined, since GNU is supposed to be a superset of POSIX as
64630         much as possible, and since we want reg_errcode_t to be a signed
64631         type for implementation consistency.
64632         (_REG_NOERROR): Renamed from REG_NOERROR.
64633         (_REG_NOMATCH): Renamed from REG_NOMATCH.
64634         (_REG_BADPAT): Renamed from REG_BADPAT.
64635         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
64636         (_REG_ECTYPE): Renamed from REG_ECTYPE.
64637         (_REG_EESCAPE): Renamed from REG_EESCAPE.
64638         (_REG_ESUBREG): Renamed from REG_ESUBREG.
64639         (_REG_EBRACK): Renamed from REG_EBRACK.
64640         (_REG_EPAREN): Renamed from REG_EPAREN.
64641         (_REG_EBRACE): Renamed from REG_EBRACE.
64642         (_REG_BADBR): Renamed from REG_BADBR.
64643         (_REG_ERANGE): Renamed from REG_ERANGE.
64644         (_REG_ESPACE): Renamed from REG_ESPACE.
64645         (_REG_BADRPT): Renamed from REG_BADRPT.
64646         (_REG_EEND): Renamed from REG_EEND.
64647         (_REG_ESIZE): Renamed from REG_ESIZE.
64648         (_REG_ERPAREN): Renamed from REG_ERPAREN.
64649         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
64650         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
64651         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
64652         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
64653
64654         (_REG_RE_NAME, _REG_RM_NAME): New macros.
64655         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
64656         changed.  But support the old name if the new one is not defined
64657         and if _REGEX_SOURCE.
64658
64659         Change the following member names in struct re_pattern_buffer.
64660         The old names are still supported if !_REGEX_SOURCE.
64661         The new names are always supported, regardless of _REGEX_SOURCE.
64662         (re_buffer): Renamed from buffer.
64663         (re_allocated): Renamed from allocated.
64664         (re_used): Renamed from used.
64665         (re_syntax): Renamed from syntax.
64666         (re_fastmap): Renamed from fastmap.
64667         (re_translate): Renamed from translate.
64668         (re_can_be_null): Renamed from can_be_null.
64669         (re_regs_allocated): Renamed from regs_allocated.
64670         (re_fastmap_accurate): Renamed from fastmap_accurate.
64671         (re_no_sub): Renamed from no_sub.
64672         (re_not_bol): Renamed from not_bol.
64673         (re_not_eol): Renamed from not_eol.
64674         (re_newline_anchor): Renamed from newline_anchor.
64675
64676         Change the following member names in struct re_registers.
64677         The old names are still supported if !_REGEX_SOURCE.
64678         The new names are always supported, regardless of _REGEX_SOURCE.
64679         (rm_num_regs): Renamed from num_regs.
64680         (rm_start): Renamed from start.
64681         (rm_end): Renamed from end.
64682
64683         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
64684         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
64685         Prepend __ to parameter names.
64686
64687         Undo yesterday's changes.
64688
64689 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
64692         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
64693         lib/regex.c.
64694
64695 2005-08-24  Jim Meyering  <jim@meyering.net>
64696
64697         Sync from coreutils.
64698         * m4/fcntl-safer.m4: New file.
64699
64700         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
64701         and object files for this module.
64702
64703 2005-08-24  Jim Meyering  <jim@meyering.net>
64704
64705         Sync from coreutils.
64706         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
64707
64708 2005-08-24  Jim Meyering  <jim@meyering.net>
64709
64710         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
64711         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
64712
64713 2005-08-24  Jim Meyering  <jim@meyering.net>
64714
64715         * modules/fcntl-safer: New module.
64716         * modules/fts (Depends-on): Add fcntl-safer.
64717         * MODULES.html.sh (File descriptor based Input/Output):
64718         Add fcntl-safer.
64719
64720 2005-08-24  Bruno Haible  <bruno@clisp.org>
64721
64722         Support for unit test modules.
64723         * modules/README: Mention tests modules.
64724         * modules/TEMPLATE-TESTS: New file.
64725         * gnulib-tool: New options --extract-tests-module, --with-tests and
64726         --tests-base (unused for the moment).
64727         (testsbase, inctests): New variables.
64728         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
64729         (func_verify_module): Exclude TEMPLATE-TESTS.
64730         (func_verify_nontests_module, func_verify_tests_module): New functions.
64731         (func_get_dependencies): Add implicit dependency for tests modules.
64732         (func_get_tests_module): New function.
64733         (func_modules_transitive_closure): When --with-tests was specified,
64734         include the unit tests as well, unless explicitly avoided.
64735         (func_emit_lib_Makefile_am): Ignore the tests modules here.
64736         (func_emit_tests_Makefile_am): New function.
64737         (func_create_testdir): When --with-tests was specified, emit a
64738         tests/ directory.
64739         * MODULES.html.sh (Future developments): Update.
64740
64741 2005-08-24  Bruno Haible  <bruno@clisp.org>
64742
64743         * modules/tls-tests: New file.
64744         * tests/test-tls.c: New file, from GNU gettext.
64745
64746 2005-08-24  Bruno Haible  <bruno@clisp.org>
64747
64748         * modules/lock-tests: New file.
64749         * tests/test-lock.c: New file, from GNU gettext.
64750
64751 2005-08-24  Bruno Haible  <bruno@clisp.org>
64752
64753         * lib/lock.h: Add multiple inclusion guard.
64754         * lib/tls.h: Add multiple inclusion guard.
64755
64756 2005-08-24  Bruno Haible  <bruno@clisp.org>
64757
64758         * gnulib-tool: Add support for the --aux-dir option to
64759         --create-testdir, --create-megatestdir, --test, --megatest.
64760         (func_create_testdir, func_create_megatestdir): Optionally emit a
64761         AC_CONFIG_AUX_DIR directive.
64762         (create-testdir, create-megatestdir, test, megatest): Provide a
64763         default value for $auxdir.
64764
64765 2005-08-24  Bruno Haible  <bruno@clisp.org>
64766
64767         * gnulib-tool (import): Use compound statement instead of subshell
64768         where possible.
64769
64770 2005-08-24  Bruno Haible  <bruno@clisp.org>
64771
64772         * gnulib-tool (import): Change --aux-dir default to "build-aux".
64773
64774 2005-08-24  Bruno Haible  <bruno@clisp.org>
64775
64776         * gnulib-tool (func_version): Update.
64777
64778 2005-08-24  Bruno Haible  <bruno@clisp.org>
64779
64780         * gnulib-tool (func_import, func_create_testdir,
64781         func_create_megatestdir): Quote all autoconf macro arguments.
64782
64783 2005-08-24  Bruno Haible  <bruno@clisp.org>
64784
64785         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
64786         option --force, because --force causes the aclocal.m4 of each
64787         subdirectory to be newer than the corresponding config.h.in.
64788
64789 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64790
64791         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
64792         All contents moved to gl_REGEX.
64793         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
64794         assume that it does.
64795
64796 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * lib/regex.h (REG_NOSYS)
64799         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
64800         Define, since POSIX requires it as of 2001.
64801         (_REG_ENOSYS)
64802         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
64803         New private symbol, used to keep the enum signed in all cases.
64804         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
64805         Youngman in
64806         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
64807
64808         * lib/regex_internal.c (re_string_skip_chars, register_state):
64809         (calc_state_hash):
64810         Remove forward decls; no longer needed now that we use prototypes.
64811         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
64812         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
64813         (clean_state_log_if_needed): Likewise.
64814
64815 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64816
64817         * config/srclist.txt: Add glibc bugs 1231-1233.
64818
64819 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64820
64821         Fix problems reported by Sam Steingold in
64822         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
64823         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
64824         assumed that reg_errcode_t is a signed type, which is not
64825         necessarily true if _XOPEN_SOURCE is not defined.
64826         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
64827         since some compilers warn about it otherwise.
64828
64829 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64830
64831         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
64832         (init_word_char, create_initial_state, duplicate_node_closure):
64833         (fetch_token, peek_token_bracket, build_range_exp):
64834         (build_collating_symbol): Remove forward decls; no longer needed
64835         now that we use prototypes.
64836
64837         * lib/regcomp.c:
64838         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
64839         (re_compile_fastmap_iter, regcomp, regerror, regfree):
64840         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
64841         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
64842         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
64843         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
64844         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
64845         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
64846         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
64847         (build_range_exp, build_collating_symbol, parse_bracket_exp):
64848         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
64849         (build_charclass, build_charclass_op, fetch_number, create_tree):
64850         (create_token_tree, mark_opt_subexp, duplicate_tree):
64851         Use prototypes rather than old-style definitions.
64852
64853         * lib/regex_internal.c:
64854         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
64855         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
64856         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64857         (re_string_reconstruct, re_string_peek_byte_case):
64858         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
64859         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64860         (re_node_set_init_copy, re_node_set_add_intersect):
64861         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64862         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64863         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64864         (re_acquire_state, re_acquire_state_context, register_state):
64865         (create_ci_newstate, create_cd_newstate, free_state):
64866         Likewise.
64867         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
64868         re_search_2):
64869         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
64870         (re_search_internal, prune_impossible_nodes):
64871         (acquire_init_state_context, check_matching, static):
64872         (check_halt_node_context, check_halt_state_context, proceed_next_node):
64873         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
64874         (update_regs, sift_states_backward, build_sifted_states):
64875         (clean_state_log_if_needed, merge_state_array):
64876         (update_cur_sifted_state, add_epsilon_src_nodes):
64877         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
64878         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
64879         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
64880         (find_recover_state, check_subexp_matching_top, transit_state_mb):
64881         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
64882         (check_arrival, check_arrival_add_next_nodes):
64883         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64884         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64885         (check_node_accept_bytes, check_node_accept, extend_buffers):
64886         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
64887         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
64888         (sift_ctx_init):
64889         Likewise.
64890
64891         * lib/regex_internal.h:
64892         (re_string_allocate, re_string_construct, re_string_reconstruct):
64893         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
64894         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
64895         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
64896         (re_string_context_at, re_string_peek_byte_case):
64897         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
64898         is defined, since we now use prototypes always.
64899
64900         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
64901         C89 or better.  All uses removed.
64902
64903 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
64904
64905         * config/srclist.txt: Add glibc bugs 1220-1227.
64906
64907 2005-08-20  Jim Meyering  <jim@meyering.net>
64908
64909         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
64910         of unused local, dfa.
64911
64912 2005-08-20  Bruno Haible  <bruno@clisp.org>
64913
64914         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
64915
64916 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
64919         (re_node_set_insert_last, re_dfa_add_node):
64920         Rename local variables to avoid GCC shadowing warnings.
64921
64922 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
64925         [defined lint]: Suppress bogus uninitialized-variable warnings.
64926
64927         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
64928         and let the caller return REG_ESPACE if out of space.  This
64929         removes an uninitialied-variable warning with GCC 4.0.1, and also
64930         avoids taking the address of a local variable.  All callers
64931         changed.
64932
64933 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
64934
64935         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
64936         $LIBCSRC/posix/regexec.c.
64937         Add glibc bug 1217 for regcomp.c.
64938
64939 2005-08-19  Jim Meyering  <jim@meyering.net>
64940
64941         * lib/regexec.c (proceed_next_node): Redo local variables to
64942         avoid GCC shadowing warnings.
64943
64944 2005-08-18  Bruno Haible  <bruno@clisp.org>
64945
64946         * lib/strstr.c (strstr): Fix return value in multibyte case.
64947         * lib/strcasestr.c (strcasestr): Likewise.
64948
64949 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
64950
64951         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
64952
64953 2005-08-17  Jim Meyering  <jim@meyering.net>
64954
64955         Make the %s format (seconds since the epoch) work for a negative
64956         number and when used with a zero-padded field width, e.g. %015s.
64957
64958         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
64959         label so that it precedes the code to set `digits'.  Otherwise,
64960         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
64961         print `00-22'.  Now, it prints `-0022', as it should.
64962
64963 2005-08-17  Bruno Haible  <bruno@clisp.org>
64964
64965         * modules/strstr (Files): Add m4/mbrtowc.m4.
64966         (Depends-on): Add mbuiter.
64967
64968 2005-08-17  Bruno Haible  <bruno@clisp.org>
64969
64970         * modules/strcasestr: New file.
64971         * MODULES.html.sh (String handling, based on ANSI C 89): Add
64972         strcasestr.
64973
64974 2005-08-17  Bruno Haible  <bruno@clisp.org>
64975
64976         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
64977
64978 2005-08-17  Bruno Haible  <bruno@clisp.org>
64979
64980         * modules/mbuiter: New file.
64981         * MODULES.html.sh (Extended multibyte and wide character utilities):
64982         Add mbuiter.
64983
64984 2005-08-17  Bruno Haible  <bruno@clisp.org>
64985
64986         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
64987         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
64988
64989 2005-08-17  Bruno Haible  <bruno@clisp.org>
64990
64991         * m4/strcasestr.m4: New file.
64992
64993 2005-08-17  Bruno Haible  <bruno@clisp.org>
64994
64995         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
64996         * lib/strstr.c: Completely rewritten, with multibyte locale support.
64997
64998 2005-08-17  Bruno Haible  <bruno@clisp.org>
64999
65000         * lib/strcasestr.h: New file.
65001         * lib/strcasestr.c: New file.
65002
65003 2005-08-17  Bruno Haible  <bruno@clisp.org>
65004
65005         * lib/strcasecmp.c: Use mbuiter.h.
65006
65007 2005-08-17  Bruno Haible  <bruno@clisp.org>
65008
65009         * lib/mbuiter.h: New file.
65010
65011 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65012
65013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65014         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65015         and gl_GETOPT are both invoked via different paths (as happens
65016         with GNU tar CVS because it uses both argp and getopt), the former
65017         wins.
65018
65019 2005-08-16  Bruno Haible  <bruno@clisp.org>
65020
65021         * modules/tls: New file.
65022         * MODULES.html.sh (Multithreading): Add tls.
65023
65024 2005-08-16  Bruno Haible  <bruno@clisp.org>
65025
65026         * modules/strnlen1: New file.
65027         * MODULES.html.sh (String handling): Add strnlen1.
65028
65029 2005-08-16  Bruno Haible  <bruno@clisp.org>
65030
65031         * modules/strcase (Files): Add m4/mbrtowc.m4.
65032         (Depends-on): Add strnlen1, mbchar.
65033
65034 2005-08-16  Bruno Haible  <bruno@clisp.org>
65035
65036         * modules/mbiter: New file.
65037         * MODULES.html.sh (Extended multibyte and wide character utilities):
65038         Add mbiter.
65039
65040 2005-08-16  Bruno Haible  <bruno@clisp.org>
65041
65042         * modules/mbfile: New file.
65043         * MODULES.html.sh (Extended multibyte and wide character utilities):
65044         Add mbfile.
65045
65046 2005-08-16  Bruno Haible  <bruno@clisp.org>
65047
65048         * modules/mbchar: New file.
65049         * MODULES.html.sh (Extended multibyte and wide character utilities):
65050         New section.
65051
65052 2005-08-16  Bruno Haible  <bruno@clisp.org>
65053
65054         * m4/tls.m4: New file, from GNU gettext.
65055
65056 2005-08-16  Bruno Haible  <bruno@clisp.org>
65057
65058         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65059         always.
65060         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65061
65062 2005-08-16  Bruno Haible  <bruno@clisp.org>
65063
65064         * m4/mbiter.m4: New file.
65065
65066 2005-08-16  Bruno Haible  <bruno@clisp.org>
65067
65068         * m4/mbfile.m4: New file.
65069
65070 2005-08-16  Bruno Haible  <bruno@clisp.org>
65071
65072         * m4/mbchar.m4: New file.
65073
65074 2005-08-16  Bruno Haible  <bruno@clisp.org>
65075
65076         * lib/tls.h: New file, from GNU gettext.
65077         * lib/tls.c: New file, from GNU gettext.
65078
65079 2005-08-16  Bruno Haible  <bruno@clisp.org>
65080
65081         * lib/strnlen1.h: New file.
65082         * lib/strnlen1.c: New file.
65083
65084 2005-08-16  Bruno Haible  <bruno@clisp.org>
65085
65086         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65087         (mbi_init): Update.
65088         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65089         NUL byte, not after it.
65090
65091 2005-08-16  Bruno Haible  <bruno@clisp.org>
65092
65093         * lib/strcase.h (strcasecmp): Add note in comments.
65094         * lib/strncasecmp.c: Use code from strcasecmp.c.
65095         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65096         (strcasecmp): Work correctly in multibyte locales.
65097
65098 2005-08-16  Bruno Haible  <bruno@clisp.org>
65099
65100         * lib/mbiter.h: New file.
65101
65102 2005-08-16  Bruno Haible  <bruno@clisp.org>
65103
65104         * lib/mbfile.h: New file.
65105
65106 2005-08-16  Bruno Haible  <bruno@clisp.org>
65107
65108         * lib/mbchar.h: New file.
65109         * lib/mbchar.c: New file.
65110
65111 2005-08-16  Bruno Haible  <bruno@clisp.org>
65112
65113         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65114         the valid ones. Makes the comparison operations transitive:
65115         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65116         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65117
65118 2005-08-15  Simon Josefsson  <jas@extundo.com>
65119
65120         * modules/ssize_t (License): Change to 'unlimited'.
65121
65122         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65123
65124 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65127         Add comments for each pending glibc patch.
65128
65129 2005-08-15  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65132         __cplusplus is defined.
65133
65134 2005-08-14  Jim Meyering  <jim@meyering.net>
65135
65136         Sync from coreutils.
65137
65138         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65139         Use the hash-table-based cycle-detection code not just when
65140         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65141         Reported by James Youngman in
65142         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65143         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65144         FTS_TIGHT_CYCLE_CHECK.
65145         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65146         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65147         once again.
65148         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65149         * lib/fts.c (fd_safer): Remove decl.
65150         Include fcntl--.h rather than unistd-safer.h
65151         (fts_safe_changedir): Don't call fd_safer; no longer needed
65152         now that we include fcntl--.h.
65153
65154 2005-08-12  Simon Josefsson  <jas@extundo.com>
65155
65156         * modules/getndelim2: Use ssize_t module.
65157         * modules/getnline: Likewise.
65158         * modules/safe-read: Likewise.
65159         * modules/xreadlink: Likewise.
65160
65161         * modules/ssize_t: New file.
65162
65163 2005-08-12  Simon Josefsson  <jas@extundo.com>
65164
65165         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65166
65167 2005-08-12  Simon Josefsson  <jas@extundo.com>
65168
65169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65170         ssize_t.
65171
65172 2005-08-12  Simon Josefsson  <jas@extundo.com>
65173
65174         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65175         readline, getdelim and check_version.
65176         (Support for systems lacking ISO C 99: Sizes of integer types):
65177         Add size_max.
65178
65179 2005-08-12  Bruno Haible  <bruno@clisp.org>
65180
65181         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65182
65183 2005-08-11  Simon Josefsson  <jas@extundo.com>
65184
65185         * modules/readline: New file.
65186
65187         * modules/strnlen (Files): Add strnlen.h.
65188
65189 2005-08-11  Simon Josefsson  <jas@extundo.com>
65190
65191         * m4/readline.m4: New file.
65192
65193 2005-08-11  Simon Josefsson  <jas@extundo.com>
65194
65195         * lib/readline.h, readline.c: New file.
65196
65197 2005-08-11  Simon Josefsson  <jas@extundo.com>
65198
65199         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65200         gl_AVOID.
65201
65202 2005-08-11  Bruno Haible  <bruno@clisp.org>
65203
65204         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65205
65206 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
65207
65208         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
65209
65210 2005-08-10  Simon Josefsson  <jas@extundo.com>
65211
65212         * tests/test-iconvme.c: New file.
65213
65214 2005-08-10  Simon Josefsson  <jas@extundo.com>
65215
65216         * m4/strnlen.m4: New file.
65217
65218         * m4/strndup.m4: Don't check for strnlen declaration, done in
65219         strnlen.m4.
65220
65221 2005-08-10  Simon Josefsson  <jas@extundo.com>
65222
65223         * lib/strndup.c: Use strnlen.h.
65224
65225         * lib/strnlen.h: New file.
65226
65227 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65228
65229         * README: Typos.
65230
65231 2005-08-02  Simon Josefsson  <jas@extundo.com>
65232
65233         * modules/readline: New file.
65234
65235 2005-08-02  Simon Josefsson  <jas@extundo.com>
65236
65237         * modules/getdelim: New file.
65238
65239         * modules/getline: Rewrite, don't use getndelim2.
65240
65241 2005-08-02  Simon Josefsson  <jas@extundo.com>
65242
65243         * m4/getline.m4: Separate out getdelim stuff into separate module.
65244
65245         * m4/getdelim.m4: New file.
65246
65247 2005-08-02  Simon Josefsson  <jas@extundo.com>
65248
65249         * lib/getline.h, getline.c: Rewrite.
65250
65251         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
65252
65253 2005-07-31  Bruno Haible  <bruno@clisp.org>
65254
65255         * lib/lock.h (gl_lock_initializer): New macro.
65256         (gl_lock_define_initialized): Use it.
65257         (gl_rwlock_initializer): New macro.
65258         (gl_rwlock_define_initialized): Use it.
65259         (gl_recursive_lock_initializer): New macro.
65260         (gl_recursive_lock_define_initialized): Use it.
65261
65262 2005-07-30  Karl Berry  <karl@gnu.org>
65263
65264         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
65265         Report from Ben Pfaff, regarding getopt.
65266
65267 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
65268
65269         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
65270         normal way.
65271         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
65272         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
65273         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
65274         (gl_GETOPT): Use the new macros.  Most of the implementation
65275         is moved to the new macros.  This is for programs like Emacs
65276         that don't want all the functionality of gl_GETOPT.
65277
65278 2005-07-26  Bruno Haible  <bruno@clisp.org>
65279
65280         * m4/lock.m4: Update from GNU gettext.
65281
65282 2005-07-26  Bruno Haible  <bruno@clisp.org>
65283
65284         * lib/lock.h: Update from GNU gettext.
65285         * lib/lock.c: Update from GNU gettext.
65286
65287 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
65288
65289         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
65290         obsolescent AC_TRY_RUN.  Include the default includes files, for
65291         'exit'.
65292
65293 2005-07-24  Bruno Haible  <bruno@clisp.org>
65294
65295         * modules/visibility: New file.
65296         * MODULES.html.sh (Misc): Add visibility.
65297
65298 2005-07-24  Bruno Haible  <bruno@clisp.org>
65299
65300         * m4/visibility.m4: New file.
65301
65302 2005-07-24  Bruno Haible  <bruno@clisp.org>
65303
65304         * doc/visibility.texi: New file.
65305
65306 2005-07-22  Bruno Haible  <bruno@clisp.org>
65307
65308         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
65309         $(ALLOCA_H), redundant through BUILT_SOURCES.
65310         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
65311         redundant through BUILT_SOURCES.
65312         * modules/byteswap (Makefile.am): Remove explicit dependency on
65313         $(BYTESWAP_H), redundant through BUILT_SOURCES.
65314         * modules/fnmatch (Makefile.am): Remove explicit dependency on
65315         $(FNMATCH_H), redundant through BUILT_SOURCES.
65316         * modules/getopt (Makefile.am): Remove explicit dependency on
65317         $(GETOPT_H), redundant through BUILT_SOURCES.
65318         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
65319         redundant through BUILT_SOURCES.
65320         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
65321         redundant through BUILT_SOURCES.
65322         * modules/stdbool (Makefile.am): Remove explicit dependency on
65323         $(STDBOOL_H), redundant through BUILT_SOURCES.
65324         * modules/stdint (Makefile.am): Remove explicit dependency on
65325         $(STDINT_H), redundant through BUILT_SOURCES.
65326         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
65327         Remove explicit dependency on $(SYSEXITS_H).
65328         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
65329
65330 2005-07-18  Simon Josefsson  <jas@extundo.com>
65331
65332         * lib/check-version.c (check_version): Accept identical versions too.
65333
65334 2005-07-18  Bruno Haible  <bruno@clisp.org>
65335
65336         * modules/lock: New file.
65337         * MODULES.html.sh (Multithreading): New section.
65338
65339 2005-07-18  Bruno Haible  <bruno@clisp.org>
65340
65341         * m4/lock.m4: New file, from GNU gettext.
65342
65343 2005-07-18  Bruno Haible  <bruno@clisp.org>
65344
65345         * lib/lock.h: New file, from GNU gettext.
65346         * lib/lock.c: New file, from GNU gettext.
65347
65348 2005-07-18  Bruno Haible  <bruno@clisp.org>
65349
65350         * lib/lock.h (gl_once_t): New type.
65351         (gl_once_define, gl_once): New macros.
65352         * lib/lock.c (fresh_once): New variable.
65353         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
65354         functions.
65355
65356 2005-07-16  Simon Josefsson  <jas@extundo.com>
65357
65358         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
65359         workaround, suggested by Bruno.
65360
65361 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65362
65363         * modules/xalloc (Depends-on): Add xalloc-die.
65364         * modules/xvasprintf (Depends-on): Add xalloc-die.
65365
65366 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
65367
65368         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
65369         with a minor change.
65370
65371 2005-07-15  Bruno Haible  <bruno@clisp.org>
65372
65373         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
65374         When using lib/poll.c, define poll as rpl_poll.
65375
65376 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
65377
65378         * modules/argp (Depends-on): Remove unlocked-io.
65379
65380 2005-07-14  Derek Price  <derek@ximbiot.com>
65381
65382         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
65383         for glob symlink bug.
65384
65385 2005-07-14  Bruno Haible  <bruno@clisp.org>
65386
65387         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
65388         Instead, test for *_unlocked function declarations directly.
65389
65390 2005-07-11  Simon Josefsson  <jas@extundo.com>
65391
65392         * modules/size_max: New file.
65393
65394         * modules/xsize: Depend on size_max module for size_max.m4.
65395
65396 2005-07-11  Simon Josefsson  <jas@extundo.com>
65397
65398         * lib/size_max.h: New file.
65399
65400 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
65401
65402         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
65403         copyright symbol and the year.
65404         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
65405         (version_etc_va): Use parameterized copyright notice.
65406         Reword to conform to the current GNU coding standards.
65407
65408 2005-07-11  Karl Berry  <karl@gnu.org>
65409
65410         * doc/gnulib.texi (Quoting): new node.
65411         (Initial import): more info, from Patrice.
65412
65413 2005-07-11  Bruno Haible  <bruno@clisp.org>
65414
65415         * gnulib-tool (func_usage): Document option --avoid.
65416         (Command line options): Handle --avoid.
65417         (func_acceptable): New function.
65418         (func_modules_transitive_closure): Use it.
65419
65420 2005-07-11  Bruno Haible  <bruno@clisp.org>
65421
65422         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
65423         Reported by Jim Meyering.
65424
65425 2005-07-10  Bruno Haible  <bruno@clisp.org>
65426
65427         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
65428         Needed when size_t is smaller than 'unsigned int'.
65429         Reported by Paul Eggert.
65430
65431 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65432
65433         * modules/argp (Depends-on): Add unlocked-io
65434
65435 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65436
65437         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
65438         block of defines.
65439
65440 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65441
65442         * config/srclist.txt: Comment out regcomp.c, since we have a porting
65443         fix now.
65444
65445 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
65446         and Paul Eggert  <eggert@cs.ucla.edu>
65447
65448         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
65449         in wint_t, not wchar_t.  Remove now-unnecessary cast.
65450
65451 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65452
65453         * modules/regex (Files): Add lib/regex_internal.c,
65454         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
65455         (Depends-on): Add extensions.
65456         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
65457
65458 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
65461         pathconf.
65462         * m4/same.m4 (gl_SAME): Likewise.
65463         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
65464
65465         * m4/regex.m4: Adjust to new libc regex implementation.
65466         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
65467         all the .c and .h parts of (the new) regex.
65468         Quote the m4 stuff better.
65469         Check for RE_ICASE bug of old gnulib.
65470         Check for REG_STARTEND of recent libc.
65471         Rename local variables from jm_* to gl_*.
65472         Quote operand of "test -f".
65473         Say "recent enough" version of libc, not "version 2".
65474         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
65475         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
65476         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
65477         Remove check for btowc, isascii.
65478         Require AM_LANGINFO_CODESET.
65479
65480 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65481
65482         * lib/regex.c, regex.h: Sync from libc.
65483         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
65484         * lib/regexec.c:
65485         New files, synced from libc, except that regex_internal.h
65486         currently has a small porting fix.
65487
65488 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
65489
65490         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
65491         regex_internal.c, regexec.c.
65492         Add regex_internal.h too, but as a comment, since the libc version
65493         is currently broken in gnulib mode.
65494
65495 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         Support programs like Emacs that use gnulib but not gettext.
65498         * MODULES.html.sh (Internationalization functions): Add gettext-h.
65499         * modules/gettext-h: New file.
65500         * modules/gettext (Files): Remove lib/gettext.h.
65501         (Depends-on): Add gettext-h.
65502         (Makefile.am): Remove lib_SOURCES.
65503         * modules/argmatch, modules/c-stack, modules/closeout:
65504         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
65505         * modules/execute, modules/file-type, modules/getaddrinfo:
65506         * modules/getopt, modules/human, modules/javacomp:
65507         * modules/javaexec, modules/mkdir-p, modules/obstack:
65508         * modules/openat, modules/pagealign_alloc, modules/pipe:
65509         * modules/quotearg, modules/regex, modules/rpmatch:
65510         * modules/unicodeio, modules/userspec, modules/version-etc:
65511         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
65512         * modules/xsetenv:
65513         Depend on gettext-h, not gettext.
65514
65515 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
65516
65517         * gnulib-tool (func_import): Add support for 'public domain' license.
65518         * modules/alloca, modules/atexit, modules/memmove:
65519         Now public domain, not GPL.
65520         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
65521         * modules/realloc, modules/strerror, modules/strtod:
65522         Now LGPL, not GPL.
65523
65524 2005-07-05  Bruno Haible  <bruno@clisp.org>
65525
65526         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
65527         autoconf CVS. Needed for mingw.
65528
65529 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65530
65531         Remove the dependency of the strftime module on the tzset module.
65532         * modules/strftime (Depends-on): Remove dependency on tzset.
65533
65534 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65535
65536         Remove the dependency of the strftime module on the tzset module.
65537         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
65538         gl_FUNC_TZSET_CLOBBER.
65539
65540 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         Remove the dependency of the strftime module on the tzset module.
65543         * lib/strftime.c (my_strftime)
65544         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
65545         Copy the input structure, to work around some of the bug with
65546         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
65547         Solaris releases, you should also use the tzset module, but we won't
65548         require it as a dependency any more since we don't want LGPLed code
65549         to depend on GPLed code.
65550
65551 2005-07-02  Jim Meyering  <jim@meyering.net>
65552
65553         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
65554         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
65555         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
65556         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
65557
65558 2005-07-02  Jim Meyering  <jim@meyering.net>
65559
65560         * lib/backupfile.c (backup_args): Change a `0' to NULL.
65561
65562 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
65563
65564         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
65565         declares only 'struct timespec;' (!).
65566
65567 2005-07-01  Jim Meyering  <jim@meyering.net>
65568
65569         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
65570         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
65571         * lib/save-cwd.c, tempname.c:
65572         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65573         and don't include <sys/file.h>).
65574
65575 2005-06-29  Jim Meyering  <jim@meyering.net>
65576
65577         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
65578         type name.  Use the variable name instead.
65579         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
65580         Likewise.
65581
65582 2005-06-28  Simon Josefsson  <jas@extundo.com>
65583
65584         * modules/check-version (Files): Add check-version.m4.
65585
65586 2005-06-28  Simon Josefsson  <jas@extundo.com>
65587
65588         * m4/check-version.m4: New file, suggested by Jim Meyering
65589         <jim@meyering.net>.
65590
65591 2005-06-28  Simon Josefsson  <jas@extundo.com>
65592
65593         * lib/check-version.h, lib/check-version.c: New files.
65594
65595 2005-06-28  Simon Josefsson  <jas@extundo.com>
65596
65597         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
65598         collision with global variable.  Better indentation.  Don't
65599         increment buffer pointer beyond buffer end.  Based on comments
65600         from Paul Eggert <eggert@cs.ucla.edu>.
65601
65602         * lib/base64.h: Indent.
65603
65604 2005-06-28  Simon Josefsson  <jas@extundo.com>
65605
65606         * doc/gnulib.texi (Library version handling): New section.
65607
65608 2005-06-28  Jim Meyering  <jim@meyering.net>
65609
65610         * check-module (find_included_lib_files): Hard-code another
65611         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
65612         but modules/fts-lgpl (correctly) does not list those files.
65613
65614         * modules/canonicalize (Files): Add lib/pathmax.h.
65615
65616 2005-06-25  Simon Josefsson  <jas@extundo.com>
65617
65618         * modules/check-version: New file.
65619
65620 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
65621
65622         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
65623         initializer of struct addrinfo, as an indication that we don't
65624         care how many members the structure has.
65625
65626 2005-06-24  Derek Price  <derek@ximbiot.com>
65627         and Bruno Haible  <bruno@clisp.org>
65628
65629         Remove stat module & update lstat.
65630         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
65631         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65632         * m4/stat.m4: Remove this file.
65633
65634 2005-06-24  Derek Price  <derek@ximbiot.com>
65635         and Bruno Haible  <bruno@clisp.org>
65636
65637         Remove stat module & update lstat.
65638         * lib/stat.c: Remove this file...
65639         (slash_aware_lstat): ...moving this content and its support...
65640         * lib/lstat.c (rpl_lstat): ...into here.
65641         * lib/lstat.h: New file.
65642
65643 2005-06-24  Derek Price  <derek@ximbiot.com>
65644         and Bruno Haible  <bruno@clisp.org>
65645
65646         Remove stat module & update lstat.
65647         * config/srclist.txt (libc sources): Remove stat.
65648
65649 2005-06-24  Derek Price  <derek@ximbiot.com>
65650         and Bruno Haible  <bruno@clisp.org>
65651
65652         Remove stat module & update lstat.
65653         * MODULES.html.sh (stat): Remove.
65654         * MODULES.html: Regenerated.
65655         * modules/lstat (Description): Correct function name.
65656         (Files): Add "lstat.h".
65657         (Depends-on): Remove stat, add xalloc, stat-macros.
65658         * modules/stat: Remove this file.
65659         (Include): Add "lstat.h", remove <sys/stat.h>.
65660
65661 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
65664         (ranged_convert): Don't save conversion in a temporary struct.
65665         This causes a warning with GCC 4.0.0, and anyway in the typical
65666         case it's not worth the extra 100 bytes or so of code.
65667         (ranged_convert, __mktime_internal): When calling a function via a
65668         pointer P, use P () rather than (*P) (), as we now assume C89 or
65669         better.
65670
65671 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65672
65673         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
65674         "who -r" failed to give output.  Problem reported by Tim Waugh.
65675
65676         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
65677         (xcalloc): Use it to avoid needless tests.
65678         Problem reported by Jim Meyering.
65679
65680 2005-06-20  Derek Price  <derek@ximbiot.com>
65681
65682         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
65683         unnecessary for Autoconfs > 2.59c.
65684
65685 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
65686
65687         * lib/argp.h (__option_is_short): Check upper limit of
65688         __key. Isprint() requires its argument to have the value
65689         of an unsigned char or EOF.
65690
65691 2005-06-16  Jim Meyering  <jim@meyering.net>
65692
65693         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
65694         when either N or S is zero.
65695
65696 2005-06-16  Derek Price  <derek@ximbiot.com>
65697
65698         * m4/bison.m4: Declare YACC & YFLAGS precious.
65699
65700 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
65701
65702         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
65703         multibyte string or pattern, fall back on unibyte matching.
65704         Problem reported by James Youngman.
65705
65706 2005-06-08  Bruno Haible  <bruno@clisp.org>
65707
65708         * modules/csharpcomp: New file.
65709         * MODULES.html.sh (C#): Add csharpcomp.
65710
65711 2005-06-08  Bruno Haible  <bruno@clisp.org>
65712
65713         * m4/csharpcomp.m4: New file, from GNU gettext.
65714
65715 2005-06-08  Bruno Haible  <bruno@clisp.org>
65716
65717         * lib/csharpcomp.h: New file, from GNU gettext.
65718         * lib/csharpcomp.c: New file, from GNU gettext.
65719         * lib/csharpcomp.sh.in: New file, from GNU gettext.
65720
65721 2005-06-08  Bruno Haible  <bruno@clisp.org>
65722
65723         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
65724         warning on mingw.
65725
65726 2005-06-07  Derek Price  <derek@ximbiot.com>
65727
65728         Sync from CVS.
65729         * lib/glob_.h: Indent nested #ifdef.
65730
65731 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65732
65733         Sync from coreutils.
65734         Use "file name" when talking about file names, instead of "filename"
65735         or "path", as per the GNU coding standards.
65736         * lib/mkdir-p.c: Renamed from makepath.c.
65737         (make_dir_parents): Renamed from make_path.  All callers changed.
65738         * lib/mkdir-p.h: Likewise.  All includers changed.
65739         * lib/filenamecat.c: Renamed from path-concat.c.
65740         (file_name_concat): Renamed from path_concat.  All callers changed.
65741         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
65742         * lib/filenamecat.h: Likewise.  All includers changed.
65743         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
65744         in comments or local variable names.
65745         * lib/basename.c: Likewise.
65746         * lib/canonicalize.c, canonicalize.h: Likewise.
65747         * lib/dirname.c, dirname.h: Likewise.
65748         * lib/euidaccess.c: Likewise.
65749         * lib/exclude.c: Likewise
65750         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
65751         * lib/fsusage.c, fsuage.h: Likewise.
65752         * lib/fts.c, fts_.h: Likewise.
65753         * lib/getcwd.c: Likewise.
65754         * lib/getloadavg.c: Likewise.
65755         * lib/mkstemp.c: Likewise.
65756         * lib/mountlist.c, mountlist.h: Likewise.
65757         * lib/openat.c, openat.h: Likewise.
65758         * lib/readlink-stub.c: Likewise.
65759         * lib/readutmp.c, readutmp.h: Likewise.
65760         * lib/rename.c: Likewise.
65761         * lib/rmdir.c: Likewise.
65762         * lib/same.c: Likewise.
65763         * lib/savedir.c: Likewise.
65764         * lib/stripslash.c: Likewise.
65765         * lib/tempname.c: Likewise.
65766         * lib/xreadlink.c: Likewise.
65767         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
65768         All uses changed.
65769         * lib/exclude.h: Likewise.
65770
65771         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
65772         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65773         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
65774         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65775         * lib/pathmax.h: Include <limits.h> unconditionally, since other
65776         files have been getting away with it for years (MORE/BSD 4.3
65777         is extinct now).
65778         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
65779         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
65780
65781         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
65782         Define to 256, not 255, as per modern POSIX.
65783
65784 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65785
65786         Sync from coreutils.
65787         Use "file name" when talking about file names, instead of "filename"
65788         or "path", as per the GNU coding standards.
65789         * MODULES.html.sh: mkdir-p renamed from makepath.
65790         filenamecat renamed from path-concat.
65791         * modules/filenamecat: Renamed from modules/path-concat.
65792         (Files): filenamecat.h and filenamecat.c renamed from
65793         path-concat.h and path-concat.c.
65794         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
65795         (Include): filenamecat.h, not path-concat.h.
65796         * modules/mkdir-p: Renamed from modules/makepath.
65797         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
65798         makepath.c.
65799         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
65800         (Include): mkdir-p.h, not makepath.h.
65801
65802 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
65803
65804         Sync from coreutils.
65805         * m4/mkdir-p.m4: Renamed from makepath.m4.
65806         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
65807         Rename files from makepath.c to mkdir-p.c, and from
65808         makepath.h to mkdir-p.h.
65809         * m4/filenamecat.m4: Renamed from path-concat.m4.
65810         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
65811         Rename files from path-concat.c to filenamecat.c,
65812         and from path-concat.h to filenamecat.h.
65813         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
65814         "file name" in local variables or comments.
65815         * m4/rename.m4: Likewise.
65816
65817 2005-06-01  Bruno Haible  <bruno@clisp.org>
65818
65819         * modules/csharpexec: New file.
65820         * MODULES.html.sh (C#): New section.
65821
65822 2005-06-01  Bruno Haible  <bruno@clisp.org>
65823
65824         * m4/csharp.m4: New file, from GNU gettext.
65825         * m4/csharpexec.m4: New file, from GNU gettext.
65826
65827 2005-06-01  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/csharpexec.h: New file, from GNU gettext.
65830         * lib/csharpexec.c: New file, from GNU gettext.
65831         * lib/csharpexec.sh.in: New file, from GNU gettext.
65832
65833 2005-05-31  Derek Price  <derek@ximbiot.com>
65834             Paul Eggert  <eggert@cs.ucla.edu>
65835
65836         Sync from cvs.
65837         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65838
65839 2005-05-31  Derek Price  <derek@ximbiot.com>
65840             Paul Eggert  <eggert@cs.ucla.edu>
65841
65842         Sync from cvs.
65843         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
65844
65845 2005-05-29  Derek Price  <derek@ximbiot.com>
65846
65847         * config/srclist.txt (glob_.h, glob.c): Add these files.
65848
65849 2005-05-29  Derek Price  <derek@ximbiot.com>
65850
65851         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
65852         * modules/glob: New file.
65853         * modules/getlogin_r: Add link to POSIX spec in description.
65854
65855 2005-05-29  Derek Price  <derek@ximbiot.com>
65856             Paul Eggert  <eggert@cs.ucla.edu>
65857
65858         * m4/glob.m4: New file.
65859
65860 2005-05-29  Derek Price  <derek@ximbiot.com>
65861             Paul Eggert  <eggert@cs.ucla.edu>
65862
65863         * lib/glob_.h, lib/glob.c: New files.
65864
65865 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         * modules/fts (Files): Remove m4/inttypes-pri.m4.
65868         * modules/fts-lgpl (Depends-on): Remove gettext.
65869
65870 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
65873         and don't require gt_INTTYPES_PRI.
65874
65875 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
65876
65877         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
65878
65879         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
65880         the configuration hassle isn't worth it.
65881         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
65882         (LONGEST_MODIFIER, PRIuMAX): Remove.
65883
65884 2005-05-27  Bruno Haible  <bruno@clisp.org>
65885
65886         * lib/getlogin_r.h: Remove second include of <stddef.h>.
65887
65888 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
65889
65890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
65891         _POSIX_PTHREAD_SEMANTICS for Solaris.
65892
65893 2005-05-25  Derek Price  <derek@ximbiot.com>
65894
65895         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
65896
65897 2005-05-25  Derek Price  <derek@ximbiot.com>
65898             Paul Eggert  <eggert@cs.ucla.edu>
65899
65900         * modules/getlogin_r, m4/getlogin_r.m4: New files.
65901         * lib/getlogin_r.c, getlogin_r.h: New files.
65902
65903 2005-05-25  Bruno Haible  <bruno@clisp.org>
65904             Derek Price  <derek@ximbiot.com>
65905
65906         * lib/getlogin_r.h: Simplify API documentation.
65907
65908 2005-05-23  Derek Price  <derek@ximbiot.com>
65909
65910         * modules/minmax (Files): Add m4/minmax.m4.
65911         (configure.ac): Add gl_MINMAX.
65912
65913 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
65914
65915         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
65916         so that unistd-safer.h (GPL'ed code) need not be included.
65917
65918 2005-05-22  Bruno Haible  <bruno@clisp.org>
65919
65920         * m4/minmax.m4: New file.
65921         Based on a patch by Derek Price <derek@ximbiot.com>.
65922
65923 2005-05-22  Bruno Haible  <bruno@clisp.org>
65924
65925         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
65926         (INT64_MIN): Fix definition.
65927         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
65928
65929         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
65930         NEED_SIGNED_INT_TYPES.
65931
65932         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
65933         HAVE_SYSTEM_INTTYPES.
65934
65935 2005-05-22  Bruno Haible  <bruno@clisp.org>
65936
65937         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
65938         Also include <sys/param.h> if it defines MIN, MAX.
65939         Based on a patch by Derek Price <derek@ximbiot.com>.
65940
65941 2005-05-21  Jim Meyering  <jim@meyering.net>
65942
65943         * modules/fts (Files): Add m4/inttypes-pri.m4.
65944         (Depends-on): Add lstat and remove gettext.  Alphabetize.
65945
65946 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65947
65948         New fts module.
65949         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
65950         (setup_dir, free_dir): New functions.
65951         (enter_dir, leave_dir): Define trivial
65952         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
65953         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
65954         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
65955         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
65956         Move to fts-cycle.c.
65957         (fts_open): Use setup_dir.
65958         (fts_close): Use free_dir.
65959         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
65960         This adds a label and some gotos, but the alternatives were messier.
65961         Check for memory allocation failure when entering a dir.
65962         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
65963         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
65964         (FTS): New member fts_cycle, that is a union that contains the
65965         old active_dir_ht and cycle_state.  All uses changed to mention
65966         fts_cycle.ht and fts_cycle.state.
65967         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
65968         fts.c, with the following changes:
65969         (setup_dir, free_dir): New functions.
65970         (enter_dir): Now returns bool.  Return true if successful, false
65971         if memory exhausted.  All callers changed.
65972         Do not bother partly cleaning up on
65973         memory allocation failure; that is free_dir's job.
65974         However, free ad if hash_insert fails, to avoid memory leak.
65975         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
65976         fts->fts_options to see which union member to use.
65977
65978 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65979
65980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
65981         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
65982
65983 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
65984
65985         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
65986
65987 2005-05-20  Jim Meyering  <jim@meyering.net>
65988
65989         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
65990         Now a macro, to pacify GCC.
65991
65992 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65993
65994         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
65995         of -1.
65996
65997 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
65998
65999         * lib/chown.c (rpl_chown): Return -1 on failure.
66000
66001 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66002
66003         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66004         Don't check for stddef.h.
66005         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66006         don't use its results.
66007         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66008         since we include them unconditionally.  Don't require
66009         AM_STDBOOL_H, since stdbool is a prerequisite.
66010         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66011         since we assume C89 or better.
66012         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66013         as we don't use their results.
66014         Don't check for fchdir, memmove, memset, strrchr, as we use
66015         them unconditionally.
66016         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66017         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66018
66019 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66020
66021         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66022         Include <stddef.h> unconditionally, since we assume C89 now.
66023         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66024         * lib/fts.c: Include fts_.h first, to check interface.
66025         Do not include intprops.h; no longer needed.
66026         Include cycle-check.h and hash.h, since fts_.h no longer does.
66027         Remove unnecessary casts of closedir to void.
66028         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66029         decide whether to decrement nlinks.
66030         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66031         (FTS): Use struct hash_table * instead of Hash_table, so that
66032         we no longer need to include hash.h here.
66033
66034 2005-05-18  Jim Meyering  <jim@meyering.net>
66035
66036         * modules/dirfd (License): Change to LGPL.  Most of the code
66037         is already in the public domain.
66038
66039 2005-05-18  Jim Meyering  <jim@meyering.net>
66040
66041         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66042         Reported by Yoann Vandoorselaere.
66043
66044 2005-05-17  Jim Meyering  <jim@meyering.net>
66045
66046         * m4/fts.m4: New file, from coreutils.
66047
66048 2005-05-17  Jim Meyering  <jim@meyering.net>
66049
66050         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66051
66052 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66053
66054         Sync from coreutils.
66055         * m4/unlinkdir.m4: New file.
66056
66057 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66058
66059         Sync from coreutils.
66060         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66061         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66062         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66063         White space changes only.
66064         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66065         special.
66066         * lib/yesno.c: Include getline.h, not ctype.h.
66067         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66068         Use getline to remove arbitrary restriction on response length.
66069
66070 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66071
66072         * config/srclist-update: Spell out "Street" in FSF postal
66073         mail address; this is the style the FSF seems to prefer.
66074
66075         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66076         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66077         this updates FSF postal mail address.
66078
66079         Sync from coreutils.
66080         * modules/unlinkdir: New file.
66081         * modules/yesno (Depends-on): Add getline.
66082         * MODULES.html.sh (File system functions): Add unlinkdir.
66083
66084 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66085
66086         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66087         lib/strsep.h:
66088         Change the initial comment to refer to GPL, not LGPL.
66089         gnulib-tool will change it to LGPL as needed.
66090
66091         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66092         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66093         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66094         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66095         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66096         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66097         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66098         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66099         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66100         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66101         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66102         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66103         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66104         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66105         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66106         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66107         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66108         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66109         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66110         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66111         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66112         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66113         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66114         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66115         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66116         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66117         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66118         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66119         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66120         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66121         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66122         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66123         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66124         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66125         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66126         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66127         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66128         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66129         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66130         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66131         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66132         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66133         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66134         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66135         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66136         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66137         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66138         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66139         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66140         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66141         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66142         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66143         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66144         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66145         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66146         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66147         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66148         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66149         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66150         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66151         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66152         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66153         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66154         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66155         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66156         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66157         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66158         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66159         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66160         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66161         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66162         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66163         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66164         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66165         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66166         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66167         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66168         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66169         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66170         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66171         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66172         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66173         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66174         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66175         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66176         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66177         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66178         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66179         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66180         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66181         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66182         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66183         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66184         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66185         lib/yesno.c, lib/yesno.h:
66186         Update FSF postal mail address.
66187
66188 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66191         tests/test-memmem.c, tests/test-stpncpy.c:
66192         Update FSF postal mail address.
66193
66194 2005-05-13  Bruno Haible  <bruno@clisp.org>
66195
66196         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66197         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66198         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66199         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66200         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66201         Add support for 64-bit integers in the MSVC compiler.
66202
66203 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66204
66205         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
66206
66207 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
66208
66209         * gnulib-tool (func_import): Sort and uniquify recommended includes.
66210
66211 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
66212
66213         * doc/getdate.texi (General date syntax): Don't say that date
66214         date --iso-8601=ns generates acceptable dates; it doesn't yet.
66215         Problem reported by Nic Ferrier.
66216
66217 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66218
66219         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
66220         specified in ai_socktype. Fix invalid ai_protocol
66221         check. ai_protocol is usually set to 0 or depending on
66222         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
66223         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
66224         ai_socktype / ai_protocol in the returned addrinfo structure.
66225
66226 2005-05-10  Simon Josefsson  <jas@extundo.com>
66227
66228         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
66229         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66230
66231 2005-05-10  Karl Berry  <karl@gnu.org>
66232
66233         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
66234         (from http://www.gnu.org/licenses).
66235         * doc/COPYING.LIB: also rename to COPYING.LESSER.
66236         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
66237         fdl.texi suffices.
66238
66239 2005-05-10  Karl Berry  <karl@gnu.org>
66240
66241         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
66242         (COPYING.DOC): remove.
66243
66244         * config/srclist-update: new FSF address.
66245
66246 2005-05-10  Derek Price  <derek@ximbiot.com>
66247
66248         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
66249         possible.
66250
66251 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66252             Bruno Haible  <bruno@clisp.org>
66253
66254         * modules/inet_ntop: New file.
66255         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66256         inet_ntop.
66257
66258 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66259             Bruno Haible  <bruno@clisp.org>
66260
66261         * m4/inet_ntop.m4: New file.
66262
66263 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66264             Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/inet_ntop.h: New file.
66267         * lib/inet_ntop.c: New file, from glibc with modifications.
66268
66269 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * modules/time_r (License): Change to LGPL.
66272         * modules/extensions (License): Change to LGPL.  Actually,
66273         the license is more permissive than that, but currently gnulib-tool
66274         doesn't know how to handle more-permissive licenses.
66275
66276         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
66277         Problem reported by Dave Love.
66278
66279 2005-05-08  Jim Meyering  <jim@meyering.net>
66280
66281         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
66282         blank.
66283
66284 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
66285
66286         * modules/argmatch (Depends-on): Add stdbool.
66287         * modules/backupfile (Depends-on): Likewise.
66288         * modules/chdir-long (Depends-on): Likewise.
66289         * modules/closeout (Depends-on): Likewise.
66290         * modules/cycle-check (Depends-on): Likewise.
66291         * modules/dirname (Depends-on): Likewise.
66292         * modules/fnmatch (Depends-on): Likewise.
66293         * modules/fsusage (Depends-on): Likewise.
66294         * modules/fwriteerror (Depends-on): Likewise.
66295         * modules/getcwd (Depends-on): Likewise.
66296         * modules/getloadavg (Depends-on): Likewise.
66297         * modules/hard-locale (Depends-on): Likewise.
66298         * modules/makepath (Depends-on): Likewise.
66299         * modules/mountlist (Depends-on): Likewise.
66300         * modules/nanosleep (Depends-on): Likewise.
66301         * modules/posixtm (Depends-on): Likewise.
66302         * modules/quotearg (Depends-on): Likewise.
66303         * modules/readtokens (Depends-on): Likewise.
66304         * modules/readtokens0 (Depends-on): Likewise.
66305         * modules/readutmp (Depends-on): Likewise.
66306         * modules/save-cwd (Depends-on): Likewise.
66307         * modules/strftime (Depends-on): Likewise.
66308         * modules/userspec (Depends-on): Likewise.
66309         * modules/utimecmp (Depends-on): Likewise.
66310         * modules/xgetcwd (Depends-on): Likewise.
66311         * modules/xnanosleep (Depends-on): Likewise.
66312         * modules/xstrtod (Depends-on): Likewise.
66313         * modules/yesno (Depends-on): Likewise.
66314
66315 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
66316
66317         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
66318         needless checks.
66319
66320 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66321
66322         Merge from coreutils.  Among other things,
66323         add bulletproofing for cases where stdin, stdout, or stderr are closed.
66324         * lib/fd-safer.c: New file.
66325         * lib/fcntl-safer.h, open-safer.c: Remove.
66326         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
66327         * lib/dup-safer.c: Include unistd-safer.h first.
66328         Don't include errno.h.
66329         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
66330         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
66331         * lib/file-type.c: Rely on file-type.h change.
66332         * lib/getloadavg.c: Include unistd-safer.h.
66333         (getloadavg): Use safer open.
66334         * lib/getusershell.c: Include "stdio-safer.h".
66335         (getusershell): Use safer fopen.
66336         * lib/long-options.c (long_options): Use NULL rather than 0.
66337         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
66338         'free'.
66339         * lib/modechange.c: Likewise.
66340         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
66341         (MODE_DONE): New constant.
66342         (struct mode_change): Remove 'next' member.
66343         (make_node_op_equals): New function; like the old one of the
66344         same name, except it allocates an array.
66345         (mode_compile, mode_create_from_ref): Use it.
66346         (mode_compile): Allocate result as an array, not a linked list.
66347         Parse octal string ourself, so that we catch mistakes like "+0".
66348         (mode_adjust): Arg is an array, not a linked list.
66349         * lib/modechange.c: Include stat-macros.h, xalloc.h.
66350         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
66351         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
66352         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
66353         Remove.  This is now stat-macros.h's job.
66354         (talloc): Remove.  All callers replaced by xalloc, so that
66355         our invokers don't have to worry about reporting memory failures.
66356         (make_node_op_equals): Remove.
66357         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66358         New constants.
66359         (struct mode_change): Moved here from modechange.h.
66360         (mode_append_entry): Remove.
66361         (mode_compile): Remove MASKED_OPS arg, since it encouraged
66362         apps to have incorrect behavior.  Use simpler algorithm for head
66363         and tail.  Don't futz with umask; that's now the job of mode_adjust.
66364         Detect more invalid usages rather than having somewhat-random behavior.
66365         Don't insert an "a=" action, as that leads to incorrect behavior.
66366         (mode_compile, mode_create_from_ref): Return NULL on error instead
66367         of an enum, since now there's only one way to have an error.  All
66368         callers changed.
66369         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
66370         at the correct time.  Simplify calculation of "+u" and its ilk.
66371         Don't mishandle "+X".
66372         (mode_free): Remove "register" and localize decls.
66373         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
66374         (struct mode_change): Move to modechange.c; callers don't
66375         need to see this stuff.
66376         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
66377         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
66378         (mode_change, mode_adjust): Reflect the new signatures noted above.
66379         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
66380         that might redefine system include files.
66381         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
66382         (my_usleep): Use NULL rather than (void *) 0.
66383         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
66384         Use siginterrupt to specify that system calls should be interrupted.
66385         (rpl_nanosleep): Move initialization of suspended closer to call of
66386         my_usleep.
66387         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
66388         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
66389         (desirable_utmp_entry): New function.
66390         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
66391         using x2nrealloc, to simplify logic.
66392         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
66393         size calculation.  Do not assume utmp file is a regular file.
66394         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
66395         (READ_UTMP_CHECK_PIDS): New constant.
66396         * lib/save-cwd.c: Include unistd-safer.h.
66397         (save_cwd): Use fd_safer.
66398         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
66399         [!_LIBC] Include "stat-macros.h" instead.
66400         * lib/unistd-safer.h (fd_safer): New decl.
66401
66402 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66403
66404         * modules/getloadavg (Depends-on): Add unistd-safer.
66405         * modules/getusershell (Depends-on): Add stdio-safer.
66406         * modules/lstat (Depends-on): Remove xalloc.
66407         * modules/mkstemp (Depends-on): Add stat-macros.
66408         * modules/modechange (Depends-on): Remove xstrtol.
66409         Add stat-macros, xalloc.
66410         * modules/save-cwd (Depends-on): Add unistd-safer.
66411         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
66412         * modules/unistd-safer (Files): Add lib/fd-safer.c
66413         (Makefile.am): Remove lib_SOURCES.
66414
66415         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
66416         Remove fcntl-safer; unistd-safer supersedes it.
66417
66418 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66419
66420         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
66421         AC_HEADER_STAT.
66422         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
66423         (gl_PREREQ_CHOWN): Remove.
66424         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
66425         it.  Don't require AC_HEADER_STAT.
66426         (gl_PREREQ_LSTAT): Remove.
66427         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
66428         Don't require AC_HEADER_STAT.
66429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
66430         (gl_PREREQ_RMDIR): Remove.
66431         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
66432         mention stat-macros.h or AC_HEADER_STAT, since we'll make
66433         the stat-macros module a prerequisite.
66434         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
66435         * m4/filemode.m4 (gl_FILEMODE): Likewise.
66436         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
66437         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
66438         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
66439         variable names.
66440         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
66441         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
66442         variable prefixes.
66443         * m4/fcntl-safer.m4: Remove.
66444         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
66445         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
66446         Invoke gl_PREREQ_FD_SAFER.
66447         (gl_PREREQ_FD_SAFER): New macro.
66448         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
66449         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
66450         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
66451         Remove duplicate call to AC_LIBOBJ(readutmp).
66452         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
66453
66454         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
66455         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
66456
66457 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
66458
66459         * MODULES.html.sh (Misc): Add byteswap.
66460
66461 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66462
66463         * modules/getcwd (Depends-on): Add extensions.
66464         * modules/openat (Depends-on): Likewise.
66465
66466 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66467
66468         * modules/byteswap: New file.
66469
66470 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66471
66472         * m4/byteswap.m4: New file.
66473
66474 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
66475
66476         * lib/byteswap_.h: New file.
66477
66478 2005-04-25  Karl Berry  <karl@gnu.org>
66479
66480         * m4/gettext.m4: Update from GNU gettext 0.14.4.
66481
66482 2005-04-25  Albert Chin  <china@thewrittenword.com>
66483
66484         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
66485         Toolkit C bug.
66486
66487 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
66488
66489         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
66490         (func_ln_if_changed) Remove forcibly for no error message
66491         in case file does not exist.
66492
66493 2005-04-19  Simon Josefsson  <jas@extundo.com>
66494
66495         * gnulib-tool (Options): Make --symlink mean --symbolic.
66496
66497 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
66498
66499         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
66500
66501 2005-04-16  Simon Josefsson  <jas@extundo.com>
66502
66503         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
66504
66505 2005-04-15  Simon Josefsson  <jas@extundo.com>
66506
66507         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
66508
66509 2005-04-15  Simon Josefsson  <jas@extundo.com>
66510
66511         * gnulib-tool: Rename --symlink to --symbolic.
66512
66513 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
66514
66515         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
66516         symbolic links to files instead of copying/moving.  Add --aux-dir,
66517         specifying directory relative --dir where auxiliary build tools
66518         are placed.
66519
66520 2005-04-14  Bruno Haible  <bruno@clisp.org>
66521
66522         * modules/allocsa (License): Change to LGPL.
66523         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
66524
66525 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66526
66527         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
66528         that "UTC +1 second" continues to work.  Problem reported
66529         by Dmitry V. Levin.
66530         (relunit_snumber): New rule.
66531         (relunit): Use it.
66532
66533 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         * lib/getdate.y (universal_time_zone_table): New constant.
66536         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
66537         universal_time_zone_table.
66538         (lookup_zone): Prefer universal_time_zone_table to
66539         local_time_zone_table, so that "GMT" time stamps are allowed in
66540         London during the summer.  Problem reported by Ian Abbott.
66541
66542 2005-04-12  Jim Meyering  <jim@meyering.net>
66543
66544         * lib/human.c (humblock): Set *options even when returning due to
66545         xstrtoumax conversion failure.  Thanks to a used-uninitialized
66546         warning from gcc-4.
66547
66548 2005-04-09  Jim Meyering  <jim@meyering.net>
66549
66550         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
66551         -Wuninitialized: initialize tm0.tm_year.
66552
66553 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66554
66555         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
66556         count, since there's no maximum.  All uses changed.
66557         Add member dsts_seen.
66558         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
66559         not being INT_MAX.
66560         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
66561         Use pc_rels_seen to decide whther a date is absolute.
66562
66563         * lib/getdate.y (number): Don't overwrite year.
66564         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
66565         check.
66566
66567 2005-04-02  Simon Josefsson  <jas@extundo.com>
66568
66569         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
66570         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
66571
66572 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
66573
66574         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
66575         where no absolute path name can be longer than PATH_MAX.
66576
66577 2005-03-27  Jim Meyering  <jim@meyering.net>
66578
66579         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
66580
66581 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
66582
66583         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
66584         "one's complement" -> "ones' complement" in comment, as per Knuth.
66585         "value of type" -> "type or expression" in comment.
66586         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
66587
66588 2005-03-26  Jim Meyering  <jim@meyering.net>
66589
66590         Comment nits.
66591         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
66592         Correct typos: s/or/of/.
66593
66594 2005-03-26  Jim Meyering  <jim@meyering.net>
66595
66596         * modules/check-include-files: Move to ../ and rename to...
66597         * check-module: ...this.
66598
66599 2005-03-25  Jim Meyering  <jim@meyering.net>
66600
66601         * modules/xvasprintf (Files): Add xalloc.h.
66602
66603 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66604
66605         * modules/gettext (Files): config/config.rpath ->
66606         build-aux/config.rpath
66607         * modules/iconv (Files): Likewise.
66608         Problem reported by Oskar Liljeblad.
66609
66610 2005-03-23  Jim Meyering  <jim@meyering.net>
66611
66612         * modules/check-include-files: New script to check for
66613         missing dependencies, multiple includes, etc.
66614
66615         * modules/c-strtold (Depends-on): Add xalloc.
66616         * modules/c-strtod (Depends-on): Add xalloc.
66617         * modules/hash (Depends-on): Add xalloc.
66618         (Files): Remove lib/xalloc.h.
66619
66620         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
66621         * modules/userspec (Files): Add lib/inttostr.h.
66622
66623 2005-03-23  Jim Meyering  <jim@meyering.net>
66624
66625         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
66626
66627 2005-03-22  Jim Meyering  <jim@meyering.net>
66628
66629         * modules/stat-macros: New module.
66630         * modules/canonicalize, modules/euidaccess, modules/file-type,
66631         * modules/filemode, modules/lchown, modules/makepath,
66632         * modules/rmdir, modules/stat: Depend on new stat-macros module
66633         rather than listing lib/stat-macros.h manually.
66634         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
66635
66636 2005-03-22  Jim Meyering  <jim@meyering.net>
66637
66638         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
66639
66640 2005-03-22  Bruno Haible  <bruno@clisp.org>
66641
66642         * config/srclist.txt: Replace target directory 'config' with
66643         'build-aux'.
66644         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
66645         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
66646         ../build-aux/.
66647
66648 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
66649
66650         * modules/chdir-long (Depends-on): Add mempcpy.
66651
66652         * modules/acl, modules/backupfile, modules/c-strtod,
66653         modules/c-strtold, modules/canon-host, modules/canonicalize,
66654         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
66655         modules/exclude, modules/exitfail, modules/file-type,
66656         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
66657         modules/getdate, modules/getline, modules/getpagesize,
66658         modules/getpass, modules/getugroups, modules/group-member,
66659         modules/hard-locale, modules/hash, modules/human, modules/idcache,
66660         modules/inttostr, modules/long-options, modules/makepath,
66661         modules/md5, modules/memcasecmp, modules/memcoll,
66662         modules/modechange, modules/mountlist, modules/path-concat,
66663         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
66664         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
66665         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
66666         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
66667         modules/strftime, modules/strndup, modules/strverscmp,
66668         modules/timespec, modules/unlocked-io, modules/userspec,
66669         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
66670         modules/yesno:
66671         Remove lib_SOURCES line from Makefile.am section, as this is now
66672         done automatically by the corresponding Autoconf macro.
66673
66674 2005-03-21  Jim Meyering  <jim@meyering.net>
66675
66676         Changes imported from coreutils.
66677
66678         * lib/cycle-check.c: Don't include xalloc.h.
66679
66680         * lib/path-concat.c: Don't include assert.h.
66681         (path_concat): Remove assertion that would have triggered
66682         for ABASE starting with more than one slash.
66683         Reported by Andreas Schwab.
66684
66685         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
66686         properly when ABASE is an absolute file name.
66687         Correct the description of this function.
66688         Include <assert.h>.
66689         Add an assertion and a test driver.
66690         This fixes a bug introduced on 2004-07-02.
66691         Andreas Schwab reported the resulting failure of cp --parents:
66692         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
66693
66694 2005-03-21  Jim Meyering  <jim@meyering.net>
66695
66696         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
66697         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
66698
66699 2005-03-21  Jim Meyering  <jim@meyering.net>
66700         and  Paul Eggert  <eggert@cs.ucla.edu>
66701
66702         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
66703         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
66704         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
66705         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
66706         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
66707         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
66708         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
66709         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
66710         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
66711         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
66712         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
66713         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
66714         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
66715         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
66716         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
66717         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
66718         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
66719         for these modules.
66720
66721 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
66722
66723         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
66724         (which shouldn't happen), generate nothing instead of returning 0
66725         immediately, so that nstrftime (NULL, ...) doesn't return 0.
66726
66727 2005-03-16  Bruno Haible  <bruno@clisp.org>
66728
66729         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
66730         HAVE_LONGLONG_64BIT.
66731
66732 2005-03-16  Bruno Haible  <bruno@clisp.org>
66733
66734         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
66735         HAVE_LONGLONG_64BIT.
66736
66737 2005-03-16  Bruno Haible  <bruno@clisp.org>
66738
66739         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
66740         HAVE_LONGLONG_64BIT.
66741
66742 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66743
66744         * lib/strftime.c (my_strftime): Prepend space to format so that we can
66745         reliably distinguish strftime failure from empty output on POSIX
66746         hosts.
66747
66748 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
66749
66750         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
66751         (iconv_string): Don't guess a size-zero buffer, as that might cause
66752         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
66753         result would be 'too large', where 'too large' is (heuristically)
66754         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
66755         overflow concerns.  This will prevent some unwanted malloc failures
66756         when the inputs are very large.
66757
66758 2005-03-15  Karl Berry  <karl@gnu.org>
66759
66760         * config/srclist.txt (config.rpath): from gettext.
66761         * config/config.rpath: update.
66762
66763 2005-03-15  Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
66766         to 'negate'.
66767
66768         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
66769         variable.
66770
66771         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
66772         results.
66773
66774 2005-03-14  Simon Josefsson  <jas@extundo.com>
66775
66776         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
66777         <fx@gnu.org>.
66778
66779 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
66782         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
66783         intprops.h.
66784         * lib/strtol.c: Likewise.
66785
66786 2005-03-14  Jim Meyering  <jim@meyering.net>
66787
66788         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
66789         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
66790         to be nonzero so that we (and caller) can detect the difference
66791         between a valid zero-length expansion and an error return, even
66792         when the underlying strftime fails before writing anything into
66793         that location.
66794
66795 2005-03-14  Bruno Haible  <bruno@clisp.org>
66796
66797         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
66798         Update from GNU gettext 0.14.3.
66799
66800 2005-03-10  Jim Meyering  <jim@meyering.net>
66801
66802         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
66803
66804 2005-03-10  Jim Meyering  <jim@meyering.net>
66805
66806         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
66807         so that this module works on systems without fchdir.
66808
66809 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         Factor int-properties macros into a single file, except for
66812         glibc-related files.
66813         * lib/intprops.h: New file.
66814         * lib/getloadavg.c: Include it instead of limits.h.
66815         (INT_STRLEN_BOUND): Remove.
66816         * lib/human.c: Include intprops.h.
66817         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
66818         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
66819         302/1000.
66820         * lib/inttostr.h: Include intprops.h instead of limits.h.
66821         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
66822         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
66823         for consistency with intprops.h.
66824         (time_t_is_integer, twos_complement_arithmetic): Use them.
66825         * lib/sig2str.h: Include <signal.h>, intprops.h.
66826         (INT_STRLEN_BOUND): Remove.
66827         * lib/strftime.c (TYPE_SIGNED): Remove.
66828         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
66829         * lib/strtol.c: Adjust comments to match intprops.h.
66830         * lib/userspec.c: Include intprops.h.
66831         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
66832         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
66833         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
66834         instead of rolling our own expressions.
66835         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
66836
66837         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
66838         instead of int.
66839         (my_strftime): Do not mishandle years close to INT_MAX, by doing
66840         the right thing even if adding 1900 would overflow.  Similarly
66841         for tm_mon + 1 and tm_yday + 1.
66842         Make %Y always equivalent to %C%y, and similarly for %G and %g.
66843         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
66844         (DO_SIGNED_NUMBER): New macro.
66845         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
66846
66847 2005-03-07  Bruno Haible  <bruno@clisp.org>
66848
66849         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
66850
66851 2005-03-07  Bruno Haible  <bruno@clisp.org>
66852
66853         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
66854
66855 2005-03-04  Derek R. Price  <derek@ximbiot.com>
66856
66857         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
66858         (func_import): Only replace files via --import when they have actually
66859         changed.
66860
66861 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66862
66863         * m4/mmap-anon.m4: New file.
66864         * m4/pagealign_alloc.m4: New file.
66865
66866 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66867             Bruno Haible  <bruno@clisp.org>
66868
66869         * modules/pagealign_alloc: New file.
66870         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
66871
66872 2005-03-03  Derek R. Price  <derek@ximbiot.com>
66873             Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/pagealign_alloc.h: New file.
66876         * lib/pagealign_alloc.c: New file.
66877
66878 2005-03-03  Bruno Haible  <bruno@clisp.org>
66879
66880         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
66881         Use an all-permissive copyright notice, recommended by RMS.
66882
66883 2005-03-02  Bruno Haible  <bruno@clisp.org>
66884
66885         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
66886         of AIX, the replacement has to be done only after <string.h> is
66887         included, therefore not in config.h. stpncpy.h does the replacement,
66888         and stpncpy.c uses it.
66889
66890 2005-03-02  Bruno Haible  <bruno@clisp.org>
66891
66892         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
66893         stpncpy.c uses it.
66894
66895 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66896
66897         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
66898         The workaround isn't strictly needed for POSIX conformance, and
66899         it's too much of a pain to configure and maintain.  We'll ask
66900         people to fix their kernels instead.
66901         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
66902         (NANOSLEEP_BUG_WORKAROUND): Remove.
66903         (xnanosleep): Remove the workaround.
66904
66905 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
66908         Reported by Derek Price.
66909         (Include): Add "timespec.h".
66910
66911         * modules/xnanosleep (Depends-on): Remove gethrxtime.
66912
66913 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
66916         to detect nanosleep bug.
66917
66918 2005-03-01  Bruno Haible  <bruno@clisp.org>
66919
66920         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
66921
66922 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66923
66924         * modules/gethrxtime: New file.
66925         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
66926         (Depends-on): Add gethrxtime.
66927         (configure.ac): Add gl_XNANOSLEEP.
66928         (Makefile.am): Remove lib_SOURCES line.
66929
66930 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
66933         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
66934
66935 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
66938         * lib/timespec.h (gettime): Return void, since it always
66939         succeeds now.  All uses changed.
66940         * lib/gettime.c (gettime) Likewise.
66941         [HAVE_NANOTIME]: Prefer nanotime.
66942         Assume gettimeofday succeeds, as POSIX requires.
66943         Assime time () succeeds, since other code already does.
66944         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
66945         (timespec_subtract): Remove.
66946         (NANOSLEEP_BUG_WORKAROUND): New constant.
66947         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
66948         things considerably.  Use it only on GNU/Linux hosts, since the
66949         workaround shouldn't be needed elsewhere.
66950
66951 2005-02-24  Bruno Haible  <bruno@clisp.org>
66952
66953         * modules/gettext (Files): Add m4/glibc2.m4.
66954
66955 2005-02-24  Bruno Haible  <bruno@clisp.org>
66956
66957         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
66958         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
66959         * m4/progtest.m4:
66960         Update from GNU gettext 0.14.2.
66961         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
66962
66963 2005-02-24  Bruno Haible  <bruno@clisp.org>
66964
66965         * lib/localcharset.c: Update from GNU gettext 0.14.2.
66966         * lib/config.charset: Update from GNU gettext 0.14.2.
66967
66968 2005-02-24  Bruno Haible  <bruno@clisp.org>
66969
66970         * lib/gettext.h: Update from GNU gettext 0.14.2.
66971
66972 2005-02-23  Simon Josefsson  <jas@extundo.com>
66973
66974         * m4/iconvme.m4: New file.
66975
66976 2005-02-23  Jim Meyering  <jim@meyering.net>
66977
66978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
66979         change.
66980         Thanks to Bruno Haible for catching it.
66981
66982 2005-02-22  Simon Josefsson  <jas@extundo.com>
66983
66984         * modules/iconvme: New file.
66985
66986         * MODULES.html.sh: Add iconvme.
66987
66988 2005-02-22  Simon Josefsson  <jas@extundo.com>
66989
66990         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
66991
66992 2005-02-22  Simon Josefsson  <jas@extundo.com>
66993
66994         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
66995
66996 2005-02-22  Jim Meyering  <jim@meyering.net>
66997
66998         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
66999         s/ifndef/ifdef/.
67000
67001 2005-02-20  Neil Conway  <neilc@samurai.com>
67002
67003         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67004         returned by OSX/Darwin if the specified buffer is not large
67005         enough for the hostname.
67006
67007 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67008
67009         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67010         pass it to _help, otherwise the latter coredumps trying to
67011         dereference state.root_argp.
67012
67013 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67014
67015         * modules/chdir-long (Depends-on): Add memrchr.
67016         * modules/memrchr (Files): Add lib/memrchr.h.
67017         (Include): "memrchr.h".
67018
67019 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67022
67023 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67024
67025         * lib/memrchr.h: New file.
67026         * lib/chdir-long.c: Include it.
67027         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67028         Don't bother including stddef.h.
67029
67030 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67031
67032         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67033         inclusion.
67034         Include <sys/types.h>, for dev_t.
67035         (ME_DUMMY, ME_REMOTE): Move from here....
67036         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67037         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67038         Dmitry V. Levin.
67039         Include mountlist.h first, to test the interface.
67040
67041 2005-01-29  Bruno Haible  <bruno@clisp.org>
67042
67043         * lib/progname.c (program_name): Initialize.
67044         Needed when linking statically on MacOS X.
67045
67046 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67047
67048         Sync from coreutils.
67049         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67050         (Depends-on): Add c-strtod.
67051         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67052
67053 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67054
67055         Sync from coreutils.
67056         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67057
67058         Remove files that are specific to coreutils.
67059         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67060
67061 2005-01-28  Bruno Haible  <bruno@clisp.org>
67062
67063         * modules/javacomp: New file.
67064         * MODULES.html.sh (Java): Add javacomp.
67065
67066 2005-01-28  Bruno Haible  <bruno@clisp.org>
67067
67068         * m4/javacomp.m4: New file, from GNU gettext.
67069
67070 2005-01-28  Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/javacomp.sh.in: New file, from GNU gettext.
67073         * lib/javacomp.h: New file, from GNU gettext.
67074         * lib/javacomp.c: New file, from GNU gettext.
67075
67076 2005-01-26  Simon Josefsson  <jas@extundo.com>
67077
67078         * lib/gai_strerror.c: Use GPL in header.
67079
67080 2005-01-26  Bruno Haible  <bruno@clisp.org>
67081
67082         * modules/javaexec: New file.
67083         * MODULES.html.sh (Java): Add javaexec.
67084
67085 2005-01-26  Bruno Haible  <bruno@clisp.org>
67086
67087         * m4/javaexec.m4: New file, from GNU gettext.
67088
67089 2005-01-26  Bruno Haible  <bruno@clisp.org>
67090
67091         * lib/javaexec.sh.in: New file, from GNU gettext.
67092         * lib/javaexec.h: New file, from GNU gettext.
67093         * lib/javaexec.c: New file, from GNU gettext.
67094
67095 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67096
67097         * modules/lchown (Depends-on): Remove lchown.h
67098
67099 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67100
67101         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67102         must be defined if the header file was not found, in order
67103         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67104
67105 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67106
67107         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67108         initializers for struct pentry_state.
67109         (__argp_error): Check return value of __asprintf
67110         (__argp_failure): Translate error message
67111
67112         * lib/argp-parse.c: Removed braces around the expansion of N_()
67113
67114 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67115
67116         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67117         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67118         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67119         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67120         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67121         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67122         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67123         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67124         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67125         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67126         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67127         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67128         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67129         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67130         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67131         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67132         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67133         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67134         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67135         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67136         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67137         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67138         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67139         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67140         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67141         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67142         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67143         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67144         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67145         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67146         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67147         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67148         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67149         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67150         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67151         Use an all-permissive copyright notice, recommended by RMS.
67152
67153 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67154
67155         * modules/chdir-long (Depends-on): Remove mempcpy.
67156
67157 2005-01-21  Jim Meyering  <jim@meyering.net>
67158
67159         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67160         same value as for Solaris 9.
67161
67162         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67163         component length.  This included changing the parameter to be
67164         of type `char *' rather than `char const *'.
67165         * lib/chdir-long.h (chdir_long): Update prototype.
67166
67167         * lib/openat.c (fdopendir, fstatat): New functions.
67168         * lib/openat.h: Include headers required for use of DIR and struct
67169         stat.
67170         [AT_SYMLINK_NOFOLLOW]: Define.
67171         (fdopendir, fstatat): Add prototypes.
67172
67173 2005-01-21  Bruno Haible  <bruno@clisp.org>
67174
67175         * modules/classpath: New file.
67176         * MODULES.html.sh (Java): Add classpath.
67177
67178 2005-01-21  Bruno Haible  <bruno@clisp.org>
67179
67180         * lib/classpath.h: New file, from GNU gettext.
67181         * lib/classpath.c: New file, from GNU gettext.
67182
67183 2005-01-20  Simon Josefsson  <jas@extundo.com>
67184
67185         * modules/version-etc-fsf: New file.
67186
67187 2005-01-20  Simon Josefsson  <jas@extundo.com>
67188
67189         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67190         * lib/version-etc.c: Remove version_etc_copyright.
67191         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67192         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67193
67194 2005-01-20  Simon Josefsson  <jas@extundo.com>
67195
67196         * lib/base64.h (isbase64): Add.
67197
67198         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67199         using a unsigned prototype, don't inline.
67200         (base64_decode): Use it.
67201
67202 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67203
67204         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67205         it.
67206
67207 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         * lib/save-cwd.c (save_cwd): Remove code to support the case
67210         where fchdir is missing or flaky.
67211
67212 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
67215
67216 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
67219         AC_LIBSOURCES now does this.
67220         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
67221         with new ullong_max module.
67222
67223 2005-01-19  Bruno Haible  <bruno@clisp.org>
67224
67225         * modules/sh-quote: New file.
67226         * MODULES.html.sh (Executing programs): Add sh-quote.
67227
67228 2005-01-19  Bruno Haible  <bruno@clisp.org>
67229
67230         * lib/sh-quote.h: New file, from GNU gettext.
67231         * lib/sh-quote.c: New file, from GNU gettext.
67232
67233 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67234
67235         Merge from coreutils.
67236         * m4/ullong_max.m4: New file.
67237         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
67238         (gl_MACROS): Assume localeconv exists.
67239
67240 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67241
67242         Merge changes from coreutils, as described below in several
67243         changelogs dated today.
67244
67245         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
67246         (O_DIRECTORY): Remove; not needed here, since "." must be
67247         a directory.  All uses removed.
67248         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
67249         universal on Suns, and we also need to test for IRIX.
67250         Revamp code to use 'if' rather than '#if'.
67251         Avoid unnecessary comparison of cwd->desc to 0.
67252
67253         * lib/utimens.c (futimens): Robustify the previous patch, by checking
67254         for known valid error numbers rather than observed invalid ones.
67255
67256 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
67257
67258         * modules/ullong_max: New file.
67259
67260         * modules/chdir-long, modules/openat: New files.
67261         * modules/save-cwd (Depends-on): Depend on chdir-long.
67262         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
67263
67264 2005-01-18  Jim Meyering  <jim@meyering.net>
67265
67266         Merge from coreutils.
67267         * m4/chdir-long.m4, m4/openat.m4: New files.
67268         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
67269         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
67270         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
67271         is sane and DOES follow symlinks.  Besides, testing 20 different
67272         systems found no broken chown implementations.
67273         Prompted by a change in rsync's copy of this macro.
67274         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
67275
67276         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
67277
67278         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
67279         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
67280         NULL-means-set-to-current-time semantics.
67281         Remove temporary file immediately, rather than waiting
67282         for configure's at-exit trap code to do it.
67283
67284 2005-01-18  Jim Meyering  <jim@meyering.net>
67285
67286         * lib/version-etc.c (version_etc_copyright): Update copyright date.
67287
67288         * lib/utimens.c (futimens): Account for the fact that futimes
67289         can also fail with errno == ENOSYS or errno == ENOENT.
67290         Patch from Dmitry V. Levin.
67291
67292         Change the name of the robust chdir function from chdir to chdir_long.
67293         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
67294         (restore_cwd): Use chdir_long, not chdir.
67295         * lib/chdir-long.c: Renamed from chdir.c.
67296         * lib/chdir-long.h: Renamed from chdir.h.
67297         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
67298         Hurd.
67299
67300 2005-01-18  Bruno Haible  <bruno@clisp.org>
67301
67302         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
67303         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
67304         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
67305         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
67306         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
67307         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
67308         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
67309         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
67310         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
67311         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
67312         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
67313         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
67314         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
67315         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
67316         Use an all-permissive copyright notice, recommended by RMS.
67317
67318 2005-01-18  Bob Proulx  <bob@proulx.com>
67319
67320         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
67321         simplify offsetof() macro construct to avoid compile failure with
67322         native HP-UX 11.0 ANSI C compiler.
67323
67324 2005-01-17  Bruno Haible  <bruno@clisp.org>
67325
67326         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
67327         redundant because stpncpy.m4 takes care of it.
67328
67329 2005-01-17  Bruno Haible  <bruno@clisp.org>
67330
67331         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
67332
67333 2005-01-17  Bruno Haible  <bruno@clisp.org>
67334
67335         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
67336         used.
67337
67338 2005-01-17  Bruno Haible  <bruno@clisp.org>
67339
67340         * lib/fwriteerror.h (fwriteerror): Change specification to include
67341         fclose.
67342         * lib/fwriteerror.c: Include <stdbool.h>.
67343         (fwriteerror): At the end, close the file stream. Record whether
67344         stdout was already closed.
67345
67346 2005-01-17  Bruno Haible  <bruno@clisp.org>
67347
67348         * lib/execute.c (environ): Declare if needed.
67349         * lib/pipe.c (environ): Likewise.
67350         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
67351
67352 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67353
67354         * modules/argp: Depend on vsnprintf
67355
67356 2005-01-10  Jim Meyering  <jim@meyering.net>
67357
67358         * modules/closeout (Depends-on): Add atexit.
67359
67360 2005-01-06  Bruno Haible  <bruno@clisp.org>
67361
67362         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
67363
67364 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67365
67366         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
67367         definitions to be after all include files, to avoid collisions.
67368         Problem reported by Bob Proulx.
67369
67370 2005-01-04  Jim Meyering  <jim@meyering.net>
67371
67372         Changes imported from coreutils.
67373         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
67374         as the mkstemp template, use a temporary directory and an
67375         8.3-friendly template to avoid trouble on systems like DJGPP.
67376         Reported by Juan M. Guerrero via Stepan Kasal.
67377         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
67378         close. Remove the temporary directory right away, rather than waiting
67379         for configure's at-exit trap code to do it.
67380         Suggestion from Stepan Kasal.
67381
67382 2005-01-01  Simon Josefsson  <jas@extundo.com>
67383
67384         * gnulib-tool: Print #include directives when --import'ing.
67385
67386 2004-12-28  Simon Josefsson  <jas@extundo.com>
67387
67388         * tests/test-base64.c: Include required header files.  Remove
67389         unused variables.
67390
67391 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67392
67393         * modules/error (Depends-on): Remove gettext.
67394
67395 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67396
67397         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
67398         not needed.  This removes a dependency on the gettext module.
67399         [defined _LIBC]: Do not include <libintl.h>; not needed.
67400
67401 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67402
67403         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
67404         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
67405
67406 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
67407
67408         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
67409         HAVE_DECL_STRTOLD.
67410
67411 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         * modules/getdate (Depends-on): Remove alloca-opt.
67414
67415 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67416
67417         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
67418
67419 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67420
67421         * lib/argp-parse.c: Include <stddef.h>.
67422         (alignof, alignto): New macros.
67423         (parser_init): Don't assume that void * is aligned sufficiently
67424         for struct option.
67425
67426         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
67427         need to extend the stack.
67428         (YYINITDEPTH): New macro, so that the initial stack isn't overly
67429         large.
67430
67431 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67432
67433         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
67434
67435 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67436
67437         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
67438         (2004-10-24) change.  Apparently this was a false alarm.
67439
67440         * modules/getdate: Depend on alloca-opt, not alloca.
67441
67442 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
67445         Remove now-obsolete comment about AIX.
67446         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
67447         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
67448         (YYMAXDEPTH): New macro.
67449
67450 2004-12-18  Simon Josefsson  <jas@extundo.com>
67451
67452         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
67453
67454 2004-12-18  Bruno Haible  <bruno@clisp.org>
67455
67456         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
67457
67458 2004-12-18  Bruno Haible  <bruno@clisp.org>
67459
67460         * lib/fatal-signal.c (fatal_signals): Make non-const.
67461         (init_fatal_signals): New function.
67462         (uninstall_handlers, install_handlers): Ignore signals that were set to
67463         SIG_IGN.
67464         (at_fatal_signal): Call init_fatal_signals.
67465         (init_fatal_signal_set): Likewise. Ignore signals that were set to
67466         SIG_IGN.
67467         Reported by Paul Eggert.
67468
67469 2004-12-18  Bruno Haible  <bruno@clisp.org>
67470
67471         * doc/alloca.texi: New file.
67472         * doc/alloca-opt.texi: New file.
67473
67474 2004-12-17  Jim Meyering  <jim@meyering.net>
67475
67476         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
67477         Otherwise, install-sh could exit with improper exit status when
67478         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
67479
67480 2004-12-16  Simon Josefsson  <jas@extundo.com>
67481
67482         * tests/test-base64.c: Add license.
67483
67484 2004-12-15  Stepan Kasal  <address@hidden>
67485
67486         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
67487
67488 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
67489
67490         * modules/getcwd (Files): Add m4/d-ino.m4.
67491         Suggested by Mark D. Baushke.
67492
67493 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67494
67495         * lib/getdate.y (textint): New member "negative".
67496         (time_zone_hhmm): New function.
67497         Expect 14 shift-reduce conflicts, not 13.
67498         (o_colon_minutes): New rule.
67499         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
67500         (yylex): Set the "negative" member of signed numbers.
67501
67502 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
67503
67504         * doc/getdate.texi (Time of day items, Time zone items):
67505         Describe new formats +00:00, UTC+00:00.
67506
67507 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67508
67509         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
67510         spurious "-l"s.  Problem reported by Stepan Kasal.
67511
67512 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
67513
67514         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
67515         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
67516
67517 2004-12-04  Simon Josefsson  <jas@extundo.com>
67518
67519         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
67520         Vandoorselaere <yoann@prelude-ids.org>.
67521
67522 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67523
67524         Changes imported from coreutils.
67525         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
67526         exist.
67527         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
67528
67529 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67530
67531         Changes imported from coreutils.
67532         * lib/hard-locale.c: Assume <locale.h> exists.
67533         Include "strdup.h".
67534         (GLIBC_VERSION): New macro.
67535         (hard_locale): Assume setlocale exists.
67536         Rewrite to avoid #ifdef.
67537         Use strdup rather than malloc + strcpy.
67538         * lib/human.c: Assume <locale.h> exists.
67539         (human_readable): Assume localeconv exists.
67540
67541 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         * modules/hard-locale (Depends-on): Add strdup.
67544
67545 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
67546
67547         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
67548         convert T2, not T.  (Imported from libc.)
67549
67550 2004-11-30  Simon Josefsson  <jas@extundo.com>
67551
67552         * modules/restrict (License): Change to LGPL.
67553
67554 2004-11-30  Simon Josefsson  <jas@extundo.com>
67555
67556         * m4/restrict.m4: Add copyright and copying conditions.
67557
67558 2004-11-30  Simon Josefsson  <jas@extundo.com>
67559
67560         * m4/base64.m4: New file.
67561
67562 2004-11-30  Simon Josefsson  <jas@extundo.com>
67563
67564         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
67565         base64.
67566
67567         * tests/test-base64.c: New file.
67568
67569         * modules/base64: New file.
67570
67571 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67572
67573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
67574         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
67575
67576         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
67577
67578 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
67579
67580         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
67581         (__getcwd.c): Don't restore errno; glibc doesn't.
67582         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
67583         first, falling back to our code only if its results look suspicious.
67584         Ensure that the resulting buffer is only as large as necessary.
67585
67586         * lib/readutmp.c: Include readutmp.h first.
67587         Include <errno.h>, since readutmp.h no longer does that.
67588         * lib/readutmp.h: Don't include <errno.h>,
67589         <sys/param.h>, <time.h>; not needed to establish interface.
67590         (errno): Remove decl.
67591         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
67592         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
67593         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
67594
67595 2004-11-28  Simon Josefsson  <jas@extundo.com>
67596
67597         * lib/base64.h, base64.c: New file.
67598
67599 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67600
67601         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
67602
67603 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67604
67605         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
67606         (Depends-on): Remove pathmax, same.  Add mempcpy.
67607         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
67608         (Makefile.am): Append getcwd.h to lib_SOURCES.
67609         (Include): Add getcwd.h.
67610         (Maintainer): Change from Jim Meyering to "all, glibc",
67611         since getdate now uses intended-for-glibc code.
67612         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
67613         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
67614
67615 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
67618         HP's ANSI C compiler.
67619         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
67620         Declaring int functions causes warnings on some modern systems and
67621         shouldn't be needed to compile on ancient ones.
67622         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
67623         defined.
67624
67625         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
67626         with the following changes.
67627         (__set_errno): Parenthesize properly.
67628         Include <stdbool.h>.
67629         (MIN, MAX, MATCHING_INO): New macros.
67630         (__getcwd): Define with prototype, not K&R form.
67631         Use heuristics to allocate default buffer on stack if possible.
67632         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
67633         behavior, and to avoid the PATH_MAX limit when computing
67634         ../../../../...
67635         Use MATCHING_INO to compare inode number to file.
67636         Check for arithmetic overflow in size calculations.
67637         Fix bug in reallocation of dot array that caused getcwd to fail
67638         on directories nested deeper than 75.
67639         Be more careful about saving errno on error.
67640         Do not use realloc; use only free+malloc, as this is a bit
67641         more flexible and avoids a needless copy operation.
67642         Do not inspect st_dev and st_ino for symbolic links; POSIX
67643         doesn't specify the latter.
67644         Check for closedir errors.
67645         Avoid needless casts.
67646         Use "#ifdef weak_alias" around weak_alias, to be like other
67647         glibc code.
67648         The following changes to getcwd.c have effect only when used in
67649         gnulib; they have no effect inside glibc proper.
67650         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
67651         as alloca isn't used.
67652         (alloca, __alloca): Likewise.
67653         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
67654         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
67655         unconditionally, as gnulib assumes C89 or better.
67656         Do not include <sys/param.h>.
67657         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
67658         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
67659         better.
67660         (NULL) [!defined NULL]: Remove; we assume C89 or better.
67661         Include <dirent.h> in a way that is compatible with modern Autoconf.
67662         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
67663         New macros, if not already defined.
67664         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
67665         Use "_LIBC", not "defined _LIBC", for consistency.
67666         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
67667         a mempcpy module.
67668         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
67669         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
67670         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
67671         credit only to Jim Meyering and adjust the copyright dates.
67672         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
67673         <stdlib.h>, <unistd.h>, "pathmax.h".
67674         Instead, include "xgetcwd.h" (first) and "getcwd.h".
67675         (INITIAL_BUFFER_SIZE): Remove.
67676         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
67677
67678 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67679
67680         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
67681         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
67682         Use the _ONCE methods, for efficiency.
67683         Check for fcntl.h.  In test program, include <errno.h>
67684         and <fcntl.h> if available.  Remove old K&R cruft from
67685         test program.  Check for common errors in GNU/Linux,
67686         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
67687         don't do AC_LIBOBJ, as that's getcwd.m4's job.
67688         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
67689         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
67690         name accordingly.
67691         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
67692         accommodate new getcwd.c.
67693         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
67694         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
67695         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
67696         that's all we need now.
67697
67698 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67699
67700         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
67701         argp-parse.c depends on getopt internals, that means we should
67702         always use our getopt, to be on the safe side.
67703         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
67704         order not to spoil the result of an eventual previous invocation
67705         of gl_GETOPT_SUBSTITUTE.
67706
67707 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67708
67709         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
67710         redefinition warnings. To avoid them, include the defines
67711         in `#if !defined __need_getopt ... #endif'. The only place
67712         where __getopt_argv_const is used is in definitions
67713         of getopt_long and getopt_long_only below, which are as well
67714         protected by `#ifndef __need_getopt'.
67715         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
67716         __need_getopt after including <stdio.h> and <unistd.h> These
67717         headers might have defined it.
67718
67719 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
67722
67723 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
67724
67725         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
67726         (futimens): New function, which uses futimes if available.
67727         (futimens, utimens): Support timespec==NULL, with same semantics
67728         as utime and utimens.
67729         * lib/utimens.h (futimens): New decl.
67730
67731 2004-11-23  Jim Meyering  <jim@meyering.net>
67732
67733         * lib/getopt_.h: Remove trailing blanks.
67734
67735 2004-11-23  Jim Meyering  <jim@meyering.net>
67736
67737         * lib/__fpending.c: Add comment.
67738
67739 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         * modules/canonicalize (Depends-on): Add xreadlink.
67742         Problem reported by James Youngman.
67743
67744 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67745
67746         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
67747         New macros.
67748         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
67749         optopt): Use them instead of invoking ## directly; otherwise, the
67750         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
67751
67752 2004-11-19  Bruno Haible  <bruno@clisp.org>
67753
67754         * lib/strtok_r.c: Move comments from here...
67755         * lib/strtok_r.h: ... to here.
67756
67757 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67758
67759         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
67760         implementations that mishandle size_t overflow.
67761
67762 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67763
67764         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
67765         might fail.  Problem reported by Yoann Vandoorselaere.
67766         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
67767         implementations that mishandle size_t overflow.
67768
67769 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67770
67771         * modules/canon-host (Depends-on): Add strdup.
67772
67773 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67774
67775         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
67776
67777 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67778
67779         * lib/canon-host.c: Include "strdup.h".
67780         (canon_host): Use getaddrinfo if available, so that IPv6 works.
67781         Use strdup instead of malloc/strcpy to duplicate strings.
67782
67783         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
67784         (human_space_before_unit): New constant.
67785         * lib/human.c (human_readable): Support it.
67786
67787         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
67788         (xgetcwd): Set errno correctly when failing.
67789         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
67790         the failure is actually due to a PATH_MAX problem.
67791
67792         Further getopt changes to make it more likely that glibc will
67793         buy the changes back.
67794         * lib/getopt.c (POSIXLY_CORRECT): New constant.
67795         (getopt): Use it, so to preserve glibc semantic
67796         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
67797         when compiling for libc.
67798         * lib/getopt_.h (__getopt_argv_const): Bring it back.
67799         (getopt_long, getopt_long_only): Use it.
67800
67801         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67802         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
67803         (getopt): Argv is now char * const *, as per standard.
67804         (_getopt_internal_r, _getopt_internal): Argv is now char **,
67805         not char *__getopt_argv_const *.
67806         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67807         _getopt_long_only_r): Likewise.
67808         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
67809         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67810         _getopt_long_r, _getopt_long_only_r): Likewise.
67811         * lib/getopt_.h (__getopt_argv_const): Remove.
67812         (getopt): Argv is now char * const *, as per standard.
67813
67814         * lib/getdate.y (tORDINAL): New token.
67815         (day, relunit): Allow it for relative times.
67816         (relative_time_table): Use tORDINAL for ordinals.
67817
67818 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67819
67820         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
67821         Document that "second" isn't allowed as an ordinal number.
67822
67823 2004-11-16  Jim Meyering  <jim@meyering.net>
67824
67825         * modules/closeout (Depends-on): Add fpending.
67826
67827 2004-11-15  Jim Meyering  <jim@meyering.net>
67828
67829         * lib/closeout.c: Include "__fpending.h" once again.
67830         Include <stdbool.h>.
67831         (close_stdout): Don't fail just because stdout was closed initially,
67832         since some programs don't write to stdout in the normal course of
67833         operation (other than --version and --help), and we don't want this
67834         function to make e.g. `touch file >&-' fail.
67835         But do fail if it was closed and someone has tried to write to it.
67836         E.g., `printf foo >&-' must fail.
67837
67838 2004-11-13  Jim Meyering  <jim@meyering.net>
67839
67840         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
67841
67842 2004-11-12  Simon Josefsson  <jas@extundo.com>
67843
67844         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
67845         small doc fix is still pending.
67846
67847 2004-11-11  Simon Josefsson  <jas@extundo.com>
67848
67849         * modules/strtok_r: New file.
67850
67851         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67852         strtok_r.
67853
67854 2004-11-11  Simon Josefsson  <jas@extundo.com>
67855
67856         * m4/strtok_r.m4: New file.
67857
67858         * m4/getopt.m4: Replace opterr.
67859
67860 2004-11-11  Simon Josefsson  <jas@extundo.com>
67861
67862         * lib/strtok_r.h, strtok_r.c: New file.
67863
67864 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67865
67866         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
67867         of replacing opterr, getopt, etc.  This should handle the
67868         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
67869
67870 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
67871
67872         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
67873         we can stop lying to compilers about the constness of argv when we
67874         are compiled outside glibc.
67875         (getopt, getopt_long, getopt_long_only): Use it.
67876         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
67877         _getopt_internal, getopt): Likewise.
67878         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
67879         _getopt_long_only_r): Likewise.
67880         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
67881         _getopt_long_r, _getopt_long_only_r): Likewise.
67882
67883         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
67884         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
67885         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
67886         the other external symbols.
67887         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
67888         declaration, since the above renaming now works around collisions.
67889
67890 2004-11-11  Jim Meyering  <jim@meyering.net>
67891
67892         * lib/linebreak.c: Remove trailing blanks.
67893         * lib/alloca_.h: Likewise.
67894         * lib/acosl.c: Likewise.
67895         * lib/euidaccess.c: Likewise.
67896         * lib/allocsa.h: Likewise.
67897
67898 2004-11-10  Simon Josefsson  <jas@extundo.com>
67899
67900         * m4/getaddrinfo.m4: New file.
67901
67902 2004-11-10  Simon Josefsson  <jas@extundo.com>
67903
67904         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
67905
67906 2004-11-10  Simon Josefsson  <jas@extundo.com>
67907
67908         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67909         getaddrinfo.
67910
67911         * modules/getaddrinfo: New file.
67912
67913 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
67916
67917 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67918
67919         * lib/mktime.c (SHR): New macro, which is a portable
67920         substitute for >> that should work even on Crays.
67921         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
67922         Problem reported by Mark D. Baushke in
67923         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
67924         * lib/getdate.y (SHR): Likewise.
67925         (tm_diff): Use it.
67926         * lib/strftime.c (SHR): Likewise.
67927         (tm_diff): Use it.
67928         * lib/quotearg.c (struct quoting_options): Use unsigned int for
67929         quote_these_too, so that right shifts are well defined.  All uses
67930         changed.
67931
67932 2004-11-10  Jim Meyering  <jim@meyering.net>
67933
67934         Ensure that no close failure goes unreported.
67935         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
67936         return early when it seems there's nothing to flush.
67937         Don't include __fpending.h.
67938
67939 2004-11-10  Jim Meyering  <jim@meyering.net>
67940
67941         * modules/closeout (Depends-on): Remove fpending.
67942
67943 2004-11-10  Jim Meyering  <jim@meyering.net>
67944
67945         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
67946
67947 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
67950         gl_FUNC_STRFTIME.
67951         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
67952         and AC_REQUIRE when possible, to avoid duplicate checks.
67953         Check for <wchar.h>.
67954
67955 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67956
67957         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
67958
67959 2004-11-09  Bruno Haible  <bruno@clisp.org>
67960
67961         * m4/sockpfaf.m4: New file.
67962
67963 2004-11-05  Bruno Haible  <bruno@clisp.org>
67964
67965         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
67966         Reported by Mark D. Baushke <mdb@cvshome.org>.
67967
67968 2004-11-04  Bruno Haible  <bruno@clisp.org>
67969
67970         2004-09-11  Bruno Haible  <bruno@clisp.org>
67971                 * allocsa.valgrind: New file.
67972         2004-02-06  Bruno Haible  <bruno@clisp.org>
67973                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
67974                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
67975                 Reported by Christopher Seip <chris.seip@hp.com>.
67976
67977 2004-11-04  Bruno Haible  <bruno@clisp.org>
67978
67979         * modules/allocsa (Files): Add lib/allocsa.valgrind.
67980         (Makefile.am): Distribute it.
67981
67982 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
67985         with errno == ERANGE if the buffer is too small.
67986         Problem reported by Mark D. Baushke.
67987
67988 2004-11-03  Albert Chin  <china@thewrittenword.com>
67989             Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
67992         equivalent, substitute $ac_type for equivalent type rather than
67993         blindly using uint32_t *always* which won't work if uint32_t is not
67994         available.  Define _UINT32_T to work around typedef of uint32_t if
67995         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
67996         2.5.1.
67997
67998 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
67999
68000         * m4/jm-macros.m4: Sync from coreutils.
68001         (gl_MACROS): Check for mbrlen, for pathchk.
68002         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68003
68004 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68005
68006         * lib/xreadlink.c (MAXSIZE): New macro.
68007         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68008         size does not exceed MAXSIZE.  Avoid cast.
68009         As suggested by Mark D. Baushke in
68010         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68011         if readlink fails with buffer size just under MAXSIZE, try again
68012         with MAXSIZE.
68013
68014 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68015
68016         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68017
68018 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68019         and  Paul Eggert  <eggert@cs.ucla.edu>
68020
68021         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68022         (get_date): Overparenthesize to avoid GCC warning.
68023
68024 2004-11-02  Bruno Haible  <bruno@clisp.org>
68025
68026         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68027         returns void.
68028
68029 2004-11-02  Bruno Haible  <bruno@clisp.org>
68030
68031         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68032         function returns void.
68033
68034 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68035
68036         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68037         fflush_unlocked, flockfile, funlockfile, funlockfile,
68038         fputs_unlocked, putc_unlocked.
68039
68040 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68041
68042         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68043         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68044         already declared.
68045
68046 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68047
68048         * modules/getdate (Files): Add doc/getdate.texi.
68049         (Depends-on): Add setenv, xalloc.
68050
68051 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         * lib/getdate.y: Add support for TZ="foo" within a date string.
68054         Fix some bugs near time_t boundaries.  Reject dates with
68055         out-of-range components, e.g., "Sept 31".
68056         Include <stdlib.h>, "setenv.h", "xalloc.h".
68057         (ISDIGIT_LOCALE): Remove; unused.
68058         Note that the TZ and time functions used here are not reentrant.
68059         (mktime_ok, get_tz): New functions.
68060         (TZBUFSIZE): New constant.
68061         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68062         This requires that we sometimes generate our own TZ="XXX..." setting.
68063
68064 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * doc/getdate.texi: New file, from coreutils with modifications for
68067         the new TZ parsing.
68068
68069 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68070
68071         * lib/mktime.c (not_equal_tm): Remove redundant check.
68072
68073 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68074
68075         * modules/regex (lib_SOURCES): Add regex.c.
68076         Reported by James Youngman in
68077         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68078
68079 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68080
68081         * lib/getdate.y: Use Bison 1.875 features, and some minor
68082         code cleanups.  This change does not affect semantics.
68083         Don't include <stdlib.h>; no longer needed.
68084         Don't include unlocked-io.h; only the "#if TEST" code uses
68085         stdio, and performance isn't crucial there.
68086         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68087         Bison 1.875 features as described below.
68088         All uses of "PC." replaced by "pc->".
68089         (YYSTYPE): Add a forward declaration.
68090         (yylex, yyerror): Use full prototypes in forward decls.
68091         Use "%pure-parser" rather than obsolescent "%pure_parser".
68092         Use %parse-param and %lex-param instead of obsolescent
68093         YYPARSE_PARAM and YYLEX_PARAM.
68094         (meridian_table, month_and_day_table, time_units_table,
68095         relative_time_table, time_zone_table, military_table,
68096         lookup_zone, lookup_word, get_date):
68097         Use NULL instead of 0 where appropriate.
68098         (to_hour): Avoid abort (), to avoid a dependency on
68099         stdlib.h.
68100         (yyerror, yylex): Now accepts parser_control * arg.
68101         (main) [TEST]: Use '\0' rather than 0 for char.
68102
68103 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68104
68105         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68106
68107 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68108
68109         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68110         It's now the caller's responsibility to handle the case where
68111         !HAVE_GETPAGESIZE && !defined getpagesize.
68112
68113         * lib/mktime.c (leapyear): Arg is long int, not int.
68114
68115 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68116
68117         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68118
68119 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68120
68121         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68122         missing.  Problem reported by James Youngman.
68123
68124 2004-10-16  Simon Josefsson  <jas@extundo.com>
68125
68126         * gnulib-tool: Fix comments.  Fix parse problem.
68127         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68128
68129 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68130
68131         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68132         implementation of getopt_long.  Problem reported by Alexander Taler in:
68133         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68134
68135 2004-10-15  Bruno Haible  <bruno@clisp.org>
68136
68137         * gnulib-tool: Untabify. Initialize supplied_libname.
68138         (func_usage): More homogenous output.
68139         (func_modules_transitive_closure, func_modules_to_filelist,
68140         func_emit_lib_Makefile_am): New functions.
68141         (func_import): New function, extracted from big case statement. Use
68142         func_get_license, func_modules_transitive_closure,
68143         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68144         opt_lgpl. Don't use test -a, as it's not portable.
68145         (func_create_testdir): Use func_modules_transitive_closure,
68146         func_modules_to_filelist, func_emit_lib_Makefile_am.
68147
68148 2004-10-15  Bruno Haible  <bruno@clisp.org>
68149
68150         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68151
68152 2004-10-15  Bruno Haible  <bruno@clisp.org>
68153
68154         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68155         the portions belonging to each module.
68156         Suggested by Derek Robert Price <derek@ximbiot.com>.
68157
68158 2004-10-12  Simon Josefsson  <jas@extundo.com>
68159
68160         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68161         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68162         to real functions.
68163
68164 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68165
68166         * modules/vsnprintf: New file.
68167
68168 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68169
68170         * m4/vsnprintf.m4: New file.
68171
68172 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68173
68174         * lib/vsnprintf.h: New file.
68175         * lib/vsnprintf.c: New file.
68176
68177 2004-10-11  Bruno Haible  <bruno@clisp.org>
68178
68179         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68180         vsnprintf.
68181
68182 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68183
68184         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68185
68186 2004-10-07  Bruno Haible  <bruno@clisp.org>
68187
68188         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68189         fits into the provided buffer.
68190
68191 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68192
68193         * lib/diacrit.c, diacrit.h: Add GPL notice.
68194
68195         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68196         notice.
68197         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68198         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68199         This avoids a potential constant-folding bug.
68200
68201 2004-10-05  Bruno Haible  <bruno@clisp.org>
68202
68203         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68204         for the declaration of strsep.
68205
68206 2004-10-05  Bruno Haible  <bruno@clisp.org>
68207
68208         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
68209
68210 2004-10-04  Simon Josefsson  <jas@extundo.com>
68211
68212         * modules/memmem: New file.
68213         * tests/test-memmem.c: New file.
68214         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
68215
68216 2004-10-04  Simon Josefsson  <jas@extundo.com>
68217
68218         * m4/memmem.m4: New file.
68219
68220 2004-10-04  Simon Josefsson  <jas@extundo.com>
68221
68222         * lib/memmem.h: New file.
68223         * lib/memmem.c: New file, taken from glibc.
68224
68225 2004-10-04  Simon Josefsson  <jas@extundo.com>
68226
68227         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
68228         '#ifdef USE_UNLOCKED_IO'.
68229
68230 2004-10-04  Simon Josefsson  <jas@extundo.com>
68231
68232         * config/srclist.txt: Add memmem from glibc.
68233
68234 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68235
68236         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
68237
68238         * modules/argmatch, modules/argp, modules/closeout, modules/error,
68239         modules/exclude, modules/getdate, modules/getline,
68240         modules/getndelim2, modules/getpass, modules/getpass-gnu,
68241         modules/getusershell, modules/linebuffer, modules/md5,
68242         modules/mountlist, modules/posixtm, modules/readtokens,
68243         modules/readutmp, modules/regex, modules/sha1,
68244         modules/version-etc, modules/yesno:
68245         Remove dependency on unlocked-io.
68246
68247 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68248
68249         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
68250
68251         * m4/unlocked-io.m4: Add copyright notice.
68252         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
68253
68254 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68255
68256         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
68257         * lib/xmalloc.c (xmemdup): Likewise.
68258         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
68259         XFREE): Remove these long-obsolescent macros.
68260         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
68261         * lib/xstrdup.c: Remove.
68262
68263         * lib/regex.c (re_comp): Cast gettext return value to char *,
68264         Problem reported by Martin Neitzel via Mark D. Baushke.
68265
68266 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
68269         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
68270         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
68271         regex.c, sha1.c, version-etc.c, yesno.c:
68272         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
68273         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
68274         the includer's responsibility.
68275
68276         Sync from coreutils.
68277
68278         * lib/modechange.c (mode_compile): Don't decrement a pointer that
68279         points to the start of a string, as the C Standard says the
68280         resulting behavior is undefined.
68281
68282         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
68283         simple -> simple_backups, numbered_existing ->
68284         numbered_existing_backups, numbered -> numbered_backups
68285         to avoid shadowing problems.  All uses changed.
68286         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
68287         * lib/backupfile.c (check_extension, numbered_backup):
68288         Rename locals to avoid shadowing 'basename'.
68289         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
68290         once.
68291
68292         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
68293         * lib/.cvsignore: Add getopt.h.
68294
68295 2004-10-04  Bruno Haible  <bruno@clisp.org>
68296
68297         * modules/README: New file.
68298         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
68299         not a module.
68300
68301 2004-10-02  Jim Meyering  <jim@meyering.net>
68302
68303         * lib/dirfd.h, getpagesize.h: Add copyright notice.
68304
68305 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68306
68307         * modules/strsep: New file.
68308
68309 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68310
68311         * m4/strsep.m4: New file.
68312
68313 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68314
68315         * lib/strsep.h: New file.
68316         * lib/strsep.c: New file.
68317
68318 2004-10-01  Simon Josefsson  <jas@extundo.com>
68319
68320         * lib/snprintf.c (snprintf): Handle size==0.
68321
68322 2004-10-01  Simon Josefsson  <jas@extundo.com>
68323             Bruno Haible  <bruno@clisp.org>
68324
68325         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
68326         (snprintf): Declare 'args'.
68327
68328 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
68329
68330         * lib/snprintf.c: Remove comments as to why each header is needed.
68331
68332 2004-10-01  Bruno Haible  <bruno@clisp.org>
68333
68334         * MODULES.html.sh: Add strsep.
68335
68336 2004-09-30  Simon Josefsson  <jas@extundo.com>
68337
68338         * modules/snprintf: New file.
68339
68340 2004-09-30  Simon Josefsson  <jas@extundo.com>
68341
68342         * m4/snprintf.m4: New file.
68343
68344 2004-09-30  Simon Josefsson  <jas@extundo.com>
68345
68346         * lib/snprintf.h, lib/snprintf.c: New files.
68347
68348 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68349
68350         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
68351         (hol_entry_help): Never translate an empty string.
68352         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
68353         * lib/argp.h (OPTION_NO_TRANS): New option.
68354
68355 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68356
68357         * modules/argp (Maintainer): Replace Simon Josefsson
68358         by Sergey Poznyakoff.
68359
68360 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
68363         changes merged back into glibc.
68364
68365 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
68368
68369 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68370
68371         * lib/xvasprintf.c: Include xalloc.h.
68372         (xvasprintf): Use xalloc_die, not xmalloc_die.
68373
68374 2004-09-29  Bruno Haible  <bruno@clisp.org>
68375
68376         * modules/alloca-opt: New file, derived from modules/alloca.
68377         * modules/allocsa: Depend on alloca-opt instead of alloca.
68378         * modules/setenv: Likewise.
68379         * modules/vasnprintf: Likewise.
68380         * MODULES.html.sh: Add alloca-opt.
68381
68382 2004-09-28  Simon Josefsson  <jas@extundo.com>
68383
68384         * gnulib-tool: New parameter --lgpl, to asseert that modules are
68385         LGPL, and to replace license template from GPL to LGPL.
68386
68387 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68388
68389         * modules/dummy: Change license to LGPL.
68390
68391 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
68392
68393         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
68394
68395 2004-09-24  Simon Josefsson  <jas@extundo.com>
68396
68397         * modules/minmax (License): Change from GPL to LGPL.
68398
68399 2004-09-23  Simon Josefsson  <jas@extundo.com>
68400
68401         * gnulib-tool (--import): Typo.
68402
68403 2004-09-23  Simon Josefsson  <jas@extundo.com>
68404
68405         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
68406
68407 2004-09-22  Bruno Haible  <bruno@clisp.org>
68408
68409         * modules/*: Add 'License' field.
68410         * gnulib-tool: Accept --extract-license option.
68411         (func_get_license): New function.
68412
68413 2004-09-21  Bruno Haible  <bruno@clisp.org>
68414
68415         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
68416         Reported by Simon Josefsson.
68417
68418 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68419
68420         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
68421         gl_AC_TYPE_LONG_LONG.
68422
68423 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68424
68425         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
68426
68427 2004-09-18  Simon Josefsson  <jas@extundo.com>
68428         and  Paul Eggert  <eggert@cs.ucla.edu>
68429
68430         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
68431         calls with autoreconf.  Define GL_LIB.
68432
68433 2004-09-14  Karl Berry  <karl@gnu.org>
68434
68435         * config/srclist.txt: unsync setenv.c, sigh.
68436
68437 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68438
68439         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
68440         Problem reported by Bruno Haible in:
68441         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
68442
68443 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68444
68445         * config/srclist.txt: Comment out argp-pvh.c.
68446
68447 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
68448
68449         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
68450         in case some system header has #define'd it.  Problem reported by
68451         Soeren D. Schulze in
68452         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
68453
68454 2004-09-09  Karl Berry  <karl@gnu.org>
68455
68456         * regex.[ch]: delete from the root.  These were supposed to be
68457                 synced with emacs cvs, but this has not happened for about
68458                 a year, and anyway nothing else uses emacs regex.[ch].
68459                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
68460                 lib/regex[.ch] is untouched.
68461
68462 2004-09-09  Bruno Haible  <bruno@clisp.org>
68463
68464         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
68465
68466 2004-09-09  Bruno Haible  <bruno@clisp.org>
68467
68468         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
68469         modifications.
68470         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
68471
68472 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68473
68474         * modules/xvasprintf: New file.
68475         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
68476
68477 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
68478
68479         * lib/xvasprintf.h: New file.
68480         * lib/xvasprintf.c: New file.
68481         * lib/xasprintf.c: New file.
68482
68483 2004-09-08  Bruno Haible  <bruno@clisp.org>
68484
68485         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
68486
68487 2004-09-08  Bruno Haible  <bruno@clisp.org>
68488
68489         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
68490         length is > INT_MAX.
68491         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
68492         more.
68493
68494 2004-09-08  Bruno Haible  <bruno@clisp.org>
68495
68496         * lib/stdint_.h: New file, taken from GNU clisp.
68497
68498 2004-09-08  Bruno Haible  <bruno@clisp.org>
68499             Oskar Liljeblad  <oskar@osk.mine.nu>
68500
68501         * modules/stdint: New file.
68502         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
68503
68504 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         Import from coreutils.
68507         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
68508         strings on unbounded length.  alloca's performance benefits aren't
68509         that important here.
68510         (V_STRDUP): Remove.
68511         (parse_with_separator): New function, with most of the internals
68512         of the old parse_user_spec.  Allow user to omit both user and group,
68513         for compatibility with FreeBSD.
68514         Clone only the user name, not the entire spec.
68515         Do not set *uid, *gid unless entirely successful.
68516         Avoid memory leak in some failing cases.
68517         Fix regression for USER.GROUP reported by Dmitry V. Levin in
68518         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
68519         (parse_user_spec): Rewrite to use parse_with_separator.
68520
68521 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * modules/userspec: Don't depend on alloca.
68524
68525 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68526
68527         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
68528
68529 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68530
68531         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
68532         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
68533         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
68534
68535 2004-08-16  Simon Josefsson  <jas@extundo.com>
68536
68537         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
68538         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
68539         Add --dry-run for --import.
68540         Let user provided command line parameters override configure.ac
68541         settings.
68542
68543 2004-08-12  Simon Josefsson  <jas@extundo.com>
68544
68545         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
68546         as discussed with Paul Eggert in threads rooted at
68547         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
68548         and
68549         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
68550         Before, the test was empty, and relied on ELIDE_CODE in source
68551         code.)
68552         (gl_PREREQ_GETOPT): New macro.
68553         (gl_GETOPT): Use them.
68554
68555 2004-08-12  Simon Josefsson  <jas@extundo.com>
68556
68557         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
68558         * lib/getopt_.h: Renamed from getopt.h.
68559
68560 2004-08-12  Simon Josefsson  <jas@extundo.com>
68561
68562         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
68563         Change default library name from libfoo to libgnu.
68564         Now, if you have a configure.ac that says:
68565                 gl_SOURCE_BASE(gl)
68566                 gl_M4_BASE(gl/m4)
68567                 gl_MODULES(error getopt etcetera)
68568                 gl_INIT
68569         you can import all you need by running:
68570                 ../gnulib/gnulib-tool --import
68571
68572         * modules/getopt (Files): Rename getopt.h to getopt_.h.
68573         (Makefile.am): Rewrite, use logic from argz.
68574         (Include): Use <getopt.h> instead of "getopt.h".
68575
68576 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * modules/argp (Files): Add m4/unlocked-io.m4.
68579         (Depends-on): Add extensions.
68580
68581 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68582
68583         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
68584         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
68585         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
68586         Check for program_invocation_name, program_invocation_short_name,
68587         flockfile, funlockfile, features.h, _getopt_long_only_r.
68588
68589 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68590
68591         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
68592         its complicated substitute.
68593         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
68594         and program_invocation_name.
68595         (__argp_basename) [!_LIBC]: Remove; the only use was
68596         replaced by its body.
68597         (__argp_short_program_name): Change condition from
68598         !defined __argp_short_program_name to
68599         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
68600         to match argp-namefrob.h.
68601         (__argp_failure): Don't assume strerror_r returns char *.
68602         * lib/argp-parse.c (N_): Define unconditionally.
68603         (argp_default_options): Fill out initializers with 0 to avoid
68604         gcc warnings.
68605
68606 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
68607
68608         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
68609         getopt1.c.
68610
68611 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         Merge from coreutils.
68614
68615         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
68616
68617         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
68618         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
68619
68620 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         Merge from coreutils.
68623
68624         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
68625         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
68626         for Reliant Unix 5.43.
68627
68628         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
68629         (union fooround): Use uintmax_t, not long int.
68630         The rest is a merge from libc:
68631         [defined _LIBC]: Include <shlib-compat.h>.
68632         (_obstack) [defined _LIBC]: Remove after 2.3.4.
68633
68634         * lib/settime.c (settime): Recode to avoid warning with
68635         Sun Forte C 6U2.
68636
68637         * lib/strverscmp.c: Convert to UTF-8.
68638
68639 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68640
68641         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68642         m4/uintmax_t.m4.
68643
68644 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * modules/xalloc-die: New file.
68647         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
68648
68649         * modules/md5 (Files): Add m4/uint32_t.m4.
68650         * modules/sha1: Renamed from modules/sha.
68651         (Files):
68652         Rename lib/sha.h to lib/sha1.h.
68653         Rename lib/sha.c to lib/sha1.c.
68654         Rename m4/sha.m4 to m4/sha1.m4.
68655         (lib_SOURCES): Likewise.
68656         (configure.ac): Rename gl_SHA to gl_SHA1.
68657         (Include): sha.h -> sha1.h.
68658
68659 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
68662         * m4/sha1.m4: Renamed from sha.m4.
68663         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
68664
68665 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68666
68667         * lib/obstack.h (obstack_empty_p):
68668         Don't assume that chunk->contents is suitably aligned.
68669         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
68670         Likewise. Problem reported by Benno in
68671         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
68672
68673         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
68674         readable.  This could be improved further but it'd take some work.
68675
68676 2004-08-08  Simon Josefsson  <jas@extundo.com>
68677
68678         * modules/xgethostname (Depends-on): Remove exit and error (not
68679         used).
68680
68681         * modules/getpass-gnu: Add getpass.h.
68682         (Depends-on): Add stdbool.
68683         * modules/getpass: Add getpass.h.
68684
68685 2004-08-08  Simon Josefsson  <jas@extundo.com>
68686
68687         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
68688         Check getpass declaration.
68689
68690 2004-08-08  Simon Josefsson  <jas@extundo.com>
68691
68692         * lib/xgethostname.c: Don't include error.h (not used).
68693
68694         * lib/getpass.h: Add.
68695         * lib/getpass.c: Include getpass.h first.
68696
68697 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * lib/xalloc-die.c: New file.
68700         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
68701         All uses removed.
68702         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
68703         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
68704         xalloc-die.c.
68705         (_, N_, xalloc_die): Move to xalloc-die.c.
68706         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
68707         so that we needn't mess with xalloc_msg_memory_exhausted.
68708
68709         * lib/sha1.h: Renamed from sha.h.
68710         (SHA1_H): Renamed from _SHA_H.
68711         (sha1_ctx): Renamed from sha_ctx.
68712         (sha1_init_ctx): Renamed from sha_init_ctx.
68713         (sha1_process_block): Renamed from sha_process_block.
68714         (sha1_process_bytes): Renamed from sha_process_bytes.
68715         (sha1_finish_ctx): Renamed from sha_finish_ctx.
68716         (sha1_read_ctx): Renamed from sha_read_ctx.
68717         (sha1_stream): Renamed from sha_stream.
68718         (sha1_buffer): Renamed from sha_buffer.
68719         * lib/sha1.c: Likewise; renamed from sha.c.
68720         Do not include <sys/types.h>.
68721         Include <stddef.h> rather than <stdlib.h>.
68722
68723 2004-08-08  Bruno Haible  <bruno@clisp.org>
68724
68725         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
68726         FILESYSTEM_PREFIX_LEN.
68727         * lib/progreloc.c: Likewise.
68728         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
68729
68730 2004-08-06  Simon Josefsson  <jas@extundo.com>
68731
68732         * modules/progname (Depends-on): Don't depend on stdbool.
68733
68734 2004-08-06  Simon Josefsson  <jas@extundo.com>
68735
68736         * modules/getsubopt: New file.
68737         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68738         getsubopt.
68739
68740 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         More merge from coreutils.
68743
68744         * m4/utimens.m4, m4/utimecmp.m4: New files.
68745         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
68746         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
68747         prereq.m4, sha.m4: Import changes from coreutils.
68748
68749 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68750
68751         More merge from coreutils.
68752         * modules/raise, modules/readtokens0, modules/utimens:
68753         * modules/utimecmp, module/xnanosleep: New files.
68754         * modules/strftime: Add lib/strftime.h.
68755         Change include from <time.h> to "strftime.h".
68756         * modules/yesno: Add lib/yesno.h.
68757         * modules/backupfile: Remove lib/addext.c.
68758         * modules/euidaccess: Add stat-macros.h.
68759         * modules/canonicalize, modules/euidaccess,
68760         modules/filemode, modules/lchown, modules/makepath,
68761         modules/rmdir, modules/stat: Likewise.
68762
68763 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68764
68765         Merge from tar.
68766         * lib/argp-help.c (make_hol, hol_append): Don't assume that
68767         SIZE_MAX is a valid preprocessor constant.
68768         (__argp_basename): Change from "#ifndef _LIBC"
68769         to "#ifndef __argp_short_program_name", so that
68770         we don't compile these functions for tar.
68771
68772         More merges from coreutils.
68773         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
68774         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
68775         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
68776         * lib/addext.c: Remove; no longer needed.
68777         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
68778         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
68779         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
68780         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
68781         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
68782         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
68783         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
68784         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
68785         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
68786         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68787         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
68788         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
68789         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
68790         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
68791         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
68792         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
68793         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
68794         Import changes from coreutils.
68795
68796 2004-08-05  Simon Josefsson  <jas@extundo.com>
68797
68798         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
68799
68800 2004-08-05  Simon Josefsson  <jas@extundo.com>
68801
68802         * m4/getsubopt.m4: New file.
68803
68804 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         Merge from coreutils.
68807
68808         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
68809         * m4/getcwd-path-max.m4: New files.
68810
68811         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
68812         FILESYSTEM_PREFIX_LEN ->
68813         FILE_SYSTEM_PREFIX_LEN.
68814         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
68815         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
68816         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
68817         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
68818
68819         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
68820         prerequisite modules now handle the DOS stuff.
68821         Don't check for unistd.h.
68822
68823 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         Merge from coreutils.
68826
68827         * lib/.gdb-history: Remove; this doesn't belong here.
68828
68829         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
68830         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
68831         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
68832         * lib/getcwd.c: New files.
68833
68834         * lib/dirname.h: Include <stdbool.h>.
68835         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
68836         for consistency with POSIX terminology.  All uses changed.
68837         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
68838         (strip_trailing_slashes): Use bool for booleans.
68839         * lib/stripslash.c (strip_trailing_slashes): Likewise.
68840
68841         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
68842         sometimes returns a positive errno value even when it succeeds.
68843         (print_errno_message) [!LIBC]: Fall back on strerror if
68844         __strerror_r fails.
68845
68846         * lib/path-concat.c (mempcpy): Don't define if a system header defines
68847         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
68848         (longest_relative_suffix): New function.
68849         (path_concat): Use it.  Assume first argument is not NULL.
68850         Port to DOS.  Omit redundant separators.
68851         Report an error instead of returning NULL.
68852         Use mempcpy instead of memcpy.
68853         (xpath_concat): Remove: not declared or used.
68854
68855         * lib/same.h: Include <stdbool.h>
68856         (same_name): Return bool, not int.
68857         * lib/same.c (same_name): Likewise.
68858         (errno): Don't declare; we assume C89 or better now.
68859
68860         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
68861         if not already defined.
68862
68863         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
68864         * lib/dup-safer.c (errno): Likewise.
68865
68866 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         Merge from coreutils.
68869         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
68870         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
68871         * modules/path-concat: Don't depend on strdup.
68872
68873 2004-08-03  Simon Josefsson  <jas@extundo.com>
68874
68875         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
68876         * lib/progname.h: Don't include stdbool.h.
68877
68878 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68879
68880         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
68881         * MODULES.html.sh (func_all_modules): Remove fatal.
68882
68883 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68884
68885         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
68886
68887 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
68888
68889         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
68890         working.
68891
68892 2004-08-02  Simon Josefsson  <jas@extundo.com>
68893
68894         * lib/getsubopt.h: New file, with comments from Bruno Haible.
68895         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
68896         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
68897
68898 2004-08-01  Simon Josefsson  <jas@extundo.com>
68899
68900         * lib/xgetdomainname.c: Include stdlib.h, for free().
68901
68902 2004-07-19  Bruno Haible  <bruno@clisp.org>
68903
68904         * MODULES.html.sh (func_all_modules): Add dummy.
68905
68906 2004-07-16  Simon Josefsson  <jas@extundo.com>
68907
68908         * modules/dummy: New file.
68909
68910 2004-07-16  Simon Josefsson  <jas@extundo.com>
68911
68912         * lib/dummy.c: New file.
68913
68914 2004-07-16  Bruno Haible  <bruno@clisp.org>
68915
68916         * lib/backupfile.h: Add extern "C" for C++.
68917         * lib/closeout.h: Likewise.
68918         * lib/copy-file.h: Likewise.
68919         * lib/findprog.h: Likewise.
68920         * lib/full-write.h: Likewise.
68921         * lib/pathname.h: Likewise.
68922         * lib/progname.h: Likewise.
68923         * lib/stpcpy.h: Likewise.
68924         * lib/stpncpy.h: Likewise.
68925         * lib/strcase.h: Likewise.
68926         * lib/strstr.h: Likewise.
68927         * lib/xalloc.h: Likewise.
68928
68929         * lib/mbswidth.h: Add extern "C" for C++.
68930         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
68931
68932 2004-07-13  Robert Millan  <robertmh@gnu.org>
68933
68934         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
68935
68936 2004-07-09  Simon Josefsson  <jas@extundo.com>
68937
68938         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
68939         failed without this.)
68940
68941 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68942
68943         * modules/chown (Files): Add lib/fchown-stub.c, since
68944         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
68945
68946 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         * lib/fchown-stub.c: New file.
68949
68950 2004-06-24  Jim Meyering  <jim@meyering.net>
68951
68952         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
68953
68954 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68955
68956         * modules/argz: Omit "#include".
68957
68958         * MODULES.html.sh (func_all_modules): Add calloc, to match
68959         2004-06-01 addition of calloc module.
68960
68961 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68962
68963         * m4/argz.m4: New file, which is autoupdated from libtool.
68964
68965 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
68968         libtool.
68969
68970 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         * config/srclist-update: Don't insist on "USA." before the
68973         close-comment, as libtool omits the period and puts the */ on a
68974         separate line.
68975         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
68976         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
68977
68978 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
68979
68980         * modules/argz: New file.
68981         * MODULES.html.sh (func_all_modules): Add argz.
68982
68983 2004-06-12  Jim Meyering  <jim@meyering.net>
68984         and  Paul Eggert  <eggert@cs.ucla.edu>
68985
68986         * modules/hash (Files): Add lib/xalloc.h.
68987         * modules/pipe (Depends-on): Add wait-process.
68988         * modules/stat (Depends-on): Add xalloc.
68989         * modules/userspec (Files): Add lib/userspec.h.
68990         * modules/xstrto
68991
68992         Upgrade from gettext-0.13.
68993         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
68994         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
68995         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
68996
68997 2004-06-10  Jim Meyering  <jim@meyering.net>
68998
68999         * lib/calloc.c: New file.
69000
69001 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * lib/getdate.y (yylex): Allow space between sign and number.
69004         Problem reported by Dan Jacobson.
69005
69006 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         Merge from coreutils CVS.
69009
69010         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69011         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69012         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69013         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69014         xstrtol.m4: Fix copyright date and/or serial number.
69015
69016         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69017         See if we need an fchown replacement.
69018         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69019         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69020         and use the replacement function if we detect either defect.
69021
69022         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69023         gl_UTIMECMP.
69024
69025 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69026         and  Jim Meyering  <jim@meyering.net>
69027
69028         Merge from coreutils CVS.
69029
69030         * lib/stat-macros.h: New file, with contents from file-type.h
69031         and coreutils' system.h.
69032         * lib/file-type.c: Include "stat-macros.h".
69033         * lib/file-type.h (file_type): Move all macro definitions to new file,
69034         stat-macros.h.
69035
69036         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69037         Wrap old code with this conditional.
69038         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69039         function that does not dereference symlinks.
69040         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69041
69042         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69043         dependency problems.
69044         (xreadlink): Accept new arg SIZE, for efficiency.
69045         All decls and uses changed.
69046         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69047
69048         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69049         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69050
69051         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69052         sysexits.h.
69053
69054 2004-06-01  Jim Meyering  <jim@meyering.net>
69055
69056         * m4/calloc.m4: New file.
69057
69058 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69061         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69062         Also, fix a typo in a diagnostic.
69063
69064 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69065
69066         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69067         or AC_FUNC_REALLOC.
69068
69069 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69072         macros to be defined.
69073         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69074         the allocator returns NULL because the requested size is zero.
69075
69076 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69077
69078         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69079         var.  Add comment explaining why libc still defines it.  This
69080         merges the following patch from glibc:
69081         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69082
69083 2004-05-20  Andreas Schwab  <schwab@suse.de>
69084
69085         * m4/free.m4: Replace free if it not known to work, not the other
69086         way round.
69087
69088 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69089
69090         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69091         present in glibc since revision 1.1 of this file.
69092         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69093         obstack_alignment_mask, obstack_alloc, obstack_base,
69094         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69095         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69096         obstack_grow0, obstack_init, obstack_int_grow,
69097         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69098         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69099         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69100         nonexistent functions.
69101
69102 2004-05-18  Karl Berry  <karl@gnu.org>
69103
69104         * config/srclist.txt: break link for vasnprintf.c.
69105
69106 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69107
69108         Port obstack to the AS/400, where pointers are 16 bytes wide and
69109         you cannot cast an integer to a valid pointer.  This patch is
69110         currently waiting to be integrated into glibc; see
69111         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69112
69113         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69114         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69115         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69116         (struct obstack): temp member is now a union of a pointer and
69117         an integer, instead of an integer.  All integer uses changed.
69118         This does not affect the physical layout of struct obstack,
69119         except on hosts (like the AS/400) where the size or alignment of
69120         void * is greater than that of ptrdiff_t.
69121         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69122         __STDC__)]: Store temporary in pointer member of union, not
69123         integer member.
69124         * lib/obstack.c: Include <stddef.h>, for offsetof.
69125         (struct fooalign): Remove; it doesn't need a name.
69126         (union fooround): Change double to long double, and add void *.
69127         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69128         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69129         not a macro.  Hence the values are always int; so remove all
69130         casts-to-int in uses.
69131
69132 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69135         we can get this patch merged into glibc.
69136
69137 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69138             Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * m4/argp: Depend on alloca.
69141
69142 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69143             Paul Eggert  <eggert@cs.ucla.edu>
69144
69145         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69146         freecoding.
69147
69148 2004-05-17  Bruno Haible  <bruno@clisp.org>
69149
69150         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69151         precision that consists of a '.' followed by an empty digit string.
69152         Patch by Tor Lillqvist <tml@iki.fi>.
69153
69154 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69157         for backward compatibility with older code.  We need our own
69158         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69159         it under some other name, and our alloca.h will define it.
69160
69161 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69162             Derek Price  <derek@ximbiot.com>
69163
69164         * lib/alloca.c: Include <alloca.h>, to get our interface.
69165         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69166         include <alloca.h> first.  Use C89 prototype for alloca; this
69167         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69168         Use #elif for simplicity, since we can assume C89 now.
69169         Don't try to source the system alloca.h since it will not be found
69170         and to prevent recursively including its replacement.
69171         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69172         * lib/regex.c: Likewise.
69173
69174 2004-05-16  Derek Price  <derek@ximbiot.com>
69175             Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         getline cleanup.  This changes the getndelim2 API: both order of
69178         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69179         no delimiter).
69180
69181         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69182         interface does that.
69183         (getline): Always use getdelim, so that we don't have two
69184         copies of this code.
69185         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69186         if available.
69187         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69188         (GETNDELIM2_MAXIMUM): New macro.
69189         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69190         instead of the old practice of delim2==0.  All callers changed.
69191         Return -1 on overflow, instead of returning junk.
69192         Do not set *linesize unless allocation succeeds.
69193         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69194         that we include sys/types.h.
69195         * lib/getnline.h: Likewise.
69196         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69197         (getndelim2): Reorder arguments.
69198         * lib/getnline.c (getnline, getndelim):
69199         Don't discard the NMAX argument.
69200         (getnline): Invoke getndelim, to avoid code duplication.
69201         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69202         of (size_t) -1 by callers of the getnline family.
69203
69204 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69205
69206         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
69207         Check for gettimeofday.
69208         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
69209         Check for settimeofday, stime.
69210
69211 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69212
69213         * lib/nanosleep.c (suspended): Change its type from int to
69214         sig_atomic_t volatile.
69215         (first_call): Make it private to rpl_nanosleep, and have it
69216         be zero initially as that's a bit faster.
69217         (my_usleep): Round up fractional times instead of truncating them,
69218         as this is the usual meaning for 'sleep'.
69219
69220         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
69221         doesn't work.
69222         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
69223         (ENOSYS): Define if not defined.
69224         (settime): Fall back on stime if it exists and settimeofday fails.
69225         But don't bother with fallbacks if a method fails with errno == EPERM.
69226
69227 2004-05-11  Jim Meyering  <jim@meyering.net>
69228
69229         Prior to this change, the save_cwd caller required read access to the
69230         current directory on most systems (ones with the fchdir function).
69231
69232         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
69233         fails, try write-only, and finally, resort to using xgetcwd.
69234
69235 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69236
69237         * lib/obstack.c, obstack.h: Import changes from libc.
69238
69239 2004-04-28  Bruno Haible  <bruno@clisp.org>
69240
69241         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
69242         also implicitly appends .exe to executables.
69243         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
69244         accepts Windows pathnames.
69245         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69246         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69247         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
69248         Treat Cygwin like Windows, since it now accepts Windows pathnames.
69249         Reported by Derek Robert Price <derek@ximbiot.com>.
69250
69251 2004-04-21  Karl Berry  <karl@gnu.org>
69252
69253         * config/srclist.txt (localcharset.c): break sync.
69254
69255 2004-04-20  Paul Eggert  <eggert@twinsun.com>
69256
69257         * m4/host-os.m4: Add a copyright notice.
69258
69259 2004-04-20  Jim Meyering  <jim@meyering.net>
69260
69261         Change UTILS_ to gl_ in AC_DEFINE'd names.
69262         Change utils_- and jm_-prefixed variables, too.
69263         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
69264         UTILS_FUNC_MKDIR_TRAILING_SLASH.
69265         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
69266
69267         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
69268         Don't emit trailing blanks.
69269         Also rename jm_-prefixed variables to have gl_ prefix.
69270
69271         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
69272         Also rename jm_-prefixed variables to have gl_ prefix.
69273
69274         * m4/jm-macros.m4: Reflect the renamings.
69275         * m4/prereq.m4: Likewise.
69276
69277 2004-04-20  Jim Meyering  <jim@meyering.net>
69278
69279         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
69280         memory.
69281
69282 2004-04-20  Jim Meyering  <jim@meyering.net>
69283             Bruno Haible  <bruno@clisp.org>
69284
69285         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
69286         memory when realloc fails.
69287
69288 2004-04-19  Jim Meyering  <jim@meyering.net>
69289
69290         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
69291         now that readutmp.c may call `free (0)'.
69292
69293 2004-04-19  Bruno Haible  <bruno@clisp.org>
69294
69295         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
69296         * m4/inttypes_h.m4: Likewise.
69297         * m4/stdint_h.m4: Likewise.
69298         * m4/intmax_t.m4: Likewise.
69299         * m4/uintmax_t.m4: Likewise.
69300
69301 2004-04-18  Jim Meyering  <jim@meyering.net>
69302
69303         * m4/prereq.m4: Don't forbid jm_ prefix.
69304
69305         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
69306         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
69307         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
69308         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
69309         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
69310         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
69311         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
69312         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
69313         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
69314         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
69315         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
69316         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
69317         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
69318         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
69319         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
69320         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
69321         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
69322         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
69323         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
69324
69325 2004-04-18  Jim Meyering  <jim@meyering.net>
69326
69327         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
69328         failure, don't leak memory and do call END_UTMP_ENT.
69329
69330 2004-04-16  Jim Meyering  <jim@meyering.net>
69331
69332         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
69333         coreutils' stat program.
69334         (gl_PREREQ): Don't require jm_PREREQ_STAT.
69335
69336 2004-04-11  Paul Eggert  <eggert@twinsun.com>
69337
69338         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
69339         C89.
69340         (CHAR_BIT): Remove, since we assume C89.
69341         Include <stdint.h> if available, as per current Autoconf CVS advice.
69342
69343 2004-03-31  Jim Meyering  <jim@meyering.net>
69344
69345         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
69346         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
69347         * m4/xalloc.m4: Likewise.
69348
69349 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69350
69351         Merge from coreutils.
69352
69353         * m4/inttostr.m4: New file.
69354         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
69355         Require AM_STDBOOL_H and gl_TIMESPEC instead.
69356         Require gl_CLOCK_TIME.
69357         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
69358
69359 2004-03-30  Paul Eggert  <eggert@twinsun.com>
69360
69361         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
69362         not bool, to be more consistent with Unix conventions.
69363         Suggested by Bruno Haible.
69364
69365         Merge from coreutils.
69366
69367         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
69368         * lib/umaxtostr.c: New files.
69369
69370         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
69371         the usual <time.h> dance.
69372         (get_date): Change signature to support fractional time stamps.
69373         All callers changed.
69374         * lib/getdate.y: Include "getdate.h" first, as we can now
69375         assume C89 and don't need to worry about 'const'.
69376         Similarly, include "unlocked-io.h" near start, not in middle.
69377         Include <limits.h>.
69378         (textint.value): Use long int rather than int.
69379         (textint.digits): Use size_t rather than int.
69380         (BILLION, LOG10_BILLION): New constants.
69381         (parser_control): New member rel_ns.  Members day_ordinal,
69382         time_zone, month, day, hour, minutes, rel_year, rel_month,
69383         rel_day, rel_hour, rel_minutes, rel_seconds
69384         are now long int, not int.  Member seconds is now struct timespec,
69385         not int.  New member timespec_seen.  Members dates_seen, days_seen,
69386         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
69387         not int.
69388         (%union.intval): Now long int, not int.
69389         New member timespec.
69390         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
69391         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
69392         (spec): Now is a timespec or an item list.
69393         (timespec, items): New nonterminals.
69394         (time, rel, relunit, number, get_date):
69395         Add support for fractional seconds.
69396         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
69397         (gmtime, localtime, mktime): Remove decls; not needed with C89.
69398         (to_hour): First arg is now long int, not int.
69399         (to_year): Returns long int, not int.
69400         Don't treat year -70 like 70.
69401         (tm_diff): Returns long int, not int.
69402         (lookup_word): Use bool instead of int when appropriate.
69403         (yylex): Use size_t for count, not int.
69404         Detect overflow when parsing large integer constants.
69405         Add support for fractions.
69406         (get_date): Make pointers 'const' if possible.
69407         Use more-portable code to detect integer overflow.
69408         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
69409         Don't use ctime; it's not reliable if the year has >4 digits.
69410
69411         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
69412         This is for compatibility with BSD.
69413
69414         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
69415         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
69416         From coreutils' system.h.
69417
69418         * lib/userspec.c: Don't include "posixver.h".
69419         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
69420         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
69421         compatible extension.  Simplify code by removing a boolean int
69422         that was always nonzero if a string was nonnull.
69423
69424 2004-03-30  Jim Meyering  <jim@meyering.net>
69425
69426         Merge from coreutils.
69427
69428         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
69429         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
69430         on some systems one must include <grp.h> before it.
69431         Reported by Christian Krackowizer.
69432
69433 2004-03-30  Jim Meyering  <jim@meyering.net>
69434
69435         Merge from coreutils.
69436
69437         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
69438
69439         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
69440         an empty input stream.
69441
69442         * lib/readtokens.c: Include <stdbool.h>.
69443         (readtoken): Use `size_t' rather than int/long.
69444         All callers adjusted.
69445         Use `bool' rather than `int' where appropriate.
69446         Use memset rather than an explicit loop.
69447         Use x2nrealloc rather than xrealloc.
69448         Allow the use of `\0' as a delimiter.
69449         (readtokens): Likewise.
69450         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
69451
69452 2004-03-30  Jim Meyering  <jim@meyering.net>
69453
69454         * m4/realloc.m4: Remove file, since now it does no more than
69455         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
69456         the `configure.ac' section of module/realloc.
69457         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
69458
69459 2004-03-30  Bruno Haible  <bruno@clisp.org>
69460
69461         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
69462         nonnull.
69463
69464 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69465
69466         Merge changes to getloadavg.c from coreutils and Emacs.
69467
69468         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
69469         Define to an expression, not to the empty string.
69470         Include cloexec.h and xalloc.h.
69471         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
69472         Use set_cloexec_flag rather than rolling our own.
69473         * lib/cloexec.c, lib/cloexec.h: New files.
69474
69475 2004-03-29  Paul Eggert  <eggert@twinsun.com>
69476
69477         * m4/cloexec.m4: New file.
69478
69479 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69480
69481         * lib/getopt.h: Sync with libc CVS.
69482
69483 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69484             Bruno Haible  <bruno@clisp.org>
69485
69486         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
69487         mbswidth.
69488
69489 2004-03-18  Paul Eggert  <eggert@twinsun.com>
69490             Bruno Haible  <bruno@clisp.org>
69491
69492         * lib/mbswidth.h: Include <wchar.h> only if
69493         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
69494         <wchar.h>.
69495         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
69496
69497 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69498
69499         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
69500         Sync with libc CVS.
69501         * lib/getopt_int.h: New file, also synced from libc.
69502
69503 2004-03-09  Paul Eggert  <eggert@twinsun.com>
69504
69505         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
69506         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
69507         Bring back getopt.c, getopt.h, getopt1.c.
69508
69509 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69510
69511         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
69512         All uses changed.  Check for sa_sigaction member; this fixes
69513         a bug first reported by Jason Andrade in
69514         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69515
69516 2004-03-07  Paul Eggert  <eggert@twinsun.com>
69517
69518         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
69519         '#if' expressions.  Unlike the code it replaces, it does not
69520         depend on (defined _SC_PAGESIZE).  However, it does depend on
69521         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
69522         first reported by Jason Andrade in
69523         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
69524
69525 2004-02-25  Simon Josefsson  <jas@extundo.com>
69526
69527         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
69528
69529 2004-02-25  Simon Josefsson  <jas@extundo.com>
69530
69531         * lib/strdup.h: New file.
69532         * lib/strdup.c: Include it.
69533         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
69534         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
69535
69536 2004-02-23  Karl Berry  <karl@gnu.org>
69537
69538         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
69539         (from fencepost.gnu.org:/gd/gnuorg).
69540
69541 2004-02-23  Karl Berry  <karl@gnu.org>
69542
69543         * config/srclistvars.sh (GNUORG) [karl]: redefine.
69544         * config/srclist.txt: add maintain/standards documents.
69545
69546 2004-02-18  Bruno Haible  <bruno@clisp.org>
69547
69548         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
69549         Reported by Derek Robert Price <derek@ximbiot.com>.
69550
69551 2004-02-16  Karl Berry  <karl@gnu.org>
69552
69553         * config/mkinstalldirs, install-sh: update from automake.
69554
69555 2004-02-06  Karl Berry  <karl@gnu.org>
69556
69557         * m4/po.m4: update from gettext 0.14.1.
69558
69559 2004-02-06  Karl Berry  <karl@gnu.org>
69560
69561         * lib/config.charset: update from gettext 0.14.1.
69562
69563 2004-02-05  Paul Eggert  <eggert@twinsun.com>
69564
69565         Add comments and code, prompted by suggestions from Bruno Haible
69566         for sh-quote.
69567         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
69568         describing the enum quoting_style values.
69569         * lib/quotearg.c (quotearg_alloc): New function.
69570         (quotearg_buffer_restyled): Treat lone { and } as special.
69571         Treat = as special.  Work around bug with older shells
69572         that "see" a '\' that is really the 2nd byte of a multibyte char.
69573         Quote empty string with shell_quoting_style.
69574
69575 2004-02-03  Bruno Haible  <bruno@clisp.org>
69576
69577         * m4/pipe.m4: New file, from GNU gettext.
69578
69579 2004-02-03  Bruno Haible  <bruno@clisp.org>
69580
69581         * lib/pipe.h: New file, from GNU gettext.
69582         * lib/pipe.c: New file, from GNU gettext.
69583
69584 2004-01-27  Bruno Haible  <bruno@clisp.org>
69585
69586         * m4/execute.m4: New file, from GNU gettext.
69587
69588 2004-01-27  Bruno Haible  <bruno@clisp.org>
69589
69590         * lib/execute.h: New file, from GNU gettext.
69591         * lib/execute.c: New file, from GNU gettext.
69592         * lib/w32spawn.h: New file, from GNU gettext.
69593
69594 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69595
69596         Merge from diffutils.
69597
69598         * lib/file-type.c (file_type): Add typed memory objects.
69599         * lib/file-type.h (S_TYPEISTMO): New macro.
69600
69601         * lib/c-stack.h (c_stack_action): Remove argv argument.
69602         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
69603         (die): Don't calculate message unless segv_action returns.
69604         (get_stack_location, min_address_from_argv, max_address_from_argv,
69605         volatile stack_base, volatile_stack_size): Remove.
69606         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
69607         that every segmentation violation is a stack overflow.  (Ouch!)
69608         See Debian bug 136249 (still outstanding) for more info about why
69609         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
69610
69611 2004-01-24  Paul Eggert  <eggert@twinsun.com>
69612
69613         Exit-status fix from coreutils.
69614
69615         Use exit_failure consistently in place of EXIT_FAILURE,
69616         so that program exit statuses are consistent on failure.
69617
69618         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
69619         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
69620         * lib/argmatch.h: Comment fix to match the above.
69621         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
69622         Now a macro referring to exit_failure, instead of a separate
69623         variable.  Include "exitfail.h" to get it.
69624         * lib/xstrtol.h: Include "exitfail.h".
69625         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
69626
69627         * lib/long-options.c (parse_long_options): Use prototype
69628         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
69629         for clarity.
69630
69631 2004-01-21  Jim Meyering  <jim@meyering.net>
69632
69633         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
69634         so as not to conflict with a different-sized __mktime_internal
69635         function in GNU libc.
69636         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
69637         Problem building statically-linked `ls' reported by Michael Brunnbauer.
69638
69639 2004-01-20  Karl Berry  <karl@gnu.org>
69640
69641         * config/config.guess: update from config.
69642
69643         * config/srclistvars.sh: GNUWWWLICENSES for karl.
69644
69645 2004-01-20  Bruno Haible  <bruno@clisp.org>
69646
69647         Safer stack allocation.
69648         * lib/setenv.c: Include allocsa.h.
69649         (alloca): Remove fallback definition.
69650         (freea): Remove macro.
69651         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
69652         instead of freea.
69653
69654 2004-01-20  Bruno Haible  <bruno@clisp.org>
69655
69656         * m4/eealloc.m4: New file, from GNU gettext.
69657
69658 2004-01-20  Bruno Haible  <bruno@clisp.org>
69659
69660         * m4/allocsa.m4: New file, from GNU gettext.
69661
69662 2004-01-20  Bruno Haible  <bruno@clisp.org>
69663
69664         * lib/xallocsa.h: New file, from GNU gettext.
69665         * lib/xallocsa.c: New file, from GNU gettext.
69666
69667 2004-01-20  Bruno Haible  <bruno@clisp.org>
69668
69669         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
69670
69671 2004-01-20  Bruno Haible  <bruno@clisp.org>
69672
69673         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
69674         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
69675         specially.
69676
69677 2004-01-20  Bruno Haible  <bruno@clisp.org>
69678
69679         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
69680         patch.
69681
69682 2004-01-20  Bruno Haible  <bruno@clisp.org>
69683
69684         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
69685
69686 2004-01-20  Bruno Haible  <bruno@clisp.org>
69687
69688         * lib/eealloc.h: New file.
69689
69690 2004-01-20  Bruno Haible  <bruno@clisp.org>
69691
69692         * lib/binary-io.h: Avoid warnings on Cygwin.
69693
69694 2004-01-20  Bruno Haible  <bruno@clisp.org>
69695
69696         * lib/allocsa.h: New file, from GNU gettext.
69697         * lib/allocsa.c: New file, from GNU gettext.
69698
69699 2004-01-18  Karl Berry  <karl@gnu.org>
69700
69701         * doc/gpl.texi, doc/lgpl.texi: new files.
69702
69703 2004-01-18  Karl Berry  <karl@gnu.org>
69704
69705         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
69706         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
69707
69708 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69709
69710         Merge from coreutils.
69711
69712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
69713         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
69714         (gl_DEFAULT_POSIX2_VERSION): Move
69715         the documentation from 'configure' into 'config.hin',
69716         so that 'configure --help' isn't burdened by it and
69717         we don't have to worry about its formatting there.
69718         Reword the documentation so that it's more succinct
69719         and can be run together into a single paragraph.
69720         * m4/same.m4 (gl_SAME): Check for pathconf.
69721
69722 2004-01-15  Paul Eggert  <eggert@twinsun.com>
69723
69724         Merge from coreutils.
69725
69726         * lib/posixver.c: Include posixver.h.
69727
69728         * lib/same.c: Include <stdbool.h>, <limits.h>.
69729         (_POSIX_NAME_MAX): Define if not defined.
69730         (MIN): New macro.
69731         (same_name): If file names are silently truncated, report
69732         that the file names are the same if they are the same after
69733         the silent truncation.
69734
69735         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
69736         conversion function.
69737         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
69738         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
69739         longer needed.
69740
69741 2004-01-15  Jim Meyering  <jim@meyering.net>
69742
69743         Merge from coreutils.
69744
69745         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
69746         if no library is required.
69747         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
69748         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
69749         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
69750         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
69751         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
69752         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
69753         value, $ac_cv_search_crypt, if it's "none required".
69754         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
69755         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
69756         not gl_FUNC_GETLOADAVG.
69757         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
69758         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
69759
69760 2004-01-15  Jim Meyering  <jim@meyering.net>
69761
69762         Merge from coreutils.
69763
69764         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
69765         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
69766         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
69767
69768         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
69769         optional configure-time default.
69770
69771         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69772
69773         * lib/xreadlink.c (xreadlink): Correct outdated comment.
69774
69775 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
69776
69777         Merge from coreutils.
69778
69779         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
69780         value, $ac_cv_search_nanosleep, if it's "none required".
69781
69782 2004-01-14  Paul Eggert  <eggert@twinsun.com>
69783
69784         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
69785         with like-named macro in fnmatch.c.
69786         (EXT): Use an internal constant instead.
69787
69788         Merge fnmatch patches from glibc.
69789         * lib/fnmatch.c (mbsinit): Remove define.
69790         Add libc_hidden_ver (__fnmatch, fnmatch).
69791         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
69792         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
69793
69794 2004-01-14  Karl Berry  <karl@gnu.org>
69795
69796         * config/install-sh: update from automake.
69797
69798 2004-01-13  Karl Berry  <karl@gnu.org>
69799
69800         * config/install-sh: update from automake.
69801
69802 2004-01-09  Karl Berry  <karl@gnu.org>
69803
69804         * config/install-sh: update from automake.
69805
69806 2004-01-05  Karl Berry  <karl@gnu.org>
69807
69808         * config/config.{sub,guess}: update from config.
69809
69810 2003-12-31  Karl Berry  <karl@gnu.org>
69811
69812         * config/depcomp: update from automake.
69813
69814 2003-12-14  Karl Berry  <karl@gnu.org>
69815
69816         * lib/config.charset: update from gettext-runtime.
69817
69818 2003-12-03  Paul Eggert  <eggert@twinsun.com>
69819
69820         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
69821         Bug reported by Alfred M. Szmidt.
69822
69823 2003-12-03  Bruno Haible  <bruno@clisp.org>
69824
69825         * m4/gettext.m4: Upgrade from gettext-0.13.
69826         * m4/po.m4: Upgrade from gettext-0.13.
69827         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
69828         * m4/intmax.m4: New file, from gettext-0.13.
69829         * m4/printf-posix.m4: New file, from gettext-0.13.
69830
69831 2003-11-29  Karl Berry  <karl@gnu.org>
69832
69833         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
69834
69835 2003-11-25  Paul Eggert  <eggert@twinsun.com>
69836             Bruno Haible  <bruno@clisp.org>
69837
69838         * lib/printf-parse.h: Don't include sys/types.h.
69839         (ARG_NONE): New macro.
69840         (char_directive): Change type of *arg_index fields to size_t.
69841         * lib/printf-parse.c: Don't include sys/types.h.
69842         (SSIZE_MAX): Remove macro.
69843         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
69844         Remove unnecessary overflow check.
69845         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
69846         fields.
69847
69848 2003-11-25  Bruno Haible  <bruno@clisp.org>
69849
69850         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
69851
69852 2003-11-25  Bruno Haible  <bruno@clisp.org>
69853
69854         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
69855         gt_TYPE_SSIZE_T.
69856
69857 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69858
69859         * modules/alloca: Remove dependency on xalloc.
69860
69861 2003-11-24  Paul Eggert  <eggert@twinsun.com>
69862
69863         * lib/alloca.c: Remove dependency on xalloc module.
69864         (xalloc_die): Remove.
69865         (memory_full) [!defined emacs]: New macro.
69866         [!defined emacs]: Don't include xalloc.h.
69867         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
69868         address arithmetic overflows.  Change datatypes a bit to avoid
69869         unnecessary casts.
69870
69871 2003-11-22  Jim Meyering  <jim@meyering.net>
69872
69873         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
69874         s/size/size_t/.
69875
69876 2003-11-21  Karl Berry  <karl@gnu.org>
69877
69878         * config/config.{sub,guess}: update from config.
69879
69880 2003-11-18  Karl Berry  <karl@gnu.org>
69881
69882         * config/config.{sub,guess}: update from config.
69883
69884         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
69885
69886 2003-11-17  Paul Eggert  <eggert@twinsun.com>
69887
69888         * README: Mention that S+T cannot overflow if S is the size of
69889         an existing object and T is sufficiently small.
69890
69891 2003-11-17  Jim Meyering  <jim@meyering.net>
69892
69893         On systems without utime and without a utimes function capable of
69894         dealing with a NULL struct utimbuf* argument, this utime replacement
69895         could -- in unusual circumstances -- leak a file descriptor.
69896         * lib/utime.c: Include <unistd.h> and <errno.h>.
69897         (utime_null): Be sure to close `fd' and to preserve errno.
69898         Reported by Geoff Collyer via Arnold Robbins.
69899
69900 2003-11-17  Bruno Haible  <bruno@clisp.org>
69901
69902         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
69903         (Depends-on): Add xsize.
69904
69905 2003-11-17  Bruno Haible  <bruno@clisp.org>
69906
69907         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
69908
69909 2003-11-17  Bruno Haible  <bruno@clisp.org>
69910
69911         * lib/vasnprintf.c (alloca): Remove fallback definition.
69912         (freea): Remove definition.
69913         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
69914         Reported by Paul Eggert.
69915
69916 2003-11-16  Paul Eggert  <eggert@twinsun.com>
69917             Bruno Haible  <bruno@clisp.org>
69918
69919         Protect against address arithmetic overflow.
69920         * lib/printf-args.h: Include stddef.h.
69921         (arguments): Change type of field 'count' to size_t.
69922         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
69923         'unsigned int' where appropriate.
69924         * lib/printf-parse.h: Include sys/types.h.
69925         (char_directive): Change type of *arg_index fields to ssize_t.
69926         (char_directives): Change type of fields 'count', max_*_length to
69927         size_t.
69928         * lib/printf-parse.c: Include sys/types.h and xsize.h.
69929         (SSIZE_MAX): Define fallback value.
69930         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
69931         instead of 'int' where appropriate. Check a_allocated, d_allocated
69932         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
69933         * lib/vasnprintf.c: Include xsize.h.
69934         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
69935         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
69936         overflow. Avoid wraparound when converting a width or precision from
69937         decimal to binary.
69938
69939 2003-11-16  Bruno Haible  <bruno@clisp.org>
69940
69941         Update from GNU gettext.
69942         * lib/printf-parse.c: Generalize to it can be compiled for wide
69943         strings.
69944         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
69945         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
69946         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
69947         SNPRINTF): New macros.
69948         Don't include <alloca.h> if the file is used inside libintl.
69949         (local_wcslen): New function, for Solaris 2.5.1.
69950         (VASNPRINTF): Use it instead of wcslen.
69951
69952 2003-11-16  Bruno Haible  <bruno@clisp.org>
69953
69954         * lib/xsize.h (xmax): New function.
69955         (xsum, xsum3, xsum4): Declare as "pure" functions.
69956
69957 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69958
69959         * modules/xalloc (Files): Undo latest change, since xalloc.h
69960         no longer needs SIZE_MAX or PTRDIFF_MAX.
69961
69962 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69963
69964         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
69965         gl_PTRDIFF_MAX.
69966
69967 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69968
69969         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
69970         "return", to pacify some unknown compiler.  Problem reported
69971         by Joerg Schilling.
69972
69973 2003-11-12  Paul Eggert  <eggert@twinsun.com>
69974
69975         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
69976         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
69977         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
69978         heuristic is just as accurate as far as we know, and it removes a
69979         dependency on size_max.m4 and ptrdiff_max.m4.
69980
69981 2003-11-11  Bruno Haible  <bruno@clisp.org>
69982
69983         * modules/xsize (Files): Add m4/size_max.m4.
69984         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
69985
69986 2003-11-11  Bruno Haible  <bruno@clisp.org>
69987
69988         * m4/size_max.m4: New file.
69989         * m4/ptrdiff_max.m4: New file.
69990         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
69991         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
69992         (gl_XALLOC): Invoke it.
69993
69994 2003-11-11  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
69997         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
69998         defined.
69999
70000 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70001
70002         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70003         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70004         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70005         From Bruno Haible.
70006         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70007         not (size_t) -1, since it's defined here.
70008
70009 2003-11-09  Karl Berry  <karl@gnu.org>
70010
70011         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70012
70013 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70014
70015         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70016         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70017         Reject sizes of exactly SIZE_MAX bytes.
70018         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70019         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70020
70021 2003-11-05  Bruno Haible  <bruno@clisp.org>
70022
70023         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70024         SIZE_MAX defined in <limits.h> on Solaris.
70025
70026 2003-11-04  Jim Meyering  <jim@meyering.net>
70027
70028         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70029         variable names, rather than @VAR@.
70030         * modules/poll: Likewise.
70031
70032 2003-11-04  Bruno Haible  <bruno@clisp.org>
70033
70034         * modules/xsize: New file.
70035         * modules/linebreak: Depend on xsize.
70036         * MODULES.html.sh (func_all_modules): Add xsize.
70037
70038 2003-11-04  Bruno Haible  <bruno@clisp.org>
70039
70040         * m4/xsize.m4: New file.
70041
70042 2003-11-04  Bruno Haible  <bruno@clisp.org>
70043
70044         * lib/xsize.h: New file.
70045         * lib/linebreak.c: Include xsize.h.
70046         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70047         argument for overflow.
70048         Suggested by Paul Eggert.
70049
70050 2003-11-03  Karl Berry  <karl@gnu.org>
70051
70052         * config/config.{guess,sub}: update from config.
70053
70054 2003-11-03  Jim Meyering  <jim@meyering.net>
70055
70056         * modules/userspec (lib_SOURCES): Add userspec.h.
70057         (Include): Add "userspec.h".
70058         Improve description.
70059
70060 2003-11-03  Jim Meyering  <jim@meyering.net>
70061
70062         * lib/userspec.c: Include "userspec.h".
70063         * lib/userspec.h: New file.
70064
70065 2003-11-03  Bruno Haible  <bruno@clisp.org>
70066
70067         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70068
70069 2003-11-03  Bruno Haible  <bruno@clisp.org>
70070
70071         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70072         available, to avoid (extremely rare) race condition.
70073         Suggested by Paul Eggert.
70074
70075 2003-11-02  Karl Berry  <karl@gnu.org>
70076
70077         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70078
70079 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70080
70081         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70082         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70083         (read_filesystem_list): Set and use me_type_malloced.
70084         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70085         whatever the type happens to be), for brevity and consistency.
70086         Check for size calculation overflow on Alphas running OSF/1.
70087
70088 2003-10-31  Jim Meyering  <jim@meyering.net>
70089
70090         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70091
70092         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70093
70094 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70095             Bruno Haible  <bruno@clisp.org>
70096
70097         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70098         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70099
70100 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70101
70102         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70103         netbsd*-gnu*.  Suggested by Robert Millan.
70104
70105 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70106
70107         * modules/group-member: Depend on stdbool.
70108
70109 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70110
70111         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70112
70113 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70114
70115         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70116         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70117         after the 'gnu' in these cases.  This fixes some bugs in the
70118         previous change, and is based on suggestions by Robert Millan.
70119
70120 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70121
70122         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70123         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70124         no longer needed.
70125         * lib/quotearg.c (quotearg_n_options): Use it.
70126         * lib/group-member.c: Include <stdbool.h>.
70127         (free_group_info): Arg is now const *; don't free arg.
70128         (get_group_info): Now returns bool and accepts struct group_info *,
70129         rather than returning a malloc'ed struct group_info *.
70130         All uses changed.  Check for overflow in internal size calculation.
70131
70132         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70133         rather than xmalloc/xrealloc.
70134         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70135         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70136         conformance bug: the old code used a pointer after freeing the
70137         storage that it addressed.
70138         * lib/hash.c (hash_initialize): Simplify the code by using
70139         xalloc_oversized rather than doing it by hand.
70140         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70141         the buffer preserved.  Use free and xmalloc instead.
70142         * lib/quotearg.c (quotearg_n_options): Likewise.
70143         Use a simpler test for size overflow.  Don't use xalloc_oversized
70144         because unsigned int might be wider than size_t (!); this suggests
70145         that we should switch from unsigned int to size_t for slot numbers.
70146
70147 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70148
70149         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70150         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70151         NetBSD kernels.  Requested by Richard Stallman.
70152
70153 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70154
70155         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70156         to allocate the returned structure.  Do not allocate a subarray,
70157         as x2nrealloc will do that.
70158         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70159         instead of xnrealloc.
70160         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70161
70162 2003-10-27  Bruno Haible  <bruno@clisp.org>
70163
70164         * lib/stdbool_.h: Better support for BeOS.
70165
70166 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70167
70168         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70169         now uses inline.
70170
70171 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70172
70173         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70174         callers that want to do their own size-overflow checking.  Include
70175         <stdbool.h>, since xalloc_oversized returns bool.
70176         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70177         to use xalloc_oversized.
70178
70179         Add two functions x2realloc, x2nrealloc, for programs that grow
70180         arrays dynamically by doubling their sizes.
70181         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70182         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70183         New functions.
70184
70185         Port to C99 semantics for 'inline' of external functions.
70186         Bug reported by Bruno Haible.
70187         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70188         with the old contents of xnmalloc.
70189         (xnmalloc, xmalloc): Use it.
70190         (xnrealloc_inline): New static inline function,
70191         with the old contents of xnrealloc.
70192         (xnrealloc, xrealloc): Use it.
70193
70194         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70195         that.
70196
70197 2003-10-26  Karl Berry  <karl@gnu.org>
70198
70199         * config/srclist.txt (COPYING.DOC): no longer available from
70200         /gd/gnuorg; don't know where the ultimate source is.
70201
70202 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70203
70204         Fix several address-calculation bugs in the hash modules,
70205         plus some minor code cleanup.
70206
70207         * lib/hash.h: Include <stdbool.h>, for bool.
70208         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
70209         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
70210         hash_get_n_entries, hash_get_max_bucket_length,
70211         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
70212         hash_rehash): Use size_t rather than unsigned.
70213         * lib/hash.c (struct hash_table, hash_get_n_buckets,
70214         hash_get_n_buckets_used, hash_get_n_entries,
70215         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
70216         hash_get_entries, hash_do_for_each, hash_string, is_prime,
70217         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
70218         Likewise.
70219         (SIZE_MAX): Define if not defined.
70220         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
70221         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
70222         hash_print):
70223         Use const * when possible.
70224         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
70225         (check_tuning): Fix bug: if tuning parameters were very close to
70226         0 or 1, rounding errors could have caused subscript violations.
70227         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
70228         (hash_initialize): Add 'fail:' label
70229         to free table and return NULL, and use it to simplify code.
70230         Use calloc rather than clearing the storage ourself.
70231         (hash_initialize, hash_rehash): Check for arithmetic overflow in
70232         buffer size calculations.
70233         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
70234         Include <stddef.h>, for size_t.
70235         * lib/hash-pjw.c (hash_pjw): Likewise.
70236         Switch to method described by Bruno Haible.
70237         Include <limits.h>, for CHAR_BIT.
70238         (SIZE_BITS): New macro.
70239
70240 2003-10-23  Paul Eggert  <eggert@twinsun.com>
70241
70242         * m4/getline.m4 (AM_FUNC_GETLINE):
70243         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
70244         hosts.  Problem reported by Derek Robert Price in
70245         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
70246         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
70247         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
70248
70249 2003-10-21  Paul Eggert  <eggert@twinsun.com>
70250
70251         * lib/getndelim2.c (getndelim2): When size calculation overflows,
70252         ceiling the allocation at NMAX bytes rather than silently
70253         discarding input bytes before NMAX is reached.  This makes
70254         a difference only if NMAX exceeds SIZE_MAX / 2.
70255
70256         * lib/obstack.c: Merge from glibc.
70257         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
70258         Add libc_hidden_def (_obstack_newchunk).
70259         (_obstack_free) [! defined _LIBC]: Remove.
70260         [defined _LIBC]: Make a strong alias from obstack_free, rather than
70261         a clone of the function body.
70262         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
70263         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
70264
70265         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
70266         glibc.
70267         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
70268         arg to memcpy.
70269
70270         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
70271         (obstack_ptr_grow_fast, obstack_int_grow_fast):
70272         Don't use lvalue casts, as GCC plans to remove support for them
70273         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
70274         was also present in the non-GCC version, indicating that this
70275         code had always been buggy and had never been widely used.
70276         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
70277         Use the fast variant of each macro, rather than copying the
70278         definiens of the fast variant; that way, we'll be more likely to
70279         catch future bugs in the fast variants.
70280
70281 2003-10-20  Bruno Haible  <bruno@clisp.org>
70282
70283         * modules/wait-process: New file.
70284         * MODULES.html.sh (func_all_modules): Add wait-process.
70285
70286 2003-10-20  Bruno Haible  <bruno@clisp.org>
70287
70288         * m4/wait-process.m4: New file.
70289
70290 2003-10-20  Bruno Haible  <bruno@clisp.org>
70291
70292         * lib/wait-process.h: New file, from GNU gettext.
70293         * lib/wait-process.c: New file, from GNU gettext.
70294
70295 2003-10-19  Jim Meyering  <jim@meyering.net>
70296
70297         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
70298         HPUX 10.20.
70299
70300 2003-10-18  Karl Berry  <karl@gnu.org>
70301
70302         * config/config.guess: update from config.
70303
70304 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70305
70306         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
70307         (getgroups): First arg is int, not size_t.
70308         Don't let 'free' mangle errno.
70309
70310 2003-10-16  Paul Eggert  <eggert@twinsun.com>
70311
70312         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
70313
70314 2003-10-16  Karl Berry  <karl@gnu.org>
70315
70316         * config/config.{guess,sub}: update from config.
70317
70318 2003-10-16  Jim Meyering  <jim@meyering.net>
70319
70320         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
70321         memcpy.
70322
70323 2003-10-15  Paul Eggert  <eggert@twinsun.com>
70324
70325         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
70326         (SIZE_MAX): Remove.
70327         (new_exclude, add_exclude_file): Initial size no longer needs to
70328         be a power of 2.
70329         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
70330         our own address arithmetic overflow checking.
70331
70332         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
70333         (fnmatch): Do not alloca more than 2000 wide characters;
70334         instead, use malloc for large buffers.
70335         Check for address arithmetic overflow, and return -1
70336         with errno set to ENOMEM in that case.
70337         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
70338         (NEW_PATTERN): Do not alloca more than 8000 bytes;
70339         instead, return -1.  Check for address arithmetic overflow.
70340
70341 2003-10-14  Paul Eggert  <eggert@twinsun.com>
70342
70343         Handle invalid suffixes and overflow independently, so that
70344         callers can treat them independently as needed.  Fix some bugs in
70345         suffix handling, e.g., "100k@" was not diagnosed as an invalid
70346         suffix for a human-readable blocksize.  The major caller-visible
70347         change is the addition of a new
70348         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
70349         that both overflow and suffix chars were found.
70350
70351         * lib/human.c (humblock): Don't check separately for invalid suffix
70352         char; that is xstrtoumax's job (now that its bug is fixed).
70353         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
70354         INTMAX_MAX]: New macros.
70355         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
70356         TYPE_MAXIMUM): New macros.
70357         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
70358         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
70359         if overflow occurs, as it's what __strtol does and it's more useful
70360         in practice.
70361         (__xstrtol): If __strtol reports some error other than ERANGE,
70362         reflect it to the caller as LONGINT_INVALID.  If it reports
70363         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
70364         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
70365         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
70366         value.
70367         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
70368         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
70369         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
70370         [defined UINTMAX_MAX]: New macros.
70371
70372 2003-10-14  Bruno Haible  <bruno@clisp.org>
70373
70374         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
70375
70376 2003-10-14  Bruno Haible  <bruno@clisp.org>
70377
70378         * m4/sig_atomic_t: New file, from GNU gettext.
70379         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
70380
70381 2003-10-14  Bruno Haible  <bruno@clisp.org>
70382
70383         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
70384         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
70385         Also use volatile where needed.
70386
70387 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70388
70389         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
70390         Change maintainer from Bruno Haible to 'all'.
70391
70392 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70393
70394         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
70395
70396 2003-10-12  Paul Eggert  <eggert@twinsun.com>
70397
70398         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
70399         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
70400         and define in terms of the other primitives.
70401         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
70402         (SIZE_MAX): Define if not already defined.
70403         (array_size_overflow): New function.
70404         (xalloc_die): Abort instead of exiting if 'error' returns.
70405         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
70406         (xmalloc, xrealloc): Use them.
70407         (xcalloc): Check for address arithmetic overflow.
70408         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
70409         a bit faster than strcpy.
70410
70411 2003-10-10  Simon Josefsson  <jas@extundo.com>
70412
70413         * modules/argp (Depends-on): Add restrict and strcase.
70414
70415 2003-10-10  Simon Josefsson  <jas@extundo.com>
70416
70417         * m4/argp.m4: Add AC_C_INLINE.
70418
70419 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70420
70421         Merge getpass from libc, plus a few fixes.
70422
70423         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
70424         Include <stdbool.h>.
70425         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
70426         __fsetlocking to empty.
70427         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
70428         do include <bits/libc-lock.h>.
70429         Do not include <fcntl.h>; not needed.
70430         [_LIBC]: Include <wchar.h>.
70431         (NOTCANCEL_MODE): New macro.
70432         (flockfile, funlockfile) [_LIBC]: New macros.
70433         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
70434         [!_LIBC]: New macros.
70435         (call_fclose): New function.
70436         (getpass): Use it.  Save tty stream separately; this simplifies the
70437         code and makes it more reliable if stdin happens to equal stdout.
70438         Invoke __fsetlocking on tty.
70439         Handle thread cancellation if needed.
70440         Namespace cleanup (use __tcgetattr, __getline).
70441         Use bool for Booleans.
70442         [USE_IN_LIBIO]: Handle wide streams.
70443         [!_LIBC]: Unconditionally do the fseek, since we don't know what
70444         stream might go where.
70445
70446         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
70447         doesn't have to include <stdio.h> before us.
70448         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
70449         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
70450         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
70451         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
70452         if not declared, so that we can use getpass.c code from libc without
70453         rewriting it.
70454         (flockfile, ftrylockfile, funlockfile): New macros.
70455
70456 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70457
70458         * modules/getpass: Depend on stdbool.
70459
70460 2003-10-08  Paul Eggert  <eggert@twinsun.com>
70461
70462         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
70463
70464 2003-10-07  Karl Berry  <karl@gnu.org>
70465
70466         * config/config.{guess,sub}: update from config.
70467
70468 2003-10-06  Jim Meyering  <jim@meyering.net>
70469             Bruno Haible  <bruno@clisp.org>
70470
70471         This lets translators provide better translations for the
70472         "Written by ..." part of --version output.
70473         * lib/version-etc.h: Include stdarg.h.
70474         (version_etc_copyright): Declare as readonly.
70475         (version_etc): Make this function variadic with a NULL-terminated list
70476         of author name strings.
70477         (version_etc_va): New declaration.
70478         * lib/version-etc.c: Include stdarg.h, stdlib.h.
70479         (version_etc_copyright): Declare as readonly.
70480         (version_etc_va): New function. Provide a different translatable string
70481         for each possible number of authors < 10. Abbreviate when there are 10
70482         authors or more.
70483         (version_etc): Make this function variadic. Call version_etc_va.
70484         Suggestion from Gary V. Vaughan.
70485
70486         * lib/long-options.h (parse_long_options): Change prototype: the
70487         authors string is moved to the end and becomes variadic.
70488         * lib/long-options.c: Include stdarg.h.
70489         (parse_long_options): Make this function variadic, too.
70490         Call version_etc_va, not version_etc.
70491
70492 2003-10-06  Bruno Haible  <bruno@clisp.org>
70493
70494         * modules/version-etc-2: Remove file.
70495         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
70496
70497 2003-10-06  Bruno Haible  <bruno@clisp.org>
70498
70499         * modules/fatal-signal: New file.
70500         * MODULES.html.sh (func_all_modules): Add fatal-signal.
70501
70502 2003-10-06  Bruno Haible  <bruno@clisp.org>
70503
70504         * m4/fatal-signal.m4: New file.
70505         * m4/signalblocking.m4: New file, from GNU gettext.
70506
70507 2003-10-06  Bruno Haible  <bruno@clisp.org>
70508
70509         * lib/version-etc-2.h: Remove file.
70510         * lib/version-etc-2.c: Remove file.
70511
70512 2003-10-06  Bruno Haible  <bruno@clisp.org>
70513
70514         * lib/fatal-signal.h: New file, from GNU gettext.
70515         * lib/fatal-signal.c: New file, from GNU gettext.
70516
70517 2003-10-05  Paul Eggert  <eggert@twinsun.com>
70518
70519         * README: Rework advice for preventing empty .o files.
70520         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
70521         not <sys/types.h>.
70522
70523 2003-10-04  Karl Berry  <karl@gnu.org>
70524
70525         * lib/argp*: update from libc.
70526
70527 2003-10-04  Karl Berry  <karl@gnu.org>
70528
70529         * config/config.{guess,sub}: update from config.
70530
70531 2003-10-02  Bruno Haible  <bruno@clisp.org>
70532
70533         * modules/lchown (Include): Add lchown.h.
70534         * modules/time_r (Include): Use "..." syntax.
70535         * modules/xgetdomainname (Include): Add xgetdomainname.h.
70536
70537 2003-10-01  Simon Josefsson  <jas@extundo.com>
70538
70539         * MODULES.html.sh (func_all_modules): Move gethostname from section
70540         'based on' to section 'lacking' POSIX:2001.
70541
70542 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
70543
70544         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
70545         to output mode on the same stream.
70546
70547 2003-09-29  Paul Eggert  <eggert@twinsun.com>
70548
70549         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
70550         Fix arg typo in previous patch.
70551
70552 2003-09-28  Jim Meyering  <jim@meyering.net>
70553
70554         * lib/error.c: Correct cpp indentation.
70555
70556 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70557
70558         * modules/free: New file.
70559
70560 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70561
70562         * m4/free.m4: New file.
70563
70564 2003-09-27  Paul Eggert  <eggert@twinsun.com>
70565
70566         * lib/minmax.h (MIN, MAX)
70567         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
70568         Omit the special code that used __typeof__, since we worry that
70569         it could be more trouble than it's worth.  See:
70570         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
70571         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
70572
70573         * lib/free.c: New file.
70574
70575 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
70576
70577         Trivial fixes to Makefile.am parts of module listings.
70578         * modules/strstr: Append strstr.h to lib_SOURCES.
70579         * modules/strcase: Likewise, for strcase.h.
70580
70581 2003-09-27  Karl Berry  <karl@gnu.org>
70582
70583         * config/mkinstalldirs: update from automake.
70584
70585 2003-09-26  Paul Eggert  <eggert@twinsun.com>
70586
70587         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
70588         (error_tail): Do not loop, reallocating temporary buffer, since
70589         the output cannot contain more wide characters than the input
70590         contains bytes, the size must be big enough already.  This avoids
70591         one potential size overflow calculation.  Check for size overflow
70592         when calculating temporary buffer size.  Free temporary buffer
70593         when done, if it was allocated with malloc; this plugs a memory
70594         leak.  Remove casts from void * to pointers, that are no longer
70595         needed now that we're assuming C89 or better.
70596
70597         Merge error changes from glibc.
70598
70599         * lib/error.c, error.h: Update copyright notice header to match glibc.
70600         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
70601         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
70602         Disable cancellation while printing error.
70603         * lib/error.h: Prepend __ to parameter names.
70604
70605 2003-09-26  Jim Meyering  <jim@meyering.net>
70606
70607         * lib/error.c (error_tail): Move some declarations
70608         into inner scope where the local variables are used.
70609
70610 2003-09-26  Bruno Haible  <bruno@clisp.org>
70611
70612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
70613         stpncpy().
70614         Don't define stpncpy through config.h; it's now done through stpncpy.h.
70615
70616 2003-09-26  Bruno Haible  <bruno@clisp.org>
70617
70618         * lib/stpncpy.h (gnu_stpncpy): New declaration.
70619         (stpncpy): Define as alias for gnu_stpncpy.
70620         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
70621
70622 2003-09-25  Simon Josefsson  <jas@extundo.com>
70623
70624         * lib/xgetdomainname.h: New file.
70625         * lib/xgetdomainname.c: New file.
70626
70627 2003-09-25  Simon Josefsson  <jas@extundo.com>
70628             Bruno Haible  <bruno@clisp.org>
70629
70630         * modules/getdomainname: New file.
70631         * modules/xgetdomainname: New file.
70632         * MODULES.html.sh (func_all_modules): Add getdomainname,
70633         xgetdomainname.
70634
70635 2003-09-25  Simon Josefsson  <jas@extundo.com>
70636             Bruno Haible  <bruno@clisp.org>
70637
70638         * m4/getdomainname.m4: New file.
70639
70640 2003-09-25  Simon Josefsson  <jas@extundo.com>
70641             Bruno Haible  <bruno@clisp.org>
70642
70643         * lib/getdomainname.h: New file.
70644         * lib/getdomainname.c: New file.
70645
70646 2003-09-25  Karl Berry  <karl@gnu.org>
70647
70648         * lib/argp-fmtstream.c, argp-help.c: update from libc.
70649
70650 2003-09-25  Karl Berry  <karl@gnu.org>
70651
70652         * config/install-sh: update from automake.
70653
70654 2003-09-25  Bruno Haible  <bruno@clisp.org>
70655
70656         * modules/version-etc-2: New file, from modules/version-etc with
70657         modifications.
70658         * MODULES.html.sh (func_all_modules): Add version-etc-2.
70659
70660 2003-09-25  Bruno Haible  <bruno@clisp.org>
70661
70662         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
70663         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
70664
70665 2003-09-24  Simon Josefsson  <jas@extundo.com>
70666
70667         * modules/xgethostname: Add xgethostname.h.
70668
70669 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70670
70671         * lib/linebuffer.c (freebuffer): Don't free the argument, just
70672         the buffer associated with the argument.  Bug reported by
70673         Simon Josefsson.
70674
70675 2003-09-24  Paul Eggert  <eggert@twinsun.com>
70676
70677         * README: Document assumptions that 'int' is at least 32 bits
70678         wide, that integer arithmetic is 2's complement without overflow,
70679         that there are no holes in integer values, that adding sizes of
70680         two nonoverlapping objects can't overflow, and that all-bits-zero
70681         yields scalar zero.  Fix spelling and capitalization typos.
70682
70683 2003-09-19  Karl Berry  <karl@gnu.org>
70684
70685         * lib/argp.h: update from libc.
70686
70687 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70688
70689         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
70690         to avoid spurious warnings like "AC_RUN_IFELSE was called before
70691         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
70692
70693 2003-09-17  Paul Eggert  <eggert@twinsun.com>
70694
70695         * gnulib-tool: Use "test -h", not "test -L", for portability
70696         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
70697         (tags_regexp): Remove, since \| doesn't conform to POSIX.
70698         (sed_extract_prog): Issue s commands one-by-one, rather than
70699         using \| in one s command.
70700
70701 2003-09-16  Paul Eggert  <eggert@twinsun.com>
70702
70703         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
70704         input error, instead of returning NULL the next time we are called
70705         (and therefore losing track of errno).
70706
70707 2003-09-16  Bruno Haible  <bruno@clisp.org>
70708
70709         * gnulib-tool (func_create_testdir): Warn about duplicated
70710         dependencies.
70711
70712 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70713
70714         * modules/argmatch, modules/fatal, modules/obstack,
70715         modules/xalloc, modules/xgethostname: Sort dependencies by
70716         importance, not alphabetically.
70717
70718 2003-09-15  Paul Eggert  <eggert@twinsun.com>
70719
70720         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
70721         fails, so that the caller gets the proper errno.
70722
70723         * lib/readutmp.c (read_utmp): Likewise.
70724         Check for fstat error.  Close stream and free storage
70725         when failing.
70726
70727 2003-09-14  Karl Berry  <karl@gnu.org>
70728
70729         * config/srclist.txt (strdup.c): disable for c89 changes.
70730
70731 2003-09-14  Jim Meyering  <jim@meyering.net>
70732
70733         * lib/getloadavg.c: Correct cpp indentation.
70734         * lib/strdup.c: Likewise.
70735         * lib/vasnprintf.c: Likewise.
70736
70737 2003-09-14  Bruno Haible  <bruno@clisp.org>
70738
70739         * modules/fwriteerror: New file.
70740         * MODULES.html.sh (func_all_modules): Add fwriteerror.
70741
70742 2003-09-14  Bruno Haible  <bruno@clisp.org>
70743
70744         * lib/fwriteerror.h: New file.
70745         * lib/fwriteerror.c: New file.
70746
70747 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70748
70749         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
70750         modules/xgethostname, modules/xalloc: Depend on exit.
70751
70752 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70753
70754         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
70755
70756         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
70757         and AC_MINIX, too, so that their extensions are available.
70758
70759         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
70760         This macro has been superseded by gl_BACKUPFILE.
70761
70762         More patches to assume C89 or better.
70763
70764         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
70765
70766         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
70767         unconditionally.
70768         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
70769         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
70770         Include <string.h>, <stdlib.h> unconditionally.
70771         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
70772         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
70773         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
70774         headers or for string.h.
70775         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
70776         or strtoul.
70777
70778         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
70779         headers.
70780         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
70781         * m4/userspec.m4 (gl_USERSPEC): Likewise.
70782         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
70783         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
70784         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70785         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
70786         memcpy, memset.
70787         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
70788         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
70789         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
70790         strtol.
70791         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
70792         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
70793         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
70794         strtoul.
70795
70796 2003-09-12  Paul Eggert  <eggert@twinsun.com>
70797
70798         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
70799         * lib/obstack.c [!defined _LIBC]: Likewise.
70800         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
70801         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
70802         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
70803
70804         More changes to assume C89 or better.
70805
70806         * lib/error.c (error_tail): Assume vprintf.
70807
70808         * lib/argmatch.c (getenv): Remove decl.
70809         * lib/progreloc.c (get_full_program_name): Define via prototype.
70810         * lib/setenv.c (clearenv): Likewise.
70811         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
70812         needed.
70813         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
70814         (malloc, memcpy): Remove decls.
70815         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
70816         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
70817         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70818         (memcpy): Remove macro.
70819         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
70820         (__P): Remove.  All uses removed.
70821         (PTR): Remove.  All uses changed to void *.
70822         (CHAR_BIT, NULL): Remove.
70823         (spaces, zeros, memset_space, memset_zero)
70824         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
70825         Remove.
70826         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
70827         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
70828         Define with prototype.
70829         Remove now-unnecessary prototype decl.
70830         (extra_args_spec): Assume ANSI C.  All uses changed.
70831         (extra_args_spec_iso): Remove.
70832         (my_strftime, emacs_strftimeu): Define via prototype.
70833         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
70834         unconditionally.
70835         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
70836         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
70837         (strtoul, strtol): Remove decls.
70838         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
70839         LONG_MAX): Remove.
70840         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
70841         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
70842         (LOCALE_PARAM_PROTO): New macro.
70843         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
70844         (INTERNAL (strtol), strtol): Define with a prototype.
70845         (PARAMS): Remove.  All uses removed.
70846         * lib/tempname.c: Include <string.h> unconditionally.
70847         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
70848         * lib/xgethostname.c (main): Define with a prototype.
70849         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
70850         Include <stdlib.h> unconditionally.
70851         (calloc, malloc, realloc, free): Remove decls.
70852         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
70853         Include <stdlib.h> unconditionally.  Sort include file names.
70854         (strtod): Remove.
70855         (xstrtod): Define with a prototype.
70856         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
70857         (strtol, strtoul): Remove decls.
70858
70859 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70860
70861         More patches to assume C89 or better.
70862         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
70863         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
70864         string.h, memchr, STDC_HEADERS.
70865
70866 2003-09-11  Paul Eggert  <eggert@twinsun.com>
70867
70868         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
70869         Include <stdlib.h>, <string.h> unconditionally.
70870         Remove now-unnecessary cast to char *.
70871         * lib/strnlen.c: Include <string.h> unconditionally.
70872         * lib/yesno.c (yesno): Define with a prototype.
70873
70874 2003-09-11  Bruno Haible  <bruno@clisp.org>
70875
70876         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
70877
70878 2003-09-10  Jim Meyering  <jim@meyering.net>
70879
70880         * lib/error.c: Correct indentation of cpp directives.
70881
70882 2003-09-10  Bruno Haible  <bruno@clisp.org>
70883
70884         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
70885         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
70886         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
70887         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
70888         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
70889         <stdlib.h> and <string.h> checks.
70890         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
70891         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
70892
70893 2003-09-10  Bruno Haible  <bruno@clisp.org>
70894
70895         * lib/strcspn.c: Include <string.h> unconditionally.
70896         * lib/strpbrk.c: Include <string.h> unconditionally.
70897         * lib/strstr.c: Include <string.h> unconditionally.
70898         * lib/unicodeio.c: Include <string.h> unconditionally.
70899         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
70900         * lib/unsetenv.c: Likewise.
70901         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
70902         * lib/yesno.c: Include <stdlib.h> unconditionally.
70903         (rpmatch): Add prototype.
70904
70905 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70906
70907         More patches to assume C89 or better.
70908         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
70909         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
70910         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
70911         or for string.h.
70912         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
70913         stdlib.h.
70914         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
70915         C headers.
70916         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
70917         string.h.
70918         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
70919         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
70920         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
70921         or for string.h.
70922         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
70923         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
70924         C headers.
70925         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
70926         memcpy.
70927         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
70928         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
70929         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
70930         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
70931         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
70932         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
70933         string.h, free.
70934         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
70935         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
70936         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
70937         C headers, or for string.h.
70938         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
70939         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
70940         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
70941         headers, memory.h, stdlib.h, string.h, strings.h.
70942         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
70943         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
70944         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
70945         strchr.
70946         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
70947         headers, memory.h, string.h.
70948         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
70949         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
70950         free.
70951         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
70952         headers.
70953         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
70954         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
70955         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
70956         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
70957         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
70958
70959 2003-09-09  Paul Eggert  <eggert@twinsun.com>
70960
70961         More K&R removal.
70962
70963         * lib/acosl.c (main): Use a prototype.
70964         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
70965         tanl.c: Likewise.
70966
70967         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
70968
70969         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
70970         (getopt, etopt_long, getopt_long_only, _getopt_internal)
70971         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
70972         with a prototype.
70973         * lib/getopt.c (const): Remove macro.
70974         Include <string.h> unconditionally.
70975         (my_index): Remove; all uses changed to strchr.
70976         (strlen): Remove decl.
70977         (exchange): Remove forward decl; no longer needed.
70978         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
70979         Define with prototype.
70980         * lib/getopt1.c (const): Remove macro.
70981         (getopt_long, getopt_long_only, main): Define with prototype.
70982
70983         * lib/getugroups.c: Include <string.h> unconditionally.
70984
70985         * lib/getusershell.c: Include <stdlib.h> unconditionally.
70986         (getusershell, setusershell, endusershell, readname, main):
70987         Define with prototypes.
70988
70989         * lib/group-member.c: Include group-member.h first.
70990         Include <stdlib.h> unconditionally.
70991
70992         * lib/hard-locale.c: Include hard-locale.h first.
70993         Include <stdlib.h>, <string.h> unconditionally.
70994
70995         * lib/hash.c (free, malloc): Remove decls.
70996         Include <stdlib.h> unconditionally.
70997
70998         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
70999         (getenv): Do not declare.
71000
71001         * lib/idcache.c: Include <string.h> unconditionally.
71002
71003         * lib/long-options.c: Include long-options.h first, to test interface.
71004         Include <stdlib.h> unconditionally.
71005
71006         * lib/makepath.c: Include makepath.h first, to test interface.
71007         Include <stdlib.h> and <string.h> unconditionally.
71008
71009         * lib/linebuffer.c: Include <stdlib.h>.
71010         (free): Remove decl.
71011
71012         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71013         stddef.h. rpl_malloc returns void *, not char *.
71014         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71015         prototype.
71016
71017         * lib/md5.h: Include <limits.h> unconditionally.
71018         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71019         (__P): Remove; all uses removed.
71020         * lib/md5.c: Include "md5.h" first.
71021         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71022         md5_buffer, md5_process_bytes, md5_process_block):
71023         Define with prototypes.
71024         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71025         * lib/sha.c: Include "sha.h" first.
71026         Include <stdlib.h>, <string.h> unconditionally.
71027
71028         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71029         * lib/memcmp.c (__ptr_t): Likewise.
71030         * lib/memrchr.c (__ptr_t): Likewise.
71031         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71032         Include <string.h> unconditionally.
71033         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71034         * lib/memchr.c: Include <stdlib.h> unconditionally.
71035         * lib/memchr.c (LONG_MAX): Remove.
71036         * lib/memrchr.c (LONG_MAX): Likewise.
71037         * lib/memchr.c (__memchr): Define via a prototype.
71038         * lib/memrchr.c (__memrchr): Likewise.
71039         * lib/memcmp.c (__P): Remove, and remove all uses.
71040         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71041         Remove forward decls; no longer needed.
71042         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71043         Use types required by C89 in prototype.
71044
71045         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71046         * lib/savedir.c: Likewise.
71047         * lib/mkdir.c (free): Remove decl.
71048         * lib/rmdir.c (rmdir): Define with a prototype.
71049         * lib/savedir.c: Include savedir.h first, to test interface.
71050
71051         * lib/mktime.c (STDC_HEADERS): Remove.
71052         Include <stdlib.h>, <string.h> unconditionally.
71053
71054         * lib/modechange.c: Include <stdlib.h> unconditionally.
71055         (malloc): Remove decl.
71056
71057         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71058         (free): Remove decl.
71059
71060         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71061         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71062         (This type really should be intptr_t, but that's a C99ism.)
71063         (_obstack_memcpy): Remove: all uses changed to memcpy.
71064         Include <string.h> unconditionally.
71065         (struct obstack): Assume __STDC__ for types of members
71066         chunkfun, freefun, extra_arg.
71067         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71068         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71069         obstack_begin, obstack_specify_allocation,
71070         obstack_specify_allocation_with_arg, obstack_chunkfun,
71071         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71072         Remove unprototyped decls and the macros that use them.
71073         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71074         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71075         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71076         (defined __STDC__ && __STDC__)]:
71077         Remove nonprototyped code.
71078         Include <stdlib.h> unconditionally.
71079         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71080         _obstack_allocated_p, _obstack_free, obstack_free,
71081         _obstack_memory_used, print_and_abort):
71082         Define using prototypes.
71083         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71084         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71085         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71086         obstack_next_free, obstack_object_size, obstack_room) [0]:
71087         Remove unused, unprototyped code.
71088
71089         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71090
71091         * lib/physmem.c (physmem_total, physmem_available, main): Define
71092         with prototypes.
71093
71094         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71095         (main): Define with a prototype.
71096
71097         * lib/posixver.c (getenv): Remove decl.
71098
71099         * lib/putenv.c (malloc): Returns void *, not char *.
71100         Include <string.h> unconditionally.
71101         (strchr, memcpy, NULL): Do not define.
71102
71103         * lib/readtokens.c: Include readtokens.h first, to test interface.
71104         Include <stdlib.h>, <string.h> unconditionally.
71105         (init_tokenbuffer): Define with a prototype.
71106
71107         * lib/regex.c (PARAMS): Remove.  All uses removed.
71108         All uses of _RE_ARGS removed, too.
71109         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71110         unconditionally.
71111         (bzero): Assume memset exists.
71112         (memcmp, memcpy, NULL): Remove.
71113         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71114         char, or assignments to local vars of type signed char.
71115         (init_syntax_once, PREFIX(extract_number_and_incr),
71116         PREFIX(print_partial_compiled_pattern),
71117         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71118         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71119         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71120         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71121         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71122         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71123         wcs_compile_range, byte_compile_range, truncate_wchar,
71124         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71125         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71126         count_mbs_length, wcs_re_match_2_internal,
71127         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71128         PREFIX(alt_match_null_string_p),
71129         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71130         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71131         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71132         now-unnecessary declaration, if any.
71133         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71134         regcomp, regexec):
71135         Remove now-unnecessary casts among pointer types.
71136         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71137
71138         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71139         (free): Remove decl.
71140
71141         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71142
71143         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71144         (free): Remove decl.
71145
71146         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71147         * lib/xgetcwd.c: Likewise.
71148
71149         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71150         (free): Remove decl.
71151
71152         * lib/strchrnul.c (strchrnul): Define with a prototype.
71153         Fix bug: c_in was not converted to char before searching.
71154
71155         The following changes are not K&R related:
71156
71157         * lib/group-member.h: Include <sys/types.h>, so that this file is
71158         self-contained.
71159         * lib/makepath.h: Likewise.
71160
71161         * lib/getusershell.c (readname, default_index, line_size, readname):
71162         Use size_t, not int, for sizes.
71163         (readname): If the size overflows, report an error instead of
71164         looping forever.
71165
71166 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71167
71168         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71169         libc.
71170
71171 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71172
71173         * README: New section: portability guidelines.
71174
71175 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71176
71177         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71178         C89 spec.
71179
71180 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71181
71182         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71183
71184 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71185
71186         Assume C89 or better; remove K&R cruft.
71187         A few of these changes were first proposed by Derek Robert Price
71188         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71189
71190         * lib/addext.c: Include <string.h> unconditionally.
71191         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71192         Don't declare getenv or malloc.
71193
71194         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71195         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71196         (NULL): Remove.
71197         (find_stack_direction, alloca): Use prototypes.
71198
71199         * lib/atexit.c (atexit): Define using a prototype.
71200
71201         * lib/basename.c, dirname.c, stripslash.c:
71202         Include <string.h> unconditionally.
71203
71204         * lib/bcopy.c: Include <stddef.h>.
71205         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
71206
71207         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
71208
71209         * lib/error.h (error, error_at_line, error_print_progname)
71210         [! (defined (__STDC__) && __STDC__)]: Remove decls.
71211         * lib/error.c: Include error.h first, to check interface.
71212         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71213         (VA_START): Remove; all uses changeed to va_start.
71214         (exit, strerror): Remove decls.
71215         (error_print_progname): Prototype uncondionally.
71216         Don't include <errno.h>; no longer needed.
71217         (private_strerror): Remove.
71218         (error_tail): Always define.
71219         (error, error_at_line): Assume C89 or better; always use prototypes.
71220         * lib/fatal.c: Include "fatal.h" first, to test interface.
71221         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
71222         (VA_START): Remove; all uses changed to va_start.
71223         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
71224         this case.
71225         (exit): Remove decl.
71226         (fatal): Prototype unconditionally.  Assume va_start works.
71227         Abort at end, to pacify gcc.
71228
71229         * lib/euidaccess.c (main): Define with a prototype.
71230
71231         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
71232
71233         * lib/exitfail.c: Include <stdlib.h> unconditionally.
71234
71235         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
71236         prototypes.
71237         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
71238         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
71239         (getenv): Remove decl.
71240         (fnmatch): Define using a prototype.
71241         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
71242         (FCT): Define using a prototype.
71243
71244         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
71245
71246         * lib/gethostname.c: Include <stddef.h>.
71247         (gethostname): Define with prototype.  Length is size_t, not int.
71248
71249 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71250
71251         Assume C89 or better; remove K&R cruft.
71252         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
71253         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
71254         string.h, getenv, malloc.
71255         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
71256         headers.
71257         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
71258         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
71259         do not check for strerror.
71260         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
71261         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
71262         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
71263         do not check for doprnt or vprintf.
71264         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
71265         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
71266
71267 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71268
71269         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
71270         getversion.c should have been removed then, but was accidentally
71271         preserved.
71272
71273         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
71274         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
71275
71276 2003-09-08  Karl Berry  <karl@gnu.org>
71277
71278         * config/config.sub, config.guess, srclistvars.sh: update from savannah
71279                 config, forget about prep.
71280
71281         * config/depcomp, missing: update from automake.
71282
71283 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71284
71285         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
71286         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71287
71288 2003-09-07  Paul Eggert  <eggert@twinsun.com>
71289
71290         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
71291         copy_tm_result.  Bug reported by Simon Josefsson in
71292         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
71293
71294 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71295
71296         * m4/time_r.m4: New file.
71297         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
71298         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
71299         is. Check for timegm declaration.
71300         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
71301         Do not check for gmtime_r.
71302         Replace mktime if __mktime_internal does not exist and if mktime
71303         hasn't been replaced already.
71304
71305 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71306
71307         * lib/time_r.c, lib/time_r.h: New files.
71308
71309         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
71310         __localtime_r.
71311         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
71312         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
71313
71314         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
71315         __gmtime_r.
71316         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
71317         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
71318         Include <time_r.h>.
71319
71320         * lib/timegm.c: Switch to glibc implementation, with the following
71321         changes:
71322         [defined HAVE_CONFIG_H]: Include <config.h>.
71323         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
71324         (__mktime_internal) [!defined _LIBC]: New decl.
71325         (__gmtime_r) [!defined _LIBC]: New macro and function.
71326         (timegm): Use a prototype, since gnulib assumes C89.
71327         Do not bother declaring tmp to be const, as it's not really usefu.
71328         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
71329         (timegm): Declare only if HAVE_DECL_TIMEGM.
71330
71331 2003-09-06  Paul Eggert  <eggert@twinsun.com>
71332
71333         * MODULES.html.sh (func_all_modules): Add time_r.
71334         * modules/time_r: New file.
71335         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
71336         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
71337
71338 2003-09-03  Paul Eggert  <eggert@twinsun.com>
71339
71340         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
71341         Bug reported by Lute Kamstra in
71342         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
71343
71344         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
71345         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
71346         course with correspondingly smaller numbers for tomorrow and
71347         yesterday.  From Tadayoshi Funaba.  Originally installed into
71348         sh-utils on 1999-08-07, but the patch got lost (I guess during the
71349         coreutils merge?).
71350
71351 2003-08-31  Simon Josefsson  <jas@extundo.com>
71352
71353         * modules/timegm: New file.
71354         * MODULES.html.sh (func_all_modules): Add timegm.
71355
71356 2003-08-31  Simon Josefsson  <jas@extundo.com>
71357
71358         * m4/timegm.m4: New file.
71359
71360 2003-08-31  Simon Josefsson  <jas@extundo.com>
71361
71362         * lib/timegm.h: New file.
71363         * lib/timegm.c: New file.  Based on
71364         wget-1.8.2/src/http.c:mktime_from_utc.
71365
71366 2003-08-31  Karl Berry  <karl@gnu.org>
71367
71368         * lib/argp.h: update from libc.
71369
71370 2003-08-28  Bruno Haible  <bruno@clisp.org>
71371
71372         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
71373         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
71374         followed by '#define fnmatch fnmatch_posix' gives an error.
71375
71376 2003-08-28  Bruno Haible  <bruno@clisp.org>
71377
71378         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
71379         warning on QNX, which defines O_BINARY to 000000.
71380
71381 2003-08-27  Jim Meyering  <jim@meyering.net>
71382
71383         * m4/mkstemp.m4: Require that the system mkstemp be able to create
71384         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
71385         would fail after 32.  Reported by Danny Levinson.  Details here:
71386         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
71387
71388 2003-08-24  Bruno Haible  <bruno@clisp.org>
71389
71390         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
71391         MSVC7 <stdio.h> is included later.
71392
71393 2003-08-22  Simon Josefsson  <jas@extundo.com>
71394
71395         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
71396
71397 2003-08-20  Karl Berry  <karl@gnu.org>
71398
71399         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
71400
71401 2003-08-20  Bruno Haible  <bruno@clisp.org>
71402
71403         * modules/progname: New file.
71404         * MODULES.html.sh (func_all_modules): Add progname.
71405
71406 2003-08-20  Bruno Haible  <bruno@clisp.org>
71407
71408         * lib/progname.h: New file, from GNU gettext.
71409         * lib/progname.c: New file, from GNU gettext.
71410         * lib/progreloc.c: New file, from GNU gettext.
71411
71412 2003-08-19  Jim Meyering  <jim@meyering.net>
71413
71414         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
71415         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
71416
71417 2003-08-19  Bruno Haible  <bruno@clisp.org>
71418
71419         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
71420         more.
71421
71422 2003-08-19  Bruno Haible  <bruno@clisp.org>
71423
71424         * lib/xstrdup.c: Assume <string.h> exists.
71425
71426 2003-08-18  Paul Eggert  <eggert@twinsun.com>
71427
71428         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
71429         in makefile rules.
71430
71431 2003-08-18  Jim Meyering  <jim@meyering.net>
71432
71433         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
71434         * m4/lib-ld.m4: Likewise.
71435
71436 2003-08-18  Jim Meyering  <jim@meyering.net>
71437
71438         * lib/setenv.h: Indent nested cpp directive.
71439         * lib/vasnprintf.c: Remove trailing blanks.
71440
71441 2003-08-17  Simon Josefsson  <jas@extundo.com>
71442
71443         * modules/xstrndup: New file.
71444         * MODULES.html.sh (func_all_modules): Add xstrndup.
71445
71446 2003-08-17  Simon Josefsson  <jas@extundo.com>
71447
71448         * modules/argp: Fix autoconf macro name. Add more dependencies.
71449
71450 2003-08-17  Simon Josefsson  <jas@extundo.com>
71451
71452         * m4/xstrndup.m4: New file.
71453
71454 2003-08-17  Simon Josefsson  <jas@extundo.com>
71455
71456         * m4/argp.m4: New file.
71457
71458 2003-08-17  Simon Josefsson  <jas@extundo.com>
71459             Bruno Haible  <bruno@clisp.org>
71460
71461         * lib/xstrndup.h: New file.
71462         * lib/xstrndup.c: New file.
71463
71464 2003-08-17  Bruno Haible  <bruno@clisp.org>
71465
71466         * modules/strndup (Files, Include): Add lib/strndup.h.
71467
71468 2003-08-17  Bruno Haible  <bruno@clisp.org>
71469
71470         * modules/euidaccess (Files): Add lib/euidaccess.h.
71471
71472 2003-08-17  Bruno Haible  <bruno@clisp.org>
71473
71474         * lib/strndup.h: New file.
71475
71476 2003-08-17  Bruno Haible  <bruno@clisp.org>
71477
71478         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
71479         like AC_GNU_SOURCE.
71480         * modules/extensions (configure.ac): Comment out the invocation of
71481         gl_USE_SYSTEM_EXTENSIONS.
71482
71483 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71484
71485         Merges from coreutils, etc.
71486         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
71487         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
71488         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
71489         fixing a typo.
71490         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
71491         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
71492
71493 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71494
71495         Document merge from coreutils.
71496         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
71497         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
71498         * modules/utime: Add m4/utimes-null.m4.
71499
71500 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71501
71502         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
71503         space, undoing this 2003-08-12 change:
71504         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71505
71506 2003-08-16  Paul Eggert  <eggert@twinsun.com>
71507
71508         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
71509         strtoul.c from libc, undoing this 2003-08-12 change:
71510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
71511
71512 2003-08-16  Jim Meyering  <jim@meyering.net>
71513
71514         Merges from coreutils.
71515         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
71516         prefix.  Adjust cache variables similarly.  Create 500 rather than
71517         just 300 files, to exercise bug on Darwin6.5, too.
71518         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
71519         $missing_dir.
71520         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
71521         AM_SYS_POSIX_TERMIOS.
71522         Reported by mkc@mathdogs.com.
71523         Also change use of $am_cv_sys_posix_termios
71524         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
71525         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
71526         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
71527         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
71528         in /proc/mounts until it finds one with matching device number.  This
71529         is unnecessary when the FILE argument *is* a mount point.  No stat call
71530         is necessary in that case.  So, disable the statvfs-testing code on
71531         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
71532         as RedHat bug# 84846.
71533         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71534         to 1MB, so as not to render systems with no stack size limit (e.g.,
71535         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71536         Include <unistd.h>.  On some systems,
71537         it is required for the definition of _SC_PAGESIZE.
71538
71539 2003-08-16  Jim Meyering  <jim@meyering.net>
71540
71541         Merge from coreutils.
71542         * lib/xstrtoimax.c: #else #if -> #elif.
71543         * lib/xstrtoumax.c: Likewise.
71544
71545 2003-08-16  Jim Meyering  <jim@meyering.net>
71546
71547         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
71548         * m4/utimes.m4: Removed.
71549         * m4/utimes-null.m4: Renamed from utimes.m4.
71550
71551         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
71552         to 1MB, so as not to render systems with no stack size limit (e.g.,
71553         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
71554         Include <unistd.h>.  On some systems,
71555         it is required for the definition of _SC_PAGESIZE.
71556
71557 2003-08-16  Jim Meyering  <jim@meyering.net>
71558         and Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         Merges from coreutils, etc.
71561
71562         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
71563         using the latest version from cvs.  This avoids problems with #line
71564         directives using a vendor (Sun) compiler.
71565         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
71566         Don't set GETGROUPS_LIB here; now it's
71567         done via getgroups.m4's wrapper function.
71568         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
71569         rather than just in sh-util/configure.in, so that the
71570         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
71571         same.
71572         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
71573         AC_FUNC_GETLOADAVG where to find getloadavg.c.
71574         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
71575         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
71576         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
71577         Remove code that is now done by the newly-required macros.
71578         Append $(EXEEXT) to DF_PROG.
71579         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
71580         Do not invoke or require the following here,
71581         since prereq.m4 or some gnulib .m4 now does this for us:
71582         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
71583         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
71584         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
71585         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
71586         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
71587         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
71588         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
71589         AC_FUNC_OBSTACK.
71590         Do not replace the following functions, as this is now the job
71591         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
71592         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
71593         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
71594         atexit getpass, strdup, getpagesize.
71595         Replace 'raise'.
71596         Do not check for the following functions, as this is now the job
71597         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
71598         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
71599         setregid.
71600         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
71601         Check for sys/sysctl.h.
71602         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
71603         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
71604         of checking for ssize_t ourselves.
71605
71606         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
71607         Require every macro that gnulib/modules/* suggests for us.
71608         (jm_PREREQ_ADDEXT): New macro.
71609         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
71610         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
71611
71612         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
71613         (gl_PHYSMEM): Use it.
71614         Also check for `table' function.
71615         Check for new headers and functions.
71616         Add check for sys/sysmp.h.
71617         With suggestions from Kaveh Ghazi.
71618         Ignore headers that are present but cannot be compiled.  This
71619         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
71620         C 5.4.
71621
71622 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71623
71624         Document merge from coreutils.
71625         * modules/userspec: Depend on posixver.
71626         * modules/strftime: Depend on tzset.
71627
71628 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71629
71630         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
71631         rather than tab, after '#' in shell-script copyright notices.
71632         Suggested by Bruno Haible.
71633
71634 2003-08-15  Paul Eggert  <eggert@twinsun.com>
71635
71636         * config/srclist-update: Use three spaces, rather than tab, after '#'
71637         in shell-script copyright notices.  Suggested by Bruno Haible.
71638         Remove unnecessary parenthesization in regular expression.
71639
71640 2003-08-15  Jim Meyering  <jim@meyering.net>
71641
71642         Merge from coreutils.
71643         * lib/xgethostname.c: Include <stdlib.h>.
71644         (xghostname): Don't exit for anything other than memory-related
71645         failure; just return NULL.
71646         * lib/userspec.c: Include "posixver.h".
71647         (parse_user_spec): Accept `.' as a separator only
71648         in pre-POSIX-200112 mode.
71649         * lib/strtoimax.c: Use #elif rather than #else #if.
71650         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
71651         Remove function, now that we can rely on a working tzset function.
71652         [!_LIBC]: Ensure that the required autoconf test has been run.
71653         [!defined _NL_CURRENT && HAVE_STRFTIME]:
71654         Use underlying_strftime for %r.
71655         * lib/sha.c: Merge in some clean-up and optimization changes from
71656         glibc.
71657         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
71658         Ensure that it is a multiple of 64.
71659         Rearrange loop exit tests so as to avoid performing an
71660         additional fread after encountering an error or EOF.
71661         * lib/realloc.c: Update copyright date.
71662
71663 2003-08-15  Jim Meyering  <jim@meyering.net>
71664         and Paul Eggert  <eggert@twinsun.com>
71665
71666         Merge from coreutils.
71667         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
71668         member but strut utmpx does not.  Needed for AIX 4.3.3.
71669         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
71670
71671 2003-08-15  Jim Meyering  <jim@meyering.net>
71672         and Paul Eggert  <eggert@cs.ucla.edu>
71673
71674         Merges from coreutils, etc.
71675         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
71676         Require gl_FUNC_TZSET_CLOBBER.
71677         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
71678         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
71679         members.
71680
71681 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71682
71683         Help the merge from coreutils.
71684         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
71685         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
71686         * m4/tzset.m4: Use it too.
71687
71688 2003-08-14  Paul Eggert  <eggert@twinsun.com>
71689
71690         * modules/tzset: New file.
71691
71692 2003-08-14  Jim Meyering  <jim@meyering.net>
71693
71694         Merges from coreutils.
71695         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
71696         variable names, rather than @FNMATCH_H@.
71697         * modules/alloca: Likewise for $(ALLOCA_H).
71698
71699         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
71700         the three copies of the literal target, `fnmatch.h'.
71701         * modules/alloca (alloca.h): Likewise.
71702
71703 2003-08-14  Jim Meyering  <jim@meyering.net>
71704
71705         Merge from coreutils.
71706         * m4/tzset.m4: New file.
71707         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
71708         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
71709         otherwise, AIX 5.1 systems would end up using the latter.
71710         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
71711         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
71712         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
71713         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
71714
71715 2003-08-14  Jim Meyering  <jim@meyering.net>
71716
71717         Merge from coreutils.
71718         * lib/obstack.h: Whitespace changes.
71719         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
71720         and xcalloc return values.
71721         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
71722         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
71723         hang on OSF/1 5.1 for DIR on both local and remote file systems.
71724         Reported by (and fix confirmed by) Nelson H. F. Beebe.
71725         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
71726         error from mntctl.
71727         Use mntctl's return value to drive the entry-processing loop, since
71728         we can't rely on the value of the vmt_length member in the last
71729         entry.  On some systems doing so could result in exhausting
71730         virtual memory.  Based in part on a patch from Mike Jetzer.
71731
71732 2003-08-14  Jim Meyering  <jim@meyering.net>
71733         and Paul Eggert  <eggert@twinsun.com>
71734
71735         Merges from coreutils, plus other fixes.
71736         * lib/physmem.c: Merge in portability changes from gcc/libiberty
71737         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
71738         for credits and details.  Thanks to Kaveh Ghazi for helping
71739         to keep these files in sync.
71740         (ARRAY_SIZE): Define it.
71741         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
71742         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
71743         (memcasecmp): Don't assume size_t fits in unsigned int.
71744         Remove casts and duplicate code.
71745         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
71746         (memcpy): Remove definition.
71747         Merge in some clean-up and optimization changes from glibc.
71748         [BLOCKSIZE]: Move definition to top of file.
71749         Ensure that it is a multiple of 64.
71750         Rearrange loop exit tests so as to avoid performing an
71751         additional fread after encountering an error or EOF.
71752         * lib/md5.h (md5_uintptr): Define.
71753         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
71754         return to the initial working directory.  Preserve errno
71755         for caller.
71756         * lib/idcache.c: Include "xalloc.h".
71757         (xmalloc, xrealloc): Remove decls.
71758         (getuser): Remove casts no longer required in C89.
71759         * lib/human.c: Include stdio.h, for sprintf.
71760         * lib/group-member.c: Include "xalloc.h".
71761         (xmalloc, xrealloc): Remove decls.
71762         (get_group_info): Remove casts no longer required in C89.
71763         * lib/getusershell.c (readname): Remove casts no longer required in
71764         C89.
71765         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
71766         * lib/getline.c: Whitespace fix, from coreutils.
71767
71768 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71769
71770         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
71771         Check for isascii.
71772
71773         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71774         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71775         Undo previous (whitespace-only) change.
71776
71777 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71778
71779         * lib/exclude.c: Include <ctype.h>
71780         (IN_CTYPE_DOMAIN): New macro.
71781         (is_space): New fn.
71782         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
71783         and empty lines.
71784
71785         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71786         Undo previous (whitespace-only) change.
71787
71788 2003-08-13  Paul Eggert  <eggert@twinsun.com>
71789
71790         * config/srclist-update: Change update back to the old behavior,
71791         leaving whitespace alone.  Use one 'sed' command rather than a
71792         pipeline.
71793         (fixlicense): Now a variable, not a function.
71794         (remove_trailing_blanks): Remove.
71795         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
71796         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71797         Undo previous (whitespace-only) change.
71798
71799 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71800
71801         Merge from coreutils.
71802         * modules/euidaccess: Add lib_SOURCES, include for new
71803         file euidaccess.h
71804
71805 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71806
71807         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
71808         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
71809         Normalize leading white space and remove trailing white space.
71810
71811         Merge from coreutils
71812         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
71813
71814         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
71815         0.12.1.  These files are now being upgraded automatically by
71816         ../config/srclist-update.
71817
71818 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71819
71820         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
71821         Normalize leading white space and remove trailing white space.
71822         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
71823         notice, as per ../config/srclist-update.
71824
71825         Merge from coreutils.
71826         * lib/euidaccess.h: New file.
71827         * lib/euidaccess.c: Include it.
71828         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
71829         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
71830         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
71831
71832 2003-08-12  Paul Eggert  <eggert@twinsun.com>
71833
71834         * config/srclist-update: Add copyright notice.
71835         (remove_id_lines, remove_trailing_blanks): New constants.
71836         (fixfile): Use them to normalize spacing a bit in copied files.
71837         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
71838         Normalize leading white space and remove trailing white space.
71839
71840         * config/texinfo.tex: Sync with texinfo.
71841
71842         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
71843         strtoul.c from libc, to merge coreutils whitespace changes.
71844
71845         * config/srclist.txt: Get the following m4 files from gettext:
71846         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
71847         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
71848         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
71849         wint_t.m4.
71850
71851 2003-08-12  Karl Berry  <karl@gnu.org>
71852
71853         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
71854         been made.
71855
71856 2003-08-11  Paul Eggert  <eggert@twinsun.com>
71857
71858         * modules/gnu-source, m4/gnu-source.m4:
71859         Remove; we're assuming Autoconf 2.54 or later now.
71860         Suggested by Bruno Haible.
71861         * MODULES.html.sh (func_all_modules): Remove gnu-source.
71862
71863 2003-08-11  Bruno Haible  <bruno@clisp.org>
71864
71865         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
71866
71867 2003-08-11  Bruno Haible  <bruno@clisp.org>
71868
71869         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
71870         (vasnprintf): Use it instead of wcslen.
71871
71872 2003-08-11  Bruno Haible  <bruno@clisp.org>
71873
71874         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
71875         value to ensure that _Bool promotes to int. Use #define for _Bool when
71876         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
71877
71878 2003-08-10  Karl Berry  <karl@gnu.org>
71879
71880         * lib/regex.h: update from libc (whitespace fix).
71881
71882 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71883
71884         Merge some files from coreutils.  These changes were
71885         originally made by Jim Meyering.
71886         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
71887         many older Unixes require this.
71888         * lib/alloca.c (alloca): Remove cast to argument of free;
71889         no longer needed in C89.
71890         * lib/alloca_.h, regex.h: Fix white space to match
71891         what GNU indent does.
71892
71893 2003-08-09  Paul Eggert  <eggert@twinsun.com>
71894
71895         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
71896         apparently Emacs's Unicode mode got confused before my 2003-08-05
71897         checkin.
71898
71899 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71900
71901         * m4/extensions.m4: New file.
71902         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
71903         Require gl_USE_SYSTEM_EXTENSIONS.
71904         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
71905         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
71906
71907 2003-08-08  Paul Eggert  <eggert@twinsun.com>
71908
71909         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
71910         * modules/extensions, modules/gnu-source: New files.
71911         * modules/timespec, modules/unlocked-io: Depend on extensions.
71912
71913 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71914
71915         * modules/restrict: New file.
71916         * MODULES.html.sh (func_all_modules): Add restrict.
71917         * modules/regex: Depend on restrict.
71918
71919 2003-08-07  Paul Eggert  <eggert@twinsun.com>
71920
71921         * m4/restrict.m4: New file.
71922         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
71923
71924 2003-08-07  Bruno Haible  <bruno@clisp.org>
71925
71926         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
71927         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
71928
71929 2003-08-07  Bruno Haible  <bruno@clisp.org>
71930
71931         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
71932         makes the module 'getndelim2' compatible with the module 'getline'.
71933
71934 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71935
71936         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
71937         byte with "\201" to avoid glitches when editing that source file
71938         with multi-gnome-terminal.
71939
71940 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71941
71942         * lib/bumpalloc.h: Remove.
71943
71944 2003-08-05  Paul Eggert  <eggert@twinsun.com>
71945
71946         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
71947         * modules/bumpalloc: Remove.
71948
71949 2003-08-04  Paul Eggert  <eggert@twinsun.com>
71950
71951         * lib/getloadavg.c: Change copyright notice and spacing to conform to
71952         GNU coding style.
71953
71954         Merge from coreutils.
71955         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
71956         1. From glibc.
71957         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
71958         from Karl Berry, implemented by Jim Meyering.
71959         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
71960         from Dmitry V. Levin.
71961         Remove anachronistic cast of xrealloc.
71962         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
71963         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
71964         type. Otherwise, it wouldn't compile with at least /bin/cc on
71965         ymp-cray-unicos9.0.2.X.
71966         Combine two mostly-identical uses of alloca into one.
71967         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
71968
71969 2003-08-04  Dave Love  <d.love@dl.ac.uk>
71970
71971         [From Emacs.]
71972
71973         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
71974         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
71975         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
71976         obsolete NLIST_NAME_UNION.
71977         [__GNU__]: Undef BSD and FSCALE.
71978         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
71979
71980 2003-08-03  Paul Eggert  <eggert@twinsun.com>
71981
71982         * lib/stdbool_.h (_Bool): Make it signed char, instead of
71983         an enum type, so that it's guaranteed to promote to int.  See:
71984         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
71985
71986 2003-08-03  Karl Berry  <karl@gnu.org>
71987
71988         * config/depcomp: update from automake.
71989
71990 2003-07-31  Paul Eggert  <eggert@twinsun.com>
71991
71992         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
71993         (strerror): Don't assume that a printable int fits in 14 bytes.
71994
71995 2003-07-31  Bruno Haible  <bruno@clisp.org>
71996
71997         * modules/getpass-gnu: New file.
71998         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
71999
72000 2003-07-31  Bruno Haible  <bruno@clisp.org>
72001
72002         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72003
72004 2003-07-24  Karl Berry  <karl@gnu.org>
72005
72006         * config/missing: update from automake.
72007
72008 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72009             Bruno Haible  <bruno@clisp.org>
72010
72011         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72012         * lib/getline.c (getline, getdelim): Likewise.
72013         Remove _GNU_SOURCE define; now it's defined in config.h through
72014         m4/getline.m4.
72015
72016 2003-07-23  Karl Berry  <karl@gnu.org>
72017
72018         * config/config.sub: update from prep.
72019
72020 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72021
72022         * modules/xalloc (Depends-on): Add exitfail.
72023         * modules/xmemcoll: Likewise.
72024
72025 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72026
72027         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72028         over-parenthesization in macros.
72029
72030         Sync with coreutils.
72031
72032         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72033         required by C99.
72034
72035         Use `exit_failure' for xalloc and xmemcoll instead of their own
72036         private exit-failure variables.
72037         * lib/xalloc.h (xalloc_exit_failure): Remove.
72038         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72039         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72040         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72041         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72042         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72043
72044 2003-07-20  Jim Meyering  <jim@meyering.net>
72045
72046         * modules/closeout (Depends-on): Add exitfail.
72047         Suggestion from Bruno Haible.
72048
72049 2003-07-19  Karl Berry  <karl@gnu.org>
72050
72051         * config/config.sub: update from prep.
72052
72053 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72054
72055         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72056         Remove.
72057         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72058         to test that it can stand by itself.  Include "exitfail.h".
72059         Clients should set exit_failure instead.
72060         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72061
72062 2003-07-18  Bruno Haible  <bruno@clisp.org>
72063
72064         * modules/getndelim2: New file.
72065         * modules/getline: Share files with module getndelim2.
72066         * modules/getnline: Depend on getndelim2 instead of sharing files with
72067         it. Add getnline.c to lib_SOURCES.
72068         * MODULES.html.sh (func_all_modules): Add getndelim2.
72069
72070 2003-07-18  Bruno Haible  <bruno@clisp.org>
72071
72072         * m4/getndelim2.m4: New file.
72073         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72074         invoke gl_PREREQ_GETNDELIM2.
72075         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72076         gl_PREREQ_GETNDELIM2.
72077         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72078         gl_GETNDELIM2.
72079
72080 2003-07-18  Bruno Haible  <bruno@clisp.org>
72081
72082         * lib/getndelim2.h: New file.
72083         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72084         getndelim2.h.
72085         (getndelim2): Make non-static. Change return type to ssize_t.
72086         * lib/getline.h: Change argument names.
72087         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72088         * lib/getnline.c: Include getndelim2.h.
72089
72090 2003-07-18  Andreas Schwab  <schwab@suse.de>
72091
72092         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72093
72094 2003-07-17  Karl Berry  <karl@gnu.org>
72095
72096         * config/config.sub: update from prep.
72097
72098 2003-07-17  Bruno Haible  <bruno@clisp.org>
72099
72100         * modules/getnline: New file.
72101         * modules/getline: Add lib/getndelim2.c to source file list.
72102         * MODULES.html.sh (func_all_modules): Add getnline.
72103
72104 2003-07-17  Bruno Haible  <bruno@clisp.org>
72105
72106         * m4/getnline.m4: New file.
72107
72108 2003-07-17  Bruno Haible  <bruno@clisp.org>
72109
72110         * m4/Makefile.am.in: Remove file.
72111         * m4/Makefile.am: Remove file.
72112         * m4/Makefile.in: Remove file.
72113
72114 2003-07-17  Bruno Haible  <bruno@clisp.org>
72115
72116         * lib/getnline.h: New file.
72117         * lib/getnline.c: New file.
72118         * lib/getndelim2.c: New file, extracted from getline.c.
72119         (getndelim2): Renamed from getdelim2, with added nmax argument.
72120         * lib/getline.c: Include getndelim2.c.
72121         (getdelim2): Moved out to getndelim2.c.
72122         (getline, getdelim): Update.
72123
72124 2003-07-17  Bruno Haible  <bruno@clisp.org>
72125
72126         * lib/Makefile.am: Remove file.
72127         * lib/Makefile.in: Remove file.
72128
72129 2003-07-17  Bruno Haible  <bruno@clisp.org>
72130
72131         * configure.in: Remove file.
72132         * Makefile.in: Remove file.
72133
72134 2003-07-17  Bruno Haible  <bruno@clisp.org>
72135
72136         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72137
72138 2003-07-16  Karl Berry  <karl@gnu.org>
72139
72140         * config/srclist-update: was running fixlicense twice, which caused
72141                 texinfo.tex to be nullified for some reason.  Simplify,
72142                 $gplsrc is no longer needed as far as I can see?
72143
72144 2003-07-16  Jim Meyering  <jim@meyering.net>
72145
72146         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72147
72148 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72149
72150         * config/srclist.txt: Get the following files from gettext-runtime/intl
72151         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72152         ref-del.sin.  From Bruno Haible.
72153         * config/srclist-update (fixfile): Change grep pattern again, since the
72154         previous fix didn't work (there was another trailing $).  Use
72155         '[$]' to escape the $s.
72156
72157 2003-07-15  Karl Berry  <karl@gnu.org>
72158
72159         * lib/vasnprintf.c: update from gettext.
72160
72161 2003-07-15  Karl Berry  <karl@gnu.org>
72162
72163         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72164         gets expanded when surrounded by '$'.
72165
72166 2003-07-15  Jim Meyering  <jim@meyering.net>
72167
72168         * modules/save-cwd: Don't depend on error.  From Derek Price.
72169
72170 2003-07-15  Jim Meyering  <jim@meyering.net>
72171
72172         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72173
72174 2003-07-14  Simon Josefsson  <jas@extundo.com>
72175
72176         * modules/mempcpy: New file.
72177         * MODULES.html.sh (func_all_modules): Add mempcpy.
72178
72179 2003-07-14  Simon Josefsson  <jas@extundo.com>
72180
72181         * m4/mempcpy.m4: New file.
72182
72183 2003-07-14  Simon Josefsson  <jas@extundo.com>
72184
72185         * lib/mempcpy.h: New file.
72186         * lib/mempcpy.c: New file.
72187
72188 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72189
72190         * modules/getdate, modules/posixtm: Depend on mktime.
72191
72192 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72193
72194         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72195         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72196         unicodeio.c, unicodeio.h, unlocked-io.h:
72197         Switch from LGPL to GPL.
72198
72199 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72200
72201         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72202         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72203         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72204         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72205         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
72206         updated automatically by ../config/srclist-update.  This changes
72207         their license from LPGL to GPL.
72208
72209 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72210
72211         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
72212         assumed to refer to the root of the most recent stable gettext version.
72213         * config/srclistvars.sh: Add defaults for eggert.
72214         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
72215         Match "This program" as well as "The program".  This is needed
72216         for gettext.
72217
72218 2003-07-14  Jim Meyering  <jim@meyering.net>
72219
72220         Don't emit diagnostics.  Let callers do that.
72221         * lib/save-cwd.c: Don't include "error.h".
72222         (save_cwd): Don't call error.  Ensure that errno is valid
72223         when returning nonzero.
72224
72225         * lib/save-cwd.h (restore_cwd): Update prototype.
72226         * lib/save-cwd.c (restore_cwd): Remove two parameters.
72227         Simplify.  Don't call error upon failure.  Let callers do that.
72228         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
72229         when auditing is enabled.  But don't bother updating the #if.
72230
72231 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
72232
72233         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
72234         it breaks C++ compilation.
72235         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
72236
72237 2003-07-10  Simon Josefsson  <jas@extundo.com>
72238
72239         * modules/strchrnul (Makefile.am): Add strchrnul.h.
72240
72241 2003-07-10  Jim Meyering  <jim@meyering.net>
72242
72243         * m4/clock_time.m4: Remove trailing blank.
72244         * m4/intmax_t.m4: Likewise.
72245
72246 2003-07-10  Jim Meyering  <jim@meyering.net>
72247
72248         * lib/vasnprintf.c: Remove trailing blanks.
72249         Make cpp indentation consistent.
72250
72251 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72252
72253         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
72254         posixver.c, strftime.c, strnlen.c, strverscmp.c:
72255         Switch from LGPL to GPL.
72256
72257 2003-07-09  Paul Eggert  <eggert@twinsun.com>
72258
72259         * config/srclist.txt: Sort sublists.  Add
72260         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
72261         that differ from gnulib for one reason or another; we'd like this list
72262         to be smaller but for now let's document what we have.
72263
72264 2003-07-08  Paul Eggert  <eggert@twinsun.com>
72265
72266         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
72267         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
72268         and sweeter "eval x=$x".
72269         * config/srclist.txt: Get lib/argp* from glibc.
72270
72271 2003-07-07  Paul Eggert  <eggert@twinsun.com>
72272
72273         * lib/mktime.c: Fix some boundary cases and remove need for floating
72274         point.
72275
72276         Issue a compile-time diagnostic if time_t is floating point, or if
72277         two's complement arithmetic is not in effect, or if arithmetic
72278         right shift does not propagate the sign.  These assumptions were
72279         all in the original code but they weren't checked.
72280
72281         (TIME_T_MIDPOINT, verify): New macros.
72282         (__isleap): Remove; it has integer overflow problems.
72283         (leapyear): New function, without those problems.
72284         (ydhms_tm_diff): Remove; splitting into two parts.
72285         (ydhms_diff): New function, containing the arithmetic part of
72286         the old ydhms_tm_diff function.  Issue a compile-time
72287         diagnostic if we are not using C99 integer division.
72288         Avoid casts when possible.
72289         (guess_time_tm): New function, containing the checking part of
72290         the old ydhms_tm_diff function.  Return the new value, rather than
72291         the difference between it and the old.  Accept a new argument T
72292         so that *T specifies the old value.  Check for overflow in the result.
72293
72294         (__mktime_internal): Use a time_t offset, not a long int offset.
72295         This undoes the 2003-06-04 change, which is no longer needed now
72296         that we have better overflow checking.
72297         (localtime_offset): Likewise.
72298
72299         (__mktime_internal): Avoid harmful overflow on hosts where time_t
72300         and long are 64-bit but int is only 32-bit.
72301         (ydhms_diff): Use long int to store year1 and yday1.
72302         Issue a compile-time diagnostic if long int is not wide enough.
72303
72304         (__mktime_internal): Use long int to store adjusted year and yday.
72305         Use plain C rather than preprocessor commands, if that doesn't
72306         affect efficiency.
72307         Check for overflow (and try to repair) after each probe
72308         rather than checking only at the very end.  This avoids some bugs
72309         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
72310         does not equal GMT offset at maximum time).
72311         Use integer to check for overflow rather than floating point; this
72312         is more portable to non-IEEE hosts, and is a tad faster.
72313         When we detect that we are oscillating between two values,
72314         don't check whether tm_isdst has the requested value, since
72315         we already know the answer.  When tm_isdst has the wrong value,
72316         use a different heuristic to find the right one, based on the
72317         extreme values actually observed in practice in tz2003a,
72318         rather than the (overly optimistic) "previous 3 calendar quarters".
72319
72320         (not_equal_tm, print_tm, check_result): Use "const T" rather than
72321         "T const" to accommodate glibc style.
72322         (check_result): Use less-confusing report format.  "long" -> "long int.
72323         (main): Likewise.
72324         Don't loop if the iteration overflows time_t.
72325         Allow a negative step in the iteration.
72326
72327 2003-07-06  Karl Berry  <karl@gnu.org>
72328
72329         * config/depcomp: update from automake.
72330         * config/config.sub: update from prep.
72331
72332 2003-07-03  Karl Berry  <karl@gnu.org>
72333
72334         * config/config.guess: update from prep.
72335
72336 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72337
72338         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
72339         xreadlink.c now includes it unconditionally.
72340
72341 2003-07-01  Paul Eggert  <eggert@twinsun.com>
72342
72343         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
72344         having it depend on HAVE_SYS_TYPES_H.
72345
72346 2003-07-01  Bruno Haible  <bruno@clisp.org>
72347
72348         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
72349         <sys/types.h> should be sufficient.
72350         Reported by Paul Eggert.
72351
72352 2003-06-26  Karl Berry  <karl@gnu.org>
72353
72354         * config/depcomp: update from automake.
72355
72356 2003-06-26  Bruno Haible  <bruno@clisp.org>
72357
72358         * modules/human: Depend on module stdbool.
72359
72360 2003-06-25  Bruno Haible  <bruno@clisp.org>
72361
72362         * modules/readlink: New file.
72363         * modules/xreadlink: Depend on it.
72364         * MODULES.html.sh (func_all_modules): Add readlink.
72365
72366 2003-06-25  Bruno Haible  <bruno@clisp.org>
72367
72368         * m4/readlink.m4: New file.
72369
72370 2003-06-25  Bruno Haible  <bruno@clisp.org>
72371
72372         * lib/readlink.c: New file.
72373
72374 2003-06-22  Karl Berry  <karl@gnu.org>
72375
72376         * config/srclist.txt: update mkinstalldirs from automake.
72377         * config/mkinstalldirs: update.
72378
72379 2003-06-22  Bruno Haible  <bruno@clisp.org>
72380
72381         Portability to mingw32.
72382         * m4/ssize_t.m4: New file, from GNU gettext.
72383         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
72384         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
72385
72386 2003-06-22  Bruno Haible  <bruno@clisp.org>
72387
72388         * modules/safe-read: Add m4/ssize_t.m4.
72389         * modules/xreadlink: Add m4/ssize_t.m4.
72390
72391 2003-06-20  Bruno Haible  <bruno@clisp.org>
72392
72393         Assume C89, so PARAMS isn't needed.
72394         * lib/unicodeio.h (PARAMS): Remove.
72395         * lib/unicodeio.c: Don't use PARAMS.
72396
72397 2003-06-18  Karl Berry  <karl@gnu.org>
72398
72399         * config/config.{guess,sub}: update from prep.
72400
72401 2003-06-18  Jim Meyering  <jim@meyering.net>
72402
72403         Merge changes from coreutils.
72404         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
72405         Remove explicit declarations of xmalloc and realloc.
72406         Include xalloc.h.
72407         (read_utmp): Remove anachronistic cast of xmalloc.
72408
72409 2003-06-17  Paul Eggert  <eggert@twinsun.com>
72410
72411         Assume C89, so PARAMS isn't needed.
72412         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
72413         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
72414         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
72415         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
72416         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
72417         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
72418         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
72419         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
72420         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
72421         lib/xstrtod.h, lib/xstrtol.h: Likewise.
72422         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
72423         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
72424         no longer needed. Anyway, config.h should always be included before any
72425         other file.
72426
72427 2003-06-11  Simon Josefsson  <jas@extundo.com>
72428
72429         * modules/sysexits: New file.
72430         * MODULES.html.sh (func_all_modules): Add sysexits.
72431
72432 2003-06-11  Simon Josefsson  <jas@extundo.com>
72433
72434         * lib/sysexit_.h: New file.
72435
72436 2003-06-11  Derek Price  <derek@ximbiot.com>
72437
72438         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
72439         necessary.
72440
72441 2003-06-11  Bruno Haible  <bruno@clisp.org>
72442
72443         * m4/sysexits.m4: New file.
72444
72445 2003-06-10  Simon Josefsson  <jas@extundo.com>
72446
72447         * lib/argp.h: New file, from glibc.
72448         * lib/argp-ba.c: New file, from glibc.
72449         * lib/argp-eexst.c: New file, from glibc.
72450         * lib/argp-fmtstream.c: New file, from glibc.
72451         * lib/argp-fmtstream.h: New file, from glibc.
72452         * lib/argp-fs-xinl.c: New file, from glibc.
72453         * lib/argp-help.c: New file, from glibc.
72454         * lib/argp-namefrob.h: New file, from glibc.
72455         * lib/argp-parse.c: New file, from glibc.
72456         * lib/argp-pv.c: New file, from glibc.
72457         * lib/argp-pvh.c: New file, from glibc.
72458         * lib/argp-xinl.c: New file, from glibc.
72459
72460 2003-06-10  Simon Josefsson  <jas@extundo.com>
72461
72462         * modules/strchrnul: New file.
72463
72464 2003-06-10  Simon Josefsson  <jas@extundo.com>
72465
72466         * modules/argp: New file.
72467
72468 2003-06-10  Simon Josefsson  <jas@extundo.com>
72469
72470         * m4/strchrnul.m4: New file.
72471
72472 2003-06-10  Simon Josefsson  <jas@extundo.com>
72473
72474         * lib/strchrnul.h: New file.
72475         * lib/strchrnul.c: New file.
72476
72477 2003-06-10  Bruno Haible  <bruno@clisp.org>
72478
72479         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
72480
72481 2003-06-07  Karl Berry  <karl@gnu.org>
72482
72483         * config/config.{guess,sub}: update from prep.
72484
72485 2003-06-07  Jim Meyering  <jim@meyering.net>
72486
72487         * modules/strtod: Use $(...) notation, not @...@ for
72488         AC_REPLACE'd variables.
72489         * modules/localcharset: Likewise.
72490
72491 2003-06-07  Jim Meyering  <jim@meyering.net>
72492
72493         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
72494         in place of my name in the copyright comment.
72495         Remove definition and uses of __P.
72496
72497         From coreutils.
72498         * lib/stat.c: Don't declare xmalloc explicitly.
72499         Instead, include "xalloc.h".
72500         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
72501         xrealloc, and xcalloc return values.
72502         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
72503         Improve comment.
72504         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
72505
72506 2003-06-07  Bruno Haible  <bruno@clisp.org>
72507
72508         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
72509         avoid AC_CONFIG_LINKS.
72510         * modules/fnmatch (Makefile.am): Use explicit creation rule for
72511         fnmatch.h, to avoid AC_CONFIG_LINKS.
72512         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
72513
72514 2003-06-07  Bruno Haible  <bruno@clisp.org>
72515
72516         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
72517         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
72518         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72519         directory.
72520         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
72521         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
72522         directory.
72523
72524 2003-06-06  Jim Meyering  <jim@meyering.net>
72525
72526         Merge from coreutils.
72527         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
72528         Consolidate declarations and initializations of *_base* locals.
72529
72530         Merge from coreutils.
72531         This avoids a core dump on systems without GNU putenv,
72532         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
72533         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
72534         (unsetenv): New static function, from GNU libc.
72535         (rpl_putenv): Use it.
72536
72537         * lib/modechange.c: Remove trailing blanks.
72538
72539         Merge from coreutils.
72540         * lib/fsusage.c: Remove declaration of statfs.
72541         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
72542
72543         * lib/posixtm.c: Include <stdbool.h> unconditionally.
72544
72545 2003-06-06  Jim Meyering  <jim@meyering.net>
72546
72547         * lib/stdbool_.h: Renamed from stdbool.h.in.
72548
72549 2003-06-06  Jim Meyering  <jim@meyering.net>
72550             Bruno Haible  <bruno@clisp.org>
72551
72552         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
72553         Adjust Makefile.am snippet not to redirect directly to target.
72554         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
72555
72556 2003-06-05  Paul Eggert  <eggert@twinsun.com>
72557
72558         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
72559         mismatch, look in future quarters as well as past.  This fixes a
72560         bug when processing fall-backwards gaps immediately after a long
72561         period of daylight-saving time.
72562
72563         * lib/mktime.c: Assume freestanding C89 or better.
72564         (HAVE_LIMITS_H): Remove.  Assume it's 1.
72565         (__P): Remove; not used.
72566         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
72567         (mktime, not_equal_tm, print_tm, check_result,
72568         main): Use prototypes.  Use const * where appropriate.
72569         (main): Fix typo in testing code that uncovered by above changes.
72570         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
72571
72572 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72573
72574         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
72575         locale.h, localeconv.  This merges changes from coreutils.
72576
72577         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
72578         It can be removed after the next Autoconf is released.
72579         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
72580         needed.
72581
72582 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72583
72584         * lib/mktime.c: Fix Debian bug 177940
72585         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
72586         (localtime_offset): Now long int, not time_t, because we want it
72587         to be guaranteed to be signed.  All uses changed.
72588         (__mktime_internal): If overflow would occur when adding offset,
72589         don't add it.
72590
72591         Merge 'human' changes from coreutils.  Rewrite to support
72592         locale-specific notations like thousands separators.
72593         * lib/human.c: Simplify authorship notice.
72594         Include human.h immediately after config.h.
72595         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
72596         <limits.h>: Do not include, since human.h does.
72597         (SIZE_MAX, UINTMAX_MAX): New macros.
72598         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
72599         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
72600         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
72601         (power_letter): Renamed from suffixes.
72602         (generate_suffix_backwards): Remove.
72603         (adjust_value): Now takes int style (because of human.h changes)
72604         and long double value (for greater precision on some platforms).
72605         (group_number): New function.
72606         (human_readable): Use it.  Use integer options, not enum.
72607         Put the options before the sizes in the arg list.
72608         Support all the new options.
72609         The old human_readable function has been removed;
72610         use inttostr.h instead.
72611         (human_readable, default_block_size, humblock):
72612         Use uintmax_t, not int, for block sizes.
72613         (human_readable_inexact, block_size_types): Remove.
72614         (block_size_opts): New constant.
72615         (human_options): Renamed from human_block_size, with new signature
72616         that allows block sizes up to UINTMAX_MAX.  All callers changed.
72617         * lib/human.h: Add copyright and authorship notice.
72618         Include <limits.h> and <stdbool.h> unconditionally.
72619         (PARAMS): Remove.  All uses removed.
72620         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
72621         (enum human_inexact_style): Remove tag; now a nameless enum.
72622         (human_floor, human_ceiling, human_round_to_even): Now have
72623         values 2, 0, 1 rather than -1, 1, 0.
72624         (human_group_digits, human_suppress_point_zero, human_autoscale,
72625         human_base_1024, human_SI, human_B): New constants.
72626         (human_readable_inexact, human_block_size): Remove.
72627         (human_readable): Size args are now uintmax_t, not int.
72628         (human_options): New decl.
72629
72630         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
72631         unnecessary now that we assume C89 or better.  This change
72632         imported from coreutils.
72633
72634         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72635         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
72636         in the 2003-05-30 sync from glibc.
72637
72638         .h files should stand alone, but we shouldn't include <sys/types.h>
72639         if we can get away with just <stddef.h>.
72640
72641         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
72642         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
72643         rather than <sys/types.h>, as we merely need size_t.
72644         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
72645         to get size_t.
72646         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
72647         Include <stdio.h>, to get FILE.
72648         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
72649         memcasecmp.h has included <stddef.h> and all we need is size_t.
72650         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
72651         our interface, instead of including <sys/types.h>
72652
72653 2003-06-04  Paul Eggert  <eggert@twinsun.com>
72654
72655         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
72656         now, as glibc mktime is buggy on non-glibc systems.
72657
72658 2003-06-03  Karl Berry  <karl@gnu.org>
72659
72660         * config/config.sub: update from prep.
72661
72662 2003-06-02  Paul Eggert  <eggert@twinsun.com>
72663
72664         [from coreutils]
72665         Fix some minor time-related bugs with POSIX time arguments.
72666         Some valid time stamps were being rejected (notably -1, and
72667         time stamps before 1900 on 64-bit hosts).  And some invalid
72668         time stamps were being accepted, e.g. September 31.
72669
72670         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
72671         that we can return (time_t) -1 successfully.
72672         * lib/posixtm.c: Likewise.
72673         [HAVE_STDBOOL_H]: Include <stdbool.h>.
72674         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
72675         (t): Remove static var.
72676         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
72677         of static var.  All uses changed.
72678         (year): Do not reject years before 1900; they can occur with
72679         64-bit time_t.
72680         (posix_time_parse): Do not check for out-of-range components;
72681         that is now the caller's responsibility, since our checks were
72682         only approximations.
72683         (posixtime): Use mktime to check for out-of-range components,
72684         since it knows them exactly.
72685         If mktime returns (time_t) -1, check whether an error actually occurred
72686         by invoking localtime on -1.
72687         (main) [TEST_POSIXTIME]: Check for input data errors, and report
72688         posixtime failures better.
72689         Improve the test data (in comments only).
72690
72691 2003-06-02  Karl Berry  <karl@gnu.org>
72692
72693         * config/mkinstalldirs (version): new variable.
72694         (--version): new option.
72695         (usage): improve message.
72696
72697 2003-05-30  Karl Berry  <karl@gnu.org>
72698
72699         * lib/mktime.c: update from libc.
72700
72701 2003-05-30  Bruno Haible  <bruno@clisp.org>
72702
72703         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
72704         * config/config.rpath: Upgrade to gettext-0.12.1.
72705
72706 2003-05-30  Bruno Haible  <bruno@clisp.org>
72707
72708         * m4/gettext.m4: Upgrade to gettext-0.12.1.
72709         * m4/nls.m4: New file, from gettext-0.12.1.
72710         * m4/po.m4: New file, from gettext-0.12.1.
72711         * m4/progtest.m4: Upgrade to gettext-0.12.1.
72712
72713 2003-05-30  Bruno Haible  <bruno@clisp.org>
72714
72715         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
72716         * lib/localcharset.h: Likewise.
72717         * lib/localcharset.c: Likewise.
72718
72719 2003-05-29  Karl Berry  <karl@gnu.org>
72720
72721         * config/config.rpath: update from gettext.
72722
72723 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72724
72725         Assume the headers required for C89 freestanding compilers.
72726         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
72727         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
72728         * m4/human.m4 (gl_HUMAN): Likewise.
72729         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
72730         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
72731         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72732         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
72733         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72734         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
72735
72736 2003-05-28  Paul Eggert  <eggert@twinsun.com>
72737
72738         Assume the headers required for C89 freestanding compilers.
72739         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
72740         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
72741         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
72742         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
72743         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
72744         define, since <limits.h> is guaranteed to do that.
72745         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
72746         * lib/exclude.c: Include <stdbool.h> unconditionally.
72747         * lib/tempname.c: Include <stddef.h> unconditionally.
72748         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
72749         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
72750         <stddef.h> does that.
72751         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
72752         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
72753         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
72754         needed.
72755         * lib/xstrtol.c: Likewise.
72756         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
72757         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
72758
72759         * lib/addext.c (addext): Use assignment rather than cast, to avoid
72760         warnings on some platforms.
72761
72762         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
72763         arbitrarily.
72764
72765 2003-05-26  Jim Meyering  <jim@meyering.net>
72766
72767         Merge in a change from coreutils:
72768         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
72769         that is guaranteed to be `no'.  Use `no_such_member' to indicate
72770         that condition, rather than `-1' which is slightly misleading.
72771         Change the name of the cache variable to have the gl_ prefix.
72772         Prompted by a patch from Richard Dawe for DJGPP.
72773
72774 2003-05-24  Karl Berry  <karl@gnu.org>
72775
72776         * config/config.guess: update from prep.
72777
72778 2003-05-22  Karl Berry  <karl@gnu.org>
72779
72780         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
72781
72782 2003-05-20  Karl Berry  <karl@gnu.org>
72783
72784         * config/config.guess: update from prep.
72785
72786 2003-05-18  Karl Berry  <karl@gnu.org>
72787
72788         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
72789         might actually be set by the user.
72790
72791         * config/depcomp, install-sh, mdate-sh: update from automake.
72792
72793 2003-05-17  Bruno Haible  <bruno@clisp.org>
72794
72795         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
72796         invalid expansion for AC_EGREP_CPP.
72797         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
72798         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
72799         Suggested by Akim Demaille <akim@epita.fr> in
72800         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
72801
72802 2003-05-12  Jim Meyering  <jim@meyering.net>
72803
72804         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
72805         the space-padded-by-default conversion specifiers, %e, %k, %l.
72806
72807 2003-05-12  Bruno Haible  <bruno@clisp.org>
72808
72809         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
72810         the string is longer than 4 KB.
72811
72812 2003-05-11  Karl Berry  <karl@gnu.org>
72813
72814         * config/config.{guess,sub}: update from prep.
72815
72816 2003-05-09  Bruno Haible  <bruno@clisp.org>
72817
72818         * modules/error: Add m4/strerror_r.m4 to file list.
72819
72820 2003-05-03  Bruno Haible  <bruno@clisp.org>
72821
72822         Upgrade to Unicode-4.0.
72823         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
72824         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
72825         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
72826         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
72827         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
72828         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
72829         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
72830         Change width of U+E0100..U+E01EF from 1 to 0.
72831
72832 2003-04-25  Jim Meyering  <jim@meyering.net>
72833
72834         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
72835         of type size_t, not int.
72836
72837 2003-04-25  Bruno Haible  <bruno@clisp.org>
72838
72839         * lib/copy-file.c: Include <stddef.h>, for size_t.
72840
72841 2003-04-21  Paul Eggert  <eggert@twinsun.com>
72842
72843         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
72844         code which expansion is under static control.  Patch imported from
72845         Akim Demaille's patch to Bison; see
72846         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
72847
72848 2003-04-14  Bruno Haible  <bruno@clisp.org>
72849
72850         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
72851
72852 2003-04-11  Jim Meyering  <jim@meyering.net>
72853
72854         Merge changes from Coreutils.
72855
72856         2003-03-22  Jim Meyering  <jim@meyering.net>
72857
72858         * lib/strftime.c (widen): Cast alloca return value to proper type.
72859
72860         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
72861
72862         From GNU libc.
72863         * lib/strftime.c (my_strftime): Handle very large width
72864         specifications for numeric values correctly.  Improve checks for
72865         overflow.
72866
72867         2003-01-19  Jim Meyering  <jim@meyering.net>
72868
72869         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
72870         definitions.
72871         (nl_get_alt_digit) [! defined my_strftime]: Define.
72872         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
72873         _nl_get_alt_digit and _nl_get_walt_digit.
72874
72875         * lib/strftime.c (my_strftime): Merge in locale-related changes from
72876         libc. These changes have no effect outside of _LIBC.
72877
72878 2003-04-10  Bruno Haible  <bruno@clisp.org>
72879
72880         * modules/findprog: New file.
72881         * MODULES.html.sh (func_all_modules): Add it.
72882
72883 2003-04-10  Bruno Haible  <bruno@clisp.org>
72884
72885         * m4/findprog.m4: New file.
72886         * m4/eaccess.m4: New file.
72887
72888 2003-04-10  Bruno Haible  <bruno@clisp.org>
72889
72890         * lib/findprog.h: New file, from GNU gettext.
72891         * lib/findprog.c: New file, from GNU gettext.
72892
72893 2003-04-05  Jim Meyering  <jim@meyering.net>
72894
72895         Merge changes from Coreutils.
72896
72897         * lib/exclude.h (PARAMS): Remove definition and uses.
72898         * lib/exclude.c: Remove uses of `PARAMS'.
72899
72900         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
72901         Add test-cases for DOS filenames. Declare program_name.
72902         (main): Set up program_name.  Patch by Rich Dawe.
72903
72904         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72905         error from mntctl.
72906         Use mntctl's return value to drive the entry-processing loop, since
72907         we can't rely on the value of the vmt_length member in the last
72908         entry.  On some systems doing so could result in exhausting
72909         virtual memory.  Based in part on a patch from Mike Jetzer.
72910
72911 2003-04-04  Bruno Haible  <bruno@clisp.org>
72912
72913         * modules/linebreak: New file.
72914         * MODULES.html.sh (func_all_modules): Add it.
72915
72916 2003-04-04  Bruno Haible  <bruno@clisp.org>
72917
72918         * m4/linebreak.m4: New file.
72919
72920 2003-04-04  Bruno Haible  <bruno@clisp.org>
72921
72922         * lib/linebreak.h: New file, from GNU gettext.
72923         * lib/linebreak.c: New file, from GNU gettext with slight
72924         modifications.
72925         * lib/lbrkprop.h: New file, from GNU gettext.
72926
72927 2003-04-03  Bruno Haible  <bruno@clisp.org>
72928
72929         * modules/utf8-ucs4: New file.
72930         * modules/utf16-ucs4: New file.
72931         * modules/ucs4-utf8: New file.
72932         * modules/ucs4-utf16: New file.
72933         * MODULES.html.sh (func_all_modules): Add them.
72934
72935 2003-04-03  Bruno Haible  <bruno@clisp.org>
72936
72937         * m4/utf-ucs4.m4: New file.
72938         * m4/ucs4-utf.m4: New file.
72939
72940 2003-04-03  Bruno Haible  <bruno@clisp.org>
72941
72942         * lib/utf8-ucs4.h: New file, from GNU gettext.
72943         * lib/utf16-ucs4.h: New file, from GNU gettext.
72944         * lib/ucs4-utf8.h: New file, from GNU gettext.
72945         * lib/ucs4-utf16.h: New file, from GNU gettext.
72946
72947 2003-04-02  Bruno Haible  <bruno@clisp.org>
72948
72949         * modules/binary-io: New file.
72950         * MODULES.html.sh (func_all_modules): Add it.
72951
72952 2003-04-02  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/binary-io.h: New file, from GNU gettext.
72955
72956 2003-04-01  Bruno Haible  <bruno@clisp.org>
72957
72958         * modules/pathname: New file.
72959         * MODULES.html.sh (func_all_modules): Add it.
72960
72961 2003-04-01  Bruno Haible  <bruno@clisp.org>
72962
72963         * lib/pathname.h: New file, from GNU gettext.
72964         * lib/concatpath.c: New file, from GNU gettext.
72965
72966 2003-03-30  Bruno Haible  <bruno@clisp.org>
72967
72968         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
72969
72970 2003-03-30  Bruno Haible  <bruno@clisp.org>
72971
72972         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
72973         function chown() doesn't exist.
72974
72975 2003-03-28  Bruno Haible  <bruno@clisp.org>
72976
72977         * modules/copy-file: New file.
72978         * MODULES.html.sh (func_all_modules): Add it.
72979
72980 2003-03-28  Bruno Haible  <bruno@clisp.org>
72981
72982         * m4/copy-file.m4: New file.
72983
72984 2003-03-28  Bruno Haible  <bruno@clisp.org>
72985
72986         * lib/copy-file.h: New file, from GNU gettext.
72987         * lib/copy-file.c: New file, from GNU gettext.
72988
72989 2003-03-18  Jim Meyering  <jim@meyering.net>
72990
72991         * lib/quote.c (quote_n): Fix typo in comment.
72992
72993 2003-03-18  Bruno Haible  <bruno@clisp.org>
72994
72995         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
72996         checking.
72997         * m4/onceonly_2_57.m4: Likewise.
72998
72999 2003-03-17  Bruno Haible  <bruno@clisp.org>
73000
73001         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73002         (m4_quote): Remove macro.
73003         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73004
73005 2003-03-14  Jim Meyering  <jim@meyering.net>
73006
73007         Merge changes from Coreutils.
73008         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73009         to be const, in order to avoid warnings.
73010         (obstack_room): Likewise.
73011         (obstack_empty_p): Likewise.
73012
73013 2003-03-14  Bruno Haible  <bruno@clisp.org>
73014
73015         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73016         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73017
73018 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73019
73020         Merge changes from Bison.
73021         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73022         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73023         when compiling Bison 1.875's `bitset bset = obstack_alloc
73024         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73025         * lib/hash.c: Include <stdbool.h> unconditionally.
73026
73027 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73028
73029         * m4/onceonly.m4 (m4_quote): New macro.
73030         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73031         Quote AC_FOREACH variable-expansions properly.
73032
73033 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73034
73035         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73036
73037 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73038
73039         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73040         Reported by Bruce Becker; see:
73041         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73042
73043 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73044             Bruno Haible  <bruno@clisp.org>
73045
73046         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73047         Reported by John Hughes, see
73048         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73049
73050 2003-02-20  Bruno Haible  <bruno@clisp.org>
73051
73052         * MODULES.html.sh (func_all_modules): Add poll.
73053
73054 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73055
73056         * modules/poll: New file.
73057
73058 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73059
73060         * lib/poll_.h: New file.
73061         * lib/poll.c: New file.
73062
73063 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73064
73065         * m4/poll.m4: New file.
73066
73067 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73068
73069         * modules/mathl: New file.
73070
73071 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73072
73073         * lib/mathl.h: New file.
73074         * lib/acosl.c: New file.
73075         * lib/asinl.c: New file.
73076         * lib/atanl.c: New file.
73077         * lib/ceill.c: New file.
73078         * lib/cosl.c: New file.
73079         * lib/expl.c: New file.
73080         * lib/floorl.c: New file.
73081         * lib/frexpl.c: New file.
73082         * lib/ldexpl.c: New file.
73083         * lib/logl.c: New file.
73084         * lib/sincosl.c: New file.
73085         * lib/sinl.c: New file.
73086         * lib/sqrtl.c: New file.
73087         * lib/tanl.c: New file.
73088         * lib/trigl.c: New file.
73089         * lib/trigl.h: New file.
73090
73091 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73092
73093         * m4/mathl.m4: New file.
73094
73095 2003-02-18  Bruno Haible  <bruno@clisp.org>
73096
73097         * MODULES.html.sh (func_all_modules): Add mathl.
73098
73099 2003-02-17  Bruno Haible  <bruno@clisp.org>
73100
73101         * modules/mkdtemp: New module.
73102         * MODULES.html.sh (func_all_modules): Add it.
73103
73104 2003-02-17  Bruno Haible  <bruno@clisp.org>
73105
73106         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73107
73108 2003-02-17  Bruno Haible  <bruno@clisp.org>
73109
73110         * lib/mkdtemp.h: New file, from GNU gettext.
73111         * lib/mkdtemp.c: New file, from GNU gettext.
73112
73113 2003-02-02  Jim Meyering  <jim@meyering.net>
73114
73115         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73116         e.g. glibc-2.2.93.
73117
73118 2003-01-31  Bruno Haible  <bruno@clisp.org>
73119
73120         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73121         'rpl_rename'.
73122         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73123         'rpl_strnlen'.
73124         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73125         'rpl_strtod'.
73126         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73127         'rpl_utime'.
73128
73129 2003-01-31  Bruno Haible  <bruno@clisp.org>
73130
73131         * lib/rename.c: #undef rename before defining rpl_rename.
73132         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73133
73134 2003-01-30  Bruno Haible  <bruno@clisp.org>
73135
73136         * modules/vasnprintf, modules/vasprintf: New modules.
73137         * MODULES.html.sh (func_all_modules): Add them.
73138
73139 2003-01-30  Bruno Haible  <bruno@clisp.org>
73140
73141         * m4/signed.m4: New file, from GNU gettext.
73142         * m4/longdouble.m4: New file, from GNU gettext.
73143         * m4/wchar_t.m4: New file, from GNU gettext.
73144         * m4/wint_t.m4: New file, from GNU gettext.
73145         * m4/vasnprintf.m4: New file.
73146         * m4/vasprintf.m4: New file.
73147
73148 2003-01-30  Bruno Haible  <bruno@clisp.org>
73149
73150         * lib/printf-args.h: New file, from GNU gettext.
73151         * lib/printf-args.c: New file, from GNU gettext.
73152         * lib/printf-parse.h: New file, from GNU gettext.
73153         * lib/printf-parse.c: New file, from GNU gettext.
73154         * lib/vasnprintf.h: New file, from GNU gettext.
73155         * lib/vasnprintf.c: New file, from GNU gettext.
73156         * lib/asnprintf.c: New file, from GNU gettext.
73157         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73158         * lib/vasprintf.c: New file, from GNU gettext.
73159         * lib/asprintf.c: New file, from GNU gettext.
73160
73161 2003-01-29  Bruno Haible  <bruno@clisp.org>
73162
73163         * modules/stpncpy: New module.
73164         * MODULES.html.sh (func_all_modules): Add it.
73165
73166 2003-01-29  Bruno Haible  <bruno@clisp.org>
73167
73168         * m4/stpncpy.m4: New file.
73169
73170 2003-01-29  Bruno Haible  <bruno@clisp.org>
73171
73172         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73173         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73174
73175 2003-01-28  Bruno Haible  <bruno@clisp.org>
73176
73177         * modules/c-ctype: New module.
73178         * MODULES.html.sh (func_all_modules): Add it.
73179
73180 2003-01-28  Bruno Haible  <bruno@clisp.org>
73181
73182         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73183         Paul Eggert.
73184         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73185         Paul Eggert.
73186
73187 2003-01-27  Bruno Haible  <bruno@clisp.org>
73188
73189         * modules/xsetenv: New module.
73190         * MODULES.html.sh (func_all_modules): Add it.
73191
73192 2003-01-27  Bruno Haible  <bruno@clisp.org>
73193
73194         * lib/xsetenv.h: New file, from GNU gettext.
73195         * lib/xsetenv.c: New file, from GNU gettext.
73196
73197 2003-01-23  Jim Meyering  <jim@meyering.net>
73198
73199         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73200         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73201
73202 2003-01-23  Bruno Haible  <bruno@clisp.org>
73203
73204         * modules/minmax: New module.
73205         * MODULES.html.sh (func_all_modules): Add it.
73206
73207 2003-01-23  Bruno Haible  <bruno@clisp.org>
73208
73209         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
73210         Eggert.
73211
73212 2003-01-22  Bruno Haible  <bruno@clisp.org>
73213
73214         * modules/exit: New module.
73215         * MODULES.html.sh (func_all_modules): Add it.
73216
73217 2003-01-22  Bruno Haible  <bruno@clisp.org>
73218
73219         * lib/exit.h: New file, from GNU gettext.
73220
73221 2003-01-19  Bruno Haible  <bruno@clisp.org>
73222
73223         * gnulib-tool: Recognize option --extract-maintainer.
73224         (func_get_maintainer): New function.
73225         * modules/*: Add Maintainer entry.
73226
73227 2003-01-16  Jim Meyering  <jim@meyering.net>
73228
73229         * m4/regex.m4: The `regex' struct is both input and output.
73230         Initialize it before each use.  Patch by Tim Waugh.
73231
73232 2003-01-16  Bruno Haible  <bruno@clisp.org>
73233
73234         * MODULES.html.sh: Add a table of contents. Add the module name as
73235         leftmost column. Add hyperlinks.
73236
73237 2003-01-15  Bruno Haible  <bruno@clisp.org>
73238
73239         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
73240
73241 2003-01-15  Bruno Haible  <bruno@clisp.org>
73242
73243         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
73244         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
73245         suffix.
73246
73247 2003-01-15  Bruno Haible  <bruno@clisp.org>
73248
73249         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
73250
73251 2003-01-15  Bruno Haible  <bruno@clisp.org>
73252
73253         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
73254         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
73255
73256 2003-01-14  Jim Meyering  <jim@meyering.net>
73257
73258         * lib/same.c (same_name): Tweak a comment.
73259
73260 2003-01-14  Bruno Haible  <bruno@clisp.org>
73261
73262         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
73263         when a string comparison is sufficient.
73264
73265 2003-01-14  Bruno Haible  <bruno@clisp.org>
73266
73267         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
73268         'unsigned int'.
73269
73270 2003-01-14  Bruno Haible  <bruno@clisp.org>
73271
73272         * lib/hash-pjw.c: Add comment about low quality of this function.
73273
73274 2003-01-13  Bruno Haible  <bruno@clisp.org>
73275
73276         * modules/stpcpy: Distribute lib/stpcpy.h.
73277         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
73278
73279 2003-01-13  Bruno Haible  <bruno@clisp.org>
73280
73281         * modules/*: Add a description.
73282         * modules/strpbrk: Fix Makefile.am snippet.
73283         * modules/strtoimax: Fix dependencies.
73284         * modules/strtoumax: Likewise.
73285
73286 2003-01-13  Bruno Haible  <bruno@clisp.org>
73287
73288         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
73289         * modules/alloca (Makefile.am): All object files depend on alloca.h.
73290         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
73291
73292 2003-01-13  Bruno Haible  <bruno@clisp.org>
73293
73294         * gnulib-tool (func_create_testdir): Store config/* files in the main
73295         directory.
73296         * config.rpath: Move to ...
73297         * config/config.rpath: ... here.
73298         * modules/gettext: Contains config/config.rpath, not config.rpath.
73299         * modules/iconv: Likewise.
73300
73301 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73302
73303         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73304         to avoid collisions with libcurses and libreadline.
73305
73306         * m4/getstr.m4: Remove.
73307         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
73308
73309 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73310
73311         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73312         to avoid collisions with libcurses and libreadline.
73313
73314         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
73315         * lib/getstr.h, getstr.c: Remove.
73316         * lib/getline.c: Include "getline.h", to check interface.
73317         Move body of old getstr.c here: this defines MIN_CHUNK and
73318         declares getdelim2, which is renamed from getstr.
73319         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
73320
73321         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
73322         All uses changed.
73323         * lib/linebuffer.h: Likewise.
73324         (readline): Remove backward-compatibility macro.
73325
73326 2003-01-12  Paul Eggert  <eggert@twinsun.com>
73327
73328         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
73329         to avoid collisions with libcurses and libreadline.
73330         * getstr: Remove.
73331         * MODULES.html.sh: Remove getstr.
73332         * modules/getline: Depend on unlocked-io, not getstr.
73333
73334 2003-01-12  Jim Meyering  <jim@meyering.net>
73335
73336         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
73337
73338 2003-01-10  Bruno Haible  <bruno@clisp.org>
73339
73340         * modules/alloca: Change Makefile.am requirements. Simplify Include
73341         requirements. Add lib/alloca_.h to file list.
73342
73343 2003-01-10  Bruno Haible  <bruno@clisp.org>
73344
73345         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
73346
73347 2003-01-10  Bruno Haible  <bruno@clisp.org>
73348
73349         * lib/alloca_.h: New file.
73350         * lib/getdate.y: Unconditionally include alloca.h.
73351         * lib/makepath.c: Likewise.
73352         * lib/setenv.c: Likewise.
73353         * lib/userspec.c: Likewise.
73354
73355 2003-01-09  Karl Berry  <karl@gnu.org>
73356
73357         * MODULES.html.sh: include `dirname $0` in PATH, to find
73358         gnulib-tool.
73359
73360 2003-01-09  Bruno Haible  <bruno@clisp.org>
73361
73362         * modules/stdbool: Change configure.ac, Makefile.am requirements.
73363         Simplify Include requirements. Add lib/stdbool.h.in to file list.
73364
73365 2003-01-09  Bruno Haible  <bruno@clisp.org>
73366
73367         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
73368
73369 2003-01-09  Bruno Haible  <bruno@clisp.org>
73370
73371         * lib/stdbool.h.in: New file.
73372
73373 2003-01-09  Bruno Haible  <bruno@clisp.org>
73374
73375         * gnulib-tool (func_all_modules): Ignore files ending in ~.
73376         * MODULES.html.sh: Likewise.
73377
73378 2003-01-08  Jim Meyering  <jim@meyering.net>
73379
73380         * lib/full-write.c: Undefine and define-away `const' after inclusion
73381         of errno.h, not before.  Suggestion from Bruno Haible.
73382
73383 2003-01-08  Bruno Haible  <bruno@clisp.org>
73384
73385         * modules/full-read: Depend on full-write.
73386
73387 2003-01-08  Bruno Haible  <bruno@clisp.org>
73388
73389         * lib/safe-read.c: Include specification header first, to ensure its
73390         selfcontainedness.
73391         * lib/full-write.c: Likewise.
73392
73393 2003-01-07  Jim Meyering  <jim@meyering.net>
73394
73395         * lib/full-write.c: Rework so that it may serve to define full_read,
73396         too.
73397         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
73398
73399 2003-01-07  Bruno Haible  <bruno@clisp.org>
73400
73401         * lib/strtoimax.c: Include <stdint.h> as an alternative to
73402         <inttypes.h>.
73403         * lib/xstrtol.h: Likewise.
73404         * lib/xstrtoimax.c: Likewise.
73405         * lib/xstrtoumax.c: Likewise.
73406         * lib/human.h: Likewise.
73407
73408         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
73409         on systems that have <inttypes.h> but not <stdint.h>.
73410
73411 2003-01-07  Bruno Haible  <bruno@clisp.org>
73412
73413         * MODULES.html.sh: Add copyright notice.
73414         (missed_files): Omit CVS directory entries.
73415         (func_module): Make it work with sed-3.02.
73416         * MODULES.txt: Remove file.
73417
73418 2003-01-06  Jim Meyering  <jim@meyering.net>
73419
73420         * lib/version-etc.c: Update year in translatable copyright string.
73421
73422 2003-01-03  Karl Berry  <karl@gnu.org>
73423
73424         * config/config.{guess,sub}: update from prep.
73425
73426 2003-01-02  Karl Berry  <karl@gnu.org>
73427
73428         * doc/COPYING.DOC: belatedly updated to 1.2.
73429
73430 2003-01-01  Karl Berry  <karl@gnu.org>
73431
73432         * gnulib-tool (func_verify_module): report module name $module in
73433         error message, not $1.
73434         * gnulib-tool (create-testdir): don't complain if destdir couldn't
73435         be created, only if it doesn't exist.
73436         * gnulib-tool (last_checkin_date): don't expand the $Date here.
73437
73438 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73439
73440         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
73441
73442 2002-12-31  Paul Eggert  <eggert@twinsun.com>
73443
73444         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
73445         memcmp if strcoll doesn't work.
73446
73447 2002-12-31  Bruno Haible  <bruno@clisp.org>
73448
73449         * lib/utime.c (utime_null): No need to call ftruncate if the file was
73450         nonempty.
73451
73452 2002-12-31  Bruno Haible  <bruno@clisp.org>
73453
73454         * lib/memcoll.c (STRCOLL): New macro.
73455         (memcoll): Use it.
73456
73457 2002-12-31  Bruno Haible  <bruno@clisp.org>
73458
73459         * lib/localcharset.h: New file.
73460         * lib/localcharset.c: Include it.
73461         * lib/unicodeio.c: Likewise.
73462
73463 2002-12-31  Bruno Haible  <bruno@clisp.org>
73464
73465         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
73466         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
73467
73468 2002-12-31  Bruno Haible  <bruno@clisp.org>
73469
73470         * lib/getline.h: Include <stddef.h>, for size_t.
73471
73472         * lib/unicodeio.h: Include <stddef.h>, for size_t.
73473         * lib/unicodeio.c: Don't include <stddef.h>.
73474
73475 2002-12-31  Bruno Haible  <bruno@clisp.org>
73476
73477         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
73478         HAVE_TM_ZONE.
73479
73480 2002-12-24  Karl Berry  <karl@gnu.org>
73481
73482         * config/config.guess: update from prep.
73483
73484 2002-12-24  Bruno Haible  <bruno@clisp.org>
73485
73486         General infrasructure.
73487         * m4/README: Rewritten.
73488         * m4/onceonly.m4: New file.
73489         * m4/onceonly_2_57.m4: New file.
73490
73491         Module atexit.
73492         * m4/atexit.m4: New file.
73493
73494         Module strtod.
73495         * m4/strtod.m4: New file.
73496
73497         Module strtol.
73498         * m4/strtol.m4: New file.
73499
73500         Module strtoul.
73501         * m4/strtoul.m4: New file.
73502
73503         Module memchr.
73504         * m4/memchr.m4: New file.
73505
73506         Module memcmp.
73507         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
73508         (jm_FUNC_MEMCMP): Invoke it.
73509
73510         Module memcpy.
73511         * m4/memcpy.m4: New file.
73512
73513         Module memmove.
73514         * m4/memmove.m4: New file.
73515
73516         Module memset.
73517         * m4/memset.m4: New file.
73518
73519         Module strcspn.
73520         * m4/strcspn.m4: New file.
73521
73522         Module strpbrk.
73523         * m4/strpbrk.m4: New file.
73524
73525         Module strstr.
73526         * m4/strstr.m4: New file.
73527
73528         Module strerror.
73529         * m4/strerror.m4: New file.
73530
73531         Module mktime.
73532         * m4/mktime.m4: Renamed from jm-mktime.m4.
73533         (gl_PREREQ_MKTIME): New macro.
73534         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
73535
73536         Module malloc.
73537         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
73538         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
73539         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
73540
73541         Module realloc.
73542         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
73543         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
73544         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
73545
73546         Module strftime.
73547         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
73548         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
73549         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
73550         gl_TM_GMTOFF.
73551         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
73552
73553         Module xalloc.
73554         * m4/xalloc.m4: New file.
73555
73556         Module alloca.
73557         * m4/alloca.m4: New file.
73558
73559         Module putenv.
73560         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
73561         (jm_FUNC_PUTENV): Invoke it.
73562
73563         Module setenv.
73564         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
73565         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
73566         when invoked twice.
73567         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
73568         gt_FUNC_SETENV.
73569
73570         Module memrchr.
73571         * m4/memrchr.m4: New file.
73572
73573         Module stpcpy.
73574         * m4/stpcpy.m4: New file.
73575
73576         Module strcase.
73577         * m4/strcase.m4: New file.
73578
73579         Module strdup.
73580         * m4/strdup.m4: New file.
73581
73582         Module strnlen.
73583         * m4/strnlen.m4: New file.
73584
73585         Module strndup.
73586         * m4/strndup.m4: New file.
73587
73588         Module xstrtod.
73589         * m4/xstrtod.m4: New file.
73590
73591         Module xstrtol.
73592         * m4/xstrtol.m4: New file.
73593
73594         Module getdate.
73595         * m4/getdate.m4: New file.
73596
73597         Module unlocked-io.
73598         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
73599         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
73600         * m4/jm-glibc-io.m4n: Remove file.
73601
73602         Module long-options.
73603         * m4/long-options.m4: New file.
73604
73605         Module md5.
73606         * m4/md5.m4: New file.
73607
73608         Module sha.
73609         * m4/sha.m4: New file.
73610
73611         Module getstr.
73612         * m4/getstr.m4: New file.
73613
73614         Module getline.
73615         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
73616         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
73617         <sys/types.h>, for size_t. Use the function name gnu_getline, not
73618         simply getline. Infoke gl_PREREQ_GETLINE.
73619
73620         Module obstack.
73621         * m4/obstack.m4: New file.
73622
73623         Module hash.
73624         * m4/hash.m4: New file.
73625
73626         Module readtokens.
73627         * m4/readtokens.m4: New file.
73628
73629         Module strverscmp.
73630         * m4/strverscmp.m4: New file.
73631
73632         Module stdbool.
73633         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
73634         OSF/1.
73635
73636         Module strtoll.
73637         * m4/strtoll.m4: New file.
73638
73639         Module strtoull.
73640         * m4/strtoull.m4: New file.
73641
73642         Module strtoimax.
73643         * m4/strtoimax.m4: New file.
73644
73645         Module strtoumax.
73646         * m4/strtoumax.m4: New file.
73647
73648         Module xstrtoimax.
73649         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
73650         jm_AC_PREREQ_XSTRTOIMAX.
73651         Moved the strtol prerequisites to strtol.m4.
73652         Moved the strtoll prerequisites to strtoll.m4.
73653         Moved the strtoimax prerequisites to strtoimax.m4.
73654
73655         Module xstrtoumax.
73656         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
73657         jm_AC_PREREQ_XSTRTOUMAX.
73658         Moved the strtoul prerequisites to strtoul.m4.
73659         Moved the strtoull prerequisites to strtoull.m4.
73660         Moved the strtoumax prerequisites to strtoumax.m4.
73661
73662         Module chown.
73663         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
73664         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
73665
73666         Module dup2.
73667         * m4/dup2.m4: New file.
73668
73669         Module ftruncate.
73670         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
73671         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
73672
73673         Module getgroups.
73674         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
73675         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
73676
73677         Module gettimeofday.
73678         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
73679         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
73680         gl_PREREQ_GETTIMEOFDAY.
73681
73682         Module mkdir.
73683         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
73684         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
73685
73686         Module mkstemp.
73687         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
73688         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
73689         jm_AC_TYPE_UINTMAX_T.
73690         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
73691
73692         Module stat.
73693         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
73694         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
73695
73696         Module lstat.
73697         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
73698         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
73699
73700         Module timespec.
73701         * m4/timespec.m4 (gl_TIMESPEC): New macro.
73702         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
73703         * m4/st_mtim.m4: Indentation.
73704
73705         Module nanosleep.
73706         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
73707         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
73708         gl_PREREQ_NANOSLEEP.
73709
73710         Module regex.
73711         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
73712         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
73713         (gl_REGEX): New macro.
73714
73715         Module rename.
73716         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
73717         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
73718
73719         Module rmdir.
73720         * m4/rmdir.m4: New file.
73721
73722         Module utime.
73723         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
73724         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
73725         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
73726
73727         Module dirname.
73728         * m4/dirname.m4: New file.
73729
73730         Module getopt.
73731         * m4/getopt.m4: New file.
73732
73733         Module unistd-safer.
73734         * m4/unistd-safer.m4: New file.
73735
73736         Module fnmatch.
73737         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
73738         declaration.
73739         (gl_PREREQ_FNMATCH_EXTRA): New macro.
73740         (gl_FUNC_FNMATCH_POSIX): New macro.
73741         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
73742         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
73743         simply fnmatch.
73744
73745         Module exclude.
73746         * m4/exclude.m4: New file.
73747
73748         Module human.
73749         * m4/human.m4: New file.
73750
73751         Module acl.
73752         * m4/acl.m4: Nop.
73753
73754         Module backupfile.
73755         * m4/backupfile.m4: New file.
73756         * m4/d-ino.m4: Indentation.
73757
73758         Module fsusage.
73759         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
73760         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
73761         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
73762
73763         Module dirfd.
73764         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
73765         requirements.
73766
73767         Module euidaccess.
73768         * m4/euidaccess.m4: New file.
73769
73770         Module file-type.
73771         * m4/file-type.m4: New file.
73772
73773         Module fileblocks.
73774         * m4/fileblocks.m4: New file.
73775
73776         Module filemode.
73777         * m4/filemode.m4: New file.
73778
73779         Module isdir.
73780         * m4/isdir.m4: New file.
73781
73782         Module lchown.
73783         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
73784         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
73785
73786         Module makepath.
73787         * m4/makepath.m4: New file.
73788
73789         Module modechange.
73790         * m4/modechange.m4: New file.
73791
73792         Module mountlist.
73793         * m4/mountlist.m4: New file.
73794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
73795         Indentation.
73796
73797         Module path-concat.
73798         * m4/path-concat.m4: New file.
73799
73800         Module pathmax.
73801         * m4/pathmax.m4: New file.
73802
73803         Module same.
73804         * m4/same.m4: New file.
73805
73806         Module save-cwd.
73807         * m4/save-cwd.m4: New file.
73808
73809         Module savedir.
73810         * m4/savedir.m4: New file.
73811
73812         Module xgetcwd.
73813         * m4/xgetcwd.m4: New file.
73814         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
73815
73816         Module xreadlink.
73817         * m4/xreadlink.m4: New file.
73818
73819         Module safe-read.
73820         * m4/safe-read.m4: New file.
73821
73822         Module safe-write.
73823         * m4/safe-write.m4: New file.
73824
73825         Module closeout.
73826         * m4/closeout.m4: New file.
73827
73828         Module stdio-safer.
73829         * m4/stdio-safer.m4: New file.
73830
73831         Module getpass.
73832         * m4/getpass.m4: New file.
73833
73834         Module getugroups.
73835         * m4/getugroups.m4: New file.
73836
73837         Module group-member.
73838         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
73839         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
73840
73841         Module idcache.
73842         * m4/idcache.m4: New file.
73843
73844         Module userspec.
73845         * m4/userspec.m4: New file.
73846
73847         Module gettime.
73848         * m4/clock_time.m4: New file.
73849         * m4/gettime.m4: New file.
73850
73851         Module settime.
73852         * m4/settime.m4: New file.
73853
73854         Module posixtm.
73855         * m4/posixtm.m4: New file.
73856
73857         Module gethostname.
73858         * m4/gethostname.m4: New file.
73859
73860         Module canon-host.
73861         * m4/canon-host.m4: New file.
73862
73863         Module gettext.
73864         * m4/codeset.m4: New file, from gettext-0.11.5.
73865         * m4/gettext.m4: New file, from gettext-0.11.5.
73866         * m4/glibc21.m4: New file, from gettext-0.11.5.
73867         * m4/iconv.m4: New file, from gettext-0.11.5.
73868         * m4/intdiv0.m4: New file, from gettext-0.11.5.
73869         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
73870         * m4/inttypes.m4: New file, from gettext-0.11.5.
73871         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
73872         * m4/isc-posix.m4: New file, from gettext-0.11.5.
73873         * m4/lcmessage.m4: New file, from gettext-0.11.5.
73874         * m4/lib-ld.m4: New file, from gettext-0.11.5.
73875         * m4/lib-link.m4: New file, from gettext-0.11.5.
73876         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
73877         * m4/progtest.m4: New file, from gettext-0.11.5.
73878         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
73879         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
73880         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
73881
73882         Module localcharset.
73883         * m4/localcharset.m4: New file.
73884
73885         Module hard-locale.
73886         * m4/hard-locale.m4: New file.
73887
73888         Module mbswidth.
73889         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
73890         onceonly macros.
73891         * m4/mbrtowc.m4: Add comment.
73892
73893         Module memcasecmp.
73894         * m4/memcasecmp.m4: New file.
73895
73896         Module memcoll.
73897         * m4/memcoll.m4: New file.
73898
73899         Module unicodeio.
73900         * m4/unicodeio.m4: New file.
73901
73902         Module rpmatch.
73903         * m4/rpmatch.m4: New file.
73904
73905         Module yesno.
73906         * m4/yesno.m4: New file.
73907
73908         Module exitfail.
73909         * m4/exitfail.m4: New file.
73910
73911         Module c-stack.
73912         * m4/c-stack.m4 (gl_C_STACK): New macro.
73913         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
73914
73915         Module error.
73916         * m4/error.m4 (gl_ERROR): New macro.
73917         (jm_PREREQ_ERROR): Use onceonly macros.
73918
73919         Module fatal.
73920         * m4/fatal.m4: New file.
73921
73922         Module getloadavg.
73923         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
73924         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
73925
73926         Module getpagesize.
73927         * m4/getpagesize.m4: New file.
73928
73929         Module getusershell.
73930         * m4/getusershell.m4: New file.
73931
73932         Module physmem.
73933         * m4/physmem.m4: New file.
73934
73935         Module posixver.
73936         * m4/posixver.m4: New file.
73937
73938         Module quotearg.
73939         * m4/quotearg.m4: New file.
73940
73941         Module quote.
73942         * m4/quote.m4: New file.
73943
73944         Module readutmp.
73945         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
73946
73947         Module sig2str.
73948         * m4/sig2str.m4: New file.
73949
73950         Other.
73951         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
73952         ulonglong.m4.
73953         * m4/intmax_t.m4: New file.
73954         * m4/d-type.m4: Indentation.
73955         * m4/jm-macros.m4: Update.
73956         * m4/prereq.m4 (jm_PREREQ): Update.
73957         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
73958         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
73959         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
73960         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
73961         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
73962         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
73963         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
73964         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
73965         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
73966         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
73967         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
73968         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
73969         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
73970         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
73971         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
73972         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
73973         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
73974         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
73975         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
73976
73977 2002-12-24  Bruno Haible  <bruno@clisp.org>
73978
73979         * MODULES.txt: Update according to m4/ changes.
73980
73981         Module gettext.
73982         * config.rpath: New file, from gettext-0.11.5.
73983
73984         * modules/*: New module descriptions.
73985         * gnulib-tool: New file.
73986         * MODULES.html.sh: New file.
73987
73988 2002-12-21  Karl Berry  <karl@gnu.org>
73989
73990         * doc/fdl.texi: update to version 1.2.
73991
73992 2002-12-19  Karl Berry  <karl@gnu.org>
73993
73994         * config/config.guess: update from prep.
73995
73996 2002-12-18  Bruno Haible  <bruno@clisp.org>
73997
73998         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
73999         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74000
74001 2002-12-17  Bruno Haible  <bruno@clisp.org>
74002
74003         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74004         stdlib.h, string.h.
74005
74006 2002-12-17  Bruno Haible  <bruno@clisp.org>
74007
74008         * lib/canon-host.c (strdup): Remove unused declaration.
74009
74010         * lib/fsusage.c: Include full_read.h.
74011         (get_fs_usage): Use full_read instead of safe_read.
74012
74013         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74014
74015 2002-12-12  Karl Berry  <karl@gnu.org>
74016
74017         * config/config.guess: update from prep.
74018
74019 2002-12-11  Bruno Haible  <bruno@clisp.org>
74020
74021         * m4/setenv.m4: New file, from gettext-0.11.5.
74022
74023 2002-12-11  Bruno Haible  <bruno@clisp.org>
74024
74025         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74026         not unsetenv().
74027         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74028         modifications:
74029
74030         2002-12-11  Bruno Haible  <bruno@clisp.org>
74031
74032                 * setenv.c (alloca): Fall back to malloc.
74033                 (freea): New macro.
74034                 (setenv): Use freea() to free memory allocated with alloca().
74035
74036         2002-11-13  Bruno Haible  <bruno@clisp.org>
74037
74038                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74039                 function declarations.
74040                 * unsetenv.c (unsetenv): Likewise.
74041
74042         2002-03-04  Bruno Haible  <bruno@clisp.org>
74043
74044                 Portability to AIX 4.3.3.
74045                 * unsetenv.c: New file, extracted from setenv.c.
74046                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74047
74048         2001-12-20  Bruno Haible  <bruno@clisp.org>
74049
74050                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74051                 use malloc instead. For SunOS 4.
74052
74053         2001-12-11  Bruno Haible  <bruno@clisp.org>
74054
74055                 * setenv.c: Declare alloca.
74056                 (compar_fn_t): New typedef.
74057                 (KNOWN_VALUE, STORE_VALUE): Use it.
74058
74059         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74060         setenv.h.
74061
74062 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74063
74064         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74065         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74066         Choose values that are less likely to collide with system fnmatch
74067         options.
74068         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74069         defined (e.g., a pure POSIX system).
74070         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74071         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74072
74073 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74074
74075         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74076         a pain in practice to deal with generated m4 files.  This change
74077         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74078
74079         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74080         and jm-glibc-io.m4, as they are no longer a special case.
74081         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74082         kludge and the auto-generation stuff.  Check only whether the
74083         functions are declared, not whether they exist, since older hosts
74084         that don't declare the functions can't use the optimization anyway.
74085
74086 2002-12-06  Jim Meyering  <jim@meyering.net>
74087
74088         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74089
74090         Merge in changes from libc's misc/error.c, in preparation
74091         for the merge of gnulib's changes back into libc.
74092
74093         * lib/error.c (_): Define only if not already defined.
74094         Move definition to follow all #include directives.
74095         Include unlocked-io.h only if !_LIBC.
74096         [_LIBC]: Include <libio/libioP.h>.
74097         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74098         (fflush): Tweak definition to use INTUSE.
74099         (putc): Define.
74100
74101 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74102
74103         * lib/alloca.c [defined emacs]: Include "lisp.h".
74104         (xalloc_die) [defined emacs]: New macro.
74105         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74106         [! defined emacs]: Include <xalloc.h>.
74107         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74108         (pointer): Typedef to POINTER_TYPE *.
74109         (malloc): Remove decl; we now always use xmalloc.
74110         (alloca): Use old-style definition, since Emacs needs this.
74111         Check for arithmetic overflow when computing combined size.
74112
74113 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74114
74115         Do not generate unlocked-io.h automatically, since it's easier to
74116         maintain it by hand.
74117
74118         * lib/unlocked-io.h: New file, from GNU diffutils,
74119         but with proper copyright notice and attribution.
74120         * lib/gen-uio: Remove.
74121         * lib/Makefile.am: Add copyright notice.
74122         (libfetish_a_SOURCES): Add unlocked-io.h.
74123         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74124         (DISTCLEANFILES, io_functions): Remove macros.
74125         (EXTRA_DIST): Remove gen_uio.
74126         (unlocked-io.h): Remove rule.
74127
74128 2002-12-04  Jim Meyering  <jim@meyering.net>
74129
74130         Reflect the fact that stat.c and lstat.c are no longer generated.
74131         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74132         (DISTCLEANFILES): Likewise.
74133         (EXTRA_DIST): Likewise.
74134         (all_local): Don't depend on stat.c or lstat.c.
74135         (stat.c, lstat.c): Remove rules.
74136         (EXTRA_DIST): Remove xstat.in.
74137
74138         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74139         * lib/stat.c: New file.  Contents mostly from xstat.in.
74140         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74141         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74142
74143         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74144         too.
74145         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74146
74147 2002-12-03  Jim Meyering  <jim@meyering.net>
74148
74149         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74150         but not semantics, to minimize the differences between these two files.
74151         (safe_read): Change comment to mention SAFE_READ_ERROR.
74152
74153         * lib/safe-read.c (IS_EINTR): Define.
74154         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74155
74156 2002-12-02  Jim Meyering  <jim@meyering.net>
74157
74158         * lib/safe-read.c (EINTR): Define.
74159         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74160         (INT_MAX): Provide fallback.
74161         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74162
74163         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74164
74165 2002-12-02  Bruno Haible  <bruno@clisp.org>
74166
74167         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74168         Define, taken from safe-read.c.
74169         (INT_MAX): Provide fallback.
74170         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74171         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74172
74173         * lib/safe-read.c (EINTR): Remove definition.
74174         (safe_read): Don't use EINTR if it is absent.
74175
74176 2002-12-01  Jim Meyering  <jim@meyering.net>
74177
74178         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74179         zero.
74180         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74181
74182 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74183
74184         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74185         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74186         with `if (! (value < limit)) abort ();', for readability.
74187
74188 2002-11-26  Karl Berry  <karl@gnu.org>
74189
74190         * lib/strdup.c: copy from libc again, with jim's ok.
74191         * lib/.cppi-disable: re-add strdup.c
74192
74193 2002-11-25  Karl Berry  <karl@gnu.org>
74194
74195         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74196         instead of "strtol.c".
74197
74198 2002-11-25  Karl Berry  <karl@gnu.org>
74199
74200         * config/install-sh: update from automake for variable quoting, $0 in
74201         error msgs, etc.
74202
74203         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74204         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74205         entry.
74206
74207 2002-11-25  Jim Meyering  <jim@meyering.net>
74208
74209         * lib/mktime.c: Sync from libc, now that it has the latest fix.
74210
74211 2002-11-24  Karl Berry  <karl@gnu.org>
74212
74213         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
74214         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
74215
74216 2002-11-24  Jim Meyering  <jim@meyering.net>
74217
74218         Update from coreutils:
74219
74220         * lib/mktime.c: Merge in changes from libc.
74221
74222         Avoid a link-time failure on some Linux systems.
74223         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
74224         (otherwise).
74225         (__mon_yday): Declare with the STATIC attribute.
74226         (__mktime_internal): Likewise.
74227         Based on a report from Greg Schafer.
74228
74229 2002-11-23  Jim Meyering  <jim@meyering.net>
74230
74231         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
74232         Use `unsigned', not `int', as type of index.
74233
74234         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
74235
74236         * lib/fsusage.c: Remove unneeded parentheses around operands of
74237         `defined'.
74238
74239 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74240
74241         * lib/quotearg.h: Allow multiple inclusion by surrounding with
74242         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
74243         so that we can be included first.
74244         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
74245         * lib/quotearg.c: Include quotearg.h immediately after config.h.
74246         No need to include stddef.h or sys/types.h any more.
74247         Surround local include files with "", not "<>".
74248         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
74249         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
74250         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
74251         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
74252         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
74253         (ISPRINT): Remove; no longer needed now that we assume C89.
74254
74255         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
74256         Preserve errno.
74257
74258         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
74259         quotearg_char): Use SIZE_MAX rather than
74260         (size_t) -1 when we are talking about "infinity".
74261
74262         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
74263
74264 2002-11-22  Paul Eggert  <eggert@twinsun.com>
74265
74266         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
74267         hint that one should use `if (! x) abort ();' rather than `assert
74268         (x);', and anyway it's one less thing to worry about configuring.
74269         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
74270         hash_rehash, hash_insert): Use abort rather than assert.
74271
74272 2002-11-22  Bruno Haible  <bruno@clisp.org>
74273
74274         * lib/safe-read.h: Assume C89. Add comments.
74275         (safe_read): Change return type to size_t.
74276         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
74277         byte counts > SSIZE_MAX correctly.
74278         * lib/safe-write.h: New file.
74279         * lib/safe-write.c: New file.
74280         * lib/full-read.h: New file.
74281         * lib/full-read.c: New file.
74282         * lib/full-write.h: Assume C89. Add comments.
74283         * lib/full-write.c: Include safe-write.h.
74284         (full_write): Rewritten to use safe_write.
74285         Suggested by Jim Meyering and Paul Eggert.
74286
74287 2002-11-21  Jim Meyering  <jim@meyering.net>
74288
74289         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
74290
74291         Merge in changes from the coreutils.
74292
74293         2002-09-25  Paul Eggert  <eggert@twinsun.com>
74294         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
74295         <stdint.h>.
74296         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
74297         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
74298         int.  Work more efficiently if X is the same width as uintmax_t.
74299         Do not compare X to -1, to avoid bogus compiler warning.
74300         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
74301         Don't assume that f_frsize and f_bsize are the same type.
74302
74303         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
74304         warning on FreeBSD.
74305
74306         * lib/makepath.c (make_path): Restore umask *before* creating the final
74307         component.
74308         (make_path): Minor reformatting.
74309
74310         * lib/xmalloc.c: Adjust to work with new autoconf macros,
74311         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
74312         HAVE_MALLOC/HAVE_REALLOC.
74313
74314         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
74315         dummy ones.  At least on GNU/Linux systems, `auto' means something
74316         else.
74317         From Michael Stone.
74318
74319 2002-11-21  Bruno Haible  <bruno@clisp.org>
74320
74321         Remove case insensitive option matching.
74322         * lib/argmatch.h (argcasematch): Remove declaration.
74323         (ARGCASEMATCH): Remove macro.
74324         (__xargmatch_internal): Remove case_sensitive argument.
74325         (XARGMATCH): Update.
74326         (XARGCASEMATCH): Remove macro.
74327         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
74328         case_sensitive argument.
74329         (argcasematch): Remove function.
74330         (__xargmatch_internal): Remove case_sensitive argument.
74331         (main): Use XARGMATCH instead of XARGCASEMATCH.
74332
74333         * lib/xmalloc.c: Change compile-time error message. Add comment about
74334         required autoconf version.
74335
74336 2002-11-20  Paul Eggert  <eggert@twinsun.com>
74337
74338         Merge argmatch cleanups from Bison.  Assume C89.
74339
74340         * lib/argmatch.c: Include config.h here, not in argmatch.h.
74341         Include stdlib.h, for EXIT_FAILURE.
74342         Always include <string.h>, since we assume C89.
74343         (EXIT_FAILURE): Remove pre-C89 bug workaround.
74344         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
74345         Include <stddef.h> instead, since it's all we need for size_t.
74346         (PARAMS): Remove.  All uses removed.
74347         (ARRAY_CARDINALITY): Do not bother to #undef.
74348         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
74349         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74350         Remove unnecessary parentheses.
74351         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
74352         Insert necessary parentheses.
74353         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
74354         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
74355
74356 2002-11-19  Bruno Haible  <bruno@clisp.org>
74357
74358         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
74359         * lib/mbswidth.h: Include <stddef.h>, for size_t.
74360
74361         * lib/mbswidth.h (PARAMS): Remove macro.
74362         (mbswidth, mbsnwidth): Use ANSI C function declarations.
74363         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
74364
74365         * lib/gcd.h (PARAMS): Remove macro.
74366         (gcd): Use ANSI C function declarations.
74367         * lib/gcd.c (gcd): Likewise.
74368
74369 2002-11-15  Bruno Haible  <bruno@clisp.org>
74370
74371         * lib/strcspn.c: Include <stddef.h>.
74372         (strcspn): Use ANSI C function declaration. Change return type to
74373         size_t. Use NULL.
74374         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
74375         (strpbrk): Use NULL.
74376         * lib/strpbrk.h (PARAMS): Remove macro.
74377         (strpbrk): Use ANSI C function declaration.
74378         * lib/strstr.c: Don't include <sys/types.h>.
74379         * lib/strstr.h (PARAMS): Remove macro.
74380         (strstr): Use ANSI C function declarations.
74381
74382 2002-11-14  Karl Berry  <karl@gnu.org>
74383
74384         * config/mkinstalldirs: `do' on separate line, instead of
74385         `for var; do'.
74386
74387 2002-11-06  Bruno Haible  <bruno@clisp.org>
74388
74389         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
74390         * lib/gcd.c (gcd): Likewise.
74391
74392 2002-11-05  Bruno Haible  <bruno@clisp.org>
74393
74394         * lib/gcd.h: New file, from gettext-0.11.5.
74395         * lib/gcd.c: New file, from gettext-0.11.5.
74396
74397 2002-11-05  Bruno Haible  <bruno@clisp.org>
74398
74399         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74400         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74401         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74402         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
74403
74404         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
74405         <libintl.h>.
74406         * lib/makepath.c: Include gettext.h instead of <locale.h> and
74407         <libintl.h>.
74408
74409         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
74410         * lib/human.c: Include gettext.h instead of <libintl.h>.
74411         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
74412         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
74413         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
74414         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
74415         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
74416         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
74417         (textdomain): Remove definition.
74418         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
74419
74420         * lib/long-options.c: Remove include of <libintl.h> and definition of
74421         _.
74422         * lib/same.c: Remove include of <libintl.h> and definition of _.
74423
74424 2002-11-04  Owen Taylor  <otaylor@redhat.com>
74425
74426         * lib/config.charset: A few additions for Solaris.
74427
74428 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74429
74430         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
74431         * lib/localcharset.c (locale_charset): Declare as extern "C".
74432
74433 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
74434
74435         * lib/config.charset: msdos in uk_UA uses CP1125.
74436
74437 2002-11-04  Bruno Haible  <bruno@clisp.org>
74438
74439         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
74440         * lib/strcase.h: New file, from GNU gettext-0.11.5.
74441         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
74442         * lib/strstr.h: New file, from GNU gettext-0.11.5.
74443         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
74444
74445 2002-11-04  Bruno Haible  <bruno@clisp.org>
74446
74447         * lib/localcharset.c (locale_charset): Don't return an empty string.
74448
74449 2002-11-04  Bruno Haible  <bruno@clisp.org>
74450
74451         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
74452         aliases.
74453
74454 2002-11-04  Bruno Haible  <bruno@clisp.org>
74455
74456         * lib/config.charset: Update for newest glibc. Add canonical names
74457         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
74458
74459 2002-11-04  Bruno Haible  <bruno@clisp.org>
74460
74461         * lib/config.charset: Add support for NetBSD.
74462
74463 2002-11-04  Bruno Haible  <bruno@clisp.org>
74464
74465         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
74466
74467 2002-11-01  Bruno Haible  <bruno@clisp.org>
74468
74469         * configure.in: Add AC_CONFIG_AUX_DIR call.
74470         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
74471         test/Makefile.
74472         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
74473
74474 2002-09-28  Karl Berry  <karl@gnu.org>
74475
74476         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
74477         installed automake until the next release, since changes have been
74478         made.
74479
74480 2002-09-25  Karl Berry  <karl@gnu.org>
74481
74482         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
74483         * lib/getopt*: copy from libc/posix.
74484         * lib/gettext.h: copy from gettext.
74485         * lib/.cppi-disable: add strdup.c, gettext.h.
74486
74487 2002-09-25  Karl Berry  <karl@gnu.org>
74488
74489         * config/srclist.txt: enable gettext.h check.
74490         * config/config.{guess,sub}: update from prep.
74491         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
74492                 from automake 1.6.3.
74493         See srclist*.
74494
74495 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
74496
74497         * regex.c (PATFETCH): Remove the translating fetch.
74498         (PATFETCH_RAW): Rename to PATFETCH.
74499         (set_image_of_range): New fun.
74500         (SET_RANGE_TABLE_WORK_AREA): Use it.
74501         (regex_compile): Don't translate the pattern chars so eagerly.
74502         Only do it when inserting an `exactn' bytecode or when handling
74503         a char-range.
74504         (mutually_exclusive_p): Avoid empty statement.
74505
74506 2002-07-06  Jim Meyering  <meyering@lucent.com>
74507
74508         * m4/README: Don't mention Makefile.am.in.
74509         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
74510
74511 2002-07-01  Jim Meyering  <meyering@lucent.com>
74512
74513         * lib/c-stack.c: Include sys/time.h.
74514         From Volker Borchert.
74515
74516 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74517
74518         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
74519
74520 2002-06-26  Paul Eggert  <eggert@twinsun.com>
74521
74522         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
74523         New macro.  Use it uniformly instead of
74524         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
74525         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
74526         reported by Vin Shelton.
74527
74528 2002-06-22  Paul Eggert  <eggert@twinsun.com>
74529
74530         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
74531         Do not assume SA_SIGINFO behavior.
74532         Bug reported by Jim Meyering on NetBSD 1.5.2.
74533
74534 2002-06-22  Jim Meyering  <meyering@lucent.com>
74535
74536         * m4/c-stack.m4: New file, from diffutils-2.8.2.
74537         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
74538
74539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
74540         now that configure.ac uses AC_GNU_SOURCE.
74541         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
74542         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
74543
74544         Update to latest tools.  Suggestions from Paul Eggert.
74545         * m4/stdbool.m4: New file, from diffutils-2.8.2.
74546         * m4/gnu-source.m4: Update from diffutils-2.8.2.
74547         * m4/fnmatch.m4: Likewise.
74548         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
74549         to AC_HEADER_STDBOOL
74550
74551 2002-06-22  Jim Meyering  <meyering@lucent.com>
74552
74553         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
74554         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
74555
74556 2002-06-22  Jim Meyering  <meyering@lucent.com>
74557
74558         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
74559
74560         * lib/exitfail.c, exitfail.h: Likewise.
74561         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
74562
74563         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
74564         of fnmatch.h.
74565         (EXTRA_DIST): Add fnmatch_loop.c.
74566         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
74567
74568         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
74569         * lib/fnmatch.c: Update from diffutils-2.8.2.
74570         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
74571         * lib/fnmatch.h: Remove file.
74572
74573 2002-06-21  Jim Meyering  <meyering@lucent.com>
74574
74575         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
74576         * m4/mbrtowc.m4: Likewise.
74577
74578         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
74579         * m4/mbswidth.m4: Reflect name change:
74580         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
74581         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
74582
74583         * m4/lib-link.m4: Update from gettext-0.11.2.
74584         * m4/gettext.m4: Likewise.
74585
74586         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
74587         From Alfred M. Szmidt.
74588
74589 2002-06-18  Paul Eggert  <eggert@twinsun.com>
74590
74591         * lib/file-type.h: Report an error if neither S_ISREG nor
74592         S_IFREG is defined, instead of using a test specific to glibc
74593         2.2.  This should be safe, since POSIX requires S_ISREG and
74594         Unix Version 7 had S_IFREG.  We don't need to check for
74595         <sys/types.h> since we don't use any symbols that it defines.
74596
74597 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
74598
74599         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
74600         $@-t, so that each temporary file name is unique and valid in the first
74601         8 characters, for operation under DOS.
74602
74603 2002-06-15  Paul Eggert  <eggert@twinsun.com>
74604
74605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
74606
74607 2002-06-15  Jim Meyering  <meyering@lucent.com>
74608
74609         Work even with DJGPP 2.03, which lacks support for symlinks.
74610         From Richard Dawe.
74611         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
74612         is defined.
74613         * lib/lchown.c (S_ISLNK): Likewise.
74614
74615 2002-06-15  Jim Meyering  <meyering@lucent.com>
74616
74617         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
74618         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
74619         have been included before this file.
74620
74621 2002-06-14  Jim Meyering  <meyering@lucent.com>
74622
74623         * lib/file-type.h: Use the version from diffutils-2.8.2.
74624         * lib/file-type.c: Likewise.
74625
74626 2002-06-07  Jim Meyering  <meyering@lucent.com>
74627
74628         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
74629         They're needed at least for NetBSD 1.5.2.
74630         ($statxfs_includes): Include those same headers.
74631         ($statxfs_includes): Include sys/vfs.h if available.
74632         ($statxfs_includes): Likewise for sys/statvfs.h.
74633         Check for the following members in both structs statfs and statvfs:
74634         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
74635
74636 2002-06-01  Jim Meyering  <meyering@lucent.com>
74637
74638         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
74639         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
74640
74641 2002-05-28  Jim Meyering  <meyering@lucent.com>
74642
74643         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
74644         Reported by Volker Borchert.
74645
74646 2002-05-27  Jim Meyering  <meyering@lucent.com>
74647
74648         Fix a problem seen only on nonconforming systems whereby ls.c's
74649         use of localtime, and then of gettimeofday would cause trouble:
74650         the localtime call used to initialize rpl_gettimeofday's save
74651         mechanism would clobber ls's current local time information so
74652         that in any long listing the first file would always be listed
74653         with date 1970-01-01.  Analysis by Volker Borchert.
74654
74655         * lib/gettimeofday.c (localtime): Undefine.
74656         (rpl_localtime): New function.
74657
74658 2002-05-27  Jim Meyering  <meyering@lucent.com>
74659
74660         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
74661         localtime.
74662
74663         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
74664         use the replacement function; it wouldn't resolve at link time.
74665         Reported by Volker Borchert.
74666
74667 2002-05-22  Jim Meyering  <meyering@lucent.com>
74668
74669         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
74670         file-type.h.
74671         * lib/file-type.h: New file.
74672         * lib/file-type.c (file_type): New file/function.  Extracted from
74673         diffutils.
74674
74675 2002-04-30  Jim Meyering  <meyering@lucent.com>
74676
74677         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
74678
74679 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74680
74681         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
74682
74683 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74684
74685         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
74686         Do not check for alloca.h (no longer used) or stdbool.h (was never
74687         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
74688
74689 2002-04-29  Paul Eggert  <eggert@twinsun.com>
74690
74691         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
74692
74693 2002-04-29  Jim Meyering  <meyering@lucent.com>
74694
74695         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
74696         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
74697         Use AC_FUNC_STRNLEN here instead.
74698
74699         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
74700         With autoconf-2.53a, it's part of AC_PROG_CC.
74701
74702 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74703
74704         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
74705         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
74706
74707 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74708
74709         * lib/sig2str.h, lib/sig2str.c: New files.
74710         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
74711
74712 2002-04-28  Paul Eggert  <eggert@twinsun.com>
74713
74714         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
74715         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
74716         of 127, since 64 is the largest conceivable number for ancient
74717         nonstandard hosts.
74718         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
74719
74720 2002-04-28  Jim Meyering  <meyering@lucent.com>
74721
74722         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
74723
74724 2002-04-24  Jim Meyering  <meyering@lucent.com>
74725
74726         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
74727         (jm_PREREQ): Use it.
74728
74729         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
74730         mach/mach.h fcntl.h.
74731         Check for this function: setlocale.
74732
74733 2002-04-24  Jim Meyering  <meyering@lucent.com>
74734
74735         * lib/gettext.h: New file, from Gettext.
74736         * lib/Makefile.am (INCLUDES): Remove -I../intl.
74737         (libfetish_a_SOURCES): Add gettext.h.
74738
74739 2002-04-16  Jim Meyering  <meyering@lucent.com>
74740
74741         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
74742         ut_pid, ut_id, ut_exit.
74743
74744 2002-04-16  Jim Meyering  <meyering@lucent.com>
74745
74746         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
74747         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
74748         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
74749
74750 2002-04-12  Jim Meyering  <meyering@lucent.com>
74751
74752         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
74753         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
74754         existence of the getmntinfo function.  Needed for Darwin 5.3.
74755
74756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
74757         This is necessary at least on Darwin 5.3.
74758
74759         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
74760         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
74761         strnlen.o in the library, and that makes some versions of ranlib
74762         object.
74763
74764 2002-04-12  Jim Meyering  <meyering@lucent.com>
74765
74766         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
74767
74768 2002-04-09  Jim Meyering  <meyering@lucent.com>
74769
74770         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
74771         to be more precise.  Rather than saying we're checking whether the
74772         function `works', say what we're testing.
74773         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
74774         Reported by Bruno Haible.
74775
74776 2002-03-10  Jim Meyering  <meyering@lucent.com>
74777
74778         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
74779         Suggestion from Santiago Vila.
74780
74781 2002-03-08  Jim Meyering  <meyering@lucent.com>
74782
74783         * lib/rename.c: Mention that this wrapper is needed also on
74784         mips-dec-ultrix4.4 systems.
74785
74786 2002-03-02  Jim Meyering  <meyering@lucent.com>
74787
74788         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
74789         not HAVE_CLOCK_SETTIME.
74790
74791 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74792
74793         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
74794         Check for clock_settime.
74795
74796 2002-02-27  Paul Eggert  <eggert@twinsun.com>
74797
74798         * lib/nanosleep.h: Rename to....
74799         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
74800
74801         * lib/gettime.c: New file.
74802         * lib/settime.c: New file.
74803         * lib/stime.c: Remove.
74804
74805         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
74806         timespec.h.  Remove nanosleep.h.
74807
74808 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74809
74810         * m4/acl.m4: New file.
74811         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
74812         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
74813
74814 2002-02-25  Paul Eggert  <eggert@twinsun.com>
74815
74816         * lib/acl.c, lib/acl.h: New files.
74817         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
74818
74819 2002-02-24  Jim Meyering  <meyering@lucent.com>
74820
74821         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
74822         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
74823         cause trouble.  Reported by Nelson Beebe.
74824
74825 2002-02-23  Paul Eggert  <eggert@twinsun.com>
74826
74827         * lib/path-concat.c (xpath_concat): Reorder code to pacify
74828         compilers that don't know that xalloc_die never returns.
74829
74830 2002-02-20  Jim Meyering  <meyering@lucent.com>
74831
74832         * lib/getdate.c: Regenerate using bison-1.33.
74833
74834 2002-02-17  Jim Meyering  <meyering@lucent.com>
74835
74836         * config/config.guess (main): Don't use `head -1'; it's no longer
74837         portable. Use `sed 1q' instead.
74838
74839 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
74840
74841         * m4/codeset.m4: Upgrade to gettext-0.11.
74842         * m4/gettext.m4: Upgrade to gettext-0.11.
74843         * m4/glibc21.m4: Upgrade to gettext-0.11.
74844         * m4/iconv.m4: Upgrade to gettext-0.11.
74845         * m4/isc-posix.m4: Upgrade to gettext-0.11.
74846         * m4/lcmessage.m4: Upgrade to gettext-0.11.
74847         * m4/lib-ld.m4: New file, from gettext-0.11.
74848         * m4/lib-link.m4: New file, from gettext-0.11.
74849         * m4/lib-prefix.m4: New file, from gettext-0.11.
74850         * m4/progtest.m4: Upgrade to gettext-0.11.
74851
74852 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74853
74854         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
74855         (jm_PREREQ): Use it.
74856
74857 2002-02-15  Paul Eggert  <eggert@twinsun.com>
74858
74859         * lib/posixver.c, lib/posixver.h: New files.
74860         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74861
74862 2002-02-02  Paul Eggert  <eggert@twinsun.com>
74863             Bruno Haible  <bruno@clisp.org>
74864
74865         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
74866         (fwrite_success_callback): New declaration.
74867         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
74868         print_unicode_char. Call failure callback instead of error.
74869         (fwrite_success_callback): New function.
74870         (exit_failure_callback): New function.
74871         (fallback_failure_callback): New function.
74872         (print_unicode_char): Call unicode_to_mb.
74873
74874 2002-01-26  Jim Meyering  <meyering@lucent.com>
74875
74876         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
74877         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
74878
74879 2002-01-26  Jim Meyering  <meyering@lucent.com>
74880
74881         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
74882
74883 2002-01-22  Paul Eggert  <eggert@twinsun.com>
74884
74885         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
74886
74887 2002-01-22  Jim Meyering  <meyering@lucent.com>
74888
74889         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
74890         Otherwise, some versions of automake would omit the rule that makes
74891         Makefile from Makefile.in.
74892
74893 2002-01-21  Paul Eggert  <eggert@twinsun.com>
74894
74895         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
74896         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
74897         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
74898         (memcoll): Set errno to zero if there is no error.
74899
74900         * lib/quotearg.c (quotearg_buffer_restyled):
74901         Fix bug with quoting buffers containing NUL when backslashing escapes.
74902         This bug was exposed by the other changes in this patch.
74903         (quotearg_n_options): New arg ARGSIZE.
74904         All callers changed.
74905         (quoting_options_from_style): New function.
74906         (quotearg_n_style): Use it.
74907         (quotearg_n_style_mem): New function.
74908
74909         * lib/quotearg.h (quotearg_n_style_mem): New function.
74910
74911 2002-01-19  Jim Meyering  <meyering@lucent.com>
74912
74913         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
74914         Remove useless quotes: DF_PROG="df".
74915         * m4/strnlen.m4: New file.
74916
74917 2002-01-16  Paul Eggert  <eggert@twinsun.com>
74918
74919         * lib/backupfile.c (ISDIGIT): Comment fix.
74920         * lib/getdate.y (ISDIGIT): Likewise.
74921         * lib/posixtm.c (ISDIGIT, year): Likewise.
74922         * lib/strverscmp.c (ISDIGIT): Likewise.
74923         * lib/userspec.c (ISDIGIT): Likewise.
74924
74925 2002-01-16  Jim Meyering  <meyering@lucent.com>
74926
74927         * lib/getdate.y: Add three semicolons, each just before a closing
74928         brace. Bison (as of version 1.31) no longer papers over that mistake.
74929
74930 2002-01-05  Jim Meyering  <meyering@lucent.com>
74931
74932         * lib/version-etc.c (version_etc_copyright): Update copyright year.
74933
74934 2001-12-19  Paul Eggert  <eggert@twinsun.com>
74935
74936         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
74937         not silently exit merely because the output buffer happens to
74938         have nothing pending.
74939
74940 2001-12-18  Paul Eggert  <eggert@twinsun.com>
74941
74942         See the big note in ../ChangeLog.
74943         * lib/human.c (suffixes): Prefer K to k for 1024.
74944         (generate_suffix_backwards): New function.
74945         (human_readable_inexact): Use it.
74946         * lib/xstrtol.c (__xstrtol): If there is no number but there
74947         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
74948         Accept 'K' as well as 'k'.
74949
74950 2001-12-15  Jim Meyering  <meyering@lucent.com>
74951
74952         * lib/regex.h (__restrict_arr): Update from libc.
74953
74954         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
74955         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
74956         (STREQ): Define.
74957
74958 2001-12-14  Jim Meyering  <meyering@lucent.com>
74959
74960         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
74961         Suggestion from Bruno Haible.
74962
74963 2001-12-10  Jim Meyering  <meyering@lucent.com>
74964
74965         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
74966         xrealloc, Instead, include "xalloc.h".
74967         (initbuffer): Don't cast xmalloc return value to char*.
74968         (readline): Reword comment.
74969         Don't cast xrealloc return value to char*
74970         Return NULL, not 0.
74971
74972 2001-12-09  Jim Meyering  <meyering@lucent.com>
74973
74974         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
74975         about `signed and unsigned type in conditional expression'.
74976         * lib/posixtm.c (posix_time_parse): Likewise.
74977
74978         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
74979
74980         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
74981         to avoid a pedantic warning.
74982
74983         * lib/getstr.c: Don't include assert.h.
74984         (getstr): Remove warning-evoking assertions.
74985         Return -1 if offset parameter is out of bounds.
74986         Change the type of a local from int to size_t.
74987
74988         * lib/strftime.c (my_strftime_localtime_r): Include this function
74989         definition in the `#if ! HAVE_TM_GMTOFF' block.
74990
74991         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
74992         Include xalloc.h instead.
74993
74994 2001-12-02  Jim Meyering  <meyering@lucent.com>
74995
74996         * lib/tempname.c: Don't declare getenv, thus reverting the change of
74997         2001-11-18.  It's no longer necessary, now that stdlib.h is always
74998         included.
74999
75000         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75001         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75002
75003 2001-11-30  Akim Demaille  <akim@epita.fr>
75004
75005         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75006         before being defined.
75007
75008 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75009
75010         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75011         First arg is int, not unsigned.
75012         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75013         (SIZE_MAX, UINT_MAX): New macros.
75014         (quotearg_n_options): Abort if N is negative.
75015         Avoid overflow check on hosts where size_t is 64 bits and int
75016         is 32 bits, as overflow is impossible there.
75017         Fix off-by-one typo that caused unnecessary reallocation.
75018
75019 2001-11-27  Jim Meyering  <meyering@lucent.com>
75020
75021         * lib/tempname.c: Merge with version from libc.
75022         * lib/regex.c: Likewise.
75023
75024         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75025         systems for which STDC_HEADERS is 0, it was not included, resulting in
75026         a warning about an integer-to-pointer conversion problem with getenv.
75027         Reported by Volker Borchert.
75028
75029 2001-11-26  Jim Meyering  <meyering@lucent.com>
75030
75031         * lib/gtod.h: Remove file.
75032         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75033         * lib/gettimeofday.c: Don't include gtod.h.
75034         (GTOD_init): Remove function.
75035         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75036         Suggestion from Volker Borchert.
75037
75038 2001-11-23  Jim Meyering  <meyering@lucent.com>
75039
75040         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75041         it.
75042         * lib/hash.c (struct hash_table): Define it here instead.
75043
75044 2001-11-22  Jim Meyering  <meyering@lucent.com>
75045
75046         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75047
75048 2001-11-20  Jim Meyering  <meyering@lucent.com>
75049
75050         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75051         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75052
75053 2001-11-19  Jim Meyering  <meyering@lucent.com>
75054
75055         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75056         directory.  Use "conftestXXXXXX" as the template.
75057         Suggestion from Paul Eggert.
75058
75059         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75060         immediately, so the test doesn't mistakenly hit the max-open-files
75061         limit.
75062
75063 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75064
75065         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75066         (TEMPORARIES): New macro.
75067         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75068         removes an artificial limitation (e.g. HP-UX 10.20, where
75069         TMP_MAX is 17576).
75070
75071 2001-11-18  Jim Meyering  <meyering@lucent.com>
75072
75073         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75074
75075 2001-11-18  Jim Meyering  <meyering@lucent.com>
75076
75077         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75078         on SunOS 4.
75079
75080         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75081         files will be created before anything else.
75082
75083 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75084
75085         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75086         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75087
75088 2001-11-17  Jim Meyering  <meyering@lucent.com>
75089
75090         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75091         Prompted by a report from Bob Proulx.
75092
75093         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75094         Instead, require UTILS_FUNC_MKSTEMP.
75095
75096 2001-11-17  Jim Meyering  <meyering@lucent.com>
75097
75098         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75099         Now, that's done as part of AC_FUNC_STRTOD.
75100
75101 2001-11-17  Jim Meyering  <meyering@lucent.com>
75102
75103         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75104         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75105         rather than group writable.  Patch by Juan F. Codagnone.
75106
75107         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75108         xrealloc, Instead, include "xalloc.h".
75109
75110         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75111         Remove explicit declarations of xmalloc, xrealloc,
75112         and xstrdup.  Instead, include "xalloc.h".
75113
75114         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75115         unlocked-io.h.
75116         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75117         Likewise.
75118         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75119
75120         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75121         Reported by Padraig Brady.
75122
75123         * lib/mkstemp.c: #undef mkstemp.
75124         Include config.h.
75125         (rpl_mkstemp): Rename from mkstemp.
75126         Protoize.
75127
75128 2001-11-16  Jim Meyering  <meyering@lucent.com>
75129
75130         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75131         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75132         determine the amount of total physical memory, use pstat_getstatic.
75133         HPUX-11 doesn't define _SC_PHYS_PAGES.
75134         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75135         If sysconf couldn't be used to determine the amount of available
75136         physical memory, use both pstat_getstatic and pstat_getdynamic.
75137         Based on a patch from Bob Proulx.
75138
75139 2001-11-10  Jim Meyering  <meyering@lucent.com>
75140
75141         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75142         (jm_PREREQ): Use it.
75143
75144 2001-11-09  Jim Meyering  <meyering@lucent.com>
75145
75146         * m4/jm-macros.m4: Require autoconf-2.52f.
75147         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75148         Use these AC_-prefixed names, not the AM_-prefixed ones.
75149
75150         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75151
75152 2001-11-05  Jim Meyering  <meyering@lucent.com>
75153
75154         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75155
75156 2001-11-04  Jim Meyering  <meyering@lucent.com>
75157
75158         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75159         $DEFS.
75160
75161 2001-11-03  Jim Meyering  <meyering@lucent.com>
75162
75163         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75164         of AC_DEFUN.
75165
75166         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75167         know the name of the variable in the macro definition.
75168
75169 2001-11-03  Jim Meyering  <meyering@lucent.com>
75170
75171         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75172         in argmatch_to_argument call.
75173
75174         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75175         argument.
75176
75177         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75178         e.g., a fault due to an attempt to free a NULL pointer.
75179
75180 2001-11-01  Jim Meyering  <meyering@lucent.com>
75181
75182         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75183         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75184
75185 2001-11-01  Jim Meyering  <meyering@lucent.com>
75186
75187         * lib/dirfd.c, lib/dirfd.h: New files.
75188         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75189
75190         * lib/hash.c (hash_print) [TESTING]: Clean up.
75191
75192 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75193
75194         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75195         to avoid a warning if -Wall.
75196
75197 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75198
75199         * README: New file
75200         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75201         (per RMS's instructions, this is now the canonical source)
75202         * lgpl/, gpl/: New directories.
75203
75204 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75205
75206         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
75207
75208 2001-10-21  Jim Meyering  <meyering@lucent.com>
75209
75210         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
75211         this code would end up calling gettext even in packages built
75212         with --disable-nls.
75213         * lib/getopt.c (_): Likewise.
75214         * lib/regex.c (_): Likewise.
75215
75216 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75217
75218         * m4/error.m4 (jm_PREREQ_ERROR):
75219         Do not invoke AC_CHECK_FUNCS with strerror_r, as
75220         AC_FUNC_STRERROR_R does that.
75221         Check for strerror declaration.
75222
75223         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
75224         are supposed to have them these days.
75225         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
75226         Merge changes from latest Autoconf CVS.
75227         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
75228         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
75229         POSIX decided to standardize on the int flavor of strerror_r.
75230
75231 2001-10-20  Paul Eggert  <eggert@twinsun.com>
75232
75233         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
75234         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
75235         Use strerror_r that is only a macro, even if it is not a function.
75236         (strerror): Check for HAVE_DECL_STRERROR before declaring.
75237         (private_strerror): Use prototypes, not old-style function definition.
75238         (print_errno_message): New function.
75239         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
75240         char*-flavored one.
75241         (error_tail, error, error_at_line): Use it.
75242
75243 2001-10-11  Jim Meyering  <meyering@lucent.com>
75244
75245         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
75246         and quote_n (1, ... to avoid clobbering a buffer.
75247
75248 2001-10-05  Jim Meyering  <meyering@lucent.com>
75249
75250         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
75251         hash-pjw.h.
75252         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
75253         * lib/hash-pjw.h: New file.
75254
75255 2001-09-30  Jim Meyering  <meyering@lucent.com>
75256
75257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
75258         `struct fsstat' has the `f_fstypename' member.
75259         Use that to define FS_TYPE, which is now used to make
75260         the getfsstat link test tighter.
75261
75262 2001-09-30  Jim Meyering  <meyering@lucent.com>
75263
75264         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
75265         Include <sys/ucred.h>, for Apple Darwin.
75266         Include sys/mount.h and sys/fs_types.h only if available.
75267         (FS_TYPE): Define.
75268         (read_filesystem_list): Use FS_TYPE.
75269
75270 2001-09-29  Paul Eggert  <eggert@twinsun.com>
75271
75272         * lib/exclude.c (excluded_filename): 0 -> false, since it's
75273         a boolean context.
75274
75275 2001-09-29  Jim Meyering  <meyering@lucent.com>
75276
75277         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75278         [one-argument getmntent function]): Include stdio.h before mntent.h.
75279         SunOS 4.1.x needs it for the declaration of `FILE'.
75280         Patch by Volker Borchert.
75281
75282         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
75283         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
75284         sys/fs_types.h, and make the link-test for getfsstat guard #include
75285         directives with appropriate #if HAVE_*_H tests so that we can
75286         detect getfsstat on Apple Darwin1.3.7 systems.
75287         Reported by Nelson Beebe.
75288         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
75289
75290 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75291
75292         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75293         #defines strtoimax.  Also treat the other strto* functions
75294         like strtoimax.
75295
75296         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75297         Check for strtoul and strtoumax,
75298         as those declarations are made even in the signed case.
75299         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
75300         Likewise, for strtol and strtoimax.
75301
75302 2001-09-28  Paul Eggert  <eggert@twinsun.com>
75303
75304         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
75305         #defines strtoimax.  Also treat the other strto* functions
75306         like strtoimax.
75307
75308         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
75309         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
75310         (strtoimax, strtoumax): Do not declare if already defined as a macro.
75311
75312 2001-09-26  Jim Meyering  <meyering@lucent.com>
75313
75314         Most macros in unlocked-io.h had the wrong number of arguments.
75315         * lib/gen-uio: New script.
75316         (USE_UNLOCKED_IO): Define to 1 if not already defined.
75317         * lib/unlocked-io.hin: Remove file.
75318         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
75319         rather than trying to embed it here.
75320         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
75321         Reported by Padraig Brady.
75322
75323 2001-09-25  Volker Borchert  <bt@teknon.de>
75324
75325         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
75326         `result'.
75327
75328 2001-09-24  Jim Meyering  <meyering@lucent.com>
75329
75330         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
75331
75332 2001-09-23  Jim Meyering  <meyering@lucent.com>
75333
75334         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
75335         instead of the mere test for existence of mntent.h.  The latter
75336         would get a false-positive on AIX 3.4 systems.
75337         In the outer getmntent if-block, don't die if neither of the getmntent
75338         tests succeeds.  Instead, just fall through and continue with the
75339         remaining tests.
75340
75341 2001-09-23  Jim Meyering  <meyering@lucent.com>
75342
75343         * lib/mountlist.c: Remove useless parentheses in #if directives.
75344         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
75345         the deprecated MOUNTED symbol is no longer defined in mntent.h.
75346
75347 2001-09-22  Jim Meyering  <meyering@lucent.com>
75348
75349         * m4/gettext.m4: New file.  From gettext.
75350         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
75351         * m4/progtest.m4: Likewise
75352         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
75353         * m4/glibc21.m4: Likewise.
75354
75355         * m4/libintl.m4: Remove.  No longer used.
75356
75357 2001-09-22  Jim Meyering  <meyering@lucent.com>
75358
75359         * lib/localcharset.c: Update from latest gettext.
75360         * lib/config.charset: Likewise.
75361
75362 2001-09-20  Jim Meyering  <meyering@lucent.com>
75363
75364         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
75365         strtoimax.
75366         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
75367         strtoumax.
75368
75369 2001-09-20  Jim Meyering  <meyering@lucent.com>
75370
75371         * lib/xstrtol.c (strtoimax): Guard declaration with
75372         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
75373         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
75374         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
75375         (strtoumax): Likewise, for completeness (it wasn't necessary).
75376
75377 2001-09-17  Paul Eggert  <eggert@twinsun.com>
75378
75379         * lib/strtoimax.c (HAVE_LONG_LONG):
75380         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
75381         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
75382         to work around bug in IBM C compiler.
75383
75384 2001-09-17  Jim Meyering  <meyering@lucent.com>
75385
75386         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
75387         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
75388         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
75389         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
75390         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
75391         whenever the right hand side need not be expanded by the shell.
75392
75393 2001-09-16  Paul Eggert  <eggert@twinsun.com>
75394
75395         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
75396         library.  It's not correct, as some older glibcs are buggy.
75397         fnmatch wasn't fixed until glibc 2.2.
75398
75399         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
75400         special shell magic here.
75401
75402 2001-09-16  Jim Meyering  <meyering@lucent.com>
75403
75404         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
75405         * m4/jm-macros.m4: Require it.
75406
75407 2001-09-16  Jim Meyering  <meyering@lucent.com>
75408
75409         * lib/mkdir.c: New file.
75410
75411 2001-09-15  Jim Meyering  <meyering@lucent.com>
75412
75413         * m4/jm-macros.m4: Check for help2man.
75414
75415 2001-09-11  Jim Meyering  <meyering@lucent.com>
75416
75417         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
75418         The body, by Paul Eggert, was moved here from configure.in.
75419         * m4/jm-macros.m4: Require UTILS_HOST_OS.
75420
75421 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75422
75423         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
75424         (jm_PREREQ): Use it.
75425
75426 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75427
75428         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
75429         Use ssize_t, not int, to store result of readlink.
75430         Check for ssize_t overflow as well as size_t overflow,
75431         as POSIX says the result of readlink is implementation-defined
75432         when ssize_t overflows.
75433         Remove unnecessary cast to char*.
75434         Use free+malloc instead of realloc, as the storage doesn't need
75435         to be preserved and it's clearer and can be more efficient that way.
75436         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
75437         * lib/xreadlink.h (xreadlink): Update prototype.
75438
75439 2001-09-04  Paul Eggert  <eggert@twinsun.com>
75440
75441         * lib/xgetcwd.c: Revert some of the previous change; intead,
75442         fix the HAVE_GETCWD_NULL code to behave more like the
75443         !HAVE_GETCWD_NULL code used to.
75444
75445         Include "xalloc.h".
75446         (xgetcwd): Do not return NULL when memory is exhausted; instead,
75447         invoke xalloc_die.
75448
75449 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75450
75451         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
75452         sys/param.h, as pathmax.h includes them.
75453
75454 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75455
75456         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
75457         (jm_PREREQ_XGETCWD): New macro.
75458
75459         * m4/getcwd.m4: New file.
75460
75461 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75462
75463         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
75464         like the HAVE_GETCWD_NULL code.
75465         Include pathmax.h if not HAVE_GETCWD.
75466         Do not include xalloc.h.
75467         (INITIAL_BUFFER_SIZE): New symbol.
75468         Do not use xmalloc / xrealloc, since the caller is responsible for
75469         handling errors.  Preserve errno around `free' during failure.
75470         Do not overrun buffer when using getwd.
75471
75472 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75473
75474         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
75475         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
75476         getcwd (NULL, 0).
75477
75478 2001-09-03  Paul Eggert  <eggert@twinsun.com>
75479
75480         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
75481         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
75482         spotted by Jim Meyering.
75483
75484 2001-09-03  Jim Meyering  <meyering@lucent.com>
75485
75486         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
75487         failure.
75488
75489 2001-09-02  Jim Meyering  <meyering@lucent.com>
75490
75491         * lib/error.c: Update from GNU libc.
75492
75493 2001-09-01  Jim Meyering  <meyering@lucent.com>
75494
75495         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
75496         Used by df.
75497
75498 2001-09-01  Jim Meyering  <meyering@lucent.com>
75499
75500         * lib/xreadlink.c: New file.
75501         * lib/xreadlink.h: New file.
75502         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
75503         xreadlink.h.
75504
75505         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
75506         doesn't conflict with sparc Solaris 7's definition in
75507         /usr/include/sys/int_types.h.
75508
75509         * lib/exclude.c: Use `""', not `<>' to #include non-system header
75510         files.
75511         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
75512         and strncasecmp as r-values.  Unixware didn't have declarations.
75513
75514 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75515
75516         * lib/xstrtol.h: Add copyright notice.
75517         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
75518         LONGINT_INVALID_SUFFIX_CHAR.
75519
75520 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75521
75522         * lib/xstrtol.c (strtoimax): New decl.
75523
75524 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75525
75526         * lib/xgetcwd.c: Don't include pathmax.h.
75527         Include stdlib.h and unistd.h if available.
75528         Include xalloc.h.
75529         (xmalloc, xstrdup, free): Remove decls.
75530         (xgetcwd): Don't assume sizes fit in unsigned.
75531         Check for overflow when computing sizes.
75532         Simplify reallocation code.
75533
75534 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75535
75536         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
75537         a directory's st_size can have an arbitrary value, so the old
75538         usage could waste an arbitrary amount of memory.  All uses
75539         changed.
75540         * lib/savedir.h: Update prototype.
75541
75542 2001-08-31  Paul Eggert  <eggert@twinsun.com>
75543
75544         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
75545
75546         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
75547         old strtoimax.c.
75548
75549         Also, make the following further changes to make this file's
75550         configuration more similar to that of strtol.c:
75551         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
75552         (strtoumax, uintmax_t, strtoull, strtol): Remove.
75553         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
75554         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
75555         changed to signed values.
75556
75557         And make the following changes as well:
75558         Fix copyright notice, as 1999 was missing.
75559         (verify): New macro.
75560         (strtoimax): Check sizes at compile-time, not run-time.
75561         Prefer strtol to strtoll if both work.
75562         (main): Remove; it was not that useful and was a pain to maintain.
75563
75564         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
75565
75566 2001-08-31  Jim Meyering  <meyering@lucent.com>
75567
75568         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
75569         Use an initial, malloc'd, buffer of length 128 rather than
75570         a statically allocated one of length 1024.
75571
75572 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75573
75574         Simplify code, partly by assuming autoconf 2.52 semantics.
75575
75576         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
75577
75578         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
75579         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
75580         All uses removed.
75581         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
75582         Move AC_REQUIRE to next-to-top level, to avoid confusion.
75583         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
75584         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
75585         jm_AC_HEADER_INTTYPES_H.
75586         * m4/jm-macros.m4 (jm_MACROS): Likewise.
75587
75588         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
75589
75590         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
75591         Quote first arg of AC_DEFUN.
75592         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
75593         since they are needed to parse the include file even if we need
75594         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
75595         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
75596         but with opposite signedness.
75597
75598 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75599
75600         Merge 'exclude' changes from tar 1.13.22.
75601         This fixes one or two unlikely storage allocation overflow bugs,
75602         but doesn't change user-visible behavior otherwise.
75603
75604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75605
75606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
75607         (jm_PREREQ_EXCLUDE): New macro.
75608
75609 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75610
75611         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
75612         tm to be declared.
75613
75614 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75615
75616         * lib/hash.c: Remove '2001' from copyright notice.
75617
75618 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75619
75620         * lib/full-write.h: New file.
75621         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
75622         * lib/full-write.c: Correct credits, as cccp.c no longer
75623         exists and anyway it was so heavily changed from the old cccp
75624         code as to be unrecognizable.  Include full-write.h.
75625         (full_write) Return size_t, with short writes meaning failure.
75626         All callers changed.  This fixes a bug with large buffers
75627         on 64-bit hosts.
75628         * lib/utime.c: Include full-write.h.
75629
75630 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75631
75632         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
75633         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
75634         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
75635         Include if available.
75636         (<xalloc.h>): Include
75637         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
75638         (verify): New macro.  Use it to verify that EXCLUDE macros do not
75639         collide with FNM macros.
75640         (struct patopts): New struct.
75641         (struct exclude): Use it, as exclude patterns now come with options.
75642         (new_exclude): Support above changes.
75643         (new_exclude, add_exclude_file):
75644         Initial size must now be a power of two to simplify overflow checking.
75645         (free_exclude, fnmatch_no_wildcards): New function.
75646         (excluded_filename): No longer requires options arg, as the options
75647         are determined by add_exclude.  Now returns bool, not int.
75648         (excluded_filename, add_exclude):
75649         Add support for the fancy new exclusion options.
75650         (add_exclude, add_exclude_file): Now takes int options arg.
75651         Check for arithmetic overflow when computing sizes.
75652         (add_exclude_file): xrealloc might modify errno, so don't
75653         realloc until after errno might be used.
75654
75655         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
75656         New macros.
75657         (free_exclude): New decl.
75658         (add_exclude, add_exclude_file): Now takes int options arg.
75659         (excluded_filename): No longer requires options arg, as the options
75660         are determined by add_exclude.  Now returns bool, not int.
75661
75662 2001-08-30  Paul Eggert  <eggert@twinsun.com>
75663
75664         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
75665
75666 2001-08-27  Jim Meyering  <meyering@lucent.com>
75667
75668         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
75669
75670         * lib/version-etc.c (N_): Remove definition.
75671         Revert most of last change.
75672         Instead, simply don't mark the `Copyright...' string for translation.
75673         Based on advice from Paul Eggert.
75674
75675         * lib/strtoxmax.c: Tweak comment.
75676
75677 2001-08-26  Jim Meyering  <meyering@lucent.com>
75678
75679         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
75680
75681         * m4/xstrtoimax.m4: New file.
75682         * m4/xstrtoumax.m4: Add comments explaining why we
75683         AC_REPLACE_FUNCS(strtol).
75684
75685 2001-08-26  Jim Meyering  <meyering@lucent.com>
75686
75687         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
75688         of copyright with `%s' so translators don't get an untranslated
75689         message in 2002.
75690         (COPYRIGHT_YEAR): Define.
75691         (version_etc): Use fprintf rather than fputs.
75692         Suggestion from Ulrich Drepper.
75693
75694         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
75695
75696         * lib/strtoll.c: New file, from GNU libc.
75697         * lib/xstrtoimax.c: New file.
75698
75699         * lib/xstrtol.h: Add xstrtoimax.
75700         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
75701         * lib/strtoimax.c: New file.  Likewise, but first define
75702         STRTOUXMAX_SIGNED.
75703
75704         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
75705         ...
75706         * lib/strtoxmax.c: ... then renamed to this.
75707
75708 2001-08-18  Paul Eggert  <eggert@twinsun.com>
75709
75710         * m4/inttypes.m4: Add AC_PREREQ(2.13).
75711         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
75712         (jm_AC_TYPE_INTMAX_T): New macro.
75713         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
75714
75715         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
75716
75717         * m4/longlong.m4: Renamed from ulonglong.m4.
75718         * m4/inttypes.m4: Renamed from inttypes_h.m4.
75719         * m4/uintmax_t.m4: Removed.
75720
75721 2001-08-13  Paul Eggert  <eggert@twinsun.com>
75722
75723         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
75724         Port to Solaris 8, where 'sed' requires a space after the 'r'
75725         command, and where sh dislikes "$/".  Clean up the spacing a bit.
75726         Redirect output to $tmp just once.
75727
75728 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
75729
75730         * lib/addext.c (<errno.h>): Include.
75731         (errno): Declare if not defined.
75732         (addext): Work correctly when pathconf returns -1 and leaves
75733         errno alone because there is no limit.  Also, work even if
75734         pathconf returns a value greater than SIZE_MAX.
75735
75736 2001-08-12  Jim Meyering  <meyering@lucent.com>
75737
75738         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
75739         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
75740         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
75741         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
75742         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
75743         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
75744         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
75745         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
75746         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
75747         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
75748         utime.m4, utimes.m4, xstrtoumax.m4:
75749         Quote the first argument in each use of AC_DEFUN.
75750
75751 2001-08-12  Jim Meyering  <meyering@lucent.com>
75752
75753         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
75754         Simply `return getcwd (NULL, 0);'.
75755         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
75756         Use 1300 as initial value for length, not PATH_MAX.
75757
75758         * lib/pathmax.h: Clean up cpp syntax.
75759
75760 2001-08-12  Jim Meyering  <meyering@lucent.com>
75761
75762         * lib/gettimeofday.c: New file.
75763         * lib/gtod.h: New file.
75764         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
75765
75766 2001-08-05  Jim Meyering  <meyering@lucent.com>
75767
75768         * m4/jm-macros.m4: Require autoconf-2.52.
75769
75770 2001-08-04  Jim Meyering  <meyering@lucent.com>
75771
75772         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
75773         stmt, to get in sync with glibc.
75774
75775 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75776
75777         The following changes are from gettext 0.10.39 as maintained by
75778         Bruno Haible.
75779
75780         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
75781         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
75782         with inverted sense.  All uses changed.
75783
75784         * lib/mbswidth.c: Don't include <limits.h>.
75785         Include <stdlib.h> and <string.h> unconditionally.
75786         (iswcntrl, mbsinit, ISCNTRL): New macros.
75787         (mbsnwidth): Use K&R style function declarations.
75788         Don't bother checking for MB_LEN_MAX == 1, since the compiler
75789         can optimize it when MB_CUR_MAX == 1.
75790         The width of control characters is zero, not 1.
75791
75792 2001-08-03  Paul Eggert  <eggert@twinsun.com>
75793
75794         The following changes are from gettext 0.10.39 as maintained by
75795         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
75796
75797         * m4/codeset.m4: Upgrade to serial AM1.
75798         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
75799         all uses changed.  Quote first arg of AC_DEFUN.
75800         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
75801
75802         * m4/iconv.m4: Upgrade to serial AM2.
75803         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
75804         Add --with-libconv-prefix.
75805         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
75806         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
75807         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
75808         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
75809         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
75810
75811         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
75812         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
75813         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
75814         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
75815         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
75816         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
75817         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
75818         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
75819         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75820
75821         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
75822         string.h any more.
75823
75824         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
75825         not the default value.
75826
75827         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
75828         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
75829         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
75830         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
75831         Also check for iswcntrl, used for wcwidth fallback.
75832         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
75833         to Autoconf 2.13.
75834
75835 2001-08-03  Jim Meyering  <meyering@lucent.com>
75836
75837         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
75838         as it was in the original.  Reported by Paul Eggert.
75839
75840 2001-07-16  Jim Meyering  <meyering@lucent.com>
75841
75842         * m4/gettimeofday.m4: New file.
75843         Prompted by a report from Bernhard Baehr.
75844
75845 2001-07-15  Jim Meyering  <meyering@lucent.com>
75846
75847         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
75848         stuff. Now it's in ../Makefile.cfg.
75849
75850 2001-07-15  Jim Meyering  <meyering@lucent.com>
75851
75852         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
75853         (BUILT_SOURCES): Add unlocked-io.h.
75854         (io_functions): Define.
75855         (unlocked-io.h): New rule.
75856         (DISTCLEANFILES): Add unlocked-io.h.
75857         (all-local): Depend on unlocked-io.h, to ensure it is created.
75858
75859         * lib/unlocked-io.hin: New file
75860
75861         * lib/regex.c: Update from glibc.
75862
75863 2001-07-05  Jim Meyering  <meyering@lucent.com>
75864
75865         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
75866         recommendation.
75867         (libfetish_a_SOURCES): Put all .h files here instead.
75868         Remove a thus-exposed (better checks in automake) duplicate and
75869         two unnecessary .h files.
75870
75871 2001-07-04  Jim Meyering  <meyering@lucent.com>
75872
75873         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
75874         that generates jm-glibc-io.m4 so that it doesn't trigger any make
75875         distcheck failure.
75876
75877 2001-07-02  Jim Meyering  <meyering@lucent.com>
75878
75879         The following changes were prompted by suggestions from Bruno Haible.
75880
75881         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
75882         is now generated.
75883         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
75884         definition of EXTRA_DIST.
75885         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
75886         ensure that the generated file is created/updated whenever the list
75887         of $(unlocked_functions) is changed.
75888         (jm-glibc-io.m4): New rule.
75889         (unlocked-io.h): New rule -- currently unused.
75890
75891 2001-06-24  Jim Meyering  <meyering@lucent.com>
75892
75893         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
75894         unmatched right bracket, rather than kludging it with an extra,
75895         falsely-matching quote in a comment.  Patch by Akim Demaille.
75896
75897 2001-06-11  Jim Meyering  <meyering@lucent.com>
75898
75899         * lib/regex.c: Update from GNU libc.
75900
75901 2001-05-27  Jim Meyering  <meyering@lucent.com>
75902
75903         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
75904         Check for ut_type in struct utmp.
75905
75906 2001-05-27  Jim Meyering  <meyering@lucent.com>
75907
75908         * lib/readutmp.h (UT_TYPE): Define.
75909
75910 2001-05-24  Jim Meyering  <meyering@lucent.com>
75911
75912         * lib/argmatch.c: Include "quote.h".
75913         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
75914         quote function.  Reported by Göran Uddeborg.
75915
75916 2001-05-22  Jim Meyering  <meyering@lucent.com>
75917
75918         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
75919         now that we use the package-supplied version unconditionally.
75920         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
75921
75922 2001-05-21  Jim Meyering  <meyering@lucent.com>
75923
75924         * m4/regex.m4: Change a couple backticks to single quotes to avoid
75925         shell syntax errors.
75926
75927 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
75928
75929         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
75930
75931 2001-05-20  Paul Eggert  <eggert@twinsun.com>
75932
75933         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
75934         Don't bother to check library strftime, since
75935         we'll be using our own my_strftime function anyway.
75936         Define my_strftime instead of strftime.
75937
75938 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
75939
75940         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
75941         which is not yet declared.
75942
75943 2001-05-15  Jim Meyering  <meyering@lucent.com>
75944
75945         * m4/regex.m4: Use proper quoting so brackets appear in the test
75946         program.
75947         Reported by, and with help from, Bruno Haible.
75948
75949 2001-05-13  Jim Meyering  <meyering@lucent.com>
75950
75951         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
75952         undefined.
75953
75954 2001-05-11  Paul Eggert  <eggert@twinsun.com>
75955
75956         dirname code cleanup.  base_name now behaves more compatibly
75957         with POSIX basename when given file names that have trailing
75958         slashes, and similarly for dir_name.  Add new primitives
75959         base_len and dir_len.  Put the directory-name-related decls
75960         into dirname.h.
75961
75962         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
75963         * lib/backupfile.c (base_name): Likewise.
75964         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
75965         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
75966         * lib/makepath.c (strip_trailing_slashes): Likewise.
75967         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
75968         ISSLASH): Likewise.
75969         * lib/rename.c (strip_trailing_slashes): Likewise.
75970         * lib/same.c (base_name): Likewise.
75971         * lib/stripslash.c (ISSLASH): Likewise.
75972
75973         * lib/addext.c: Include <dirname.h> after size_t is defined.
75974         * lib/backupfile.c: Likewise.
75975
75976         * lib/addext.c (addext): Use base_len to trim redundant
75977         trailing slashes instead of doing it ourselves.
75978         But do not trim the last slash if it is not redundant.
75979
75980         * lib/backupfile.c (find_backup_file_name,
75981         max_backup_version): Use base_len instead of rolling it ourselves.
75982         Handle the case of "" and (on DOS) "C:" correctly.
75983
75984         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
75985         needed. Include <string.h>, <dirname.h>.
75986         (base_name): Allow file names ending in slashes, other than names
75987         that are all slashes.  In this case, return the basename followed
75988         by the slashes.  This is more general, and can be used in places
75989         where the original base_name purposely had an assertion failure.
75990         (base_len): New function.
75991
75992         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
75993         Do not include <assert.h>; no longer needed.
75994         Include xalloc.h.
75995         (memrchr): Remove decl.
75996         (dir_name_r): Remove.
75997         (dir_len): Renamed from dirlen.  All callers changed.
75998         Rewrite in terms of base_name, for simplicity and consistency.
75999         (dir_name): Never return NULL.  All callers changed.
76000         Do not include <stdlib.h> in test program; no longer needed.
76001         return 0; is fine for test program.
76002
76003         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76004         New macros.
76005         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76006
76007         * lib/path-concat.c (path_concat): Use base_len to compute
76008         base length, not strlen; this means we cannot rely on memcpy
76009         to null-terminate.
76010
76011         * lib/same.c (STREQ): Remove.
76012         (same_name): Handle the case where the basename ends in trailing '/'.
76013
76014         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76015         a slash was stripped.  Do not strip the last slash after a
76016         file system prefix.
76017
76018 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76019
76020         * lib/Makefile.am (libfetish_a_SOURCES):
76021         Add strftime.c, since we now compile it on all hosts.
76022
76023         * lib/strftime.c (my_strftime):
76024         Define to nstrftime if emacs, but only if my_strftime is not defined.
76025         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76026         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76027         Add one more extra argument: a nanoseconds value.
76028         All uses changed.
76029         (ns): New macro.
76030         (my_strftime function): Add %N format.
76031         (emacs_strftimeu): Renamed from emacs_strftime,
76032         with extra ut argument.
76033
76034 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76035
76036         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76037
76038 2001-04-21  Jim Meyering  <meyering@lucent.com>
76039
76040         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76041         doesn't interfere.
76042
76043 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76044
76045         * m4/ftruncate.m4: Check for chsize.
76046         Link with ftruncate.o unconditionally if ftruncate is missing.
76047         This was required when cross-compiling to i586-mingw32msvc.
76048
76049 2001-04-08  Jim Meyering  <meyering@lucent.com>
76050
76051         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76052         recomputed; that's necessary when the offset spans a DST transition.
76053         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76054
76055 2001-04-02  Jim Meyering  <meyering@lucent.com>
76056
76057         * lib/regex.h, regex.c: Update from GNU libc.
76058
76059 2001-03-24  Jim Meyering  <meyering@lucent.com>
76060
76061         * m4/jm-macros.m4: Require autoconf-2.49d.
76062
76063 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76064
76065         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76066
76067 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76068
76069         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76070
76071 2001-03-17  Jim Meyering  <meyering@lucent.com>
76072
76073         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76074         now that the version in autoconf is equivalent.
76075         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76076
76077         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76078         Suggestion from Akim Demaille.
76079
76080         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76081         (jm_PREREQ_TEMPNAME): New function.
76082
76083 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76084
76085         * lib/tempname.c (uint64_t): Define to uintmax_t if
76086         not defined, and if UINT64_MAX is not defined.
76087         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76088         Reported by John David Anglin.
76089
76090 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76091
76092         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76093         resolve alias if codeset is empty.
76094         * lib/config.charset (BeOS): Use wildcard syntax.
76095
76096 2001-03-13  Jim Meyering  <meyering@lucent.com>
76097
76098         * lib/path-concat.c (path_concat)
76099         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76100         concatenating e.g., `C:' and `foo'.
76101         From Bruno Haible.
76102
76103 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76104
76105         * lib/localcharset.c (locale_charset): Don't use
76106         setlocale(LC_CTYPE,NULL). Don't return NULL.
76107         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76108
76109 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76110
76111         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76112         support for DOS/DJGPP.
76113
76114 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76115
76116         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76117         lacks mkstemp.  Compile our own tempname.c if we compile our own
76118         mkstemp.c, as mkstemp relies on tempname.
76119
76120 2001-03-01  Jim Meyering  <meyering@lucent.com>
76121
76122         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76123         AH_VERBATIM really does output its argument verbatim.
76124
76125 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76126
76127         * lib/Makefile.am (libfetish_a_SOURCES):
76128         Add dup-safer.c, fopen-safer.c.
76129         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76130
76131         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76132         * lib/unistd-safer.h: New files.
76133
76134 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76135
76136         The mkstemp replacement is taken from glibc 2.2.2, with some
76137         portability fixes for use outside glibc, as follows:
76138
76139         * lib/tempname.c (struct_stat64): New macro.
76140         (direxists, __gen_tempname): Use it.
76141         This avoids a portability problem with Solaris 8.
76142
76143         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76144         (<stddef.h>, <stdint.h>, <string.h>):
76145         Include only if STDC_HEADERS || _LIBC.
76146         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76147         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76148         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76149         (__set_errno): Define this macro if <errno.h> doesn't.
76150         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76151         Define these macros if <stdio.h> doesn't.
76152         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76153         Define these macros if <sys/stat.h>
76154         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76155         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76156         __xstat64): Define if not _LIBC.
76157         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76158         (__gen_tempname): Invoke gettimeofday only if
76159         HAVE_GETTIMEOFDAY || _LIBC;
76160         otherwise, fall back on plain "time".
76161         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76162
76163         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76164
76165         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76166
76167 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76168
76169         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76170
76171 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76172
76173         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76174         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76175         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76176         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76177
76178 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76179
76180         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76181         Remove workaround macros for hosts that have mbrtowc but not
76182         mbstate_t, as we now insist on proper declarations for both
76183         before using mbrtowc.
76184
76185 2001-02-17  Jim Meyering  <meyering@lucent.com>
76186
76187         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76188         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76189         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76190         UnixWare 7.1.1.
76191
76192         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76193         rather than AC_CACHE_VAL.
76194
76195 2001-02-17  Jim Meyering  <meyering@lucent.com>
76196
76197         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76198         around included file name.
76199
76200         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76201
76202         * lib/strftime.c: Update from GNU libc (the only changes were to
76203         comments).
76204
76205 2001-02-17  Jim Meyering  <meyering@lucent.com>
76206
76207         * lib/regex.c: Update from libc.
76208
76209 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
76210
76211         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
76212         clash.
76213
76214 2001-02-16  Paul Eggert  <eggert@twinsun.com>
76215
76216         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
76217         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
76218         Reported by Mark Hounschell via Paul Eggert.
76219
76220 2001-02-07  Jim Meyering  <meyering@lucent.com>
76221
76222         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
76223
76224 2001-02-05  Jim Meyering  <meyering@lucent.com>
76225
76226         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
76227         it includes the patch required for `large file' support with at least
76228         HP-UX's 10.20 /bin/cc.
76229
76230 2001-02-03  Jim Meyering  <meyering@lucent.com>
76231
76232         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
76233         AS_IF, now that it works once again (mysteriously).
76234         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76235
76236 2001-01-30  Jim Meyering  <meyering@lucent.com>
76237
76238         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
76239         * m4/chown.m4: Rename conftestchown to conftest.chown.
76240         * m4/rename.m4: s/conftestdir/conftest.d1/ and
76241         s/conftestdir2/conftest.d2/.
76242         * m4/utimes.m4: s/conftestdata/conftest.data/
76243         Inspired by Pavel Roskin's change in autoconf.
76244
76245 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
76246
76247         * lib/config.charset: Update for FreeBSD 4.2.
76248
76249 2001-01-27  Jim Meyering  <meyering@lucent.com>
76250
76251         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
76252         a use of AS_IF.
76253         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
76254
76255 2001-01-26  Jim Meyering  <meyering@lucent.com>
76256
76257         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
76258         quotearg.c includes it.
76259
76260 2001-01-26  Jim Meyering  <meyering@lucent.com>
76261
76262         * lib/quotearg.c: Include stddef.h.
76263         * lib/quote.c: Include stddef.h.
76264         Reported by Axel Kittenberger.
76265
76266         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
76267         line in double quotes so that it evokes a better diagnostic.
76268         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
76269         Reported by Axel Kittenberger.
76270
76271 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
76272
76273         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
76274         as if it was a `charset'.
76275
76276 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76277
76278         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
76279         has const.
76280
76281 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
76282
76283         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
76284         to avoid a warning.  Add back 'const' to inptr.
76285
76286 2001-01-20  Jim Meyering  <meyering@lucent.com>
76287
76288         Be sure that headers are checked before used in code compiled
76289         for the type checks.
76290         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
76291         In place of that, invoke jm_CHECK_ALL_TYPES.
76292         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
76293         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
76294         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
76295         The check for ssize_t was mistakenly run before the test for unistd.h.
76296
76297         The configure-time check for stdbool.h was missing.
76298         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
76299         (jm_PREREQ_HASH): New function.
76300
76301 2001-01-17  Jim Meyering  <meyering@lucent.com>
76302
76303         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
76304         for autoconf-2.49c.
76305         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
76306
76307 2001-01-16  Jim Meyering  <meyering@lucent.com>
76308
76309         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
76310         From Bruno Haible.
76311
76312 2001-01-14  Jim Meyering  <meyering@lucent.com>
76313
76314         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
76315         foo and bar.  Create conftestdir/ in the script, not in the C code.
76316         Remove directories in the script, not in the C code.
76317         Remove conftestdir{,2} before trying to create the directory.
76318         Make the entire configure script fail if the mkdir fails.
76319
76320 2001-01-14  Jim Meyering  <meyering@lucent.com>
76321
76322         * lib/rename.c: New file.  From Volker Borchert.
76323         Include stdlib.h, string.h or strings.h, and xalloc.h.
76324         Use strip_trailing_slashes rather than open-coding it.
76325
76326 2001-01-03  Paul Eggert  <eggert@twinsun.com>
76327
76328         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
76329
76330 2001-01-03  Jim Meyering  <meyering@lucent.com>
76331
76332         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
76333         of local `inptr' to avoid warning with some system declarations of
76334         iconv.
76335
76336 2001-01-02  Volker Borchert  <bt@teknon.de>
76337
76338         * m4/rename.m4: New file.
76339         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
76340
76341 2001-01-01  Jim Meyering  <meyering@lucent.com>
76342
76343         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
76344         even on systems with utmpx.h.  It's necessary for the declaration of
76345         utmp's ut_user member.  Reported by Andreas Jaeger.
76346
76347         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
76348         available. They are required for the declarations of getgrgid and
76349         getpwuid resp.
76350         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
76351         Reported by Andreas Jaeger.
76352
76353 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
76354
76355         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
76356         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
76357         so `make install' also works in VPATH builds.
76358
76359 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
76360
76361         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
76362         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
76363         can be used in subdirectories.
76364
76365 2000-12-29  Paul Eggert  <eggert@twinsun.com>
76366
76367         * lib/modechange.c: Do not assume that mode_t uses the
76368         traditional octal encoding.  E.g. "chmod 1 FOO" should set
76369         the other-execute bit of FOO even if S_IXOTH != 1.
76370
76371         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
76372         WOTH, XOTH, ALLM): New macros.
76373         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
76374          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
76375         Use them.
76376         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
76377         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
76378         (mode_compile):
76379         No need to use uintmax_t; unsigned long is long enough.
76380         Don't bother to get suffix since we don't use it.
76381
76382 2000-12-26  Jim Meyering  <meyering@lucent.com>
76383
76384         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
76385         better with autoheader.
76386
76387 2000-12-24  Jim Meyering  <meyering@lucent.com>
76388
76389         * lib/hash.c (is_prime): Return explicit boolean values.
76390         (hash_get_first): Return NULL to appease Irix5.6's 89.
76391         Reported by Nelson Beebe.
76392
76393 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
76394
76395         * lib/localcharset.c (locale_charset): Add support for Win32.
76396
76397 2000-12-18  Paul Eggert  <eggert@twinsun.com>
76398
76399         * lib/physmem.h, lib/physmem.c: New files.
76400
76401         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
76402         (noinst_HEADERS): Add physmem.h.
76403
76404         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
76405         't' for compatibility with Solaris 8 sort.
76406
76407 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
76408
76409         * lib/config.charset: Add support for BeOS.
76410
76411 2000-12-17  Jim Meyering  <meyering@lucent.com>
76412
76413         * m4/dos.m4 (jm_AC_DOS): New file and macro.
76414         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
76415
76416 2000-12-16  Jim Meyering  <meyering@lucent.com>
76417
76418         This bug had a serious impact on chown: `chown N:M FILE' (for integer
76419         N and M) would have treated it like `chown N:N FILE'.
76420
76421         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
76422
76423 2000-12-16  Jim Meyering  <meyering@lucent.com>
76424
76425         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
76426         SHELLS_FILE to a file name that's useful on djgpp systems.
76427         Include stdlib.h.
76428         (ADDITIONAL_DEFAULT_SHELLS): Define.
76429         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
76430         Based mostly on a patch from Prashant TR.
76431
76432 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
76433
76434         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
76435         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
76436         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
76437
76438 2000-12-08  Andreas Schwab  <schwab@suse.de>
76439
76440         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
76441         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
76442
76443 2000-12-07  Jim Meyering  <meyering@lucent.com>
76444
76445         * lib/stripslash.c (ISSLASH): Define.
76446         (strip_trailing_slashes): Use ISSLASH rather than comparing against
76447         `/'.
76448         From Prashant TR.
76449
76450         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
76451         (dir_name_r): Declare this function as static.
76452         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
76453         manifest itself on a name containing a mix of slashes and
76454         backslashes.
76455         Make this function work with names starting with a DOS-style
76456         drive letter and colon prefix.
76457         (dir_name): Append `.' if necessary.
76458         Based mostly on patches from Prashant TR and Eli Zaretskii.
76459
76460         * lib/dirname.h (dir_name_r): Remove prototype.
76461
76462 2000-12-06  Paul Eggert  <eggert@twinsun.com>
76463
76464         * m4/off_t-format.m4: Remove this file.
76465         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
76466
76467 2000-12-06  Jim Meyering  <meyering@lucent.com>
76468
76469         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
76470         replacement strtoull, we may well need the replacement strtoul, too.
76471         Check for declarations of strtoul and strtoull.
76472         Check for strtol.  Mainly as a cue to cause automake to include
76473         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
76474         Check for limits.h -- strtol.c needs it.
76475
76476 2000-12-05  Jim Meyering  <meyering@lucent.com>
76477
76478         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
76479
76480 2000-12-04  Jim Meyering  <meyering@lucent.com>
76481
76482         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
76483         Also include memory.h, stdlib.h, unistd.h if appropriate.
76484         Reported by Andreas Jaeger (conflicting declaration of malloc).
76485
76486 2000-12-02  Jim Meyering  <meyering@lucent.com>
76487
76488         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
76489         * m4/jm-macros.m4 (jm_MACROS): require it.
76490
76491 2000-12-02  Jim Meyering  <meyering@lucent.com>
76492
76493         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
76494
76495 2000-12-01  Paul Eggert  <eggert@twinsun.com>
76496
76497         * lib/memrchr.c: Include <config.h> before any system include file.
76498
76499 2000-11-30  Jim Meyering  <meyering@lucent.com>
76500
76501         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
76502
76503 2000-11-30  Jim Meyering  <meyering@lucent.com>
76504
76505         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
76506
76507 2000-11-29  Paul Eggert  <eggert@twinsun.com>
76508
76509         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
76510
76511 2000-11-26  Jim Meyering  <meyering@lucent.com>
76512
76513         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
76514
76515 2000-11-22  Paul Eggert  <eggert@twinsun.com>
76516
76517         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
76518         size of (size_t) -1; it's not portable.
76519
76520 2000-11-17  Jim Meyering  <meyering@lucent.com>
76521
76522         * lib/strstr.c: Update from GNU libc.
76523
76524 2000-11-17  Akim Demaille  <akim@epita.fr>
76525
76526         * lib/obstack.h: Formatting changes.
76527         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
76528         prevent type checking.
76529         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
76530         cast the value to (void *): assigning a `foo *' to a `void *'
76531         variable is valid.
76532         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
76533
76534 2000-11-16  Jim Meyering  <meyering@lucent.com>
76535
76536         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
76537
76538 2000-11-11  Jim Meyering  <meyering@lucent.com>
76539
76540         * lib/error.c: Add a couple #includes, merging from GNU libc version.
76541
76542 2000-11-10  Jim Meyering  <meyering@lucent.com>
76543
76544         * lib/obstack.h: Update from GNU libc.
76545         * lib/obstack.c: Likewise.
76546
76547 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
76548
76549         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
76550
76551 2000-11-06  Paul Eggert  <eggert@twinsun.com>
76552
76553         * lib/getusershell.c (setusershell): Use rewind rather than
76554         fseek/fseeko, to avoid configuration hassles with fseeko.
76555         Don't bother opening SHELLS_FILE if shellstream is NULL;
76556         it's not necessary.
76557
76558 2000-11-05  Jim Meyering  <meyering@lucent.com>
76559
76560         * lib/makepath.h (make_dir): Declare.
76561         * lib/makepath.c (make_dir): Remove `static' attribute.
76562         Tweak a comment.
76563
76564 2000-11-04  Jim Meyering  <meyering@lucent.com>
76565
76566         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
76567
76568 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
76569
76570         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
76571         last one in a bucket, advance to the next bucket.
76572
76573 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
76574
76575         * lib/fnmatch.c: Do not comment out all the code if we are using
76576         the GNU C library, because in some cases we are replacing buggy
76577         code in the GNU C library itself.
76578
76579 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
76580
76581         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
76582         (regex_compile): Catch bogus \(\1\).
76583
76584 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76585
76586         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
76587         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
76588         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
76589
76590 2000-10-30  Paul Eggert  <eggert@twinsun.com>
76591
76592         * lib/error.h, getline.h, modechange.h:
76593         Remove "2000" from Copyright line, as the file hasn't been
76594         changed this year other than in the copyright notice.
76595
76596         * lib/xalloc.h: Add "2000" to Copyright line, as this file
76597         was changed this year.
76598
76599 2000-10-29  Jim Meyering  <meyering@lucent.com>
76600
76601         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
76602         renaming.
76603         * m4/ls-mntd-fs.m4: Likewise
76604
76605 2000-10-29  Jim Meyering  <meyering@lucent.com>
76606
76607         * lib/xstat.in: Fix grammar in comment.
76608
76609 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
76610
76611         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
76612         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
76613         doesn't define __restrict_arr.
76614
76615 2000-10-28  Jim Meyering  <meyering@lucent.com>
76616
76617         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
76618         (jm_PREREQ_MEMCHR): New function.
76619
76620 2000-10-28  Jim Meyering  <meyering@lucent.com>
76621
76622         * lib/memchr.c: Update from libc.
76623         Adjust for portability:
76624         [HAVE_STDLIB_H]: Include stdlib.h.
76625         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
76626         Undef __memchr, too.
76627         [!weak_alias]: Define __memchr to memchr.
76628
76629         * lib/regex.c: Update from libc.
76630         * lib/regex.h: Likewise.
76631         * lib/getopt1.c: Likewise.
76632         * lib/memcmp.c: Likewise.
76633
76634         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
76635         Avoid using fseek, when possible -- it's broken by design.
76636         Patch by Ulrich Drepper.
76637
76638 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
76639
76640         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
76641         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
76642         Giving in to popular pressure to shut up the compiler with casts.
76643
76644 2000-10-26  Jim Meyering  <meyering@lucent.com>
76645
76646         * lib/strftime.c: Update from libc.
76647
76648 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
76649
76650         * regex.c: More `unsigned char' -> `re_char' changes.
76651         Also change several `int' into `re_wchar_t'.
76652         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
76653         (PUSH_FAILURE_POINTER): Don't cast any more.
76654         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
76655         We want GCC to complain, since this piece of code makes
76656         re_match non-reentrant, which *should* be fixed.
76657         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
76658         (EXTEND_BUFFER): Use RETALLOC.
76659         (SET_LIST_BIT): Don't cast.
76660         (re_wchar_t): New type.
76661         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
76662         that those two functions will always properly return.
76663         (IMMEDIATE_QUIT_CHECK): Cast to void.
76664         (analyse_first): Use recursion rather than an explicit stack.
76665         (re_compile_fastmap): Can't fail anymore.
76666         (re_search_2): Don't check re_compile_fastmap for failure.
76667         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
76668         Now also sets the new value (passed in a new argument).
76669         (re_match_2_internal): Use it.
76670         Also, use a new var `reg' of type size_t when looping through regs
76671         rather than reuse the inappropriate `mcnt'.
76672
76673 2000-10-25  Jim Meyering  <meyering@lucent.com>
76674
76675         * lib/obstack.c: Update from libc.
76676
76677 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
76678
76679         * regex.c (regex_compile): Change the way of handling a range from
76680         a char less than 256 to a char not less than 256.
76681
76682 2000-10-24  Andrew Innes  <andrewi@gnu.org>
76683
76684         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
76685         NT-Emacs only.
76686         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
76687         so that re_search functions only quit when callers expect them to.
76688
76689 2000-10-23  Jim Meyering  <meyering@lucent.com>
76690
76691         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
76692         wrong.  That set_locale call must not have any side effects.
76693         From Paul Eggert.
76694
76695 2000-10-22  Jim Meyering  <meyering@lucent.com>
76696
76697         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
76698         [CYCLIC]: Remove now-unused definition.
76699
76700         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
76701         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
76702         Suggestion from Ulrich Drepper.
76703
76704 2000-10-21  Jim Meyering  <meyering@lucent.com>
76705
76706         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
76707         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
76708         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
76709
76710 2000-10-21  Jim Meyering  <meyering@lucent.com>
76711
76712         * lib/dirname.c (memrchr): Declare if necessary.
76713         (dir_name): Remove the restriction that there be no
76714         trailing slashes.  Now, this code skips past them, effectively
76715         ignoring them.
76716         [TEST_DIRNAME] (main): New unit tests.
76717
76718         * lib/memrchr.c: New file from GNU libc.
76719         Undef __memrchr, too.
76720         [!weak_alias]: Define __memrchr to memrchr.
76721         Guard weak_alias use with `#ifdef weak_alias'.
76722
76723 2000-10-21  Jim Meyering  <meyering@lucent.com>
76724
76725         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
76726         (dir_name): Use dir_name_r.
76727         * lib/dirname.h (dir_name_r): Declare it.
76728
76729 2000-10-17  Jim Meyering  <meyering@lucent.com>
76730
76731         * lib/quote.h (PARAMS): Define and use.
76732         Reported by Akim Demaille.
76733
76734         * lib/getopt.c: Update from libc.
76735
76736 2000-10-16  Jim Meyering  <meyering@lucent.com>
76737
76738         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
76739         setlocale.
76740         From Jan Fedak.
76741
76742 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
76743
76744         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
76745
76746 2000-09-25  Jim Meyering  <meyering@lucent.com>
76747
76748         * lib/md5.h (rol): Define (from GnuPG).
76749
76750         * lib/sha.c: Give credit (GnuPG) where due.
76751         (M): Use rol rather than open-coding it.
76752         Add a FIXME comment.
76753
76754 2000-09-21  Jim Meyering  <meyering@lucent.com>
76755
76756         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
76757         Reported by Michael Stone.
76758
76759 2000-09-20  Jim Meyering  <meyering@lucent.com>
76760
76761         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
76762         (noinst_HEADERS): Add sha.h.
76763         Based on code from Scott G. Miller and from GnuPG.
76764
76765 2000-09-18  Jim Meyering  <meyering@lucent.com>
76766
76767         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
76768         LIBS. Otherwise, everyone ends up linking with -lelf for some
76769         configurations.
76770         Reported by Mike Stone.
76771
76772 2000-09-15  Jim Meyering  <meyering@lucent.com>
76773
76774         * lib/regex.c: Update from libc.
76775
76776 2000-09-10  Jim Meyering  <meyering@lucent.com>
76777
76778         * lib/getopt.c (_getopt_internal): Update from glibc.
76779
76780 2000-09-09  Jim Meyering  <meyering@lucent.com>
76781
76782         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
76783         think it should be used as a general replacement for isascii.
76784         * lib/fnmatch.c: Likewise.
76785         * lib/mbswidth.c: Likewise
76786         * lib/regex.c: Likewise.
76787
76788         Don't use atoi.
76789         * lib/userspec.c: Include sys/param.h and limits.h.
76790         Include xstrtol.h.
76791         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76792         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
76793         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
76794         UID, GID.  Check range.
76795
76796 2000-09-06  Jim Meyering  <meyering@lucent.com>
76797
76798         * lib/getopt.c (_getopt_internal): Update from glibc.
76799
76800 2000-08-30  Jim Meyering  <meyering@lucent.com>
76801
76802         * lib/strftime.c: Merge in changes from GNU libc.
76803
76804 2000-08-26  Jim Meyering  <meyering@lucent.com>
76805
76806         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
76807         * m4/fpending.m4: New file.
76808
76809 2000-08-26  Jim Meyering  <meyering@lucent.com>
76810
76811         * lib/closeout.c: Include "__fpending.h".
76812         (close_stdout_status): Return right away if there's nothing to flush.
76813
76814         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
76815         * lib/__fpending.c: New file.
76816         * lib/__fpending.h: New file.
76817
76818 2000-08-20  Jim Meyering  <meyering@lucent.com>
76819
76820         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
76821         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
76822         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
76823
76824 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
76825
76826         Improve fileutils installation on systems where running
76827         programs (like install) can't be unlinked.
76828         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
76829         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
76830
76831 2000-08-07  Paul Eggert  <eggert@twinsun.com>
76832
76833         Standardize on "memory exhausted" instead of "Memory exhausted"
76834         or "virtual memory exhausted".
76835         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
76836         "virtual memory exhausted".
76837         * lib/same.c (same_name): Invoke xalloc_die instead of printing
76838         our own message.
76839         * lib/userspec.c (parse_user_spec): Likewise.
76840         * lib/bumpalloc.h: comment fix
76841         * lib/same.c, userspec.c: Include xalloc.h.
76842
76843         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
76844         not char *const and pointing to a constant array.
76845         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
76846         (xrealloc): Comment fix.
76847
76848         * lib/userspec.c (parse_user_spec):
76849         Don't translate a message until just before returning,
76850         to avoid unnecessary translation.
76851
76852 2000-08-07  Jim Meyering  <meyering@lucent.com>
76853
76854         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
76855         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
76856         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
76857         getgroups.c, gethostname.c, getopt.h, group-member.c,
76858         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
76859         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
76860         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
76861         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
76862         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
76863         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
76864         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
76865         yesno.c: Back out Copyright date changes for each file with no change
76866         this year.  This eases coordination with other programs using the same
76867         source code modules.  From Paul Eggert.
76868
76869 2000-08-06  Paul Eggert  <eggert@twinsun.com>
76870
76871         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
76872         not char, for compatibility with glibc 2.1.3 strftime.c.
76873
76874 2000-08-03  Greg McGary  <greg@mcgary.org>
76875
76876         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
76877         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
76878         (EXTEND_BUFFER): Use them.
76879
76880 2000-08-01  Jim Meyering  <meyering@lucent.com>
76881
76882         * lib/dirname.c (ISSLASH): Define.
76883         (BACKSLASH_IS_PATH_SEPARATOR): Define.
76884         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
76885         both `\' and `/' may be use as path separators.
76886         Based on a patch from Prashant TR.
76887
76888 2000-07-31  Paul Eggert  <eggert@twinsun.com>
76889
76890         * lib/quotearg.c (quotearg_n_options): Don't make the initial
76891         slot vector a constant, since it might get modified.
76892
76893 2000-07-31  Jim Meyering  <meyering@lucent.com>
76894
76895         * lib/xmalloc.c: Use `virtual memory exhausted', not
76896         `Memory exhausted'.
76897         * lib/obstack.c (print_and_abort): Likewise.
76898
76899 2000-07-30  Paul Eggert  <eggert@twinsun.com>
76900
76901         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
76902         buffer, so that the caller can always quote one small
76903         component of a "memory exhausted" message in slot 0.
76904         From a suggestion by Jim Meyering.
76905
76906 2000-07-30  Jim Meyering  <meyering@lucent.com>
76907
76908         * lib/makepath.c (make_path): Quote the other instance, too.
76909
76910         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
76911         (STATIC_BUF_SIZE): Define.
76912         (quotearg_n_options): Use only statically allocated storage when
76913         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
76914         than STATIC_BUF_SIZE.
76915
76916 2000-07-29  Jim Meyering  <meyering@lucent.com>
76917
76918         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
76919         * lib/dirname.c (dir_name): Likewise.
76920
76921         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
76922         `/'.
76923
76924         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
76925         (dir_name): Assert that there are no trailing slashes.
76926
76927 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
76928
76929         * lib/mbswidth.h (mbswidth): Add a flags argument.
76930         (mbswidth): New declaration.
76931         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
76932         * lib/mbswidth.c (mbswidth): Add a flags argument.
76933         (mbsnwidth): New function.
76934
76935 2000-07-24  Jim Meyering  <meyering@lucent.com>
76936
76937         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
76938
76939 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76940
76941         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
76942
76943 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76944
76945         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
76946         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
76947         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
76948         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
76949         invoke multibyte primitives.
76950
76951 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76952
76953         * lib/quotearg.c:
76954         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
76955         so that mbstate_t is always defined.
76956
76957         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
76958         be 1 in at least one GCC installation, and this configuration
76959         error is likely to be common.  Ignoring MB_LEN_MAX hurts
76960         performance on hosts that have mbrtowc but have only unibyte
76961         locales, but I assume these hosts are rare.
76962
76963 2000-07-23  Paul Eggert  <eggert@twinsun.com>
76964
76965         * lib/mbswidth.c (_XOPEN_SOURCE):
76966         Don't define; this causes problems on Solaris 7.
76967         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
76968
76969 2000-07-23  Jim Meyering  <meyering@lucent.com>
76970
76971         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
76972         too: getgrgid, getpwuid, getuid.
76973
76974 2000-07-23  Jim Meyering  <meyering@lucent.com>
76975
76976         * lib/basename.c (base_name): Add an assertion.
76977
76978 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
76979
76980         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
76981         shadow its mbsinit function.
76982
76983 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76984
76985         * lib/mbswidth.h: New file.
76986         * lib/mbswidth.c: New file.
76987         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
76988         (noinst_HEADERS): Add mbswidth.h.
76989
76990 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
76991
76992         * lib/config.charset: Add support for FreeBSD. Improve support for
76993         HP-UX and IRIX 6.
76994
76995 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
76996
76997         * m4/mbswidth.m4: New file.
76998         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
76999
77000 2000-07-15  Jim Meyering  <meyering@lucent.com>
77001
77002         * lib/makepath.c: Include quote.h.
77003         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77004         corresponding argument in a `quote (...)' call.
77005         Give better diagnostics.
77006
77007         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77008         (noinst_HEADERS): Add quote.h.
77009
77010         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77011         from tar's src/misc.c.
77012         * lib/quote.h: New file.  Prototypes for same.
77013
77014 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77015
77016         From a suggestion by Bruno Haible.
77017         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77018         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77019         to decide whether to define the BeOS workaround macro;
77020         this adjusts to the change to AC_MBSTATE_T.
77021
77022 2000-07-14  Jim Meyering  <meyering@lucent.com>
77023
77024         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77025         jm_AC_TYPE_UINTMAX_T.
77026
77027 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77028
77029         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77030
77031         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77032         quotearg_buffer_restyled): Add support for
77033         clocale_quoting_style.  Undo previous change to
77034         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77035         and "{RIGHT QUOTATION MARK}" msgids.
77036
77037 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77038
77039         From a suggestion by Bruno Haible.
77040         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77041         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77042         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77043         and mbstate_t, to a single-part test that simply defines mbstate_t.
77044         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77045         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77046
77047 2000-07-10  Jim Meyering  <meyering@lucent.com>
77048
77049         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77050
77051         * m4/gnu-source.m4: Output to confdefs.h directly.
77052         Suggestion from Akim Demaille.
77053
77054 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77055
77056         The old behavior of quoting `like this' doesn't look good with
77057         newer, ISO-style fonts.  See:
77058         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77059
77060         Instead, quote "like this" by default.  Let the translator
77061         tailor the locale-specific quoting behavior by providing
77062         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77063
77064         * lib/quotearg.c (N_): New macro.
77065         (gettext_default): New function.
77066         (quotearg_buffer_restyled): Use
77067         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77068         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77069
77070 2000-07-09  Jim Meyering  <meyering@lucent.com>
77071
77072         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77073         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77074
77075         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77077
77078 2000-07-09  Jim Meyering  <meyering@lucent.com>
77079
77080         * lib/Most files: Update copyright dates to include 2000.
77081
77082 2000-07-08  Jim Meyering  <meyering@lucent.com>
77083
77084         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77085         if not defined.
77086         (xgethostname): Remove now-unnecessary #ifdef.
77087         Move declaration of `err' into loop where it's used.
77088
77089 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77090         and Bruno Haible  <haible@clisp.cons.org>
77091
77092         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77093         only if the test for an object-type mbstate_t fails.  This
77094         prevents us from mistakenly reporting that mbstate_t is a
77095         system object type after we "#define mbstate_t int" to work
77096         around its lack.
77097
77098 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77099         and Bruno Haible  <haible@clisp.cons.org>
77100
77101         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77102
77103 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77104
77105         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77106         to strerror_r.
77107         Include <ctype.h> for use of isalpha.
77108
77109 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77110
77111         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77112         by allocating a larger buffer. Test the gethostname return value for
77113         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77114         returns an error and ENAMETOOLONG isn't defined.
77115
77116 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77117
77118         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77119         dimension.
77120
77121 2000-07-04  Jim Meyering  <meyering@lucent.com>
77122
77123         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77124         of the deprecated AC_CHECKING.
77125
77126 2000-07-04  Jim Meyering  <meyering@lucent.com>
77127
77128         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77129         Reported by Bruno Haible.
77130
77131 2000-07-04  Jim Meyering  <meyering@lucent.com>
77132
77133         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77134         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77135         lacks mbrtowc.
77136
77137 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77138
77139         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77140         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77141
77142 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77143         and Bruno Haible  <haible@clisp.cons.org>
77144
77145         * lib/quotearg.c (mbrtowc):
77146         Assign to *pwc, and return 1 only if result is nonzero.
77147         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77148
77149 2000-07-03  Jim Meyering  <meyering@lucent.com>
77150
77151         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77152
77153 2000-07-03  Jim Meyering  <meyering@lucent.com>
77154
77155         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77156         This is necessary to get a definition of e.g., UTMP_FILE on
77157         HP-UX 10.20.
77158         From Bob Proulx.
77159
77160 2000-07-02  Jim Meyering  <meyering@lucent.com>
77161
77162         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77163
77164         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77165         AC_LIBOBJ(function_name).
77166         * m4/chown.m4: Likewise.
77167         * m4/fnmatch.m4: Likewise.
77168         * m4/ftruncate.m4: Likewise.
77169         * m4/getgroups.m4: Likewise.
77170         * m4/getline.m4: Likewise.
77171         * m4/group-member.m4: Likewise.
77172         * m4/jm-macros.m4: Likewise.
77173         * m4/lstat.m4: Likewise.
77174         * m4/malloc.m4: Likewise.
77175         * m4/memcmp.m4: Likewise.
77176         * m4/nanosleep.m4: Likewise.
77177         * m4/putenv.m4: Likewise.
77178         * m4/realloc.m4: Likewise.
77179         * m4/regex.m4: Likewise.
77180         * m4/stat.m4: Likewise.
77181         * m4/strftime.m4: Likewise.
77182
77183 2000-07-02  Jim Meyering  <meyering@lucent.com>
77184
77185         * lib/quotearg.c (mbstate_t): Don't define here.
77186
77187 2000-07-02  Jim Meyering  <meyering@lucent.com>
77188
77189         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77190
77191 2000-07-01  Jim Meyering  <meyering@lucent.com>
77192
77193         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77194
77195 2000-07-01  Jim Meyering  <meyering@lucent.com>
77196
77197         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77198         problem.
77199
77200 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77201
77202         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77203         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77204
77205 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77206
77207         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
77208         per change in ../m4/ls-mntd-fs.m4.
77209         (read_filesystem_list): Ignore symbolic links.
77210
77211 2000-06-29  Jim Meyering  <meyering@lucent.com>
77212
77213         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
77214         for declaration of strcmp.
77215
77216         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
77217
77218         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
77219         Avoid warning by casting result to `char *' to remove `const'.
77220
77221 2000-06-28  Jim Meyering  <meyering@lucent.com>
77222
77223         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
77224         included by quotearg.c, for which we perform this test.  From
77225         Bruno Haible.
77226
77227 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77228
77229         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
77230         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
77231         <utmpx.h> exists, put readutmp.o into LIBOBJS.
77232
77233 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
77234
77235         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
77236
77237 2000-06-26  Paul Eggert  <eggert@twinsun.com>
77238
77239         savedir now sets errno on failure and invokes xmalloc to get memory.
77240         Fix a couple of other minor bugs while we're at it.
77241
77242         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
77243         (NAMLEN): Remove macro.
77244         (malloc, realloc): Remove decls.
77245         (stpcpy): Likewise.
77246         ("xalloc.h"): Include.
77247         (NAME_SIZE_DEFAULT): New macro.
77248         (savedir): Use xmalloc / xrealloc to allocate memory.
77249         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
77250         Skip "" directory entries.
77251         Use strlen to calculate directory entry length, since the old method
77252         is rarely used these days and isn't worth supporting.
77253         Don't use a pointer after freeing it.
77254         Check for integer overflow when calculating allocation size.
77255         Use memcpy to copy entries, instead of stpcpy.
77256         Set errno properly when returning NULL.
77257         Check for readdir error.
77258
77259 2000-06-26  Jim Meyering  <meyering@lucent.com>
77260
77261         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
77262
77263 2000-06-25  Jim Meyering  <meyering@lucent.com>
77264
77265         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
77266         Linux header bug when _XOPEN_SOURCE is defined to 500.
77267
77268 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77269
77270         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
77271         deficiency.
77272
77273 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
77274
77275         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
77276         Include xalloc.h.
77277         Don't include <stdlib.h>.  Don't declare malloc, realloc.
77278
77279 2000-06-24  Jim Meyering  <meyering@lucent.com>
77280
77281         * m4/strerror_r.m4: Revive this file -- to try out an experimental
77282         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
77283         for which strerror does return char*, but which lacks a conveniently
77284         accessible declaration of the function.  If the compile-test says
77285         strerror_r doesn't work, then resort to a `run'-test that works on
77286         BeOS and segfaults on DEC Unix.
77287
77288 2000-06-24  Jim Meyering  <meyering@lucent.com>
77289
77290         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
77291
77292 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77293
77294         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
77295         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
77296
77297 2000-06-23  Paul Eggert  <eggert@twinsun.com>
77298
77299         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
77300         (mbrtowc, mbstate_t): Define substitutes if
77301         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
77302         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
77303         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
77304
77305 2000-06-23  Jim Meyering  <meyering@lucent.com>
77306
77307         * m4/afs.m4: Add missing AC_MSG_RESULT.
77308         Reported by Bruno Haible.
77309
77310         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
77311         Suggestion from Bruno Haible.
77312
77313 2000-06-23  Jim Meyering  <meyering@lucent.com>
77314
77315         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
77316
77317 2000-06-21  Jim Meyering  <meyering@lucent.com>
77318
77319         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
77320
77321 2000-06-21  Jim Meyering  <meyering@lucent.com>
77322
77323         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
77324         (noinst_HEADERS): Add getstr.h.
77325
77326         * lib/getline.c (getstr): Move into a separate file.
77327         * lib/getstr.c (getstr): New file, extracted from getline.c, with
77328         the following changes: new parameter, delim2; both delim[12]
77329         parameters have type `int', not `char'.  The latter would lose
77330         with 8-bit delimiters.
77331         * lib/getstr.h: New file.
77332
77333 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77334
77335         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
77336         than 1024, return a memory chunk of least possible size, instead
77337         of size PATH_MAX + 2. In the loop, increment the size proportionally.
77338         Use free/xmalloc instead of xrealloc to avoid copying for very long
77339         paths.
77340
77341 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77342
77343         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
77344         the empty string.
77345
77346 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
77347
77348         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
77349         address, not strdup.  Include <stdlib.h> and don't declare free().
77350
77351 2000-06-19  Jim Meyering  <meyering@lucent.com>
77352
77353         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
77354
77355 2000-06-18  Jim Meyering  <meyering@lucent.com>
77356
77357         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
77358
77359         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
77360         `checking whether...' message to be consistent with that of the
77361         lstat test.
77362
77363 2000-06-18  Jim Meyering  <meyering@lucent.com>
77364
77365         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
77366         Besides, these days every porting target provides a mkdir function.
77367
77368         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
77369         needed. (this snippet comes from src/system.h).
77370
77371 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
77372
77373         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
77374
77375 2000-06-15  Paul Eggert  <eggert@twinsun.com>
77376
77377         * lib/human.c (adjust_value): New function.
77378         (human_readable_inexact): Apply rounding style even when
77379         printing approximate values.
77380
77381 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77382
77383         * lib/human.c (human_readable_inexact): Allow an input block
77384         size that is not a multiple of the output block size, and vice versa.
77385         Reported by Piergiorgio Sartor.
77386
77387 2000-06-14  Paul Eggert  <eggert@twinsun.com>
77388
77389         * lib/getdate.y (get_date): Apply relative times after time
77390         zone indicator, not before.  Reported by Todd A. Jacobs.
77391
77392 2000-06-13  Jim Meyering  <meyering@lucent.com>
77393
77394         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
77395
77396         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
77397
77398 2000-06-12  Paul Eggert  <eggert@twinsun.com>
77399
77400         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
77401
77402 2000-06-12  Jim Meyering  <meyering@lucent.com>
77403
77404         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
77405         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
77406         optional argument.
77407         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
77408         the optional argument, `lib'.
77409
77410 2000-06-08  Jim Meyering  <meyering@lucent.com>
77411
77412         * m4/largefile.m4: Remove file (now that it's part of autoconf).
77413
77414 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77415
77416         Rewrite largefile configuration so that we don't need to run
77417         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
77418         AC_CANONICAL_HOST in configure.in -- jmm]
77419
77420         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
77421         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
77422         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
77423         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
77424         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
77425         All uses changed.
77426         Instead of inspecting the output of getconf, try to compile the
77427         test program without and with the macro definition.
77428         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
77429         for getconf.  Instead, check for the needed flags by compiling
77430         test programs.
77431
77432 2000-06-04  Paul Eggert  <eggert@twinsun.com>
77433
77434         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
77435
77436 2000-06-04  Jim Meyering  <meyering@lucent.com>
77437
77438         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
77439         SunOS 4.1.4 for which gid_t is an unsigned type.
77440
77441 2000-06-03  Jim Meyering  <meyering@lucent.com>
77442
77443         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
77444         now that autoconf requires that.
77445
77446         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
77447         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
77448         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
77449
77450 2000-06-03  Jim Meyering  <meyering@lucent.com>
77451
77452         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
77453
77454 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77455
77456         * m4/glibc21.m4: New file.
77457         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
77458
77459 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
77460
77461         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
77462         newer, don't install charset.alias.
77463         * lib/config.charset: Change the Linux/glibc rules so they become empty
77464         on glibc-2.1 or newer.
77465
77466 2000-06-02  Jim Meyering  <meyering@lucent.com>
77467
77468         * lib/mountlist.c: Back out last change.  Instead, do this...
77469         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
77470         me_dummy member using the same `ignore'-testing code.
77471         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
77472         fs_type strings.
77473         From Mark D. Roth.
77474
77475 2000-05-29  Jim Meyering  <meyering@lucent.com>
77476
77477         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
77478         mounts with the `ignore' attribute.  Based on a patch from
77479         Mark D. Roth.
77480
77481 2000-05-28  Jim Meyering  <meyering@lucent.com>
77482
77483         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
77484         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77485         * m4/stat.m4: Likewise.
77486         * m4/lstat.m4: Likewise.
77487         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
77488
77489         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
77490         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
77491
77492 2000-05-26  Jim Meyering  <meyering@lucent.com>
77493
77494         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
77495
77496 2000-05-24  Jim Meyering  <meyering@lucent.com>
77497
77498         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
77499         autoconf requires that.
77500         * m4/lib-check.m4: Likewise.
77501         * m4/jm-macros.m4: Likewise.
77502         * m4/strftime.m4: Likewise.
77503
77504         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
77505         AC_CHECK_DECLS, now that autoconf requires that.
77506
77507 2000-05-22  Jim Meyering  <meyering@lucent.com>
77508
77509         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77510         * m4/lstat.m4: Likewise.
77511
77512 2000-05-22  Jim Meyering  <meyering@lucent.com>
77513
77514         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
77515
77516 2000-05-20  Jim Meyering  <meyering@lucent.com>
77517
77518         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
77519         (jm_PREREQ): Use it.
77520
77521 2000-05-18  Jim Meyering  <meyering@lucent.com>
77522
77523         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
77524         back, too, since it may have been modified by allocate_entry.
77525         (hash_delete): Rewrite to use neither the assignment operator
77526         nor the comma operator in an if-expression.
77527
77528 2000-05-15  Paul Eggert  <eggert@twinsun.com>
77529
77530         * lib/closeout.c:
77531         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
77532         Remove; no longer needed.
77533         "quotearg.h": Add include.
77534         (file_name): Do not bother to explicitly initialize to NULL; it's less
77535         efficient on some hosts.
77536         (close_stdout_status): Remove test as to whether stdout was already
77537         closed; it breaks for the case "echo x | sort >&-".
77538         Quote file name colons.
77539         Do not assume that _("write error") lacks format strings.
77540
77541 2000-05-15  Jim Meyering  <meyering@lucent.com>
77542
77543         * lib/version-etc.c (version_etc_copyright): Update the copyright
77544         string used in all --version output.
77545
77546 2000-05-14  Jim Meyering  <meyering@lucent.com>
77547
77548         * lib/closeout.c (close_stdout_set_file_name): New function.
77549         (close_stdout_status): Use new file-scoped global.
77550         Return right away if fstat says the stdout file descriptor is invalid.
77551         * lib/closeout.h (close_stdout_set_file_name): Declare.
77552
77553 2000-05-10  Jim Meyering  <meyering@lucent.com>
77554
77555         * lib/closeout.c [default_exit_status]: New file-scoped variable.
77556         (close_stdout_set_status): New function.
77557         * lib/closeout.h (close_stdout_set_status): Declare.
77558
77559 2000-05-09  Jim Meyering  <meyering@lucent.com>
77560
77561         * m4/gettext.m4: Rename this...
77562         * m4/libintl.m4: ...to this.
77563
77564 2000-05-08  Jim Meyering  <meyering@lucent.com>
77565
77566         * lib/long-options.c: Don't include closeout.h.
77567         (parse_long_options): Don't call close_stdout for --version.
77568
77569 2000-05-06  Paul Eggert  <eggert@twinsun.com>
77570
77571         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
77572         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
77573         2.1.3 bug.  This avoids a clash when files like regex.c define
77574         _GNU_SOURCE.
77575
77576 2000-05-06  Jim Meyering  <meyering@lucent.com>
77577
77578         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
77579         (AC_REPLACE_FUNCS): Add strnlen.
77580
77581         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
77582         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
77583
77584         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
77585         AC_SEARCH_LIBS call for nanosleep.
77586         (LIB_NANOSLEEP): Set and AC_SUBST.
77587
77588 2000-05-06  Jim Meyering  <meyering@lucent.com>
77589
77590         * lib/strnlen.c: Undefine __strnlen and strnlen.
77591         [!weak_alias]: Define __strnlen to strnlen.
77592
77593         * lib/atexit.c: New file, from libiberty.
77594
77595 2000-05-06  Jim Meyering  <meyering@lucent.com>
77596
77597         * lib/closeout.c (close_stdout_status): Also check for errors on the
77598         stderr stream.
77599
77600 2000-05-05  Jim Meyering  <meyering@lucent.com>
77601
77602         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
77603         AC_SEARCH_LIBS call for clock_gettime.
77604         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
77605
77606         * m4/search-libs.m4: Update from autoconf.
77607
77608         su doesn't work on Solaris 2.6.
77609         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
77610         <shadow.h>.  Reported by Dragos Harabor.
77611
77612 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
77613
77614         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
77615         memcpy instead of xmalloc, xrealloc, path_concat.
77616         (locale_charset): Treat empty environment variables as absent.
77617         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
77618
77619 2000-05-04  Jim Meyering  <meyering@lucent.com>
77620
77621         * lib/getopt.c: Update from glibc.
77622         * lib/obstack.c: Likewise.
77623         * lib/obstack.h: Likewise.
77624         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
77625         file
77626
77627         * lib/regex.h: Likewise.
77628         * lib/strndup.c: Likewise.
77629         * lib/strnlen.c: New file, from glibc.
77630
77631 2000-05-03  Jim Meyering  <meyering@lucent.com>
77632
77633         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
77634
77635 2000-05-02  Paul Eggert  <eggert@twinsun.com>
77636
77637         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
77638         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
77639         compile-time test, rather than inspecting host and OS, to
77640         decide whether to define _LARGEFILE_SOURCE.
77641
77642 2000-05-01  Jim Meyering  <meyering@lucent.com>
77643
77644         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
77645
77646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
77647         Based on a patch from Bruno Haible.
77648
77649 2000-05-01  Jim Meyering  <meyering@lucent.com>
77650
77651         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
77652
77653 2000-04-29  Jim Meyering  <meyering@lucent.com>
77654
77655         * lib/path-concat.c: Declare strdup only if it's not defined.
77656         * lib/canon-host.c: Likewise.
77657
77658 2000-04-28  Jim Meyering  <meyering@lucent.com>
77659
77660         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
77661         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
77662         is included first, then limits.h is included by locale.h by libintl.h.
77663         From John David Anglin.
77664
77665 2000-04-25  Jim Meyering  <meyering@lucent.com>
77666
77667         * lib/makepath.c (S_IRWXUGO): Define.
77668         (make_path): Always perform explicit chmod if MODE specifies any
77669         of the `special' permission bits.  Prompted by a bug report against
77670         install from Mate Wierdl and Joost van Baal.
77671
77672 2000-04-18  Jim Meyering  <meyering@lucent.com>
77673
77674         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
77675         (jm_PREREQ): Use it.
77676
77677 2000-04-18  Jim Meyering  <meyering@lucent.com>
77678
77679         * lib/README: New file.
77680
77681         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
77682         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
77683
77684 2000-04-17  Jim Meyering  <meyering@lucent.com>
77685
77686         Get it right :-)
77687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
77688         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
77689         Suggestion from Akim Demaille.
77690
77691 2000-04-17  Jim Meyering  <meyering@lucent.com>
77692
77693         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
77694         the definition of it to rpl_strftime also defined-away the system's
77695         declaration.
77696
77697 2000-04-15  Jim Meyering  <meyering@lucent.com>
77698
77699         Use `C' to denote so-called `contiguous' files, the same way
77700         that tar does.
77701         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
77702         (ftypelet): Use S_ISCTG.
77703         From Michael Deutschmann.
77704
77705 2000-04-14  Jim Meyering  <meyering@lucent.com>
77706
77707         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
77708         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
77709         clobbered.
77710
77711 2000-04-14  Jim Meyering  <meyering@lucent.com>
77712
77713         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
77714
77715 2000-04-13  Jim Meyering  <meyering@lucent.com>
77716
77717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
77718         AH_VERBATIM to insert required #ifndef into config.h.in.
77719         Suggestion from Akim Demaille.
77720
77721 2000-04-12  Jim Meyering  <meyering@lucent.com>
77722
77723         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
77724         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
77725         Christian Krackowizer.
77726
77727         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
77728         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
77729         (AC_SYS_LARGEFILE): Require.
77730         (AM_C_PROTOTYPES): Require.
77731
77732 2000-04-08  Jim Meyering  <meyering@lucent.com>
77733
77734         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
77735         names don't conflict.  Reported by Eli Zaretskii.
77736
77737 2000-04-07  Jim Meyering  <meyering@lucent.com>
77738
77739         * lib/putenv.c: Move inclusion of errno.h so it follows that of
77740         sys/types.h, to work around system header problems on AIX 3.2.5.
77741         From Bruno Haible.
77742
77743 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
77744
77745         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
77746         bug.  Deal with the different error behavior of Irix iconv.
77747
77748 2000-04-05  Paul Eggert  <eggert@twinsun.com>
77749
77750         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
77751         IRIX if the installer said otherwise.
77752
77753 2000-04-05  Jim Meyering  <meyering@lucent.com>
77754
77755         Portability tweaks required for ultrix4.3.
77756         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
77757         (jm_CHECK_DECLS): Add getutent to the list of functions.
77758         (_jm_DECL_HEADERS): Add utmpx.h.
77759         From John David Anglin.
77760
77761         * m4/strftime.m4: Back out the 2000-04-02 change.
77762         Instead of that change, simply undefine putenv in the test program.
77763
77764 2000-04-05  Jim Meyering  <meyering@lucent.com>
77765
77766         Portability tweaks required for ultrix4.3.
77767         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
77768         getutent.
77769         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
77770         * lib/canon-host.c: Declare strdup.
77771         * lib/path-concat.c: Likewise.
77772         From John David Anglin.
77773
77774 2000-04-04  Jim Meyering  <meyering@lucent.com>
77775
77776         Be more DOS 8.3-friendly.
77777         * lib/ref-add.sin: Renamed from ref-add.sed.in.
77778         * lib/ref-del.sin: Renamed from ref-del.sed.in.
77779         * lib/Makefile.am: Reflect renaming.
77780         Reported by Eli Zaretskii.
77781
77782         Use a temporary file name that won't clash with `charset.alias'
77783         in the DOS 8.3 name space.
77784         * lib/Makefile.am (charset_tmp): Define.
77785         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
77786         (uninstall-local): Likewise.
77787         Reported by Eli Zaretskii.
77788
77789 2000-04-03  Jim Meyering  <meyering@lucent.com>
77790
77791         * m4/gettext.m4: Fix typo in comment.
77792
77793         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
77794         textutils/configure.in).  Suggestion from Paul Eggert.
77795         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
77796
77797 2000-04-02  Paul Eggert  <eggert@twinsun.com>
77798
77799         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
77800         variable in the shell rather than using putenv, which isn't
77801         portable.  This avoids the configure-time inter-test dependency
77802         on the potentially-renamed putenv function.
77803
77804 2000-03-30  Paul Eggert  <eggert@twinsun.com>
77805
77806         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
77807         before checking struct stat.st_blksize, so that
77808         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
77809
77810 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77811
77812         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
77813         since strftime.c uses HAVE_STRFTIME to decide whether to use
77814         the underlying strftime.
77815
77816 2000-03-29  Paul Eggert  <eggert@twinsun.com>
77817
77818         * lib/time/strftime.c (my_strftime): Make sure we call the system
77819         strftime, not ourselves, when invoking the underlying strftime.
77820
77821 2000-03-24  Jim Meyering  <meyering@lucent.com>
77822
77823         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
77824         (charset_alias): Define.
77825         (install-exec-local): Factor out common code.
77826         (uninstall-local): Split lines longer than 80.
77827         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
77828         (SUFFIXES): Define.
77829         (.sed.in.sed): New rule.  Don't redirect directly to $@.
77830         (CLEANFILES): Add ref-add.sed and ref-del.sed.
77831
77832 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
77833
77834         * lib/config.charset: Output a line containing "Packages using this
77835         file".
77836         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
77837         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
77838         ref-del.sed): New rules.
77839
77840 2000-03-17  Jim Meyering  <meyering@lucent.com>
77841
77842         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
77843         Otherwise, include <strings.h>
77844
77845 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
77846
77847         * lib/unicodeio.c (utf8_wctomb): New function.
77848         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
77849         format instead of in UCS-4 with platform dependent endianness.
77850
77851 2000-03-10  Jim Meyering  <meyering@lucent.com>
77852
77853         * m4/lib-check.m4: Look for getspnam in -lgen, too.
77854         From Marco Franzen.
77855
77856 2000-03-07  Paul Eggert  <eggert@twinsun.com>
77857
77858         * lib/savedir.c (savedir): Work even if directory size is
77859         negative; this can happen with some screwy NFS configurations.
77860
77861 2000-03-06  Jim Meyering  <meyering@lucent.com>
77862
77863         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
77864         if it's NULL (because we ran out of memory).  From Bruno Haible.
77865
77866 2000-03-05  Jim Meyering  <meyering@lucent.com>
77867
77868         * lib/localcharset.c ("path-concat.h"): Include.
77869         (get_charset_aliases): Use path_concat instead of ANSI string
77870         concatenation.
77871
77872         * lib/unicodeio.h (PARAMS): Define.
77873         Use it to guard prototype.
77874
77875 2000-03-04  Jim Meyering  <meyering@lucent.com>
77876
77877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
77878         for lib/localcharset.c.
77879
77880 2000-03-04  Jim Meyering  <meyering@lucent.com>
77881
77882         * lib/Makefile.am (install-exec-local): Create $(libdir) before
77883         installing into it.
77884         (uninstall-local): Uncomment this rule so `make distcheck' works
77885         once again.
77886
77887         * lib/unicodeio.c (<errno.h>): Include it.
77888         (errno): Declare if not defined.
77889
77890         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
77891
77892         * lib/config.charset: New version, incorporating remarks from a linux
77893         i18n mailing list.  From Bruno Haible.
77894
77895 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
77896
77897         * m4/codeset.m4: New file.
77898         * m4/iconv.m4: New file.
77899         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
77900
77901 2000-03-03  Jim Meyering  <meyering@lucent.com>
77902
77903         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
77904
77905 2000-03-02  Jim Meyering  <meyering@lucent.com>
77906
77907         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
77908         the messages come out on separate lines.
77909
77910         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
77911         rather than jm_CHECK_DECLARATIONS.
77912         * m4/decl.m4: Remove now-unused file.
77913
77914         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
77915         geteuid.
77916
77917 2000-03-02  Jim Meyering  <meyering@lucent.com>
77918
77919         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
77920
77921 2000-03-01  Jim Meyering  <meyering@lucent.com>
77922
77923         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
77924         * lib/unicodeio.c: Likewise.
77925
77926 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
77927
77928         * lib/config.charset: New file.
77929         * lib/localcharset.c: New file.
77930         * lib/unicodeio.h, lib/unicodeio.c: New files.
77931         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
77932         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
77933         (noinst_HEADERS): Add unicodeio.h.
77934         (all-local, install-exec-local, charset.alias): New targets.
77935
77936 2000-02-28  Paul Eggert  <eggert@twinsun.com>
77937
77938         * lib/quotearg.c (ALERT_CHAR): New macro.
77939         (quotearg_buffer_restyled): Use it.
77940
77941 2000-02-27  Jim Meyering  <meyering@lucent.com>
77942
77943         * m4/check-decl.m4: Add getenv to the list.
77944
77945 2000-02-27  Jim Meyering  <meyering@lucent.com>
77946
77947         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
77948         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
77949
77950         * lib/backupfile.c: Guard inclusion of stdlib.h with
77951         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
77952         Declare malloc if needed.
77953
77954         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
77955         `#ifndef HAVE_DECL..'
77956         now that autoconf always defines the HAVE_DECL_ symbols.
77957         * lib/human.c: Likewise.
77958         * lib/same.c: Likewise.
77959         * lib/strtoumax.c: Likewise.
77960
77961         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
77962         declaration check was not run.
77963         * lib/hash.c: Likewise.
77964         * lib/human.c: Likewise.
77965         * lib/same.c: Likewise.
77966         * lib/strtoumax.c: Likewise.
77967
77968         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
77969         `.', then first look up the entire `.'-containing string as a login
77970         name.
77971
77972 2000-02-23  Jim Meyering  <meyering@lucent.com>
77973
77974         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
77975         in place of my hack.
77976
77977 2000-02-18  Paul Eggert  <eggert@twinsun.com>
77978
77979         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
77980         (textint): New typedef.
77981         (parser_control): Member year changed from int to textint.
77982         All uses changed.
77983         (YYSTYPE): Removed; replaced by %union with int and textint members.
77984         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
77985         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
77986         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
77987         (tSNUMBER, tUNUMBER): Now of type <textintval>.
77988         (date, number, to_year): Use width of number in digits, not its value,
77989         to determine whether it's a 2-digit year, or a 2-digit time.
77990         (yylex): Store number of digits of numeric tokens.
77991         Reported by John Kendall.
77992
77993         (parser_control): Changed from struct parser_control to typedef (for
77994         consistency).  All uses changed.
77995
77996         (tID): Removed; not used.
77997         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
77998
77999 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78000
78001         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78002         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78003
78004 2000-02-12  Jim Meyering  <meyering@lucent.com>
78005
78006         * lib/userspec.c (ISDIGIT): Define it.
78007         (isdigit): Remove definition.
78008         (is_number): Use ISDIGIT, not isdigit.
78009         <libintl.h>: Include.
78010         (_ and N_): Define.
78011         (parse_user_spec): Mark translatable strings.
78012
78013 2000-02-10  Jim Meyering  <meyering@lucent.com>
78014
78015         With these changes, nanosleep.[ch] are finally enough like the other
78016         lib/* replacement files to compile on a few more losing systems.
78017
78018         * lib/nanosleep.h: Don't include config.h.
78019         Remove prototype from declaration of nanosleep.
78020         (PARAMS): Remove now-unneeded definition.
78021         * lib/nanosleep.c: #undef nanosleep.
78022         (rpl_nanosleep): Rename from nanosleep.
78023
78024 2000-02-10  Jim Meyering  <meyering@lucent.com>
78025
78026         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78027         gnu_nanosleep to rpl_nanosleep.
78028
78029 2000-02-09  Jim Meyering  <meyering@lucent.com>
78030
78031         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78032         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78033
78034 2000-02-08  Akim Demaille  <akim@epita.fr>
78035
78036         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78037         `[' and `]' and remove uses of `changequote'.
78038         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78039         (AC_SYS_LARGEFILE): Likewise.
78040         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78041         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78042         of changequote.
78043         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78044         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78045         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78046         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78047
78048 2000-02-05  Jim Meyering  <meyering@lucent.com>
78049
78050         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78051         Remove explicit use of AC_HEADER_TIME.  It is required by
78052         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78053         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78054         in autoconf whereby the expansion of the latter ended up preceding
78055         the expansion of its prerequisite, AC_HEADER_TIME.
78056         Reported by Volker Borchert.
78057
78058 2000-02-03  Jim Meyering  <meyering@lucent.com>
78059
78060         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78061
78062 2000-02-03  Jim Meyering  <meyering@lucent.com>
78063
78064         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78065         rather than with `#if HAVE_UTMPNAME'.
78066
78067 2000-02-02  Jim Meyering  <meyering@lucent.com>
78068
78069         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78070         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78071         Reported by Eli Zaretskii.
78072
78073 2000-02-01  Jim Meyering  <meyering@lucent.com>
78074
78075         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78076
78077 2000-01-31  Jim Meyering  <meyering@lucent.com>
78078
78079         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78080         functions.  Add the time.h and sys/time.h headers along with the
78081         AC_REQUIRE'ment of AC_HEADER_TIME.
78082
78083 2000-01-31  Jim Meyering  <meyering@lucent.com>
78084
78085         * lib/nanosleep.h (nanosleep): Guard declaration with
78086         `#if ! HAVE_DECL_NANOSLEEP'.
78087         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78088         the declaration in that vendor's sys/timers.h.
78089         Reported by Christian Krackowizer.
78090
78091         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78092         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78093         (ISPRINT): Likewise.
78094         Reported by Tom Tromey.
78095
78096 2000-01-30  Jim Meyering  <meyering@lucent.com>
78097
78098         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78099
78100         * m4/prereq.m4 (utmp_includes): Define.
78101         Check for ut_user and ut_name members in both struct utmpx
78102         and struct utmp.
78103
78104 2000-01-30  Jim Meyering  <meyering@lucent.com>
78105
78106         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78107         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78108         header files where only utmpx.ut_user is declared.
78109
78110         * lib/readutmp.h (UT_USER): Define.
78111
78112 2000-01-29  Jim Meyering  <meyering@lucent.com>
78113
78114         * m4/lib-check.m4: New file containing library-related checks from
78115         fileutils and sh-utils (textutils had none).
78116
78117 2000-01-28  Jim Meyering  <meyering@lucent.com>
78118
78119         * m4/perl.m4: Change format of warning message to look more like that
78120         from the missing script.  Suggestion from François Pinard.
78121
78122 2000-01-25  Jim Meyering  <meyering@lucent.com>
78123
78124         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78125         well as time.h in the compile check.
78126         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78127         Fix typo in cross-compiling case: s/yes/no/.
78128
78129 2000-01-23  Jim Meyering  <meyering@lucent.com>
78130
78131         * m4/jm-macros.m4: Move df-related tests here from
78132         fileutils/configure.in
78133
78134         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78135         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78136
78137         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78138         s/space/ac_fsusage_space/.
78139         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78140
78141         * m4/ftruncate.m4: New file (derived from part of
78142         fileutils/configure.in).
78143         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78144         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78145
78146         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78147         AC_SUBST these here, rather than just in sh-util/configure.in, so
78148         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78149         all the same.
78150         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78151         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78152         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78153         (AC_SUBST(POW_LIBM)): Likewise.
78154         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78155
78156 2000-01-23  Jim Meyering  <meyering@lucent.com>
78157
78158         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78159         obstack.c.
78160
78161 2000-01-22  Jim Meyering  <meyering@lucent.com>
78162
78163         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78164
78165         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78166
78167         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78168         configure.in
78169         (AC_CHECK_HEADERS): Likewise for sh-utils.
78170         (AC_CHECK_HEADERS): Likewise for textutils.
78171         Merge the three lists of headers.
78172
78173         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78174         from fileutils' configure.in.
78175
78176         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78177         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78178         check-decl.m4.
78179
78180         * m4/check-decl.m4: Use #if rather than #ifdef.
78181         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78182         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78183         (_jm_DECL_HEADERS): Define new function.
78184         (jm_CHECK_DECLARATIONS): Require it.
78185
78186 2000-01-22  Jim Meyering  <meyering@lucent.com>
78187
78188         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78189         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78190         Required for some AIX systems.  Reported by Christian Krackowizer.
78191         [TESTING] (main): New function.
78192
78193         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78194         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78195         letters.
78196
78197         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78198         iswprint.
78199
78200         * lib/strverscmp.c (ISDIGIT): Define.
78201         (strverscmp): Use ISDIGIT, not isdigit.
78202
78203 2000-01-19  Jim Meyering  <meyering@lucent.com>
78204
78205         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
78206         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
78207         defines `struct timespec' in <sys/time.h>
78208
78209         * m4/c-bs-a.m4: Remove uses of changequote altogether.
78210         Thanks to Akim for explaining.
78211
78212 2000-01-17  Paul Eggert  <eggert@twinsun.com>
78213
78214         * lib/nanosleep.c (nanosleep):
78215         Don't use SA_INTERRUPT to decide whether to call sigaction, as
78216         POSIX.1 doesn't require SA_INTERRUPT and some systems
78217         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
78218         it's been part of POSIX.1 since day 1 (in 1988).
78219
78220 2000-01-17  Jim Meyering  <meyering@lucent.com>
78221
78222         * lib/interlock: Remove unused file.  Reported by François Pinard.
78223
78224 2000-01-16  Paul Eggert  <eggert@twinsun.com>
78225
78226         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
78227         alert, backslash, formfeed, and vertical tab unnecessarily in
78228         shell quoting style.
78229
78230 2000-01-16  Jim Meyering  <meyering@lucent.com>
78231
78232         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
78233         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
78234         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
78235         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
78236
78237 2000-01-16  Jim Meyering  <meyering@lucent.com>
78238
78239         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
78240         because the latter didn't work.
78241
78242 2000-01-15  Jim Meyering  <meyering@lucent.com>
78243
78244         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
78245         (AC_REPLACE_FUNCS): Add memcpy and memset.
78246         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
78247         Add strpbrk.
78248         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
78249
78250 2000-01-12  Jim Meyering  <meyering@lucent.com>
78251
78252         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
78253         (jm_PREREQ): Use it.
78254         (jm_PREREQ_READUTMP): New macro.
78255         (jm_PREREQ): Use it.
78256
78257 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78258
78259         Quote multibyte characters correctly.
78260         * m4/c-bs-a.m4: New file.
78261         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
78262         (jm_PREREQ): Use it.
78263
78264 2000-01-11  Paul Eggert  <eggert@twinsun.com>
78265
78266         * m4/uintmax_t.m4: Port to autoconf 2.13.
78267
78268 2000-01-08  Jim Meyering  <meyering@ascend.com>
78269
78270         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
78271         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
78272
78273 2000-01-04  Jim Meyering  <meyering@ascend.com>
78274
78275         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
78276         jm_STRUCT_DIRENT_D_TYPE.
78277         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
78278         jm_STRUCT_DIRENT_D_INO.
78279         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
78280         jm_STRUCT_UTIMBUF.
78281         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
78282         renamings.
78283         * m4/utime.m4: Likewise.
78284
78285         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
78286         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
78287
78288 2000-01-03  Paul Eggert  <eggert@twinsun.com>
78289
78290         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
78291         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
78292
78293 2000-01-02  Jim Meyering  <meyering@ascend.com>
78294
78295         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
78296         remember if this is necessary.
78297
78298 1999-12-26  Jim Meyering  <meyering@ascend.com>
78299
78300         * m4/jm-macros.m4: Use it here.
78301         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
78302
78303 1999-12-23  Jim Meyering  <meyering@ascend.com>
78304
78305         * m4/jm-macros.m4: Check for clock_gettime (moved from
78306         fileutils/configure.in)
78307         Check for gettimeofday.
78308
78309 1999-12-20  Jim Meyering  <meyering@ascend.com>
78310
78311         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
78312         autoconf-2.14a-1999-12-20.
78313
78314 1999-12-19  Jim Meyering  <meyering@ascend.com>
78315
78316         * m4/lstat-slash.m4: New file.
78317         * m4/jm-macros.m4: Use the new macro:
78318         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78319
78320 1999-12-07  Jim Meyering  <meyering@ascend.com>
78321
78322         * m4/perl.m4: Require that File::Compare be available, too.
78323         Too many systems seem to lack it.
78324
78325         * m4/strftime.m4: Add checks for most of the cpp macros tested in
78326         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
78327
78328 1999-11-18  Paul Eggert  <eggert@twinsun.com>
78329
78330         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
78331         problem with the QNX 4.25 shell, which doesn't propagate exit
78332         status of failed commands inside shell assignments.
78333
78334 1999-11-17  Jim Meyering  <meyering@ascend.com>
78335
78336         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
78337
78338 1999-11-07  Jim Meyering  <meyering@ascend.com>
78339
78340         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
78341
78342 1999-11-06  Jim Meyering  <meyering@ascend.com>
78343
78344         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
78345         * m4/jm-macros.m4 (jm_MACROS): Use it here.
78346
78347 1999-11-05  Jim Meyering  <meyering@ascend.com>
78348
78349         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
78350         configure.in of textutils, fileutils, and sh-utils into this one
78351         (shared between those packages) file.
78352         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
78353         AC_STRUCT_ST_BLKSIZE.
78354
78355 1999-11-03  Jim Meyering  <meyering@ascend.com>
78356
78357         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
78358         of AC_CHECK_TYPE checks includes unistd.h.
78359         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
78360         Suggestion from Akim Demaille.
78361
78362 1999-10-30  Jim Meyering  <meyering@ascend.com>
78363
78364         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
78365         m4-quoted string.
78366         * m4/ls-mntd-fs.m4: Likewise.
78367         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
78368         * m4/jm-winsz1.m4: Likewise.
78369
78370         * m4/const.m4: Remove file, since the fix made it into the experimental
78371         version of autoconf.
78372         * m4/mktime.m4: Likewise.
78373
78374         * m4/check-type.m4: Remove file, now that the latest version of
78375         AC_CHECK_TYPE takes a third arg to specify additional #includes.
78376
78377         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
78378         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
78379         AC_CHECK_TYPE.
78380
78381 1999-10-04  Jim Meyering  <meyering@ascend.com>
78382
78383         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
78384
78385 1999-09-22  Paul Eggert  <eggert@twinsun.com>
78386
78387         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
78388         2.95.1 bug with HP-UX 10.20.
78389
78390 1999-09-17  Jim Meyering  <meyering@ascend.com>
78391
78392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
78393         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
78394         due to missing strdup (against sh-utils-2.0).
78395
78396 1999-08-29  Jim Meyering  <meyering@ascend.com>
78397
78398         * m4/jm-macros.m4: Require jm_BISON.
78399         * m4/bison.m4: New file.
78400
78401 1999-08-17  Paul Eggert  <eggert@twinsun.com>
78402
78403         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
78404         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
78405
78406 1999-08-05  Jim Meyering  <meyering@ascend.com>
78407
78408         * m4/getline.m4: Rename test file from conftestdata to conftest.data
78409         to avoid conflicts with `conftest' on 8+3 filesystems.
78410         Suggestion from Eli Zaretskii.
78411
78412 1999-08-04  Jim Meyering  <meyering@ascend.com>
78413
78414         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
78415         fileutils and sh-utils (textutils's getline test was inadequate).
78416         (AM_FUNC_GETLINE): Run this test.
78417         (AC_CHECK_FUNCS): Check for getdelim.
78418         Reported by Bob Proulx.
78419
78420 1999-08-02  Jim Meyering  <meyering@ascend.com>
78421
78422         * m4/jm-macros.m4: Add a comment.
78423
78424 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78425
78426         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
78427         <inttypes.h> defines strtoumax as a macro (and not as a
78428         function).
78429
78430 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78431
78432         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
78433         that we can shift, multiply and divide unsigned long long
78434         values; Ultrix cc can't do it.
78435
78436 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78437
78438         * m4/mktime.m4: New file, which is a preview of what should appear
78439         in the next public autoconf release.
78440
78441 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78442
78443         * m4/lfs.m4: Remove this file.
78444         * m4/largefile.m4: New file.  It contains the old contents of
78445         lfs.m4, except that all names with prefix AC_LFS have been
78446         changed to use the prefix AC_SYS_LARGEFILE instead, to be
78447         compatible with future autoconf versions.  Also, some minor m4
78448         quoting problems have been fixed.
78449
78450 1999-08-01  Paul Eggert  <eggert@twinsun.com>
78451
78452         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
78453         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
78454         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
78455         and simplify the shell code.
78456
78457 1999-08-01  Jim Meyering  <meyering@ascend.com>
78458
78459         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
78460         m4.
78461
78462 1999-07-20  Jim Meyering  <meyering@ascend.com>
78463
78464         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
78465
78466 1999-07-15  Jim Meyering  <meyering@ascend.com>
78467
78468         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
78469
78470 1999-05-22  Jim Meyering  <meyering@ascend.com>
78471
78472         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
78473
78474 1999-05-20  Jim Meyering  <meyering@ascend.com>
78475
78476         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
78477         Add a colon after each `then' in case $4 is empty.
78478
78479 1999-05-16  Jim Meyering  <meyering@ascend.com>
78480
78481         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
78482
78483 1999-05-10  Jim Meyering  <meyering@ascend.com>
78484
78485         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
78486
78487         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
78488         AC_FUNC_MKTIME.
78489
78490 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
78491
78492         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
78493
78494 1999-05-04  Paul Eggert  <eggert@twinsun.com>
78495
78496         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
78497         not CPPFLAGS, so that linking works correctly in IRIX.
78498
78499 1999-04-30  Paul Eggert  <eggert@twinsun.com>
78500
78501         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
78502
78503 1999-04-20  Paul Eggert  <eggert@twinsun.com>
78504
78505         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
78506         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
78507         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
78508         jm_AC_TYPE_UNSIGNED_LONG_LONG.
78509         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
78510
78511         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
78512
78513 1999-04-20  Jim Meyering  <meyering@ascend.com>
78514
78515         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
78516         AC_REPLACE xstroull if necessary.  From Paul Eggert.
78517         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
78518
78519 1999-04-18  Jim Meyering  <meyering@ascend.com>
78520
78521         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
78522         * m4/jm-macros.m4: Use it.
78523
78524 1999-04-06  Jim Meyering  <meyering@ascend.com>
78525
78526         * m4/strftime.m4: Remove test for %f.
78527
78528 1999-03-29  Jim Meyering  <meyering@ascend.com>
78529
78530         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
78531         superset of the AC_TYPE_* checks in the textutils, fileutils,
78532         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
78533         AC_TYPE_PID_T.
78534
78535 1999-03-28  Jim Meyering  <meyering@ascend.com>
78536
78537         * m4/jm-macros.m4: Define GNU_PACKAGE here.
78538         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
78539         replaced e.g., in the *.sh files of the sh-utils.
78540
78541 1999-03-20  Jim Meyering  <meyering@ascend.com>
78542
78543         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
78544         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
78545         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
78546
78547 1999-03-19  Jim Meyering  <meyering@ascend.com>
78548
78549         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
78550
78551 1999-03-12  Jim Meyering  <meyering@ascend.com>
78552
78553         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
78554
78555 1999-03-07  Jim Meyering  <meyering@ascend.com>
78556
78557         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
78558         declared.
78559
78560 1999-02-17  Jim Meyering  <meyering@ascend.com>
78561
78562         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
78563         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
78564
78565 1999-02-07  Jim Meyering  <meyering@ascend.com>
78566
78567         * m4/group-member.m4: New file -- extracted from sh-utils'
78568         configure.in.
78569
78570         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
78571         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
78572
78573 1999-02-06  Jim Meyering  <meyering@ascend.com>
78574
78575         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
78576         * m4/fnmatch.m4: Likewise.
78577         * m4/getgroups.m4: Likewise.
78578         * m4/lstat.m4: Likewise.
78579         * m4/malloc.m4: Likewise.
78580         * m4/putenv.m4: Likewise.
78581         * m4/realloc.m4: Likewise.
78582         * m4/regex.m4: Likewise.
78583         * m4/stat.m4: Likewise.
78584         * m4/strftime.m4: Likewise.
78585         Suggestion from Alain Magloire.
78586
78587         * m4/chown.m4: Use `.$ac_objext', not `.o'.
78588         * m4/fnmatch.m4: Likewise.
78589         * m4/getgroups.m4: Likewise.
78590         * m4/getline.m4: Likewise.
78591         * m4/lstat.m4: Likewise.
78592         * m4/malloc.m4: Likewise.
78593         * m4/memcmp.m4: Likewise.
78594         * m4/putenv.m4: Likewise.
78595         * m4/realloc.m4: Likewise.
78596         * m4/regex.m4: Likewise.
78597         * m4/stat.m4: Likewise.
78598         * m4/strftime.m4: Likewise.
78599         Suggestion from Alain Magloire.
78600
78601         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
78602         an argument.
78603
78604         * m4/regex.m4: Add a run-time Test for proper operation of
78605         re_compile_pattern.
78606
78607 1999-01-31  Jim Meyering  <meyering@ascend.com>
78608
78609         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
78610
78611 1999-01-30  Jim Meyering  <meyering@ascend.com>
78612
78613         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
78614
78615         * m4/jm-mktime.m4: Make this a wrapper around the official
78616         AM_FUNC_MKTIME rather than my private copy, now that the official one
78617         is up to date.
78618         * m4/mktime.m4: Remove file.
78619
78620         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
78621         * m4/uptime.m4: Likewise.
78622         * m4/uintmax_t.m4: Likewise.
78623
78624 1999-01-28  Jim Meyering  <meyering@ascend.com>
78625
78626         * m4/jm-macros.m4: Use jm_AFS.
78627         * m4/afs.m4: New file (from fileutils' configure.in).
78628
78629         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
78630         * m4/chown.m4: Likewise.
78631         * m4/d-ino.m4: Likewise.
78632         * m4/d-type.m4: Likewise.
78633         * m4/fnmatch.m4: Likewise.
78634         * m4/getgroups.m4: Likewise.
78635         * m4/gettext.m4: Likewise.
78636         * m4/jm-mktime.m4: Likewise.
78637         * m4/jm-winsz2.m4: Likewise.
78638         * m4/lcmessage.m4: Likewise.
78639         * m4/ls-mntd-fs.m4: Likewise.
78640         * m4/malloc.m4: Likewise.
78641         * m4/memcmp.m4: Likewise.
78642         * m4/putenv.m4: Likewise.
78643         * m4/realloc.m4: Likewise.
78644         * m4/st_mtim.m4: Likewise.
78645         * m4/strftime.m4: Likewise.
78646
78647 1999-01-16  Jim Meyering  <meyering@ascend.com>
78648
78649         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
78650         (ARGMATCH_DIE_DECL): Define.
78651
78652 1999-01-12  Jim Meyering  <meyering@ascend.com>
78653
78654         * m4/Makefile.am.in: Rewrite to avoid using fmt.
78655         Reported by Lars Hecking.
78656
78657 1999-01-10  Jim Meyering  <meyering@ascend.com>
78658
78659         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
78660         gross kludge.
78661         * m4/inttypes_h.m4: Likewise.
78662         * m4/lstat.m4: Likewise.
78663         * m4/malloc.m4: Likewise.
78664         * m4/readdir.m4: Likewise.
78665         * m4/realloc.m4: Likewise.
78666         * m4/st_dm_mode.m4: Likewise.
78667         * m4/stat.m4: Likewise.
78668         * m4/utimbuf.m4: Likewise.
78669         * m4/utimes.m4: Likewise.
78670
78671         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
78672         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
78673         comments in config.h.in are meaningful.
78674
78675         * m4/jm-macros.m4: Require autoconf-2.13 here.
78676
78677         * m4/regex.m4: By default, don't use the included regex.c on systems
78678         with glibc 2.  Suggestion from Uli Drepper.
78679
78680 1999-01-02  Jim Meyering  <meyering@ascend.com>
78681
78682         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
78683
78684 1998-12-18  Jim Meyering  <meyering@ascend.com>
78685
78686         * m4/Makefile.am.in (Makefile.am): Simplify rule.
78687         Based on a suggestion from Lars Hecking.
78688
78689 1998-11-16  Paul Eggert  <eggert@twinsun.com>
78690
78691         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
78692
78693 1998-11-16  Jim Meyering  <meyering@ascend.com>
78694
78695         * m4/lfs.m4: Double-quote the `uname...` expression.
78696
78697 1998-11-14  Jim Meyering  <meyering@ascend.com>
78698
78699         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
78700         * m4/stat.m4: Likewise.
78701
78702 1998-11-03  Jim Meyering  <meyering@ascend.com>
78703
78704         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
78705         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
78706
78707 1998-10-18  Jim Meyering  <meyering@ascend.com>
78708
78709         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
78710
78711 1998-10-17  Jim Meyering  <meyering@ascend.com>
78712
78713         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
78714         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
78715         calls for those previously hard-coded headers.  Instead, take a new
78716         parameter.
78717         (jm_CHECK_DECLARATIONS): Reflect interface change.
78718         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
78719         (jm_CHECK_DECL_LOCALTIME_R): New macro.
78720
78721         * m4/mktime.m4: Test for spring-forward gap before long-running test.
78722
78723 1998-10-14  Jim Meyering  <meyering@ascend.com>
78724
78725         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
78726         instead of "TZ=America/Vancouver".  From Paul Eggert.
78727
78728 1998-10-11  Jim Meyering  <meyering@ascend.com>
78729
78730         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
78731         This adds a test for a recently added compatibility fix for mktime.c.
78732         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
78733
78734 1998-09-27  Jim Meyering  <meyering@ascend.com>
78735
78736         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
78737
78738         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
78739         ../configure.in, including a change from Gordon Matzigkeit to allow
78740         cross-compiling for the Hurd.
78741
78742         * m4/glibc.m4: New file/macro to test for the GNU C Library
78743         versions 1 and 2.  From Gordon Matzigkeit.
78744         Indent.
78745
78746 1998-09-21  Jim Meyering  <meyering@ascend.com>
78747
78748         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
78749
78750 1998-08-18  Paul Eggert  <eggert@twinsun.com>
78751
78752         Port nanosecond-resolution times to UnixWare 2.1.2 and
78753         pedantic Solaris 2.6.
78754
78755         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
78756         AC_STRUCT_ST_MTIM.
78757         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
78758         Generate name of ns member, instead of just 1 or undef.
78759         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
78760
78761 1998-08-15  Jim Meyering  <meyering@ascend.com>
78762
78763         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
78764         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
78765         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
78766         instead of jm_TYPE_SSIZE_T.
78767
78768 1998-08-12  Jim Meyering  <meyering@ascend.com>
78769
78770         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
78771
78772 1998-08-02  Jim Meyering  <meyering@ascend.com>
78773
78774         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
78775         in acconfig.h manually.
78776
78777 1998-07-31  Paul Eggert  <eggert@twinsun.com>
78778
78779         * m4/st_mtim.m4: New file.
78780
78781 1998-07-28  Jim Meyering  <meyering@ascend.com>
78782
78783         * m4/utimes.m4: Undef stat.
78784
78785 1998-07-25  Jim Meyering  <meyering@ascend.com>
78786
78787         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
78788         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
78789
78790 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
78791
78792         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
78793         uid and gid actually remain unchanged.
78794
78795 1998-07-07  Jim Meyering  <meyering@ascend.com>
78796
78797         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
78798
78799 1998-07-04  Jim Meyering  <meyering@ascend.com>
78800
78801         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
78802         to prove that this macro can be used in packages without regex.c.
78803
78804 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
78805
78806         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
78807         is to be used.
78808
78809 1998-07-03  Jim Meyering  <meyering@ascend.com>
78810
78811         * m4/gettext.m4: Add -lintl if it's found to be necessary.
78812
78813         * m4/gettext.m4: New file -- from gettext-0.10.35.
78814         * m4/lcmessage.m4: Likewise.
78815         * m4/progtest.m4: Likewise.
78816
78817         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
78818         * m4/jm-macros.m4: Require the new macro.
78819
78820 1998-06-29  Jim Meyering  <meyering@ascend.com>
78821
78822         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
78823         for the definition of NGROUPS (used in a system header included
78824         by sys/mount.h).
78825
78826 1998-06-28  Jim Meyering  <meyering@ascend.com>
78827
78828         * m4/ls-mntd-fs.m4: New file.
78829         * m4/fstypename.m4: New file.
78830
78831         * m4/jm-macros.m4: Require the new macro.
78832         * m4/jm-glibc-io.m4: New file.
78833
78834 1998-05-19  Jim Meyering  <meyering@ascend.com>
78835
78836         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
78837         * m4/lchown.m4: New file.
78838
78839         * m4/Makefile.am.in: New file.
78840         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
78841
78842 1998-05-14  Jim Meyering  <meyering@ascend.com>
78843
78844         * m4/Makefile.am (EXTRA_DIST): Add them.
78845         * m4/jm-macros.m4: New file.
78846         * m4/utimbuf.m4: New file.
78847
78848 1998-05-12  Jim Meyering  <meyering@ascend.com>
78849
78850         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
78851
78852 1998-05-11  Jim Meyering  <meyering@ascend.com>
78853
78854         * m4/isc-posix.m4: New file.
78855
78856 1998-05-10  Jim Meyering  <meyering@ascend.com>
78857
78858         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
78859
78860 1998-05-09  Jim Meyering  <meyering@ascend.com>
78861
78862         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
78863         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
78864         with automake.
78865
78866         * m4/ssize_t.m4: New file.
78867         * m4/mktime.m4: Remove file -- the new automake has this now.
78868
78869 1998-04-26  Jim Meyering  <meyering@ascend.com>
78870
78871         * m4/assert.m4: New file.
78872         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
78873
78874 1998-04-05  Jim Meyering  <meyering@ascend.com>
78875
78876         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
78877         (jm_PREREQ): Use it here.
78878
78879 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
78880
78881         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
78882         in acconfig.h.
78883
78884 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
78885
78886         * m4/prereq.m4: New file.
78887         * m4/error.m4: New file.
78888         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
78889
78890 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
78891
78892         * m4/getline.m4: Don't set am_cv_func_working_getline before the
78893         cache-check for the same variable -- that defeated the purpose of
78894         the test; the test program was never run.  This was a problem only
78895         on systems with losing getline functions -- HP-UX 10.20 is one.
78896         Reported by Bjorn Helgaas.
78897
78898 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
78899
78900         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
78901
78902 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
78903
78904         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
78905
78906         * m4/const.m4: New file.  Use an initializer in this declaration
78907         typedef int charset[2]; const charset x;
78908         Reported by Bob Glickstein.
78909
78910 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
78911
78912         * m4/chown.m4: Fix reversed types on -1 args to chown.
78913         From Kaveh Ghazi.
78914
78915 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
78916
78917         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
78918         Add lseek and memchr.
78919
78920         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
78921         T.E.Dickey <dickey@clark.net> said that some older preprocessors
78922         have a 20-character limit on names.
78923
78924 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
78925
78926         * m4/inttypes_h.m4: New file.
78927         * m4/uintmax_t.m4: New file.
78928         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
78929
78930
78931         -----
78932
78933         Local Variables:
78934         coding: utf-8
78935         End:
78936
78937         Copyright (C) 1997-2011 Free Software Foundation, Inc.
78938
78939         Copying and distribution of this file, with or without
78940         modification, are permitted provided the copyright notice
78941         and this notice are preserved.